@falcondev-oss/nuxt-layers-base 0.1.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/.nuxt/app.config.mjs +317 -0
- package/.nuxt/components.d.ts +332 -0
- package/.nuxt/imports.d.ts +61 -0
- package/.nuxt/manifest/meta/24fb5e89-93fb-44cb-bbff-2a13f165c1e8.json +1 -0
- package/.nuxt/nuxt-icon-client-bundle.mjs +1 -0
- package/.nuxt/nuxt-icon-server-bundle.mjs +14 -0
- package/.nuxt/nuxt.d.ts +24 -0
- package/.nuxt/nuxt.node.d.ts +14 -0
- package/.nuxt/nuxt.shared.d.ts +5 -0
- package/.nuxt/schema/nuxt.schema.d.ts +210 -0
- package/.nuxt/schema/nuxt.schema.json +263 -0
- package/.nuxt/tsconfig.app.json +217 -0
- package/.nuxt/tsconfig.json +219 -0
- package/.nuxt/tsconfig.node.json +114 -0
- package/.nuxt/tsconfig.server.json +140 -0
- package/.nuxt/tsconfig.shared.json +139 -0
- package/.nuxt/types/app.config.d.ts +331 -0
- package/.nuxt/types/build.d.ts +24 -0
- package/.nuxt/types/builder-env.d.ts +1 -0
- package/.nuxt/types/components.d.ts +337 -0
- package/.nuxt/types/imports.d.ts +906 -0
- package/.nuxt/types/layouts.d.ts +7 -0
- package/.nuxt/types/middleware.d.ts +7 -0
- package/.nuxt/types/modules.d.ts +159 -0
- package/.nuxt/types/nitro-config.d.ts +14 -0
- package/.nuxt/types/nitro-imports.d.ts +141 -0
- package/.nuxt/types/nitro-middleware.d.ts +11 -0
- package/.nuxt/types/nitro-nuxt.d.ts +61 -0
- package/.nuxt/types/nitro-routes.d.ts +17 -0
- package/.nuxt/types/nitro.d.ts +3 -0
- package/.nuxt/types/plugins.d.ts +35 -0
- package/.nuxt/types/runtime-config.d.ts +36 -0
- package/.nuxt/types/ui.d.ts +36 -0
- package/.nuxt/types/vue-shim.d.ts +0 -0
- package/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +264 -0
- package/.nuxt/ui/auth-form.ts +20 -0
- package/.nuxt/ui/avatar-group.ts +52 -0
- package/.nuxt/ui/avatar.ts +54 -0
- package/.nuxt/ui/badge.ts +263 -0
- package/.nuxt/ui/banner.ts +108 -0
- package/.nuxt/ui/blog-post.ts +143 -0
- package/.nuxt/ui/blog-posts.ts +9 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button.ts +378 -0
- package/.nuxt/ui/calendar.ts +315 -0
- package/.nuxt/ui/card.ts +34 -0
- package/.nuxt/ui/carousel.ts +38 -0
- package/.nuxt/ui/changelog-version.ts +45 -0
- package/.nuxt/ui/changelog-versions.ts +8 -0
- package/.nuxt/ui/chat-message.ts +136 -0
- package/.nuxt/ui/chat-messages.ts +14 -0
- package/.nuxt/ui/chat-palette.ts +8 -0
- package/.nuxt/ui/chat-prompt-submit.ts +5 -0
- package/.nuxt/ui/chat-prompt.ts +35 -0
- package/.nuxt/ui/checkbox-group.ts +207 -0
- package/.nuxt/ui/checkbox.ts +237 -0
- package/.nuxt/ui/chip.ts +96 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +62 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +219 -0
- package/.nuxt/ui/dashboard-group.ts +3 -0
- package/.nuxt/ui/dashboard-navbar.ts +21 -0
- package/.nuxt/ui/dashboard-panel.ts +17 -0
- package/.nuxt/ui/dashboard-resize-handle.ts +3 -0
- package/.nuxt/ui/dashboard-search-button.ts +15 -0
- package/.nuxt/ui/dashboard-search.ts +13 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar.ts +37 -0
- package/.nuxt/ui/dashboard-toolbar.ts +7 -0
- package/.nuxt/ui/drawer.ts +149 -0
- package/.nuxt/ui/dropdown-menu.ts +220 -0
- package/.nuxt/ui/editor-drag-handle.ts +6 -0
- package/.nuxt/ui/editor-emoji-menu.ts +35 -0
- package/.nuxt/ui/editor-mention-menu.ts +35 -0
- package/.nuxt/ui/editor-suggestion-menu.ts +35 -0
- package/.nuxt/ui/editor-toolbar.ts +21 -0
- package/.nuxt/ui/editor.ts +35 -0
- package/.nuxt/ui/empty.ts +83 -0
- package/.nuxt/ui/error.ts +9 -0
- package/.nuxt/ui/field-group.ts +16 -0
- package/.nuxt/ui/file-upload.ts +290 -0
- package/.nuxt/ui/footer-columns.ts +28 -0
- package/.nuxt/ui/footer.ts +11 -0
- package/.nuxt/ui/form-field.ts +62 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/header.ts +25 -0
- package/.nuxt/ui/index.ts +109 -0
- package/.nuxt/ui/input-date.ts +337 -0
- package/.nuxt/ui/input-menu.ts +460 -0
- package/.nuxt/ui/input-number.ts +256 -0
- package/.nuxt/ui/input-tags.ts +310 -0
- package/.nuxt/ui/input-time.ts +336 -0
- package/.nuxt/ui/input.ts +289 -0
- package/.nuxt/ui/kbd.ts +195 -0
- package/.nuxt/ui/link.ts +22 -0
- package/.nuxt/ui/main.ts +3 -0
- package/.nuxt/ui/marquee.ts +66 -0
- package/.nuxt/ui/modal.ts +60 -0
- package/.nuxt/ui/navigation-menu.ts +512 -0
- package/.nuxt/ui/page-anchors.ts +30 -0
- package/.nuxt/ui/page-aside.ts +10 -0
- package/.nuxt/ui/page-body.ts +3 -0
- package/.nuxt/ui/page-card.ts +274 -0
- package/.nuxt/ui/page-columns.ts +3 -0
- package/.nuxt/ui/page-cta.ts +70 -0
- package/.nuxt/ui/page-feature.ts +34 -0
- package/.nuxt/ui/page-grid.ts +3 -0
- package/.nuxt/ui/page-header.ts +18 -0
- package/.nuxt/ui/page-hero.ts +44 -0
- package/.nuxt/ui/page-links.ts +25 -0
- package/.nuxt/ui/page-list.ts +8 -0
- package/.nuxt/ui/page-logos.ts +15 -0
- package/.nuxt/ui/page-section.ts +84 -0
- package/.nuxt/ui/page.ts +32 -0
- package/.nuxt/ui/pagination.ts +13 -0
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/pricing-plan.ts +101 -0
- package/.nuxt/ui/pricing-plans.ts +22 -0
- package/.nuxt/ui/pricing-table.ts +51 -0
- package/.nuxt/ui/progress.ts +297 -0
- package/.nuxt/ui/radio-group.ts +352 -0
- package/.nuxt/ui/scroll-area.ts +21 -0
- package/.nuxt/ui/select-menu.ts +361 -0
- package/.nuxt/ui/select.ts +348 -0
- package/.nuxt/ui/separator.ts +172 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +132 -0
- package/.nuxt/ui/slider.ts +171 -0
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +132 -0
- package/.nuxt/ui/table.ts +162 -0
- package/.nuxt/ui/tabs.ts +258 -0
- package/.nuxt/ui/textarea.ts +294 -0
- package/.nuxt/ui/timeline.ts +321 -0
- package/.nuxt/ui/toast.ts +74 -0
- package/.nuxt/ui/toaster.ts +91 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/.nuxt/ui/tree.ts +168 -0
- package/.nuxt/ui/user.ts +101 -0
- package/.nuxt/ui-image-component.ts +1 -0
- package/.nuxt/ui.css +154 -0
- package/app/app.config.ts +7 -0
- package/app/app.vue +3 -0
- package/app/assets/css/base.css +28 -0
- package/app/components/Var.vue +13 -0
- package/app/components/layout/LayoutDashboard.vue +102 -0
- package/app/components/overlay/modal/ModalActions.vue +25 -0
- package/app/components/overlay/modal/ModalConfirm.vue +25 -0
- package/app/components/overlay/modal/ModalRadioGroup.vue +37 -0
- package/app/components/u/UActions.vue +23 -0
- package/app/components/u/UCustomApp.vue +20 -0
- package/app/components/u/UField.vue +55 -0
- package/app/components/u/UImageWithFallback.vue +35 -0
- package/app/components/u/UInputDatePicker.vue +40 -0
- package/app/components/u/UInputDurationMinutes.vue +88 -0
- package/app/components/u/UTableCard.vue +16 -0
- package/app/composables/useConfirm.ts +16 -0
- package/app/composables/usePreventPageLeave.ts +31 -0
- package/app/composables/useRouteParamString.ts +22 -0
- package/app/composables/useTableColumns.tsx +68 -0
- package/app/composables/useToast.ts +40 -0
- package/app/composables/useTrpc.ts +3 -0
- package/app/error.vue +15 -0
- package/app/pages/index.vue +3 -0
- package/app/utils/form-field-translators.ts +41 -0
- package/app/utils/plugins.ts +95 -0
- package/app/utils/reactivity.ts +17 -0
- package/nuxt.config.ts +85 -0
- package/package.json +46 -0
- package/pnpm-workspace.yaml +5 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
const variant = [
|
|
10
|
+
"outline",
|
|
11
|
+
"soft",
|
|
12
|
+
"subtle",
|
|
13
|
+
"ghost",
|
|
14
|
+
"none"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
17
|
+
const color = [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"success",
|
|
21
|
+
"info",
|
|
22
|
+
"warning",
|
|
23
|
+
"error",
|
|
24
|
+
"neutral"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
"slots": {
|
|
29
|
+
"base": [
|
|
30
|
+
"relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
31
|
+
"transition-colors"
|
|
32
|
+
],
|
|
33
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
34
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
35
|
+
"leadingAvatar": "shrink-0",
|
|
36
|
+
"leadingAvatarSize": "",
|
|
37
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
38
|
+
"trailingIcon": "shrink-0 text-dimmed",
|
|
39
|
+
"value": "truncate pointer-events-none",
|
|
40
|
+
"placeholder": "truncate text-dimmed",
|
|
41
|
+
"arrow": "fill-default",
|
|
42
|
+
"content": "max-h-60 w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
|
|
43
|
+
"viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
44
|
+
"group": "p-1 isolate",
|
|
45
|
+
"empty": "text-center text-muted",
|
|
46
|
+
"label": "font-semibold text-highlighted",
|
|
47
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
48
|
+
"item": [
|
|
49
|
+
"group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
|
|
50
|
+
"transition-colors before:transition-colors"
|
|
51
|
+
],
|
|
52
|
+
"itemLeadingIcon": [
|
|
53
|
+
"shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
54
|
+
"transition-colors"
|
|
55
|
+
],
|
|
56
|
+
"itemLeadingAvatar": "shrink-0",
|
|
57
|
+
"itemLeadingAvatarSize": "",
|
|
58
|
+
"itemLeadingChip": "shrink-0",
|
|
59
|
+
"itemLeadingChipSize": "",
|
|
60
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
61
|
+
"itemTrailingIcon": "shrink-0",
|
|
62
|
+
"itemWrapper": "flex-1 flex flex-col min-w-0",
|
|
63
|
+
"itemLabel": "truncate",
|
|
64
|
+
"itemDescription": "truncate text-muted"
|
|
65
|
+
},
|
|
66
|
+
"variants": {
|
|
67
|
+
"fieldGroup": {
|
|
68
|
+
"horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
|
|
69
|
+
"vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
|
|
70
|
+
},
|
|
71
|
+
"size": {
|
|
72
|
+
"xs": {
|
|
73
|
+
"base": "px-2 py-1 text-xs gap-1",
|
|
74
|
+
"leading": "ps-2",
|
|
75
|
+
"trailing": "pe-2",
|
|
76
|
+
"leadingIcon": "size-4",
|
|
77
|
+
"leadingAvatarSize": "3xs",
|
|
78
|
+
"trailingIcon": "size-4",
|
|
79
|
+
"label": "p-1 text-[10px]/3 gap-1",
|
|
80
|
+
"item": "p-1 text-xs gap-1",
|
|
81
|
+
"itemLeadingIcon": "size-4",
|
|
82
|
+
"itemLeadingAvatarSize": "3xs",
|
|
83
|
+
"itemLeadingChip": "size-4",
|
|
84
|
+
"itemLeadingChipSize": "sm",
|
|
85
|
+
"itemTrailingIcon": "size-4",
|
|
86
|
+
"empty": "p-1 text-xs"
|
|
87
|
+
},
|
|
88
|
+
"sm": {
|
|
89
|
+
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
90
|
+
"leading": "ps-2.5",
|
|
91
|
+
"trailing": "pe-2.5",
|
|
92
|
+
"leadingIcon": "size-4",
|
|
93
|
+
"leadingAvatarSize": "3xs",
|
|
94
|
+
"trailingIcon": "size-4",
|
|
95
|
+
"label": "p-1.5 text-[10px]/3 gap-1.5",
|
|
96
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
97
|
+
"itemLeadingIcon": "size-4",
|
|
98
|
+
"itemLeadingAvatarSize": "3xs",
|
|
99
|
+
"itemLeadingChip": "size-4",
|
|
100
|
+
"itemLeadingChipSize": "sm",
|
|
101
|
+
"itemTrailingIcon": "size-4",
|
|
102
|
+
"empty": "p-1.5 text-xs"
|
|
103
|
+
},
|
|
104
|
+
"md": {
|
|
105
|
+
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
106
|
+
"leading": "ps-2.5",
|
|
107
|
+
"trailing": "pe-2.5",
|
|
108
|
+
"leadingIcon": "size-5",
|
|
109
|
+
"leadingAvatarSize": "2xs",
|
|
110
|
+
"trailingIcon": "size-5",
|
|
111
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
112
|
+
"item": "p-1.5 text-sm gap-1.5",
|
|
113
|
+
"itemLeadingIcon": "size-5",
|
|
114
|
+
"itemLeadingAvatarSize": "2xs",
|
|
115
|
+
"itemLeadingChip": "size-5",
|
|
116
|
+
"itemLeadingChipSize": "md",
|
|
117
|
+
"itemTrailingIcon": "size-5",
|
|
118
|
+
"empty": "p-1.5 text-sm"
|
|
119
|
+
},
|
|
120
|
+
"lg": {
|
|
121
|
+
"base": "px-3 py-2 text-sm gap-2",
|
|
122
|
+
"leading": "ps-3",
|
|
123
|
+
"trailing": "pe-3",
|
|
124
|
+
"leadingIcon": "size-5",
|
|
125
|
+
"leadingAvatarSize": "2xs",
|
|
126
|
+
"trailingIcon": "size-5",
|
|
127
|
+
"label": "p-2 text-xs gap-2",
|
|
128
|
+
"item": "p-2 text-sm gap-2",
|
|
129
|
+
"itemLeadingIcon": "size-5",
|
|
130
|
+
"itemLeadingAvatarSize": "2xs",
|
|
131
|
+
"itemLeadingChip": "size-5",
|
|
132
|
+
"itemLeadingChipSize": "md",
|
|
133
|
+
"itemTrailingIcon": "size-5",
|
|
134
|
+
"empty": "p-2 text-sm"
|
|
135
|
+
},
|
|
136
|
+
"xl": {
|
|
137
|
+
"base": "px-3 py-2 text-base gap-2",
|
|
138
|
+
"leading": "ps-3",
|
|
139
|
+
"trailing": "pe-3",
|
|
140
|
+
"leadingIcon": "size-6",
|
|
141
|
+
"leadingAvatarSize": "xs",
|
|
142
|
+
"trailingIcon": "size-6",
|
|
143
|
+
"label": "p-2 text-sm gap-2",
|
|
144
|
+
"item": "p-2 text-base gap-2",
|
|
145
|
+
"itemLeadingIcon": "size-6",
|
|
146
|
+
"itemLeadingAvatarSize": "xs",
|
|
147
|
+
"itemLeadingChip": "size-6",
|
|
148
|
+
"itemLeadingChipSize": "lg",
|
|
149
|
+
"itemTrailingIcon": "size-6",
|
|
150
|
+
"empty": "p-2 text-base"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"variant": {
|
|
154
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
155
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
156
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
157
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
158
|
+
"none": "text-highlighted bg-transparent"
|
|
159
|
+
},
|
|
160
|
+
"color": {
|
|
161
|
+
"primary": "",
|
|
162
|
+
"secondary": "",
|
|
163
|
+
"success": "",
|
|
164
|
+
"info": "",
|
|
165
|
+
"warning": "",
|
|
166
|
+
"error": "",
|
|
167
|
+
"neutral": ""
|
|
168
|
+
},
|
|
169
|
+
"leading": {
|
|
170
|
+
"true": ""
|
|
171
|
+
},
|
|
172
|
+
"trailing": {
|
|
173
|
+
"true": ""
|
|
174
|
+
},
|
|
175
|
+
"loading": {
|
|
176
|
+
"true": ""
|
|
177
|
+
},
|
|
178
|
+
"highlight": {
|
|
179
|
+
"true": ""
|
|
180
|
+
},
|
|
181
|
+
"type": {
|
|
182
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"compoundVariants": [
|
|
186
|
+
{
|
|
187
|
+
"color": "primary" as typeof color[number],
|
|
188
|
+
"variant": [
|
|
189
|
+
"outline" as typeof variant[number],
|
|
190
|
+
"subtle" as typeof variant[number]
|
|
191
|
+
],
|
|
192
|
+
"class": "focus:ring-2 focus:ring-inset focus:ring-primary"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"color": "secondary" as typeof color[number],
|
|
196
|
+
"variant": [
|
|
197
|
+
"outline" as typeof variant[number],
|
|
198
|
+
"subtle" as typeof variant[number]
|
|
199
|
+
],
|
|
200
|
+
"class": "focus:ring-2 focus:ring-inset focus:ring-secondary"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"color": "success" as typeof color[number],
|
|
204
|
+
"variant": [
|
|
205
|
+
"outline" as typeof variant[number],
|
|
206
|
+
"subtle" as typeof variant[number]
|
|
207
|
+
],
|
|
208
|
+
"class": "focus:ring-2 focus:ring-inset focus:ring-success"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"color": "info" as typeof color[number],
|
|
212
|
+
"variant": [
|
|
213
|
+
"outline" as typeof variant[number],
|
|
214
|
+
"subtle" as typeof variant[number]
|
|
215
|
+
],
|
|
216
|
+
"class": "focus:ring-2 focus:ring-inset focus:ring-info"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"color": "warning" as typeof color[number],
|
|
220
|
+
"variant": [
|
|
221
|
+
"outline" as typeof variant[number],
|
|
222
|
+
"subtle" as typeof variant[number]
|
|
223
|
+
],
|
|
224
|
+
"class": "focus:ring-2 focus:ring-inset focus:ring-warning"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"color": "error" as typeof color[number],
|
|
228
|
+
"variant": [
|
|
229
|
+
"outline" as typeof variant[number],
|
|
230
|
+
"subtle" as typeof variant[number]
|
|
231
|
+
],
|
|
232
|
+
"class": "focus:ring-2 focus:ring-inset focus:ring-error"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"color": "primary" as typeof color[number],
|
|
236
|
+
"highlight": true,
|
|
237
|
+
"class": "ring ring-inset ring-primary"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"color": "secondary" as typeof color[number],
|
|
241
|
+
"highlight": true,
|
|
242
|
+
"class": "ring ring-inset ring-secondary"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"color": "success" as typeof color[number],
|
|
246
|
+
"highlight": true,
|
|
247
|
+
"class": "ring ring-inset ring-success"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"color": "info" as typeof color[number],
|
|
251
|
+
"highlight": true,
|
|
252
|
+
"class": "ring ring-inset ring-info"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"color": "warning" as typeof color[number],
|
|
256
|
+
"highlight": true,
|
|
257
|
+
"class": "ring ring-inset ring-warning"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"color": "error" as typeof color[number],
|
|
261
|
+
"highlight": true,
|
|
262
|
+
"class": "ring ring-inset ring-error"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"color": "neutral" as typeof color[number],
|
|
266
|
+
"variant": [
|
|
267
|
+
"outline" as typeof variant[number],
|
|
268
|
+
"subtle" as typeof variant[number]
|
|
269
|
+
],
|
|
270
|
+
"class": "focus:ring-2 focus:ring-inset focus:ring-inverted"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"color": "neutral" as typeof color[number],
|
|
274
|
+
"highlight": true,
|
|
275
|
+
"class": "ring ring-inset ring-inverted"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"leading": true,
|
|
279
|
+
"size": "xs" as typeof size[number],
|
|
280
|
+
"class": "ps-7"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"leading": true,
|
|
284
|
+
"size": "sm" as typeof size[number],
|
|
285
|
+
"class": "ps-8"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"leading": true,
|
|
289
|
+
"size": "md" as typeof size[number],
|
|
290
|
+
"class": "ps-9"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"leading": true,
|
|
294
|
+
"size": "lg" as typeof size[number],
|
|
295
|
+
"class": "ps-10"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"leading": true,
|
|
299
|
+
"size": "xl" as typeof size[number],
|
|
300
|
+
"class": "ps-11"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"trailing": true,
|
|
304
|
+
"size": "xs" as typeof size[number],
|
|
305
|
+
"class": "pe-7"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"trailing": true,
|
|
309
|
+
"size": "sm" as typeof size[number],
|
|
310
|
+
"class": "pe-8"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"trailing": true,
|
|
314
|
+
"size": "md" as typeof size[number],
|
|
315
|
+
"class": "pe-9"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"trailing": true,
|
|
319
|
+
"size": "lg" as typeof size[number],
|
|
320
|
+
"class": "pe-10"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"trailing": true,
|
|
324
|
+
"size": "xl" as typeof size[number],
|
|
325
|
+
"class": "pe-11"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"loading": true,
|
|
329
|
+
"leading": true,
|
|
330
|
+
"class": {
|
|
331
|
+
"leadingIcon": "animate-spin"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"loading": true,
|
|
336
|
+
"leading": false,
|
|
337
|
+
"trailing": true,
|
|
338
|
+
"class": {
|
|
339
|
+
"trailingIcon": "animate-spin"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"defaultVariants": {
|
|
344
|
+
"size": "md" as typeof size[number],
|
|
345
|
+
"color": "primary" as typeof color[number],
|
|
346
|
+
"variant": "outline" as typeof variant[number]
|
|
347
|
+
}
|
|
348
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const orientation = [
|
|
12
|
+
"horizontal",
|
|
13
|
+
"vertical"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const size = [
|
|
17
|
+
"xs",
|
|
18
|
+
"sm",
|
|
19
|
+
"md",
|
|
20
|
+
"lg",
|
|
21
|
+
"xl"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
const type = [
|
|
25
|
+
"solid",
|
|
26
|
+
"dashed",
|
|
27
|
+
"dotted"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "flex items-center align-center text-center",
|
|
33
|
+
"border": "",
|
|
34
|
+
"container": "font-medium text-default flex",
|
|
35
|
+
"icon": "shrink-0 size-5",
|
|
36
|
+
"avatar": "shrink-0",
|
|
37
|
+
"avatarSize": "2xs",
|
|
38
|
+
"label": "text-sm"
|
|
39
|
+
},
|
|
40
|
+
"variants": {
|
|
41
|
+
"color": {
|
|
42
|
+
"primary": {
|
|
43
|
+
"border": "border-primary"
|
|
44
|
+
},
|
|
45
|
+
"secondary": {
|
|
46
|
+
"border": "border-secondary"
|
|
47
|
+
},
|
|
48
|
+
"success": {
|
|
49
|
+
"border": "border-success"
|
|
50
|
+
},
|
|
51
|
+
"info": {
|
|
52
|
+
"border": "border-info"
|
|
53
|
+
},
|
|
54
|
+
"warning": {
|
|
55
|
+
"border": "border-warning"
|
|
56
|
+
},
|
|
57
|
+
"error": {
|
|
58
|
+
"border": "border-error"
|
|
59
|
+
},
|
|
60
|
+
"neutral": {
|
|
61
|
+
"border": "border-default"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"orientation": {
|
|
65
|
+
"horizontal": {
|
|
66
|
+
"root": "w-full flex-row",
|
|
67
|
+
"border": "w-full",
|
|
68
|
+
"container": "mx-3 whitespace-nowrap"
|
|
69
|
+
},
|
|
70
|
+
"vertical": {
|
|
71
|
+
"root": "h-full flex-col",
|
|
72
|
+
"border": "h-full",
|
|
73
|
+
"container": "my-2"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"size": {
|
|
77
|
+
"xs": "",
|
|
78
|
+
"sm": "",
|
|
79
|
+
"md": "",
|
|
80
|
+
"lg": "",
|
|
81
|
+
"xl": ""
|
|
82
|
+
},
|
|
83
|
+
"type": {
|
|
84
|
+
"solid": {
|
|
85
|
+
"border": "border-solid"
|
|
86
|
+
},
|
|
87
|
+
"dashed": {
|
|
88
|
+
"border": "border-dashed"
|
|
89
|
+
},
|
|
90
|
+
"dotted": {
|
|
91
|
+
"border": "border-dotted"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"compoundVariants": [
|
|
96
|
+
{
|
|
97
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
98
|
+
"size": "xs" as typeof size[number],
|
|
99
|
+
"class": {
|
|
100
|
+
"border": "border-t"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
105
|
+
"size": "sm" as typeof size[number],
|
|
106
|
+
"class": {
|
|
107
|
+
"border": "border-t-[2px]"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
112
|
+
"size": "md" as typeof size[number],
|
|
113
|
+
"class": {
|
|
114
|
+
"border": "border-t-[3px]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
|
+
"size": "lg" as typeof size[number],
|
|
120
|
+
"class": {
|
|
121
|
+
"border": "border-t-[4px]"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
126
|
+
"size": "xl" as typeof size[number],
|
|
127
|
+
"class": {
|
|
128
|
+
"border": "border-t-[5px]"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
133
|
+
"size": "xs" as typeof size[number],
|
|
134
|
+
"class": {
|
|
135
|
+
"border": "border-s"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
140
|
+
"size": "sm" as typeof size[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"border": "border-s-[2px]"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
147
|
+
"size": "md" as typeof size[number],
|
|
148
|
+
"class": {
|
|
149
|
+
"border": "border-s-[3px]"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
154
|
+
"size": "lg" as typeof size[number],
|
|
155
|
+
"class": {
|
|
156
|
+
"border": "border-s-[4px]"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
161
|
+
"size": "xl" as typeof size[number],
|
|
162
|
+
"class": {
|
|
163
|
+
"border": "border-s-[5px]"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"defaultVariants": {
|
|
168
|
+
"color": "neutral" as typeof color[number],
|
|
169
|
+
"size": "xs" as typeof size[number],
|
|
170
|
+
"type": "solid" as typeof type[number]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
const side = [
|
|
2
|
+
"top",
|
|
3
|
+
"right",
|
|
4
|
+
"bottom",
|
|
5
|
+
"left"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
"slots": {
|
|
10
|
+
"overlay": "fixed inset-0 bg-elevated/75",
|
|
11
|
+
"content": "fixed bg-default divide-y divide-default sm:ring ring-default sm:shadow-lg flex flex-col focus:outline-none",
|
|
12
|
+
"header": "flex items-center gap-1.5 p-4 sm:px-6 min-h-16",
|
|
13
|
+
"wrapper": "",
|
|
14
|
+
"body": "flex-1 overflow-y-auto p-4 sm:p-6",
|
|
15
|
+
"footer": "flex items-center gap-1.5 p-4 sm:px-6",
|
|
16
|
+
"title": "text-highlighted font-semibold",
|
|
17
|
+
"description": "mt-1 text-muted text-sm",
|
|
18
|
+
"close": "absolute top-4 end-4"
|
|
19
|
+
},
|
|
20
|
+
"variants": {
|
|
21
|
+
"side": {
|
|
22
|
+
"top": {
|
|
23
|
+
"content": ""
|
|
24
|
+
},
|
|
25
|
+
"right": {
|
|
26
|
+
"content": "max-w-md"
|
|
27
|
+
},
|
|
28
|
+
"bottom": {
|
|
29
|
+
"content": ""
|
|
30
|
+
},
|
|
31
|
+
"left": {
|
|
32
|
+
"content": "max-w-md"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"inset": {
|
|
36
|
+
"true": {
|
|
37
|
+
"content": "rounded-lg"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"transition": {
|
|
41
|
+
"true": {
|
|
42
|
+
"overlay": "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"compoundVariants": [
|
|
47
|
+
{
|
|
48
|
+
"side": "top" as typeof side[number],
|
|
49
|
+
"inset": true,
|
|
50
|
+
"class": {
|
|
51
|
+
"content": "max-h-[calc(100%-2rem)] inset-x-4 top-4"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"side": "top" as typeof side[number],
|
|
56
|
+
"inset": false,
|
|
57
|
+
"class": {
|
|
58
|
+
"content": "max-h-full inset-x-0 top-0"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"side": "right" as typeof side[number],
|
|
63
|
+
"inset": true,
|
|
64
|
+
"class": {
|
|
65
|
+
"content": "w-[calc(100%-2rem)] inset-y-4 right-4"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"side": "right" as typeof side[number],
|
|
70
|
+
"inset": false,
|
|
71
|
+
"class": {
|
|
72
|
+
"content": "w-full inset-y-0 right-0"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"side": "bottom" as typeof side[number],
|
|
77
|
+
"inset": true,
|
|
78
|
+
"class": {
|
|
79
|
+
"content": "max-h-[calc(100%-2rem)] inset-x-4 bottom-4"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"side": "bottom" as typeof side[number],
|
|
84
|
+
"inset": false,
|
|
85
|
+
"class": {
|
|
86
|
+
"content": "max-h-full inset-x-0 bottom-0"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"side": "left" as typeof side[number],
|
|
91
|
+
"inset": true,
|
|
92
|
+
"class": {
|
|
93
|
+
"content": "w-[calc(100%-2rem)] inset-y-4 left-4"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"side": "left" as typeof side[number],
|
|
98
|
+
"inset": false,
|
|
99
|
+
"class": {
|
|
100
|
+
"content": "w-full inset-y-0 left-0"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"transition": true,
|
|
105
|
+
"side": "top" as typeof side[number],
|
|
106
|
+
"class": {
|
|
107
|
+
"content": "data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"transition": true,
|
|
112
|
+
"side": "right" as typeof side[number],
|
|
113
|
+
"class": {
|
|
114
|
+
"content": "data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"transition": true,
|
|
119
|
+
"side": "bottom" as typeof side[number],
|
|
120
|
+
"class": {
|
|
121
|
+
"content": "data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"transition": true,
|
|
126
|
+
"side": "left" as typeof side[number],
|
|
127
|
+
"class": {
|
|
128
|
+
"content": "data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|