@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.
Files changed (165) hide show
  1. package/LICENSE +21 -0
  2. package/app/assets/css/utilities.css +3 -0
  3. package/app/components/Define.vue +13 -0
  4. package/app/components/layout/LayoutDashboard.vue +1 -1
  5. package/app/components/u/UField.vue +17 -6
  6. package/app/components/u/UForm.vue +90 -0
  7. package/app/components/u/UInputDurationMinutes.vue +1 -1
  8. package/app/composables/useTableColumns.tsx +1 -1
  9. package/app/composables/useToast.ts +3 -3
  10. package/app/utils/debug.ts +48 -0
  11. package/app/utils/files.ts +22 -0
  12. package/app/utils/plugins.ts +45 -6
  13. package/package.json +19 -3
  14. package/server/plugins/error.ts +20 -0
  15. package/server/utils/error.ts +24 -0
  16. package/shared/types/helpers.ts +27 -0
  17. package/shared/utils/helpers.ts +3 -0
  18. package/.nuxt/app.config.mjs +0 -317
  19. package/.nuxt/components.d.ts +0 -332
  20. package/.nuxt/imports.d.ts +0 -61
  21. package/.nuxt/manifest/meta/24fb5e89-93fb-44cb-bbff-2a13f165c1e8.json +0 -1
  22. package/.nuxt/nuxt-icon-client-bundle.mjs +0 -1
  23. package/.nuxt/nuxt-icon-server-bundle.mjs +0 -14
  24. package/.nuxt/nuxt.d.ts +0 -24
  25. package/.nuxt/nuxt.node.d.ts +0 -14
  26. package/.nuxt/nuxt.shared.d.ts +0 -5
  27. package/.nuxt/schema/nuxt.schema.d.ts +0 -210
  28. package/.nuxt/schema/nuxt.schema.json +0 -263
  29. package/.nuxt/tsconfig.app.json +0 -217
  30. package/.nuxt/tsconfig.json +0 -219
  31. package/.nuxt/tsconfig.node.json +0 -114
  32. package/.nuxt/tsconfig.server.json +0 -140
  33. package/.nuxt/tsconfig.shared.json +0 -139
  34. package/.nuxt/types/app.config.d.ts +0 -331
  35. package/.nuxt/types/build.d.ts +0 -24
  36. package/.nuxt/types/builder-env.d.ts +0 -1
  37. package/.nuxt/types/components.d.ts +0 -337
  38. package/.nuxt/types/imports.d.ts +0 -906
  39. package/.nuxt/types/layouts.d.ts +0 -7
  40. package/.nuxt/types/middleware.d.ts +0 -7
  41. package/.nuxt/types/modules.d.ts +0 -159
  42. package/.nuxt/types/nitro-config.d.ts +0 -14
  43. package/.nuxt/types/nitro-imports.d.ts +0 -141
  44. package/.nuxt/types/nitro-middleware.d.ts +0 -11
  45. package/.nuxt/types/nitro-nuxt.d.ts +0 -61
  46. package/.nuxt/types/nitro-routes.d.ts +0 -17
  47. package/.nuxt/types/nitro.d.ts +0 -3
  48. package/.nuxt/types/plugins.d.ts +0 -35
  49. package/.nuxt/types/runtime-config.d.ts +0 -36
  50. package/.nuxt/types/ui.d.ts +0 -36
  51. package/.nuxt/types/vue-shim.d.ts +0 -0
  52. package/.nuxt/ui/accordion.ts +0 -20
  53. package/.nuxt/ui/alert.ts +0 -264
  54. package/.nuxt/ui/auth-form.ts +0 -20
  55. package/.nuxt/ui/avatar-group.ts +0 -52
  56. package/.nuxt/ui/avatar.ts +0 -54
  57. package/.nuxt/ui/badge.ts +0 -263
  58. package/.nuxt/ui/banner.ts +0 -108
  59. package/.nuxt/ui/blog-post.ts +0 -143
  60. package/.nuxt/ui/blog-posts.ts +0 -9
  61. package/.nuxt/ui/breadcrumb.ts +0 -45
  62. package/.nuxt/ui/button.ts +0 -378
  63. package/.nuxt/ui/calendar.ts +0 -315
  64. package/.nuxt/ui/card.ts +0 -34
  65. package/.nuxt/ui/carousel.ts +0 -38
  66. package/.nuxt/ui/changelog-version.ts +0 -45
  67. package/.nuxt/ui/changelog-versions.ts +0 -8
  68. package/.nuxt/ui/chat-message.ts +0 -136
  69. package/.nuxt/ui/chat-messages.ts +0 -14
  70. package/.nuxt/ui/chat-palette.ts +0 -8
  71. package/.nuxt/ui/chat-prompt-submit.ts +0 -5
  72. package/.nuxt/ui/chat-prompt.ts +0 -35
  73. package/.nuxt/ui/checkbox-group.ts +0 -207
  74. package/.nuxt/ui/checkbox.ts +0 -237
  75. package/.nuxt/ui/chip.ts +0 -96
  76. package/.nuxt/ui/collapsible.ts +0 -6
  77. package/.nuxt/ui/color-picker.ts +0 -47
  78. package/.nuxt/ui/command-palette.ts +0 -62
  79. package/.nuxt/ui/container.ts +0 -3
  80. package/.nuxt/ui/context-menu.ts +0 -219
  81. package/.nuxt/ui/dashboard-group.ts +0 -3
  82. package/.nuxt/ui/dashboard-navbar.ts +0 -21
  83. package/.nuxt/ui/dashboard-panel.ts +0 -17
  84. package/.nuxt/ui/dashboard-resize-handle.ts +0 -3
  85. package/.nuxt/ui/dashboard-search-button.ts +0 -15
  86. package/.nuxt/ui/dashboard-search.ts +0 -13
  87. package/.nuxt/ui/dashboard-sidebar-collapse.ts +0 -9
  88. package/.nuxt/ui/dashboard-sidebar-toggle.ts +0 -9
  89. package/.nuxt/ui/dashboard-sidebar.ts +0 -37
  90. package/.nuxt/ui/dashboard-toolbar.ts +0 -7
  91. package/.nuxt/ui/drawer.ts +0 -149
  92. package/.nuxt/ui/dropdown-menu.ts +0 -220
  93. package/.nuxt/ui/editor-drag-handle.ts +0 -6
  94. package/.nuxt/ui/editor-emoji-menu.ts +0 -35
  95. package/.nuxt/ui/editor-mention-menu.ts +0 -35
  96. package/.nuxt/ui/editor-suggestion-menu.ts +0 -35
  97. package/.nuxt/ui/editor-toolbar.ts +0 -21
  98. package/.nuxt/ui/editor.ts +0 -35
  99. package/.nuxt/ui/empty.ts +0 -83
  100. package/.nuxt/ui/error.ts +0 -9
  101. package/.nuxt/ui/field-group.ts +0 -16
  102. package/.nuxt/ui/file-upload.ts +0 -290
  103. package/.nuxt/ui/footer-columns.ts +0 -28
  104. package/.nuxt/ui/footer.ts +0 -11
  105. package/.nuxt/ui/form-field.ts +0 -62
  106. package/.nuxt/ui/form.ts +0 -3
  107. package/.nuxt/ui/header.ts +0 -25
  108. package/.nuxt/ui/index.ts +0 -109
  109. package/.nuxt/ui/input-date.ts +0 -337
  110. package/.nuxt/ui/input-menu.ts +0 -460
  111. package/.nuxt/ui/input-number.ts +0 -256
  112. package/.nuxt/ui/input-tags.ts +0 -310
  113. package/.nuxt/ui/input-time.ts +0 -336
  114. package/.nuxt/ui/input.ts +0 -289
  115. package/.nuxt/ui/kbd.ts +0 -195
  116. package/.nuxt/ui/link.ts +0 -22
  117. package/.nuxt/ui/main.ts +0 -3
  118. package/.nuxt/ui/marquee.ts +0 -66
  119. package/.nuxt/ui/modal.ts +0 -60
  120. package/.nuxt/ui/navigation-menu.ts +0 -512
  121. package/.nuxt/ui/page-anchors.ts +0 -30
  122. package/.nuxt/ui/page-aside.ts +0 -10
  123. package/.nuxt/ui/page-body.ts +0 -3
  124. package/.nuxt/ui/page-card.ts +0 -274
  125. package/.nuxt/ui/page-columns.ts +0 -3
  126. package/.nuxt/ui/page-cta.ts +0 -70
  127. package/.nuxt/ui/page-feature.ts +0 -34
  128. package/.nuxt/ui/page-grid.ts +0 -3
  129. package/.nuxt/ui/page-header.ts +0 -18
  130. package/.nuxt/ui/page-hero.ts +0 -44
  131. package/.nuxt/ui/page-links.ts +0 -25
  132. package/.nuxt/ui/page-list.ts +0 -8
  133. package/.nuxt/ui/page-logos.ts +0 -15
  134. package/.nuxt/ui/page-section.ts +0 -84
  135. package/.nuxt/ui/page.ts +0 -32
  136. package/.nuxt/ui/pagination.ts +0 -13
  137. package/.nuxt/ui/pin-input.ts +0 -171
  138. package/.nuxt/ui/popover.ts +0 -6
  139. package/.nuxt/ui/pricing-plan.ts +0 -101
  140. package/.nuxt/ui/pricing-plans.ts +0 -22
  141. package/.nuxt/ui/pricing-table.ts +0 -51
  142. package/.nuxt/ui/progress.ts +0 -297
  143. package/.nuxt/ui/radio-group.ts +0 -352
  144. package/.nuxt/ui/scroll-area.ts +0 -21
  145. package/.nuxt/ui/select-menu.ts +0 -361
  146. package/.nuxt/ui/select.ts +0 -348
  147. package/.nuxt/ui/separator.ts +0 -172
  148. package/.nuxt/ui/skeleton.ts +0 -3
  149. package/.nuxt/ui/slideover.ts +0 -132
  150. package/.nuxt/ui/slider.ts +0 -171
  151. package/.nuxt/ui/stepper.ts +0 -202
  152. package/.nuxt/ui/switch.ts +0 -132
  153. package/.nuxt/ui/table.ts +0 -162
  154. package/.nuxt/ui/tabs.ts +0 -258
  155. package/.nuxt/ui/textarea.ts +0 -294
  156. package/.nuxt/ui/timeline.ts +0 -321
  157. package/.nuxt/ui/toast.ts +0 -74
  158. package/.nuxt/ui/toaster.ts +0 -91
  159. package/.nuxt/ui/tooltip.ts +0 -9
  160. package/.nuxt/ui/tree.ts +0 -168
  161. package/.nuxt/ui/user.ts +0 -101
  162. package/.nuxt/ui-image-component.ts +0 -1
  163. package/.nuxt/ui.css +0 -154
  164. package/app/components/Var.vue +0 -13
  165. package/pnpm-workspace.yaml +0 -5
