@nuxt/ui 3.1.2 → 3.2.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.
Files changed (150) hide show
  1. package/.nuxt/ui/avatar.ts +1 -1
  2. package/.nuxt/ui/card.ts +1 -1
  3. package/.nuxt/ui/carousel.ts +1 -1
  4. package/.nuxt/ui/checkbox-group.ts +1 -1
  5. package/.nuxt/ui/command-palette.ts +1 -0
  6. package/.nuxt/ui/context-menu.ts +2 -1
  7. package/.nuxt/ui/drawer.ts +1 -1
  8. package/.nuxt/ui/dropdown-menu.ts +2 -1
  9. package/.nuxt/ui/index.ts +2 -0
  10. package/.nuxt/ui/input-menu.ts +26 -12
  11. package/.nuxt/ui/input-tags.ts +310 -0
  12. package/.nuxt/ui/modal.ts +1 -1
  13. package/.nuxt/ui/navigation-menu.ts +43 -34
  14. package/.nuxt/ui/radio-group.ts +1 -1
  15. package/.nuxt/ui/select-menu.ts +13 -8
  16. package/.nuxt/ui/select.ts +13 -8
  17. package/.nuxt/ui/table.ts +3 -2
  18. package/.nuxt/ui/timeline.ts +321 -0
  19. package/.nuxt/ui/toaster.ts +1 -1
  20. package/.nuxt/ui/tooltip.ts +1 -1
  21. package/.nuxt/ui.css +4 -1
  22. package/cli/templates.mjs +7 -4
  23. package/dist/module.json +1 -1
  24. package/dist/module.mjs +2 -2
  25. package/dist/runtime/components/Alert.vue +0 -1
  26. package/dist/runtime/components/Avatar.vue +10 -2
  27. package/dist/runtime/components/Avatar.vue.d.ts +2 -0
  28. package/dist/runtime/components/Calendar.vue +4 -1
  29. package/dist/runtime/components/Carousel.vue +1 -2
  30. package/dist/runtime/components/Checkbox.vue +1 -1
  31. package/dist/runtime/components/CommandPalette.vue +80 -16
  32. package/dist/runtime/components/CommandPalette.vue.d.ts +32 -8
  33. package/dist/runtime/components/ContextMenuContent.vue +58 -56
  34. package/dist/runtime/components/ContextMenuContent.vue.d.ts +4 -20
  35. package/dist/runtime/components/Drawer.vue +15 -1
  36. package/dist/runtime/components/DropdownMenuContent.vue +60 -58
  37. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +4 -20
  38. package/dist/runtime/components/Form.vue +6 -6
  39. package/dist/runtime/components/Form.vue.d.ts +12 -11
  40. package/dist/runtime/components/Input.vue +1 -0
  41. package/dist/runtime/components/Input.vue.d.ts +7 -0
  42. package/dist/runtime/components/InputMenu.vue +3 -3
  43. package/dist/runtime/components/InputMenu.vue.d.ts +4 -4
  44. package/dist/runtime/components/InputNumber.vue +3 -2
  45. package/dist/runtime/components/InputNumber.vue.d.ts +1 -1
  46. package/dist/runtime/components/InputTags.vue +159 -0
  47. package/dist/runtime/components/InputTags.vue.d.ts +183 -0
  48. package/dist/runtime/components/Modal.vue +16 -15
  49. package/dist/runtime/components/Modal.vue.d.ts +17 -4
  50. package/dist/runtime/components/NavigationMenu.vue +85 -26
  51. package/dist/runtime/components/NavigationMenu.vue.d.ts +30 -17
  52. package/dist/runtime/components/OverlayProvider.vue +2 -2
  53. package/dist/runtime/components/Pagination.vue +1 -1
  54. package/dist/runtime/components/Pagination.vue.d.ts +0 -1
  55. package/dist/runtime/components/PinInput.vue +4 -3
  56. package/dist/runtime/components/PinInput.vue.d.ts +22 -19
  57. package/dist/runtime/components/Popover.vue +4 -0
  58. package/dist/runtime/components/Popover.vue.d.ts +1 -0
  59. package/dist/runtime/components/Progress.vue +2 -1
  60. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  61. package/dist/runtime/components/RadioGroup.vue +2 -2
  62. package/dist/runtime/components/Select.vue +26 -7
  63. package/dist/runtime/components/Select.vue.d.ts +107 -1
  64. package/dist/runtime/components/SelectMenu.vue +27 -8
  65. package/dist/runtime/components/SelectMenu.vue.d.ts +105 -1
  66. package/dist/runtime/components/Slideover.vue +23 -15
  67. package/dist/runtime/components/Slideover.vue.d.ts +17 -4
  68. package/dist/runtime/components/Table.vue +7 -1
  69. package/dist/runtime/components/Table.vue.d.ts +10 -8
  70. package/dist/runtime/components/Tabs.vue +13 -2
  71. package/dist/runtime/components/Tabs.vue.d.ts +4 -1
  72. package/dist/runtime/components/Textarea.vue +4 -1
  73. package/dist/runtime/components/Textarea.vue.d.ts +11 -4
  74. package/dist/runtime/components/Timeline.vue +92 -0
  75. package/dist/runtime/components/Timeline.vue.d.ts +70 -0
  76. package/dist/runtime/components/Toast.vue +4 -5
  77. package/dist/runtime/components/Tree.vue +3 -2
  78. package/dist/runtime/components/Tree.vue.d.ts +1 -1
  79. package/dist/runtime/composables/defineLocale.d.ts +2 -0
  80. package/dist/runtime/composables/defineLocale.js +4 -0
  81. package/dist/runtime/composables/defineShortcuts.js +2 -2
  82. package/dist/runtime/composables/useOverlay.d.ts +2 -1
  83. package/dist/runtime/composables/useOverlay.js +7 -6
  84. package/dist/runtime/locale/ar.js +2 -1
  85. package/dist/runtime/locale/az.js +2 -1
  86. package/dist/runtime/locale/bg.js +2 -1
  87. package/dist/runtime/locale/bn.js +2 -1
  88. package/dist/runtime/locale/ca.js +2 -1
  89. package/dist/runtime/locale/ckb.js +2 -1
  90. package/dist/runtime/locale/cs.js +2 -1
  91. package/dist/runtime/locale/da.js +2 -1
  92. package/dist/runtime/locale/de.js +2 -1
  93. package/dist/runtime/locale/el.js +2 -1
  94. package/dist/runtime/locale/en.js +2 -1
  95. package/dist/runtime/locale/es.js +2 -1
  96. package/dist/runtime/locale/et.js +2 -1
  97. package/dist/runtime/locale/fa_ir.js +2 -1
  98. package/dist/runtime/locale/fi.js +2 -1
  99. package/dist/runtime/locale/fr.js +2 -1
  100. package/dist/runtime/locale/he.js +2 -1
  101. package/dist/runtime/locale/hi.js +2 -1
  102. package/dist/runtime/locale/hu.js +2 -1
  103. package/dist/runtime/locale/hy.js +2 -1
  104. package/dist/runtime/locale/id.js +2 -1
  105. package/dist/runtime/locale/index.d.ts +7 -2
  106. package/dist/runtime/locale/index.js +7 -2
  107. package/dist/runtime/locale/it.js +2 -1
  108. package/dist/runtime/locale/ja.js +2 -1
  109. package/dist/runtime/locale/kk.js +2 -1
  110. package/dist/runtime/locale/km.js +2 -1
  111. package/dist/runtime/locale/ko.js +2 -1
  112. package/dist/runtime/locale/ky.d.ts +3 -0
  113. package/dist/runtime/locale/ky.js +55 -0
  114. package/dist/runtime/locale/lb.d.ts +3 -0
  115. package/dist/runtime/locale/lb.js +55 -0
  116. package/dist/runtime/locale/lt.d.ts +3 -0
  117. package/dist/runtime/locale/lt.js +55 -0
  118. package/dist/runtime/locale/mn.d.ts +3 -0
  119. package/dist/runtime/locale/mn.js +55 -0
  120. package/dist/runtime/locale/ms.d.ts +3 -0
  121. package/dist/runtime/locale/ms.js +55 -0
  122. package/dist/runtime/locale/nb_no.js +2 -1
  123. package/dist/runtime/locale/nl.js +2 -1
  124. package/dist/runtime/locale/pl.js +2 -1
  125. package/dist/runtime/locale/pt.js +2 -1
  126. package/dist/runtime/locale/pt_br.js +2 -1
  127. package/dist/runtime/locale/ro.js +2 -1
  128. package/dist/runtime/locale/ru.js +2 -1
  129. package/dist/runtime/locale/sk.js +2 -1
  130. package/dist/runtime/locale/sl.js +2 -1
  131. package/dist/runtime/locale/sv.js +2 -1
  132. package/dist/runtime/locale/th.js +2 -1
  133. package/dist/runtime/locale/tj.js +2 -1
  134. package/dist/runtime/locale/tr.js +2 -1
  135. package/dist/runtime/locale/ug_cn.js +2 -1
  136. package/dist/runtime/locale/uk.js +2 -1
  137. package/dist/runtime/locale/ur.js +2 -1
  138. package/dist/runtime/locale/uz.js +2 -1
  139. package/dist/runtime/locale/vi.js +2 -1
  140. package/dist/runtime/locale/zh_cn.js +2 -1
  141. package/dist/runtime/locale/zh_tw.js +2 -1
  142. package/dist/runtime/types/form.d.ts +11 -10
  143. package/dist/runtime/types/index.d.ts +2 -0
  144. package/dist/runtime/types/index.js +2 -0
  145. package/dist/runtime/types/locale.d.ts +1 -0
  146. package/dist/runtime/types/utils.d.ts +3 -0
  147. package/dist/shared/{ui.BvUP-pSb.mjs → ui.BPVxSPGY.mjs} +332 -62
  148. package/dist/unplugin.mjs +1 -1
  149. package/dist/vite.mjs +1 -1
  150. package/package.json +35 -36
