@kayord/ui 0.8.4 → 0.8.5

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 (39) hide show
  1. package/dist/components/ui/accordion/accordion-content.svelte +1 -1
  2. package/dist/components/ui/alert/alert.svelte +2 -2
  3. package/dist/components/ui/alert/index.d.ts +2 -2
  4. package/dist/components/ui/alert/index.js +2 -2
  5. package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte +1 -1
  6. package/dist/components/ui/alert-dialog/index.d.ts +2 -2
  7. package/dist/components/ui/alert-dialog/index.js +2 -2
  8. package/dist/components/ui/badge/badge.svelte +2 -2
  9. package/dist/components/ui/badge/index.d.ts +2 -2
  10. package/dist/components/ui/badge/index.js +4 -4
  11. package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +2 -2
  12. package/dist/components/ui/button/button.svelte +1 -1
  13. package/dist/components/ui/button/index.d.ts +3 -3
  14. package/dist/components/ui/button/index.js +2 -2
  15. package/dist/components/ui/carousel/carousel-content.svelte +2 -2
  16. package/dist/components/ui/carousel/carousel-item.svelte +2 -2
  17. package/dist/components/ui/carousel/carousel-next.svelte +3 -3
  18. package/dist/components/ui/carousel/carousel-previous.svelte +3 -3
  19. package/dist/components/ui/carousel/carousel.svelte +3 -3
  20. package/dist/components/ui/carousel/context.d.ts +1 -1
  21. package/dist/components/ui/dialog/dialog-overlay.svelte +1 -1
  22. package/dist/components/ui/dialog/index.d.ts +2 -2
  23. package/dist/components/ui/dialog/index.js +2 -2
  24. package/dist/components/ui/pagination/pagination-ellipsis.svelte +2 -2
  25. package/dist/components/ui/resizable/index.d.ts +1 -1
  26. package/dist/components/ui/resizable/index.js +1 -1
  27. package/dist/components/ui/scroll-area/index.d.ts +2 -2
  28. package/dist/components/ui/scroll-area/index.js +2 -2
  29. package/dist/components/ui/scroll-area/scroll-area.svelte +1 -1
  30. package/dist/components/ui/select/select-content.svelte +1 -1
  31. package/dist/components/ui/select/select-item.svelte +3 -3
  32. package/dist/components/ui/sheet/sheet-content.svelte +3 -3
  33. package/dist/components/ui/sheet/sheet-overlay.svelte +1 -1
  34. package/dist/components/ui/toggle/index.d.ts +3 -3
  35. package/dist/components/ui/toggle/index.js +3 -3
  36. package/dist/components/ui/toggle/toggle.svelte.d.ts +1 -1
  37. package/dist/components/ui/toggle-group/index.d.ts +1 -1
  38. package/dist/components/ui/toggle-group/toggle-group-item.svelte +1 -1
  39. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  <script>import { Accordion as AccordionPrimitive } from "bits-ui";
2
- import { cn } from "../../../utils.js";
3
2
  import { slide } from "svelte/transition";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export let transition = slide;
