@tanglemedia/svelte-starter-ui-shadcn 0.0.5 → 0.0.6
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/components/ui/data-table/data-table.svelte.js +1 -2
- package/dist/lib/components/ui/data-table/render-helpers.js +4 -0
- package/dist/lib/components/ui/index.d.ts +46 -0
- package/dist/lib/components/ui/index.js +46 -0
- package/dist/lib/components/ui/sidebar/context.svelte.js +21 -32
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/index.js +1 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.js +3 -0
- package/package.json +3 -287
- package/src/index.ts +1 -0
- package/src/lib/components/ui/index.ts +46 -0
- package/src/lib/hooks/index.ts +1 -0
- package/src/lib/index.ts +3 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -42,12 +42,11 @@ export function createSvelteTable(options) {
|
|
|
42
42
|
state: mergeObjects(state, options.state || {}),
|
|
43
43
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
44
|
onStateChange: (updater) => {
|
|
45
|
-
var _a;
|
|
46
45
|
if (updater instanceof Function)
|
|
47
46
|
state = updater(state);
|
|
48
47
|
else
|
|
49
48
|
state = mergeObjects(state, updater);
|
|
50
|
-
|
|
49
|
+
options.onStateChange?.(updater);
|
|
51
50
|
},
|
|
52
51
|
});
|
|
53
52
|
});
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export class RenderComponentConfig {
|
|
18
|
+
component;
|
|
19
|
+
props;
|
|
18
20
|
constructor(component, props = {}) {
|
|
19
21
|
this.component = component;
|
|
20
22
|
this.props = props;
|
|
@@ -36,6 +38,8 @@ export class RenderComponentConfig {
|
|
|
36
38
|
* ```
|
|
37
39
|
*/
|
|
38
40
|
export class RenderSnippetConfig {
|
|
41
|
+
snippet;
|
|
42
|
+
params;
|
|
39
43
|
constructor(snippet, params) {
|
|
40
44
|
this.snippet = snippet;
|
|
41
45
|
this.params = params;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * as Accordion from './accordion';
|
|
2
|
+
export * as Alert from './alert';
|
|
3
|
+
export * as AlertDialog from './alert-dialog';
|
|
4
|
+
export { AspectRatio } from './aspect-ratio';
|
|
5
|
+
export * as Avatar from './avatar';
|
|
6
|
+
export { Badge } from './badge';
|
|
7
|
+
export * as Breadcrumb from './breadcrumb';
|
|
8
|
+
export { Button, buttonVariants } from './button';
|
|
9
|
+
export { Calendar } from './calendar';
|
|
10
|
+
export * as Card from './card';
|
|
11
|
+
export * as Carousel from './carousel';
|
|
12
|
+
export { Checkbox } from './checkbox';
|
|
13
|
+
export * as Collapsible from './collapsible';
|
|
14
|
+
export * as Command from './command';
|
|
15
|
+
export * as ContextMenu from './context-menu';
|
|
16
|
+
export * as Dialog from './dialog';
|
|
17
|
+
export * as Drawer from './drawer';
|
|
18
|
+
export * as DropdownMenu from './dropdown-menu';
|
|
19
|
+
export * as Form from './form';
|
|
20
|
+
export * as HoverCard from './hover-card';
|
|
21
|
+
export { Input } from './input';
|
|
22
|
+
export { InputOTP } from './input-otp';
|
|
23
|
+
export { Label } from './label';
|
|
24
|
+
export * as Menubar from './menubar';
|
|
25
|
+
export * as Pagination from './pagination';
|
|
26
|
+
export * as Popover from './popover';
|
|
27
|
+
export { Progress } from './progress';
|
|
28
|
+
export * as RadioGroup from './radio-group';
|
|
29
|
+
export { RangeCalendar } from './range-calendar';
|
|
30
|
+
export * as Resizable from './resizable';
|
|
31
|
+
export { ScrollArea } from './scroll-area';
|
|
32
|
+
export * as Select from './select';
|
|
33
|
+
export { Separator } from './separator';
|
|
34
|
+
export * as Sheet from './sheet';
|
|
35
|
+
export * as Sidebar from './sidebar';
|
|
36
|
+
export { useSidebar } from './sidebar';
|
|
37
|
+
export { Skeleton } from './skeleton';
|
|
38
|
+
export { Slider } from './slider';
|
|
39
|
+
export { Toaster } from './sonner';
|
|
40
|
+
export { Switch } from './switch';
|
|
41
|
+
export * as Table from './table';
|
|
42
|
+
export * as Tabs from './tabs';
|
|
43
|
+
export { Textarea } from './textarea';
|
|
44
|
+
export { Toggle } from './toggle';
|
|
45
|
+
export * as ToggleGroup from './toggle-group';
|
|
46
|
+
export * as Tooltip from './tooltip';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * as Accordion from './accordion';
|
|
2
|
+
export * as Alert from './alert';
|
|
3
|
+
export * as AlertDialog from './alert-dialog';
|
|
4
|
+
export { AspectRatio } from './aspect-ratio';
|
|
5
|
+
export * as Avatar from './avatar';
|
|
6
|
+
export { Badge } from './badge';
|
|
7
|
+
export * as Breadcrumb from './breadcrumb';
|
|
8
|
+
export { Button, buttonVariants } from './button';
|
|
9
|
+
export { Calendar } from './calendar';
|
|
10
|
+
export * as Card from './card';
|
|
11
|
+
export * as Carousel from './carousel';
|
|
12
|
+
export { Checkbox } from './checkbox';
|
|
13
|
+
export * as Collapsible from './collapsible';
|
|
14
|
+
export * as Command from './command';
|
|
15
|
+
export * as ContextMenu from './context-menu';
|
|
16
|
+
export * as Dialog from './dialog';
|
|
17
|
+
export * as Drawer from './drawer';
|
|
18
|
+
export * as DropdownMenu from './dropdown-menu';
|
|
19
|
+
export * as Form from './form';
|
|
20
|
+
export * as HoverCard from './hover-card';
|
|
21
|
+
export { Input } from './input';
|
|
22
|
+
export { InputOTP } from './input-otp';
|
|
23
|
+
export { Label } from './label';
|
|
24
|
+
export * as Menubar from './menubar';
|
|
25
|
+
export * as Pagination from './pagination';
|
|
26
|
+
export * as Popover from './popover';
|
|
27
|
+
export { Progress } from './progress';
|
|
28
|
+
export * as RadioGroup from './radio-group';
|
|
29
|
+
export { RangeCalendar } from './range-calendar';
|
|
30
|
+
export * as Resizable from './resizable';
|
|
31
|
+
export { ScrollArea } from './scroll-area';
|
|
32
|
+
export * as Select from './select';
|
|
33
|
+
export { Separator } from './separator';
|
|
34
|
+
export * as Sheet from './sheet';
|
|
35
|
+
export * as Sidebar from './sidebar';
|
|
36
|
+
export { useSidebar } from './sidebar';
|
|
37
|
+
export { Skeleton } from './skeleton';
|
|
38
|
+
export { Slider } from './slider';
|
|
39
|
+
export { Toaster } from './sonner';
|
|
40
|
+
export { Switch } from './switch';
|
|
41
|
+
export * as Table from './table';
|
|
42
|
+
export * as Tabs from './tabs';
|
|
43
|
+
export { Textarea } from './textarea';
|
|
44
|
+
export { Toggle } from './toggle';
|
|
45
|
+
export * as ToggleGroup from './toggle-group';
|
|
46
|
+
export * as Tooltip from './tooltip';
|
|
@@ -1,48 +1,37 @@
|
|
|
1
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
-
};
|
|
12
|
-
var _SidebarState_isMobile;
|
|
13
1
|
import { IsMobile } from '../../../hooks/is-mobile.svelte.js';
|
|
14
2
|
import { getContext, setContext } from 'svelte';
|
|
15
3
|
import { SIDEBAR_KEYBOARD_SHORTCUT } from './constants.js';
|
|
16
4
|
class SidebarState {
|
|
5
|
+
props;
|
|
6
|
+
open = $derived.by(() => this.props.open());
|
|
7
|
+
openMobile = $state(false);
|
|
8
|
+
setOpen;
|
|
9
|
+
#isMobile;
|
|
10
|
+
state = $derived.by(() => (this.open ? 'expanded' : 'collapsed'));
|
|
17
11
|
constructor(props) {
|
|
18
|
-
this.open = $derived.by(() => this.props.open());
|
|
19
|
-
this.openMobile = $state(false);
|
|
20
|
-
_SidebarState_isMobile.set(this, void 0);
|
|
21
|
-
this.state = $derived.by(() => (this.open ? 'expanded' : 'collapsed'));
|
|
22
|
-
// Event handler to apply to the `<svelte:window>`
|
|
23
|
-
this.handleShortcutKeydown = (e) => {
|
|
24
|
-
if (e.key === SIDEBAR_KEYBOARD_SHORTCUT && (e.metaKey || e.ctrlKey)) {
|
|
25
|
-
e.preventDefault();
|
|
26
|
-
this.toggle();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
this.setOpenMobile = (value) => {
|
|
30
|
-
this.openMobile = value;
|
|
31
|
-
};
|
|
32
|
-
this.toggle = () => {
|
|
33
|
-
return __classPrivateFieldGet(this, _SidebarState_isMobile, "f").current ? (this.openMobile = !this.openMobile) : this.setOpen(!this.open);
|
|
34
|
-
};
|
|
35
12
|
this.setOpen = props.setOpen;
|
|
36
|
-
|
|
13
|
+
this.#isMobile = new IsMobile();
|
|
37
14
|
this.props = props;
|
|
38
15
|
}
|
|
39
16
|
// Convenience getter for checking if the sidebar is mobile
|
|
40
17
|
// without this, we would need to use `sidebar.isMobile.current` everywhere
|
|
41
18
|
get isMobile() {
|
|
42
|
-
return
|
|
19
|
+
return this.#isMobile.current;
|
|
43
20
|
}
|
|
21
|
+
// Event handler to apply to the `<svelte:window>`
|
|
22
|
+
handleShortcutKeydown = (e) => {
|
|
23
|
+
if (e.key === SIDEBAR_KEYBOARD_SHORTCUT && (e.metaKey || e.ctrlKey)) {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
this.toggle();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
setOpenMobile = (value) => {
|
|
29
|
+
this.openMobile = value;
|
|
30
|
+
};
|
|
31
|
+
toggle = () => {
|
|
32
|
+
return this.#isMobile.current ? (this.openMobile = !this.openMobile) : this.setOpen(!this.open);
|
|
33
|
+
};
|
|
44
34
|
}
|
|
45
|
-
_SidebarState_isMobile = new WeakMap();
|
|
46
35
|
const SYMBOL_KEY = 'scn-sidebar';
|
|
47
36
|
/**
|
|
48
37
|
* Instantiates a new `SidebarState` instance and sets it in the context.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './is-mobile.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './is-mobile.svelte';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanglemedia/svelte-starter-ui-shadcn",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "src/index.ts",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"main": "./src/index.ts",
|
|
5
5
|
"types": "src/index.ts",
|
|
6
6
|
"description": "UI features and components for use in svelte websites",
|
|
7
7
|
"type": "module",
|
|
@@ -16,291 +16,7 @@
|
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
|
-
"svelte": "./dist/index.js"
|
|
20
|
-
"import": "./dist/index.js",
|
|
21
|
-
"default": "./dist/index.js"
|
|
22
|
-
},
|
|
23
|
-
"./Accordion": {
|
|
24
|
-
"default": "./src/lib/components/ui/accordion/index.ts",
|
|
25
|
-
"types": "./src/lib/components/ui/accordion/index.ts",
|
|
26
|
-
"svelte": "./src/lib/components/ui/accordion/index.ts",
|
|
27
|
-
"import": "./src/lib/components/ui/accordion/index.ts"
|
|
28
|
-
},
|
|
29
|
-
"./Alert": {
|
|
30
|
-
"default": "./src/lib/components/ui/alert/index.ts",
|
|
31
|
-
"types": "./src/lib/components/ui/alert/index.ts",
|
|
32
|
-
"svelte": "./src/lib/components/ui/alert/index.ts",
|
|
33
|
-
"import": "./src/lib/components/ui/alert/index.ts"
|
|
34
|
-
},
|
|
35
|
-
"./Alert-Dialog": {
|
|
36
|
-
"default": "./src/lib/components/ui/alert-dialog/index.ts",
|
|
37
|
-
"types": "./src/lib/components/ui/alert-dialog/index.ts",
|
|
38
|
-
"svelte": "./src/lib/components/ui/alert-dialog/index.ts",
|
|
39
|
-
"import": "./src/lib/components/ui/alert-dialog/index.ts"
|
|
40
|
-
},
|
|
41
|
-
"./Aspect-Ratio": {
|
|
42
|
-
"types": "./src/lib/components/ui/aspect-ratio/index.ts",
|
|
43
|
-
"svelte": "./src/lib/components/ui/aspect-ratio/index.ts",
|
|
44
|
-
"import": "./src/lib/components/ui/aspect-ratio/index.ts",
|
|
45
|
-
"default": "./src/lib/components/ui/aspect-ratio/index.ts"
|
|
46
|
-
},
|
|
47
|
-
"./Avatar": {
|
|
48
|
-
"default": "./src/lib/components/ui/avatar/index.ts",
|
|
49
|
-
"types": "./src/lib/components/ui/avatar/index.ts",
|
|
50
|
-
"svelte": "./src/lib/components/ui/avatar/index.ts",
|
|
51
|
-
"import": "./src/lib/components/ui/avatar/index.ts"
|
|
52
|
-
},
|
|
53
|
-
"./Badge": {
|
|
54
|
-
"default": "./src/lib/components/ui/badge/index.ts",
|
|
55
|
-
"types": "./src/lib/components/ui/badge/index.ts",
|
|
56
|
-
"svelte": "./src/lib/components/ui/badge/index.ts",
|
|
57
|
-
"import": "./src/lib/components/ui/badge/index.ts"
|
|
58
|
-
},
|
|
59
|
-
"./Breadcrumb": {
|
|
60
|
-
"default": "./src/lib/components/ui/breadcrumb/index.ts",
|
|
61
|
-
"types": "./src/lib/components/ui/breadcrumb/index.ts",
|
|
62
|
-
"svelte": "./src/lib/components/ui/breadcrumb/index.ts",
|
|
63
|
-
"import": "./src/lib/components/ui/breadcrumb/index.ts"
|
|
64
|
-
},
|
|
65
|
-
"./Button": {
|
|
66
|
-
"default": "./src/lib/components/ui/button/index.ts",
|
|
67
|
-
"types": "./src/lib/components/ui/button/index.ts",
|
|
68
|
-
"svelte": "./src/lib/components/ui/button/index.ts",
|
|
69
|
-
"import": "./src/lib/components/ui/button/index.ts"
|
|
70
|
-
},
|
|
71
|
-
"./Calendar": {
|
|
72
|
-
"default": "./src/lib/components/ui/calendar/index.ts",
|
|
73
|
-
"types": "./src/lib/components/ui/calendar/index.ts",
|
|
74
|
-
"svelte": "./src/lib/components/ui/calendar/index.ts",
|
|
75
|
-
"import": "./src/lib/components/ui/calendar/index.ts"
|
|
76
|
-
},
|
|
77
|
-
"./Card": {
|
|
78
|
-
"default": "./src/lib/components/ui/card/index.ts",
|
|
79
|
-
"types": "./src/lib/components/ui/card/index.ts",
|
|
80
|
-
"svelte": "./src/lib/components/ui/card/index.ts",
|
|
81
|
-
"import": "./src/lib/components/ui/card/index.ts"
|
|
82
|
-
},
|
|
83
|
-
"./Carousel": {
|
|
84
|
-
"default": "./src/lib/components/ui/carousel/index.ts",
|
|
85
|
-
"types": "./src/lib/components/ui/carousel/index.ts",
|
|
86
|
-
"svelte": "./src/lib/components/ui/carousel/index.ts",
|
|
87
|
-
"import": "./src/lib/components/ui/carousel/index.ts"
|
|
88
|
-
},
|
|
89
|
-
"./Checkbox": {
|
|
90
|
-
"default": "./src/lib/components/ui/checkbox/index.ts",
|
|
91
|
-
"types": "./src/lib/components/ui/checkbox/index.ts",
|
|
92
|
-
"svelte": "./src/lib/components/ui/checkbox/index.ts",
|
|
93
|
-
"import": "./src/lib/components/ui/checkbox/index.ts"
|
|
94
|
-
},
|
|
95
|
-
"./Collapsible": {
|
|
96
|
-
"default": "./src/lib/components/ui/collapsible/index.ts",
|
|
97
|
-
"types": "./src/lib/components/ui/collapsible/index.ts",
|
|
98
|
-
"svelte": "./src/lib/components/ui/collapsible/index.ts",
|
|
99
|
-
"import": "./src/lib/components/ui/collapsible/index.ts"
|
|
100
|
-
},
|
|
101
|
-
"./Command": {
|
|
102
|
-
"default": "./src/lib/components/ui/command/index.ts",
|
|
103
|
-
"types": "./src/lib/components/ui/command/index.ts",
|
|
104
|
-
"svelte": "./src/lib/components/ui/command/index.ts",
|
|
105
|
-
"import": "./src/lib/components/ui/command/index.ts"
|
|
106
|
-
},
|
|
107
|
-
"./Context-Menu": {
|
|
108
|
-
"default": "./src/lib/components/ui/context-menu/index.ts",
|
|
109
|
-
"types": "./src/lib/components/ui/context-menu/index.ts",
|
|
110
|
-
"svelte": "./src/lib/components/ui/context-menu/index.ts",
|
|
111
|
-
"import": "./src/lib/components/ui/context-menu/index.ts"
|
|
112
|
-
},
|
|
113
|
-
"./Data-Table": {
|
|
114
|
-
"default": "./src/lib/components/ui/data-table/index.ts",
|
|
115
|
-
"types": "./src/lib/components/ui/data-table/index.ts",
|
|
116
|
-
"svelte": "./src/lib/components/ui/data-table/index.ts",
|
|
117
|
-
"import": "./src/lib/components/ui/data-table/index.ts"
|
|
118
|
-
},
|
|
119
|
-
"./Dialog": {
|
|
120
|
-
"default": "./src/lib/components/ui/dialog/index.ts",
|
|
121
|
-
"types": "./src/lib/components/ui/dialog/index.ts",
|
|
122
|
-
"svelte": "./src/lib/components/ui/dialog/index.ts",
|
|
123
|
-
"import": "./src/lib/components/ui/dialog/index.ts"
|
|
124
|
-
},
|
|
125
|
-
"./Drawer": {
|
|
126
|
-
"default": "./src/lib/components/ui/drawer/index.ts",
|
|
127
|
-
"types": "./src/lib/components/ui/drawer/index.ts",
|
|
128
|
-
"svelte": "./src/lib/components/ui/drawer/index.ts",
|
|
129
|
-
"import": "./src/lib/components/ui/drawer/index.ts"
|
|
130
|
-
},
|
|
131
|
-
"./Dropdown-Menu": {
|
|
132
|
-
"default": "./src/lib/components/ui/dropdown-menu/index.ts",
|
|
133
|
-
"types": "./src/lib/components/ui/dropdown-menu/index.ts",
|
|
134
|
-
"svelte": "./src/lib/components/ui/dropdown-menu/index.ts",
|
|
135
|
-
"import": "./src/lib/components/ui/dropdown-menu/index.ts"
|
|
136
|
-
},
|
|
137
|
-
"./Form": {
|
|
138
|
-
"default": "./src/lib/components/ui/form/index.ts",
|
|
139
|
-
"types": "./src/lib/components/ui/form/index.ts",
|
|
140
|
-
"svelte": "./src/lib/components/ui/form/index.ts",
|
|
141
|
-
"import": "./src/lib/components/ui/form/index.ts"
|
|
142
|
-
},
|
|
143
|
-
"./Hover-Card": {
|
|
144
|
-
"default": "./src/lib/components/ui/hover-card/index.ts",
|
|
145
|
-
"types": "./src/lib/components/ui/hover-card/index.ts",
|
|
146
|
-
"svelte": "./src/lib/components/ui/hover-card/index.ts",
|
|
147
|
-
"import": "./src/lib/components/ui/hover-card/index.ts"
|
|
148
|
-
},
|
|
149
|
-
"./Input": {
|
|
150
|
-
"default": "./src/lib/components/ui/input/index.ts",
|
|
151
|
-
"types": "./src/lib/components/ui/input/index.ts",
|
|
152
|
-
"svelte": "./src/lib/components/ui/input/index.ts",
|
|
153
|
-
"import": "./src/lib/components/ui/input/index.ts"
|
|
154
|
-
},
|
|
155
|
-
"./Input-OTP": {
|
|
156
|
-
"default": "./src/lib/components/ui/input-otp/index.ts",
|
|
157
|
-
"types": "./src/lib/components/ui/input-otp/index.ts",
|
|
158
|
-
"svelte": "./src/lib/components/ui/input-otp/index.ts",
|
|
159
|
-
"import": "./src/lib/components/ui/input-otp/index.ts"
|
|
160
|
-
},
|
|
161
|
-
"./Label": {
|
|
162
|
-
"default": "./src/lib/components/ui/label/index.ts",
|
|
163
|
-
"types": "./src/lib/components/ui/label/index.ts",
|
|
164
|
-
"svelte": "./src/lib/components/ui/label/index.ts",
|
|
165
|
-
"import": "./src/lib/components/ui/label/index.ts"
|
|
166
|
-
},
|
|
167
|
-
"./Menubar": {
|
|
168
|
-
"default": "./src/lib/components/ui/menubar/index.ts",
|
|
169
|
-
"types": "./src/lib/components/ui/menubar/index.ts",
|
|
170
|
-
"svelte": "./src/lib/components/ui/menubar/index.ts",
|
|
171
|
-
"import": "./src/lib/components/ui/menubar/index.ts"
|
|
172
|
-
},
|
|
173
|
-
"./Pagination": {
|
|
174
|
-
"default": "./src/lib/components/ui/pagination/index.ts",
|
|
175
|
-
"types": "./src/lib/components/ui/pagination/index.ts",
|
|
176
|
-
"svelte": "./src/lib/components/ui/pagination/index.ts",
|
|
177
|
-
"import": "./src/lib/components/ui/pagination/index.ts"
|
|
178
|
-
},
|
|
179
|
-
"./Popover": {
|
|
180
|
-
"default": "./src/lib/components/ui/popover/index.ts",
|
|
181
|
-
"types": "./src/lib/components/ui/popover/index.ts",
|
|
182
|
-
"svelte": "./src/lib/components/ui/popover/index.ts",
|
|
183
|
-
"import": "./src/lib/components/ui/popover/index.ts"
|
|
184
|
-
},
|
|
185
|
-
"./Progress": {
|
|
186
|
-
"default": "./src/lib/components/ui/progress/index.ts",
|
|
187
|
-
"types": "./src/lib/components/ui/progress/index.ts",
|
|
188
|
-
"svelte": "./src/lib/components/ui/progress/index.ts",
|
|
189
|
-
"import": "./src/lib/components/ui/progress/index.ts"
|
|
190
|
-
},
|
|
191
|
-
"./Radio-Group": {
|
|
192
|
-
"default": "./src/lib/components/ui/radio-group/index.ts",
|
|
193
|
-
"types": "./src/lib/components/ui/radio-group/index.ts",
|
|
194
|
-
"svelte": "./src/lib/components/ui/radio-group/index.ts",
|
|
195
|
-
"import": "./src/lib/components/ui/radio-group/index.ts"
|
|
196
|
-
},
|
|
197
|
-
"./Range-Calendar": {
|
|
198
|
-
"default": "./src/lib/components/ui/range-calendar/index.ts",
|
|
199
|
-
"types": "./src/lib/components/ui/range-calendar/index.ts",
|
|
200
|
-
"svelte": "./src/lib/components/ui/range-calendar/index.ts",
|
|
201
|
-
"import": "./src/lib/components/ui/range-calendar/index.ts"
|
|
202
|
-
},
|
|
203
|
-
"./Resizable": {
|
|
204
|
-
"default": "./src/lib/components/ui/resizable/index.ts",
|
|
205
|
-
"types": "./src/lib/components/ui/resizable/index.ts",
|
|
206
|
-
"svelte": "./src/lib/components/ui/resizable/index.ts",
|
|
207
|
-
"import": "./src/lib/components/ui/resizable/index.ts"
|
|
208
|
-
},
|
|
209
|
-
"./Scroll-Area": {
|
|
210
|
-
"default": "./src/lib/components/ui/scroll-area/index.ts",
|
|
211
|
-
"types": "./src/lib/components/ui/scroll-area/index.ts",
|
|
212
|
-
"svelte": "./src/lib/components/ui/scroll-area/index.ts",
|
|
213
|
-
"import": "./src/lib/components/ui/scroll-area/index.ts"
|
|
214
|
-
},
|
|
215
|
-
"./Select": {
|
|
216
|
-
"default": "./src/lib/components/ui/select/index.ts",
|
|
217
|
-
"types": "./src/lib/components/ui/select/index.ts",
|
|
218
|
-
"svelte": "./src/lib/components/ui/select/index.ts",
|
|
219
|
-
"import": "./src/lib/components/ui/select/index.ts"
|
|
220
|
-
},
|
|
221
|
-
"./Separator": {
|
|
222
|
-
"default": "./src/lib/components/ui/separator/index.ts",
|
|
223
|
-
"types": "./src/lib/components/ui/separator/index.ts",
|
|
224
|
-
"svelte": "./src/lib/components/ui/separator/index.ts",
|
|
225
|
-
"import": "./src/lib/components/ui/separator/index.ts"
|
|
226
|
-
},
|
|
227
|
-
"./Sheet": {
|
|
228
|
-
"default": "./src/lib/components/ui/sheet/index.ts",
|
|
229
|
-
"types": "./src/lib/components/ui/sheet/index.ts",
|
|
230
|
-
"svelte": "./src/lib/components/ui/sheet/index.ts",
|
|
231
|
-
"import": "./src/lib/components/ui/sheet/index.ts"
|
|
232
|
-
},
|
|
233
|
-
"./Sidebar": {
|
|
234
|
-
"default": "./src/lib/components/ui/sidebar/index.ts",
|
|
235
|
-
"types": "./src/lib/components/ui/sidebar/index.ts",
|
|
236
|
-
"svelte": "./src/lib/components/ui/sidebar/index.ts",
|
|
237
|
-
"import": "./src/lib/components/ui/sidebar/index.ts"
|
|
238
|
-
},
|
|
239
|
-
"./Skeleton": {
|
|
240
|
-
"default": "./src/lib/components/ui/skeleton/index.ts",
|
|
241
|
-
"types": "./src/lib/components/ui/skeleton/index.ts",
|
|
242
|
-
"svelte": "./src/lib/components/ui/skeleton/index.ts",
|
|
243
|
-
"import": "./src/lib/components/ui/skeleton/index.ts"
|
|
244
|
-
},
|
|
245
|
-
"./Slider": {
|
|
246
|
-
"default": "./src/lib/components/ui/slider/index.ts",
|
|
247
|
-
"types": "./src/lib/components/ui/slider/index.ts",
|
|
248
|
-
"svelte": "./src/lib/components/ui/slider/index.ts",
|
|
249
|
-
"import": "./src/lib/components/ui/slider/index.ts"
|
|
250
|
-
},
|
|
251
|
-
"./Sonner": {
|
|
252
|
-
"default": "./src/lib/components/ui/sonner/index.ts",
|
|
253
|
-
"types": "./src/lib/components/ui/sonner/index.ts",
|
|
254
|
-
"svelte": "./src/lib/components/ui/sonner/index.ts",
|
|
255
|
-
"import": "./src/lib/components/ui/sonner/index.ts"
|
|
256
|
-
},
|
|
257
|
-
"./Switch": {
|
|
258
|
-
"default": "./src/lib/components/ui/switch/index.ts",
|
|
259
|
-
"types": "./src/lib/components/ui/switch/index.ts",
|
|
260
|
-
"svelte": "./src/lib/components/ui/switch/index.ts",
|
|
261
|
-
"import": "./src/lib/components/ui/switch/index.ts"
|
|
262
|
-
},
|
|
263
|
-
"./Table": {
|
|
264
|
-
"default": "./src/lib/components/ui/table/index.ts",
|
|
265
|
-
"types": "./src/lib/components/ui/table/index.ts",
|
|
266
|
-
"svelte": "./src/lib/components/ui/table/index.ts",
|
|
267
|
-
"import": "./src/lib/components/ui/table/index.ts"
|
|
268
|
-
},
|
|
269
|
-
"./Tabs": {
|
|
270
|
-
"default": "./src/lib/components/ui/tabs/index.ts",
|
|
271
|
-
"types": "./src/lib/components/ui/tabs/index.ts",
|
|
272
|
-
"svelte": "./src/lib/components/ui/tabs/index.ts",
|
|
273
|
-
"import": "./src/lib/components/ui/tabs/index.ts"
|
|
274
|
-
},
|
|
275
|
-
"./Textarea": {
|
|
276
|
-
"default": "./src/lib/components/ui/textarea/index.ts",
|
|
277
|
-
"types": "./src/lib/components/ui/textarea/index.ts",
|
|
278
|
-
"svelte": "./src/lib/components/ui/textarea/index.ts",
|
|
279
|
-
"import": "./src/lib/components/ui/textarea/index.ts"
|
|
280
|
-
},
|
|
281
|
-
"./Toggle": {
|
|
282
|
-
"default": "./src/lib/components/ui/toggle/index.ts",
|
|
283
|
-
"types": "./src/lib/components/ui/toggle/index.ts",
|
|
284
|
-
"svelte": "./src/lib/components/ui/toggle/index.ts",
|
|
285
|
-
"import": "./src/lib/components/ui/toggle/index.ts"
|
|
286
|
-
},
|
|
287
|
-
"./Toggle-Group": {
|
|
288
|
-
"default": "./src/lib/components/ui/toggle-group/index.ts",
|
|
289
|
-
"types": "./src/lib/components/ui/toggle-group/index.ts",
|
|
290
|
-
"svelte": "./src/lib/components/ui/toggle-group/index.ts",
|
|
291
|
-
"import": "./src/lib/components/ui/toggle-group/index.ts"
|
|
292
|
-
},
|
|
293
|
-
"./Tooltip": {
|
|
294
|
-
"default": "./src/lib/components/ui/tooltip/index.ts",
|
|
295
|
-
"types": "./src/lib/components/ui/tooltip/index.ts",
|
|
296
|
-
"svelte": "./src/lib/components/ui/tooltip/index.ts",
|
|
297
|
-
"import": "./src/lib/components/ui/tooltip/index.ts"
|
|
298
|
-
},
|
|
299
|
-
"./hooks": {
|
|
300
|
-
"default": "./src/lib/hooks"
|
|
301
|
-
},
|
|
302
|
-
"./utils": {
|
|
303
|
-
"default": "./src/lib/utils"
|
|
19
|
+
"svelte": "./dist/index.js"
|
|
304
20
|
}
|
|
305
21
|
},
|
|
306
22
|
"devDependencies": {
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * as Accordion from './accordion';
|
|
2
|
+
export * as Alert from './alert';
|
|
3
|
+
export * as AlertDialog from './alert-dialog';
|
|
4
|
+
export { AspectRatio } from './aspect-ratio';
|
|
5
|
+
export * as Avatar from './avatar';
|
|
6
|
+
export { Badge } from './badge';
|
|
7
|
+
export * as Breadcrumb from './breadcrumb';
|
|
8
|
+
export { Button, buttonVariants } from './button';
|
|
9
|
+
export { Calendar } from './calendar';
|
|
10
|
+
export * as Card from './card';
|
|
11
|
+
export * as Carousel from './carousel';
|
|
12
|
+
export { Checkbox } from './checkbox';
|
|
13
|
+
export * as Collapsible from './collapsible';
|
|
14
|
+
export * as Command from './command';
|
|
15
|
+
export * as ContextMenu from './context-menu';
|
|
16
|
+
export * as Dialog from './dialog';
|
|
17
|
+
export * as Drawer from './drawer';
|
|
18
|
+
export * as DropdownMenu from './dropdown-menu';
|
|
19
|
+
export * as Form from './form';
|
|
20
|
+
export * as HoverCard from './hover-card';
|
|
21
|
+
export { Input } from './input';
|
|
22
|
+
export { InputOTP } from './input-otp';
|
|
23
|
+
export { Label } from './label';
|
|
24
|
+
export * as Menubar from './menubar';
|
|
25
|
+
export * as Pagination from './pagination';
|
|
26
|
+
export * as Popover from './popover';
|
|
27
|
+
export { Progress } from './progress';
|
|
28
|
+
export * as RadioGroup from './radio-group';
|
|
29
|
+
export { RangeCalendar } from './range-calendar';
|
|
30
|
+
export * as Resizable from './resizable';
|
|
31
|
+
export { ScrollArea } from './scroll-area';
|
|
32
|
+
export * as Select from './select';
|
|
33
|
+
export { Separator } from './separator';
|
|
34
|
+
export * as Sheet from './sheet';
|
|
35
|
+
export * as Sidebar from './sidebar';
|
|
36
|
+
export { useSidebar } from './sidebar';
|
|
37
|
+
export { Skeleton } from './skeleton';
|
|
38
|
+
export { Slider } from './slider';
|
|
39
|
+
export { Toaster } from './sonner';
|
|
40
|
+
export { Switch } from './switch';
|
|
41
|
+
export * as Table from './table';
|
|
42
|
+
export * as Tabs from './tabs';
|
|
43
|
+
export { Textarea } from './textarea';
|
|
44
|
+
export { Toggle } from './toggle';
|
|
45
|
+
export * as ToggleGroup from './toggle-group';
|
|
46
|
+
export * as Tooltip from './tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './is-mobile.svelte';
|
package/src/lib/index.ts
ADDED