@kayord/ui 1.1.16 → 1.1.18

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 (101) hide show
  1. package/dist/components/ui/button/button.svelte +2 -0
  2. package/dist/components/ui/button/button.svelte.d.ts +6 -0
  3. package/dist/components/ui/button-group/button-group-separator.svelte +14 -0
  4. package/dist/components/ui/button-group/button-group-separator.svelte.d.ts +13 -0
  5. package/dist/components/ui/button-group/button-group-text.svelte +33 -0
  6. package/dist/components/ui/button-group/button-group-text.svelte.d.ts +10 -0
  7. package/dist/components/ui/button-group/button-group.svelte +44 -0
  8. package/dist/components/ui/button-group/button-group.svelte.d.ts +25 -0
  9. package/dist/components/ui/button-group/index.d.ts +4 -0
  10. package/dist/components/ui/button-group/index.js +6 -0
  11. package/dist/components/ui/empty/empty-content.svelte +14 -0
  12. package/dist/components/ui/empty/empty-content.svelte.d.ts +4 -0
  13. package/dist/components/ui/empty/empty-description.svelte +17 -0
  14. package/dist/components/ui/empty/empty-description.svelte.d.ts +4 -0
  15. package/dist/components/ui/empty/empty-header.svelte +14 -0
  16. package/dist/components/ui/empty/empty-header.svelte.d.ts +4 -0
  17. package/dist/components/ui/empty/empty-media.svelte +39 -0
  18. package/dist/components/ui/empty/empty-media.svelte.d.ts +25 -0
  19. package/dist/components/ui/empty/empty-title.svelte +10 -0
  20. package/dist/components/ui/empty/empty-title.svelte.d.ts +4 -0
  21. package/dist/components/ui/empty/empty.svelte +17 -0
  22. package/dist/components/ui/empty/empty.svelte.d.ts +4 -0
  23. package/dist/components/ui/empty/index.d.ts +7 -0
  24. package/dist/components/ui/empty/index.js +9 -0
  25. package/dist/components/ui/field/field-content.svelte +14 -0
  26. package/dist/components/ui/field/field-content.svelte.d.ts +4 -0
  27. package/dist/components/ui/field/field-description.svelte +19 -0
  28. package/dist/components/ui/field/field-description.svelte.d.ts +4 -0
  29. package/dist/components/ui/field/field-error.svelte +56 -0
  30. package/dist/components/ui/field/field-error.svelte.d.ts +11 -0
  31. package/dist/components/ui/field/field-group.svelte +17 -0
  32. package/dist/components/ui/field/field-group.svelte.d.ts +4 -0
  33. package/dist/components/ui/field/field-label.svelte +21 -0
  34. package/dist/components/ui/field/field-label.svelte.d.ts +10 -0
  35. package/dist/components/ui/field/field-legend.svelte +22 -0
  36. package/dist/components/ui/field/field-legend.svelte.d.ts +7 -0
  37. package/dist/components/ui/field/field-separator.svelte +33 -0
  38. package/dist/components/ui/field/field-separator.svelte.d.ts +8 -0
  39. package/dist/components/ui/field/field-set.svelte +18 -0
  40. package/dist/components/ui/field/field-set.svelte.d.ts +4 -0
  41. package/dist/components/ui/field/field-title.svelte +17 -0
  42. package/dist/components/ui/field/field-title.svelte.d.ts +4 -0
  43. package/dist/components/ui/field/field.svelte +51 -0
  44. package/dist/components/ui/field/field.svelte.d.ts +28 -0
  45. package/dist/components/ui/field/index.d.ts +11 -0
  46. package/dist/components/ui/field/index.js +13 -0
  47. package/dist/components/ui/form/form-button.svelte +3 -3
  48. package/dist/components/ui/form/form-button.svelte.d.ts +2 -2
  49. package/dist/components/ui/index.d.ts +7 -0
  50. package/dist/components/ui/index.js +7 -0
  51. package/dist/components/ui/input/input.svelte +3 -2
  52. package/dist/components/ui/input-group/index.d.ts +7 -0
  53. package/dist/components/ui/input-group/index.js +9 -0
  54. package/dist/components/ui/input-group/input-group-addon.svelte +50 -0
  55. package/dist/components/ui/input-group/input-group-addon.svelte.d.ts +31 -0
  56. package/dist/components/ui/input-group/input-group-button.svelte +41 -0
  57. package/dist/components/ui/input-group/input-group-button.svelte.d.ts +32 -0
  58. package/dist/components/ui/input-group/input-group-input.svelte +16 -0
  59. package/dist/components/ui/input-group/input-group-input.svelte.d.ts +11 -0
  60. package/dist/components/ui/input-group/input-group-text.svelte +16 -0
  61. package/dist/components/ui/input-group/input-group-text.svelte.d.ts +4 -0
  62. package/dist/components/ui/input-group/input-group-textarea.svelte +16 -0
  63. package/dist/components/ui/input-group/input-group-textarea.svelte.d.ts +3 -0
  64. package/dist/components/ui/input-group/input-group.svelte +32 -0
  65. package/dist/components/ui/input-group/input-group.svelte.d.ts +4 -0
  66. package/dist/components/ui/input-otp/input-otp-slot.svelte +1 -1
  67. package/dist/components/ui/item/index.d.ts +11 -0
  68. package/dist/components/ui/item/index.js +13 -0
  69. package/dist/components/ui/item/item-actions.svelte +10 -0
  70. package/dist/components/ui/item/item-actions.svelte.d.ts +4 -0
  71. package/dist/components/ui/item/item-content.svelte +14 -0
  72. package/dist/components/ui/item/item-content.svelte.d.ts +4 -0
  73. package/dist/components/ui/item/item-description.svelte +18 -0
  74. package/dist/components/ui/item/item-description.svelte.d.ts +4 -0
  75. package/dist/components/ui/item/item-footer.svelte +10 -0
  76. package/dist/components/ui/item/item-footer.svelte.d.ts +4 -0
  77. package/dist/components/ui/item/item-group.svelte +10 -0
  78. package/dist/components/ui/item/item-group.svelte.d.ts +4 -0
  79. package/dist/components/ui/item/item-header.svelte +10 -0
  80. package/dist/components/ui/item/item-header.svelte.d.ts +4 -0
  81. package/dist/components/ui/item/item-media.svelte +35 -0
  82. package/dist/components/ui/item/item-media.svelte.d.ts +28 -0
  83. package/dist/components/ui/item/item-separator.svelte +9 -0
  84. package/dist/components/ui/item/item-separator.svelte.d.ts +13 -0
  85. package/dist/components/ui/item/item-title.svelte +14 -0
  86. package/dist/components/ui/item/item-title.svelte.d.ts +4 -0
  87. package/dist/components/ui/item/item.svelte +61 -0
  88. package/dist/components/ui/item/item.svelte.d.ts +46 -0
  89. package/dist/components/ui/kbd/index.d.ts +3 -0
  90. package/dist/components/ui/kbd/index.js +5 -0
  91. package/dist/components/ui/kbd/kbd-group.svelte +10 -0
  92. package/dist/components/ui/kbd/kbd-group.svelte.d.ts +4 -0
  93. package/dist/components/ui/kbd/kbd.svelte +19 -0
  94. package/dist/components/ui/kbd/kbd.svelte.d.ts +4 -0
  95. package/dist/components/ui/separator/separator.svelte +7 -2
  96. package/dist/components/ui/spinner/index.d.ts +1 -0
  97. package/dist/components/ui/spinner/index.js +1 -0
  98. package/dist/components/ui/spinner/spinner.svelte +11 -0
  99. package/dist/components/ui/spinner/spinner.svelte.d.ts +3 -0
  100. package/dist/components/ui/textarea/textarea.svelte +2 -1
  101. package/package.json +16 -16
