@kayord/ui 0.9.9 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom/data-table/DataTable.svelte +5 -5
- package/dist/components/custom/data-table/DataTableActions.svelte +2 -2
- package/dist/components/custom/data-table/DataTablePagination.svelte +1 -1
- package/dist/components/custom/loader/Loader.svelte +1 -1
- package/dist/components/ui/alert/index.d.ts +2 -2
- package/dist/components/ui/alert/index.js +1 -1
- package/dist/components/ui/badge/index.d.ts +2 -2
- package/dist/components/ui/badge/index.js +4 -4
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte +1 -1
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/button/index.js +2 -2
- package/dist/components/ui/command/command-dialog.svelte.d.ts +17 -17
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +2 -2
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/menubar/menubar-label.svelte.d.ts +1 -1
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte.d.ts +2 -2
- package/dist/components/ui/pagination/pagination-link.svelte.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +1 -1
- package/dist/components/ui/sheet/index.d.ts +2 -2
- package/dist/components/ui/sheet/index.js +1 -1
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +1 -1
- package/dist/components/ui/toggle/index.d.ts +2 -2
- package/dist/components/ui/toggle/index.js +2 -2
- package/dist/components/ui/toggle/toggle.svelte.d.ts +4 -4
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +2 -2
- package/package.json +13 -13
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<div class="w-full">
|
|
49
|
-
<div class="rounded-md border
|
|
49
|
+
<div class="m-2 rounded-md border">
|
|
50
50
|
{#if isLoading}
|
|
51
51
|
<span in:fade={{ duration: 300 }}>
|
|
52
52
|
<ProgressLoading class="h-1" />
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
<div class="h-1"></div>
|
|
56
56
|
{/if}
|
|
57
57
|
{#if $$slots.header || title.length > 0}
|
|
58
|
-
<div class="rounded-t-md
|
|
58
|
+
<div class="overflow-hidden rounded-t-md">
|
|
59
59
|
{#if $$slots.header}
|
|
60
60
|
<slot name="header" />
|
|
61
61
|
{:else}
|
|
62
|
-
<h1 class="
|
|
62
|
+
<h1 class="p-2 text-center text-lg">
|
|
63
63
|
{title}
|
|
64
64
|
</h1>
|
|
65
65
|
{/if}
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
{/if}
|
|
147
147
|
</div>
|
|
148
148
|
<div class="flex items-center">
|
|
149
|
-
<div class="flex-1 text-sm text-muted-foreground
|
|
149
|
+
<div class="flex-1 px-2 text-sm text-muted-foreground">
|
|
150
150
|
{#if isSelectEnabled && showSelected}
|
|
151
151
|
{Object.keys($selectedDataIds).length} of {serverItemCount ?? $rows.length} row(s) selected.
|
|
152
152
|
{/if}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
</div>
|
|
158
158
|
|
|
159
159
|
{#if $$slots.footer}
|
|
160
|
-
<div class="rounded-b-md
|
|
160
|
+
<div class="overflow-hidden rounded-b-md">
|
|
161
161
|
<slot name="footer" />
|
|
162
162
|
</div>
|
|
163
163
|
{/if}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
<DropdownMenu.Root>
|
|
9
9
|
<DropdownMenu.Trigger asChild let:builder>
|
|
10
|
-
<Button variant="ghost" builders={[builder]} size="icon" class="relative
|
|
10
|
+
<Button variant="ghost" builders={[builder]} size="icon" class="relative h-8 w-8 p-0">
|
|
11
11
|
<span class="sr-only">Open menu</span>
|
|
12
|
-
<MoreHorizontalIcon class="
|
|
12
|
+
<MoreHorizontalIcon class="h-4 w-4" />
|
|
13
13
|
</Button>
|
|
14
14
|
</DropdownMenu.Trigger>
|
|
15
15
|
<DropdownMenu.Content>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
const { hasNextPage, hasPreviousPage, pageIndex, pageCount, pageSize } = pluginStates.page;
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
|
-
<div class="flex items-center space-x-6 lg:space-x-8
|
|
15
|
+
<div class="flex items-center justify-end space-x-6 px-2 lg:space-x-8">
|
|
16
16
|
{#if showRowsPerPage}
|
|
17
17
|
<div class="flex items-center space-x-2">
|
|
18
18
|
<p class="text-sm font-medium">Rows per page</p>
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
|
|
23
23
|
{#if isLoading}
|
|
24
24
|
<div class="flex justify-center" in:scale={{ duration: 350 }} out:scale={{ duration: 200 }}>
|
|
25
|
-
<LoaderCircleIcon class={cn("h-8 w-8 animate-spin
|
|
25
|
+
<LoaderCircleIcon class={cn("m-2 h-8 w-8 animate-spin", className)} {...iconProps} />
|
|
26
26
|
</div>
|
|
27
27
|
{/if}
|
|
@@ -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 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4
|
|
10
|
+
}, undefined, "[&>svg]:text-foreground 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", 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 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4
|
|
30
|
+
}, undefined, "[&>svg]:text-foreground 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", import("tailwind-variants/dist/config").TVConfig<{
|
|
31
31
|
variant: {
|
|
32
32
|
default: string;
|
|
33
33
|
destructive: string;
|
|
@@ -3,7 +3,7 @@ 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 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4
|
|
6
|
+
base: "[&>svg]:text-foreground 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",
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
9
9
|
default: "bg-background text-foreground",
|
|
@@ -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 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-
|
|
10
|
+
}, undefined, "focus:ring-ring 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-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 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-
|
|
38
|
+
}, undefined, "focus:ring-ring 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-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 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-
|
|
4
|
+
base: "focus:ring-ring 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-offset-2",
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
|
-
default: "
|
|
8
|
-
secondary: "
|
|
9
|
-
destructive: "
|
|
7
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/80 border-transparent",
|
|
8
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",
|
|
9
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent",
|
|
10
10
|
outline: "text-foreground",
|
|
11
11
|
},
|
|
12
12
|
},
|
|
@@ -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 whitespace-nowrap rounded-md text-sm font-medium
|
|
19
|
+
}, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 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 whitespace-nowrap rounded-md text-sm font-medium
|
|
79
|
+
}, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 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,12 +1,12 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
import Root from "./button.svelte";
|
|
3
3
|
const buttonVariants = tv({
|
|
4
|
-
base: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium
|
|
4
|
+
base: "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 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",
|
|
8
8
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
9
|
-
outline: "border
|
|
9
|
+
outline: "border-input bg-background hover:bg-accent hover:text-accent-foreground border",
|
|
10
10
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
11
11
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
12
12
|
link: "text-primary underline-offset-4 hover:underline",
|
|
@@ -14,24 +14,24 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
14
14
|
children?: any;
|
|
15
15
|
} : {});
|
|
16
16
|
declare const CommandDialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
17
|
-
preventScroll?: boolean;
|
|
18
|
-
closeOnEscape?: boolean;
|
|
19
|
-
closeOnOutsideClick?: boolean;
|
|
20
|
-
onOutsideClick?: (event: PointerEvent | MouseEvent | TouchEvent) => void;
|
|
21
|
-
portal?: HTMLElement | string | null;
|
|
22
|
-
open?: (boolean | undefined) & {};
|
|
23
|
-
onOpenChange?: import("bits-ui/dist/internal").OnChangeFn<boolean
|
|
24
|
-
openFocus?: import("bits-ui").FocusProp;
|
|
25
|
-
closeFocus?: import("bits-ui").FocusProp;
|
|
17
|
+
preventScroll?: boolean | undefined;
|
|
18
|
+
closeOnEscape?: boolean | undefined;
|
|
19
|
+
closeOnOutsideClick?: boolean | undefined;
|
|
20
|
+
onOutsideClick?: ((event: PointerEvent | MouseEvent | TouchEvent) => void) | undefined;
|
|
21
|
+
portal?: (HTMLElement | string | null) | undefined;
|
|
22
|
+
open?: ((boolean | undefined) & {}) | undefined;
|
|
23
|
+
onOpenChange?: import("bits-ui/dist/internal").OnChangeFn<boolean> | undefined;
|
|
24
|
+
openFocus?: import("bits-ui").FocusProp | undefined;
|
|
25
|
+
closeFocus?: import("bits-ui").FocusProp | undefined;
|
|
26
26
|
} & {
|
|
27
|
-
state?: import("svelte/store").Writable<import("cmdk-sv").State
|
|
28
|
-
label?: string;
|
|
29
|
-
shouldFilter?: boolean;
|
|
30
|
-
filter?: (value: string, search: string) => number;
|
|
31
|
-
value?: string;
|
|
32
|
-
onValueChange?: (value: string) => void;
|
|
33
|
-
loop?: boolean;
|
|
34
|
-
ids?: Partial<import("cmdk-sv").CommandIds
|
|
27
|
+
state?: import("svelte/store").Writable<import("cmdk-sv").State> | undefined;
|
|
28
|
+
label?: string | undefined;
|
|
29
|
+
shouldFilter?: boolean | undefined;
|
|
30
|
+
filter?: ((value: string, search: string) => number) | undefined;
|
|
31
|
+
value?: string | undefined;
|
|
32
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
33
|
+
loop?: boolean | undefined;
|
|
34
|
+
ids?: Partial<import("cmdk-sv").CommandIds> | undefined;
|
|
35
35
|
} & import("cmdk-sv/dist/internal").HTMLDivAttributes & {
|
|
36
36
|
onKeydown?: (e: KeyboardEvent) => void;
|
|
37
37
|
asChild?: boolean;
|
|
@@ -14,7 +14,7 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
14
14
|
children?: any;
|
|
15
15
|
} : {});
|
|
16
16
|
declare const ContextMenuLabel: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
17
|
-
asChild?: boolean;
|
|
17
|
+
asChild?: boolean | undefined;
|
|
18
18
|
el?: HTMLDivElement | undefined;
|
|
19
19
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
20
20
|
inset?: boolean;
|
|
@@ -15,8 +15,8 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
15
15
|
children?: any;
|
|
16
16
|
} : {});
|
|
17
17
|
declare const ContextMenuSubTrigger: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
asChild?: boolean;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
asChild?: boolean | undefined;
|
|
20
20
|
el?: HTMLDivElement | undefined;
|
|
21
21
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
22
22
|
inset?: boolean;
|
|
@@ -14,7 +14,7 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
14
14
|
children?: any;
|
|
15
15
|
} : {});
|
|
16
16
|
declare const DropdownMenuLabel: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
17
|
-
asChild?: boolean;
|
|
17
|
+
asChild?: boolean | undefined;
|
|
18
18
|
el?: HTMLDivElement | undefined;
|
|
19
19
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
20
20
|
inset?: boolean;
|
|
@@ -15,8 +15,8 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
15
15
|
children?: any;
|
|
16
16
|
} : {});
|
|
17
17
|
declare const DropdownMenuSubTrigger: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
asChild?: boolean;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
asChild?: boolean | undefined;
|
|
20
20
|
el?: HTMLDivElement | undefined;
|
|
21
21
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
22
22
|
inset?: boolean;
|
|
@@ -6,7 +6,7 @@ export * as Avatar from "./avatar/index.js";
|
|
|
6
6
|
export { Badge, type Variant as BadgeVariant, badgeVariants } from "./badge/index.js";
|
|
7
7
|
export { Button, type ButtonEvents, type ButtonProps, buttonVariants } from "./button/index.js";
|
|
8
8
|
export * as Breadcrumb from "./breadcrumb/index.js";
|
|
9
|
-
export
|
|
9
|
+
export { Calendar } from "./calendar/index.js";
|
|
10
10
|
export * as Card from "./card/index.js";
|
|
11
11
|
export * as Carousel from "./carousel/index.js";
|
|
12
12
|
export { Checkbox } from "./checkbox/index.js";
|
|
@@ -6,7 +6,7 @@ export * as Avatar from "./avatar/index.js";
|
|
|
6
6
|
export { Badge, badgeVariants } from "./badge/index.js";
|
|
7
7
|
export { Button, buttonVariants } from "./button/index.js";
|
|
8
8
|
export * as Breadcrumb from "./breadcrumb/index.js";
|
|
9
|
-
export
|
|
9
|
+
export { Calendar } from "./calendar/index.js";
|
|
10
10
|
export * as Card from "./card/index.js";
|
|
11
11
|
export * as Carousel from "./carousel/index.js";
|
|
12
12
|
export { Checkbox } from "./checkbox/index.js";
|
|
@@ -14,7 +14,7 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
14
14
|
children?: any;
|
|
15
15
|
} : {});
|
|
16
16
|
declare const MenubarLabel: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
17
|
-
asChild?: boolean;
|
|
17
|
+
asChild?: boolean | undefined;
|
|
18
18
|
el?: HTMLDivElement | undefined;
|
|
19
19
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
20
20
|
inset?: boolean;
|
|
@@ -15,8 +15,8 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
15
15
|
children?: any;
|
|
16
16
|
} : {});
|
|
17
17
|
declare const MenubarSubTrigger: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
asChild?: boolean;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
asChild?: boolean | undefined;
|
|
20
20
|
el?: HTMLDivElement | undefined;
|
|
21
21
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
22
22
|
inset?: boolean;
|
|
@@ -17,7 +17,7 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
17
17
|
declare const PaginationLink: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
18
18
|
page: import("bits-ui").Page;
|
|
19
19
|
} & {
|
|
20
|
-
asChild?: boolean;
|
|
20
|
+
asChild?: boolean | undefined;
|
|
21
21
|
el?: HTMLButtonElement | undefined;
|
|
22
22
|
} & (import("svelte/elements").HTMLButtonAttributes & Props & {
|
|
23
23
|
isActive: boolean;
|
|
@@ -14,7 +14,7 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
14
14
|
children?: any;
|
|
15
15
|
} : {});
|
|
16
16
|
declare const ScrollAreaScrollbar: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
17
|
-
asChild?: boolean;
|
|
17
|
+
asChild?: boolean | undefined;
|
|
18
18
|
el?: HTMLDivElement | undefined;
|
|
19
19
|
} & {
|
|
20
20
|
orientation: "horizontal" | "vertical";
|
|
@@ -18,7 +18,7 @@ export declare const sheetVariants: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
left: string;
|
|
19
19
|
right: string;
|
|
20
20
|
};
|
|
21
|
-
}, undefined, "fixed z-50 gap-4
|
|
21
|
+
}, undefined, "bg-background fixed z-50 gap-4 p-6 shadow-lg", import("tailwind-variants/dist/config").TVConfig<{
|
|
22
22
|
side: {
|
|
23
23
|
top: string;
|
|
24
24
|
bottom: string;
|
|
@@ -46,7 +46,7 @@ export declare const sheetVariants: import("tailwind-variants").TVReturnType<{
|
|
|
46
46
|
left: string;
|
|
47
47
|
right: string;
|
|
48
48
|
};
|
|
49
|
-
}, undefined, "fixed z-50 gap-4
|
|
49
|
+
}, undefined, "bg-background fixed z-50 gap-4 p-6 shadow-lg", import("tailwind-variants/dist/config").TVConfig<{
|
|
50
50
|
side: {
|
|
51
51
|
top: string;
|
|
52
52
|
bottom: string;
|
|
@@ -14,7 +14,7 @@ export { Root, Close, Trigger, Portal, Overlay, Content, Header, Footer, Title,
|
|
|
14
14
|
//
|
|
15
15
|
Root as Sheet, Close as SheetClose, Trigger as SheetTrigger, Portal as SheetPortal, Overlay as SheetOverlay, Content as SheetContent, Header as SheetHeader, Footer as SheetFooter, Title as SheetTitle, Description as SheetDescription, };
|
|
16
16
|
export const sheetVariants = tv({
|
|
17
|
-
base: "fixed z-50 gap-4
|
|
17
|
+
base: "bg-background fixed z-50 gap-4 p-6 shadow-lg",
|
|
18
18
|
variants: {
|
|
19
19
|
side: {
|
|
20
20
|
top: "inset-x-0 top-0 border-b",
|
|
@@ -21,7 +21,7 @@ declare const SheetContent: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_Pr
|
|
|
21
21
|
inTransitionConfig?: any;
|
|
22
22
|
outTransition?: import("bits-ui/dist/internal/types.js").Transition | undefined;
|
|
23
23
|
outTransitionConfig?: any;
|
|
24
|
-
asChild?: boolean;
|
|
24
|
+
asChild?: boolean | undefined;
|
|
25
25
|
el?: HTMLDivElement | undefined;
|
|
26
26
|
} & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & {
|
|
27
27
|
side?: Side;
|
|
@@ -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
|
|
13
|
+
}, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", 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
|
|
53
|
+
}, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
|
|
54
54
|
variant: {
|
|
55
55
|
default: string;
|
|
56
56
|
outline: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
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
|
|
4
|
+
base: "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
7
|
default: "bg-transparent",
|
|
8
|
-
outline: "border
|
|
8
|
+
outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent",
|
|
9
9
|
},
|
|
10
10
|
size: {
|
|
11
11
|
default: "h-10 px-3",
|
|
@@ -16,10 +16,10 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
16
16
|
children?: any;
|
|
17
17
|
} : {});
|
|
18
18
|
declare const Toggle: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
pressed?: boolean;
|
|
21
|
-
onPressedChange?: import("bits-ui/dist/internal/types.js").OnChangeFn<boolean
|
|
22
|
-
asChild?: boolean;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
pressed?: boolean | undefined;
|
|
21
|
+
onPressedChange?: import("bits-ui/dist/internal/types.js").OnChangeFn<boolean> | undefined;
|
|
22
|
+
asChild?: boolean | undefined;
|
|
23
23
|
el?: HTMLButtonElement | undefined;
|
|
24
24
|
} & import("svelte/elements.js").HTMLButtonAttributes & {
|
|
25
25
|
variant?: Variant;
|
|
@@ -16,8 +16,8 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
16
16
|
} : {});
|
|
17
17
|
declare const ToggleGroupItem: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
18
18
|
value: string;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
asChild?: boolean;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
asChild?: boolean | undefined;
|
|
21
21
|
el?: HTMLButtonElement | undefined;
|
|
22
22
|
} & import("svelte/elements.js").HTMLButtonAttributes & ToggleVariants, {
|
|
23
23
|
default: {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.12",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@internationalized/date": "^3.5.5",
|
|
36
|
-
"bits-ui": "^0.21.
|
|
36
|
+
"bits-ui": "^0.21.13",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"cmdk-sv": "^0.0.18",
|
|
39
39
|
"embla-carousel-svelte": "8.1.7",
|
|
40
40
|
"formsnap": "^1.0.1",
|
|
41
|
-
"mode-watcher": "^0.4.
|
|
41
|
+
"mode-watcher": "^0.4.1",
|
|
42
42
|
"paneforge": "^0.0.5",
|
|
43
43
|
"svelte-headless-table": "^0.18.2",
|
|
44
44
|
"svelte-sonner": "^0.3.27",
|
|
@@ -51,27 +51,27 @@
|
|
|
51
51
|
"@sveltejs/kit": "^2.5.18",
|
|
52
52
|
"@sveltejs/package": "^2.3.2",
|
|
53
53
|
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
|
54
|
-
"@testing-library/jest-dom": "^6.4.
|
|
55
|
-
"@testing-library/svelte": "^5.2.
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
57
|
-
"@typescript-eslint/parser": "^7.
|
|
54
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
55
|
+
"@testing-library/svelte": "^5.2.1",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
57
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
58
58
|
"autoprefixer": "^10.4.19",
|
|
59
59
|
"eslint": "^8.56.0",
|
|
60
60
|
"eslint-config-prettier": "^9.1.0",
|
|
61
61
|
"eslint-plugin-svelte": "^2.43.0",
|
|
62
62
|
"happy-dom": "^14.12.3",
|
|
63
|
-
"lucide-svelte": "^0.
|
|
64
|
-
"postcss": "^8.4.
|
|
65
|
-
"postcss-load-config": "^5.1.0",
|
|
63
|
+
"lucide-svelte": "^0.417.0",
|
|
64
|
+
"postcss": "^8.4.40",
|
|
66
65
|
"prettier": "^3.3.3",
|
|
67
66
|
"prettier-plugin-svelte": "^3.2.6",
|
|
67
|
+
"prettier-plugin-tailwindcss": "^0.6.4",
|
|
68
68
|
"publint": "^0.2.9",
|
|
69
69
|
"svelte": "5.0.0-next.158",
|
|
70
70
|
"svelte-check": "^3.8.4",
|
|
71
|
-
"tailwindcss": "^3.4.
|
|
71
|
+
"tailwindcss": "^3.4.7",
|
|
72
72
|
"tslib": "^2.6.3",
|
|
73
|
-
"typescript": "^5.5.
|
|
74
|
-
"vite": "^5.3.
|
|
73
|
+
"typescript": "^5.5.4",
|
|
74
|
+
"vite": "^5.3.5",
|
|
75
75
|
"vitest": "^2.0.4"
|
|
76
76
|
},
|
|
77
77
|
"svelte": "./dist/index.js",
|