@falcondev-oss/nuxt-layers-base 0.1.0 → 0.2.2
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/LICENSE +21 -0
- package/app/assets/css/utilities.css +3 -0
- package/app/components/Define.vue +13 -0
- package/app/components/layout/LayoutDashboard.vue +1 -1
- package/app/components/u/UField.vue +17 -6
- package/app/components/u/UForm.vue +90 -0
- package/app/components/u/UInputDurationMinutes.vue +1 -1
- package/app/composables/useTableColumns.tsx +1 -1
- package/app/composables/useToast.ts +3 -3
- package/app/utils/debug.ts +48 -0
- package/app/utils/files.ts +22 -0
- package/app/utils/plugins.ts +45 -6
- package/package.json +19 -3
- package/server/plugins/error.ts +20 -0
- package/server/utils/error.ts +24 -0
- package/shared/types/helpers.ts +27 -0
- package/shared/utils/helpers.ts +3 -0
- package/.nuxt/app.config.mjs +0 -317
- package/.nuxt/components.d.ts +0 -332
- package/.nuxt/imports.d.ts +0 -61
- package/.nuxt/manifest/meta/24fb5e89-93fb-44cb-bbff-2a13f165c1e8.json +0 -1
- package/.nuxt/nuxt-icon-client-bundle.mjs +0 -1
- package/.nuxt/nuxt-icon-server-bundle.mjs +0 -14
- package/.nuxt/nuxt.d.ts +0 -24
- package/.nuxt/nuxt.node.d.ts +0 -14
- package/.nuxt/nuxt.shared.d.ts +0 -5
- package/.nuxt/schema/nuxt.schema.d.ts +0 -210
- package/.nuxt/schema/nuxt.schema.json +0 -263
- package/.nuxt/tsconfig.app.json +0 -217
- package/.nuxt/tsconfig.json +0 -219
- package/.nuxt/tsconfig.node.json +0 -114
- package/.nuxt/tsconfig.server.json +0 -140
- package/.nuxt/tsconfig.shared.json +0 -139
- package/.nuxt/types/app.config.d.ts +0 -331
- package/.nuxt/types/build.d.ts +0 -24
- package/.nuxt/types/builder-env.d.ts +0 -1
- package/.nuxt/types/components.d.ts +0 -337
- package/.nuxt/types/imports.d.ts +0 -906
- package/.nuxt/types/layouts.d.ts +0 -7
- package/.nuxt/types/middleware.d.ts +0 -7
- package/.nuxt/types/modules.d.ts +0 -159
- package/.nuxt/types/nitro-config.d.ts +0 -14
- package/.nuxt/types/nitro-imports.d.ts +0 -141
- package/.nuxt/types/nitro-middleware.d.ts +0 -11
- package/.nuxt/types/nitro-nuxt.d.ts +0 -61
- package/.nuxt/types/nitro-routes.d.ts +0 -17
- package/.nuxt/types/nitro.d.ts +0 -3
- package/.nuxt/types/plugins.d.ts +0 -35
- package/.nuxt/types/runtime-config.d.ts +0 -36
- package/.nuxt/types/ui.d.ts +0 -36
- package/.nuxt/types/vue-shim.d.ts +0 -0
- package/.nuxt/ui/accordion.ts +0 -20
- package/.nuxt/ui/alert.ts +0 -264
- package/.nuxt/ui/auth-form.ts +0 -20
- package/.nuxt/ui/avatar-group.ts +0 -52
- package/.nuxt/ui/avatar.ts +0 -54
- package/.nuxt/ui/badge.ts +0 -263
- package/.nuxt/ui/banner.ts +0 -108
- package/.nuxt/ui/blog-post.ts +0 -143
- package/.nuxt/ui/blog-posts.ts +0 -9
- package/.nuxt/ui/breadcrumb.ts +0 -45
- package/.nuxt/ui/button.ts +0 -378
- package/.nuxt/ui/calendar.ts +0 -315
- package/.nuxt/ui/card.ts +0 -34
- package/.nuxt/ui/carousel.ts +0 -38
- package/.nuxt/ui/changelog-version.ts +0 -45
- package/.nuxt/ui/changelog-versions.ts +0 -8
- package/.nuxt/ui/chat-message.ts +0 -136
- package/.nuxt/ui/chat-messages.ts +0 -14
- package/.nuxt/ui/chat-palette.ts +0 -8
- package/.nuxt/ui/chat-prompt-submit.ts +0 -5
- package/.nuxt/ui/chat-prompt.ts +0 -35
- package/.nuxt/ui/checkbox-group.ts +0 -207
- package/.nuxt/ui/checkbox.ts +0 -237
- package/.nuxt/ui/chip.ts +0 -96
- package/.nuxt/ui/collapsible.ts +0 -6
- package/.nuxt/ui/color-picker.ts +0 -47
- package/.nuxt/ui/command-palette.ts +0 -62
- package/.nuxt/ui/container.ts +0 -3
- package/.nuxt/ui/context-menu.ts +0 -219
- package/.nuxt/ui/dashboard-group.ts +0 -3
- package/.nuxt/ui/dashboard-navbar.ts +0 -21
- package/.nuxt/ui/dashboard-panel.ts +0 -17
- package/.nuxt/ui/dashboard-resize-handle.ts +0 -3
- package/.nuxt/ui/dashboard-search-button.ts +0 -15
- package/.nuxt/ui/dashboard-search.ts +0 -13
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +0 -9
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +0 -9
- package/.nuxt/ui/dashboard-sidebar.ts +0 -37
- package/.nuxt/ui/dashboard-toolbar.ts +0 -7
- package/.nuxt/ui/drawer.ts +0 -149
- package/.nuxt/ui/dropdown-menu.ts +0 -220
- package/.nuxt/ui/editor-drag-handle.ts +0 -6
- package/.nuxt/ui/editor-emoji-menu.ts +0 -35
- package/.nuxt/ui/editor-mention-menu.ts +0 -35
- package/.nuxt/ui/editor-suggestion-menu.ts +0 -35
- package/.nuxt/ui/editor-toolbar.ts +0 -21
- package/.nuxt/ui/editor.ts +0 -35
- package/.nuxt/ui/empty.ts +0 -83
- package/.nuxt/ui/error.ts +0 -9
- package/.nuxt/ui/field-group.ts +0 -16
- package/.nuxt/ui/file-upload.ts +0 -290
- package/.nuxt/ui/footer-columns.ts +0 -28
- package/.nuxt/ui/footer.ts +0 -11
- package/.nuxt/ui/form-field.ts +0 -62
- package/.nuxt/ui/form.ts +0 -3
- package/.nuxt/ui/header.ts +0 -25
- package/.nuxt/ui/index.ts +0 -109
- package/.nuxt/ui/input-date.ts +0 -337
- package/.nuxt/ui/input-menu.ts +0 -460
- package/.nuxt/ui/input-number.ts +0 -256
- package/.nuxt/ui/input-tags.ts +0 -310
- package/.nuxt/ui/input-time.ts +0 -336
- package/.nuxt/ui/input.ts +0 -289
- package/.nuxt/ui/kbd.ts +0 -195
- package/.nuxt/ui/link.ts +0 -22
- package/.nuxt/ui/main.ts +0 -3
- package/.nuxt/ui/marquee.ts +0 -66
- package/.nuxt/ui/modal.ts +0 -60
- package/.nuxt/ui/navigation-menu.ts +0 -512
- package/.nuxt/ui/page-anchors.ts +0 -30
- package/.nuxt/ui/page-aside.ts +0 -10
- package/.nuxt/ui/page-body.ts +0 -3
- package/.nuxt/ui/page-card.ts +0 -274
- package/.nuxt/ui/page-columns.ts +0 -3
- package/.nuxt/ui/page-cta.ts +0 -70
- package/.nuxt/ui/page-feature.ts +0 -34
- package/.nuxt/ui/page-grid.ts +0 -3
- package/.nuxt/ui/page-header.ts +0 -18
- package/.nuxt/ui/page-hero.ts +0 -44
- package/.nuxt/ui/page-links.ts +0 -25
- package/.nuxt/ui/page-list.ts +0 -8
- package/.nuxt/ui/page-logos.ts +0 -15
- package/.nuxt/ui/page-section.ts +0 -84
- package/.nuxt/ui/page.ts +0 -32
- package/.nuxt/ui/pagination.ts +0 -13
- package/.nuxt/ui/pin-input.ts +0 -171
- package/.nuxt/ui/popover.ts +0 -6
- package/.nuxt/ui/pricing-plan.ts +0 -101
- package/.nuxt/ui/pricing-plans.ts +0 -22
- package/.nuxt/ui/pricing-table.ts +0 -51
- package/.nuxt/ui/progress.ts +0 -297
- package/.nuxt/ui/radio-group.ts +0 -352
- package/.nuxt/ui/scroll-area.ts +0 -21
- package/.nuxt/ui/select-menu.ts +0 -361
- package/.nuxt/ui/select.ts +0 -348
- package/.nuxt/ui/separator.ts +0 -172
- package/.nuxt/ui/skeleton.ts +0 -3
- package/.nuxt/ui/slideover.ts +0 -132
- package/.nuxt/ui/slider.ts +0 -171
- package/.nuxt/ui/stepper.ts +0 -202
- package/.nuxt/ui/switch.ts +0 -132
- package/.nuxt/ui/table.ts +0 -162
- package/.nuxt/ui/tabs.ts +0 -258
- package/.nuxt/ui/textarea.ts +0 -294
- package/.nuxt/ui/timeline.ts +0 -321
- package/.nuxt/ui/toast.ts +0 -74
- package/.nuxt/ui/toaster.ts +0 -91
- package/.nuxt/ui/tooltip.ts +0 -9
- package/.nuxt/ui/tree.ts +0 -168
- package/.nuxt/ui/user.ts +0 -101
- package/.nuxt/ui-image-component.ts +0 -1
- package/.nuxt/ui.css +0 -154
- package/app/components/Var.vue +0 -13
- package/pnpm-workspace.yaml +0 -5
package/.nuxt/ui/tabs.ts
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
const color = [
|
|
2
|
-
"primary",
|
|
3
|
-
"secondary",
|
|
4
|
-
"success",
|
|
5
|
-
"info",
|
|
6
|
-
"warning",
|
|
7
|
-
"error",
|
|
8
|
-
"neutral"
|
|
9
|
-
] as const
|
|
10
|
-
|
|
11
|
-
const variant = [
|
|
12
|
-
"pill",
|
|
13
|
-
"link"
|
|
14
|
-
] as const
|
|
15
|
-
|
|
16
|
-
const orientation = [
|
|
17
|
-
"horizontal",
|
|
18
|
-
"vertical"
|
|
19
|
-
] as const
|
|
20
|
-
|
|
21
|
-
const size = [
|
|
22
|
-
"xs",
|
|
23
|
-
"sm",
|
|
24
|
-
"md",
|
|
25
|
-
"lg",
|
|
26
|
-
"xl"
|
|
27
|
-
] as const
|
|
28
|
-
|
|
29
|
-
export default {
|
|
30
|
-
"slots": {
|
|
31
|
-
"root": "flex items-center gap-2",
|
|
32
|
-
"list": "relative flex p-1 group",
|
|
33
|
-
"indicator": "absolute transition-[translate,width] duration-200",
|
|
34
|
-
"trigger": [
|
|
35
|
-
"group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75",
|
|
36
|
-
"transition-colors"
|
|
37
|
-
],
|
|
38
|
-
"leadingIcon": "shrink-0",
|
|
39
|
-
"leadingAvatar": "shrink-0",
|
|
40
|
-
"leadingAvatarSize": "",
|
|
41
|
-
"label": "truncate",
|
|
42
|
-
"trailingBadge": "shrink-0",
|
|
43
|
-
"trailingBadgeSize": "sm",
|
|
44
|
-
"content": "focus:outline-none w-full"
|
|
45
|
-
},
|
|
46
|
-
"variants": {
|
|
47
|
-
"color": {
|
|
48
|
-
"primary": "",
|
|
49
|
-
"secondary": "",
|
|
50
|
-
"success": "",
|
|
51
|
-
"info": "",
|
|
52
|
-
"warning": "",
|
|
53
|
-
"error": "",
|
|
54
|
-
"neutral": ""
|
|
55
|
-
},
|
|
56
|
-
"variant": {
|
|
57
|
-
"pill": {
|
|
58
|
-
"list": "bg-elevated rounded-lg",
|
|
59
|
-
"trigger": "grow",
|
|
60
|
-
"indicator": "rounded-md shadow-xs"
|
|
61
|
-
},
|
|
62
|
-
"link": {
|
|
63
|
-
"list": "border-default",
|
|
64
|
-
"indicator": "rounded-full",
|
|
65
|
-
"trigger": "focus:outline-none"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"orientation": {
|
|
69
|
-
"horizontal": {
|
|
70
|
-
"root": "flex-col",
|
|
71
|
-
"list": "w-full",
|
|
72
|
-
"indicator": "left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",
|
|
73
|
-
"trigger": "justify-center"
|
|
74
|
-
},
|
|
75
|
-
"vertical": {
|
|
76
|
-
"list": "flex-col",
|
|
77
|
-
"indicator": "top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"size": {
|
|
81
|
-
"xs": {
|
|
82
|
-
"trigger": "px-2 py-1 text-xs gap-1",
|
|
83
|
-
"leadingIcon": "size-4",
|
|
84
|
-
"leadingAvatarSize": "3xs"
|
|
85
|
-
},
|
|
86
|
-
"sm": {
|
|
87
|
-
"trigger": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
88
|
-
"leadingIcon": "size-4",
|
|
89
|
-
"leadingAvatarSize": "3xs"
|
|
90
|
-
},
|
|
91
|
-
"md": {
|
|
92
|
-
"trigger": "px-3 py-1.5 text-sm gap-1.5",
|
|
93
|
-
"leadingIcon": "size-5",
|
|
94
|
-
"leadingAvatarSize": "2xs"
|
|
95
|
-
},
|
|
96
|
-
"lg": {
|
|
97
|
-
"trigger": "px-3 py-2 text-sm gap-2",
|
|
98
|
-
"leadingIcon": "size-5",
|
|
99
|
-
"leadingAvatarSize": "2xs"
|
|
100
|
-
},
|
|
101
|
-
"xl": {
|
|
102
|
-
"trigger": "px-3 py-2 text-base gap-2",
|
|
103
|
-
"leadingIcon": "size-6",
|
|
104
|
-
"leadingAvatarSize": "xs"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"compoundVariants": [
|
|
109
|
-
{
|
|
110
|
-
"orientation": "horizontal" as typeof orientation[number],
|
|
111
|
-
"variant": "pill" as typeof variant[number],
|
|
112
|
-
"class": {
|
|
113
|
-
"indicator": "inset-y-1"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"orientation": "horizontal" as typeof orientation[number],
|
|
118
|
-
"variant": "link" as typeof variant[number],
|
|
119
|
-
"class": {
|
|
120
|
-
"list": "border-b -mb-px",
|
|
121
|
-
"indicator": "-bottom-px h-px"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"orientation": "vertical" as typeof orientation[number],
|
|
126
|
-
"variant": "pill" as typeof variant[number],
|
|
127
|
-
"class": {
|
|
128
|
-
"indicator": "inset-x-1",
|
|
129
|
-
"list": "items-center"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"orientation": "vertical" as typeof orientation[number],
|
|
134
|
-
"variant": "link" as typeof variant[number],
|
|
135
|
-
"class": {
|
|
136
|
-
"list": "border-s -ms-px",
|
|
137
|
-
"indicator": "-start-px w-px"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"color": "primary" as typeof color[number],
|
|
142
|
-
"variant": "pill" as typeof variant[number],
|
|
143
|
-
"class": {
|
|
144
|
-
"indicator": "bg-primary",
|
|
145
|
-
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"color": "secondary" as typeof color[number],
|
|
150
|
-
"variant": "pill" as typeof variant[number],
|
|
151
|
-
"class": {
|
|
152
|
-
"indicator": "bg-secondary",
|
|
153
|
-
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"color": "success" as typeof color[number],
|
|
158
|
-
"variant": "pill" as typeof variant[number],
|
|
159
|
-
"class": {
|
|
160
|
-
"indicator": "bg-success",
|
|
161
|
-
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"color": "info" as typeof color[number],
|
|
166
|
-
"variant": "pill" as typeof variant[number],
|
|
167
|
-
"class": {
|
|
168
|
-
"indicator": "bg-info",
|
|
169
|
-
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"color": "warning" as typeof color[number],
|
|
174
|
-
"variant": "pill" as typeof variant[number],
|
|
175
|
-
"class": {
|
|
176
|
-
"indicator": "bg-warning",
|
|
177
|
-
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"color": "error" as typeof color[number],
|
|
182
|
-
"variant": "pill" as typeof variant[number],
|
|
183
|
-
"class": {
|
|
184
|
-
"indicator": "bg-error",
|
|
185
|
-
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"color": "neutral" as typeof color[number],
|
|
190
|
-
"variant": "pill" as typeof variant[number],
|
|
191
|
-
"class": {
|
|
192
|
-
"indicator": "bg-inverted",
|
|
193
|
-
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"color": "primary" as typeof color[number],
|
|
198
|
-
"variant": "link" as typeof variant[number],
|
|
199
|
-
"class": {
|
|
200
|
-
"indicator": "bg-primary",
|
|
201
|
-
"trigger": "data-[state=active]:text-primary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"color": "secondary" as typeof color[number],
|
|
206
|
-
"variant": "link" as typeof variant[number],
|
|
207
|
-
"class": {
|
|
208
|
-
"indicator": "bg-secondary",
|
|
209
|
-
"trigger": "data-[state=active]:text-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"color": "success" as typeof color[number],
|
|
214
|
-
"variant": "link" as typeof variant[number],
|
|
215
|
-
"class": {
|
|
216
|
-
"indicator": "bg-success",
|
|
217
|
-
"trigger": "data-[state=active]:text-success focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"color": "info" as typeof color[number],
|
|
222
|
-
"variant": "link" as typeof variant[number],
|
|
223
|
-
"class": {
|
|
224
|
-
"indicator": "bg-info",
|
|
225
|
-
"trigger": "data-[state=active]:text-info focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"color": "warning" as typeof color[number],
|
|
230
|
-
"variant": "link" as typeof variant[number],
|
|
231
|
-
"class": {
|
|
232
|
-
"indicator": "bg-warning",
|
|
233
|
-
"trigger": "data-[state=active]:text-warning focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"color": "error" as typeof color[number],
|
|
238
|
-
"variant": "link" as typeof variant[number],
|
|
239
|
-
"class": {
|
|
240
|
-
"indicator": "bg-error",
|
|
241
|
-
"trigger": "data-[state=active]:text-error focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"color": "neutral" as typeof color[number],
|
|
246
|
-
"variant": "link" as typeof variant[number],
|
|
247
|
-
"class": {
|
|
248
|
-
"indicator": "bg-inverted",
|
|
249
|
-
"trigger": "data-[state=active]:text-highlighted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
"defaultVariants": {
|
|
254
|
-
"color": "primary" as typeof color[number],
|
|
255
|
-
"variant": "pill" as typeof variant[number],
|
|
256
|
-
"size": "md" as typeof size[number]
|
|
257
|
-
}
|
|
258
|
-
}
|
package/.nuxt/ui/textarea.ts
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
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": "relative inline-flex items-center",
|
|
30
|
-
"base": [
|
|
31
|
-
"w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
32
|
-
"transition-colors"
|
|
33
|
-
],
|
|
34
|
-
"leading": "absolute start-0 flex items-start",
|
|
35
|
-
"leadingIcon": "shrink-0 text-dimmed",
|
|
36
|
-
"leadingAvatar": "shrink-0",
|
|
37
|
-
"leadingAvatarSize": "",
|
|
38
|
-
"trailing": "absolute end-0 flex items-start",
|
|
39
|
-
"trailingIcon": "shrink-0 text-dimmed"
|
|
40
|
-
},
|
|
41
|
-
"variants": {
|
|
42
|
-
"fieldGroup": {
|
|
43
|
-
"horizontal": {
|
|
44
|
-
"root": "group has-focus-visible:z-[1]",
|
|
45
|
-
"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"
|
|
46
|
-
},
|
|
47
|
-
"vertical": {
|
|
48
|
-
"root": "group has-focus-visible:z-[1]",
|
|
49
|
-
"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"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"size": {
|
|
53
|
-
"xs": {
|
|
54
|
-
"base": "px-2 py-1 text-xs gap-1",
|
|
55
|
-
"leading": "ps-2 inset-y-1",
|
|
56
|
-
"trailing": "pe-2 inset-y-1",
|
|
57
|
-
"leadingIcon": "size-4",
|
|
58
|
-
"leadingAvatarSize": "3xs",
|
|
59
|
-
"trailingIcon": "size-4"
|
|
60
|
-
},
|
|
61
|
-
"sm": {
|
|
62
|
-
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
63
|
-
"leading": "ps-2.5 inset-y-1.5",
|
|
64
|
-
"trailing": "pe-2.5 inset-y-1.5",
|
|
65
|
-
"leadingIcon": "size-4",
|
|
66
|
-
"leadingAvatarSize": "3xs",
|
|
67
|
-
"trailingIcon": "size-4"
|
|
68
|
-
},
|
|
69
|
-
"md": {
|
|
70
|
-
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
71
|
-
"leading": "ps-2.5 inset-y-1.5",
|
|
72
|
-
"trailing": "pe-2.5 inset-y-1.5",
|
|
73
|
-
"leadingIcon": "size-5",
|
|
74
|
-
"leadingAvatarSize": "2xs",
|
|
75
|
-
"trailingIcon": "size-5"
|
|
76
|
-
},
|
|
77
|
-
"lg": {
|
|
78
|
-
"base": "px-3 py-2 text-sm gap-2",
|
|
79
|
-
"leading": "ps-3 inset-y-2",
|
|
80
|
-
"trailing": "pe-3 inset-y-2",
|
|
81
|
-
"leadingIcon": "size-5",
|
|
82
|
-
"leadingAvatarSize": "2xs",
|
|
83
|
-
"trailingIcon": "size-5"
|
|
84
|
-
},
|
|
85
|
-
"xl": {
|
|
86
|
-
"base": "px-3 py-2 text-base gap-2",
|
|
87
|
-
"leading": "ps-3 inset-y-2",
|
|
88
|
-
"trailing": "pe-3 inset-y-2",
|
|
89
|
-
"leadingIcon": "size-6",
|
|
90
|
-
"leadingAvatarSize": "xs",
|
|
91
|
-
"trailingIcon": "size-6"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"variant": {
|
|
95
|
-
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
96
|
-
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
97
|
-
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
98
|
-
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
99
|
-
"none": "text-highlighted bg-transparent"
|
|
100
|
-
},
|
|
101
|
-
"color": {
|
|
102
|
-
"primary": "",
|
|
103
|
-
"secondary": "",
|
|
104
|
-
"success": "",
|
|
105
|
-
"info": "",
|
|
106
|
-
"warning": "",
|
|
107
|
-
"error": "",
|
|
108
|
-
"neutral": ""
|
|
109
|
-
},
|
|
110
|
-
"leading": {
|
|
111
|
-
"true": ""
|
|
112
|
-
},
|
|
113
|
-
"trailing": {
|
|
114
|
-
"true": ""
|
|
115
|
-
},
|
|
116
|
-
"loading": {
|
|
117
|
-
"true": ""
|
|
118
|
-
},
|
|
119
|
-
"highlight": {
|
|
120
|
-
"true": ""
|
|
121
|
-
},
|
|
122
|
-
"type": {
|
|
123
|
-
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
124
|
-
},
|
|
125
|
-
"autoresize": {
|
|
126
|
-
"true": {
|
|
127
|
-
"base": "resize-none"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
"compoundVariants": [
|
|
132
|
-
{
|
|
133
|
-
"color": "primary" as typeof color[number],
|
|
134
|
-
"variant": [
|
|
135
|
-
"outline" as typeof variant[number],
|
|
136
|
-
"subtle" as typeof variant[number]
|
|
137
|
-
],
|
|
138
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"color": "secondary" as typeof color[number],
|
|
142
|
-
"variant": [
|
|
143
|
-
"outline" as typeof variant[number],
|
|
144
|
-
"subtle" as typeof variant[number]
|
|
145
|
-
],
|
|
146
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"color": "success" as typeof color[number],
|
|
150
|
-
"variant": [
|
|
151
|
-
"outline" as typeof variant[number],
|
|
152
|
-
"subtle" as typeof variant[number]
|
|
153
|
-
],
|
|
154
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"color": "info" as typeof color[number],
|
|
158
|
-
"variant": [
|
|
159
|
-
"outline" as typeof variant[number],
|
|
160
|
-
"subtle" as typeof variant[number]
|
|
161
|
-
],
|
|
162
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"color": "warning" as typeof color[number],
|
|
166
|
-
"variant": [
|
|
167
|
-
"outline" as typeof variant[number],
|
|
168
|
-
"subtle" as typeof variant[number]
|
|
169
|
-
],
|
|
170
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"color": "error" as typeof color[number],
|
|
174
|
-
"variant": [
|
|
175
|
-
"outline" as typeof variant[number],
|
|
176
|
-
"subtle" as typeof variant[number]
|
|
177
|
-
],
|
|
178
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"color": "primary" as typeof color[number],
|
|
182
|
-
"highlight": true,
|
|
183
|
-
"class": "ring ring-inset ring-primary"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"color": "secondary" as typeof color[number],
|
|
187
|
-
"highlight": true,
|
|
188
|
-
"class": "ring ring-inset ring-secondary"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"color": "success" as typeof color[number],
|
|
192
|
-
"highlight": true,
|
|
193
|
-
"class": "ring ring-inset ring-success"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"color": "info" as typeof color[number],
|
|
197
|
-
"highlight": true,
|
|
198
|
-
"class": "ring ring-inset ring-info"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"color": "warning" as typeof color[number],
|
|
202
|
-
"highlight": true,
|
|
203
|
-
"class": "ring ring-inset ring-warning"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"color": "error" as typeof color[number],
|
|
207
|
-
"highlight": true,
|
|
208
|
-
"class": "ring ring-inset ring-error"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"color": "neutral" as typeof color[number],
|
|
212
|
-
"variant": [
|
|
213
|
-
"outline" as typeof variant[number],
|
|
214
|
-
"subtle" as typeof variant[number]
|
|
215
|
-
],
|
|
216
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"color": "neutral" as typeof color[number],
|
|
220
|
-
"highlight": true,
|
|
221
|
-
"class": "ring ring-inset ring-inverted"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"leading": true,
|
|
225
|
-
"size": "xs" as typeof size[number],
|
|
226
|
-
"class": "ps-7"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"leading": true,
|
|
230
|
-
"size": "sm" as typeof size[number],
|
|
231
|
-
"class": "ps-8"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"leading": true,
|
|
235
|
-
"size": "md" as typeof size[number],
|
|
236
|
-
"class": "ps-9"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"leading": true,
|
|
240
|
-
"size": "lg" as typeof size[number],
|
|
241
|
-
"class": "ps-10"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"leading": true,
|
|
245
|
-
"size": "xl" as typeof size[number],
|
|
246
|
-
"class": "ps-11"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"trailing": true,
|
|
250
|
-
"size": "xs" as typeof size[number],
|
|
251
|
-
"class": "pe-7"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"trailing": true,
|
|
255
|
-
"size": "sm" as typeof size[number],
|
|
256
|
-
"class": "pe-8"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"trailing": true,
|
|
260
|
-
"size": "md" as typeof size[number],
|
|
261
|
-
"class": "pe-9"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"trailing": true,
|
|
265
|
-
"size": "lg" as typeof size[number],
|
|
266
|
-
"class": "pe-10"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"trailing": true,
|
|
270
|
-
"size": "xl" as typeof size[number],
|
|
271
|
-
"class": "pe-11"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"loading": true,
|
|
275
|
-
"leading": true,
|
|
276
|
-
"class": {
|
|
277
|
-
"leadingIcon": "animate-spin"
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"loading": true,
|
|
282
|
-
"leading": false,
|
|
283
|
-
"trailing": true,
|
|
284
|
-
"class": {
|
|
285
|
-
"trailingIcon": "animate-spin"
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
],
|
|
289
|
-
"defaultVariants": {
|
|
290
|
-
"size": "md" as typeof size[number],
|
|
291
|
-
"color": "primary" as typeof color[number],
|
|
292
|
-
"variant": "outline" as typeof variant[number]
|
|
293
|
-
}
|
|
294
|
-
}
|