@@ -0,0 +1,18 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+
5
+ let { class: className, children, ...restProps }: HTMLAttributes<HTMLParagraphElement> = $props();
6
+ </script>
7
+
8
+ <p
9
+ data-slot="item-description"
10
+ class={cn(
11
+ "text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
12
+ "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
13
+ className
14
+ )}
15
+ {...restProps}
16
+ >
17
+ {@render children?.()}
18
+ </p>
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ declare const ItemDescription: import("svelte").Component<HTMLAttributes<HTMLParagraphElement>, {}, "">;
3
+ type ItemDescription = ReturnType<typeof ItemDescription>;
4
+ export default ItemDescription;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+
5
+ let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
6
+ </script>
7
+
8
+ <div data-slot="item-footer" class={cn("flex basis-full items-center justify-between gap-2", className)} {...restProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ declare const ItemFooter: import("svelte").Component<HTMLAttributes<HTMLDivElement>, {}, "">;
3
+ type ItemFooter = ReturnType<typeof ItemFooter>;
4
+ export default ItemFooter;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+
5
+ let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
6
+ </script>
7
+
8
+ <div role="list" data-slot="item-group" class={cn("group/item-group flex flex-col", className)} {...restProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ declare const ItemGroup: import("svelte").Component<HTMLAttributes<HTMLDivElement>, {}, "">;
3
+ type ItemGroup = ReturnType<typeof ItemGroup>;
4
+ export default ItemGroup;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+
5
+ let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
6
+ </script>
7
+
8
+ <div data-slot="item-header" class={cn("flex basis-full items-center justify-between gap-2", className)} {...restProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ declare const ItemHeader: import("svelte").Component<HTMLAttributes<HTMLDivElement>, {}, "">;
3
+ type ItemHeader = ReturnType<typeof ItemHeader>;
4
+ export default ItemHeader;
@@ -0,0 +1,35 @@
1
+ <script lang="ts" module>
2
+ import { tv, type VariantProps } from "tailwind-variants";
3
+
4
+ const itemMediaVariants = tv({
5
+ base: "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
6
+ variants: {
7
+ variant: {
8
+ default: "bg-transparent",
9
+ icon: "bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
10
+ image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover",
11
+ },
12
+ },
13
+ defaultVariants: {
14
+ variant: "default",
15
+ },
16
+ });
17
+
18
+ export type ItemMediaVariant = VariantProps<typeof itemMediaVariants>["variant"];
19
+ </script>
20
+
21
+ <script lang="ts">
22
+ import { cn } from "../../../utils.js";
23
+ import type { HTMLAttributes } from "svelte/elements";
24
+
25
+ let {
26
+ class: className,
27
+ children,
28
+ variant = "default",
29
+ ...restProps
30
+ }: HTMLAttributes<HTMLDivElement> & { variant?: ItemMediaVariant } = $props();
31
+ </script>
32
+
33
+ <div data-slot="item-media" data-variant={variant} class={cn(itemMediaVariants({ variant }), className)} {...restProps}>
34
+ {@render children?.()}
35
+ </div>
@@ -0,0 +1,28 @@
1
+ import { type VariantProps } from "tailwind-variants";
2
+ declare const itemMediaVariants: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ default: string;
5
+ icon: string;
6
+ image: string;
7
+ };
8
+ }, undefined, "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none", {
9
+ variant: {
10
+ default: string;
11
+ icon: string;
12
+ image: string;
13
+ };
14
+ }, undefined, import("tailwind-variants").TVReturnType<{
15
+ variant: {
16
+ default: string;
17
+ icon: string;
18
+ image: string;
19
+ };
20
+ }, undefined, "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none", unknown, unknown, undefined>>;
21
+ export type ItemMediaVariant = VariantProps<typeof itemMediaVariants>["variant"];
22
+ import type { HTMLAttributes } from "svelte/elements";
23
+ type $$ComponentProps = HTMLAttributes<HTMLDivElement> & {
24
+ variant?: ItemMediaVariant;
25
+ };
26
+ declare const ItemMedia: import("svelte").Component<$$ComponentProps, {}, "">;
27
+ type ItemMedia = ReturnType<typeof ItemMedia>;
28
+ export default ItemMedia;
@@ -0,0 +1,9 @@
1
+ <script lang="ts">
2
+ import { Separator } from "../separator/index.js";
3
+ import { cn } from "../../../utils.js";
4
+ import type { ComponentProps } from "svelte";
5
+
6
+ let { class: className, ...restProps }: ComponentProps<typeof Separator> = $props();
7
+ </script>
8
+
9
+ <Separator data-slot="item-separator" orientation="horizontal" class={cn("my-0", className)} {...restProps} />
@@ -0,0 +1,13 @@
1
+ declare const ItemSeparator: import("svelte").Component<Omit<{
2
+ orientation?: import("bits-ui").Orientation;
3
+ decorative?: boolean;
4
+ }, "child" | "children"> & {
5
+ child?: import("svelte").Snippet<[{
6
+ props: Record<string, unknown>;
7
+ }]> | undefined;
8
+ children?: import("svelte").Snippet<[]> | undefined;
9
+ style?: import("bits-ui").StyleProperties | string | null | undefined;
10
+ ref?: HTMLElement | null | undefined;
11
+ } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, import("bits-ui").SeparatorRootPropsWithoutHTML>, {}, "">;
12
+ type ItemSeparator = ReturnType<typeof ItemSeparator>;
13
+ export default ItemSeparator;
@@ -0,0 +1,14 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+
5
+ let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
6
+ </script>
7
+
8
+ <div
9
+ data-slot="item-title"
10
+ class={cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className)}
11
+ {...restProps}
12
+ >
13
+ {@render children?.()}
14
+ </div>
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ declare const ItemTitle: import("svelte").Component<HTMLAttributes<HTMLDivElement>, {}, "">;
3
+ type ItemTitle = ReturnType<typeof ItemTitle>;
4
+ export default ItemTitle;
@@ -0,0 +1,61 @@
1
+ <script lang="ts" module>
2
+ import { tv, type VariantProps } from "tailwind-variants";
3
+
4
+ const itemVariants = tv({
5
+ base: "group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",
6
+ variants: {
7
+ variant: {
8
+ default: "bg-transparent",
9
+ outline: "border-border",
10
+ muted: "bg-muted/50",
11
+ },
12
+ size: {
13
+ default: "gap-4 p-4",
14
+ sm: "gap-2.5 px-4 py-3",
15
+ },
16
+ },
17
+ defaultVariants: {
18
+ variant: "default",
19
+ size: "default",
20
+ },
21
+ });
22
+
23
+ export type ItemSize = VariantProps<typeof itemVariants>["size"];
24
+ export type ItemVariant = VariantProps<typeof itemVariants>["variant"];
25
+ </script>
26
+
27
+ <script lang="ts">
28
+ import { cn } from "../../../utils.js";
29
+ import type { HTMLAttributes } from "svelte/elements";
30
+ import type { Snippet } from "svelte";
31
+
32
+ let {
33
+ class: className,
34
+ child,
35
+ variant,
36
+ size,
37
+ ...restProps
38
+ }: HTMLAttributes<HTMLDivElement> & {
39
+ child?: Snippet<[{ props: Record<string, unknown> }]>;
40
+ variant?: ItemVariant;
41
+ size?: ItemSize;
42
+ } = $props();
43
+
44
+ const classes = $derived(cn(itemVariants({ variant, size }), className));
45
+
46
+ const mergedProps = $derived({
47
+ class: classes,
48
+ "data-slot": "item",
49
+ "data-variant": variant,
50
+ "data-size": size,
51
+ ...restProps,
52
+ });
53
+ </script>
54
+
55
+ {#if child}
56
+ {@render child({ props: mergedProps })}
57
+ {:else}
58
+ <div {...mergedProps}>
59
+ {@render mergedProps.children?.()}
60
+ </div>
61
+ {/if}
@@ -0,0 +1,46 @@
1
+ import { type VariantProps } from "tailwind-variants";
2
+ declare const itemVariants: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ default: string;
5
+ outline: string;
6
+ muted: string;
7
+ };
8
+ size: {
9
+ default: string;
10
+ sm: string;
11
+ };
12
+ }, undefined, "group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]", {
13
+ variant: {
14
+ default: string;
15
+ outline: string;
16
+ muted: string;
17
+ };
18
+ size: {
19
+ default: string;
20
+ sm: string;
21
+ };
22
+ }, undefined, import("tailwind-variants").TVReturnType<{
23
+ variant: {
24
+ default: string;
25
+ outline: string;
26
+ muted: string;
27
+ };
28
+ size: {
29
+ default: string;
30
+ sm: string;
31
+ };
32
+ }, undefined, "group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]", unknown, unknown, undefined>>;
33
+ export type ItemSize = VariantProps<typeof itemVariants>["size"];
34
+ export type ItemVariant = VariantProps<typeof itemVariants>["variant"];
35
+ import type { HTMLAttributes } from "svelte/elements";
36
+ import type { Snippet } from "svelte";
37
+ type $$ComponentProps = HTMLAttributes<HTMLDivElement> & {
38
+ child?: Snippet<[{
39
+ props: Record<string, unknown>;
40
+ }]>;
41
+ variant?: ItemVariant;
42
+ size?: ItemSize;
43
+ };
44
+ declare const Item: import("svelte").Component<$$ComponentProps, {}, "">;
45
+ type Item = ReturnType<typeof Item>;
46
+ export default Item;
@@ -0,0 +1,3 @@
1
+ import Root from "./kbd.svelte";
2
+ import Group from "./kbd-group.svelte";
3
+ export { Root, Group, Root as Kbd, Group as KbdGroup, };
@@ -0,0 +1,5 @@
1
+ import Root from "./kbd.svelte";
2
+ import Group from "./kbd-group.svelte";
3
+ export { Root, Group,
4
+ //
5
+ Root as Kbd, Group as KbdGroup, };
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+
5
+ let { class: className, children, ...restProps }: HTMLAttributes<HTMLElement> = $props();
6
+ </script>
7
+
8
+ <kbd data-slot="kbd-group" class={cn("inline-flex items-center gap-1", className)} {...restProps}>
9
+ {@render children?.()}
10
+ </kbd>
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ declare const KbdGroup: import("svelte").Component<HTMLAttributes<HTMLElement>, {}, "">;
3
+ type KbdGroup = ReturnType<typeof KbdGroup>;
4
+ export default KbdGroup;
@@ -0,0 +1,19 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+
5
+ let { class: className, children, ...restProps }: HTMLAttributes<HTMLElement> = $props();
6
+ </script>
7
+
8
+ <kbd
9
+ data-slot="kbd"
10
+ class={cn(
11
+ "bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none",
12
+ "[&_svg:not([class*='size-'])]:size-3",
13
+ "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
14
+ className
15
+ )}
16
+ {...restProps}
17
+ >
18
+ {@render children?.()}
19
+ </kbd>
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ declare const Kbd: import("svelte").Component<HTMLAttributes<HTMLElement>, {}, "">;
3
+ type Kbd = ReturnType<typeof Kbd>;
4
+ export default Kbd;
@@ -2,12 +2,17 @@
2
2
  import { Separator as SeparatorPrimitive } from "bits-ui";
