web(ui): foundation — ui/core layout, shadcn primitives, notify

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-05-19 11:54:29 +07:00
co-authored by Cursor
parent 35ed79bdd6
commit 00a2a44630
169 changed files with 1533 additions and 380 deletions
+1 -7
View File
@@ -1,7 +1 @@
import Root from "./separator.svelte";
export {
Root,
//
Root as Separator,
};
export * from '$lib/ui/core/separator/index.js';
@@ -1,23 +0,0 @@
<script lang="ts">
import { Separator as SeparatorPrimitive } from "bits-ui";
import { cn } from "$lib/utils.js";
let {
ref = $bindable(null),
class: className,
"data-slot": dataSlot = "separator",
...restProps
}: SeparatorPrimitive.RootProps = $props();
</script>
<SeparatorPrimitive.Root
bind:ref
data-slot={dataSlot}
class={cn(
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",
// this is different in shadcn/ui but self-stretch breaks things for us
"data-[orientation=vertical]:h-full",
className
)}
{...restProps}
/>