@@ -12,7 +12,7 @@ const size = [
12
12
 
13
13
  export default {
14
14
  "slots": {
15
- "root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-elevated",
15
+ "root": "inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-elevated",
16
16
  "image": "h-full w-full rounded-[inherit] object-cover",
17
17
  "fallback": "font-medium leading-none text-muted truncate",
18
18
  "icon": "text-muted shrink-0"
package/.nuxt/ui/card.ts CHANGED
@@ -7,7 +7,7 @@ const variant = [
7
7
 
8
8
  export default {
9
9
  "slots": {
10
- "root": "rounded-lg",
10
+ "root": "rounded-lg overflow-hidden",
11
11
  "header": "p-4 sm:px-6",
12
12
  "body": "p-4 sm:p-6",
13
13
  "footer": "p-4 sm:px-6"
@@ -31,7 +31,7 @@ export default {
31
31
  },
32
32
  "active": {
33
33
  "true": {
34
- "dot": "bg-inverted"
34
+ "dot": "data-[state=active]:bg-inverted"
35
35
  }
36
36
  }
37
37
  }
@@ -127,7 +127,7 @@ export default {
127
127
  "orientation": "horizontal" as typeof orientation[number],
128
128
  "variant": "table" as typeof variant[number],
129
129
  "class": {
130
- "item": "first-of-type:rounded-l-lg last-of-type:rounded-r-lg",
130
+ "item": "first-of-type:rounded-s-lg last-of-type:rounded-e-lg",
131
131
  "fieldset": "gap-0 -space-x-px"
132
132
  }
133
133
  },
@@ -3,6 +3,7 @@ export default {
3
3
  "root": "flex flex-col min-h-0 min-w-0 divide-y divide-default",
4
4
  "input": "[&>input]:h-12",
5
5
  "close": "",
6
+ "back": "p-0",
6
7
  "content": "relative overflow-hidden flex flex-col",
7
8
  "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
8
9
  "group": "p-1 isolate",
@@ -18,7 +18,8 @@ const size = [
18
18
 
19
19
  export default {
20
20
  "slots": {
21
- "content": "min-w-32 bg-default shadow-lg rounded-md ring ring-default divide-y divide-default overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-context-menu-content-transform-origin)",
21
+ "content": "min-w-32 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-context-menu-content-transform-origin) flex flex-col",
22
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
22
23
  "group": "p-1 isolate",
23
24
  "label": "w-full flex items-center font-semibold text-highlighted",
24
25
  "separator": "-mx-1 my-1 h-px bg-border",
@@ -41,7 +41,7 @@ export default {
41
41
  },
42
42
  "inset": {
43
43
  "true": {
44
- "content": "rounded-lg after:hidden"
44
+ "content": "rounded-lg after:hidden overflow-hidden"
45
45
  }
46
46
  }
47
47
  },
@@ -18,7 +18,8 @@ const size = [
18
18
 
19
19
  export default {
20
20
  "slots": {
21
- "content": "min-w-32 bg-default shadow-lg rounded-md ring ring-default divide-y divide-default overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin)",
21
+ "content": "min-w-32 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-dropdown-menu-content-transform-origin) flex flex-col",
22
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
22
23
  "arrow": "fill-default",
23
24
  "group": "p-1 isolate",
24
25
  "label": "w-full flex items-center font-semibold text-highlighted",
package/.nuxt/ui/index.ts CHANGED
@@ -24,6 +24,7 @@ export { default as formField } from './form-field'
24
24
  export { default as input } from './input'
25
25
  export { default as inputMenu } from './input-menu'
26
26
  export { default as inputNumber } from './input-number'
27
+ export { default as inputTags } from './input-tags'
27
28
  export { default as kbd } from './kbd'
28
29
  export { default as link } from './link'
29
30
  export { default as modal } from './modal'
@@ -44,6 +45,7 @@ export { default as switch } from './switch'
44
45
  export { default as table } from './table'
45
46
  export { default as tabs } from './tabs'
46
47
  export { default as textarea } from './textarea'
48
+ export { default as timeline } from './timeline'
47
49
  export { default as toast } from './toast'
48
50
  export { default as toaster } from './toaster'
49
51
  export { default as tooltip } from './tooltip'
@@ -38,10 +38,10 @@ export default {
38
38
  "trailing": "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
39
39
  "trailingIcon": "shrink-0 text-dimmed",
40
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",
42
- "viewport": "divide-y divide-default scroll-py-1",
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 divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
43
43
  "group": "p-1 isolate",
44
- "empty": "py-2 text-center text-sm text-muted",
44
+ "empty": "text-center text-muted",
45
45
  "label": "font-semibold text-highlighted",
46
46
  "separator": "-mx-1 my-1 h-px bg-border",
47
47
  "item": [
@@ -65,8 +65,8 @@ export default {
65
65
  "inline-flex items-center rounded-xs text-dimmed hover:text-default hover:bg-accented/75 disabled:pointer-events-none",
66
66
  "transition-colors"
67
67
  ],
68
- "tagsItemDeleteIcon": "",
69
- "tagsInput": ""
68
+ "tagsItemDeleteIcon": "shrink-0",
69
+ "tagsInput": "flex-1 border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
70
70
  },
71
71
  "variants": {
72
72
  "buttonGroup": {
@@ -95,7 +95,8 @@ export default {
95
95
  "itemLeadingChipSize": "sm",
96
96
  "itemTrailingIcon": "size-4",
97
97
  "tagsItem": "text-[10px]/3",
98
- "tagsItemDeleteIcon": "size-3"
98
+ "tagsItemDeleteIcon": "size-3",
99
+ "empty": "p-1 text-xs"
99
100
  },
100
101
  "sm": {
101
102
  "base": "px-2.5 py-1.5 text-xs gap-1.5",
@@ -112,7 +113,8 @@ export default {
112
113
  "itemLeadingChipSize": "sm",
113
114
  "itemTrailingIcon": "size-4",
114
115
  "tagsItem": "text-[10px]/3",
115
- "tagsItemDeleteIcon": "size-3"
116
+ "tagsItemDeleteIcon": "size-3",
117
+ "empty": "p-1.5 text-xs"
116
118
  },
117
119
  "md": {
118
120
  "base": "px-2.5 py-1.5 text-sm gap-1.5",
@@ -129,7 +131,8 @@ export default {
129
131
  "itemLeadingChipSize": "md",
130
132
  "itemTrailingIcon": "size-5",
131
133
  "tagsItem": "text-xs",
132
- "tagsItemDeleteIcon": "size-3.5"
134
+ "tagsItemDeleteIcon": "size-3.5",
135
+ "empty": "p-1.5 text-sm"
133
136
  },
134
137
  "lg": {
135
138
  "base": "px-3 py-2 text-sm gap-2",
@@ -146,7 +149,8 @@ export default {
146
149
  "itemLeadingChipSize": "md",
147
150
  "itemTrailingIcon": "size-5",
148
151
  "tagsItem": "text-xs",
149
- "tagsItemDeleteIcon": "size-3.5"
152
+ "tagsItemDeleteIcon": "size-3.5",
153
+ "empty": "p-2 text-sm"
150
154
  },
151
155
  "xl": {
152
156
  "base": "px-3 py-2 text-base gap-2",
@@ -163,7 +167,8 @@ export default {
163
167
  "itemLeadingChipSize": "lg",
164
168
  "itemTrailingIcon": "size-6",
165
169
  "tagsItem": "text-sm",
166
- "tagsItemDeleteIcon": "size-4"
170
+ "tagsItemDeleteIcon": "size-4",
171
+ "empty": "p-2 text-base"
167
172
  }
168
173
  },
169
174
  "variant": {
@@ -199,8 +204,7 @@ export default {
199
204
  },
200
205
  "multiple": {
201
206
  "true": {
202
- "root": "flex-wrap",
203
- "tagsInput": "border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
207
+ "root": "flex-wrap"
204
208
  },
205
209
  "false": {
206
210
  "base": "w-full border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
@@ -208,6 +212,16 @@ export default {
208
212
  }
209
213
  },
210
214
  "compoundVariants": [
215
+ {
216
+ "variant": "soft" as typeof variant[number],
217
+ "multiple": true,
218
+ "class": "has-focus:bg-elevated"
219
+ },
220
+ {
221
+ "variant": "ghost" as typeof variant[number],
222
+ "multiple": true,
223
+ "class": "has-focus:bg-elevated"
224
+ },
211
225
  {
212
226
  "color": "primary" as typeof color[number],
213
227
  "multiple": true,
@@ -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
+ "buttonGroup": {
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
+ }
package/.nuxt/ui/modal.ts CHANGED
@@ -22,7 +22,7 @@ export default {
22
22
  "content": "inset-0"
23
23
  },
24
24
  "false": {
25
- "content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-lg shadow-lg ring ring-default"
25
+ "content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-lg shadow-lg ring ring-default overflow-hidden"
26
26
  }
27
27
  }
28
28
  }