@kayord/ui 0.14.2 → 0.14.3

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.
Files changed (51) hide show
  1. package/dist/components/custom/data-table/DataTable.svelte +1 -1
  2. package/dist/components/ui/accordion/accordion-content.svelte +1 -1
  3. package/dist/components/ui/alert/alert-title.svelte +1 -1
  4. package/dist/components/ui/alert-dialog/alert-dialog-content.svelte +1 -1
  5. package/dist/components/ui/breadcrumb/breadcrumb-list.svelte +1 -1
  6. package/dist/components/ui/calendar/calendar-months.svelte +1 -1
  7. package/dist/components/ui/card/card-title.svelte +1 -1
  8. package/dist/components/ui/carousel/carousel-next.svelte +1 -1
  9. package/dist/components/ui/carousel/carousel-previous.svelte +1 -1
  10. package/dist/components/ui/checkbox/checkbox.svelte +1 -1
  11. package/dist/components/ui/command/command-dialog.svelte +1 -1
  12. package/dist/components/ui/command/command-item.svelte +1 -1
  13. package/dist/components/ui/command/command-link-item.svelte +1 -1
  14. package/dist/components/ui/command/command-list.svelte +1 -1
  15. package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +1 -1
  16. package/dist/components/ui/context-menu/context-menu-item.svelte +1 -1
  17. package/dist/components/ui/context-menu/context-menu-radio-item.svelte +1 -1
  18. package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +1 -1
  19. package/dist/components/ui/dialog/dialog-content.svelte +2 -2
  20. package/dist/components/ui/dialog/dialog-title.svelte +1 -1
  21. package/dist/components/ui/drawer/drawer-title.svelte +1 -1
  22. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
  23. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
  24. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
  25. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
  26. package/dist/components/ui/form/form-legend.svelte +1 -1
  27. package/dist/components/ui/input/input.svelte +2 -2
  28. package/dist/components/ui/label/label.svelte +1 -1
  29. package/dist/components/ui/menubar/menubar-checkbox-item.svelte +1 -1
  30. package/dist/components/ui/menubar/menubar-item.svelte +1 -1
  31. package/dist/components/ui/menubar/menubar-radio-item.svelte +1 -1
  32. package/dist/components/ui/menubar/menubar-sub-trigger.svelte +1 -1
  33. package/dist/components/ui/menubar/menubar-trigger.svelte +1 -1
  34. package/dist/components/ui/range-calendar/range-calendar-months.svelte +1 -1
  35. package/dist/components/ui/resizable/resizable-handle.svelte +1 -1
  36. package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +1 -1
  37. package/dist/components/ui/select/select-group-heading.svelte +1 -1
  38. package/dist/components/ui/select/select-item.svelte +1 -1
  39. package/dist/components/ui/select/select-trigger.svelte +1 -1
  40. package/dist/components/ui/sheet/sheet-content.svelte +1 -1
  41. package/dist/components/ui/sidebar/sidebar-inset.svelte +1 -1
  42. package/dist/components/ui/sidebar/sidebar-menu-badge.svelte +1 -1
  43. package/dist/components/ui/sidebar/sidebar-menu-skeleton.svelte +1 -1
  44. package/dist/components/ui/sidebar/sidebar-rail.svelte +1 -1
  45. package/dist/components/ui/sidebar/sidebar.svelte +3 -3
  46. package/dist/components/ui/slider/slider.svelte +3 -3
  47. package/dist/components/ui/switch/switch.svelte +1 -1
  48. package/dist/components/ui/tabs/tabs-content.svelte +1 -1
  49. package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
  50. package/dist/components/ui/textarea/textarea.svelte +1 -1
  51. package/package.json +11 -11
@@ -76,7 +76,7 @@
76
76
  <div
77
77
  class={cn(
78
78
  "w-full",
79
- tableStore.isFullscreen ? "bg-background absolute top-0 left-0 z-10 h-screen transition-all" : "w-full",
79
+ tableStore.isFullscreen ? "bg-background absolute left-0 top-0 z-10 h-screen transition-all" : "w-full",
80
80
  className
81
81
  )}
