@kayord/ui 0.3.3 → 0.3.4
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/README.md +15 -16
- package/dist/components/custom/data-table/DataTable.svelte +5 -1
- package/dist/components/custom/progress-loading/ProgressLoading.svelte +4 -1
- package/dist/components/ui/accordion/accordion-item.svelte +1 -5
- package/dist/components/ui/accordion/index.d.ts +1 -1
- package/dist/components/ui/accordion/index.js +1 -1
- package/dist/components/ui/alert/alert-title.svelte +1 -5
- package/dist/components/ui/alert/alert.svelte +1 -5
- package/dist/components/ui/alert/index.d.ts +1 -1
- package/dist/components/ui/alert/index.js +5 -5
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte +1 -7
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte +1 -5
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte +1 -4
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte +1 -7
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte +1 -4
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte +1 -4
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte +1 -5
- package/dist/components/ui/alert-dialog/index.d.ts +1 -1
- package/dist/components/ui/alert-dialog/index.js +1 -1
- package/dist/components/ui/avatar/avatar-fallback.svelte +1 -4
- package/dist/components/ui/avatar/avatar-image.svelte +1 -6
- package/dist/components/ui/avatar/avatar.svelte +1 -4
- package/dist/components/ui/avatar/index.d.ts +1 -1
- package/dist/components/ui/avatar/index.js +1 -1
- package/dist/components/ui/badge/badge.svelte +1 -6
- package/dist/components/ui/badge/index.js +4 -4
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/button/index.js +6 -6
- package/dist/components/ui/calendar/calendar-grid.svelte +1 -4
- package/dist/components/ui/calendar/calendar-head-cell.svelte +1 -4
- package/dist/components/ui/calendar/calendar-header.svelte +1 -4
- package/dist/components/ui/calendar/calendar-heading.svelte +1 -5
- package/dist/components/ui/calendar/calendar-months.svelte +1 -7
- package/dist/components/ui/calendar/index.d.ts +1 -1
- package/dist/components/ui/calendar/index.js +1 -1
- package/dist/components/ui/card/card-title.svelte +1 -5
- package/dist/components/ui/card/card.svelte +1 -7
- package/dist/components/ui/card/index.d.ts +1 -1
- package/dist/components/ui/card/index.js +1 -1
- package/dist/components/ui/checkbox/index.d.ts +1 -1
- package/dist/components/ui/checkbox/index.js +1 -1
- package/dist/components/ui/collapsible/index.d.ts +1 -1
- package/dist/components/ui/collapsible/index.js +1 -1
- package/dist/components/ui/command/command-empty.svelte +1 -4
- package/dist/components/ui/command/command-list.svelte +1 -4
- package/dist/components/ui/command/command-separator.svelte +1 -4
- package/dist/components/ui/command/command-shortcut.svelte +1 -7
- package/dist/components/ui/command/command.svelte +1 -4
- package/dist/components/ui/command/index.d.ts +1 -1
- package/dist/components/ui/command/index.js +1 -1
- package/dist/components/ui/context-menu/context-menu-label.svelte +1 -5
- package/dist/components/ui/context-menu/context-menu-separator.svelte +1 -4
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +1 -7
- package/dist/components/ui/context-menu/index.d.ts +1 -1
- package/dist/components/ui/context-menu/index.js +1 -1
- package/dist/components/ui/dialog/dialog-description.svelte +1 -4
- package/dist/components/ui/dialog/dialog-footer.svelte +1 -7
- package/dist/components/ui/dialog/dialog-header.svelte +1 -4
- package/dist/components/ui/dialog/dialog-overlay.svelte +1 -4
- package/dist/components/ui/dialog/dialog-title.svelte +1 -4
- package/dist/components/ui/dialog/index.d.ts +1 -1
- package/dist/components/ui/dialog/index.js +1 -1
- package/dist/components/ui/drawer/drawer-description.svelte +1 -5
- package/dist/components/ui/drawer/drawer-footer.svelte +1 -5
- package/dist/components/ui/drawer/drawer-header.svelte +1 -5
- package/dist/components/ui/drawer/drawer-overlay.svelte +1 -5
- package/dist/components/ui/drawer/drawer.svelte +1 -6
- package/dist/components/ui/drawer/index.js +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +1 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +1 -4
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/index.js +1 -1
- package/dist/components/ui/form/form-description.svelte +1 -4
- package/dist/components/ui/form/form-label.svelte +1 -5
- package/dist/components/ui/form/form-native-select.svelte +1 -5
- package/dist/components/ui/form/form-select-trigger.svelte +5 -10
- package/dist/components/ui/form/form-select-trigger.svelte.d.ts +3 -1
- package/dist/components/ui/form/form-textarea.svelte +1 -3
- package/dist/components/ui/form/form-validation.svelte +1 -4
- package/dist/components/ui/form/index.d.ts +1 -1
- package/dist/components/ui/form/index.js +1 -1
- package/dist/components/ui/input/index.d.ts +1 -1
- package/dist/components/ui/input/index.js +1 -1
- package/dist/components/ui/label/index.d.ts +1 -1
- package/dist/components/ui/label/index.js +1 -1
- package/dist/components/ui/label/label.svelte +1 -4
- package/dist/components/ui/menubar/index.d.ts +1 -1
- package/dist/components/ui/menubar/index.js +1 -1
- package/dist/components/ui/menubar/menubar-label.svelte +1 -4
- package/dist/components/ui/menubar/menubar-separator.svelte +1 -4
- package/dist/components/ui/menubar/menubar-shortcut.svelte +1 -7
- package/dist/components/ui/menubar/menubar-sub-content.svelte +1 -4
- package/dist/components/ui/menubar/menubar.svelte +1 -4
- package/dist/components/ui/pagination/index.d.ts +1 -1
- package/dist/components/ui/pagination/index.js +1 -1
- package/dist/components/ui/pagination/pagination-ellipsis.svelte +1 -5
- package/dist/components/ui/pagination/pagination-link.svelte +1 -1
- package/dist/components/ui/pagination/pagination-next-button.svelte +1 -7
- package/dist/components/ui/pagination/pagination-prev-button.svelte +1 -7
- package/dist/components/ui/pagination/pagination.svelte +1 -4
- package/dist/components/ui/popover/index.d.ts +1 -1
- package/dist/components/ui/popover/index.js +1 -1
- package/dist/components/ui/popover/popover-content.svelte +1 -4
- package/dist/components/ui/progress/index.d.ts +1 -1
- package/dist/components/ui/progress/index.js +1 -1
- package/dist/components/ui/progress/progress.svelte +2 -7
- package/dist/components/ui/radio-group/index.d.ts +1 -1
- package/dist/components/ui/radio-group/index.js +1 -1
- package/dist/components/ui/radio-group/radio-group.svelte +1 -5
- package/dist/components/ui/range-calendar/index.d.ts +1 -1
- package/dist/components/ui/range-calendar/index.js +1 -1
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte +1 -4
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte +1 -4
- package/dist/components/ui/range-calendar/range-calendar-header.svelte +1 -4
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte +1 -5
- package/dist/components/ui/range-calendar/range-calendar-months.svelte +1 -7
- package/dist/components/ui/range-calendar/range-calendar.svelte +1 -4
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/index.js +1 -1
- package/dist/components/ui/select/select-label.svelte +1 -4
- package/dist/components/ui/select/select-separator.svelte +1 -4
- package/dist/components/ui/separator/index.d.ts +1 -1
- package/dist/components/ui/separator/index.js +1 -1
- package/dist/components/ui/separator/separator.svelte +1 -5
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/sheet/index.js +18 -18
- package/dist/components/ui/sheet/sheet-content.svelte +1 -6
- package/dist/components/ui/sheet/sheet-description.svelte +1 -4
- package/dist/components/ui/sheet/sheet-footer.svelte +1 -7
- package/dist/components/ui/sheet/sheet-header.svelte +1 -4
- package/dist/components/ui/sheet/sheet-overlay.svelte +1 -4
- package/dist/components/ui/sheet/sheet-title.svelte +1 -4
- package/dist/components/ui/skeleton/index.d.ts +1 -1
- package/dist/components/ui/skeleton/index.js +1 -1
- package/dist/components/ui/skeleton/skeleton.svelte +1 -4
- package/dist/components/ui/slider/index.d.ts +1 -1
- package/dist/components/ui/slider/index.js +1 -1
- package/dist/components/ui/slider/slider.svelte +2 -7
- package/dist/components/ui/sonner/sonner.svelte +6 -9
- package/dist/components/ui/switch/index.d.ts +1 -1
- package/dist/components/ui/switch/index.js +1 -1
- package/dist/components/ui/table/index.d.ts +1 -1
- package/dist/components/ui/table/index.js +1 -1
- package/dist/components/ui/table/table-caption.svelte +1 -4
- package/dist/components/ui/table/table-cell.svelte +1 -6
- package/dist/components/ui/table/table-footer.svelte +1 -4
- package/dist/components/ui/table/table-header.svelte +1 -6
- package/dist/components/ui/table/table-row.svelte +1 -4
- package/dist/components/ui/table/table.svelte +1 -4
- package/dist/components/ui/tabs/index.d.ts +1 -1
- package/dist/components/ui/tabs/index.js +1 -1
- package/dist/components/ui/tabs/tabs-list.svelte +1 -4
- package/dist/components/ui/textarea/index.d.ts +1 -1
- package/dist/components/ui/textarea/index.js +1 -1
- package/dist/components/ui/toggle/index.d.ts +1 -1
- package/dist/components/ui/toggle/index.js +6 -6
- package/dist/components/ui/toggle/toggle.svelte +1 -6
- package/dist/components/ui/toggle-group/index.d.ts +1 -1
- package/dist/components/ui/toggle-group/index.js +1 -1
- package/dist/components/ui/toggle-group/toggle-group-item.svelte +1 -1
- package/dist/components/ui/tooltip/index.d.ts +1 -1
- package/dist/components/ui/tooltip/index.js +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/{utils/utils.js → utils.js} +2 -2
- package/package.json +10 -10
- /package/dist/{utils/utils.d.ts → utils.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -35,10 +35,10 @@ pnpm i
|
|
|
35
35
|
// postcss.config.cjs
|
|
36
36
|
|
|
37
37
|
module.exports = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
plugins: {
|
|
39
|
+
tailwindcss: {},
|
|
40
|
+
autoprefixer: {},
|
|
41
|
+
},
|
|
42
42
|
};
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -47,19 +47,18 @@ module.exports = {
|
|
|
47
47
|
|
|
48
48
|
import type { Config } from "tailwindcss";
|
|
49
49
|
import { fontFamily } from "tailwindcss/defaultTheme";
|
|
50
|
-
import { kayordPlugin } from
|
|
50
|
+
import { kayordPlugin } from "@kayord/tw-plugin";
|
|
51
51
|
|
|
52
52
|
export default {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
darkMode: ["class"],
|
|
54
|
+
content: ["./src/**/*.{html,js,svelte,ts}", "./node_modules/@kayord/ui/**/*.{html,js,svelte,ts}"],
|
|
55
|
+
theme: {
|
|
56
|
+
extend: {
|
|
57
|
+
fontFamily: {
|
|
58
|
+
sans: [...fontFamily.sans],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
plugins: [kayordPlugin],
|
|
63
63
|
} satisfies Config;
|
|
64
|
-
|
|
65
64
|
```
|
|
@@ -116,7 +116,11 @@ const pageSize = isPagingEnabled ? pluginStates.page.pageSize : void 0;
|
|
|
116
116
|
</Pagination.Item>
|
|
117
117
|
{:else}
|
|
118
118
|
<Pagination.Item>
|
|
119
|
-
<Pagination.Link
|
|
119
|
+
<Pagination.Link
|
|
120
|
+
{page}
|
|
121
|
+
isActive={currentPage == page.value}
|
|
122
|
+
on:click={() => ($pageIndex = page.value - 1)}
|
|
123
|
+
>
|
|
120
124
|
{page.value}
|
|
121
125
|
</Pagination.Link>
|
|
122
126
|
</Pagination.Item>
|
|
@@ -4,7 +4,10 @@ let className = void 0;
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<ProgressPrimitive.Root
|
|
7
|
+
<ProgressPrimitive.Root
|
|
8
|
+
class={cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className)}
|
|
9
|
+
{...$$restProps}
|
|
10
|
+
>
|
|
8
11
|
<div class="progressbar-infinite h-full w-full flex-1 bg-primary transition-all" />
|
|
9
12
|
</ProgressPrimitive.Root>
|
|
10
13
|
|
|
@@ -5,10 +5,6 @@ export let value;
|
|
|
5
5
|
export { className as class };
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<AccordionPrimitive.Item
|
|
9
|
-
{value}
|
|
10
|
-
class={cn("border-b", className)}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
8
|
+
<AccordionPrimitive.Item {value} class={cn("border-b", className)} {...$$restProps}>
|
|
13
9
|
<slot />
|
|
14
10
|
</AccordionPrimitive.Item>
|
|
@@ -3,4 +3,4 @@ import Content from "./accordion-content.svelte";
|
|
|
3
3
|
import Item from "./accordion-item.svelte";
|
|
4
4
|
import Trigger from "./accordion-trigger.svelte";
|
|
5
5
|
declare const Root: typeof AccordionPrimitive.Root;
|
|
6
|
-
export { Root, Content, Item, Trigger, Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger };
|
|
6
|
+
export { Root, Content, Item, Trigger, Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger, };
|
|
@@ -5,4 +5,4 @@ import Trigger from "./accordion-trigger.svelte";
|
|
|
5
5
|
const Root = AccordionPrimitive.Root;
|
|
6
6
|
export { Root, Content, Item, Trigger,
|
|
7
7
|
//
|
|
8
|
-
Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger };
|
|
8
|
+
Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger, };
|
|
@@ -4,10 +4,6 @@ export let level = "h5";
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svelte:element
|
|
8
|
-
this={level}
|
|
9
|
-
class={cn("mb-1 font-medium leading-none tracking-tight", className)}
|
|
10
|
-
{...$$restProps}
|
|
11
|
-
>
|
|
7
|
+
<svelte:element this={level} class={cn("mb-1 font-medium leading-none tracking-tight", className)} {...$$restProps}>
|
|
12
8
|
<slot />
|
|
13
9
|
</svelte:element>
|
|
@@ -5,10 +5,6 @@ export let variant = "default";
|
|
|
5
5
|
export { className as class };
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<div
|
|
9
|
-
class={cn(alertVariants({ variant }), className)}
|
|
10
|
-
{...$$restProps}
|
|
11
|
-
role="alert"
|
|
12
|
-
>
|
|
8
|
+
<div class={cn(alertVariants({ variant }), className)} {...$$restProps} role="alert">
|
|
13
9
|
<slot />
|
|
14
10
|
</div>
|
|
@@ -40,4 +40,4 @@ export declare const alertVariants: import("tailwind-variants").TVReturnType<{
|
|
|
40
40
|
}>, unknown, unknown, undefined>>;
|
|
41
41
|
export type Variant = VariantProps<typeof alertVariants>["variant"];
|
|
42
42
|
export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
43
|
-
export { Root, Description, Title, Root as Alert, Description as AlertDescription, Title as AlertTitle };
|
|
43
|
+
export { Root, Description, Title, Root as Alert, Description as AlertDescription, Title as AlertTitle, };
|
|
@@ -7,13 +7,13 @@ export const alertVariants = tv({
|
|
|
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"
|
|
11
|
-
}
|
|
10
|
+
destructive: "text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",
|
|
11
|
+
},
|
|
12
12
|
},
|
|
13
13
|
defaultVariants: {
|
|
14
|
-
variant: "default"
|
|
15
|
-
}
|
|
14
|
+
variant: "default",
|
|
15
|
+
},
|
|
16
16
|
});
|
|
17
17
|
export { Root, Description, Title,
|
|
18
18
|
//
|
|
19
|
-
Root as Alert, Description as AlertDescription, Title as AlertTitle };
|
|
19
|
+
Root as Alert, Description as AlertDescription, Title as AlertTitle, };
|
|
@@ -5,12 +5,6 @@ let className = void 0;
|
|
|
5
5
|
export { className as class };
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<AlertDialogPrimitive.Action
|
|
9
|
-
class={cn(buttonVariants(), className)}
|
|
10
|
-
{...$$restProps}
|
|
11
|
-
on:click
|
|
12
|
-
on:keydown
|
|
13
|
-
let:builder
|
|
14
|
-
>
|
|
8
|
+
<AlertDialogPrimitive.Action class={cn(buttonVariants(), className)} {...$$restProps} on:click on:keydown let:builder>
|
|
15
9
|
<slot {builder} />
|
|
16
10
|
</AlertDialogPrimitive.Action>
|
|
@@ -6,11 +6,7 @@ export { className as class };
|
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<AlertDialogPrimitive.Cancel
|
|
9
|
-
class={cn(
|
|
10
|
-
buttonVariants({ variant: "outline" }),
|
|
11
|
-
"mt-2 sm:mt-0",
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
9
|
+
class={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)}
|
|
14
10
|
{...$$restProps}
|
|
15
11
|
on:click
|
|
16
12
|
on:keydown
|
|
@@ -4,9 +4,6 @@ let className = void 0;
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<AlertDialogPrimitive.Description
|
|
8
|
-
class={cn("text-sm text-muted-foreground", className)}
|
|
9
|
-
{...$$restProps}
|
|
10
|
-
>
|
|
7
|
+
<AlertDialogPrimitive.Description class={cn("text-sm text-muted-foreground", className)} {...$$restProps}>
|
|
11
8
|
<slot />
|
|
12
9
|
</AlertDialogPrimitive.Description>
|
|
@@ -3,12 +3,6 @@ let className = void 0;
|
|
|
3
3
|
export { className as class };
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<div
|
|
7
|
-
class={cn(
|
|
8
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
9
|
-
className
|
|
10
|
-
)}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
6
|
+
<div class={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...$$restProps}>
|
|
13
7
|
<slot />
|
|
14
8
|
</div>
|
|
@@ -3,9 +3,6 @@ let className = void 0;
|
|
|
3
3
|
export { className as class };
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<div
|
|
7
|
-
class={cn("flex flex-col space-y-2 text-center sm:text-left", className)}
|
|
8
|
-
{...$$restProps}
|
|
9
|
-
>
|
|
6
|
+
<div class={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...$$restProps}>
|
|
10
7
|
<slot />
|
|
11
8
|
</div>
|
|
@@ -12,9 +12,6 @@ export { className as class };
|
|
|
12
12
|
<AlertDialogPrimitive.Overlay
|
|
13
13
|
{transition}
|
|
14
14
|
{transitionConfig}
|
|
15
|
-
class={cn(
|
|
16
|
-
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm ",
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
15
|
+
class={cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm ", className)}
|
|
19
16
|
{...$$restProps}
|
|
20
17
|
/>
|
|
@@ -5,10 +5,6 @@ export let level = "h3";
|
|
|
5
5
|
export { className as class };
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<AlertDialogPrimitive.Title
|
|
9
|
-
class={cn("text-lg font-semibold", className)}
|
|
10
|
-
{level}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
8
|
+
<AlertDialogPrimitive.Title class={cn("text-lg font-semibold", className)} {level} {...$$restProps}>
|
|
13
9
|
<slot />
|
|
14
10
|
</AlertDialogPrimitive.Title>
|
|
@@ -10,4 +10,4 @@ import Header from "./alert-dialog-header.svelte";
|
|
|
10
10
|
import Overlay from "./alert-dialog-overlay.svelte";
|
|
11
11
|
import Content from "./alert-dialog-content.svelte";
|
|
12
12
|
import Description from "./alert-dialog-description.svelte";
|
|
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 };
|
|
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, };
|
|
@@ -12,4 +12,4 @@ import Content from "./alert-dialog-content.svelte";
|
|
|
12
12
|
import Description from "./alert-dialog-description.svelte";
|
|
13
13
|
export { Root, Title, Action, Cancel, Portal, Footer, Header, Trigger, Overlay, Content, Description,
|
|
14
14
|
//
|
|
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 };
|
|
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, };
|
|
@@ -5,10 +5,7 @@ export { className as class };
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<AvatarPrimitive.Fallback
|
|
8
|
-
class={cn(
|
|
9
|
-
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
10
|
-
className
|
|
11
|
-
)}
|
|
8
|
+
class={cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)}
|
|
12
9
|
{...$$restProps}
|
|
13
10
|
>
|
|
14
11
|
<slot />
|
|
@@ -6,9 +6,4 @@ export let alt = void 0;
|
|
|
6
6
|
export { className as class };
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
|
-
<AvatarPrimitive.Image
|
|
10
|
-
{src}
|
|
11
|
-
{alt}
|
|
12
|
-
class={cn("aspect-square h-full w-full", className)}
|
|
13
|
-
{...$$restProps}
|
|
14
|
-
/>
|
|
9
|
+
<AvatarPrimitive.Image {src} {alt} class={cn("aspect-square h-full w-full", className)} {...$$restProps} />
|
|
@@ -7,10 +7,7 @@ export { className as class };
|
|
|
7
7
|
|
|
8
8
|
<AvatarPrimitive.Root
|
|
9
9
|
{delayMs}
|
|
10
|
-
class={cn(
|
|
11
|
-
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
10
|
+
class={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
|
|
14
11
|
{...$$restProps}
|
|
15
12
|
>
|
|
16
13
|
<slot />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Root from "./avatar.svelte";
|
|
2
2
|
import Image from "./avatar-image.svelte";
|
|
3
3
|
import Fallback from "./avatar-fallback.svelte";
|
|
4
|
-
export { Root, Image, Fallback, Root as Avatar, Image as AvatarImage, Fallback as AvatarFallback };
|
|
4
|
+
export { Root, Image, Fallback, Root as Avatar, Image as AvatarImage, Fallback as AvatarFallback, };
|
|
@@ -6,11 +6,6 @@ export let variant = "default";
|
|
|
6
6
|
export { className as class };
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
|
-
<svelte:element
|
|
10
|
-
this={href ? "a" : "span"}
|
|
11
|
-
{href}
|
|
12
|
-
class={cn(badgeVariants({ variant, className }))}
|
|
13
|
-
{...$$restProps}
|
|
14
|
-
>
|
|
9
|
+
<svelte:element this={href ? "a" : "span"} {href} class={cn(badgeVariants({ variant, className }))} {...$$restProps}>
|
|
15
10
|
<slot />
|
|
16
11
|
</svelte:element>
|
|
@@ -7,10 +7,10 @@ export const badgeVariants = tv({
|
|
|
7
7
|
default: "bg-primary hover:bg-primary/80 border-transparent text-primary-foreground",
|
|
8
8
|
secondary: "bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",
|
|
9
9
|
destructive: "bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground",
|
|
10
|
-
outline: "text-foreground"
|
|
11
|
-
}
|
|
10
|
+
outline: "text-foreground",
|
|
11
|
+
},
|
|
12
12
|
},
|
|
13
13
|
defaultVariants: {
|
|
14
|
-
variant: "default"
|
|
15
|
-
}
|
|
14
|
+
variant: "default",
|
|
15
|
+
},
|
|
16
16
|
});
|
|
@@ -114,4 +114,4 @@ type Props = ButtonPrimitive.Props & {
|
|
|
114
114
|
size?: Size;
|
|
115
115
|
};
|
|
116
116
|
type Events = ButtonPrimitive.Events;
|
|
117
|
-
export { Root, type Props, type Events, Root as Button, type Props as ButtonProps, type Events as ButtonEvents, buttonVariants };
|
|
117
|
+
export { Root, type Props, type Events, Root as Button, type Props as ButtonProps, type Events as ButtonEvents, buttonVariants, };
|
|
@@ -9,20 +9,20 @@ const buttonVariants = tv({
|
|
|
9
9
|
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
10
10
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
11
11
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
12
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
12
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
15
|
default: "h-10 px-4 py-2",
|
|
16
16
|
sm: "h-9 rounded-md px-3",
|
|
17
17
|
lg: "h-11 rounded-md px-8",
|
|
18
|
-
icon: "h-10 w-10"
|
|
19
|
-
}
|
|
18
|
+
icon: "h-10 w-10",
|
|
19
|
+
},
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: {
|
|
22
22
|
variant: "default",
|
|
23
|
-
size: "default"
|
|
24
|
-
}
|
|
23
|
+
size: "default",
|
|
24
|
+
},
|
|
25
25
|
});
|
|
26
26
|
export { Root,
|
|
27
27
|
//
|
|
28
|
-
Root as Button, buttonVariants };
|
|
28
|
+
Root as Button, buttonVariants, };
|
|
@@ -4,9 +4,6 @@ let className = void 0;
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<CalendarPrimitive.Grid
|
|
8
|
-
class={cn("w-full border-collapse space-y-1", className)}
|
|
9
|
-
{...$$restProps}
|
|
10
|
-
>
|
|
7
|
+
<CalendarPrimitive.Grid class={cn("w-full border-collapse space-y-1", className)} {...$$restProps}>
|
|
11
8
|
<slot />
|
|
12
9
|
</CalendarPrimitive.Grid>
|
|
@@ -5,10 +5,7 @@ export { className as class };
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<CalendarPrimitive.HeadCell
|
|
8
|
-
class={cn(
|
|
9
|
-
"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
10
|
-
className
|
|
11
|
-
)}
|
|
8
|
+
class={cn("text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]", className)}
|
|
12
9
|
{...$$restProps}
|
|
13
10
|
>
|
|
14
11
|
<slot />
|
|
@@ -5,10 +5,7 @@ export { className as class };
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<CalendarPrimitive.Header
|
|
8
|
-
class={cn(
|
|
9
|
-
"flex justify-between pt-1 relative items-center w-full",
|
|
10
|
-
className
|
|
11
|
-
)}
|
|
8
|
+
class={cn("flex justify-between pt-1 relative items-center w-full", className)}
|
|
12
9
|
{...$$restProps}
|
|
13
10
|
>
|
|
14
11
|
<slot />
|
|
@@ -4,11 +4,7 @@ let className = void 0;
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<CalendarPrimitive.Heading
|
|
8
|
-
let:headingValue
|
|
9
|
-
class={cn("text-sm font-medium", className)}
|
|
10
|
-
{...$$restProps}
|
|
11
|
-
>
|
|
7
|
+
<CalendarPrimitive.Heading let:headingValue class={cn("text-sm font-medium", className)} {...$$restProps}>
|
|
12
8
|
<slot {headingValue}>
|
|
13
9
|
{headingValue}
|
|
14
10
|
</slot>
|
|
@@ -3,12 +3,6 @@ let className = void 0;
|
|
|
3
3
|
export { className as class };
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<div
|
|
7
|
-
class={cn(
|
|
8
|
-
"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0 mt-4",
|
|
9
|
-
className
|
|
10
|
-
)}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
6
|
+
<div class={cn("flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0 mt-4", className)} {...$$restProps}>
|
|
13
7
|
<slot />
|
|
14
8
|
</div>
|
|
@@ -11,4 +11,4 @@ import GridHead from "./calendar-grid-head.svelte";
|
|
|
11
11
|
import HeadCell from "./calendar-head-cell.svelte";
|
|
12
12
|
import NextButton from "./calendar-next-button.svelte";
|
|
13
13
|
import PrevButton from "./calendar-prev-button.svelte";
|
|
14
|
-
export { Day, Cell, Grid, Header, Months, GridRow, Heading, GridBody, GridHead, HeadCell, NextButton, PrevButton, Root as Calendar };
|
|
14
|
+
export { Day, Cell, Grid, Header, Months, GridRow, Heading, GridBody, GridHead, HeadCell, NextButton, PrevButton, Root as Calendar, };
|
|
@@ -13,4 +13,4 @@ import NextButton from "./calendar-next-button.svelte";
|
|
|
13
13
|
import PrevButton from "./calendar-prev-button.svelte";
|
|
14
14
|
export { Day, Cell, Grid, Header, Months, GridRow, Heading, GridBody, GridHead, HeadCell, NextButton, PrevButton,
|
|
15
15
|
//
|
|
16
|
-
Root as Calendar };
|
|
16
|
+
Root as Calendar, };
|
|
@@ -4,10 +4,6 @@ export let tag = "h3";
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svelte:element
|
|
8
|
-
this={tag}
|
|
9
|
-
class={cn("text-lg font-semibold leading-none tracking-tight", className)}
|
|
10
|
-
{...$$restProps}
|
|
11
|
-
>
|
|
7
|
+
<svelte:element this={tag} class={cn("text-lg font-semibold leading-none tracking-tight", className)} {...$$restProps}>
|
|
12
8
|
<slot />
|
|
13
9
|
</svelte:element>
|
|
@@ -3,12 +3,6 @@ let className = void 0;
|
|
|
3
3
|
export { className as class };
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<div
|
|
7
|
-
class={cn(
|
|
8
|
-
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
9
|
-
className
|
|
10
|
-
)}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
6
|
+
<div class={cn("rounded-lg border bg-card text-card-foreground shadow-sm", className)} {...$$restProps}>
|
|
13
7
|
<slot />
|
|
14
8
|
</div>
|
|
@@ -4,5 +4,5 @@ import Description from "./card-description.svelte";
|
|
|
4
4
|
import Footer from "./card-footer.svelte";
|
|
5
5
|
import Header from "./card-header.svelte";
|
|
6
6
|
import Title from "./card-title.svelte";
|
|
7
|
-
export { Root, Content, Description, Footer, Header, Title, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle };
|
|
7
|
+
export { Root, Content, Description, Footer, Header, Title, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
|
|
8
8
|
export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
@@ -6,4 +6,4 @@ import Header from "./card-header.svelte";
|
|
|
6
6
|
import Title from "./card-title.svelte";
|
|
7
7
|
export { Root, Content, Description, Footer, Header, Title,
|
|
8
8
|
//
|
|
9
|
-
Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle };
|
|
9
|
+
Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import Root from "./checkbox.svelte";
|
|
2
|
-
export { Root, Root as Checkbox };
|
|
2
|
+
export { Root, Root as Checkbox, };
|
|
@@ -2,4 +2,4 @@ import { Collapsible as CollapsiblePrimitive } from "bits-ui";
|
|
|
2
2
|
import Content from "./collapsible-content.svelte";
|
|
3
3
|
declare const Root: typeof CollapsiblePrimitive.Root;
|
|
4
4
|
declare const Trigger: typeof CollapsiblePrimitive.Trigger;
|
|
5
|
-
export { Root, Content, Trigger, Root as Collapsible, Content as CollapsibleContent, Trigger as CollapsibleTrigger };
|
|
5
|
+
export { Root, Content, Trigger, Root as Collapsible, Content as CollapsibleContent, Trigger as CollapsibleTrigger, };
|
|
@@ -4,4 +4,4 @@ const Root = CollapsiblePrimitive.Root;
|
|
|
4
4
|
const Trigger = CollapsiblePrimitive.Trigger;
|
|
5
5
|
export { Root, Content, Trigger,
|
|
6
6
|
//
|
|
7
|
-
Root as Collapsible, Content as CollapsibleContent, Trigger as CollapsibleTrigger };
|
|
7
|
+
Root as Collapsible, Content as CollapsibleContent, Trigger as CollapsibleTrigger, };
|
|
@@ -4,9 +4,6 @@ let className = void 0;
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<CommandPrimitive.Empty
|
|
8
|
-
class={cn("py-6 text-center text-sm", className)}
|
|
9
|
-
{...$$restProps}
|
|
10
|
-
>
|
|
7
|
+
<CommandPrimitive.Empty class={cn("py-6 text-center text-sm", className)} {...$$restProps}>
|
|
11
8
|
<slot />
|
|
12
9
|
</CommandPrimitive.Empty>
|
|
@@ -4,9 +4,6 @@ let className = void 0;
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<CommandPrimitive.List
|
|
8
|
-
class={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
|
|
9
|
-
{...$$restProps}
|
|
10
|
-
>
|
|
7
|
+
<CommandPrimitive.List class={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)} {...$$restProps}>
|
|
11
8
|
<slot />
|
|
12
9
|
</CommandPrimitive.List>
|
|
@@ -4,7 +4,4 @@ let className = void 0;
|
|
|
4
4
|
export { className as class };
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<CommandPrimitive.Separator
|
|
8
|
-
class={cn("-mx-1 h-px bg-border", className)}
|
|
9
|
-
{...$$restProps}
|
|
10
|
-
/>
|
|
7
|
+
<CommandPrimitive.Separator class={cn("-mx-1 h-px bg-border", className)} {...$$restProps} />
|
|
@@ -3,12 +3,6 @@ let className = void 0;
|
|
|
3
3
|
export { className as class };
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<span
|
|
7
|
-
class={cn(
|
|
8
|
-
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
9
|
-
className
|
|
10
|
-
)}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
6
|
+
<span class={cn("ml-auto text-xs tracking-widest text-muted-foreground", className)} {...$$restProps}>
|
|
13
7
|
<slot />
|
|
14
8
|
</span>
|
|
@@ -6,10 +6,7 @@ export { className as class };
|
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<CommandPrimitive.Root
|
|
9
|
-
class={cn(
|
|
10
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
11
|
-
className
|
|
12
|
-
)}
|
|
9
|
+
class={cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className)}
|
|
13
10
|
bind:value
|
|
14
11
|
{...$$restProps}
|
|
15
12
|
>
|
|
@@ -9,4 +9,4 @@ import List from "./command-list.svelte";
|
|
|
9
9
|
import Separator from "./command-separator.svelte";
|
|
10
10
|
import Shortcut from "./command-shortcut.svelte";
|
|
11
11
|
declare const Loading: typeof CommandPrimitive.Loading;
|
|
12
|
-
export { Root, Dialog, Empty, Group, Item, Input, List, Separator, Shortcut, Loading, Root as Command, Dialog as CommandDialog, Empty as CommandEmpty, Group as CommandGroup, Item as CommandItem, Input as CommandInput, List as CommandList, Separator as CommandSeparator, Shortcut as CommandShortcut, Loading as CommandLoading };
|
|
12
|
+
export { Root, Dialog, Empty, Group, Item, Input, List, Separator, Shortcut, Loading, Root as Command, Dialog as CommandDialog, Empty as CommandEmpty, Group as CommandGroup, Item as CommandItem, Input as CommandInput, List as CommandList, Separator as CommandSeparator, Shortcut as CommandShortcut, Loading as CommandLoading, };
|
|
@@ -11,4 +11,4 @@ import Shortcut from "./command-shortcut.svelte";
|
|
|
11
11
|
const Loading = CommandPrimitive.Loading;
|
|
12
12
|
export { Root, Dialog, Empty, Group, Item, Input, List, Separator, Shortcut, Loading,
|
|
13
13
|
//
|
|
14
|
-
Root as Command, Dialog as CommandDialog, Empty as CommandEmpty, Group as CommandGroup, Item as CommandItem, Input as CommandInput, List as CommandList, Separator as CommandSeparator, Shortcut as CommandShortcut, Loading as CommandLoading };
|
|
14
|
+
Root as Command, Dialog as CommandDialog, Empty as CommandEmpty, Group as CommandGroup, Item as CommandItem, Input as CommandInput, List as CommandList, Separator as CommandSeparator, Shortcut as CommandShortcut, Loading as CommandLoading, };
|
|
@@ -6,11 +6,7 @@ export { className as class };
|
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<ContextMenuPrimitive.Label
|
|
9
|
-
class={cn(
|
|
10
|
-
"px-2 py-1.5 text-sm font-semibold text-foreground",
|
|
11
|
-
inset && "pl-8",
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
9
|
+
class={cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className)}
|
|
14
10
|
{...$$restProps}
|
|
15
11
|
>
|
|
16
12
|
<slot />
|