@kayord/ui 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom/data-table/DataTable.svelte +1 -1
- package/dist/components/ui/accordion/accordion-content.svelte +1 -1
- package/dist/components/ui/alert/alert-title.svelte +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte +1 -1
- package/dist/components/ui/calendar/calendar-months.svelte +1 -1
- package/dist/components/ui/card/card-title.svelte +1 -1
- package/dist/components/ui/carousel/carousel-next.svelte +1 -1
- package/dist/components/ui/carousel/carousel-previous.svelte +1 -1
- package/dist/components/ui/checkbox/checkbox.svelte +1 -1
- package/dist/components/ui/command/command-dialog.svelte +1 -1
- package/dist/components/ui/command/command-item.svelte +1 -1
- package/dist/components/ui/command/command-link-item.svelte +1 -1
- package/dist/components/ui/command/command-list.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-item.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/dialog/dialog-content.svelte +2 -2
- package/dist/components/ui/dialog/dialog-title.svelte +1 -1
- package/dist/components/ui/drawer/drawer-title.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/form/form-legend.svelte +1 -1
- package/dist/components/ui/input/input.svelte +2 -2
- package/dist/components/ui/label/label.svelte +1 -1
- package/dist/components/ui/menubar/menubar-checkbox-item.svelte +1 -1
- package/dist/components/ui/menubar/menubar-item.svelte +1 -1
- package/dist/components/ui/menubar/menubar-radio-item.svelte +1 -1
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte +1 -1
- package/dist/components/ui/menubar/menubar-trigger.svelte +1 -1
- package/dist/components/ui/range-calendar/range-calendar-months.svelte +1 -1
- package/dist/components/ui/resizable/resizable-handle.svelte +1 -1
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +1 -1
- package/dist/components/ui/select/select-group-heading.svelte +1 -1
- package/dist/components/ui/select/select-item.svelte +1 -1
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/dist/components/ui/sheet/sheet-content.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-inset.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-menu-badge.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-menu-skeleton.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-rail.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar.svelte +3 -3
- package/dist/components/ui/slider/slider.svelte +3 -3
- package/dist/components/ui/switch/switch.svelte +1 -1
- package/dist/components/ui/tabs/tabs-content.svelte +1 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/package.json +4 -4
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<div
|
|
77
77
|
class={cn(
|
|
78
78
|
"w-full",
|
|
79
|
-
tableStore.isFullscreen ? "bg-background absolute
|
|
79
|
+
tableStore.isFullscreen ? "bg-background absolute top-0 left-0 z-10 h-screen transition-all" : "w-full",
|
|
80
80
|
className
|
|
81
81
|
)}
|
|
82
82
|
>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<AlertDialogPrimitive.Content
|
|
19
19
|
bind:ref
|
|
20
20
|
class={cn(
|
|
21
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed
|
|
21
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
22
22
|
className
|
|
23
23
|
)}
|
|
24
24
|
{...restProps}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<ol
|
|
10
10
|
bind:this={ref}
|
|
11
|
-
class={cn("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words
|
|
11
|
+
class={cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", className)}
|
|
12
12
|
{...restProps}
|
|
13
13
|
>
|
|
14
14
|
{@render children?.()}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<div
|
|
15
15
|
bind:this={ref}
|
|
16
|
-
class={cn("mt-4 flex flex-col space-y-4 sm:flex-row sm:space-
|
|
16
|
+
class={cn("mt-4 flex flex-col space-y-4 sm:flex-row sm:space-y-0 sm:space-x-4", className)}
|
|
17
17
|
{...restProps}
|
|
18
18
|
>
|
|
19
19
|
{@render children?.()}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
role="heading"
|
|
19
19
|
aria-level={level}
|
|
20
20
|
bind:this={ref}
|
|
21
|
-
class={cn("text-2xl font-semibold
|
|
21
|
+
class={cn("text-2xl leading-none font-semibold tracking-tight", className)}
|
|
22
22
|
{...restProps}
|
|
23
23
|
>
|
|
24
24
|
{@render children?.()}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
class={cn(
|
|
23
23
|
"absolute size-8 touch-manipulation rounded-full",
|
|
24
24
|
emblaCtx.orientation === "horizontal"
|
|
25
|
-
? "
|
|
25
|
+
? "top-1/2 -right-12 -translate-y-1/2"
|
|
26
26
|
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
27
27
|
className
|
|
28
28
|
)}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
class={cn(
|
|
23
23
|
"absolute size-8 touch-manipulation rounded-full",
|
|
24
24
|
emblaCtx.orientation === "horizontal"
|
|
25
|
-
? "
|
|
25
|
+
? "top-1/2 -left-12 -translate-y-1/2"
|
|
26
26
|
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
27
27
|
className
|
|
28
28
|
)}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<CheckboxPrimitive.Root
|
|
17
17
|
bind:ref
|
|
18
18
|
class={cn(
|
|
19
|
-
"border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content size-4 shrink-0 rounded-sm border focus-visible:
|
|
19
|
+
"border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content size-4 shrink-0 rounded-sm border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",
|
|
20
20
|
className
|
|
21
21
|
)}
|
|
22
22
|
bind:checked
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<Dialog.Root bind:open {...restProps}>
|
|
22
22
|
<Dialog.Content class="overflow-hidden p-0 shadow-lg" {portalProps}>
|
|
23
23
|
<Command
|
|
24
|
-
class="[&_[data-command-group]:
|
|
24
|
+
class="[&_[data-command-group]]:px-2 [&_[data-command-group]:not([hidden])_~[data-command-group]]:pt-0 [&_[data-command-input-wrapper]_svg]:h-5 [&_[data-command-input-wrapper]_svg]:w-5 [&_[data-command-input]]:h-12 [&_[data-command-item]]:px-2 [&_[data-command-item]]:py-3 [&_[data-command-item]_svg]:h-5 [&_[data-command-item]_svg]:w-5"
|
|
25
25
|
{...restProps}
|
|
26
26
|
bind:value
|
|
27
27
|
bind:ref
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<CommandPrimitive.Item
|
|
9
9
|
class={cn(
|
|
10
|
-
"aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default
|
|
10
|
+
"aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
11
11
|
className
|
|
12
12
|
)}
|
|
13
13
|
bind:ref
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<CommandPrimitive.LinkItem
|
|
9
9
|
class={cn(
|
|
10
|
-
"aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default
|
|
10
|
+
"aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
11
11
|
className
|
|
12
12
|
)}
|
|
13
13
|
bind:ref
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
bind:checked
|
|
23
23
|
bind:indeterminate
|
|
24
24
|
class={cn(
|
|
25
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
25
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
26
26
|
className
|
|
27
27
|
)}
|
|
28
28
|
{...restProps}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<ContextMenuPrimitive.Item
|
|
16
16
|
bind:ref
|
|
17
17
|
class={cn(
|
|
18
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
18
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
19
19
|
inset && "pl-8",
|
|
20
20
|
className
|
|
21
21
|
)}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<ContextMenuPrimitive.RadioItem
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
17
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<ContextMenuPrimitive.SubTrigger
|
|
18
18
|
bind:ref
|
|
19
19
|
class={cn(
|
|
20
|
-
"data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default
|
|
20
|
+
"data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",
|
|
21
21
|
inset && "pl-8",
|
|
22
22
|
className
|
|
23
23
|
)}
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
<DialogPrimitive.Content
|
|
23
23
|
bind:ref
|
|
24
24
|
class={cn(
|
|
25
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] bg-background fixed
|
|
25
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] bg-background fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
26
26
|
className
|
|
27
27
|
)}
|
|
28
28
|
{...restProps}
|
|
29
29
|
>
|
|
30
30
|
{@render children?.()}
|
|
31
31
|
<DialogPrimitive.Close
|
|
32
|
-
class="ring-offset-background focus:ring-ring absolute
|
|
32
|
+
class="ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none"
|
|
33
33
|
>
|
|
34
34
|
<X class="size-4" />
|
|
35
35
|
<span class="sr-only">Close</span>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
bind:checked
|
|
23
23
|
bind:indeterminate
|
|
24
24
|
class={cn(
|
|
25
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
25
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
26
26
|
className
|
|
27
27
|
)}
|
|
28
28
|
{...restProps}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<DropdownMenuPrimitive.Item
|
|
16
16
|
bind:ref
|
|
17
17
|
class={cn(
|
|
18
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
18
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
19
19
|
inset && "pl-8",
|
|
20
20
|
className
|
|
21
21
|
)}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<DropdownMenuPrimitive.RadioItem
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
17
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<DropdownMenuPrimitive.SubTrigger
|
|
18
18
|
bind:ref
|
|
19
19
|
class={cn(
|
|
20
|
-
"data-[highlighted]:bg-accent data-[state=open]:bg-accent flex cursor-default
|
|
20
|
+
"data-[highlighted]:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
21
21
|
inset && "pl-8",
|
|
22
22
|
className
|
|
23
23
|
)}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<input
|
|
24
24
|
bind:this={ref}
|
|
25
25
|
class={cn(
|
|
26
|
-
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:
|
|
26
|
+
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
27
27
|
className
|
|
28
28
|
)}
|
|
29
29
|
type="file"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<input
|
|
36
36
|
bind:this={ref}
|
|
37
37
|
class={cn(
|
|
38
|
-
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:
|
|
38
|
+
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
39
39
|
className
|
|
40
40
|
)}
|
|
41
41
|
{type}
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
<LabelPrimitive.Root
|
|
9
9
|
bind:ref
|
|
10
|
-
class={cn("text-sm font-medium
|
|
10
|
+
class={cn("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className)}
|
|
11
11
|
{...restProps}
|
|
12
12
|
/>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
bind:checked
|
|
23
23
|
bind:indeterminate
|
|
24
24
|
class={cn(
|
|
25
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
25
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
26
26
|
className
|
|
27
27
|
)}
|
|
28
28
|
{...restProps}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<MenubarPrimitive.Item
|
|
16
16
|
bind:ref
|
|
17
17
|
class={cn(
|
|
18
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
18
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
19
19
|
inset && "pl-8",
|
|
20
20
|
className
|
|
21
21
|
)}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<MenubarPrimitive.RadioItem
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default
|
|
17
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<MenubarPrimitive.SubTrigger
|
|
18
18
|
bind:ref
|
|
19
19
|
class={cn(
|
|
20
|
-
"data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default
|
|
20
|
+
"data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
21
21
|
inset && "pl-8",
|
|
22
22
|
className
|
|
23
23
|
)}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<MenubarPrimitive.Trigger
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
"data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default
|
|
11
|
+
"data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none select-none",
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<div
|
|
15
15
|
bind:this={ref}
|
|
16
|
-
class={cn("mt-4 flex flex-col space-y-4 sm:flex-row sm:space-
|
|
16
|
+
class={cn("mt-4 flex flex-col space-y-4 sm:flex-row sm:space-y-0 sm:space-x-4", className)}
|
|
17
17
|
{...restProps}
|
|
18
18
|
>
|
|
19
19
|
{@render children?.()}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<ResizablePrimitive.PaneResizer
|
|
18
18
|
bind:ref
|
|
19
19
|
class={cn(
|
|
20
|
-
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:
|
|
20
|
+
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[direction=vertical]:h-px data-[direction=vertical]:w-full data-[direction=vertical]:after:left-0 data-[direction=vertical]:after:h-1 data-[direction=vertical]:after:w-full data-[direction=vertical]:after:translate-x-0 data-[direction=vertical]:after:-translate-y-1/2 [&[data-direction=vertical]>div]:rotate-90",
|
|
21
21
|
className
|
|
22
22
|
)}
|
|
23
23
|
{...restProps}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
bind:ref
|
|
16
16
|
{orientation}
|
|
17
17
|
class={cn(
|
|
18
|
-
"flex touch-none select-none
|
|
18
|
+
"flex touch-none transition-colors select-none",
|
|
19
19
|
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
|
|
20
20
|
orientation === "horizontal" && "h-2.5 w-full border-t border-t-transparent p-px",
|
|
21
21
|
className
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
let { ref = $bindable(null), class: className, ...restProps }: SelectPrimitive.GroupHeadingProps = $props();
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<SelectPrimitive.GroupHeading bind:ref class={cn("py-1.5 pl-8
|
|
8
|
+
<SelectPrimitive.GroupHeading bind:ref class={cn("py-1.5 pr-2 pl-8 text-sm font-semibold", className)} {...restProps} />
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
bind:ref
|
|
18
18
|
{value}
|
|
19
19
|
class={cn(
|
|
20
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default
|
|
20
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
21
21
|
className
|
|
22
22
|
)}
|
|
23
23
|
{...restProps}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<SelectPrimitive.Trigger
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
"border-input bg-background ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:
|
|
17
|
+
"border-input bg-background ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<SheetPrimitive.Content bind:ref class={cn(sheetVariants({ side }), className)} {...restProps}>
|
|
47
47
|
{@render children?.()}
|
|
48
48
|
<SheetPrimitive.Close
|
|
49
|
-
class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute
|
|
49
|
+
class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none"
|
|
50
50
|
>
|
|
51
51
|
<X class="size-4" />
|
|
52
52
|
<span class="sr-only">Close</span>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
bind:this={ref}
|
|
16
16
|
class={cn(
|
|
17
17
|
"bg-background relative flex min-h-svh flex-1 flex-col",
|
|
18
|
-
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[
|
|
18
|
+
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",
|
|
19
19
|
className
|
|
20
20
|
)}
|
|
21
21
|
{...restProps}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
bind:this={ref}
|
|
16
16
|
data-sidebar="menu-badge"
|
|
17
17
|
class={cn(
|
|
18
|
-
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5
|
|
18
|
+
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
|
|
19
19
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
20
20
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
21
21
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<Skeleton class="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />
|
|
29
29
|
{/if}
|
|
30
30
|
<Skeleton
|
|
31
|
-
class="max-w-(--skeleton-width)
|
|
31
|
+
class="h-4 max-w-(--skeleton-width) flex-1"
|
|
32
32
|
data-sidebar="menu-skeleton-text"
|
|
33
33
|
style="--skeleton-width: {width};"
|
|
34
34
|
/>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
onclick={() => sidebar.toggle()}
|
|
23
23
|
title="Toggle Sidebar"
|
|
24
24
|
class={cn(
|
|
25
|
-
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px]
|
|
25
|
+
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
26
26
|
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
27
27
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
28
28
|
"group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
{#if collapsible === "none"}
|
|
27
27
|
<div
|
|
28
|
-
class={cn("bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex
|
|
28
|
+
class={cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className)}
|
|
29
29
|
bind:this={ref}
|
|
30
30
|
{...restProps}
|
|
31
31
|
>
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<!-- This is what handles the sidebar gap on desktop -->
|
|
58
58
|
<div
|
|
59
59
|
class={cn(
|
|
60
|
-
"w-(--sidebar-width)
|
|
60
|
+
"relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
61
61
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
62
62
|
"group-data-[side=right]:rotate-180",
|
|
63
63
|
variant === "floating" || variant === "inset"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
></div>
|
|
68
68
|
<div
|
|
69
69
|
class={cn(
|
|
70
|
-
"
|
|
70
|
+
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
71
71
|
side === "left"
|
|
72
72
|
? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
|
|
73
73
|
: "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
@@ -20,7 +20,7 @@ get along, so we shut typescript up by casting `value` to `never`.
|
|
|
20
20
|
bind:value={value as never}
|
|
21
21
|
{orientation}
|
|
22
22
|
class={cn(
|
|
23
|
-
"relative flex touch-none select-none
|
|
23
|
+
"relative flex touch-none items-center select-none data-[orientation='horizontal']:w-full data-[orientation='vertical']:h-full data-[orientation='vertical']:min-h-44 data-[orientation='vertical']:w-auto data-[orientation='vertical']:flex-col",
|
|
24
24
|
className
|
|
25
25
|
)}
|
|
26
26
|
{...restProps}
|
|
@@ -28,7 +28,7 @@ get along, so we shut typescript up by casting `value` to `never`.
|
|
|
28
28
|
{#snippet children({ thumbs })}
|
|
29
29
|
<span
|
|
30
30
|
data-orientation={orientation}
|
|
31
|
-
class="bg-secondary relative grow overflow-hidden rounded-full data-[orientation='horizontal']:h-2 data-[orientation='
|
|
31
|
+
class="bg-secondary relative grow overflow-hidden rounded-full data-[orientation='horizontal']:h-2 data-[orientation='horizontal']:w-full data-[orientation='vertical']:h-full data-[orientation='vertical']:w-2"
|
|
32
32
|
>
|
|
33
33
|
<SliderPrimitive.Range
|
|
34
34
|
class="bg-primary absolute data-[orientation='horizontal']:h-full data-[orientation='vertical']:w-full"
|
|
@@ -37,7 +37,7 @@ get along, so we shut typescript up by casting `value` to `never`.
|
|
|
37
37
|
{#each thumbs as thumb}
|
|
38
38
|
<SliderPrimitive.Thumb
|
|
39
39
|
index={thumb}
|
|
40
|
-
class="border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:
|
|
40
|
+
class="border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"
|
|
41
41
|
/>
|
|
42
42
|
{/each}
|
|
43
43
|
{/snippet}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
bind:ref
|
|
15
15
|
bind:checked
|
|
16
16
|
class={cn(
|
|
17
|
-
"focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:
|
|
17
|
+
"focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<TabsPrimitive.Content
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
"ring-offset-background focus-visible:ring-ring mt-2 focus-visible:
|
|
11
|
+
"ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<TabsPrimitive.Trigger
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center
|
|
11
|
+
"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<textarea
|
|
15
15
|
bind:this={ref}
|
|
16
16
|
class={cn(
|
|
17
|
-
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base focus-visible:
|
|
17
|
+
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
bind:value
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.4",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"eslint": "^9.21.0",
|
|
59
59
|
"eslint-config-prettier": "^10.0.2",
|
|
60
60
|
"eslint-plugin-svelte": "^3.0.2",
|
|
61
|
-
"happy-dom": "^17.1.
|
|
61
|
+
"happy-dom": "^17.1.9",
|
|
62
62
|
"lucide-svelte": "^0.477.0",
|
|
63
63
|
"prettier": "^3.5.3",
|
|
64
64
|
"prettier-plugin-svelte": "^3.3.3",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"publint": "^0.3.8",
|
|
67
67
|
"svelte": "^5.21.0",
|
|
68
68
|
"svelte-check": "^4.1.4",
|
|
69
|
-
"tailwindcss": "^
|
|
69
|
+
"tailwindcss": "^4.0.9",
|
|
70
70
|
"tslib": "^2.8.1",
|
|
71
71
|
"typescript": "^5.8.2",
|
|
72
72
|
"vite": "^6.2.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"lint": "prettier --check . && eslint .",
|
|
90
90
|
"format": "prettier --write .",
|
|
91
91
|
"test:unit": "vitest",
|
|
92
|
-
"lib": "pnpm dlx shadcn-svelte@
|
|
92
|
+
"lib": "pnpm dlx shadcn-svelte@next add -a -y -o --no-deps && pnpm format && pnpm version --no-git-tag-version patch && ./tw.sh",
|
|
93
93
|
"next": "./next.sh"
|
|
94
94
|
}
|
|
95
95
|
}
|