@kayord/ui 1.1.17 → 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.
- package/dist/components/ui/button/button.svelte +2 -0
- package/dist/components/ui/button/button.svelte.d.ts +6 -0
- package/dist/components/ui/button-group/button-group-separator.svelte +14 -0
- package/dist/components/ui/button-group/button-group-separator.svelte.d.ts +13 -0
- package/dist/components/ui/button-group/button-group-text.svelte +33 -0
- package/dist/components/ui/button-group/button-group-text.svelte.d.ts +10 -0
- package/dist/components/ui/button-group/button-group.svelte +44 -0
- package/dist/components/ui/button-group/button-group.svelte.d.ts +25 -0
- package/dist/components/ui/button-group/index.d.ts +4 -0
- package/dist/components/ui/button-group/index.js +6 -0
- package/dist/components/ui/empty/empty-content.svelte +14 -0
- package/dist/components/ui/empty/empty-content.svelte.d.ts +4 -0
- package/dist/components/ui/empty/empty-description.svelte +17 -0
- package/dist/components/ui/empty/empty-description.svelte.d.ts +4 -0
- package/dist/components/ui/empty/empty-header.svelte +14 -0
- package/dist/components/ui/empty/empty-header.svelte.d.ts +4 -0
- package/dist/components/ui/empty/empty-media.svelte +39 -0
- package/dist/components/ui/empty/empty-media.svelte.d.ts +25 -0
- package/dist/components/ui/empty/empty-title.svelte +10 -0
- package/dist/components/ui/empty/empty-title.svelte.d.ts +4 -0
- package/dist/components/ui/empty/empty.svelte +17 -0
- package/dist/components/ui/empty/empty.svelte.d.ts +4 -0
- package/dist/components/ui/empty/index.d.ts +7 -0
- package/dist/components/ui/empty/index.js +9 -0
- package/dist/components/ui/field/field-content.svelte +14 -0
- package/dist/components/ui/field/field-content.svelte.d.ts +4 -0
- package/dist/components/ui/field/field-description.svelte +19 -0
- package/dist/components/ui/field/field-description.svelte.d.ts +4 -0
- package/dist/components/ui/field/field-error.svelte +56 -0
- package/dist/components/ui/field/field-error.svelte.d.ts +11 -0
- package/dist/components/ui/field/field-group.svelte +17 -0
- package/dist/components/ui/field/field-group.svelte.d.ts +4 -0
- package/dist/components/ui/field/field-label.svelte +21 -0
- package/dist/components/ui/field/field-label.svelte.d.ts +10 -0
- package/dist/components/ui/field/field-legend.svelte +22 -0
- package/dist/components/ui/field/field-legend.svelte.d.ts +7 -0
- package/dist/components/ui/field/field-separator.svelte +33 -0
- package/dist/components/ui/field/field-separator.svelte.d.ts +8 -0
- package/dist/components/ui/field/field-set.svelte +18 -0
- package/dist/components/ui/field/field-set.svelte.d.ts +4 -0
- package/dist/components/ui/field/field-title.svelte +17 -0
- package/dist/components/ui/field/field-title.svelte.d.ts +4 -0
- package/dist/components/ui/field/field.svelte +51 -0
- package/dist/components/ui/field/field.svelte.d.ts +28 -0
- package/dist/components/ui/field/index.d.ts +11 -0
- package/dist/components/ui/field/index.js +13 -0
- package/dist/components/ui/form/form-button.svelte +3 -3
- package/dist/components/ui/form/form-button.svelte.d.ts +2 -2
- package/dist/components/ui/index.d.ts +7 -0
- package/dist/components/ui/index.js +7 -0
- package/dist/components/ui/input/input.svelte +3 -2
- package/dist/components/ui/input-group/index.d.ts +7 -0
- package/dist/components/ui/input-group/index.js +9 -0
- package/dist/components/ui/input-group/input-group-addon.svelte +50 -0
- package/dist/components/ui/input-group/input-group-addon.svelte.d.ts +31 -0
- package/dist/components/ui/input-group/input-group-button.svelte +41 -0
- package/dist/components/ui/input-group/input-group-button.svelte.d.ts +32 -0
- package/dist/components/ui/input-group/input-group-input.svelte +16 -0
- package/dist/components/ui/input-group/input-group-input.svelte.d.ts +11 -0
- package/dist/components/ui/input-group/input-group-text.svelte +16 -0
- package/dist/components/ui/input-group/input-group-text.svelte.d.ts +4 -0
- package/dist/components/ui/input-group/input-group-textarea.svelte +16 -0
- package/dist/components/ui/input-group/input-group-textarea.svelte.d.ts +3 -0
- package/dist/components/ui/input-group/input-group.svelte +32 -0
- package/dist/components/ui/input-group/input-group.svelte.d.ts +4 -0
- package/dist/components/ui/input-otp/input-otp-slot.svelte +1 -1
- package/dist/components/ui/item/index.d.ts +11 -0
- package/dist/components/ui/item/index.js +13 -0
- package/dist/components/ui/item/item-actions.svelte +10 -0
- package/dist/components/ui/item/item-actions.svelte.d.ts +4 -0
- package/dist/components/ui/item/item-content.svelte +14 -0
- package/dist/components/ui/item/item-content.svelte.d.ts +4 -0
- package/dist/components/ui/item/item-description.svelte +18 -0
- package/dist/components/ui/item/item-description.svelte.d.ts +4 -0
- package/dist/components/ui/item/item-footer.svelte +10 -0
- package/dist/components/ui/item/item-footer.svelte.d.ts +4 -0
- package/dist/components/ui/item/item-group.svelte +10 -0
- package/dist/components/ui/item/item-group.svelte.d.ts +4 -0
- package/dist/components/ui/item/item-header.svelte +10 -0
- package/dist/components/ui/item/item-header.svelte.d.ts +4 -0
- package/dist/components/ui/item/item-media.svelte +35 -0
- package/dist/components/ui/item/item-media.svelte.d.ts +28 -0
- package/dist/components/ui/item/item-separator.svelte +9 -0
- package/dist/components/ui/item/item-separator.svelte.d.ts +13 -0
- package/dist/components/ui/item/item-title.svelte +14 -0
- package/dist/components/ui/item/item-title.svelte.d.ts +4 -0
- package/dist/components/ui/item/item.svelte +61 -0
- package/dist/components/ui/item/item.svelte.d.ts +46 -0
- package/dist/components/ui/kbd/index.d.ts +3 -0
- package/dist/components/ui/kbd/index.js +5 -0
- package/dist/components/ui/kbd/kbd-group.svelte +10 -0
- package/dist/components/ui/kbd/kbd-group.svelte.d.ts +4 -0
- package/dist/components/ui/kbd/kbd.svelte +19 -0
- package/dist/components/ui/kbd/kbd.svelte.d.ts +4 -0
- package/dist/components/ui/separator/separator.svelte +7 -2
- package/dist/components/ui/spinner/index.d.ts +1 -0
- package/dist/components/ui/spinner/index.js +1 -0
- package/dist/components/ui/spinner/spinner.svelte +11 -0
- package/dist/components/ui/spinner/spinner.svelte.d.ts +3 -0
- package/dist/components/ui/textarea/textarea.svelte +2 -1
- package/package.json +7 -7
|
@@ -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,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,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,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,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,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,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,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>
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
import { Separator as SeparatorPrimitive } from "bits-ui";
|
|
3
3
|
import { cn } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
let {
|
|
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=
|
|
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} />
|
|
@@ -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=
|
|
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.
|
|
4
|
+
"version": "1.1.18",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@lucide/svelte": "^0.544.0",
|
|
51
51
|
"@sveltejs/adapter-auto": "^6.1.1",
|
|
52
|
-
"@sveltejs/kit": "^2.
|
|
52
|
+
"@sveltejs/kit": "^2.44.0",
|
|
53
53
|
"@sveltejs/package": "^2.5.4",
|
|
54
54
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
55
55
|
"@tailwindcss/vite": "^4.1.14",
|
|
@@ -58,8 +58,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.
|
|
62
|
-
"@typescript-eslint/parser": "^8.
|
|
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",
|
|
@@ -71,8 +71,8 @@
|
|
|
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.
|
|
75
|
-
"svelte": "5.39.
|
|
74
|
+
"publint": "^0.3.14",
|
|
75
|
+
"svelte": "5.39.9",
|
|
76
76
|
"svelte-check": "^4.3.2",
|
|
77
77
|
"sveltekit-superforms": "^2.27.2",
|
|
78
78
|
"tailwindcss": "^4.1.14",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"typescript": "^5.9.3",
|
|
82
82
|
"vite": "^7.1.9",
|
|
83
83
|
"vitest": "^3.2.4",
|
|
84
|
-
"zod": "4.1.
|
|
84
|
+
"zod": "4.1.12"
|
|
85
85
|
},
|
|
86
86
|
"svelte": "./dist/index.js",
|
|
87
87
|
"types": "./dist/index.d.ts",
|