@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,27 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
3
|
-
import AlertDialogOverlay from './alert-dialog-overlay.svelte';
|
|
4
|
-
import { cn, type WithoutChild, type WithoutChildrenOrChild } from '@lib/utils.js';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
portalProps,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithoutChild<AlertDialogPrimitive.ContentProps> & {
|
|
12
|
-
portalProps?: WithoutChildrenOrChild<AlertDialogPrimitive.PortalProps>;
|
|
13
|
-
} = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<AlertDialogPrimitive.Portal {...portalProps}>
|
|
17
|
-
<AlertDialogOverlay />
|
|
18
|
-
<AlertDialogPrimitive.Content
|
|
19
|
-
bind:ref
|
|
20
|
-
data-slot="alert-dialog-content"
|
|
21
|
-
class={cn(
|
|
22
|
-
'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',
|
|
23
|
-
className
|
|
24
|
-
)}
|
|
25
|
-
{...restProps}
|
|
26
|
-
/>
|
|
27
|
-
</AlertDialogPrimitive.Portal>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: AlertDialogPrimitive.DescriptionProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<AlertDialogPrimitive.Description
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="alert-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="alert-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="alert-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 { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: AlertDialogPrimitive.OverlayProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<AlertDialogPrimitive.Overlay
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="alert-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 { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: AlertDialogPrimitive.TitleProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<AlertDialogPrimitive.Title
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="alert-dialog-title"
|
|
15
|
-
class={cn('text-lg font-semibold', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), ...restProps }: AlertDialogPrimitive.TriggerProps = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<AlertDialogPrimitive.Trigger bind:ref data-slot="alert-dialog-trigger" {...restProps} />
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
2
|
-
import Trigger from './alert-dialog-trigger.svelte';
|
|
3
|
-
import Title from './alert-dialog-title.svelte';
|
|
4
|
-
import Action from './alert-dialog-action.svelte';
|
|
5
|
-
import Cancel from './alert-dialog-cancel.svelte';
|
|
6
|
-
import Footer from './alert-dialog-footer.svelte';
|
|
7
|
-
import Header from './alert-dialog-header.svelte';
|
|
8
|
-
import Overlay from './alert-dialog-overlay.svelte';
|
|
9
|
-
import Content from './alert-dialog-content.svelte';
|
|
10
|
-
import Description from './alert-dialog-description.svelte';
|
|
11
|
-
|
|
12
|
-
const Root = AlertDialogPrimitive.Root;
|
|
13
|
-
const Portal = AlertDialogPrimitive.Portal;
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
Root,
|
|
17
|
-
Title,
|
|
18
|
-
Action,
|
|
19
|
-
Cancel,
|
|
20
|
-
Portal,
|
|
21
|
-
Footer,
|
|
22
|
-
Header,
|
|
23
|
-
Trigger,
|
|
24
|
-
Overlay,
|
|
25
|
-
Content,
|
|
26
|
-
Description,
|
|
27
|
-
//
|
|
28
|
-
Root as AlertDialog,
|
|
29
|
-
Title as AlertDialogTitle,
|
|
30
|
-
Action as AlertDialogAction,
|
|
31
|
-
Cancel as AlertDialogCancel,
|
|
32
|
-
Portal as AlertDialogPortal,
|
|
33
|
-
Footer as AlertDialogFooter,
|
|
34
|
-
Header as AlertDialogHeader,
|
|
35
|
-
Trigger as AlertDialogTrigger,
|
|
36
|
-
Overlay as AlertDialogOverlay,
|
|
37
|
-
Content as AlertDialogContent,
|
|
38
|
-
Description as AlertDialogDescription
|
|
39
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: AvatarPrimitive.FallbackProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<AvatarPrimitive.Fallback
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="avatar-fallback"
|
|
15
|
-
class={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: AvatarPrimitive.ImageProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<AvatarPrimitive.Image
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="avatar-image"
|
|
15
|
-
class={cn('aspect-square size-full', className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn } from '@lib/utils.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
loadingStatus = $bindable('loading'),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: AvatarPrimitive.RootProps = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<AvatarPrimitive.Root
|
|
14
|
-
bind:ref
|
|
15
|
-
bind:loadingStatus
|
|
16
|
-
data-slot="avatar"
|
|
17
|
-
class={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}
|
|
18
|
-
{...restProps}
|
|
19
|
-
/>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Root from './avatar.svelte';
|
|
2
|
-
import Image from './avatar-image.svelte';
|
|
3
|
-
import Fallback from './avatar-fallback.svelte';
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
Root,
|
|
7
|
-
Image,
|
|
8
|
-
Fallback,
|
|
9
|
-
//
|
|
10
|
-
Root as Avatar,
|
|
11
|
-
Image as AvatarImage,
|
|
12
|
-
Fallback as AvatarFallback
|
|
13
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import { type VariantProps, tv } from 'tailwind-variants';
|
|
3
|
-
|
|
4
|
-
export const badgeVariants = tv({
|
|
5
|
-
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 inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3',
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: 'bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent',
|
|
9
|
-
secondary:
|
|
10
|
-
'bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent',
|
|
11
|
-
destructive:
|
|
12
|
-
'bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white',
|
|
13
|
-
outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground'
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: 'default'
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<script lang="ts">
|
|
25
|
-
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
|
26
|
-
import { cn, type WithElementRef } from '@lib/utils.js';
|
|
27
|
-
|
|
28
|
-
let {
|
|
29
|
-
ref = $bindable(null),
|
|
30
|
-
href,
|
|
31
|
-
class: className,
|
|
32
|
-
variant = 'default',
|
|
33
|
-
children,
|
|
34
|
-
...restProps
|
|
35
|
-
}: WithElementRef<HTMLAnchorAttributes> & {
|
|
36
|
-
variant?: BadgeVariant;
|
|
37
|
-
} = $props();
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<svelte:element
|
|
41
|
-
this={href ? 'a' : 'span'}
|
|
42
|
-
bind:this={ref}
|
|
43
|
-
data-slot="badge"
|
|
44
|
-
{href}
|
|
45
|
-
class={cn(badgeVariants({ variant }), className)}
|
|
46
|
-
{...restProps}
|
|
47
|
-
>
|
|
48
|
-
{@render children?.()}
|
|
49
|
-
</svelte:element>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import EllipsisIcon from '@lucide/svelte/icons/ellipsis';
|
|
3
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
-
import { cn, type WithElementRef, type WithoutChildren } from '@lib/utils.js';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<span
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="breadcrumb-ellipsis"
|
|
16
|
-
role="presentation"
|
|
17
|
-
aria-hidden="true"
|
|
18
|
-
class={cn('flex size-9 items-center justify-center', className)}
|
|
19
|
-
{...restProps}
|
|
20
|
-
>
|
|
21
|
-
<EllipsisIcon class="size-4" />
|
|
22
|
-
<span class="sr-only">More</span>
|
|
23
|
-
</span>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLLiAttributes } 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<HTMLLiAttributes> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<li
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="breadcrumb-item"
|
|
16
|
-
class={cn('inline-flex items-center gap-1.5', className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</li>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import { cn, type WithElementRef } from '@lib/utils.js';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
href = undefined,
|
|
10
|
-
child,
|
|
11
|
-
children,
|
|
12
|
-
...restProps
|
|
13
|
-
}: WithElementRef<HTMLAnchorAttributes> & {
|
|
14
|
-
child?: Snippet<[{ props: HTMLAnchorAttributes }]>;
|
|
15
|
-
} = $props();
|
|
16
|
-
|
|
17
|
-
const attrs = $derived({
|
|
18
|
-
'data-slot': 'breadcrumb-link',
|
|
19
|
-
class: cn('hover:text-foreground transition-colors', className),
|
|
20
|
-
href,
|
|
21
|
-
...restProps
|
|
22
|
-
});
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
{#if child}
|
|
26
|
-
{@render child({ props: attrs })}
|
|
27
|
-
{:else}
|
|
28
|
-
<a bind:this={ref} {...attrs}>
|
|
29
|
-
{@render children?.()}
|
|
30
|
-
</a>
|
|
31
|
-
{/if}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLOlAttributes } 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<HTMLOlAttributes> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<ol
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="breadcrumb-list"
|
|
16
|
-
class={cn(
|
|
17
|
-
'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
</ol>
|
|
@@ -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<HTMLSpanElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<span
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="breadcrumb-page"
|
|
16
|
-
role="link"
|
|
17
|
-
aria-disabled="true"
|
|
18
|
-
aria-current="page"
|
|
19
|
-
class={cn('text-foreground font-normal', className)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
</span>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
|
|
3
|
-
import { cn, type WithElementRef } from '@lib/utils.js';
|
|
4
|
-
import type { HTMLLiAttributes } from 'svelte/elements';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLLiAttributes> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<li
|
|
15
|
-
bind:this={ref}
|
|
16
|
-
data-slot="breadcrumb-separator"
|
|
17
|
-
role="presentation"
|
|
18
|
-
aria-hidden="true"
|
|
19
|
-
class={cn('[&>svg]:size-3.5', className)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{#if children}
|
|
23
|
-
{@render children?.()}
|
|
24
|
-
{:else}
|
|
25
|
-
<ChevronRightIcon />
|
|
26
|
-
{/if}
|
|
27
|
-
</li>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import 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<HTMLElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<nav
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="breadcrumb"
|
|
16
|
-
class={className}
|
|
17
|
-
aria-label="breadcrumb"
|
|
18
|
-
{...restProps}
|
|
19
|
-
>
|
|
20
|
-
{@render children?.()}
|
|
21
|
-
</nav>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Root from './breadcrumb.svelte';
|
|
2
|
-
import Ellipsis from './breadcrumb-ellipsis.svelte';
|
|
3
|
-
import Item from './breadcrumb-item.svelte';
|
|
4
|
-
import Separator from './breadcrumb-separator.svelte';
|
|
5
|
-
import Link from './breadcrumb-link.svelte';
|
|
6
|
-
import List from './breadcrumb-list.svelte';
|
|
7
|
-
import Page from './breadcrumb-page.svelte';
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
Root,
|
|
11
|
-
Ellipsis,
|
|
12
|
-
Item,
|
|
13
|
-
Separator,
|
|
14
|
-
Link,
|
|
15
|
-
List,
|
|
16
|
-
Page,
|
|
17
|
-
//
|
|
18
|
-
Root as Breadcrumb,
|
|
19
|
-
Ellipsis as BreadcrumbEllipsis,
|
|
20
|
-
Item as BreadcrumbItem,
|
|
21
|
-
Separator as BreadcrumbSeparator,
|
|
22
|
-
Link as BreadcrumbLink,
|
|
23
|
-
List as BreadcrumbList,
|
|
24
|
-
Page as BreadcrumbPage
|
|
25
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import { cn, type WithElementRef } from '@lib/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 inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
8
|
-
variants: {
|
|
9
|
-
variant: {
|
|
10
|
-
default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
|
|
11
|
-
destructive:
|
|
12
|
-
'bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white',
|
|
13
|
-
outline:
|
|
14
|
-
'bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border',
|
|
15
|
-
secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
|
|
16
|
-
ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
|
|
17
|
-
link: 'text-primary underline-offset-4 hover:underline'
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
default: 'h-9 px-4 py-2 has-[>svg]:px-3',
|
|
21
|
-
sm: 'h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5',
|
|
22
|
-
lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
|
|
23
|
-
icon: 'size-9',
|
|
24
|
-
'icon-sm': 'size-8',
|
|
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> &
|
|
38
|
-
WithElementRef<HTMLAnchorAttributes> & {
|
|
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
|
-
</script>
|
|
57
|
-
|
|
58
|
-
{#if href}
|
|
59
|
-
<a
|
|
60
|
-
bind:this={ref}
|
|
61
|
-
data-slot="button"
|
|
62
|
-
class={cn(buttonVariants({ variant, size }), className)}
|
|
63
|
-
href={disabled ? undefined : href}
|
|
64
|
-
aria-disabled={disabled}
|
|
65
|
-
role={disabled ? 'link' : undefined}
|
|
66
|
-
tabindex={disabled ? -1 : undefined}
|
|
67
|
-
{...restProps}
|
|
68
|
-
>
|
|
69
|
-
{@render children?.()}
|
|
70
|
-
</a>
|
|
71
|
-
{:else}
|
|
72
|
-
<button
|
|
73
|
-
bind:this={ref}
|
|
74
|
-
data-slot="button"
|
|
75
|
-
class={cn(buttonVariants({ variant, size }), className)}
|
|
76
|
-
{type}
|
|
77
|
-
{disabled}
|
|
78
|
-
{...restProps}
|
|
79
|
-
>
|
|
80
|
-
{@render children?.()}
|
|
81
|
-
</button>
|
|
82
|
-
{/if}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Root, {
|
|
2
|
-
type ButtonProps,
|
|
3
|
-
type ButtonSize,
|
|
4
|
-
type ButtonVariant,
|
|
5
|
-
buttonVariants
|
|
6
|
-
} from './button.svelte';
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
Root,
|
|
10
|
-
type ButtonProps as Props,
|
|
11
|
-
//
|
|
12
|
-
Root as Button,
|
|
13
|
-
buttonVariants,
|
|
14
|
-
type ButtonProps,
|
|
15
|
-
type ButtonSize,
|
|
16
|
-
type ButtonVariant
|
|
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="card-action"
|
|
16
|
-
class={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,15 +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 bind:this={ref} data-slot="card-content" class={cn('px-6', className)} {...restProps}>
|
|
14
|
-
{@render children?.()}
|
|
15
|
-
</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<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>
|