82
82
  >
@@ -18,7 +18,7 @@
18
18
  )}
19
19
  {...restProps}
20
20
  >
21
- <div class="pt-0 pb-4">
21
+ <div class="pb-4 pt-0">
22
22
  {@render children?.()}
23
23
  </div>
24
24
  </AccordionPrimitive.Content>
@@ -18,7 +18,7 @@
18
18
  role="heading"
19
19
  aria-level={level}
20
20
  bind:this={ref}
21
- class={cn("mb-1 leading-none font-medium tracking-tight", className)}
21
+ class={cn("mb-1 font-medium leading-none tracking-tight", className)}
22
22
  {...restProps}
23
23
  >
24
24
  {@render children?.()}
@@ -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 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",
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 left-[50%] top-[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 text-sm break-words sm:gap-2.5", className)}
11
+ class={cn("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm 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-y-0 sm:space-x-4", className)}
16
+ class={cn("mt-4 flex flex-col space-y-4 sm:flex-row sm:space-x-4 sm:space-y-0", 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 leading-none font-semibold tracking-tight", className)}
21
+ class={cn("text-2xl font-semibold leading-none 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
- ? "top-1/2 -right-12 -translate-y-1/2"
25
+ ? "-right-12 top-1/2 -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
- ? "top-1/2 -left-12 -translate-y-1/2"
25
+ ? "-left-12 top-1/2 -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: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",
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:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 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]]: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"
24
+ class="[&_[data-command-group]:not([hidden])_~[data-command-group]]:pt-0 [&_[data-command-group]]:px-2 [&_[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 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",
10
+ "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-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 items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
10
+ "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
11
11
  className
12
12
  )}
13
13
  bind:ref
@@ -6,7 +6,7 @@
6
6
  </script>
7
7
 
8
8
  <CommandPrimitive.List
9
- class={cn("max-h-[300px] overflow-x-hidden overflow-y-auto", className)}
9
+ class={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
10
10
  {...restProps}
11
11
  bind:ref
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 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",
25
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-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 items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
18
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-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 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",
17
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-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 items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",
20
+ "data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-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 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",
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 left-[50%] top-[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 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"
32
+ class="ring-offset-background focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"
33
33
  >
34
34
  <X class="size-4" />
35
35
  <span class="sr-only">Close</span>
@@ -7,6 +7,6 @@
7
7
 
8
8
  <DialogPrimitive.Title
9
9
  bind:ref
10
- class={cn("text-lg leading-none font-semibold tracking-tight", className)}
10
+ class={cn("text-lg font-semibold leading-none tracking-tight", className)}
11
11
  {...restProps}
12
12
  />
@@ -7,6 +7,6 @@
7
7
 
8
8
  <DrawerPrimitive.Title
9
9
  bind:ref
10
- class={cn("text-lg leading-none font-semibold tracking-tight", className)}
10
+ class={cn("text-lg font-semibold leading-none tracking-tight", 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 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",
25
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-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 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",
18
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors 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 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",
17
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-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 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",
20
+ "data-[highlighted]:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
21
21
  inset && "pl-8",
22
22
  className
23
23
  )}
@@ -8,6 +8,6 @@
8
8
 
9
9
  <FormPrimitive.Legend
10
10
  bind:ref
11
- class={cn("data-[fs-error]:text-destructive text-sm leading-none font-medium", className)}
11
+ class={cn("data-[fs-error]:text-destructive text-sm font-medium leading-none", className)}
12
12
  {...restProps}
13
13
  />
@@ -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:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
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:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 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:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
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:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 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 leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className)}
10
+ class={cn("text-sm font-medium leading-none 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 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",
25
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-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 items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
18
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-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 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",
17
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-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 items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
20
+ "data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-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 items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none select-none",
11
+ "data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-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-y-0 sm:space-x-4", className)}
16
+ class={cn("mt-4 flex flex-col space-y-4 sm:flex-row sm:space-x-4 sm:space-y-0", 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: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",
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:outline-none focus-visible:ring-1 focus-visible:ring-offset-1 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-y-1/2 data-[direction=vertical]:after:translate-x-0 [&[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 transition-colors select-none",
18
+ "flex touch-none select-none transition-colors",
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 pr-2 pl-8 text-sm font-semibold", className)} {...restProps} />
8
+ <SelectPrimitive.GroupHeading bind:ref class={cn("py-1.5 pl-8 pr-2 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 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",
20
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-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:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
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:outline-none focus:ring-2 focus:ring-offset-2 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 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"
49
+ class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 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-[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",
18
+ "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
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 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
18
+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums",
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="h-4 max-w-(--skeleton-width) flex-1"
31
+ class="max-w-(--skeleton-width) h-4 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 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",
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] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 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 flex h-full w-(--sidebar-width) flex-col", className)}
28
+ class={cn("bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex h-full 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
- "relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
60
+ "w-(--sidebar-width) relative h-svh 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
- "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
70
+ "w-(--sidebar-width) fixed inset-y-0 z-10 hidden h-svh 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 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",
23
+ "relative flex touch-none select-none items-center data-[orientation='vertical']:h-full data-[orientation='vertical']:min-h-44 data-[orientation='horizontal']:w-full 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='horizontal']:w-full data-[orientation='vertical']:h-full data-[orientation='vertical']:w-2"
31
+ class="bg-secondary relative grow overflow-hidden rounded-full data-[orientation='horizontal']:h-2 data-[orientation='vertical']:h-full data-[orientation='horizontal']:w-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:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"
40
+ class="border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 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:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
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:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 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:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
11
+ "ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
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 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",
11
+ "ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 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:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
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:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 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.2",
4
+ "version": "0.14.3",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -34,7 +34,6 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@internationalized/date": "^3.7.0",
37
- "bits-ui": "1.3.4",
38
37
  "clsx": "^2.1.1",
39
38
  "embla-carousel-svelte": "8.5.2",
40
39
  "formsnap": "2.0.0",
@@ -53,22 +52,23 @@
53
52
  "@tailwindcss/vite": "^4.0.9",
54
53
  "@testing-library/jest-dom": "^6.6.3",
55
54
  "@testing-library/svelte": "^5.2.7",
56
- "@typescript-eslint/eslint-plugin": "^8.25.0",
57
- "@typescript-eslint/parser": "^8.25.0",
55
+ "@typescript-eslint/eslint-plugin": "^8.26.0",
56
+ "@typescript-eslint/parser": "^8.26.0",
57
+ "bits-ui": "1.3.5",
58
58
  "eslint": "^9.21.0",
59
59
  "eslint-config-prettier": "^10.0.2",
60
60
  "eslint-plugin-svelte": "^3.0.2",
61
61
  "happy-dom": "^17.1.8",
62
- "lucide-svelte": "^0.476.0",
63
- "prettier": "^3.5.2",
62
+ "lucide-svelte": "^0.477.0",
63
+ "prettier": "^3.5.3",
64
64
  "prettier-plugin-svelte": "^3.3.3",
65
65
  "prettier-plugin-tailwindcss": "^0.6.11",
66
- "publint": "^0.3.6",
67
- "svelte": "^5.20.5",
66
+ "publint": "^0.3.8",
67
+ "svelte": "^5.21.0",
68
68
  "svelte-check": "^4.1.4",
69
- "tailwindcss": "^4.0.9",
69
+ "tailwindcss": "^3.0.0",
70
70
  "tslib": "^2.8.1",
71
- "typescript": "^5.7.3",
71
+ "typescript": "^5.8.2",
72
72
  "vite": "^6.2.0",
73
73
  "vitest": "^3.0.7",
74
74
  "zod": "^3.24.2"
@@ -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@next add -a -y -o --no-deps && pnpm format && pnpm version --no-git-tag-version patch && ./tw.sh",
92
+ "lib": "pnpm dlx shadcn-svelte@1.0.0next.4 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
  }