@aphexcms/ui 0.1.1 → 0.1.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 +2 -2
- package/src/lib/components/app-sidebar.svelte +0 -171
- package/src/lib/components/nav-main.svelte +0 -64
- package/src/lib/components/nav-projects.svelte +0 -76
- package/src/lib/components/nav-user.svelte +0 -87
- package/src/lib/components/sidebar-07/+page.svelte +0 -39
- package/src/lib/components/team-switcher.svelte +0 -67
- package/src/lib/components/ui/alert/alert-description.svelte +0 -23
- package/src/lib/components/ui/alert/alert-title.svelte +0 -20
- package/src/lib/components/ui/alert/alert.svelte +0 -44
- package/src/lib/components/ui/alert/index.ts +0 -14
- package/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte +0 -18
- package/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte +0 -18
- package/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte +0 -27
- package/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte +0 -17
- package/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte +0 -20
- package/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte +0 -20
- package/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte +0 -20
- package/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte +0 -17
- package/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte +0 -7
- package/src/lib/components/ui/alert-dialog/index.ts +0 -39
- package/src/lib/components/ui/avatar/avatar-fallback.svelte +0 -17
- package/src/lib/components/ui/avatar/avatar-image.svelte +0 -17
- package/src/lib/components/ui/avatar/avatar.svelte +0 -19
- package/src/lib/components/ui/avatar/index.ts +0 -13
- package/src/lib/components/ui/badge/badge.svelte +0 -49
- package/src/lib/components/ui/badge/index.ts +0 -2
- package/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +0 -23
- package/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte +0 -20
- package/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte +0 -31
- package/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte +0 -23
- package/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte +0 -23
- package/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte +0 -27
- package/src/lib/components/ui/breadcrumb/breadcrumb.svelte +0 -21
- package/src/lib/components/ui/breadcrumb/index.ts +0 -25
- package/src/lib/components/ui/button/button.svelte +0 -82
- package/src/lib/components/ui/button/index.ts +0 -17
- package/src/lib/components/ui/card/card-action.svelte +0 -20
- package/src/lib/components/ui/card/card-content.svelte +0 -15
- package/src/lib/components/ui/card/card-description.svelte +0 -20
- package/src/lib/components/ui/card/card-footer.svelte +0 -20
- package/src/lib/components/ui/card/card-header.svelte +0 -23
- package/src/lib/components/ui/card/card-title.svelte +0 -20
- package/src/lib/components/ui/card/card.svelte +0 -23
- package/src/lib/components/ui/card/index.ts +0 -25
- package/src/lib/components/ui/collapsible/collapsible-content.svelte +0 -7
- package/src/lib/components/ui/collapsible/collapsible-trigger.svelte +0 -7
- package/src/lib/components/ui/collapsible/collapsible.svelte +0 -11
- package/src/lib/components/ui/collapsible/index.ts +0 -13
- package/src/lib/components/ui/command/command-dialog.svelte +0 -40
- package/src/lib/components/ui/command/command-empty.svelte +0 -17
- package/src/lib/components/ui/command/command-group.svelte +0 -30
- package/src/lib/components/ui/command/command-input.svelte +0 -26
- package/src/lib/components/ui/command/command-item.svelte +0 -20
- package/src/lib/components/ui/command/command-link-item.svelte +0 -20
- package/src/lib/components/ui/command/command-list.svelte +0 -17
- package/src/lib/components/ui/command/command-separator.svelte +0 -17
- package/src/lib/components/ui/command/command-shortcut.svelte +0 -20
- package/src/lib/components/ui/command/command.svelte +0 -22
- package/src/lib/components/ui/command/index.ts +0 -40
- package/src/lib/components/ui/dialog/dialog-close.svelte +0 -7
- package/src/lib/components/ui/dialog/dialog-content.svelte +0 -43
- package/src/lib/components/ui/dialog/dialog-description.svelte +0 -17
- package/src/lib/components/ui/dialog/dialog-footer.svelte +0 -20
- package/src/lib/components/ui/dialog/dialog-header.svelte +0 -20
- package/src/lib/components/ui/dialog/dialog-overlay.svelte +0 -20
- package/src/lib/components/ui/dialog/dialog-title.svelte +0 -17
- package/src/lib/components/ui/dialog/dialog-trigger.svelte +0 -7
- package/src/lib/components/ui/dialog/index.ts +0 -37
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +0 -41
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte +0 -27
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +0 -22
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte +0 -7
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte +0 -27
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte +0 -24
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +0 -16
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +0 -31
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte +0 -17
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +0 -20
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +0 -20
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +0 -29
- package/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +0 -7
- package/src/lib/components/ui/dropdown-menu/index.ts +0 -49
- package/src/lib/components/ui/input/index.ts +0 -7
- package/src/lib/components/ui/input/input.svelte +0 -52
- package/src/lib/components/ui/label/index.ts +0 -7
- package/src/lib/components/ui/label/label.svelte +0 -20
- package/src/lib/components/ui/popover/index.ts +0 -17
- package/src/lib/components/ui/popover/popover-content.svelte +0 -29
- package/src/lib/components/ui/popover/popover-trigger.svelte +0 -17
- package/src/lib/components/ui/select/index.ts +0 -37
- package/src/lib/components/ui/select/select-content.svelte +0 -40
- package/src/lib/components/ui/select/select-group-heading.svelte +0 -21
- package/src/lib/components/ui/select/select-group.svelte +0 -7
- package/src/lib/components/ui/select/select-item.svelte +0 -38
- package/src/lib/components/ui/select/select-label.svelte +0 -20
- package/src/lib/components/ui/select/select-scroll-down-button.svelte +0 -20
- package/src/lib/components/ui/select/select-scroll-up-button.svelte +0 -20
- package/src/lib/components/ui/select/select-separator.svelte +0 -18
- package/src/lib/components/ui/select/select-trigger.svelte +0 -29
- package/src/lib/components/ui/separator/index.ts +0 -7
- package/src/lib/components/ui/separator/separator.svelte +0 -21
- package/src/lib/components/ui/sheet/index.ts +0 -36
- package/src/lib/components/ui/sheet/sheet-close.svelte +0 -7
- package/src/lib/components/ui/sheet/sheet-content.svelte +0 -60
- package/src/lib/components/ui/sheet/sheet-description.svelte +0 -17
- package/src/lib/components/ui/sheet/sheet-footer.svelte +0 -20
- package/src/lib/components/ui/sheet/sheet-header.svelte +0 -20
- package/src/lib/components/ui/sheet/sheet-overlay.svelte +0 -20
- package/src/lib/components/ui/sheet/sheet-title.svelte +0 -17
- package/src/lib/components/ui/sheet/sheet-trigger.svelte +0 -7
- package/src/lib/components/ui/sidebar/constants.ts +0 -6
- package/src/lib/components/ui/sidebar/context.svelte.ts +0 -79
- package/src/lib/components/ui/sidebar/index.ts +0 -75
- package/src/lib/components/ui/sidebar/sidebar-content.svelte +0 -24
- package/src/lib/components/ui/sidebar/sidebar-footer.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-group-action.svelte +0 -36
- package/src/lib/components/ui/sidebar/sidebar-group-content.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-group-label.svelte +0 -34
- package/src/lib/components/ui/sidebar/sidebar-group.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-header.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-input.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-inset.svelte +0 -24
- package/src/lib/components/ui/sidebar/sidebar-menu-action.svelte +0 -43
- package/src/lib/components/ui/sidebar/sidebar-menu-badge.svelte +0 -29
- package/src/lib/components/ui/sidebar/sidebar-menu-button.svelte +0 -101
- package/src/lib/components/ui/sidebar/sidebar-menu-item.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte +0 -36
- package/src/lib/components/ui/sidebar/sidebar-menu-sub-button.svelte +0 -43
- package/src/lib/components/ui/sidebar/sidebar-menu-sub-item.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte +0 -25
- package/src/lib/components/ui/sidebar/sidebar-menu.svelte +0 -21
- package/src/lib/components/ui/sidebar/sidebar-provider.svelte +0 -53
- package/src/lib/components/ui/sidebar/sidebar-rail.svelte +0 -36
- package/src/lib/components/ui/sidebar/sidebar-separator.svelte +0 -19
- package/src/lib/components/ui/sidebar/sidebar-trigger.svelte +0 -35
- package/src/lib/components/ui/sidebar/sidebar.svelte +0 -101
- package/src/lib/components/ui/skeleton/index.ts +0 -7
- package/src/lib/components/ui/skeleton/skeleton.svelte +0 -17
- package/src/lib/components/ui/tabs/index.ts +0 -16
- package/src/lib/components/ui/tabs/tabs-content.svelte +0 -17
- package/src/lib/components/ui/tabs/tabs-list.svelte +0 -16
- package/src/lib/components/ui/tabs/tabs-trigger.svelte +0 -20
- package/src/lib/components/ui/tabs/tabs.svelte +0 -19
- package/src/lib/components/ui/textarea/index.ts +0 -7
- package/src/lib/components/ui/textarea/textarea.svelte +0 -22
- package/src/lib/components/ui/tooltip/index.ts +0 -21
- package/src/lib/components/ui/tooltip/tooltip-content.svelte +0 -47
- package/src/lib/components/ui/tooltip/tooltip-trigger.svelte +0 -7
- package/src/lib/hooks/is-mobile.svelte.ts +0 -9
- package/src/lib/utils.ts +0 -13
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from '@lib/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('[.border-t]:pt-6 flex items-center px-6', className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from '@lib/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
|
-
'@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6',
|
|
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 '@lib/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-title"
|
|
16
|
-
class={cn('font-semibold leading-none', className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
import { cn, type WithElementRef } from '@lib/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"
|
|
16
|
-
class={cn(
|
|
17
|
-
'bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm',
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
</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,7 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Collapsible as CollapsiblePrimitive } from 'bits-ui';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), ...restProps }: CollapsiblePrimitive.ContentProps = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<CollapsiblePrimitive.Content bind:ref data-slot="collapsible-content" {...restProps} />
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Collapsible as CollapsiblePrimitive } from 'bits-ui';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), ...restProps }: CollapsiblePrimitive.TriggerProps = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<CollapsiblePrimitive.Trigger bind:ref data-slot="collapsible-trigger" {...restProps} />
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Collapsible as CollapsiblePrimitive } from 'bits-ui';
|
|
3
|
-
|
|
4
|
-
let {
|
|
5
|
-
ref = $bindable(null),
|
|
6
|
-
open = $bindable(false),
|
|
7
|
-
...restProps
|
|
8
|
-
}: CollapsiblePrimitive.RootProps = $props();
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<CollapsiblePrimitive.Root bind:ref bind:open data-slot="collapsible" {...restProps} />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Root from './collapsible.svelte';
|
|
2
|
-
import Trigger from './collapsible-trigger.svelte';
|
|
3
|
-
import Content from './collapsible-content.svelte';
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
Root,
|
|
7
|
-
Content,
|
|
8
|
-
Trigger,
|
|
9
|
-
//
|
|
10
|
-
Root as Collapsible,
|
|
11
|
-
Content as CollapsibleContent,
|
|
12
|
-
Trigger as CollapsibleTrigger
|
|
13
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Command as CommandPrimitive, Dialog as DialogPrimitive } from 'bits-ui';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import Command from './command.svelte';
|
|
5
|
-
import * as Dialog from '@lib/components/ui/dialog/index.js';
|
|
6
|
-
import type { WithoutChildrenOrChild } from '@lib/utils.js';
|
|
7
|
-
|
|
8
|
-
let {
|
|
9
|
-
open = $bindable(false),
|
|
10
|
-
ref = $bindable(null),
|
|
11
|
-
value = $bindable(''),
|
|
12
|
-
title = 'Command Palette',
|
|
13
|
-
description = 'Search for a command to run',
|
|
14
|
-
portalProps,
|
|
15
|
-
children,
|
|
16
|
-
...restProps
|
|
17
|
-
}: WithoutChildrenOrChild<DialogPrimitive.RootProps> &
|
|
18
|
-
WithoutChildrenOrChild<CommandPrimitive.RootProps> & {
|
|
19
|
-
portalProps?: DialogPrimitive.PortalProps;
|
|
20
|
-
children: Snippet;
|
|
21
|
-
title?: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
} = $props();
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<Dialog.Root bind:open {...restProps}>
|
|
27
|
-
<Dialog.Header class="sr-only">
|
|
28
|
-
<Dialog.Title>{title}</Dialog.Title>
|
|
29
|
-
<Dialog.Description>{description}</Dialog.Description>
|
|
30
|
-
</Dialog.Header>
|
|
31
|
-
<Dialog.Content class="overflow-hidden p-0" {portalProps}>
|
|
32
|
-
<Command
|
|
33
|
-
class="**:data-[slot=command-input-wrapper]:h-12 [&_[data-command-group]:not([hidden])_~[data-command-group]]:pt-0 [&_[data-command-group]]:px-2 [&_[data-command-input-wrapper]_svg]:h-5 [&_[data-command-input-wrapper]_svg]:w-5 [&_[data-command-input]]:h-12 [&_[data-command-item]]:px-2 [&_[data-command-item]]:py-3 [&_[data-command-item]_svg]:h-5 [&_[data-command-item]_svg]:w-5"
|
|
34
|
-
{...restProps}
|
|
35
|
-
bind:value
|
|
36
|
-
bind:ref
|
|
37
|
-
{children}
|
|
38
|
-
/>
|
|
39
|
-
</Dialog.Content>
|
|
40
|
-
</Dialog.Root>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: CommandPrimitive.EmptyProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<CommandPrimitive.Empty
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="command-empty"
|
|
15
|
-
class={cn('py-6 text-center text-sm', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive, useId } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
heading,
|
|
10
|
-
value,
|
|
11
|
-
...restProps
|
|
12
|
-
}: CommandPrimitive.GroupProps & {
|
|
13
|
-
heading?: string;
|
|
14
|
-
} = $props();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<CommandPrimitive.Group
|
|
18
|
-
bind:ref
|
|
19
|
-
data-slot="command-group"
|
|
20
|
-
class={cn('text-foreground overflow-hidden p-1', className)}
|
|
21
|
-
value={value ?? heading ?? `----${useId()}`}
|
|
22
|
-
{...restProps}
|
|
23
|
-
>
|
|
24
|
-
{#if heading}
|
|
25
|
-
<CommandPrimitive.GroupHeading class="text-muted-foreground px-2 py-1.5 text-xs font-medium">
|
|
26
|
-
{heading}
|
|
27
|
-
</CommandPrimitive.GroupHeading>
|
|
28
|
-
{/if}
|
|
29
|
-
<CommandPrimitive.GroupItems {children} />
|
|
30
|
-
</CommandPrimitive.Group>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
3
|
-
import SearchIcon from '@lucide/svelte/icons/search';
|
|
4
|
-
import { cn } from '@lib/utils.js';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
value = $bindable(''),
|
|
10
|
-
...restProps
|
|
11
|
-
}: CommandPrimitive.InputProps = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div class="flex h-9 items-center gap-2 border-b pl-3 pr-8" data-slot="command-input-wrapper">
|
|
15
|
-
<SearchIcon class="size-4 shrink-0 opacity-50" />
|
|
16
|
-
<CommandPrimitive.Input
|
|
17
|
-
data-slot="command-input"
|
|
18
|
-
class={cn(
|
|
19
|
-
'placeholder:text-muted-foreground outline-hidden flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50',
|
|
20
|
-
className
|
|
21
|
-
)}
|
|
22
|
-
bind:ref
|
|
23
|
-
{...restProps}
|
|
24
|
-
bind:value
|
|
25
|
-
/>
|
|
26
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: CommandPrimitive.ItemProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<CommandPrimitive.Item
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="command-item"
|
|
15
|
-
class={cn(
|
|
16
|
-
"aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
19
|
-
{...restProps}
|
|
20
|
-
/>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: CommandPrimitive.LinkItemProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<CommandPrimitive.LinkItem
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="command-item"
|
|
15
|
-
class={cn(
|
|
16
|
-
"aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
19
|
-
{...restProps}
|
|
20
|
-
/>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: CommandPrimitive.ListProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<CommandPrimitive.List
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="command-list"
|
|
15
|
-
class={cn('max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: CommandPrimitive.SeparatorProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<CommandPrimitive.Separator
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="command-separator"
|
|
15
|
-
class={cn('bg-border -mx-1 h-px', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from '@lib/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<HTMLSpanElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<span
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="command-shortcut"
|
|
16
|
-
class={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</span>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
value = $bindable(''),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: CommandPrimitive.RootProps = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<CommandPrimitive.Root
|
|
14
|
-
bind:value
|
|
15
|
-
bind:ref
|
|
16
|
-
data-slot="command"
|
|
17
|
-
class={cn(
|
|
18
|
-
'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...restProps}
|
|
22
|
-
/>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Command as CommandPrimitive } from 'bits-ui';
|
|
2
|
-
|
|
3
|
-
import Root from './command.svelte';
|
|
4
|
-
import Dialog from './command-dialog.svelte';
|
|
5
|
-
import Empty from './command-empty.svelte';
|
|
6
|
-
import Group from './command-group.svelte';
|
|
7
|
-
import Item from './command-item.svelte';
|
|
8
|
-
import Input from './command-input.svelte';
|
|
9
|
-
import List from './command-list.svelte';
|
|
10
|
-
import Separator from './command-separator.svelte';
|
|
11
|
-
import Shortcut from './command-shortcut.svelte';
|
|
12
|
-
import LinkItem from './command-link-item.svelte';
|
|
13
|
-
|
|
14
|
-
const Loading = CommandPrimitive.Loading;
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
Root,
|
|
18
|
-
Dialog,
|
|
19
|
-
Empty,
|
|
20
|
-
Group,
|
|
21
|
-
Item,
|
|
22
|
-
LinkItem,
|
|
23
|
-
Input,
|
|
24
|
-
List,
|
|
25
|
-
Separator,
|
|
26
|
-
Shortcut,
|
|
27
|
-
Loading,
|
|
28
|
-
//
|
|
29
|
-
Root as Command,
|
|
30
|
-
Dialog as CommandDialog,
|
|
31
|
-
Empty as CommandEmpty,
|
|
32
|
-
Group as CommandGroup,
|
|
33
|
-
Item as CommandItem,
|
|
34
|
-
LinkItem as CommandLinkItem,
|
|
35
|
-
Input as CommandInput,
|
|
36
|
-
List as CommandList,
|
|
37
|
-
Separator as CommandSeparator,
|
|
38
|
-
Shortcut as CommandShortcut,
|
|
39
|
-
Loading as CommandLoading
|
|
40
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from 'bits-ui';
|
|
3
|
-
import XIcon from '@lucide/svelte/icons/x';
|
|
4
|
-
import type { Snippet } from 'svelte';
|
|
5
|
-
import * as Dialog from './index.js';
|
|
6
|
-
import { cn, type WithoutChildrenOrChild } from '@lib/utils.js';
|
|
7
|
-
|
|
8
|
-
let {
|
|
9
|
-
ref = $bindable(null),
|
|
10
|
-
class: className,
|
|
11
|
-
portalProps,
|
|
12
|
-
children,
|
|
13
|
-
showCloseButton = true,
|
|
14
|
-
...restProps
|
|
15
|
-
}: WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
|
|
16
|
-
portalProps?: DialogPrimitive.PortalProps;
|
|
17
|
-
children: Snippet;
|
|
18
|
-
showCloseButton?: boolean;
|
|
19
|
-
} = $props();
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<Dialog.Portal {...portalProps}>
|
|
23
|
-
<Dialog.Overlay />
|
|
24
|
-
<DialogPrimitive.Content
|
|
25
|
-
bind:ref
|
|
26
|
-
data-slot="dialog-content"
|
|
27
|
-
class={cn(
|
|
28
|
-
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',
|
|
29
|
-
className
|
|
30
|
-
)}
|
|
31
|
-
{...restProps}
|
|
32
|
-
>
|
|
33
|
-
{@render children?.()}
|
|
34
|
-
{#if showCloseButton}
|
|
35
|
-
<DialogPrimitive.Close
|
|
36
|
-
class="ring-offset-background focus:ring-ring rounded-xs focus:outline-hidden absolute end-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
37
|
-
>
|
|
38
|
-
<XIcon />
|
|
39
|
-
<span class="sr-only">Close</span>
|
|
40
|
-
</DialogPrimitive.Close>
|
|
41
|
-
{/if}
|
|
42
|
-
</DialogPrimitive.Content>
|
|
43
|
-
</Dialog.Portal>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/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 text-sm', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from '@lib/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="dialog-footer"
|
|
16
|
-
class={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', 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 '@lib/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('flex flex-col gap-2 text-center sm:text-left', className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/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(
|
|
16
|
-
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
19
|
-
{...restProps}
|
|
20
|
-
/>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: DialogPrimitive.TitleProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<DialogPrimitive.Title
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="dialog-title"
|
|
15
|
-
class={cn('text-lg font-semibold leading-none', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from 'bits-ui';
|
|
2
|
-
|
|
3
|
-
import Title from './dialog-title.svelte';
|
|
4
|
-
import Footer from './dialog-footer.svelte';
|
|
5
|
-
import Header from './dialog-header.svelte';
|
|
6
|
-
import Overlay from './dialog-overlay.svelte';
|
|
7
|
-
import Content from './dialog-content.svelte';
|
|
8
|
-
import Description from './dialog-description.svelte';
|
|
9
|
-
import Trigger from './dialog-trigger.svelte';
|
|
10
|
-
import Close from './dialog-close.svelte';
|
|
11
|
-
|
|
12
|
-
const Root = DialogPrimitive.Root;
|
|
13
|
-
const Portal = DialogPrimitive.Portal;
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
Root,
|
|
17
|
-
Title,
|
|
18
|
-
Portal,
|
|
19
|
-
Footer,
|
|
20
|
-
Header,
|
|
21
|
-
Trigger,
|
|
22
|
-
Overlay,
|
|
23
|
-
Content,
|
|
24
|
-
Description,
|
|
25
|
-
Close,
|
|
26
|
-
//
|
|
27
|
-
Root as Dialog,
|
|
28
|
-
Title as DialogTitle,
|
|
29
|
-
Portal as DialogPortal,
|
|
30
|
-
Footer as DialogFooter,
|
|
31
|
-
Header as DialogHeader,
|
|
32
|
-
Trigger as DialogTrigger,
|
|
33
|
-
Overlay as DialogOverlay,
|
|
34
|
-
Content as DialogContent,
|
|
35
|
-
Description as DialogDescription,
|
|
36
|
-
Close as DialogClose
|
|
37
|
-
};
|