@@ -1,460 +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
- "rounded-md",
32
- "transition-colors"
33
- ],
34
- "leading": "absolute inset-y-0 start-0 flex items-center",
35
- "leadingIcon": "shrink-0 text-dimmed",
36
- "leadingAvatar": "shrink-0",
37
- "leadingAvatarSize": "",
38
- "trailing": "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
39
- "trailingIcon": "shrink-0 text-dimmed",
40
- "arrow": "fill-default",
41
- "content": "max-h-60 w-(--reka-combobox-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-combobox-content-transform-origin) pointer-events-auto flex flex-col",
42
- "viewport": "relative scroll-py-1 overflow-y-auto flex-1",
43
- "group": "p-1 isolate",
44
- "empty": "text-center text-muted",
45
- "label": "font-semibold text-highlighted",
46
- "separator": "-mx-1 my-1 h-px bg-border",
47
- "item": [
48
- "group relative w-full flex items-start gap-1.5 p-1.5 text-sm 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",
49
- "transition-colors before:transition-colors"
50
- ],
51
- "itemLeadingIcon": [
52
- "shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
53
- "transition-colors"
54
- ],
55
- "itemLeadingAvatar": "shrink-0",
56
- "itemLeadingAvatarSize": "",
57
- "itemLeadingChip": "shrink-0",
58
- "itemLeadingChipSize": "",
59
- "itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
60
- "itemTrailingIcon": "shrink-0",
61
- "itemWrapper": "flex-1 flex flex-col min-w-0",
62
- "itemLabel": "truncate",
63
- "itemDescription": "truncate text-muted",
64
- "tagsItem": "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",
65
- "tagsItemText": "truncate",
66
- "tagsItemDelete": [
67
- "inline-flex items-center rounded-xs text-dimmed hover:text-default hover:bg-accented/75 disabled:pointer-events-none",
68
- "transition-colors"
69
- ],
70
- "tagsItemDeleteIcon": "shrink-0",
71
- "tagsInput": "flex-1 border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
72
- },
73
- "variants": {
74
- "fieldGroup": {
75
- "horizontal": {
76
- "root": "group has-focus-visible:z-[1]",
77
- "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"
78
- },
79
- "vertical": {
80
- "root": "group has-focus-visible:z-[1]",
81
- "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"
82
- }
83
- },
84
- "size": {
85
- "xs": {
86
- "base": "px-2 py-1 text-xs gap-1",
87
- "leading": "ps-2",
88
- "trailing": "pe-2",
89
- "leadingIcon": "size-4",
90
- "leadingAvatarSize": "3xs",
91
- "trailingIcon": "size-4",
92
- "label": "p-1 text-[10px]/3 gap-1",
93
- "item": "p-1 text-xs gap-1",
94
- "itemLeadingIcon": "size-4",
95
- "itemLeadingAvatarSize": "3xs",
96
- "itemLeadingChip": "size-4",
97
- "itemLeadingChipSize": "sm",
98
- "itemTrailingIcon": "size-4",
99
- "tagsItem": "text-[10px]/3",
100
- "tagsItemDeleteIcon": "size-3",
101
- "empty": "p-1 text-xs"
102
- },
103
- "sm": {
104
- "base": "px-2.5 py-1.5 text-xs gap-1.5",
105
- "leading": "ps-2.5",
106
- "trailing": "pe-2.5",
107
- "leadingIcon": "size-4",
108
- "leadingAvatarSize": "3xs",
109
- "trailingIcon": "size-4",
110
- "label": "p-1.5 text-[10px]/3 gap-1.5",
111
- "item": "p-1.5 text-xs gap-1.5",
112
- "itemLeadingIcon": "size-4",
113
- "itemLeadingAvatarSize": "3xs",
114
- "itemLeadingChip": "size-4",
115
- "itemLeadingChipSize": "sm",
116
- "itemTrailingIcon": "size-4",
117
- "tagsItem": "text-[10px]/3",
118
- "tagsItemDeleteIcon": "size-3",
119
- "empty": "p-1.5 text-xs"
120
- },
121
- "md": {
122
- "base": "px-2.5 py-1.5 text-sm gap-1.5",
123
- "leading": "ps-2.5",
124
- "trailing": "pe-2.5",
125
- "leadingIcon": "size-5",
126
- "leadingAvatarSize": "2xs",
127
- "trailingIcon": "size-5",
128
- "label": "p-1.5 text-xs gap-1.5",
129
- "item": "p-1.5 text-sm gap-1.5",
130
- "itemLeadingIcon": "size-5",
131
- "itemLeadingAvatarSize": "2xs",
132
- "itemLeadingChip": "size-5",
133
- "itemLeadingChipSize": "md",
134
- "itemTrailingIcon": "size-5",
135
- "tagsItem": "text-xs",
136
- "tagsItemDeleteIcon": "size-3.5",
137
- "empty": "p-1.5 text-sm"
138
- },
139
- "lg": {
140
- "base": "px-3 py-2 text-sm gap-2",
141
- "leading": "ps-3",
142
- "trailing": "pe-3",
143
- "leadingIcon": "size-5",
144
- "leadingAvatarSize": "2xs",
145
- "trailingIcon": "size-5",
146
- "label": "p-2 text-xs gap-2",
147
- "item": "p-2 text-sm gap-2",
148
- "itemLeadingIcon": "size-5",
149
- "itemLeadingAvatarSize": "2xs",
150
- "itemLeadingChip": "size-5",
151
- "itemLeadingChipSize": "md",
152
- "itemTrailingIcon": "size-5",
153
- "tagsItem": "text-xs",
154
- "tagsItemDeleteIcon": "size-3.5",
155
- "empty": "p-2 text-sm"
156
- },
157
- "xl": {
158
- "base": "px-3 py-2 text-base gap-2",
159
- "leading": "ps-3",
160
- "trailing": "pe-3",
161
- "leadingIcon": "size-6",
162
- "leadingAvatarSize": "xs",
163
- "trailingIcon": "size-6",
164
- "label": "p-2 text-sm gap-2",
165
- "item": "p-2 text-base gap-2",
166
- "itemLeadingIcon": "size-6",
167
- "itemLeadingAvatarSize": "xs",
168
- "itemLeadingChip": "size-6",
169
- "itemLeadingChipSize": "lg",
170
- "itemTrailingIcon": "size-6",
171
- "tagsItem": "text-sm",
172
- "tagsItemDeleteIcon": "size-4",
173
- "empty": "p-2 text-base"
174
- }
175
- },
176
- "variant": {
177
- "outline": "text-highlighted bg-default ring ring-inset ring-accented",
178
- "soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
179
- "subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
180
- "ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
181
- "none": "text-highlighted bg-transparent"
182
- },
183
- "color": {
184
- "primary": "",
185
- "secondary": "",
186
- "success": "",
187
- "info": "",
188
- "warning": "",
189
- "error": "",
190
- "neutral": ""
191
- },
192
- "leading": {
193
- "true": ""
194
- },
195
- "trailing": {
196
- "true": ""
197
- },
198
- "loading": {
199
- "true": ""
200
- },
201
- "highlight": {
202
- "true": ""
203
- },
204
- "type": {
205
- "file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
206
- },
207
- "virtualize": {
208
- "true": {
209
- "viewport": "p-1 isolate"
210
- },
211
- "false": {
212
- "viewport": "divide-y divide-default"
213
- }
214
- },
215
- "multiple": {
216
- "true": {
217
- "root": "flex-wrap"
218
- },
219
- "false": {
220
- "base": "w-full border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
221
- }
222
- }
223
- },
224
- "compoundVariants": [
225
- {
226
- "variant": "soft" as typeof variant[number],
227
- "multiple": true,
228
- "class": "has-focus:bg-elevated"
229
- },
230
- {
231
- "variant": "ghost" as typeof variant[number],
232
- "multiple": true,
233
- "class": "has-focus:bg-elevated"
234
- },
235
- {
236
- "color": "primary" as typeof color[number],
237
- "multiple": true,
238
- "variant": [
239
- "outline" as typeof variant[number],
240
- "subtle" as typeof variant[number]
241
- ],
242
- "class": "has-focus-visible:ring-2 has-focus-visible:ring-primary"
243
- },
244
- {
245
- "color": "secondary" as typeof color[number],
246
- "multiple": true,
247
- "variant": [
248
- "outline" as typeof variant[number],
249
- "subtle" as typeof variant[number]
250
- ],
251
- "class": "has-focus-visible:ring-2 has-focus-visible:ring-secondary"
252
- },
253
- {
254
- "color": "success" as typeof color[number],
255
- "multiple": true,
256
- "variant": [
257
- "outline" as typeof variant[number],
258
- "subtle" as typeof variant[number]
259
- ],
260
- "class": "has-focus-visible:ring-2 has-focus-visible:ring-success"
261
- },
262
- {
263
- "color": "info" as typeof color[number],
264
- "multiple": true,
265
- "variant": [
266
- "outline" as typeof variant[number],
267
- "subtle" as typeof variant[number]
268
- ],
269
- "class": "has-focus-visible:ring-2 has-focus-visible:ring-info"
270
- },
271
- {
272
- "color": "warning" as typeof color[number],
273
- "multiple": true,
274
- "variant": [
275
- "outline" as typeof variant[number],
276
- "subtle" as typeof variant[number]
277
- ],
278
- "class": "has-focus-visible:ring-2 has-focus-visible:ring-warning"
279
- },
280
- {
281
- "color": "error" as typeof color[number],
282
- "multiple": true,
283
- "variant": [
284
- "outline" as typeof variant[number],
285
- "subtle" as typeof variant[number]
286
- ],
287
- "class": "has-focus-visible:ring-2 has-focus-visible:ring-error"
288
- },
289
- {
290
- "color": "neutral" as typeof color[number],
291
- "multiple": true,
292
- "variant": [
293
- "outline" as typeof variant[number],
294
- "subtle" as typeof variant[number]
295
- ],
296
- "class": "has-focus-visible:ring-2 has-focus-visible:ring-inverted"
297
- },
298
- {
299
- "color": "primary" as typeof color[number],
300
- "variant": [
301
- "outline" as typeof variant[number],
302
- "subtle" as typeof variant[number]
303
- ],
304
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
305
- },
306
- {
307
- "color": "secondary" as typeof color[number],
308
- "variant": [
309
- "outline" as typeof variant[number],
310
- "subtle" as typeof variant[number]
311
- ],
312
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
313
- },
314
- {
315
- "color": "success" as typeof color[number],
316
- "variant": [
317
- "outline" as typeof variant[number],
318
- "subtle" as typeof variant[number]
319
- ],
320
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
321
- },
322
- {
323
- "color": "info" as typeof color[number],
324
- "variant": [
325
- "outline" as typeof variant[number],
326
- "subtle" as typeof variant[number]
327
- ],
328
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
329
- },
330
- {
331
- "color": "warning" as typeof color[number],
332
- "variant": [
333
- "outline" as typeof variant[number],
334
- "subtle" as typeof variant[number]
335
- ],
336
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
337
- },
338
- {
339
- "color": "error" as typeof color[number],
340
- "variant": [
341
- "outline" as typeof variant[number],
342
- "subtle" as typeof variant[number]
343
- ],
344
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
345
- },
346
- {
347
- "color": "primary" as typeof color[number],
348
- "highlight": true,
349
- "class": "ring ring-inset ring-primary"
350
- },
351
- {
352
- "color": "secondary" as typeof color[number],
353
- "highlight": true,
354
- "class": "ring ring-inset ring-secondary"
355
- },
356
- {
357
- "color": "success" as typeof color[number],
358
- "highlight": true,
359
- "class": "ring ring-inset ring-success"
360
- },
361
- {
362
- "color": "info" as typeof color[number],
363
- "highlight": true,
364
- "class": "ring ring-inset ring-info"
365
- },
366
- {
367
- "color": "warning" as typeof color[number],
368
- "highlight": true,
369
- "class": "ring ring-inset ring-warning"
370
- },
371
- {
372
- "color": "error" as typeof color[number],
373
- "highlight": true,
374
- "class": "ring ring-inset ring-error"
375
- },
376
- {
377
- "color": "neutral" as typeof color[number],
378
- "variant": [
379
- "outline" as typeof variant[number],
380
- "subtle" as typeof variant[number]
381
- ],
382
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
383
- },
384
- {
385
- "color": "neutral" as typeof color[number],
386
- "highlight": true,
387
- "class": "ring ring-inset ring-inverted"
388
- },
389
- {
390
- "leading": true,
391
- "size": "xs" as typeof size[number],
392
- "class": "ps-7"
393
- },
394
- {
395
- "leading": true,
396
- "size": "sm" as typeof size[number],
397
- "class": "ps-8"
398
- },
399
- {
400
- "leading": true,
401
- "size": "md" as typeof size[number],
402
- "class": "ps-9"
403
- },
404
- {
405
- "leading": true,
406
- "size": "lg" as typeof size[number],
407
- "class": "ps-10"
408
- },
409
- {
410
- "leading": true,
411
- "size": "xl" as typeof size[number],
412
- "class": "ps-11"
413
- },
414
- {
415
- "trailing": true,
416
- "size": "xs" as typeof size[number],
417
- "class": "pe-7"
418
- },
419
- {
420
- "trailing": true,
421
- "size": "sm" as typeof size[number],
422
- "class": "pe-8"
423
- },
424
- {
425
- "trailing": true,
426
- "size": "md" as typeof size[number],
427
- "class": "pe-9"
428
- },
429
- {
430
- "trailing": true,
431
- "size": "lg" as typeof size[number],
432
- "class": "pe-10"
433
- },
434
- {
435
- "trailing": true,
436
- "size": "xl" as typeof size[number],
437
- "class": "pe-11"
438
- },
439
- {
440
- "loading": true,
441
- "leading": true,
442
- "class": {
443
- "leadingIcon": "animate-spin"
444
- }
445
- },
446
- {
447
- "loading": true,
448
- "leading": false,
449
- "trailing": true,
450
- "class": {
451
- "trailingIcon": "animate-spin"
452
- }
453
- }
454
- ],
455
- "defaultVariants": {
456
- "size": "md" as typeof size[number],
457
- "color": "primary" as typeof color[number],
458
- "variant": "outline" as typeof variant[number]
459
- }
460
- }