@aphexcms/ui 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/sidebar-07/+page.svelte +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte +1 -1
- package/dist/components/ui/calendar/calendar-caption.svelte +76 -0
- package/dist/components/ui/calendar/calendar-caption.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-cell.svelte +19 -0
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-day.svelte +35 -0
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-grid-body.svelte +12 -0
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-grid-head.svelte +12 -0
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-grid-row.svelte +12 -0
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-grid.svelte +16 -0
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-head-cell.svelte +19 -0
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-header.svelte +19 -0
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-heading.svelte +16 -0
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-month-select.svelte +44 -0
- package/dist/components/ui/calendar/calendar-month-select.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar-month.svelte +15 -0
- package/dist/components/ui/calendar/calendar-month.svelte.d.ts +5 -0
- package/dist/components/ui/calendar/calendar-months.svelte +19 -0
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +5 -0
- package/dist/components/ui/calendar/calendar-nav.svelte +19 -0
- package/dist/components/ui/calendar/calendar-nav.svelte.d.ts +5 -0
- package/dist/components/ui/calendar/calendar-next-button.svelte +31 -0
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +8 -0
- package/dist/components/ui/calendar/calendar-prev-button.svelte +31 -0
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +8 -0
- package/dist/components/ui/calendar/calendar-year-select.svelte +43 -0
- package/dist/components/ui/calendar/calendar-year-select.svelte.d.ts +4 -0
- package/dist/components/ui/calendar/calendar.svelte +115 -0
- package/dist/components/ui/calendar/calendar.svelte.d.ts +21 -0
- package/dist/components/ui/calendar/index.d.ts +19 -0
- package/dist/components/ui/calendar/index.js +21 -0
- package/dist/components/ui/card/card-footer.svelte +1 -1
- package/dist/components/ui/card/card-header.svelte +1 -1
- package/dist/components/ui/card/card-title.svelte +1 -1
- package/dist/components/ui/checkbox/checkbox.svelte +5 -5
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +1 -1
- package/dist/components/ui/checkbox/index.d.ts +2 -2
- package/dist/components/ui/checkbox/index.js +2 -2
- package/dist/components/ui/command/command-dialog.svelte +1 -1
- package/dist/components/ui/command/command-input.svelte +2 -2
- package/dist/components/ui/command/command-item.svelte +1 -1
- package/dist/components/ui/command/command-link-item.svelte +1 -1
- package/dist/components/ui/command/command-list.svelte +1 -1
- package/dist/components/ui/dialog/dialog-content.svelte +2 -2
- package/dist/components/ui/dialog/dialog-title.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/input/input.svelte +2 -2
- package/dist/components/ui/label/label.svelte +1 -1
- package/dist/components/ui/popover/popover-content.svelte +1 -1
- package/dist/components/ui/radio-group/index.d.ts +3 -0
- package/dist/components/ui/radio-group/index.js +5 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte +31 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -0
- package/dist/components/ui/radio-group/radio-group.svelte +19 -0
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-content.svelte +2 -2
- package/dist/components/ui/select/select-item.svelte +1 -1
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/dist/components/ui/separator/separator.svelte +1 -1
- package/dist/components/ui/sheet/sheet-content.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-inset.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-menu-badge.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte +1 -0
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte.d.ts +1 -0
- package/dist/components/ui/sidebar/sidebar-menu-skeleton.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-rail.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar.svelte +3 -3
- package/dist/components/ui/sonner/index.d.ts +1 -0
- package/dist/components/ui/sonner/index.js +1 -0
- package/dist/components/ui/sonner/sonner.svelte +34 -0
- package/dist/components/ui/sonner/sonner.svelte.d.ts +4 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.js +4 -0
- package/dist/components/ui/switch/switch.svelte +29 -0
- package/dist/components/ui/switch/switch.svelte.d.ts +4 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/dist/components/ui/tooltip/tooltip-content.svelte +1 -1
- package/package.json +189 -161
- package/LICENSE +0 -21
|
@@ -38,6 +38,7 @@ import type { ComponentProps, Snippet } from 'svelte';
|
|
|
38
38
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
39
39
|
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
|
|
40
40
|
isActive?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
41
42
|
variant?: SidebarMenuButtonVariant;
|
|
42
43
|
size?: SidebarMenuButtonSize;
|
|
43
44
|
tooltipContent?: Snippet | string;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<Skeleton class="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />
|
|
29
29
|
{/if}
|
|
30
30
|
<Skeleton
|
|
31
|
-
class="max-w-(--skeleton-width)
|
|
31
|
+
class="h-4 max-w-(--skeleton-width) flex-1"
|
|
32
32
|
data-sidebar="menu-skeleton-text"
|
|
33
33
|
style="--skeleton-width: {width};"
|
|
34
34
|
/>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
onclick={sidebar.toggle}
|
|
23
23
|
title="Toggle Sidebar"
|
|
24
24
|
class={cn(
|
|
25
|
-
'hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-[calc(1/2*100%-1px)] after:w-[2px]
|
|
25
|
+
'hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-[calc(1/2*100%-1px)] after:w-[2px] sm:flex',
|
|
26
26
|
'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',
|
|
27
27
|
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',
|
|
28
28
|
'hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full',
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{#if collapsible === 'none'}
|
|
26
26
|
<div
|
|
27
27
|
class={cn(
|
|
28
|
-
'bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex
|
|
28
|
+
'bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col',
|
|
29
29
|
className
|
|
30
30
|
)}
|
|
31
31
|
bind:this={ref}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<div
|
|
67
67
|
data-slot="sidebar-gap"
|
|
68
68
|
class={cn(
|
|
69
|
-
'w-(--sidebar-width)
|
|
69
|
+
'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',
|
|
70
70
|
'group-data-[collapsible=offcanvas]:w-0',
|
|
71
71
|
'group-data-[side=right]:rotate-180',
|
|
72
72
|
variant === 'floating' || variant === 'inset'
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
<div
|
|
78
78
|
data-slot="sidebar-container"
|
|
79
79
|
class={cn(
|
|
80
|
-
'
|
|
80
|
+
'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',
|
|
81
81
|
side === 'left'
|
|
82
82
|
? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
|
|
83
83
|
: 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toaster } from './sonner.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toaster } from './sonner.svelte';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import CircleCheckIcon from '@lucide/svelte/icons/circle-check';
|
|
3
|
+
import InfoIcon from '@lucide/svelte/icons/info';
|
|
4
|
+
import Loader2Icon from '@lucide/svelte/icons/loader-2';
|
|
5
|
+
import OctagonXIcon from '@lucide/svelte/icons/octagon-x';
|
|
6
|
+
import TriangleAlertIcon from '@lucide/svelte/icons/triangle-alert';
|
|
7
|
+
|
|
8
|
+
import { Toaster as Sonner, type ToasterProps as SonnerProps } from 'svelte-sonner';
|
|
9
|
+
import { mode } from 'mode-watcher';
|
|
10
|
+
|
|
11
|
+
let { ...restProps }: SonnerProps = $props();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<Sonner
|
|
15
|
+
theme={mode.current}
|
|
16
|
+
class="toaster group"
|
|
17
|
+
style="--normal-bg: var(--color-popover); --normal-text: var(--color-popover-foreground); --normal-border: var(--color-border);"
|
|
18
|
+
{...restProps}
|
|
19
|
+
>{#snippet loadingIcon()}
|
|
20
|
+
<Loader2Icon class="size-4 animate-spin" />
|
|
21
|
+
{/snippet}
|
|
22
|
+
{#snippet successIcon()}
|
|
23
|
+
<CircleCheckIcon class="size-4" />
|
|
24
|
+
{/snippet}
|
|
25
|
+
{#snippet errorIcon()}
|
|
26
|
+
<OctagonXIcon class="size-4" />
|
|
27
|
+
{/snippet}
|
|
28
|
+
{#snippet infoIcon()}
|
|
29
|
+
<InfoIcon class="size-4" />
|
|
30
|
+
{/snippet}
|
|
31
|
+
{#snippet warningIcon()}
|
|
32
|
+
<TriangleAlertIcon class="size-4" />
|
|
33
|
+
{/snippet}
|
|
34
|
+
</Sonner>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Switch as SwitchPrimitive } from 'bits-ui';
|
|
3
|
+
import { cn, type WithoutChildrenOrChild } from '../../../utils.js';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
checked = $bindable(false),
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithoutChildrenOrChild<SwitchPrimitive.RootProps> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<SwitchPrimitive.Root
|
|
14
|
+
bind:ref
|
|
15
|
+
bind:checked
|
|
16
|
+
data-slot="switch"
|
|
17
|
+
class={cn(
|
|
18
|
+
'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
19
|
+
className
|
|
20
|
+
)}
|
|
21
|
+
{...restProps}
|
|
22
|
+
>
|
|
23
|
+
<SwitchPrimitive.Thumb
|
|
24
|
+
data-slot="switch-thumb"
|
|
25
|
+
class={cn(
|
|
26
|
+
'bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0'
|
|
27
|
+
)}
|
|
28
|
+
/>
|
|
29
|
+
</SwitchPrimitive.Root>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
bind:ref
|
|
14
14
|
data-slot="tabs-trigger"
|
|
15
15
|
class={cn(
|
|
16
|
-
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5
|
|
16
|
+
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
17
17
|
className
|
|
18
18
|
)}
|
|
19
19
|
{...restProps}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
bind:this={ref}
|
|
15
15
|
data-slot="textarea"
|
|
16
16
|
class={cn(
|
|
17
|
-
'border-input placeholder:text-muted-foreground 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:bg-input/30 field-sizing-content
|
|
17
|
+
'border-input placeholder:text-muted-foreground 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:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
bind:value
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
{sideOffset}
|
|
23
23
|
{side}
|
|
24
24
|
class={cn(
|
|
25
|
-
'bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--bits-tooltip-content-transform-origin)
|
|
25
|
+
'bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--bits-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance',
|
|
26
26
|
className
|
|
27
27
|
)}
|
|
28
28
|
{...restProps}
|
package/package.json
CHANGED
|
@@ -1,162 +1,190 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
2
|
+
"name": "@aphexcms/ui",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Shared UI components for Aphex CMS (shadcn-svelte)",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "svelte-package --watch",
|
|
11
|
+
"build": "rm -rf .svelte-kit/__package__/__package_types_tmp__ && node scripts/generate-exports.js && svelte-package",
|
|
12
|
+
"shadcn": "pnpm dlx shadcn-svelte@latest add",
|
|
13
|
+
"dev:local": "node ../../scripts/swap-package-paths.js ./package.json src lib",
|
|
14
|
+
"prepack": "node ../../scripts/swap-package-paths.js ./package.json dist lib && pnpm build",
|
|
15
|
+
"postpack": "node ../../scripts/swap-package-paths.js ./package.json src lib"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./shadcn/alert": {
|
|
20
|
+
"types": "./dist/components/ui/alert/index.d.ts",
|
|
21
|
+
"svelte": "./dist/components/ui/alert/index.js",
|
|
22
|
+
"default": "./dist/components/ui/alert/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./shadcn/alert-dialog": {
|
|
25
|
+
"types": "./dist/components/ui/alert-dialog/index.d.ts",
|
|
26
|
+
"svelte": "./dist/components/ui/alert-dialog/index.js",
|
|
27
|
+
"default": "./dist/components/ui/alert-dialog/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./shadcn/avatar": {
|
|
30
|
+
"types": "./dist/components/ui/avatar/index.d.ts",
|
|
31
|
+
"svelte": "./dist/components/ui/avatar/index.js",
|
|
32
|
+
"default": "./dist/components/ui/avatar/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./shadcn/badge": {
|
|
35
|
+
"types": "./dist/components/ui/badge/index.d.ts",
|
|
36
|
+
"svelte": "./dist/components/ui/badge/index.js",
|
|
37
|
+
"default": "./dist/components/ui/badge/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./shadcn/breadcrumb": {
|
|
40
|
+
"types": "./dist/components/ui/breadcrumb/index.d.ts",
|
|
41
|
+
"svelte": "./dist/components/ui/breadcrumb/index.js",
|
|
42
|
+
"default": "./dist/components/ui/breadcrumb/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./shadcn/button": {
|
|
45
|
+
"types": "./dist/components/ui/button/index.d.ts",
|
|
46
|
+
"svelte": "./dist/components/ui/button/index.js",
|
|
47
|
+
"default": "./dist/components/ui/button/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./shadcn/calendar": {
|
|
50
|
+
"types": "./dist/components/ui/calendar/index.d.ts",
|
|
51
|
+
"svelte": "./dist/components/ui/calendar/index.js",
|
|
52
|
+
"default": "./dist/components/ui/calendar/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./shadcn/card": {
|
|
55
|
+
"types": "./dist/components/ui/card/index.d.ts",
|
|
56
|
+
"svelte": "./dist/components/ui/card/index.js",
|
|
57
|
+
"default": "./dist/components/ui/card/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./shadcn/checkbox": {
|
|
60
|
+
"types": "./dist/components/ui/checkbox/index.d.ts",
|
|
61
|
+
"svelte": "./dist/components/ui/checkbox/index.js",
|
|
62
|
+
"default": "./dist/components/ui/checkbox/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./shadcn/collapsible": {
|
|
65
|
+
"types": "./dist/components/ui/collapsible/index.d.ts",
|
|
66
|
+
"svelte": "./dist/components/ui/collapsible/index.js",
|
|
67
|
+
"default": "./dist/components/ui/collapsible/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./shadcn/command": {
|
|
70
|
+
"types": "./dist/components/ui/command/index.d.ts",
|
|
71
|
+
"svelte": "./dist/components/ui/command/index.js",
|
|
72
|
+
"default": "./dist/components/ui/command/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./shadcn/dialog": {
|
|
75
|
+
"types": "./dist/components/ui/dialog/index.d.ts",
|
|
76
|
+
"svelte": "./dist/components/ui/dialog/index.js",
|
|
77
|
+
"default": "./dist/components/ui/dialog/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./shadcn/dropdown-menu": {
|
|
80
|
+
"types": "./dist/components/ui/dropdown-menu/index.d.ts",
|
|
81
|
+
"svelte": "./dist/components/ui/dropdown-menu/index.js",
|
|
82
|
+
"default": "./dist/components/ui/dropdown-menu/index.js"
|
|
83
|
+
},
|
|
84
|
+
"./shadcn/input": {
|
|
85
|
+
"types": "./dist/components/ui/input/index.d.ts",
|
|
86
|
+
"svelte": "./dist/components/ui/input/index.js",
|
|
87
|
+
"default": "./dist/components/ui/input/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./shadcn/label": {
|
|
90
|
+
"types": "./dist/components/ui/label/index.d.ts",
|
|
91
|
+
"svelte": "./dist/components/ui/label/index.js",
|
|
92
|
+
"default": "./dist/components/ui/label/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./shadcn/popover": {
|
|
95
|
+
"types": "./dist/components/ui/popover/index.d.ts",
|
|
96
|
+
"svelte": "./dist/components/ui/popover/index.js",
|
|
97
|
+
"default": "./dist/components/ui/popover/index.js"
|
|
98
|
+
},
|
|
99
|
+
"./shadcn/radio-group": {
|
|
100
|
+
"types": "./dist/components/ui/radio-group/index.d.ts",
|
|
101
|
+
"svelte": "./dist/components/ui/radio-group/index.js",
|
|
102
|
+
"default": "./dist/components/ui/radio-group/index.js"
|
|
103
|
+
},
|
|
104
|
+
"./shadcn/select": {
|
|
105
|
+
"types": "./dist/components/ui/select/index.d.ts",
|
|
106
|
+
"svelte": "./dist/components/ui/select/index.js",
|
|
107
|
+
"default": "./dist/components/ui/select/index.js"
|
|
108
|
+
},
|
|
109
|
+
"./shadcn/separator": {
|
|
110
|
+
"types": "./dist/components/ui/separator/index.d.ts",
|
|
111
|
+
"svelte": "./dist/components/ui/separator/index.js",
|
|
112
|
+
"default": "./dist/components/ui/separator/index.js"
|
|
113
|
+
},
|
|
114
|
+
"./shadcn/sheet": {
|
|
115
|
+
"types": "./dist/components/ui/sheet/index.d.ts",
|
|
116
|
+
"svelte": "./dist/components/ui/sheet/index.js",
|
|
117
|
+
"default": "./dist/components/ui/sheet/index.js"
|
|
118
|
+
},
|
|
119
|
+
"./shadcn/sidebar": {
|
|
120
|
+
"types": "./dist/components/ui/sidebar/index.d.ts",
|
|
121
|
+
"svelte": "./dist/components/ui/sidebar/index.js",
|
|
122
|
+
"default": "./dist/components/ui/sidebar/index.js"
|
|
123
|
+
},
|
|
124
|
+
"./shadcn/skeleton": {
|
|
125
|
+
"types": "./dist/components/ui/skeleton/index.d.ts",
|
|
126
|
+
"svelte": "./dist/components/ui/skeleton/index.js",
|
|
127
|
+
"default": "./dist/components/ui/skeleton/index.js"
|
|
128
|
+
},
|
|
129
|
+
"./shadcn/sonner": {
|
|
130
|
+
"types": "./dist/components/ui/sonner/index.d.ts",
|
|
131
|
+
"svelte": "./dist/components/ui/sonner/index.js",
|
|
132
|
+
"default": "./dist/components/ui/sonner/index.js"
|
|
133
|
+
},
|
|
134
|
+
"./shadcn/switch": {
|
|
135
|
+
"types": "./dist/components/ui/switch/index.d.ts",
|
|
136
|
+
"svelte": "./dist/components/ui/switch/index.js",
|
|
137
|
+
"default": "./dist/components/ui/switch/index.js"
|
|
138
|
+
},
|
|
139
|
+
"./shadcn/tabs": {
|
|
140
|
+
"types": "./dist/components/ui/tabs/index.d.ts",
|
|
141
|
+
"svelte": "./dist/components/ui/tabs/index.js",
|
|
142
|
+
"default": "./dist/components/ui/tabs/index.js"
|
|
143
|
+
},
|
|
144
|
+
"./shadcn/textarea": {
|
|
145
|
+
"types": "./dist/components/ui/textarea/index.d.ts",
|
|
146
|
+
"svelte": "./dist/components/ui/textarea/index.js",
|
|
147
|
+
"default": "./dist/components/ui/textarea/index.js"
|
|
148
|
+
},
|
|
149
|
+
"./shadcn/tooltip": {
|
|
150
|
+
"types": "./dist/components/ui/tooltip/index.d.ts",
|
|
151
|
+
"svelte": "./dist/components/ui/tooltip/index.js",
|
|
152
|
+
"default": "./dist/components/ui/tooltip/index.js"
|
|
153
|
+
},
|
|
154
|
+
"./shadcn/css": "./src/app.css",
|
|
155
|
+
"./utils": {
|
|
156
|
+
"types": "./dist/utils.d.ts",
|
|
157
|
+
"default": "./dist/utils.js"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"files": [
|
|
161
|
+
"dist",
|
|
162
|
+
"src/app.css"
|
|
163
|
+
],
|
|
164
|
+
"peerDependencies": {
|
|
165
|
+
"bits-ui": "^2.14.4",
|
|
166
|
+
"clsx": "^2.1.1",
|
|
167
|
+
"svelte": "^5.44.0",
|
|
168
|
+
"tailwind-merge": "^3.4.0",
|
|
169
|
+
"tailwind-variants": "^3.2.2"
|
|
170
|
+
},
|
|
171
|
+
"devDependencies": {
|
|
172
|
+
"@internationalized/date": "^3.10.0",
|
|
173
|
+
"@lucide/svelte": "^0.561.0",
|
|
174
|
+
"@sveltejs/kit": "^2.49.0",
|
|
175
|
+
"@sveltejs/package": "^2.5.6",
|
|
176
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
177
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
178
|
+
"bits-ui": "^2.14.4",
|
|
179
|
+
"clsx": "^2.1.1",
|
|
180
|
+
"mode-watcher": "^1.1.0",
|
|
181
|
+
"svelte": "^5.44.0",
|
|
182
|
+
"svelte-sonner": "^1.0.7",
|
|
183
|
+
"tailwind-merge": "^3.4.0",
|
|
184
|
+
"tailwind-variants": "^3.2.2",
|
|
185
|
+
"tailwindcss": "^4.1.17",
|
|
186
|
+
"tw-animate-css": "^1.4.0",
|
|
187
|
+
"typescript": "^5.9.3",
|
|
188
|
+
"vite": "^7.2.4"
|
|
189
|
+
}
|
|
190
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Benjamin Sinidol
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|