@kayord/ui 0.9.10 → 0.9.13
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/DataTableActions.svelte.d.ts +4 -1
- package/dist/components/custom/data-table/DataTableCheckbox.svelte.d.ts +4 -1
- package/dist/components/custom/data-table/DataTablePagination.svelte +1 -1
- package/dist/components/custom/loader/Loader.svelte +1 -1
- package/dist/components/custom/loader/Loader.svelte.d.ts +4 -1
- package/dist/components/custom/progress-loading/ProgressLoading.svelte.d.ts +4 -1
- package/dist/components/custom/theme-switch/ThemeSwitch.svelte.d.ts +4 -1
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -1
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -1
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +4 -1
- package/dist/components/ui/alert/alert-description.svelte.d.ts +4 -1
- package/dist/components/ui/alert/alert-title.svelte.d.ts +4 -1
- package/dist/components/ui/alert/alert.svelte.d.ts +4 -1
- package/dist/components/ui/alert/index.d.ts +2 -2
- package/dist/components/ui/alert/index.js +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte.d.ts +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte.d.ts +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-portal.svelte.d.ts +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte.d.ts +4 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.svelte.d.ts +4 -1
- package/dist/components/ui/avatar/avatar-fallback.svelte.d.ts +4 -1
- package/dist/components/ui/avatar/avatar-image.svelte.d.ts +4 -1
- package/dist/components/ui/avatar/avatar.svelte.d.ts +4 -1
- package/dist/components/ui/badge/badge.svelte.d.ts +4 -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-ellipsis.svelte.d.ts +4 -1
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +4 -1
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +4 -1
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +4 -1
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +4 -1
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +4 -1
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +4 -1
- package/dist/components/ui/button/button.svelte.d.ts +4 -1
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/button/index.js +2 -2
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +4 -1
- package/dist/components/ui/calendar/calendar.svelte.d.ts +4 -1
- package/dist/components/ui/card/card-content.svelte.d.ts +4 -1
- package/dist/components/ui/card/card-description.svelte.d.ts +4 -1
- package/dist/components/ui/card/card-footer.svelte.d.ts +4 -1
- package/dist/components/ui/card/card-header.svelte.d.ts +4 -1
- package/dist/components/ui/card/card-title.svelte.d.ts +4 -1
- package/dist/components/ui/card/card.svelte.d.ts +4 -1
- package/dist/components/ui/carousel/carousel-content.svelte.d.ts +4 -1
- package/dist/components/ui/carousel/carousel-item.svelte.d.ts +4 -1
- package/dist/components/ui/carousel/carousel-next.svelte.d.ts +4 -1
- package/dist/components/ui/carousel/carousel-previous.svelte.d.ts +4 -1
- package/dist/components/ui/carousel/carousel.svelte.d.ts +4 -1
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -1
- package/dist/components/ui/collapsible/collapsible-content.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-dialog.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-empty.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-group.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-input.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-item.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-list.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-separator.svelte.d.ts +4 -1
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +4 -1
- package/dist/components/ui/command/command.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +4 -1
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-portal.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +4 -1
- package/dist/components/ui/drawer/drawer.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +4 -1
- package/dist/components/ui/form/form-button.svelte.d.ts +4 -1
- package/dist/components/ui/form/form-description.svelte.d.ts +4 -1
- package/dist/components/ui/form/form-field-errors.svelte.d.ts +4 -1
- package/dist/components/ui/form/form-label.svelte.d.ts +4 -1
- package/dist/components/ui/form/form-legend.svelte.d.ts +4 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +4 -1
- package/dist/components/ui/input/input.svelte.d.ts +4 -1
- package/dist/components/ui/label/label.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-checkbox-item.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-content.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-item.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-label.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-radio-item.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-separator.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-shortcut.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-sub-content.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar-trigger.svelte.d.ts +4 -1
- package/dist/components/ui/menubar/menubar.svelte.d.ts +4 -1
- package/dist/components/ui/pagination/pagination-content.svelte.d.ts +4 -1
- package/dist/components/ui/pagination/pagination-ellipsis.svelte.d.ts +4 -1
- package/dist/components/ui/pagination/pagination-item.svelte.d.ts +4 -1
- package/dist/components/ui/pagination/pagination-link.svelte.d.ts +4 -1
- package/dist/components/ui/pagination/pagination-next-button.svelte.d.ts +4 -1
- package/dist/components/ui/pagination/pagination-prev-button.svelte.d.ts +4 -1
- package/dist/components/ui/pagination/pagination.svelte.d.ts +4 -1
- package/dist/components/ui/popover/popover-content.svelte.d.ts +4 -1
- package/dist/components/ui/progress/progress.svelte.d.ts +4 -1
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -1
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-grid-body.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-grid-head.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +4 -1
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +4 -1
- package/dist/components/ui/resizable/resizable-handle.svelte.d.ts +4 -1
- package/dist/components/ui/resizable/resizable-pane-group.svelte.d.ts +4 -1
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -1
- package/dist/components/ui/select/select-content.svelte.d.ts +4 -1
- package/dist/components/ui/select/select-item.svelte.d.ts +4 -1
- package/dist/components/ui/select/select-label.svelte.d.ts +4 -1
- package/dist/components/ui/select/select-separator.svelte.d.ts +4 -1
- package/dist/components/ui/separator/separator.svelte +1 -1
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -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 +4 -1
- package/dist/components/ui/sheet/sheet-description.svelte.d.ts +4 -1
- package/dist/components/ui/sheet/sheet-footer.svelte.d.ts +4 -1
- package/dist/components/ui/sheet/sheet-header.svelte.d.ts +4 -1
- package/dist/components/ui/sheet/sheet-overlay.svelte.d.ts +4 -1
- package/dist/components/ui/sheet/sheet-portal.svelte.d.ts +4 -1
- package/dist/components/ui/sheet/sheet-title.svelte.d.ts +4 -1
- package/dist/components/ui/skeleton/skeleton.svelte.d.ts +4 -1
- package/dist/components/ui/slider/slider.svelte.d.ts +4 -1
- package/dist/components/ui/sonner/sonner.svelte.d.ts +4 -1
- package/dist/components/ui/switch/switch.svelte.d.ts +4 -1
- package/dist/components/ui/table/table-body.svelte.d.ts +4 -1
- package/dist/components/ui/table/table-caption.svelte.d.ts +4 -1
- package/dist/components/ui/table/table-cell.svelte.d.ts +4 -1
- package/dist/components/ui/table/table-footer.svelte.d.ts +4 -1
- package/dist/components/ui/table/table-head.svelte.d.ts +4 -1
- package/dist/components/ui/table/table-header.svelte.d.ts +4 -1
- package/dist/components/ui/table/table-row.svelte.d.ts +4 -1
- package/dist/components/ui/table/table.svelte.d.ts +4 -1
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -1
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +4 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -1
- package/dist/components/ui/textarea/textarea.svelte.d.ts +4 -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 -1
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +4 -1
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -1
- package/package.json +22 -22
|
@@ -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>
|
|
@@ -5,7 +5,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
5
5
|
(internal: unknown, props: Props & {
|
|
6
6
|
$$events?: Events;
|
|
7
7
|
$$slots?: Slots;
|
|
8
|
-
}): Exports
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
9
12
|
z_$$bindings?: Bindings;
|
|
10
13
|
}
|
|
11
14
|
declare const DataTableActions: $$__sveltets_2_IsomorphicComponent<{
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
declare const DataTableCheckbox: $$__sveltets_2_IsomorphicComponent<Omit<import("bits-ui").CheckboxProps, "checked"> & {
|
|
@@ -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}
|
|
@@ -5,7 +5,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
5
5
|
(internal: unknown, props: Props & {
|
|
6
6
|
$$events?: Events;
|
|
7
7
|
$$slots?: Slots;
|
|
8
|
-
}): Exports
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
9
12
|
z_$$bindings?: Bindings;
|
|
10
13
|
}
|
|
11
14
|
declare const Loader: $$__sveltets_2_IsomorphicComponent<{
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
declare const ProgressLoading: $$__sveltets_2_IsomorphicComponent<ProgressPrimitive.Props, {
|
|
@@ -5,7 +5,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
5
5
|
(internal: unknown, props: Props & {
|
|
6
6
|
$$events?: Events;
|
|
7
7
|
$$slots?: Slots;
|
|
8
|
-
}): Exports
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
9
12
|
z_$$bindings?: Bindings;
|
|
10
13
|
}
|
|
11
14
|
declare const ThemeSwitch: $$__sveltets_2_IsomorphicComponent<{
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -7,7 +7,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
7
7
|
(internal: unknown, props: Props & {
|
|
8
8
|
$$events?: Events;
|
|
9
9
|
$$slots?: Slots;
|
|
10
|
-
}): Exports
|
|
10
|
+
}): Exports & {
|
|
11
|
+
$set?: any;
|
|
12
|
+
$on?: any;
|
|
13
|
+
};
|
|
11
14
|
z_$$bindings?: Bindings;
|
|
12
15
|
}
|
|
13
16
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -7,7 +7,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
7
7
|
(internal: unknown, props: Props & {
|
|
8
8
|
$$events?: Events;
|
|
9
9
|
$$slots?: Slots;
|
|
10
|
-
}): Exports
|
|
10
|
+
}): Exports & {
|
|
11
|
+
$set?: any;
|
|
12
|
+
$on?: any;
|
|
13
|
+
};
|
|
11
14
|
z_$$bindings?: Bindings;
|
|
12
15
|
}
|
|
13
16
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -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",
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
declare const AlertDialogOverlay: $$__sveltets_2_IsomorphicComponent<AlertDialogPrimitive.OverlayProps, {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
declare const AvatarImage: $$__sveltets_2_IsomorphicComponent<AvatarPrimitive.ImageProps, {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -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
|
},
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
declare const BreadcrumbEllipsis: $$__sveltets_2_IsomorphicComponent<HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -7,7 +7,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
7
7
|
(internal: unknown, props: Props & {
|
|
8
8
|
$$events?: Events;
|
|
9
9
|
$$slots?: Slots;
|
|
10
|
-
}): Exports
|
|
10
|
+
}): Exports & {
|
|
11
|
+
$set?: any;
|
|
12
|
+
$on?: any;
|
|
13
|
+
};
|
|
11
14
|
z_$$bindings?: Bindings;
|
|
12
15
|
}
|
|
13
16
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -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",
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
@@ -6,7 +6,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
6
6
|
(internal: unknown, props: Props & {
|
|
7
7
|
$$events?: Events;
|
|
8
8
|
$$slots?: Slots;
|
|
9
|
-
}): Exports
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
10
13
|
z_$$bindings?: Bindings;
|
|
11
14
|
}
|
|
12
15
|
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|