3
3
  import { cn } from "../../../utils.js";
4
4
 
5
- let { ref = $bindable(null), class: className, ...restProps }: SeparatorPrimitive.RootProps = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ "data-slot": dataSlot = "separator",
9
+ ...restProps
10
+ }: SeparatorPrimitive.RootProps = $props();
6
11
  </script>
7
12
 
8
13
  <SeparatorPrimitive.Root
9
14
  bind:ref
10
- data-slot="separator"
15
+ data-slot={dataSlot}
11
16
  class={cn(
12
17
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
13
18
  className
@@ -0,0 +1 @@
1
+ export { default as Spinner } from "./spinner.svelte";
@@ -0,0 +1 @@
1
+ export { default as Spinner } from "./spinner.svelte";
@@ -0,0 +1,11 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import Loader2Icon from "@lucide/svelte/icons/loader-2";
4
+ import type { ComponentProps } from "svelte";
5
+
6
+ type Props = ComponentProps<typeof Loader2Icon>;
7
+
8
+ let { class: className, ...restProps }: Props = $props();
9
+ </script>
10
+
11
+ <Loader2Icon role="status" aria-label="Loading" class={cn("size-4 animate-spin", className)} {...restProps} />
@@ -0,0 +1,3 @@
1
+ declare const Spinner: import("svelte").Component<import("@lucide/svelte").IconProps, {}, "">;
2
+ type Spinner = ReturnType<typeof Spinner>;
3
+ export default Spinner;
@@ -6,13 +6,14 @@
6
6
  ref = $bindable(null),
7
7
  value = $bindable(),
8
8
  class: className,
9
+ "data-slot": dataSlot = "textarea",
9
10
  ...restProps
10
11
  }: WithoutChildren<WithElementRef<HTMLTextareaAttributes>> = $props();
11
12
  </script>
12
13
 
13
14
  <textarea
14
15
  bind:this={ref}
15
- data-slot="textarea"
16
+ data-slot={dataSlot}
16
17
  class={cn(
17
18
  "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
18
19
  className
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "1.1.16",
4
+ "version": "1.1.18",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "zod": "^4.0.5"
35
35
  },
36
36
  "dependencies": {
37
- "@internationalized/date": "^3.9.0",
37
+ "@internationalized/date": "^3.10.0",
38
38
  "bits-ui": "2.11.4",
39
39
  "clsx": "^2.1.1",
40
40
  "embla-carousel-svelte": "8.6.0",
@@ -48,22 +48,22 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@lucide/svelte": "^0.544.0",
51
- "@sveltejs/adapter-auto": "^6.1.0",
52
- "@sveltejs/kit": "^2.43.5",
51
+ "@sveltejs/adapter-auto": "^6.1.1",
52
+ "@sveltejs/kit": "^2.44.0",
53
53
  "@sveltejs/package": "^2.5.4",
54
54
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
55
- "@tailwindcss/vite": "^4.1.13",
56
- "@testing-library/jest-dom": "^6.8.0",
55
+ "@tailwindcss/vite": "^4.1.14",
56
+ "@testing-library/jest-dom": "^6.9.1",
57
57
  "@testing-library/svelte": "^5.2.8",
58
58
  "@testing-library/user-event": "^14.6.1",
59
59
  "@types/d3-scale": "^4.0.9",
60
60
  "@types/d3-shape": "^3.1.7",
61
- "@typescript-eslint/eslint-plugin": "^8.44.1",
62
- "@typescript-eslint/parser": "^8.44.1",
61
+ "@typescript-eslint/eslint-plugin": "^8.46.0",
62
+ "@typescript-eslint/parser": "^8.46.0",
63
63
  "@vitest/coverage-v8": "3.2.4",
64
64
  "d3-scale": "^4.0.2",
65
65
  "d3-shape": "^3.2.0",
66
- "eslint": "^9.36.0",
66
+ "eslint": "^9.37.0",
67
67
  "eslint-config-prettier": "^10.1.8",
68
68
  "eslint-plugin-svelte": "^3.12.4",
69
69
  "jsdom": "^27.0.0",
@@ -71,17 +71,17 @@
71
71
  "prettier": "^3.6.2",
72
72
  "prettier-plugin-svelte": "^3.4.0",
73
73
  "prettier-plugin-tailwindcss": "^0.6.14",
74
- "publint": "^0.3.13",
75
- "svelte": "5.39.6",
74
+ "publint": "^0.3.14",
75
+ "svelte": "5.39.9",
76
76
  "svelte-check": "^4.3.2",
77
- "sveltekit-superforms": "^2.27.1",
78
- "tailwindcss": "^4.1.13",
77
+ "sveltekit-superforms": "^2.27.2",
78
+ "tailwindcss": "^4.1.14",
79
79
  "tslib": "^2.8.1",
80
80
  "tw-animate-css": "1.4.0",
81
- "typescript": "^5.9.2",
82
- "vite": "^7.1.7",
81
+ "typescript": "^5.9.3",
82
+ "vite": "^7.1.9",
83
83
  "vitest": "^3.2.4",
84
- "zod": "4.0.10"
84
+ "zod": "4.1.12"
85
85
  },
86
86
  "svelte": "./dist/index.js",
87
87
  "types": "./dist/index.d.ts",