uisv 0.0.1 → 0.0.3
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 +15 -3
- package/dist/components/alert.svelte +0 -244
- package/dist/components/alert.svelte.d.ts +0 -25
- package/dist/components/badge.svelte +0 -227
- package/dist/components/badge.svelte.d.ts +0 -19
- package/dist/components/button.svelte +0 -383
- package/dist/components/button.svelte.d.ts +0 -51
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +0 -6
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/theme/accordion.d.ts +0 -21
- package/dist/theme/accordion.js +0 -20
- package/dist/theme/alert.d.ts +0 -45
- package/dist/theme/alert.js +0 -102
- package/dist/theme/auth-form.d.ts +0 -21
- package/dist/theme/auth-form.js +0 -20
- package/dist/theme/avatar-group.d.ts +0 -41
- package/dist/theme/avatar-group.js +0 -40
- package/dist/theme/avatar.d.ts +0 -43
- package/dist/theme/avatar.js +0 -42
- package/dist/theme/badge.d.ts +0 -18
- package/dist/theme/badge.js +0 -131
- package/dist/theme/banner.d.ts +0 -29
- package/dist/theme/banner.js +0 -42
- package/dist/theme/blog-post.d.ts +0 -112
- package/dist/theme/blog-post.js +0 -116
- package/dist/theme/blog-posts.d.ts +0 -10
- package/dist/theme/blog-posts.js +0 -9
- package/dist/theme/breadcrumb.d.ts +0 -41
- package/dist/theme/breadcrumb.js +0 -42
- package/dist/theme/button.d.ts +0 -19
- package/dist/theme/button.js +0 -194
- package/dist/theme/calendar.d.ts +0 -59
- package/dist/theme/calendar.js +0 -68
- package/dist/theme/card.d.ts +0 -28
- package/dist/theme/card.js +0 -27
- package/dist/theme/carousel.d.ts +0 -36
- package/dist/theme/carousel.js +0 -38
- package/dist/theme/changelog-version.d.ts +0 -42
- package/dist/theme/changelog-version.js +0 -41
- package/dist/theme/changelog-versions.d.ts +0 -9
- package/dist/theme/changelog-versions.js +0 -8
- package/dist/theme/chat-message.d.ts +0 -101
- package/dist/theme/chat-message.js +0 -97
- package/dist/theme/chat-messages.d.ts +0 -15
- package/dist/theme/chat-messages.js +0 -14
- package/dist/theme/chat-palette.d.ts +0 -9
- package/dist/theme/chat-palette.js +0 -8
- package/dist/theme/chat-prompt-submit.d.ts +0 -6
- package/dist/theme/chat-prompt-submit.js +0 -5
- package/dist/theme/chat-prompt.d.ts +0 -29
- package/dist/theme/chat-prompt.js +0 -28
- package/dist/theme/checkbox-group.d.ts +0 -62
- package/dist/theme/checkbox-group.js +0 -105
- package/dist/theme/checkbox.d.ts +0 -92
- package/dist/theme/checkbox.js +0 -125
- package/dist/theme/chip.d.ts +0 -45
- package/dist/theme/chip.js +0 -62
- package/dist/theme/collapsible.d.ts +0 -7
- package/dist/theme/collapsible.js +0 -6
- package/dist/theme/color-picker.d.ts +0 -40
- package/dist/theme/color-picker.js +0 -39
- package/dist/theme/command-palette.d.ts +0 -47
- package/dist/theme/command-palette.js +0 -52
- package/dist/theme/container.d.ts +0 -4
- package/dist/theme/container.js +0 -3
- package/dist/theme/content/content-navigation.d.ts +0 -65
- package/dist/theme/content/content-navigation.js +0 -153
- package/dist/theme/content/content-search-button.d.ts +0 -7
- package/dist/theme/content/content-search-button.js +0 -6
- package/dist/theme/content/content-search.d.ts +0 -7
- package/dist/theme/content/content-search.js +0 -6
- package/dist/theme/content/content-surround.d.ts +0 -23
- package/dist/theme/content/content-surround.js +0 -21
- package/dist/theme/content/content-toc.d.ts +0 -53
- package/dist/theme/content/content-toc.js +0 -69
- package/dist/theme/content/index.d.ts +0 -5
- package/dist/theme/content/index.js +0 -5
- package/dist/theme/context-menu.d.ts +0 -91
- package/dist/theme/context-menu.js +0 -114
- package/dist/theme/dashboard-group.d.ts +0 -4
- package/dist/theme/dashboard-group.js +0 -3
- package/dist/theme/dashboard-navbar.d.ts +0 -22
- package/dist/theme/dashboard-navbar.js +0 -21
- package/dist/theme/dashboard-panel.d.ts +0 -18
- package/dist/theme/dashboard-panel.js +0 -17
- package/dist/theme/dashboard-resize-handle.d.ts +0 -4
- package/dist/theme/dashboard-resize-handle.js +0 -3
- package/dist/theme/dashboard-search-button.d.ts +0 -7
- package/dist/theme/dashboard-search-button.js +0 -6
- package/dist/theme/dashboard-search.d.ts +0 -7
- package/dist/theme/dashboard-search.js +0 -6
- package/dist/theme/dashboard-sidebar-collapse.d.ts +0 -10
- package/dist/theme/dashboard-sidebar-collapse.js +0 -9
- package/dist/theme/dashboard-sidebar-toggle.d.ts +0 -10
- package/dist/theme/dashboard-sidebar-toggle.js +0 -9
- package/dist/theme/dashboard-sidebar.d.ts +0 -38
- package/dist/theme/dashboard-sidebar.js +0 -37
- package/dist/theme/dashboard-toolbar.d.ts +0 -8
- package/dist/theme/dashboard-toolbar.js +0 -7
- package/dist/theme/drawer.d.ts +0 -54
- package/dist/theme/drawer.js +0 -110
- package/dist/theme/dropdown-menu.d.ts +0 -92
- package/dist/theme/dropdown-menu.js +0 -115
- package/dist/theme/error.d.ts +0 -10
- package/dist/theme/error.js +0 -9
- package/dist/theme/file-upload.d.ts +0 -100
- package/dist/theme/file-upload.js +0 -212
- package/dist/theme/footer-columns.d.ts +0 -27
- package/dist/theme/footer-columns.js +0 -25
- package/dist/theme/footer.d.ts +0 -12
- package/dist/theme/footer.js +0 -11
- package/dist/theme/form-field.d.ts +0 -41
- package/dist/theme/form-field.js +0 -30
- package/dist/theme/form.d.ts +0 -4
- package/dist/theme/form.js +0 -3
- package/dist/theme/header.d.ts +0 -26
- package/dist/theme/header.js +0 -25
- package/dist/theme/icons.d.ts +0 -44
- package/dist/theme/icons.js +0 -43
- package/dist/theme/index.d.ts +0 -99
- package/dist/theme/index.js +0 -99
- package/dist/theme/input-menu.d.ts +0 -159
- package/dist/theme/input-menu.js +0 -136
- package/dist/theme/input-number.d.ts +0 -16
- package/dist/theme/input-number.js +0 -130
- package/dist/theme/input-tags.d.ts +0 -86
- package/dist/theme/input-tags.js +0 -50
- package/dist/theme/input.d.ts +0 -20
- package/dist/theme/input.js +0 -179
- package/dist/theme/kbd.d.ts +0 -26
- package/dist/theme/kbd.js +0 -67
- package/dist/theme/link.d.ts +0 -18
- package/dist/theme/link.js +0 -19
- package/dist/theme/main.d.ts +0 -4
- package/dist/theme/main.js +0 -3
- package/dist/theme/marquee.d.ts +0 -47
- package/dist/theme/marquee.js +0 -56
- package/dist/theme/modal.d.ts +0 -30
- package/dist/theme/modal.js +0 -29
- package/dist/theme/navigation-menu.d.ts +0 -108
- package/dist/theme/navigation-menu.js +0 -315
- package/dist/theme/page-anchors.d.ts +0 -26
- package/dist/theme/page-anchors.js +0 -24
- package/dist/theme/page-aside.d.ts +0 -11
- package/dist/theme/page-aside.js +0 -10
- package/dist/theme/page-body.d.ts +0 -4
- package/dist/theme/page-body.js +0 -3
- package/dist/theme/page-card.d.ts +0 -90
- package/dist/theme/page-card.js +0 -156
- package/dist/theme/page-columns.d.ts +0 -4
- package/dist/theme/page-columns.js +0 -3
- package/dist/theme/page-cta.d.ts +0 -63
- package/dist/theme/page-cta.js +0 -62
- package/dist/theme/page-feature.d.ts +0 -27
- package/dist/theme/page-feature.js +0 -26
- package/dist/theme/page-grid.d.ts +0 -4
- package/dist/theme/page-grid.js +0 -3
- package/dist/theme/page-header.d.ts +0 -19
- package/dist/theme/page-header.js +0 -18
- package/dist/theme/page-hero.d.ts +0 -45
- package/dist/theme/page-hero.js +0 -44
- package/dist/theme/page-links.d.ts +0 -24
- package/dist/theme/page-links.js +0 -22
- package/dist/theme/page-list.d.ts +0 -9
- package/dist/theme/page-list.js +0 -8
- package/dist/theme/page-logos.d.ts +0 -16
- package/dist/theme/page-logos.js +0 -15
- package/dist/theme/page-section.d.ts +0 -85
- package/dist/theme/page-section.js +0 -75
- package/dist/theme/page.d.ts +0 -24
- package/dist/theme/page.js +0 -29
- package/dist/theme/pagination.d.ts +0 -14
- package/dist/theme/pagination.js +0 -13
- package/dist/theme/pin-input.d.ts +0 -45
- package/dist/theme/pin-input.js +0 -69
- package/dist/theme/popover.d.ts +0 -7
- package/dist/theme/popover.js +0 -6
- package/dist/theme/pricing-plan.d.ts +0 -81
- package/dist/theme/pricing-plan.js +0 -86
- package/dist/theme/pricing-plans.d.ts +0 -21
- package/dist/theme/pricing-plans.js +0 -20
- package/dist/theme/pricing-table.d.ts +0 -52
- package/dist/theme/pricing-table.js +0 -51
- package/dist/theme/progress.d.ts +0 -131
- package/dist/theme/progress.js +0 -241
- package/dist/theme/prose/a.d.ts +0 -5
- package/dist/theme/prose/a.js +0 -3
- package/dist/theme/prose/accordion-item.d.ts +0 -4
- package/dist/theme/prose/accordion-item.js +0 -3
- package/dist/theme/prose/accordion.d.ts +0 -7
- package/dist/theme/prose/accordion.js +0 -6
- package/dist/theme/prose/badge.d.ts +0 -4
- package/dist/theme/prose/badge.js +0 -3
- package/dist/theme/prose/blockquote.d.ts +0 -4
- package/dist/theme/prose/blockquote.js +0 -3
- package/dist/theme/prose/callout.d.ts +0 -25
- package/dist/theme/prose/callout.js +0 -42
- package/dist/theme/prose/card-group.d.ts +0 -4
- package/dist/theme/prose/card-group.js +0 -3
- package/dist/theme/prose/card.d.ts +0 -30
- package/dist/theme/prose/card.js +0 -45
- package/dist/theme/prose/code-collapse.d.ts +0 -20
- package/dist/theme/prose/code-collapse.js +0 -19
- package/dist/theme/prose/code-group.d.ts +0 -12
- package/dist/theme/prose/code-group.js +0 -10
- package/dist/theme/prose/code-icon.d.ts +0 -67
- package/dist/theme/prose/code-icon.js +0 -66
- package/dist/theme/prose/code-preview.d.ts +0 -15
- package/dist/theme/prose/code-preview.js +0 -14
- package/dist/theme/prose/code-tree.d.ts +0 -27
- package/dist/theme/prose/code-tree.js +0 -25
- package/dist/theme/prose/code.d.ts +0 -13
- package/dist/theme/prose/code.js +0 -12
- package/dist/theme/prose/collapsible.d.ts +0 -11
- package/dist/theme/prose/collapsible.js +0 -9
- package/dist/theme/prose/em.d.ts +0 -4
- package/dist/theme/prose/em.js +0 -3
- package/dist/theme/prose/field-group.d.ts +0 -4
- package/dist/theme/prose/field-group.js +0 -3
- package/dist/theme/prose/field.d.ts +0 -12
- package/dist/theme/prose/field.js +0 -11
- package/dist/theme/prose/h1.d.ts +0 -7
- package/dist/theme/prose/h1.js +0 -6
- package/dist/theme/prose/h2.d.ts +0 -10
- package/dist/theme/prose/h2.js +0 -8
- package/dist/theme/prose/h3.d.ts +0 -10
- package/dist/theme/prose/h3.js +0 -8
- package/dist/theme/prose/h4.d.ts +0 -7
- package/dist/theme/prose/h4.js +0 -6
- package/dist/theme/prose/hr.d.ts +0 -4
- package/dist/theme/prose/hr.js +0 -3
- package/dist/theme/prose/icon.d.ts +0 -4
- package/dist/theme/prose/icon.js +0 -3
- package/dist/theme/prose/img.d.ts +0 -21
- package/dist/theme/prose/img.js +0 -20
- package/dist/theme/prose/index.d.ts +0 -41
- package/dist/theme/prose/index.js +0 -41
- package/dist/theme/prose/kbd.d.ts +0 -4
- package/dist/theme/prose/kbd.js +0 -3
- package/dist/theme/prose/li.d.ts +0 -4
- package/dist/theme/prose/li.js +0 -3
- package/dist/theme/prose/ol.d.ts +0 -4
- package/dist/theme/prose/ol.js +0 -3
- package/dist/theme/prose/p.d.ts +0 -4
- package/dist/theme/prose/p.js +0 -3
- package/dist/theme/prose/pre.d.ts +0 -18
- package/dist/theme/prose/pre.js +0 -17
- package/dist/theme/prose/steps.d.ts +0 -14
- package/dist/theme/prose/steps.js +0 -13
- package/dist/theme/prose/strong.d.ts +0 -4
- package/dist/theme/prose/strong.js +0 -3
- package/dist/theme/prose/table.d.ts +0 -7
- package/dist/theme/prose/table.js +0 -6
- package/dist/theme/prose/tabs-item.d.ts +0 -4
- package/dist/theme/prose/tabs-item.js +0 -3
- package/dist/theme/prose/tabs.d.ts +0 -6
- package/dist/theme/prose/tabs.js +0 -5
- package/dist/theme/prose/tbody.d.ts +0 -4
- package/dist/theme/prose/tbody.js +0 -3
- package/dist/theme/prose/td.d.ts +0 -4
- package/dist/theme/prose/td.js +0 -3
- package/dist/theme/prose/th.d.ts +0 -4
- package/dist/theme/prose/th.js +0 -3
- package/dist/theme/prose/thead.d.ts +0 -4
- package/dist/theme/prose/thead.js +0 -3
- package/dist/theme/prose/tr.d.ts +0 -4
- package/dist/theme/prose/tr.js +0 -3
- package/dist/theme/prose/ul.d.ts +0 -4
- package/dist/theme/prose/ul.js +0 -3
- package/dist/theme/radio-group.d.ts +0 -117
- package/dist/theme/radio-group.js +0 -180
- package/dist/theme/select-menu.d.ts +0 -141
- package/dist/theme/select-menu.js +0 -21
- package/dist/theme/select.d.ts +0 -86
- package/dist/theme/select.js +0 -100
- package/dist/theme/separator.d.ts +0 -61
- package/dist/theme/separator.js +0 -104
- package/dist/theme/skeleton.d.ts +0 -4
- package/dist/theme/skeleton.js +0 -3
- package/dist/theme/slideover.d.ts +0 -42
- package/dist/theme/slideover.js +0 -59
- package/dist/theme/slider.d.ts +0 -60
- package/dist/theme/slider.js +0 -131
- package/dist/theme/stepper.d.ts +0 -94
- package/dist/theme/stepper.js +0 -137
- package/dist/theme/switch.d.ts +0 -84
- package/dist/theme/switch.js +0 -96
- package/dist/theme/table.d.ts +0 -56
- package/dist/theme/table.js +0 -99
- package/dist/theme/tabs.d.ts +0 -78
- package/dist/theme/tabs.js +0 -145
- package/dist/theme/textarea.d.ts +0 -72
- package/dist/theme/textarea.js +0 -39
- package/dist/theme/timeline.d.ts +0 -52
- package/dist/theme/timeline.js +0 -212
- package/dist/theme/toast.d.ts +0 -41
- package/dist/theme/toast.js +0 -47
- package/dist/theme/toaster.d.ts +0 -50
- package/dist/theme/toaster.js +0 -56
- package/dist/theme/tooltip.d.ts +0 -10
- package/dist/theme/tooltip.js +0 -9
- package/dist/theme/tree.d.ts +0 -66
- package/dist/theme/tree.js +0 -89
- package/dist/theme/user.d.ts +0 -85
- package/dist/theme/user.js +0 -83
- package/dist/types.d.ts +0 -7
- package/dist/types.js +0 -1
- package/dist/utils/common.d.ts +0 -14
- package/dist/utils/common.js +0 -18
- package/dist/utils/keys.d.ts +0 -8
- package/dist/utils/keys.js +0 -8
- package/dist/utils/types.d.ts +0 -1
- package/dist/utils/types.js +0 -1
- package/dist/vite.d.ts +0 -34
- package/dist/vite.js +0 -73
package/dist/theme/user.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import type { NuxtOptions } from '@nuxt/schema';
|
|
2
|
-
declare const _default: (options: Required<NuxtOptions["ui"]>) => {
|
|
3
|
-
slots: {
|
|
4
|
-
root: string;
|
|
5
|
-
wrapper: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
avatar: string;
|
|
9
|
-
};
|
|
10
|
-
variants: {
|
|
11
|
-
orientation: {
|
|
12
|
-
horizontal: {
|
|
13
|
-
root: string;
|
|
14
|
-
};
|
|
15
|
-
vertical: {
|
|
16
|
-
root: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
to: {
|
|
20
|
-
true: {
|
|
21
|
-
name: any[];
|
|
22
|
-
description: any[];
|
|
23
|
-
avatar: string;
|
|
24
|
-
};
|
|
25
|
-
false: {
|
|
26
|
-
name: string;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
size: {
|
|
31
|
-
'3xs': {
|
|
32
|
-
root: string;
|
|
33
|
-
wrapper: string;
|
|
34
|
-
name: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
'2xs': {
|
|
38
|
-
root: string;
|
|
39
|
-
wrapper: string;
|
|
40
|
-
name: string;
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
xs: {
|
|
44
|
-
root: string;
|
|
45
|
-
wrapper: string;
|
|
46
|
-
name: string;
|
|
47
|
-
description: string;
|
|
48
|
-
};
|
|
49
|
-
sm: {
|
|
50
|
-
root: string;
|
|
51
|
-
name: string;
|
|
52
|
-
description: string;
|
|
53
|
-
};
|
|
54
|
-
md: {
|
|
55
|
-
root: string;
|
|
56
|
-
name: string;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
lg: {
|
|
60
|
-
root: string;
|
|
61
|
-
name: string;
|
|
62
|
-
description: string;
|
|
63
|
-
};
|
|
64
|
-
xl: {
|
|
65
|
-
root: string;
|
|
66
|
-
name: string;
|
|
67
|
-
description: string;
|
|
68
|
-
};
|
|
69
|
-
'2xl': {
|
|
70
|
-
root: string;
|
|
71
|
-
name: string;
|
|
72
|
-
description: string;
|
|
73
|
-
};
|
|
74
|
-
'3xl': {
|
|
75
|
-
root: string;
|
|
76
|
-
name: string;
|
|
77
|
-
description: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
defaultVariants: {
|
|
82
|
-
size: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
export default _default;
|
package/dist/theme/user.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export default (options) => ({
|
|
2
|
-
slots: {
|
|
3
|
-
root: 'relative group/user',
|
|
4
|
-
wrapper: '',
|
|
5
|
-
name: 'font-medium',
|
|
6
|
-
description: 'text-muted',
|
|
7
|
-
avatar: 'shrink-0'
|
|
8
|
-
},
|
|
9
|
-
variants: {
|
|
10
|
-
orientation: {
|
|
11
|
-
horizontal: {
|
|
12
|
-
root: 'flex items-center'
|
|
13
|
-
},
|
|
14
|
-
vertical: {
|
|
15
|
-
root: 'flex flex-col'
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
to: {
|
|
19
|
-
true: {
|
|
20
|
-
name: ['text-default peer-hover:text-highlighted', options.theme.transitions && 'transition-colors'],
|
|
21
|
-
description: ['peer-hover:text-toned', options.theme.transitions && 'transition-colors'],
|
|
22
|
-
avatar: 'transform transition-transform duration-200 group-hover/user:scale-115'
|
|
23
|
-
},
|
|
24
|
-
false: {
|
|
25
|
-
name: 'text-highlighted',
|
|
26
|
-
description: ''
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
size: {
|
|
30
|
-
'3xs': {
|
|
31
|
-
root: 'gap-1',
|
|
32
|
-
wrapper: 'flex items-center gap-1',
|
|
33
|
-
name: 'text-xs',
|
|
34
|
-
description: 'text-xs'
|
|
35
|
-
},
|
|
36
|
-
'2xs': {
|
|
37
|
-
root: 'gap-1.5',
|
|
38
|
-
wrapper: 'flex items-center gap-1.5',
|
|
39
|
-
name: 'text-xs',
|
|
40
|
-
description: 'text-xs'
|
|
41
|
-
},
|
|
42
|
-
'xs': {
|
|
43
|
-
root: 'gap-1.5',
|
|
44
|
-
wrapper: 'flex items-center gap-1.5',
|
|
45
|
-
name: 'text-xs',
|
|
46
|
-
description: 'text-xs'
|
|
47
|
-
},
|
|
48
|
-
'sm': {
|
|
49
|
-
root: 'gap-2',
|
|
50
|
-
name: 'text-xs',
|
|
51
|
-
description: 'text-xs'
|
|
52
|
-
},
|
|
53
|
-
'md': {
|
|
54
|
-
root: 'gap-2',
|
|
55
|
-
name: 'text-sm',
|
|
56
|
-
description: 'text-xs'
|
|
57
|
-
},
|
|
58
|
-
'lg': {
|
|
59
|
-
root: 'gap-2.5',
|
|
60
|
-
name: 'text-sm',
|
|
61
|
-
description: 'text-sm'
|
|
62
|
-
},
|
|
63
|
-
'xl': {
|
|
64
|
-
root: 'gap-2.5',
|
|
65
|
-
name: 'text-base',
|
|
66
|
-
description: 'text-sm'
|
|
67
|
-
},
|
|
68
|
-
'2xl': {
|
|
69
|
-
root: 'gap-3',
|
|
70
|
-
name: 'text-base',
|
|
71
|
-
description: 'text-base'
|
|
72
|
-
},
|
|
73
|
-
'3xl': {
|
|
74
|
-
root: 'gap-3',
|
|
75
|
-
name: 'text-lg',
|
|
76
|
-
description: 'text-base'
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
defaultVariants: {
|
|
81
|
-
size: 'md'
|
|
82
|
-
}
|
|
83
|
-
});
|
package/dist/types.d.ts
DELETED
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/utils/common.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Snippet, Component } from 'svelte';
|
|
2
|
-
export declare const tv: import("tailwind-variants").TV;
|
|
3
|
-
/**
|
|
4
|
-
* Checks if a value is a Svelte snippet
|
|
5
|
-
* @param v - The value to check (should be Snippet | Component)
|
|
6
|
-
* @returns true if the value is a snippet, false otherwise
|
|
7
|
-
*/
|
|
8
|
-
export declare const isSnippet: (v: unknown) => v is Snippet;
|
|
9
|
-
/**
|
|
10
|
-
* Checks if a value is a Svelte component
|
|
11
|
-
* @param v - The value to check (should be Snippet | Component)
|
|
12
|
-
* @returns true if the value is a component, false otherwise
|
|
13
|
-
*/
|
|
14
|
-
export declare const isComponent: (v: unknown) => v is Component;
|
package/dist/utils/common.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createTV } from 'tailwind-variants';
|
|
2
|
-
export const tv = createTV({});
|
|
3
|
-
/**
|
|
4
|
-
* Checks if a value is a Svelte snippet
|
|
5
|
-
* @param v - The value to check (should be Snippet | Component)
|
|
6
|
-
* @returns true if the value is a snippet, false otherwise
|
|
7
|
-
*/
|
|
8
|
-
export const isSnippet = (v) => {
|
|
9
|
-
return typeof v === 'object' && v !== null && '$$render' in v;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Checks if a value is a Svelte component
|
|
13
|
-
* @param v - The value to check (should be Snippet | Component)
|
|
14
|
-
* @returns true if the value is a component, false otherwise
|
|
15
|
-
*/
|
|
16
|
-
export const isComponent = (v) => {
|
|
17
|
-
return typeof v === 'function' || (typeof v === 'object' && v !== null && !('$$render' in v));
|
|
18
|
-
};
|
package/dist/utils/keys.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const FORM_OPTION_CONTEXT_KEY: unique symbol;
|
|
2
|
-
export declare const FORM_BUS_CONTEXT_KEY: unique symbol;
|
|
3
|
-
export declare const FORM_STATE_CONTEXT_KEY: unique symbol;
|
|
4
|
-
export declare const FORM_FIELD_CONTEXT_KEY: unique symbol;
|
|
5
|
-
export declare const FORM_TID_CONTEXT_KEY: unique symbol;
|
|
6
|
-
export declare const FORM_INPUTS_CONTEXT_KEY: unique symbol;
|
|
7
|
-
export declare const FORM_LOADING_CONTEXT_KEY: unique symbol;
|
|
8
|
-
export declare const FORM_ERRORS_CONTEXT_KEY: unique symbol;
|
package/dist/utils/keys.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const FORM_OPTION_CONTEXT_KEY = Symbol('uisv.form-options');
|
|
2
|
-
export const FORM_BUS_CONTEXT_KEY = Symbol('uisv.form-events');
|
|
3
|
-
export const FORM_STATE_CONTEXT_KEY = Symbol('uisv.form-state');
|
|
4
|
-
export const FORM_FIELD_CONTEXT_KEY = Symbol('uisv.form-field');
|
|
5
|
-
export const FORM_TID_CONTEXT_KEY = Symbol('uisv.input-id');
|
|
6
|
-
export const FORM_INPUTS_CONTEXT_KEY = Symbol('uisv.form-inputs');
|
|
7
|
-
export const FORM_LOADING_CONTEXT_KEY = Symbol('uisv.form-loading');
|
|
8
|
-
export const FORM_ERRORS_CONTEXT_KEY = Symbol('uisv.form-errors');
|
package/dist/utils/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/utils/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/vite.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
2
|
-
import type { PropColor } from './types.js';
|
|
3
|
-
export type PluginOptions = {
|
|
4
|
-
/**
|
|
5
|
-
* Colors as UnoCSS color name, hex color, or UnoCSS theme color object
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* primary: 'orange',
|
|
9
|
-
* secondary: 'neutral',
|
|
10
|
-
* info: '#00F',
|
|
11
|
-
* success: '#0F0',
|
|
12
|
-
* warning: 'FF0',
|
|
13
|
-
* error: {
|
|
14
|
-
* 50: '#fef2f2';
|
|
15
|
-
* 100: '#fee2e2';
|
|
16
|
-
* 200: '#fecaca';
|
|
17
|
-
* 300: '#fca5a5';
|
|
18
|
-
* 400: '#f87171';
|
|
19
|
-
* 500: '#ef4444';
|
|
20
|
-
* 600: '#dc2626';
|
|
21
|
-
* 700: '#b91c1c';
|
|
22
|
-
* 800: '#991b1b';
|
|
23
|
-
* 900: '#7f1d1d';
|
|
24
|
-
* 950: '#450a0a';
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
*/
|
|
28
|
-
colors?: Partial<Record<PropColor, string | Record<number, string>>>;
|
|
29
|
-
/**
|
|
30
|
-
* Options for the UnoCSS web fonts plugin
|
|
31
|
-
*/
|
|
32
|
-
fonts?: WebFontsOptions;
|
|
33
|
-
};
|
|
34
|
-
export declare function uisv(options: Required<PluginOptions>): import("vite").Plugin<any>[];
|
package/dist/vite.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import uno_plugin from 'unocss/vite';
|
|
2
|
-
import { transformerVariantGroup, transformerCompileClass, transformerDirectives, presetWind3, presetWebFonts } from 'unocss';
|
|
3
|
-
import {} from '@unocss/preset-web-fonts';
|
|
4
|
-
import { presetIcons } from 'unocss';
|
|
5
|
-
import { defu } from 'defu';
|
|
6
|
-
import { getColors } from 'theme-colors';
|
|
7
|
-
// export function uisv(opts: PluginOptions = {}) {
|
|
8
|
-
// const _opts: PluginOptions = defu(opts, {
|
|
9
|
-
// primary: 'orange',
|
|
10
|
-
// neutral: 'neutral',
|
|
11
|
-
// unocss: true,
|
|
12
|
-
// transitions: true
|
|
13
|
-
// } as PluginOptions);
|
|
14
|
-
// const uisv_plugin: Plugin = {
|
|
15
|
-
// name: 'vite-plugin-uisv',
|
|
16
|
-
// enforce: 'pre',
|
|
17
|
-
// async load(id) {
|
|
18
|
-
// if (id === '$theme/button') {
|
|
19
|
-
// return `export default ${JSON.stringify(useButtonTheme(_opts))}`;
|
|
20
|
-
// }
|
|
21
|
-
// },
|
|
22
|
-
// resolveId(source) {
|
|
23
|
-
// if (source.startsWith('$theme')) return source;
|
|
24
|
-
// }
|
|
25
|
-
// };
|
|
26
|
-
// return [
|
|
27
|
-
// uisv_plugin,
|
|
28
|
-
// _opts.unocss! &&
|
|
29
|
-
// unocss({
|
|
30
|
-
// presets: [preset_wind3, presetWebFonts(_opts.fonts)],
|
|
31
|
-
// transformers: [
|
|
32
|
-
// transformerVariantGroup(),
|
|
33
|
-
// transformerCompileClass(),
|
|
34
|
-
// transformerDirectives()
|
|
35
|
-
// ],
|
|
36
|
-
// extendTheme: (theme, config) => {
|
|
37
|
-
// console.log(theme, config);
|
|
38
|
-
// }
|
|
39
|
-
// })
|
|
40
|
-
// ];
|
|
41
|
-
// }
|
|
42
|
-
export function uisv(options) {
|
|
43
|
-
const _opts = defu(options, {
|
|
44
|
-
colors: {
|
|
45
|
-
primary: 'orange',
|
|
46
|
-
secondary: 'neutral',
|
|
47
|
-
info: 'blue',
|
|
48
|
-
success: 'green',
|
|
49
|
-
warning: 'yellow',
|
|
50
|
-
error: 'red'
|
|
51
|
-
},
|
|
52
|
-
fonts: {
|
|
53
|
-
fonts: {
|
|
54
|
-
sans: 'Public Sans:400,500,600'
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
return uno_plugin({
|
|
59
|
-
theme: {},
|
|
60
|
-
presets: [presetWind3({}), presetWebFonts(_opts.fonts), presetIcons()],
|
|
61
|
-
transformers: [transformerVariantGroup(), transformerCompileClass(), transformerDirectives()],
|
|
62
|
-
extendTheme: (theme) => {
|
|
63
|
-
for (const [color, value] of Object.entries(_opts.colors)) {
|
|
64
|
-
if (typeof value !== 'string') {
|
|
65
|
-
theme.colors[color] = value;
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
const in_theme = theme.colors[value];
|
|
69
|
-
theme.colors[color] = in_theme ? in_theme : getColors(value);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|