6
6
  export let transitionConfig = {
@@ -1,5 +1,5 @@
1
- <script>import { cn } from "../../../utils.js";
2
- import { alertVariants } from "./index.js";
1
+ <script>import { alertVariants } from "./index.js";
2
+ import { cn } from "../../../utils.js";
3
3
  let className = void 0;
4
4
  export let variant = "default";
5
5
  export { className as class };
@@ -7,7 +7,7 @@ export declare const alertVariants: import("tailwind-variants").TVReturnType<{
7
7
  default: string;
8
8
  destructive: string;
9
9
  };
10
- }, undefined, "relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11", import("tailwind-variants/dist/config").TVConfig<{
10
+ }, undefined, "relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", import("tailwind-variants/dist/config").TVConfig<{
11
11
  variant: {
12
12
  default: string;
13
13
  destructive: string;
@@ -27,7 +27,7 @@ export declare const alertVariants: import("tailwind-variants").TVReturnType<{
27
27
  default: string;
28
28
  destructive: string;
29
29
  };
30
- }, undefined, "relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11", import("tailwind-variants/dist/config").TVConfig<{
30
+ }, undefined, "relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", import("tailwind-variants/dist/config").TVConfig<{
31
31
  variant: {
32
32
  default: string;
33
33
  destructive: string;
@@ -3,11 +3,11 @@ import Root from "./alert.svelte";
3
3
  import Description from "./alert-description.svelte";
4
4
  import Title from "./alert-title.svelte";
5
5
  export const alertVariants = tv({
6
- base: "relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11",
6
+ base: "relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
7
7
  variants: {
8
8
  variant: {
9
9
  default: "bg-background text-foreground",
10
- destructive: "text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",
10
+ destructive: "border-destructive/50 text-destructive text-destructive dark:border-destructive [&>svg]:text-destructive",
11
11
  },
12
12
  },
13
13
  defaultVariants: {
@@ -1,6 +1,6 @@
1
1
  <script>import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
2
- import { cn } from "../../../utils.js";
3
2
  import { fade } from "svelte/transition";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export let transition = fade;
6
6
  export let transitionConfig = {
@@ -1,6 +1,4 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
2
- declare const Root: typeof AlertDialogPrimitive.Root;
3
- declare const Trigger: typeof AlertDialogPrimitive.Trigger;
4
2
  import Title from "./alert-dialog-title.svelte";
5
3
  import Action from "./alert-dialog-action.svelte";
6
4
  import Cancel from "./alert-dialog-cancel.svelte";
@@ -10,4 +8,6 @@ import Header from "./alert-dialog-header.svelte";
10
8
  import Overlay from "./alert-dialog-overlay.svelte";
11
9
  import Content from "./alert-dialog-content.svelte";
12
10
  import Description from "./alert-dialog-description.svelte";
11
+ declare const Root: typeof AlertDialogPrimitive.Root;
12
+ declare const Trigger: typeof AlertDialogPrimitive.Trigger;
13
13
  export { Root, Title, Action, Cancel, Portal, Footer, Header, Trigger, Overlay, Content, Description, Root as AlertDialog, Title as AlertDialogTitle, Action as AlertDialogAction, Cancel as AlertDialogCancel, Portal as AlertDialogPortal, Footer as AlertDialogFooter, Header as AlertDialogHeader, Trigger as AlertDialogTrigger, Overlay as AlertDialogOverlay, Content as AlertDialogContent, Description as AlertDialogDescription, };
@@ -1,6 +1,4 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
2
- const Root = AlertDialogPrimitive.Root;
3
- const Trigger = AlertDialogPrimitive.Trigger;
4
2
  import Title from "./alert-dialog-title.svelte";
5
3
  import Action from "./alert-dialog-action.svelte";
6
4
  import Cancel from "./alert-dialog-cancel.svelte";
@@ -10,6 +8,8 @@ import Header from "./alert-dialog-header.svelte";
10
8
  import Overlay from "./alert-dialog-overlay.svelte";
11
9
  import Content from "./alert-dialog-content.svelte";
12
10
  import Description from "./alert-dialog-description.svelte";
11
+ const Root = AlertDialogPrimitive.Root;
12
+ const Trigger = AlertDialogPrimitive.Trigger;
13
13
  export { Root, Title, Action, Cancel, Portal, Footer, Header, Trigger, Overlay, Content, Description,
14
14
  //
15
15
  Root as AlertDialog, Title as AlertDialogTitle, Action as AlertDialogAction, Cancel as AlertDialogCancel, Portal as AlertDialogPortal, Footer as AlertDialogFooter, Header as AlertDialogHeader, Trigger as AlertDialogTrigger, Overlay as AlertDialogOverlay, Content as AlertDialogContent, Description as AlertDialogDescription, };
@@ -1,5 +1,5 @@
1
- <script>import { cn } from "../../../utils.js";
2
- import { badgeVariants } from "./index.js";
1
+ <script>import { badgeVariants } from "./index.js";
2
+ import { cn } from "../../../utils.js";
3
3
  let className = void 0;
4
4
  export let href = void 0;
5
5
  export let variant = "default";
@@ -7,7 +7,7 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
7
7
  destructive: string;
8
8
  outline: string;
9
9
  };
10
- }, undefined, "inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none select-none focus:ring-2 focus:ring-ring focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
10
+ }, undefined, "inline-flex select-none items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
11
11
  variant: {
12
12
  default: string;
13
13
  secondary: string;
@@ -35,7 +35,7 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
35
35
  destructive: string;
36
36
  outline: string;
37
37
  };
38
- }, undefined, "inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none select-none focus:ring-2 focus:ring-ring focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
38
+ }, undefined, "inline-flex select-none items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
39
39
  variant: {
40
40
  default: string;
41
41
  secondary: string;
@@ -1,12 +1,12 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export { default as Badge } from "./badge.svelte";
3
3
  export const badgeVariants = tv({
4
- base: "inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none select-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
4
+ base: "inline-flex select-none items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
5
5
  variants: {
6
6
  variant: {
7
- default: "bg-primary hover:bg-primary/80 border-transparent text-primary-foreground",
8
- secondary: "bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",
9
- destructive: "bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground",
7
+ default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
8
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
9
+ destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
10
10
  outline: "text-foreground",
11
11
  },
12
12
  },
@@ -1,5 +1,5 @@
1
- <script>import { cn } from "../../../utils.js";
2
- import Ellipsis from "lucide-svelte/icons/ellipsis";
1
+ <script>import Ellipsis from "lucide-svelte/icons/ellipsis";
2
+ import { cn } from "../../../utils.js";
3
3
  export let el = void 0;
4
4
  let className = void 0;
5
5
  export { className as class };
@@ -1,6 +1,6 @@
1
1
  <script>import { Button as ButtonPrimitive } from "bits-ui";
2
- import { cn } from "../../../utils.js";
3
2
  import { buttonVariants } from "./index.js";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export let variant = "default";
6
6
  export let size = "default";
@@ -1,6 +1,6 @@
1
- import Root from "./button.svelte";
2
1
  import { type VariantProps } from "tailwind-variants";
3
2
  import type { Button as ButtonPrimitive } from "bits-ui";
3
+ import Root from "./button.svelte";
4
4
  declare const buttonVariants: import("tailwind-variants").TVReturnType<{
5
5
  variant: {
6
6
  default: string;
@@ -16,7 +16,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
16
16
  lg: string;
17
17
  icon: string;
18
18
  };
19
- }, undefined, "inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
19
+ }, undefined, "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
20
20
  variant: {
21
21
  default: string;
22
22
  destructive: string;
@@ -76,7 +76,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
76
76
  lg: string;
77
77
  icon: string;
78
78
  };
79
- }, undefined, "inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
79
+ }, undefined, "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
80
80
  variant: {
81
81
  default: string;
82
82
  destructive: string;
@@ -1,7 +1,7 @@
1
- import Root from "./button.svelte";
2
1
  import { tv } from "tailwind-variants";
2
+ import Root from "./button.svelte";
3
3
  const buttonVariants = tv({
4
- base: "inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
4
+ base: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
5
5
  variants: {
6
6
  variant: {
7
7
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
@@ -1,6 +1,6 @@
1
- <script>import { cn } from "../../../utils.js";
1
+ <script>import emblaCarouselSvelte from "embla-carousel-svelte";
2
2
  import { getEmblaContext } from "./context.js";
3
- import emblaCarouselSvelte from "embla-carousel-svelte";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export { className as class };
6
6
  const { orientation, options, plugins, onInit } = getEmblaContext("<Carousel.Content/>");
@@ -1,5 +1,5 @@
1
- <script>import { cn } from "../../../utils.js";
2
- import { getEmblaContext } from "./context.js";
1
+ <script>import { getEmblaContext } from "./context.js";
2
+ import { cn } from "../../../utils.js";
3
3
  let className = void 0;
4
4
  export { className as class };
5
5
  const { orientation } = getEmblaContext("<Carousel.Item/>");
@@ -1,7 +1,7 @@
1
- <script>import { Button, buttonVariants } from "../button/index.js";
2
- import { cn } from "../../../utils.js";
3
- import ArrowRight from "lucide-svelte/icons/arrow-right";
1
+ <script>import ArrowRight from "lucide-svelte/icons/arrow-right";
4
2
  import { getEmblaContext } from "./context.js";
3
+ import { cn } from "../../../utils.js";
4
+ import { Button } from "../button/index.js";
5
5
  let className = void 0;
6
6
  export { className as class };
7
7
  export let variant = "outline";
@@ -1,7 +1,7 @@
1
- <script>import { Button, buttonVariants } from "../button/index.js";
2
- import { cn } from "../../../utils.js";
3
- import ArrowLeft from "lucide-svelte/icons/arrow-left";
1
+ <script>import ArrowLeft from "lucide-svelte/icons/arrow-left";
4
2
  import { getEmblaContext } from "./context.js";
3
+ import { cn } from "../../../utils.js";
4
+ import { Button } from "../button/index.js";
5
5
  let className = void 0;
6
6
  export { className as class };
7
7
  export let variant = "outline";
@@ -1,7 +1,7 @@
1
- <script>import { setEmblaContex } from "./context.js";
2
- import { cn } from "../../../utils.js";
3
- import { writable } from "svelte/store";
1
+ <script>import { writable } from "svelte/store";
4
2
  import { onDestroy } from "svelte";
3
+ import { setEmblaContex } from "./context.js";
4
+ import { cn } from "../../../utils.js";
5
5
  export let opts = {};
6
6
  export let plugins = [];
7
7
  export let api = void 0;
@@ -2,7 +2,7 @@
2
2
  import type { EmblaCarouselSvelteType } from "embla-carousel-svelte";
3
3
  import type emblaCarouselSvelte from "embla-carousel-svelte";
4
4
  import type { HTMLAttributes } from "svelte/elements";
5
- import type { Writable, Readable } from "svelte/store";
5
+ import type { Readable, Writable } from "svelte/store";
6
6
  export type CarouselAPI = NonNullable<NonNullable<EmblaCarouselSvelteType["$$_attributes"]>["on:emblaInit"]> extends (evt: CustomEvent<infer CarouselAPI>) => void ? CarouselAPI : never;
7
7
  type EmblaCarouselConfig = NonNullable<Parameters<typeof emblaCarouselSvelte>[1]>;
8
8
  export type CarouselOptions = EmblaCarouselConfig["options"];
@@ -1,6 +1,6 @@
1
1
  <script>import { Dialog as DialogPrimitive } from "bits-ui";
2
- import { cn } from "../../../utils.js";
3
2
  import { fade } from "svelte/transition";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export let transition = fade;
6
6
  export let transitionConfig = {
@@ -1,6 +1,4 @@
1
1
  import { Dialog as DialogPrimitive } from "bits-ui";
2
- declare const Root: typeof DialogPrimitive.Root;
3
- declare const Trigger: typeof DialogPrimitive.Trigger;
4
2
  import Title from "./dialog-title.svelte";
5
3
  import Portal from "./dialog-portal.svelte";
6
4
  import Footer from "./dialog-footer.svelte";
@@ -8,4 +6,6 @@ import Header from "./dialog-header.svelte";
8
6
  import Overlay from "./dialog-overlay.svelte";
9
7
  import Content from "./dialog-content.svelte";
10
8
  import Description from "./dialog-description.svelte";
9
+ declare const Root: typeof DialogPrimitive.Root;
10
+ declare const Trigger: typeof DialogPrimitive.Trigger;
11
11
  export { Root, Title, Portal, Footer, Header, Trigger, Overlay, Content, Description, Root as Dialog, Title as DialogTitle, Portal as DialogPortal, Footer as DialogFooter, Header as DialogHeader, Trigger as DialogTrigger, Overlay as DialogOverlay, Content as DialogContent, Description as DialogDescription, };
@@ -1,6 +1,4 @@
1
1
  import { Dialog as DialogPrimitive } from "bits-ui";
2
- const Root = DialogPrimitive.Root;
3
- const Trigger = DialogPrimitive.Trigger;
4
2
  import Title from "./dialog-title.svelte";
5
3
  import Portal from "./dialog-portal.svelte";
6
4
  import Footer from "./dialog-footer.svelte";
@@ -8,6 +6,8 @@ import Header from "./dialog-header.svelte";
8
6
  import Overlay from "./dialog-overlay.svelte";
9
7
  import Content from "./dialog-content.svelte";
10
8
  import Description from "./dialog-description.svelte";
9
+ const Root = DialogPrimitive.Root;
10
+ const Trigger = DialogPrimitive.Trigger;
11
11
  export { Root, Title, Portal, Footer, Header, Trigger, Overlay, Content, Description,
12
12
  //
13
13
  Root as Dialog, Title as DialogTitle, Portal as DialogPortal, Footer as DialogFooter, Header as DialogHeader, Trigger as DialogTrigger, Overlay as DialogOverlay, Content as DialogContent, Description as DialogDescription, };
@@ -1,5 +1,5 @@
1
- <script>import { cn } from "../../../utils.js";
2
- import Ellipsis from "lucide-svelte/icons/ellipsis";
1
+ <script>import Ellipsis from "lucide-svelte/icons/ellipsis";
2
+ import { cn } from "../../../utils.js";
3
3
  let className = void 0;
4
4
  export { className as class };
5
5
  </script>
@@ -1,4 +1,4 @@
1
+ import { Pane } from "paneforge";
1
2
  import Handle from "./resizable-handle.svelte";
2
3
  import PaneGroup from "./resizable-pane-group.svelte";
3
- import { Pane } from "paneforge";
4
4
  export { PaneGroup, Pane, Handle, PaneGroup as ResizablePaneGroup, Pane as ResizablePane, Handle as ResizableHandle, };
@@ -1,6 +1,6 @@
1
+ import { Pane } from "paneforge";
1
2
  import Handle from "./resizable-handle.svelte";
2
3
  import PaneGroup from "./resizable-pane-group.svelte";
3
- import { Pane } from "paneforge";
4
4
  export { PaneGroup, Pane, Handle,
5
5
  //
6
6
  PaneGroup as ResizablePaneGroup, Pane as ResizablePane, Handle as ResizableHandle, };
@@ -1,3 +1,3 @@
1
- import { default as Scrollbar } from "./scroll-area-scrollbar.svelte";
2
- import { default as Root } from "./scroll-area.svelte";
1
+ import Scrollbar from "./scroll-area-scrollbar.svelte";
2
+ import Root from "./scroll-area.svelte";
3
3
  export { Root, Scrollbar, Root as ScrollArea, Scrollbar as ScrollAreaScrollbar, };
@@ -1,5 +1,5 @@
1
- import { default as Scrollbar } from "./scroll-area-scrollbar.svelte";
2
- import { default as Root } from "./scroll-area.svelte";
1
+ import Scrollbar from "./scroll-area-scrollbar.svelte";
2
+ import Root from "./scroll-area.svelte";
3
3
  export { Root, Scrollbar,
4
4
  //,
5
5
  Root as ScrollArea, Scrollbar as ScrollAreaScrollbar, };
@@ -1,6 +1,6 @@
1
1
  <script>import { ScrollArea as ScrollAreaPrimitive } from "bits-ui";
2
- import { cn } from "../../../utils.js";
3
2
  import { Scrollbar } from "./index.js";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export { className as class };
6
6
  export let orientation = "vertical";
@@ -1,6 +1,6 @@
1
1
  <script>import { Select as SelectPrimitive } from "bits-ui";
2
- import { cn, flyAndScale } from "../../../utils.js";
3
2
  import { scale } from "svelte/transition";
3
+ import { cn, flyAndScale } from "../../../utils.js";
4
4
  export let sideOffset = 4;
5
5
  export let inTransition = flyAndScale;
6
6
  export let inTransitionConfig = void 0;
@@ -1,6 +1,6 @@
1
- <script>import { cn } from "../../../utils.js";
2
- import Check from "lucide-svelte/icons/check";
1
+ <script>import Check from "lucide-svelte/icons/check";
3
2
  import { Select as SelectPrimitive } from "bits-ui";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export let value;
6
6
  export let label = void 0;
@@ -30,6 +30,6 @@ export { className as class };
30
30
  </SelectPrimitive.ItemIndicator>
31
31
  </span>
32
32
  <slot>
33
- {label ? label : value}
33
+ {label || value}
34
34
  </slot>
35
35
  </SelectPrimitive.Item>
@@ -1,15 +1,15 @@
1
1
  <script>import { Dialog as SheetPrimitive } from "bits-ui";
2
2
  import X from "lucide-svelte/icons/x";
3
+ import { fly } from "svelte/transition";
3
4
  import { SheetOverlay, SheetPortal, sheetTransitions, sheetVariants } from "./index.js";
4
5
  import { cn } from "../../../utils.js";
5
- import { fly } from "svelte/transition";
6
6
  let className = void 0;
7
7
  export let side = "right";
8
8
  export { className as class };
9
9
  export let inTransition = fly;
10
- export let inTransitionConfig = sheetTransitions[side ? side : "right"]["in"];
10
+ export let inTransitionConfig = sheetTransitions[side ?? "right"].in;
11
11
  export let outTransition = fly;
12
- export let outTransitionConfig = sheetTransitions[side ? side : "right"]["out"];
12
+ export let outTransitionConfig = sheetTransitions[side ?? "right"].out;
13
13
  </script>
14
14
 
15
15
  <SheetPortal>
@@ -1,6 +1,6 @@
1
1
  <script>import { Dialog as SheetPrimitive } from "bits-ui";
2
- import { cn } from "../../../utils.js";
3
2
  import { fade } from "svelte/transition";
3
+ import { cn } from "../../../utils.js";
4
4
  let className = void 0;
5
5
  export let transition = fade;
6
6
  export let transitionConfig = {
@@ -1,5 +1,5 @@
1
- import Root from "./toggle.svelte";
2
1
  import { type VariantProps } from "tailwind-variants";
2
+ import Root from "./toggle.svelte";
3
3
  export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
5
5
  default: string;
@@ -10,7 +10,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
10
10
  sm: string;
11
11
  lg: string;
12
12
  };
13
- }, undefined, "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ring-offset-background hover:bg-muted hover:text-muted-foreground", import("tailwind-variants/dist/config").TVConfig<{
13
+ }, undefined, "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", import("tailwind-variants/dist/config").TVConfig<{
14
14
  variant: {
15
15
  default: string;
16
16
  outline: string;
@@ -50,7 +50,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
50
50
  sm: string;
51
51
  lg: string;
52
52
  };
53
- }, undefined, "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ring-offset-background hover:bg-muted hover:text-muted-foreground", import("tailwind-variants/dist/config").TVConfig<{
53
+ }, undefined, "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", import("tailwind-variants/dist/config").TVConfig<{
54
54
  variant: {
55
55
  default: string;
56
56
  outline: string;
@@ -1,11 +1,11 @@
1
- import Root from "./toggle.svelte";
2
1
  import { tv } from "tailwind-variants";
2
+ import Root from "./toggle.svelte";
3
3
  export const toggleVariants = tv({
4
- base: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ring-offset-background hover:bg-muted hover:text-muted-foreground",
4
+ base: "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
5
5
  variants: {
6
6
  variant: {
7
7
  default: "bg-transparent",
8
- outline: "bg-transparent border border-input hover:bg-accent hover:text-accent-foreground",
8
+ outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
9
9
  },
10
10
  size: {
11
11
  default: "h-10 px-3",
@@ -1,6 +1,6 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  import { Toggle as TogglePrimitive } from "bits-ui";
3
- import { type Variant, type Size } from "./index.js";
3
+ import { type Size, type Variant } from "./index.js";
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  disabled?: boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  import type { VariantProps } from "tailwind-variants";
2
- import type { toggleVariants } from "../toggle/index.js";
3
2
  import Root from "./toggle-group.svelte";
4
3
  import Item from "./toggle-group-item.svelte";
4
+ import type { toggleVariants } from "../toggle/index.js";
5
5
  export type ToggleVariants = VariantProps<typeof toggleVariants>;
6
6
  export declare function setToggleGroupCtx(props: ToggleVariants): void;
7
7
  export declare function getToggleGroupCtx(): ToggleVariants;
@@ -1,6 +1,6 @@
1
1
  <script>import { ToggleGroup as ToggleGroupPrimitive } from "bits-ui";
2
- import { cn } from "../../../utils.js";
3
2
  import { getToggleGroupCtx } from "./index.js";
3
+ import { cn } from "../../../utils.js";
4
4
  import { toggleVariants } from "../toggle/index.js";
5
5
  let className = void 0;
6
6
  export { className as class };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -35,12 +35,12 @@
35
35
  "cmdk-sv": "^0.0.17",
36
36
  "embla-carousel-svelte": "8.0.0",
37
37
  "formsnap": "^1.0.0",
38
- "lucide-svelte": "^0.363.0",
38
+ "lucide-svelte": "^0.364.0",
39
39
  "mode-watcher": "^0.3.0",
40
40
  "paneforge": "^0.0.2",
41
41
  "svelte-headless-table": "^0.18.2",
42
- "svelte-sonner": "^0.3.19",
43
- "sveltekit-superforms": "^2.12.0",
42
+ "svelte-sonner": "^0.3.21",
43
+ "sveltekit-superforms": "^2.12.2",
44
44
  "tailwind-merge": "^2.2.2",
45
45
  "tailwind-variants": "^0.2.1",
46
46
  "vaul-svelte": "^0.3.0",