@svadmin/ui 0.29.1 → 0.29.2
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/package.json +20 -9
- package/src/README.md +0 -18
- package/src/actions.ts +0 -110
- package/src/app.css +0 -673
- package/src/component-registry.svelte.ts +0 -60
- package/src/components/AICommandBar.svelte +0 -180
- package/src/components/AboutSettings.svelte +0 -106
- package/src/components/AdminApp.svelte +0 -199
- package/src/components/AnimatedCounter.svelte +0 -46
- package/src/components/AnomalyBadge.svelte +0 -65
- package/src/components/AppearanceSettings.svelte +0 -183
- package/src/components/AuditLogDrawer.svelte +0 -93
- package/src/components/AuditLogViewer.svelte +0 -226
- package/src/components/Authenticated.svelte +0 -51
- package/src/components/AutoForm.svelte +0 -242
- package/src/components/AutoSaveIndicator.svelte +0 -35
- package/src/components/AutoTable.svelte +0 -839
- package/src/components/Breadcrumbs.svelte +0 -58
- package/src/components/CanAccess.svelte +0 -23
- package/src/components/CatchAllNavigate.svelte +0 -21
- package/src/components/ChatDialog.svelte +0 -535
- package/src/components/ComboboxField.svelte +0 -129
- package/src/components/CommandPalette.svelte +0 -135
- package/src/components/ConfigErrorScreen.svelte +0 -126
- package/src/components/ConfirmDialog.svelte +0 -53
- package/src/components/CopilotPanel.svelte +0 -163
- package/src/components/CreatePage.svelte +0 -39
- package/src/components/DevTools.svelte +0 -149
- package/src/components/DraggableGrid.svelte +0 -86
- package/src/components/DraggableHeader.svelte +0 -112
- package/src/components/DrawerForm.svelte +0 -35
- package/src/components/EditPage.svelte +0 -52
- package/src/components/EmptyState.svelte +0 -31
- package/src/components/ErrorBoundary.svelte +0 -49
- package/src/components/ErrorComponent.svelte +0 -36
- package/src/components/FieldRenderer.svelte +0 -357
- package/src/components/ForgotPasswordPage.svelte +0 -112
- package/src/components/Header.svelte +0 -94
- package/src/components/InferencerPanel.svelte +0 -192
- package/src/components/InfiniteList.svelte +0 -93
- package/src/components/InlineEdit.svelte +0 -88
- package/src/components/InsightCard.svelte +0 -98
- package/src/components/KeyboardShortcuts.svelte +0 -61
- package/src/components/Layout.svelte +0 -167
- package/src/components/ListPage.svelte +0 -71
- package/src/components/LiveIndicator.svelte +0 -58
- package/src/components/LoginPage.svelte +0 -163
- package/src/components/MarkdownRenderer.svelte +0 -127
- package/src/components/ModalForm.svelte +0 -38
- package/src/components/NavigateToResource.svelte +0 -20
- package/src/components/PageHeader.svelte +0 -39
- package/src/components/PageSkeleton.svelte +0 -71
- package/src/components/PasswordInput.svelte +0 -96
- package/src/components/PermissionMatrix.svelte +0 -185
- package/src/components/ProfilePage.svelte +0 -284
- package/src/components/RegisterPage.svelte +0 -112
- package/src/components/RolesSettings.svelte +0 -146
- package/src/components/SettingsPage.svelte +0 -113
- package/src/components/ShowPage.svelte +0 -73
- package/src/components/Sidebar.svelte +0 -417
- package/src/components/SidebarItem.svelte +0 -129
- package/src/components/SmartSuggest.svelte +0 -158
- package/src/components/StatsCard.svelte +0 -79
- package/src/components/StepsForm.svelte +0 -192
- package/src/components/TaskQueueDrawer.svelte +0 -158
- package/src/components/TenantSwitcher.svelte +0 -84
- package/src/components/ThemedTitle.svelte +0 -32
- package/src/components/Toast.svelte +0 -46
- package/src/components/TooltipButton.svelte +0 -42
- package/src/components/UndoableNotification.svelte +0 -69
- package/src/components/UpdatePasswordPage.svelte +0 -89
- package/src/components/VirtualTable.svelte +0 -76
- package/src/components/VoiceInput.svelte +0 -120
- package/src/components/buttons/CloneButton.svelte +0 -30
- package/src/components/buttons/CreateButton.svelte +0 -29
- package/src/components/buttons/DeleteButton.svelte +0 -59
- package/src/components/buttons/EditButton.svelte +0 -30
- package/src/components/buttons/ExportButton.svelte +0 -30
- package/src/components/buttons/ImportButton.svelte +0 -56
- package/src/components/buttons/ListButton.svelte +0 -23
- package/src/components/buttons/RefreshButton.svelte +0 -36
- package/src/components/buttons/SaveButton.svelte +0 -27
- package/src/components/buttons/ShowButton.svelte +0 -31
- package/src/components/buttons/index.ts +0 -10
- package/src/components/charts/BarChart.svelte +0 -69
- package/src/components/charts/LineChart.svelte +0 -115
- package/src/components/charts/PieChart.svelte +0 -95
- package/src/components/charts/index.ts +0 -3
- package/src/components/fieldComponentMap.ts +0 -79
- package/src/components/fields/ArrayField.svelte +0 -86
- package/src/components/fields/BooleanField.svelte +0 -13
- package/src/components/fields/DateField.svelte +0 -6
- package/src/components/fields/EmailField.svelte +0 -9
- package/src/components/fields/FileField.svelte +0 -14
- package/src/components/fields/ImageField.svelte +0 -9
- package/src/components/fields/JsonField.svelte +0 -72
- package/src/components/fields/MarkdownField.svelte +0 -9
- package/src/components/fields/MultiSelectField.svelte +0 -21
- package/src/components/fields/NumberField.svelte +0 -6
- package/src/components/fields/RelationField.svelte +0 -24
- package/src/components/fields/RichTextField.svelte +0 -35
- package/src/components/fields/SelectField.svelte +0 -14
- package/src/components/fields/TagField.svelte +0 -12
- package/src/components/fields/TextField.svelte +0 -11
- package/src/components/fields/UrlField.svelte +0 -14
- package/src/components/ui/alert/alert-description.svelte +0 -17
- package/src/components/ui/alert/alert-title.svelte +0 -17
- package/src/components/ui/alert/alert.svelte +0 -44
- package/src/components/ui/alert/index.ts +0 -15
- package/src/components/ui/alert-dialog/alert-dialog-content.svelte +0 -29
- package/src/components/ui/alert-dialog/alert-dialog-description.svelte +0 -16
- package/src/components/ui/alert-dialog/alert-dialog-footer.svelte +0 -11
- package/src/components/ui/alert-dialog/alert-dialog-header.svelte +0 -11
- package/src/components/ui/alert-dialog/alert-dialog-overlay.svelte +0 -16
- package/src/components/ui/alert-dialog/alert-dialog-portal.svelte +0 -6
- package/src/components/ui/alert-dialog/alert-dialog-title.svelte +0 -16
- package/src/components/ui/alert-dialog/index.ts +0 -20
- package/src/components/ui/avatar/avatar.svelte +0 -63
- package/src/components/ui/avatar/index.ts +0 -2
- package/src/components/ui/badge/badge.svelte +0 -49
- package/src/components/ui/badge/index.ts +0 -3
- package/src/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +0 -18
- package/src/components/ui/breadcrumb/breadcrumb-item.svelte +0 -15
- package/src/components/ui/breadcrumb/breadcrumb-link.svelte +0 -15
- package/src/components/ui/breadcrumb/breadcrumb-list.svelte +0 -15
- package/src/components/ui/breadcrumb/breadcrumb-page.svelte +0 -18
- package/src/components/ui/breadcrumb/breadcrumb-separator.svelte +0 -22
- package/src/components/ui/breadcrumb/breadcrumb.svelte +0 -11
- package/src/components/ui/breadcrumb/index.ts +0 -7
- package/src/components/ui/button/button.svelte +0 -90
- package/src/components/ui/button/index.ts +0 -18
- package/src/components/ui/card/card-action.svelte +0 -23
- package/src/components/ui/card/card-content.svelte +0 -20
- package/src/components/ui/card/card-description.svelte +0 -20
- package/src/components/ui/card/card-footer.svelte +0 -20
- package/src/components/ui/card/card-header.svelte +0 -23
- package/src/components/ui/card/card-title.svelte +0 -15
- package/src/components/ui/card/card.svelte +0 -22
- package/src/components/ui/card/index.ts +0 -25
- package/src/components/ui/checkbox/checkbox.svelte +0 -39
- package/src/components/ui/checkbox/index.ts +0 -6
- package/src/components/ui/collapsible/index.ts +0 -7
- package/src/components/ui/command/command-dialog.svelte +0 -31
- package/src/components/ui/command/index.ts +0 -2
- package/src/components/ui/context-menu/index.ts +0 -11
- package/src/components/ui/dialog/dialog-close.svelte +0 -11
- package/src/components/ui/dialog/dialog-content.svelte +0 -48
- package/src/components/ui/dialog/dialog-description.svelte +0 -17
- package/src/components/ui/dialog/dialog-footer.svelte +0 -32
- package/src/components/ui/dialog/dialog-header.svelte +0 -20
- package/src/components/ui/dialog/dialog-overlay.svelte +0 -17
- package/src/components/ui/dialog/dialog-portal.svelte +0 -7
- package/src/components/ui/dialog/dialog-title.svelte +0 -17
- package/src/components/ui/dialog/dialog-trigger.svelte +0 -11
- package/src/components/ui/dialog/dialog.svelte +0 -7
- package/src/components/ui/dialog/index.ts +0 -34
- package/src/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +0 -43
- package/src/components/ui/dropdown-menu/dropdown-menu-content.svelte +0 -35
- package/src/components/ui/dropdown-menu/dropdown-menu-item.svelte +0 -36
- package/src/components/ui/dropdown-menu/dropdown-menu-separator.svelte +0 -10
- package/src/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +0 -27
- package/src/components/ui/dropdown-menu/dropdown-menu.svelte +0 -45
- package/src/components/ui/dropdown-menu/index.ts +0 -21
- package/src/components/ui/input/index.ts +0 -7
- package/src/components/ui/input/input.svelte +0 -48
- package/src/components/ui/label/index.ts +0 -1
- package/src/components/ui/label/label.svelte +0 -18
- package/src/components/ui/pagination/index.ts +0 -7
- package/src/components/ui/pagination/pagination-content.svelte +0 -11
- package/src/components/ui/pagination/pagination-ellipsis.svelte +0 -12
- package/src/components/ui/pagination/pagination-item.svelte +0 -11
- package/src/components/ui/pagination/pagination-link.svelte +0 -26
- package/src/components/ui/pagination/pagination-next.svelte +0 -22
- package/src/components/ui/pagination/pagination-previous.svelte +0 -22
- package/src/components/ui/pagination/pagination.svelte +0 -11
- package/src/components/ui/popover/index.ts +0 -12
- package/src/components/ui/popover/popover-content.svelte +0 -25
- package/src/components/ui/progress/index.ts +0 -1
- package/src/components/ui/progress/progress.svelte +0 -22
- package/src/components/ui/scroll-area/index.ts +0 -1
- package/src/components/ui/scroll-area/scroll-area.svelte +0 -20
- package/src/components/ui/select/index.ts +0 -2
- package/src/components/ui/select/select.svelte +0 -36
- package/src/components/ui/separator/index.ts +0 -7
- package/src/components/ui/separator/separator.svelte +0 -23
- package/src/components/ui/sheet/index.ts +0 -16
- package/src/components/ui/sheet/sheet-content.svelte +0 -28
- package/src/components/ui/sheet/sheet-description.svelte +0 -22
- package/src/components/ui/sheet/sheet-footer.svelte +0 -22
- package/src/components/ui/sheet/sheet-header.svelte +0 -22
- package/src/components/ui/sheet/sheet-title.svelte +0 -22
- package/src/components/ui/sheet/sheet.svelte +0 -78
- package/src/components/ui/skeleton/index.ts +0 -2
- package/src/components/ui/skeleton/skeleton.svelte +0 -21
- package/src/components/ui/switch/index.ts +0 -2
- package/src/components/ui/switch/switch.svelte +0 -49
- package/src/components/ui/table/index.ts +0 -28
- package/src/components/ui/table/table-body.svelte +0 -15
- package/src/components/ui/table/table-caption.svelte +0 -20
- package/src/components/ui/table/table-cell.svelte +0 -15
- package/src/components/ui/table/table-footer.svelte +0 -20
- package/src/components/ui/table/table-head.svelte +0 -15
- package/src/components/ui/table/table-header.svelte +0 -20
- package/src/components/ui/table/table-row.svelte +0 -15
- package/src/components/ui/table/table.svelte +0 -17
- package/src/components/ui/tabs/index.ts +0 -15
- package/src/components/ui/tabs/tabs-content.svelte +0 -30
- package/src/components/ui/tabs/tabs-list.svelte +0 -26
- package/src/components/ui/tabs/tabs-trigger.svelte +0 -37
- package/src/components/ui/tabs/tabs.svelte +0 -27
- package/src/components/ui/textarea/index.ts +0 -2
- package/src/components/ui/textarea/textarea.svelte +0 -24
- package/src/components/ui/tooltip/index.ts +0 -19
- package/src/components/ui/tooltip/tooltip-content.svelte +0 -52
- package/src/components/ui/tooltip/tooltip-portal.svelte +0 -7
- package/src/components/ui/tooltip/tooltip-provider.svelte +0 -7
- package/src/components/ui/tooltip/tooltip-trigger.svelte +0 -7
- package/src/components/ui/tooltip/tooltip.svelte +0 -10
- package/src/editor-config.svelte.ts +0 -23
- package/src/index.ts +0 -155
- package/src/markdown-deps.d.ts +0 -21
- package/src/router-state.svelte.ts +0 -65
- package/src/types.ts +0 -33
- package/src/utils.ts +0 -28
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
|
5
|
-
|
|
6
|
-
let { class: className, children, ...restProps }: HTMLAnchorAttributes & { children?: Snippet } = $props();
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<a
|
|
10
|
-
data-slot="breadcrumb-link"
|
|
11
|
-
class={cn("hover:text-foreground transition-colors", className)}
|
|
12
|
-
{...restProps}
|
|
13
|
-
>
|
|
14
|
-
{@render children?.()}
|
|
15
|
-
</a>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import type { HTMLOlAttributes } from 'svelte/elements';
|
|
5
|
-
|
|
6
|
-
let { class: className, children, ...restProps }: HTMLOlAttributes & { children?: Snippet } = $props();
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<ol
|
|
10
|
-
data-slot="breadcrumb-list"
|
|
11
|
-
class={cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5", className)}
|
|
12
|
-
{...restProps}
|
|
13
|
-
>
|
|
14
|
-
{@render children?.()}
|
|
15
|
-
</ol>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
5
|
-
|
|
6
|
-
let { class: className, children, ...restProps }: HTMLAttributes<HTMLSpanElement> & { children?: Snippet } = $props();
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<span
|
|
10
|
-
role="link"
|
|
11
|
-
aria-disabled="true"
|
|
12
|
-
aria-current="page"
|
|
13
|
-
data-slot="breadcrumb-page"
|
|
14
|
-
class={cn("text-foreground font-normal", className)}
|
|
15
|
-
{...restProps}
|
|
16
|
-
>
|
|
17
|
-
{@render children?.()}
|
|
18
|
-
</span>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import type { HTMLLiAttributes } from 'svelte/elements';
|
|
5
|
-
import { ChevronRight } from '@lucide/svelte';
|
|
6
|
-
|
|
7
|
-
let { class: className, children, ...restProps }: HTMLLiAttributes & { children?: Snippet } = $props();
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<li
|
|
11
|
-
role="presentation"
|
|
12
|
-
aria-hidden="true"
|
|
13
|
-
data-slot="breadcrumb-separator"
|
|
14
|
-
class={cn("[&>svg]:size-3.5", className)}
|
|
15
|
-
{...restProps}
|
|
16
|
-
>
|
|
17
|
-
{#if children}
|
|
18
|
-
{@render children()}
|
|
19
|
-
{:else}
|
|
20
|
-
<ChevronRight />
|
|
21
|
-
{/if}
|
|
22
|
-
</li>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
5
|
-
|
|
6
|
-
let { class: className, children, ...restProps }: HTMLAttributes<HTMLElement> & { children?: Snippet } = $props();
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<nav aria-label="breadcrumb" data-slot="breadcrumb" class={cn("", className)} {...restProps}>
|
|
10
|
-
{@render children?.()}
|
|
11
|
-
</nav>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Root } from './breadcrumb.svelte';
|
|
2
|
-
export { default as Item } from './breadcrumb-item.svelte';
|
|
3
|
-
export { default as Link } from './breadcrumb-link.svelte';
|
|
4
|
-
export { default as Page } from './breadcrumb-page.svelte';
|
|
5
|
-
export { default as Separator } from './breadcrumb-separator.svelte';
|
|
6
|
-
export { default as Ellipsis } from './breadcrumb-ellipsis.svelte';
|
|
7
|
-
export { default as List } from './breadcrumb-list.svelte';
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
-
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
4
|
-
import { type VariantProps, tv } from "tailwind-variants";
|
|
5
|
-
|
|
6
|
-
export const buttonVariants = tv({
|
|
7
|
-
base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 active:translate-y-px aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
8
|
-
variants: {
|
|
9
|
-
variant: {
|
|
10
|
-
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
11
|
-
outline: "border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground",
|
|
12
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
13
|
-
ghost: "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",
|
|
14
|
-
destructive: "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
|
|
15
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
16
|
-
},
|
|
17
|
-
size: {
|
|
18
|
-
default: "h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
|
|
19
|
-
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
20
|
-
sm: "h-8 gap-1 rounded-[min(var(--radius-md),12px)] px-3 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3.5",
|
|
21
|
-
lg: "h-10 gap-2 px-4 has-data-[icon=inline-end]:pr-3.5 has-data-[icon=inline-start]:pl-3.5",
|
|
22
|
-
icon: "size-9",
|
|
23
|
-
"icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
24
|
-
"icon-sm": "size-8 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
|
|
25
|
-
"icon-lg": "size-10",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
defaultVariants: {
|
|
29
|
-
variant: "default",
|
|
30
|
-
size: "default",
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
|
|
35
|
-
export type ButtonSize = VariantProps<typeof buttonVariants>["size"];
|
|
36
|
-
|
|
37
|
-
export type ButtonProps = WithElementRef<HTMLButtonAttributes, HTMLButtonElement> &
|
|
38
|
-
WithElementRef<HTMLAnchorAttributes, HTMLAnchorElement> & {
|
|
39
|
-
variant?: ButtonVariant;
|
|
40
|
-
size?: ButtonSize;
|
|
41
|
-
};
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<script lang="ts">
|
|
45
|
-
let {
|
|
46
|
-
class: className,
|
|
47
|
-
variant = "default",
|
|
48
|
-
size = "default",
|
|
49
|
-
ref = $bindable(null),
|
|
50
|
-
href = undefined,
|
|
51
|
-
type = "button",
|
|
52
|
-
disabled,
|
|
53
|
-
children,
|
|
54
|
-
...restProps
|
|
55
|
-
}: ButtonProps = $props();
|
|
56
|
-
|
|
57
|
-
let anchorRef: HTMLAnchorElement | null = $state(null);
|
|
58
|
-
let buttonRef: HTMLButtonElement | null = $state(null);
|
|
59
|
-
|
|
60
|
-
$effect(() => {
|
|
61
|
-
if (href && anchorRef) ref = anchorRef as any;
|
|
62
|
-
else if (!href && buttonRef) ref = buttonRef as any;
|
|
63
|
-
});
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
{#if href}
|
|
67
|
-
<a
|
|
68
|
-
bind:this={anchorRef}
|
|
69
|
-
data-slot="button"
|
|
70
|
-
class={cn(buttonVariants({ variant, size }), className)}
|
|
71
|
-
href={disabled ? undefined : href}
|
|
72
|
-
aria-disabled={disabled}
|
|
73
|
-
role={disabled ? "link" : undefined}
|
|
74
|
-
tabindex={disabled ? -1 : undefined}
|
|
75
|
-
{...restProps}
|
|
76
|
-
>
|
|
77
|
-
{@render children?.()}
|
|
78
|
-
</a>
|
|
79
|
-
{:else}
|
|
80
|
-
<button
|
|
81
|
-
bind:this={buttonRef}
|
|
82
|
-
data-slot="button"
|
|
83
|
-
class={cn(buttonVariants({ variant, size }), className)}
|
|
84
|
-
{type}
|
|
85
|
-
{disabled}
|
|
86
|
-
{...restProps}
|
|
87
|
-
>
|
|
88
|
-
{@render children?.()}
|
|
89
|
-
</button>
|
|
90
|
-
{/if}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import Root, {
|
|
3
|
-
type ButtonProps,
|
|
4
|
-
type ButtonSize,
|
|
5
|
-
type ButtonVariant,
|
|
6
|
-
buttonVariants,
|
|
7
|
-
} from "./button.svelte";
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
Root,
|
|
11
|
-
type ButtonProps as Props,
|
|
12
|
-
//
|
|
13
|
-
Root as Button,
|
|
14
|
-
buttonVariants,
|
|
15
|
-
type ButtonProps,
|
|
16
|
-
type ButtonSize,
|
|
17
|
-
type ButtonVariant,
|
|
18
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="card-action"
|
|
16
|
-
class={cn(
|
|
17
|
-
"cn-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="card-content"
|
|
16
|
-
class={cn("px-4 group-data-[size=sm]/card:px-3", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<p
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="card-description"
|
|
16
|
-
class={cn("text-muted-foreground text-sm", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</p>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="card-footer"
|
|
16
|
-
class={cn("bg-muted/50 rounded-b-xl p-4 group-data-[size=sm]/card:p-3 flex items-center", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="card-header"
|
|
16
|
-
class={cn(
|
|
17
|
-
"gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
</div>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div bind:this={ref} data-slot="card-title" class={cn("leading-none font-semibold tracking-tight group-data-[size=sm]/card:text-sm", className)} {...restProps}>
|
|
14
|
-
{@render children?.()}
|
|
15
|
-
</div>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
size = "default",
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & { size?: "default" | "sm" } = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div
|
|
15
|
-
bind:this={ref}
|
|
16
|
-
data-slot="card"
|
|
17
|
-
data-size={size}
|
|
18
|
-
class={cn("shadow-sm bg-card text-card-foreground gap-4 overflow-hidden rounded-lg py-4 text-sm has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg group/card flex flex-col", className)}
|
|
19
|
-
{...restProps}
|
|
20
|
-
>
|
|
21
|
-
{@render children?.()}
|
|
22
|
-
</div>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Root from "./card.svelte";
|
|
2
|
-
import Content from "./card-content.svelte";
|
|
3
|
-
import Description from "./card-description.svelte";
|
|
4
|
-
import Footer from "./card-footer.svelte";
|
|
5
|
-
import Header from "./card-header.svelte";
|
|
6
|
-
import Title from "./card-title.svelte";
|
|
7
|
-
import Action from "./card-action.svelte";
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
Root,
|
|
11
|
-
Content,
|
|
12
|
-
Description,
|
|
13
|
-
Footer,
|
|
14
|
-
Header,
|
|
15
|
-
Title,
|
|
16
|
-
Action,
|
|
17
|
-
//
|
|
18
|
-
Root as Card,
|
|
19
|
-
Content as CardContent,
|
|
20
|
-
Description as CardDescription,
|
|
21
|
-
Footer as CardFooter,
|
|
22
|
-
Header as CardHeader,
|
|
23
|
-
Title as CardTitle,
|
|
24
|
-
Action as CardAction,
|
|
25
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Checkbox as CheckboxPrimitive } from "bits-ui";
|
|
3
|
-
import { cn, type WithoutChildrenOrChild } from "../../../utils.js";
|
|
4
|
-
import CheckIcon from '@lucide/svelte/icons/check';
|
|
5
|
-
import MinusIcon from '@lucide/svelte/icons/minus';
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
ref = $bindable(null),
|
|
9
|
-
checked = $bindable(false),
|
|
10
|
-
indeterminate = $bindable(false),
|
|
11
|
-
class: className,
|
|
12
|
-
...restProps
|
|
13
|
-
}: WithoutChildrenOrChild<CheckboxPrimitive.RootProps> = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<CheckboxPrimitive.Root
|
|
17
|
-
bind:ref
|
|
18
|
-
data-slot="checkbox"
|
|
19
|
-
class={cn(
|
|
20
|
-
"border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
21
|
-
className
|
|
22
|
-
)}
|
|
23
|
-
bind:checked
|
|
24
|
-
bind:indeterminate
|
|
25
|
-
{...restProps}
|
|
26
|
-
>
|
|
27
|
-
{#snippet children({ checked, indeterminate })}
|
|
28
|
-
<div
|
|
29
|
-
data-slot="checkbox-indicator"
|
|
30
|
-
class="[&>svg]:size-3.5 grid place-content-center text-current transition-none"
|
|
31
|
-
>
|
|
32
|
-
{#if checked}
|
|
33
|
-
<CheckIcon />
|
|
34
|
-
{:else if indeterminate}
|
|
35
|
-
<MinusIcon />
|
|
36
|
-
{/if}
|
|
37
|
-
</div>
|
|
38
|
-
{/snippet}
|
|
39
|
-
</CheckboxPrimitive.Root>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command } from 'cmdk-sv';
|
|
3
|
-
import * as Dialog from '../dialog/index.js';
|
|
4
|
-
import { cn } from '../../../utils.js';
|
|
5
|
-
import type { Snippet } from 'svelte';
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
open = $bindable(false),
|
|
9
|
-
class: className,
|
|
10
|
-
children,
|
|
11
|
-
...restProps
|
|
12
|
-
}: {
|
|
13
|
-
open?: boolean;
|
|
14
|
-
class?: string;
|
|
15
|
-
children?: Snippet;
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
} = $props();
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<Dialog.Dialog bind:open {...restProps}>
|
|
21
|
-
<Dialog.DialogContent class="overflow-hidden p-0">
|
|
22
|
-
<Command.Root
|
|
23
|
-
class={cn(
|
|
24
|
-
"[&_[data-cmdk-group-heading]]:text-muted-foreground flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:font-medium [&_[data-cmdk-group]:not([hidden])_~[data-cmdk-group]]:pt-0 [&_[data-cmdk-input-wrapper]_svg]:h-5 [&_[data-cmdk-input-wrapper]_svg]:w-5 [&_[data-cmdk-input]]:h-12 [&_[data-cmdk-item]]:px-2 [&_[data-cmdk-item]]:py-3",
|
|
25
|
-
className
|
|
26
|
-
)}
|
|
27
|
-
>
|
|
28
|
-
{@render children?.()}
|
|
29
|
-
</Command.Root>
|
|
30
|
-
</Dialog.DialogContent>
|
|
31
|
-
</Dialog.Dialog>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContextMenu as ContextMenuPrimitive } from 'bits-ui';
|
|
2
|
-
|
|
3
|
-
const Root = ContextMenuPrimitive.Root;
|
|
4
|
-
const Trigger = ContextMenuPrimitive.Trigger;
|
|
5
|
-
const Content = ContextMenuPrimitive.Content;
|
|
6
|
-
const Item = ContextMenuPrimitive.Item;
|
|
7
|
-
const Separator = ContextMenuPrimitive.Separator;
|
|
8
|
-
const Group = ContextMenuPrimitive.Group;
|
|
9
|
-
const GroupHeading = ContextMenuPrimitive.GroupHeading;
|
|
10
|
-
|
|
11
|
-
export { Root, Trigger, Content, Item, Separator, Group, GroupHeading };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
3
|
-
|
|
4
|
-
let {
|
|
5
|
-
ref = $bindable(null),
|
|
6
|
-
type = "button",
|
|
7
|
-
...restProps
|
|
8
|
-
}: DialogPrimitive.CloseProps = $props();
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<DialogPrimitive.Close bind:ref data-slot="dialog-close" {type} {...restProps} />
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
3
|
-
import DialogPortal from "./dialog-portal.svelte";
|
|
4
|
-
import type { Snippet } from "svelte";
|
|
5
|
-
import * as Dialog from "./index.js";
|
|
6
|
-
import { cn, type WithoutChildrenOrChild } from "../../../utils.js";
|
|
7
|
-
import type { ComponentProps } from "svelte";
|
|
8
|
-
import { Button } from "../../ui/button/index.js";
|
|
9
|
-
import XIcon from '@lucide/svelte/icons/x';
|
|
10
|
-
|
|
11
|
-
let {
|
|
12
|
-
ref = $bindable(null),
|
|
13
|
-
class: className,
|
|
14
|
-
portalProps,
|
|
15
|
-
children,
|
|
16
|
-
showCloseButton = true,
|
|
17
|
-
...restProps
|
|
18
|
-
}: WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
|
|
19
|
-
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof DialogPortal>>;
|
|
20
|
-
children: Snippet;
|
|
21
|
-
showCloseButton?: boolean;
|
|
22
|
-
} = $props();
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<DialogPortal {...portalProps}>
|
|
26
|
-
<Dialog.Overlay />
|
|
27
|
-
<DialogPrimitive.Content
|
|
28
|
-
bind:ref
|
|
29
|
-
data-slot="dialog-content"
|
|
30
|
-
class={cn(
|
|
31
|
-
"bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-lg p-6 text-sm ring-1 duration-100 sm:max-w-lg fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none",
|
|
32
|
-
className
|
|
33
|
-
)}
|
|
34
|
-
{...restProps}
|
|
35
|
-
>
|
|
36
|
-
{@render children?.()}
|
|
37
|
-
{#if showCloseButton}
|
|
38
|
-
<DialogPrimitive.Close data-slot="dialog-close">
|
|
39
|
-
{#snippet child({ props })}
|
|
40
|
-
<Button variant="ghost" class="absolute top-2 right-2" size="icon-sm" {...props}>
|
|
41
|
-
<XIcon />
|
|
42
|
-
<span class="sr-only">Close</span>
|
|
43
|
-
</Button>
|
|
44
|
-
{/snippet}
|
|
45
|
-
</DialogPrimitive.Close>
|
|
46
|
-
{/if}
|
|
47
|
-
</DialogPrimitive.Content>
|
|
48
|
-
</DialogPortal>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: DialogPrimitive.DescriptionProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<DialogPrimitive.Description
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="dialog-description"
|
|
15
|
-
class={cn("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
5
|
-
import { Button } from "../../ui/button/index.js";
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
ref = $bindable(null),
|
|
9
|
-
class: className,
|
|
10
|
-
children,
|
|
11
|
-
showCloseButton = false,
|
|
12
|
-
...restProps
|
|
13
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
14
|
-
showCloseButton?: boolean;
|
|
15
|
-
} = $props();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<div
|
|
19
|
-
bind:this={ref}
|
|
20
|
-
data-slot="dialog-footer"
|
|
21
|
-
class={cn("bg-muted/50 -mx-6 -mb-6 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}
|
|
22
|
-
{...restProps}
|
|
23
|
-
>
|
|
24
|
-
{@render children?.()}
|
|
25
|
-
{#if showCloseButton}
|
|
26
|
-
<DialogPrimitive.Close>
|
|
27
|
-
{#snippet child({ props })}
|
|
28
|
-
<Button variant="outline" {...props}>Close</Button>
|
|
29
|
-
{/snippet}
|
|
30
|
-
</DialogPrimitive.Close>
|
|
31
|
-
{/if}
|
|
32
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="dialog-header"
|
|
16
|
-
class={cn("gap-2 flex flex-col", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: DialogPrimitive.OverlayProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<DialogPrimitive.Overlay
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="dialog-overlay"
|
|
15
|
-
class={cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50", className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|