@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,256 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
const variant = [
|
|
20
|
+
"outline",
|
|
21
|
+
"soft",
|
|
22
|
+
"subtle",
|
|
23
|
+
"ghost",
|
|
24
|
+
"none"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
27
|
+
const orientation = [
|
|
28
|
+
"horizontal",
|
|
29
|
+
"vertical"
|
|
30
|
+
] as const
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
"slots": {
|
|
34
|
+
"root": "relative inline-flex items-center",
|
|
35
|
+
"base": [
|
|
36
|
+
"w-full rounded-md border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
37
|
+
"transition-colors"
|
|
38
|
+
],
|
|
39
|
+
"increment": "absolute flex items-center",
|
|
40
|
+
"decrement": "absolute flex items-center"
|
|
41
|
+
},
|
|
42
|
+
"variants": {
|
|
43
|
+
"fieldGroup": {
|
|
44
|
+
"horizontal": {
|
|
45
|
+
"root": "group has-focus-visible:z-[1]",
|
|
46
|
+
"base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
|
|
47
|
+
},
|
|
48
|
+
"vertical": {
|
|
49
|
+
"root": "group has-focus-visible:z-[1]",
|
|
50
|
+
"base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"color": {
|
|
54
|
+
"primary": "",
|
|
55
|
+
"secondary": "",
|
|
56
|
+
"success": "",
|
|
57
|
+
"info": "",
|
|
58
|
+
"warning": "",
|
|
59
|
+
"error": "",
|
|
60
|
+
"neutral": ""
|
|
61
|
+
},
|
|
62
|
+
"size": {
|
|
63
|
+
"xs": "px-2 py-1 text-xs gap-1",
|
|
64
|
+
"sm": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
65
|
+
"md": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
66
|
+
"lg": "px-3 py-2 text-sm gap-2",
|
|
67
|
+
"xl": "px-3 py-2 text-base gap-2"
|
|
68
|
+
},
|
|
69
|
+
"variant": {
|
|
70
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
71
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
72
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
73
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
74
|
+
"none": "text-highlighted bg-transparent"
|
|
75
|
+
},
|
|
76
|
+
"disabled": {
|
|
77
|
+
"true": {
|
|
78
|
+
"increment": "opacity-75 cursor-not-allowed",
|
|
79
|
+
"decrement": "opacity-75 cursor-not-allowed"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"orientation": {
|
|
83
|
+
"horizontal": {
|
|
84
|
+
"base": "text-center",
|
|
85
|
+
"increment": "inset-y-0 end-0 pe-1",
|
|
86
|
+
"decrement": "inset-y-0 start-0 ps-1"
|
|
87
|
+
},
|
|
88
|
+
"vertical": {
|
|
89
|
+
"increment": "top-0 end-0 pe-1 [&>button]:py-0 scale-80",
|
|
90
|
+
"decrement": "bottom-0 end-0 pe-1 [&>button]:py-0 scale-80"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"highlight": {
|
|
94
|
+
"true": ""
|
|
95
|
+
},
|
|
96
|
+
"increment": {
|
|
97
|
+
"false": ""
|
|
98
|
+
},
|
|
99
|
+
"decrement": {
|
|
100
|
+
"false": ""
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"compoundVariants": [
|
|
104
|
+
{
|
|
105
|
+
"color": "primary" as typeof color[number],
|
|
106
|
+
"variant": [
|
|
107
|
+
"outline" as typeof variant[number],
|
|
108
|
+
"subtle" as typeof variant[number]
|
|
109
|
+
],
|
|
110
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"color": "secondary" as typeof color[number],
|
|
114
|
+
"variant": [
|
|
115
|
+
"outline" as typeof variant[number],
|
|
116
|
+
"subtle" as typeof variant[number]
|
|
117
|
+
],
|
|
118
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"color": "success" as typeof color[number],
|
|
122
|
+
"variant": [
|
|
123
|
+
"outline" as typeof variant[number],
|
|
124
|
+
"subtle" as typeof variant[number]
|
|
125
|
+
],
|
|
126
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"color": "info" as typeof color[number],
|
|
130
|
+
"variant": [
|
|
131
|
+
"outline" as typeof variant[number],
|
|
132
|
+
"subtle" as typeof variant[number]
|
|
133
|
+
],
|
|
134
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"color": "warning" as typeof color[number],
|
|
138
|
+
"variant": [
|
|
139
|
+
"outline" as typeof variant[number],
|
|
140
|
+
"subtle" as typeof variant[number]
|
|
141
|
+
],
|
|
142
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"color": "error" as typeof color[number],
|
|
146
|
+
"variant": [
|
|
147
|
+
"outline" as typeof variant[number],
|
|
148
|
+
"subtle" as typeof variant[number]
|
|
149
|
+
],
|
|
150
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"color": "primary" as typeof color[number],
|
|
154
|
+
"highlight": true,
|
|
155
|
+
"class": "ring ring-inset ring-primary"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"color": "secondary" as typeof color[number],
|
|
159
|
+
"highlight": true,
|
|
160
|
+
"class": "ring ring-inset ring-secondary"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"color": "success" as typeof color[number],
|
|
164
|
+
"highlight": true,
|
|
165
|
+
"class": "ring ring-inset ring-success"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"color": "info" as typeof color[number],
|
|
169
|
+
"highlight": true,
|
|
170
|
+
"class": "ring ring-inset ring-info"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"color": "warning" as typeof color[number],
|
|
174
|
+
"highlight": true,
|
|
175
|
+
"class": "ring ring-inset ring-warning"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"color": "error" as typeof color[number],
|
|
179
|
+
"highlight": true,
|
|
180
|
+
"class": "ring ring-inset ring-error"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"color": "neutral" as typeof color[number],
|
|
184
|
+
"variant": [
|
|
185
|
+
"outline" as typeof variant[number],
|
|
186
|
+
"subtle" as typeof variant[number]
|
|
187
|
+
],
|
|
188
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"color": "neutral" as typeof color[number],
|
|
192
|
+
"highlight": true,
|
|
193
|
+
"class": "ring ring-inset ring-inverted"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
197
|
+
"decrement": false,
|
|
198
|
+
"class": "text-start"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"decrement": true,
|
|
202
|
+
"size": "xs" as typeof size[number],
|
|
203
|
+
"class": "ps-7"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"decrement": true,
|
|
207
|
+
"size": "sm" as typeof size[number],
|
|
208
|
+
"class": "ps-8"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"decrement": true,
|
|
212
|
+
"size": "md" as typeof size[number],
|
|
213
|
+
"class": "ps-9"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"decrement": true,
|
|
217
|
+
"size": "lg" as typeof size[number],
|
|
218
|
+
"class": "ps-10"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"decrement": true,
|
|
222
|
+
"size": "xl" as typeof size[number],
|
|
223
|
+
"class": "ps-11"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"increment": true,
|
|
227
|
+
"size": "xs" as typeof size[number],
|
|
228
|
+
"class": "pe-7"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"increment": true,
|
|
232
|
+
"size": "sm" as typeof size[number],
|
|
233
|
+
"class": "pe-8"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"increment": true,
|
|
237
|
+
"size": "md" as typeof size[number],
|
|
238
|
+
"class": "pe-9"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"increment": true,
|
|
242
|
+
"size": "lg" as typeof size[number],
|
|
243
|
+
"class": "pe-10"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"increment": true,
|
|
247
|
+
"size": "xl" as typeof size[number],
|
|
248
|
+
"class": "pe-11"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"defaultVariants": {
|
|
252
|
+
"size": "md" as typeof size[number],
|
|
253
|
+
"color": "primary" as typeof color[number],
|
|
254
|
+
"variant": "outline" as typeof variant[number]
|
|
255
|
+
}
|
|
256
|
+
}
|
|
@@ -0,0 +1,310 @@
|
|
|
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
|
+
"root": [
|
|
30
|
+
"relative inline-flex items-center",
|
|
31
|
+
"flex-wrap"
|
|
32
|
+
],
|
|
33
|
+
"base": [
|
|
34
|
+
"rounded-md",
|
|
35
|
+
"transition-colors"
|
|
36
|
+
],
|
|
37
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
38
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
39
|
+
"leadingAvatar": "shrink-0",
|
|
40
|
+
"leadingAvatarSize": "",
|
|
41
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
42
|
+
"trailingIcon": "shrink-0 text-dimmed",
|
|
43
|
+
"item": "px-1.5 py-0.5 rounded-sm font-medium inline-flex items-center gap-0.5 ring ring-inset ring-accented bg-elevated text-default data-disabled:cursor-not-allowed data-disabled:opacity-75 wrap-anywhere data-[state=\"active\"]:bg-accented",
|
|
44
|
+
"itemText": "",
|
|
45
|
+
"itemDelete": [
|
|
46
|
+
"inline-flex items-center rounded-xs text-dimmed hover:text-default hover:bg-accented/75 disabled:pointer-events-none",
|
|
47
|
+
"transition-colors"
|
|
48
|
+
],
|
|
49
|
+
"itemDeleteIcon": "shrink-0",
|
|
50
|
+
"input": "flex-1 border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
51
|
+
},
|
|
52
|
+
"variants": {
|
|
53
|
+
"fieldGroup": {
|
|
54
|
+
"horizontal": {
|
|
55
|
+
"root": "group has-focus-visible:z-[1]",
|
|
56
|
+
"base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
|
|
57
|
+
},
|
|
58
|
+
"vertical": {
|
|
59
|
+
"root": "group has-focus-visible:z-[1]",
|
|
60
|
+
"base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"size": {
|
|
64
|
+
"xs": {
|
|
65
|
+
"base": "px-2 py-1 text-xs gap-1",
|
|
66
|
+
"leading": "ps-2",
|
|
67
|
+
"trailing": "pe-2",
|
|
68
|
+
"leadingIcon": "size-4",
|
|
69
|
+
"leadingAvatarSize": "3xs",
|
|
70
|
+
"trailingIcon": "size-4",
|
|
71
|
+
"item": "text-[10px]/3",
|
|
72
|
+
"itemDeleteIcon": "size-3"
|
|
73
|
+
},
|
|
74
|
+
"sm": {
|
|
75
|
+
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
76
|
+
"leading": "ps-2.5",
|
|
77
|
+
"trailing": "pe-2.5",
|
|
78
|
+
"leadingIcon": "size-4",
|
|
79
|
+
"leadingAvatarSize": "3xs",
|
|
80
|
+
"trailingIcon": "size-4",
|
|
81
|
+
"item": "text-[10px]/3",
|
|
82
|
+
"itemDeleteIcon": "size-3"
|
|
83
|
+
},
|
|
84
|
+
"md": {
|
|
85
|
+
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
86
|
+
"leading": "ps-2.5",
|
|
87
|
+
"trailing": "pe-2.5",
|
|
88
|
+
"leadingIcon": "size-5",
|
|
89
|
+
"leadingAvatarSize": "2xs",
|
|
90
|
+
"trailingIcon": "size-5",
|
|
91
|
+
"item": "text-xs",
|
|
92
|
+
"itemDeleteIcon": "size-3.5"
|
|
93
|
+
},
|
|
94
|
+
"lg": {
|
|
95
|
+
"base": "px-3 py-2 text-sm gap-2",
|
|
96
|
+
"leading": "ps-3",
|
|
97
|
+
"trailing": "pe-3",
|
|
98
|
+
"leadingIcon": "size-5",
|
|
99
|
+
"leadingAvatarSize": "2xs",
|
|
100
|
+
"trailingIcon": "size-5",
|
|
101
|
+
"item": "text-xs",
|
|
102
|
+
"itemDeleteIcon": "size-3.5"
|
|
103
|
+
},
|
|
104
|
+
"xl": {
|
|
105
|
+
"base": "px-3 py-2 text-base gap-2",
|
|
106
|
+
"leading": "ps-3",
|
|
107
|
+
"trailing": "pe-3",
|
|
108
|
+
"leadingIcon": "size-6",
|
|
109
|
+
"leadingAvatarSize": "xs",
|
|
110
|
+
"trailingIcon": "size-6",
|
|
111
|
+
"item": "text-sm",
|
|
112
|
+
"itemDeleteIcon": "size-4"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"variant": {
|
|
116
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
117
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated has-focus:bg-elevated disabled:bg-elevated/50",
|
|
118
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
119
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated has-focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
120
|
+
"none": "text-highlighted bg-transparent"
|
|
121
|
+
},
|
|
122
|
+
"color": {
|
|
123
|
+
"primary": "",
|
|
124
|
+
"secondary": "",
|
|
125
|
+
"success": "",
|
|
126
|
+
"info": "",
|
|
127
|
+
"warning": "",
|
|
128
|
+
"error": "",
|
|
129
|
+
"neutral": ""
|
|
130
|
+
},
|
|
131
|
+
"leading": {
|
|
132
|
+
"true": ""
|
|
133
|
+
},
|
|
134
|
+
"trailing": {
|
|
135
|
+
"true": ""
|
|
136
|
+
},
|
|
137
|
+
"loading": {
|
|
138
|
+
"true": ""
|
|
139
|
+
},
|
|
140
|
+
"highlight": {
|
|
141
|
+
"true": ""
|
|
142
|
+
},
|
|
143
|
+
"type": {
|
|
144
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"compoundVariants": [
|
|
148
|
+
{
|
|
149
|
+
"color": "primary" as typeof color[number],
|
|
150
|
+
"variant": [
|
|
151
|
+
"outline" as typeof variant[number],
|
|
152
|
+
"subtle" as typeof variant[number]
|
|
153
|
+
],
|
|
154
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-primary"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"color": "secondary" as typeof color[number],
|
|
158
|
+
"variant": [
|
|
159
|
+
"outline" as typeof variant[number],
|
|
160
|
+
"subtle" as typeof variant[number]
|
|
161
|
+
],
|
|
162
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-secondary"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"color": "success" as typeof color[number],
|
|
166
|
+
"variant": [
|
|
167
|
+
"outline" as typeof variant[number],
|
|
168
|
+
"subtle" as typeof variant[number]
|
|
169
|
+
],
|
|
170
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-success"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"color": "info" as typeof color[number],
|
|
174
|
+
"variant": [
|
|
175
|
+
"outline" as typeof variant[number],
|
|
176
|
+
"subtle" as typeof variant[number]
|
|
177
|
+
],
|
|
178
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-info"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"color": "warning" as typeof color[number],
|
|
182
|
+
"variant": [
|
|
183
|
+
"outline" as typeof variant[number],
|
|
184
|
+
"subtle" as typeof variant[number]
|
|
185
|
+
],
|
|
186
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-warning"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"color": "error" as typeof color[number],
|
|
190
|
+
"variant": [
|
|
191
|
+
"outline" as typeof variant[number],
|
|
192
|
+
"subtle" as typeof variant[number]
|
|
193
|
+
],
|
|
194
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-error"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"color": "primary" as typeof color[number],
|
|
198
|
+
"highlight": true,
|
|
199
|
+
"class": "ring ring-inset ring-primary"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"color": "secondary" as typeof color[number],
|
|
203
|
+
"highlight": true,
|
|
204
|
+
"class": "ring ring-inset ring-secondary"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"color": "success" as typeof color[number],
|
|
208
|
+
"highlight": true,
|
|
209
|
+
"class": "ring ring-inset ring-success"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"color": "info" as typeof color[number],
|
|
213
|
+
"highlight": true,
|
|
214
|
+
"class": "ring ring-inset ring-info"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"color": "warning" as typeof color[number],
|
|
218
|
+
"highlight": true,
|
|
219
|
+
"class": "ring ring-inset ring-warning"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"color": "error" as typeof color[number],
|
|
223
|
+
"highlight": true,
|
|
224
|
+
"class": "ring ring-inset ring-error"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"color": "neutral" as typeof color[number],
|
|
228
|
+
"variant": [
|
|
229
|
+
"outline" as typeof variant[number],
|
|
230
|
+
"subtle" as typeof variant[number]
|
|
231
|
+
],
|
|
232
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-inverted"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"color": "neutral" as typeof color[number],
|
|
236
|
+
"highlight": true,
|
|
237
|
+
"class": "ring ring-inset ring-inverted"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"leading": true,
|
|
241
|
+
"size": "xs" as typeof size[number],
|
|
242
|
+
"class": "ps-7"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"leading": true,
|
|
246
|
+
"size": "sm" as typeof size[number],
|
|
247
|
+
"class": "ps-8"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"leading": true,
|
|
251
|
+
"size": "md" as typeof size[number],
|
|
252
|
+
"class": "ps-9"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"leading": true,
|
|
256
|
+
"size": "lg" as typeof size[number],
|
|
257
|
+
"class": "ps-10"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"leading": true,
|
|
261
|
+
"size": "xl" as typeof size[number],
|
|
262
|
+
"class": "ps-11"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"trailing": true,
|
|
266
|
+
"size": "xs" as typeof size[number],
|
|
267
|
+
"class": "pe-7"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"trailing": true,
|
|
271
|
+
"size": "sm" as typeof size[number],
|
|
272
|
+
"class": "pe-8"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"trailing": true,
|
|
276
|
+
"size": "md" as typeof size[number],
|
|
277
|
+
"class": "pe-9"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"trailing": true,
|
|
281
|
+
"size": "lg" as typeof size[number],
|
|
282
|
+
"class": "pe-10"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"trailing": true,
|
|
286
|
+
"size": "xl" as typeof size[number],
|
|
287
|
+
"class": "pe-11"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"loading": true,
|
|
291
|
+
"leading": true,
|
|
292
|
+
"class": {
|
|
293
|
+
"leadingIcon": "animate-spin"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"loading": true,
|
|
298
|
+
"leading": false,
|
|
299
|
+
"trailing": true,
|
|
300
|
+
"class": {
|
|
301
|
+
"trailingIcon": "animate-spin"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"defaultVariants": {
|
|
306
|
+
"size": "md" as typeof size[number],
|
|
307
|
+
"color": "primary" as typeof color[number],
|
|
308
|
+
"variant": "outline" as typeof variant[number]
|
|
309
|
+
}
|
|
310
|
+
}
|