@nuxt/ui 3.1.0 → 3.1.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 (187) hide show
  1. package/.nuxt/ui/accordion.ts +2 -23
  2. package/.nuxt/ui/alert.ts +2 -28
  3. package/.nuxt/ui/avatar-group.ts +2 -23
  4. package/.nuxt/ui/avatar.ts +2 -23
  5. package/.nuxt/ui/badge.ts +32 -30
  6. package/.nuxt/ui/breadcrumb.ts +2 -23
  7. package/.nuxt/ui/button-group.ts +2 -36
  8. package/.nuxt/ui/button.ts +4 -30
  9. package/.nuxt/ui/calendar.ts +4 -25
  10. package/.nuxt/ui/card.ts +2 -23
  11. package/.nuxt/ui/carousel.ts +2 -28
  12. package/.nuxt/ui/checkbox-group.ts +146 -24
  13. package/.nuxt/ui/checkbox.ts +2 -23
  14. package/.nuxt/ui/chip.ts +2 -23
  15. package/.nuxt/ui/collapsible.ts +2 -23
  16. package/.nuxt/ui/color-picker.ts +4 -25
  17. package/.nuxt/ui/command-palette.ts +2 -23
  18. package/.nuxt/ui/container.ts +2 -23
  19. package/.nuxt/ui/context-menu.ts +2 -23
  20. package/.nuxt/ui/drawer.ts +2 -23
  21. package/.nuxt/ui/dropdown-menu.ts +2 -23
  22. package/.nuxt/ui/form-field.ts +2 -23
  23. package/.nuxt/ui/form.ts +2 -23
  24. package/.nuxt/ui/input-menu.ts +4 -34
  25. package/.nuxt/ui/input-number.ts +12 -23
  26. package/.nuxt/ui/input.ts +4 -34
  27. package/.nuxt/ui/kbd.ts +2 -23
  28. package/.nuxt/ui/link.ts +14 -28
  29. package/.nuxt/ui/modal.ts +2 -23
  30. package/.nuxt/ui/navigation-menu.ts +3 -24
  31. package/.nuxt/ui/pagination.ts +2 -23
  32. package/.nuxt/ui/pin-input.ts +2 -23
  33. package/.nuxt/ui/popover.ts +2 -23
  34. package/.nuxt/ui/progress.ts +2 -23
  35. package/.nuxt/ui/radio-group.ts +2 -23
  36. package/.nuxt/ui/select-menu.ts +4 -34
  37. package/.nuxt/ui/select.ts +4 -34
  38. package/.nuxt/ui/separator.ts +2 -23
  39. package/.nuxt/ui/skeleton.ts +2 -23
  40. package/.nuxt/ui/slideover.ts +2 -23
  41. package/.nuxt/ui/slider.ts +2 -23
  42. package/.nuxt/ui/stepper.ts +2 -23
  43. package/.nuxt/ui/switch.ts +2 -23
  44. package/.nuxt/ui/table.ts +2 -23
  45. package/.nuxt/ui/tabs.ts +6 -26
  46. package/.nuxt/ui/textarea.ts +4 -34
  47. package/.nuxt/ui/toast.ts +2 -28
  48. package/.nuxt/ui/toaster.ts +2 -23
  49. package/.nuxt/ui/tooltip.ts +2 -23
  50. package/.nuxt/ui/tree.ts +2 -23
  51. package/.nuxt/ui.css +15 -8
  52. package/README.md +4 -0
  53. package/cli/templates.mjs +2 -2
  54. package/dist/module.json +1 -1
  55. package/dist/module.mjs +15 -5
  56. package/dist/runtime/components/Accordion.vue +9 -9
  57. package/dist/runtime/components/Accordion.vue.d.ts +6 -20
  58. package/dist/runtime/components/Alert.vue +1 -1
  59. package/dist/runtime/components/Alert.vue.d.ts +7 -22
  60. package/dist/runtime/components/App.vue.d.ts +2 -2
  61. package/dist/runtime/components/Avatar.vue +2 -2
  62. package/dist/runtime/components/Avatar.vue.d.ts +4 -25
  63. package/dist/runtime/components/AvatarGroup.vue +1 -1
  64. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -11
  65. package/dist/runtime/components/Badge.vue +5 -3
  66. package/dist/runtime/components/Badge.vue.d.ts +5 -24
  67. package/dist/runtime/components/Breadcrumb.vue +8 -8
  68. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -20
  69. package/dist/runtime/components/Button.vue +2 -3
  70. package/dist/runtime/components/Button.vue.d.ts +4 -29
  71. package/dist/runtime/components/ButtonGroup.vue.d.ts +3 -24
  72. package/dist/runtime/components/Calendar.vue +2 -1
  73. package/dist/runtime/components/Calendar.vue.d.ts +6 -2
  74. package/dist/runtime/components/Card.vue +1 -1
  75. package/dist/runtime/components/Card.vue.d.ts +2 -11
  76. package/dist/runtime/components/Carousel.vue +5 -2
  77. package/dist/runtime/components/Carousel.vue.d.ts +10 -3
  78. package/dist/runtime/components/Checkbox.vue +2 -2
  79. package/dist/runtime/components/Checkbox.vue.d.ts +10 -13
  80. package/dist/runtime/components/CheckboxGroup.vue +8 -5
  81. package/dist/runtime/components/CheckboxGroup.vue.d.ts +12 -3
  82. package/dist/runtime/components/Chip.vue +1 -1
  83. package/dist/runtime/components/Chip.vue.d.ts +10 -24
  84. package/dist/runtime/components/Collapsible.vue +1 -1
  85. package/dist/runtime/components/Collapsible.vue.d.ts +7 -22
  86. package/dist/runtime/components/ColorPicker.vue +1 -1
  87. package/dist/runtime/components/ColorPicker.vue.d.ts +9 -24
  88. package/dist/runtime/components/CommandPalette.vue +17 -17
  89. package/dist/runtime/components/CommandPalette.vue.d.ts +17 -27
  90. package/dist/runtime/components/Container.vue.d.ts +2 -11
  91. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -24
  92. package/dist/runtime/components/ContextMenuContent.vue +15 -15
  93. package/dist/runtime/components/ContextMenuContent.vue.d.ts +17 -57
  94. package/dist/runtime/components/Drawer.vue.d.ts +17 -27
  95. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -28
  96. package/dist/runtime/components/DropdownMenuContent.vue +15 -15
  97. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +19 -6
  98. package/dist/runtime/components/Form.vue.d.ts +5 -2
  99. package/dist/runtime/components/FormField.vue +5 -5
  100. package/dist/runtime/components/FormField.vue.d.ts +2 -11
  101. package/dist/runtime/components/Icon.vue.d.ts +1 -10
  102. package/dist/runtime/components/Input.vue +2 -2
  103. package/dist/runtime/components/Input.vue.d.ts +20 -41
  104. package/dist/runtime/components/InputMenu.vue +17 -17
  105. package/dist/runtime/components/InputMenu.vue.d.ts +227 -5
  106. package/dist/runtime/components/InputNumber.vue +13 -7
  107. package/dist/runtime/components/InputNumber.vue.d.ts +90 -23
  108. package/dist/runtime/components/Kbd.vue.d.ts +3 -24
  109. package/dist/runtime/components/Link.vue +5 -14
  110. package/dist/runtime/components/Link.vue.d.ts +3 -34
  111. package/dist/runtime/components/LinkBase.vue.d.ts +4 -27
  112. package/dist/runtime/components/Modal.vue.d.ts +12 -28
  113. package/dist/runtime/components/NavigationMenu.vue +35 -28
  114. package/dist/runtime/components/NavigationMenu.vue.d.ts +24 -26
  115. package/dist/runtime/components/Pagination.vue +1 -1
  116. package/dist/runtime/components/Pagination.vue.d.ts +9 -33
  117. package/dist/runtime/components/PinInput.vue +1 -1
  118. package/dist/runtime/components/PinInput.vue.d.ts +13 -24
  119. package/dist/runtime/components/Popover.vue.d.ts +9 -26
  120. package/dist/runtime/components/Progress.vue +1 -1
  121. package/dist/runtime/components/Progress.vue.d.ts +10 -41
  122. package/dist/runtime/components/RadioGroup.vue +8 -8
  123. package/dist/runtime/components/RadioGroup.vue.d.ts +8 -3
  124. package/dist/runtime/components/Select.vue +12 -12
  125. package/dist/runtime/components/Select.vue.d.ts +11 -3
  126. package/dist/runtime/components/SelectMenu.vue +13 -13
  127. package/dist/runtime/components/SelectMenu.vue.d.ts +19 -5
  128. package/dist/runtime/components/Separator.vue +1 -1
  129. package/dist/runtime/components/Separator.vue.d.ts +3 -24
  130. package/dist/runtime/components/Skeleton.vue.d.ts +3 -12
  131. package/dist/runtime/components/Slideover.vue.d.ts +12 -29
  132. package/dist/runtime/components/Slider.vue +16 -4
  133. package/dist/runtime/components/Slider.vue.d.ts +23 -36
  134. package/dist/runtime/components/Stepper.vue +10 -10
  135. package/dist/runtime/components/Stepper.vue.d.ts +10 -14
  136. package/dist/runtime/components/Switch.vue +1 -1
  137. package/dist/runtime/components/Switch.vue.d.ts +10 -13
  138. package/dist/runtime/components/Table.vue +2 -2
  139. package/dist/runtime/components/Table.vue.d.ts +17 -17
  140. package/dist/runtime/components/Tabs.vue +6 -6
  141. package/dist/runtime/components/Tabs.vue.d.ts +6 -20
  142. package/dist/runtime/components/Textarea.vue +3 -3
  143. package/dist/runtime/components/Textarea.vue.d.ts +20 -44
  144. package/dist/runtime/components/Toast.vue +3 -2
  145. package/dist/runtime/components/Toast.vue.d.ts +92 -24
  146. package/dist/runtime/components/Toaster.vue +4 -4
  147. package/dist/runtime/components/Toaster.vue.d.ts +9 -28
  148. package/dist/runtime/components/Tooltip.vue.d.ts +7 -22
  149. package/dist/runtime/components/Tree.vue +10 -10
  150. package/dist/runtime/components/Tree.vue.d.ts +7 -22
  151. package/dist/runtime/composables/defineShortcuts.js +6 -0
  152. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  153. package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
  154. package/dist/runtime/composables/useFormField.d.ts +2 -2
  155. package/dist/runtime/composables/useFormField.js +2 -1
  156. package/dist/runtime/composables/useKbd.d.ts +1 -0
  157. package/dist/runtime/composables/useKbd.js +4 -3
  158. package/dist/runtime/composables/useOverlay.d.ts +9 -10
  159. package/dist/runtime/composables/useOverlay.js +11 -6
  160. package/dist/runtime/inertia/components/Link.vue +46 -60
  161. package/dist/runtime/inertia/components/Link.vue.d.ts +4 -33
  162. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  163. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  164. package/dist/runtime/inertia/stubs.d.ts +1 -1
  165. package/dist/runtime/inertia/stubs.js +1 -1
  166. package/dist/runtime/locale/index.d.ts +1 -0
  167. package/dist/runtime/locale/index.js +1 -0
  168. package/dist/runtime/locale/sl.d.ts +3 -0
  169. package/dist/runtime/locale/sl.js +54 -0
  170. package/dist/runtime/types/tv.d.ts +53 -0
  171. package/dist/runtime/types/tv.js +0 -0
  172. package/dist/runtime/types/utils.d.ts +2 -52
  173. package/dist/runtime/types/utils.js +1 -0
  174. package/dist/runtime/utils/link.d.ts +1 -0
  175. package/dist/runtime/utils/link.js +12 -0
  176. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -10
  177. package/dist/runtime/vue/components/Link.vue +27 -40
  178. package/dist/runtime/vue/components/Link.vue.d.ts +3 -34
  179. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  180. package/dist/runtime/vue/stubs.d.ts +1 -1
  181. package/dist/runtime/vue/stubs.js +1 -1
  182. package/dist/shared/{ui.D7lOOabO.mjs → ui.BvUP-pSb.mjs} +120 -27
  183. package/dist/unplugin.d.mts +2 -2
  184. package/dist/unplugin.mjs +1 -1
  185. package/dist/vite.d.mts +1 -1
  186. package/dist/vite.mjs +2 -2
  187. package/package.json +28 -27
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/slideover"
2
-
3
1
  const side = [
4
2
  "top",
5
3
  "right",
@@ -7,24 +5,7 @@ const side = [
7
5
  "left"
8
6
  ] as const
9
7
 
10
- const result = typeof template === 'function' ? (template as Function)({
11
- "prefix": "U",
12
- "fonts": true,
13
- "colorMode": true,
14
- "theme": {
15
- "colors": [
16
- "primary",
17
- "secondary",
18
- "success",
19
- "info",
20
- "warning",
21
- "error"
22
- ],
23
- "transitions": true
24
- }
25
- }) : template
26
-
27
- const theme = {
8
+ export default {
28
9
  "slots": {
29
10
  "overlay": "fixed inset-0 bg-elevated/75",
30
11
  "content": "fixed bg-default divide-y divide-default sm:ring ring-default sm:shadow-lg flex flex-col focus:outline-none",
@@ -87,6 +68,4 @@ const theme = {
87
68
  }
88
69
  }
89
70
  ]
90
- }
91
-
92
- export default result as typeof theme
71
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/slider"
2
-
3
1
  const color = [
4
2
  "primary",
5
3
  "secondary",
@@ -23,24 +21,7 @@ const orientation = [
23
21
  "vertical"
24
22
  ] as const
25
23
 
26
- const result = typeof template === 'function' ? (template as Function)({
27
- "prefix": "U",
28
- "fonts": true,
29
- "colorMode": true,
30
- "theme": {
31
- "colors": [
32
- "primary",
33
- "secondary",
34
- "success",
35
- "info",
36
- "warning",
37
- "error"
38
- ],
39
- "transitions": true
40
- }
41
- }) : template
42
-
43
- const theme = {
24
+ export default {
44
25
  "slots": {
45
26
  "root": "relative flex items-center select-none touch-none",
46
27
  "track": "relative bg-accented overflow-hidden rounded-full grow",
@@ -187,6 +168,4 @@ const theme = {
187
168
  "size": "md" as typeof size[number],
188
169
  "color": "primary" as typeof color[number]
189
170
  }
190
- }
191
-
192
- export default result as typeof theme
171
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/stepper"
2
-
3
1
  const orientation = [
4
2
  "horizontal",
5
3
  "vertical"
@@ -23,24 +21,7 @@ const color = [
23
21
  "neutral"
24
22
  ] as const
25
23
 
26
- const result = typeof template === 'function' ? (template as Function)({
27
- "prefix": "U",
28
- "fonts": true,
29
- "colorMode": true,
30
- "theme": {
31
- "colors": [
32
- "primary",
33
- "secondary",
34
- "success",
35
- "info",
36
- "warning",
37
- "error"
38
- ],
39
- "transitions": true
40
- }
41
- }) : template
42
-
43
- const theme = {
24
+ export default {
44
25
  "slots": {
45
26
  "root": "flex gap-4",
46
27
  "header": "flex",
@@ -218,6 +199,4 @@ const theme = {
218
199
  "size": "md" as typeof size[number],
219
200
  "color": "primary" as typeof color[number]
220
201
  }
221
- }
222
-
223
- export default result as typeof theme
202
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/switch"
2
-
3
1
  const color = [
4
2
  "primary",
5
3
  "secondary",
@@ -18,24 +16,7 @@ const size = [
18
16
  "xl"
19
17
  ] as const
20
18
 
21
- const result = typeof template === 'function' ? (template as Function)({
22
- "prefix": "U",
23
- "fonts": true,
24
- "colorMode": true,
25
- "theme": {
26
- "colors": [
27
- "primary",
28
- "secondary",
29
- "success",
30
- "info",
31
- "warning",
32
- "error"
33
- ],
34
- "transitions": true
35
- }
36
- }) : template
37
-
38
- const theme = {
19
+ export default {
39
20
  "slots": {
40
21
  "root": "relative flex items-start",
41
22
  "base": [
@@ -147,6 +128,4 @@ const theme = {
147
128
  "color": "primary" as typeof color[number],
148
129
  "size": "md" as typeof size[number]
149
130
  }
150
- }
151
-
152
- export default result as typeof theme
131
+ }
package/.nuxt/ui/table.ts CHANGED
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/table"
2
-
3
1
  const loadingAnimation = [
4
2
  "carousel",
5
3
  "carousel-inverse",
@@ -17,24 +15,7 @@ const loadingColor = [
17
15
  "neutral"
18
16
  ] as const
19
17
 
20
- const result = typeof template === 'function' ? (template as Function)({
21
- "prefix": "U",
22
- "fonts": true,
23
- "colorMode": true,
24
- "theme": {
25
- "colors": [
26
- "primary",
27
- "secondary",
28
- "success",
29
- "info",
30
- "warning",
31
- "error"
32
- ],
33
- "transitions": true
34
- }
35
- }) : template
36
-
37
- const theme = {
18
+ export default {
38
19
  "slots": {
39
20
  "root": "relative overflow-auto",
40
21
  "base": "min-w-full overflow-clip",
@@ -163,6 +144,4 @@ const theme = {
163
144
  "loadingColor": "primary" as typeof loadingColor[number],
164
145
  "loadingAnimation": "carousel" as typeof loadingAnimation[number]
165
146
  }
166
- }
167
-
168
- export default result as typeof theme
147
+ }
package/.nuxt/ui/tabs.ts CHANGED
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/tabs"
2
-
3
1
  const color = [
4
2
  "primary",
5
3
  "secondary",
@@ -28,30 +26,13 @@ const size = [
28
26
  "xl"
29
27
  ] as const
30
28
 
31
- const result = typeof template === 'function' ? (template as Function)({
32
- "prefix": "U",
33
- "fonts": true,
34
- "colorMode": true,
35
- "theme": {
36
- "colors": [
37
- "primary",
38
- "secondary",
39
- "success",
40
- "info",
41
- "warning",
42
- "error"
43
- ],
44
- "transitions": true
45
- }
46
- }) : template
47
-
48
- const theme = {
29
+ export default {
49
30
  "slots": {
50
31
  "root": "flex items-center gap-2",
51
32
  "list": "relative flex p-1 group",
52
33
  "indicator": "absolute transition-[translate,width] duration-200",
53
34
  "trigger": [
54
- "group relative inline-flex items-center shrink-0 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",
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",
55
36
  "transition-colors"
56
37
  ],
57
38
  "content": "focus:outline-none w-full",
@@ -73,12 +54,13 @@ const theme = {
73
54
  "variant": {
74
55
  "pill": {
75
56
  "list": "bg-elevated rounded-lg",
76
- "trigger": "flex-1 w-full",
57
+ "trigger": "grow",
77
58
  "indicator": "rounded-md shadow-xs"
78
59
  },
79
60
  "link": {
80
61
  "list": "border-default",
81
- "indicator": "rounded-full"
62
+ "indicator": "rounded-full",
63
+ "trigger": "focus:outline-none"
82
64
  }
83
65
  },
84
66
  "orientation": {
@@ -271,6 +253,4 @@ const theme = {
271
253
  "variant": "pill" as typeof variant[number],
272
254
  "size": "md" as typeof size[number]
273
255
  }
274
- }
275
-
276
- export default result as typeof theme
256
+ }
@@ -1,10 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/textarea"
2
-
3
- const buttonGroup = [
4
- "horizontal",
5
- "vertical"
6
- ] as const
7
-
8
1
  const size = [
9
2
  "xs",
10
3
  "sm",
@@ -31,28 +24,7 @@ const color = [
31
24
  "neutral"
32
25
  ] as const
33
26
 
34
- const type = [
35
- "file"
36
- ] as const
37
-
38
- const result = typeof template === 'function' ? (template as Function)({
39
- "prefix": "U",
40
- "fonts": true,
41
- "colorMode": true,
42
- "theme": {
43
- "colors": [
44
- "primary",
45
- "secondary",
46
- "success",
47
- "info",
48
- "warning",
49
- "error"
50
- ],
51
- "transitions": true
52
- }
53
- }) : template
54
-
55
- const theme = {
27
+ export default {
56
28
  "slots": {
57
29
  "root": "relative inline-flex items-center",
58
30
  "base": [
@@ -69,11 +41,11 @@ const theme = {
69
41
  "variants": {
70
42
  "buttonGroup": {
71
43
  "horizontal": {
72
- "root": "group",
44
+ "root": "group has-focus-visible:z-[1]",
73
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"
74
46
  },
75
47
  "vertical": {
76
- "root": "group",
48
+ "root": "group has-focus-visible:z-[1]",
77
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"
78
50
  }
79
51
  },
@@ -319,6 +291,4 @@ const theme = {
319
291
  "color": "primary" as typeof color[number],
320
292
  "variant": "outline" as typeof variant[number]
321
293
  }
322
- }
323
-
324
- export default result as typeof theme
294
+ }
package/.nuxt/ui/toast.ts CHANGED
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/toast"
2
-
3
1
  const color = [
4
2
  "primary",
5
3
  "secondary",
@@ -10,29 +8,7 @@ const color = [
10
8
  "neutral"
11
9
  ] as const
12
10
 
13
- const orientation = [
14
- "horizontal",
15
- "vertical"
16
- ] as const
17
-
18
- const result = typeof template === 'function' ? (template as Function)({
19
- "prefix": "U",
20
- "fonts": true,
21
- "colorMode": true,
22
- "theme": {
23
- "colors": [
24
- "primary",
25
- "secondary",
26
- "success",
27
- "info",
28
- "warning",
29
- "error"
30
- ],
31
- "transitions": true
32
- }
33
- }) : template
34
-
35
- const theme = {
11
+ export default {
36
12
  "slots": {
37
13
  "root": "relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5 focus:outline-none",
38
14
  "wrapper": "w-0 flex-1 flex flex-col",
@@ -102,6 +78,4 @@ const theme = {
102
78
  "defaultVariants": {
103
79
  "color": "primary" as typeof color[number]
104
80
  }
105
- }
106
-
107
- export default result as typeof theme
81
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/toaster"
2
-
3
1
  const position = [
4
2
  "top-left",
5
3
  "top-center",
@@ -16,24 +14,7 @@ const swipeDirection = [
16
14
  "left"
17
15
  ] as const
18
16
 
19
- const result = typeof template === 'function' ? (template as Function)({
20
- "prefix": "U",
21
- "fonts": true,
22
- "colorMode": true,
23
- "theme": {
24
- "colors": [
25
- "primary",
26
- "secondary",
27
- "success",
28
- "info",
29
- "warning",
30
- "error"
31
- ],
32
- "transitions": true
33
- }
34
- }) : template
35
-
36
- const theme = {
17
+ export default {
37
18
  "slots": {
38
19
  "viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
39
20
  "base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
@@ -107,6 +88,4 @@ const theme = {
107
88
  "defaultVariants": {
108
89
  "position": "bottom-right" as typeof position[number]
109
90
  }
110
- }
111
-
112
- export default result as typeof theme
91
+ }
@@ -1,23 +1,4 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/tooltip"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "prefix": "U",
5
- "fonts": true,
6
- "colorMode": true,
7
- "theme": {
8
- "colors": [
9
- "primary",
10
- "secondary",
11
- "success",
12
- "info",
13
- "warning",
14
- "error"
15
- ],
16
- "transitions": true
17
- }
18
- }) : template
19
-
20
- const theme = {
1
+ export default {
21
2
  "slots": {
22
3
  "content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
23
4
  "arrow": "fill-default",
@@ -25,6 +6,4 @@ const theme = {
25
6
  "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
26
7
  "kbdsSize": "sm"
27
8
  }
28
- }
29
-
30
- export default result as typeof theme
9
+ }
package/.nuxt/ui/tree.ts CHANGED
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/tree"
2
-
3
1
  const color = [
4
2
  "primary",
5
3
  "secondary",
@@ -18,24 +16,7 @@ const size = [
18
16
  "xl"
19
17
  ] as const
20
18
 
21
- const result = typeof template === 'function' ? (template as Function)({
22
- "prefix": "U",
23
- "fonts": true,
24
- "colorMode": true,
25
- "theme": {
26
- "colors": [
27
- "primary",
28
- "secondary",
29
- "success",
30
- "info",
31
- "warning",
32
- "error"
33
- ],
34
- "transitions": true
35
- }
36
- }) : template
37
-
38
- const theme = {
19
+ export default {
39
20
  "slots": {
40
21
  "root": "relative isolate",
41
22
  "item": "",
@@ -170,6 +151,4 @@ const theme = {
170
151
  "color": "primary" as typeof color[number],
171
152
  "size": "md" as typeof size[number]
172
153
  }
173
- }
174
-
175
- export default result as typeof theme
154
+ }
package/.nuxt/ui.css CHANGED
@@ -1,6 +1,6 @@
1
1
  @source "./ui";
2
2
 
3
- @theme default {
3
+ @theme default inline {
4
4
  --color-old-neutral-50: oklch(98.5% 0 0);
5
5
  --color-old-neutral-100: oklch(97% 0 0);
6
6
  --color-old-neutral-200: oklch(92.2% 0 0);
@@ -12,8 +12,7 @@
12
12
  --color-old-neutral-800: oklch(26.9% 0 0);
13
13
  --color-old-neutral-900: oklch(20.5% 0 0);
14
14
  --color-old-neutral-950: oklch(14.5% 0 0);
15
- --color-primary: var(--ui-primary);
16
- --color-primary-50: var(--ui-color-primary-50);
15
+ --color-primary-50: var(--ui-color-primary-50);
17
16
  --color-primary-100: var(--ui-color-primary-100);
18
17
  --color-primary-200: var(--ui-color-primary-200);
19
18
  --color-primary-300: var(--ui-color-primary-300);
@@ -24,7 +23,6 @@
24
23
  --color-primary-800: var(--ui-color-primary-800);
25
24
  --color-primary-900: var(--ui-color-primary-900);
26
25
  --color-primary-950: var(--ui-color-primary-950);
27
- --color-secondary: var(--ui-secondary);
28
26
  --color-secondary-50: var(--ui-color-secondary-50);
29
27
  --color-secondary-100: var(--ui-color-secondary-100);
30
28
  --color-secondary-200: var(--ui-color-secondary-200);
@@ -36,7 +34,6 @@
36
34
  --color-secondary-800: var(--ui-color-secondary-800);
37
35
  --color-secondary-900: var(--ui-color-secondary-900);
38
36
  --color-secondary-950: var(--ui-color-secondary-950);
39
- --color-success: var(--ui-success);
40
37
  --color-success-50: var(--ui-color-success-50);
41
38
  --color-success-100: var(--ui-color-success-100);
42
39
  --color-success-200: var(--ui-color-success-200);
@@ -48,7 +45,6 @@
48
45
  --color-success-800: var(--ui-color-success-800);
49
46
  --color-success-900: var(--ui-color-success-900);
50
47
  --color-success-950: var(--ui-color-success-950);
51
- --color-info: var(--ui-info);
52
48
  --color-info-50: var(--ui-color-info-50);
53
49
  --color-info-100: var(--ui-color-info-100);
54
50
  --color-info-200: var(--ui-color-info-200);
@@ -60,7 +56,6 @@
60
56
  --color-info-800: var(--ui-color-info-800);
61
57
  --color-info-900: var(--ui-color-info-900);
62
58
  --color-info-950: var(--ui-color-info-950);
63
- --color-warning: var(--ui-warning);
64
59
  --color-warning-50: var(--ui-color-warning-50);
65
60
  --color-warning-100: var(--ui-color-warning-100);
66
61
  --color-warning-200: var(--ui-color-warning-200);
@@ -72,7 +67,6 @@
72
67
  --color-warning-800: var(--ui-color-warning-800);
73
68
  --color-warning-900: var(--ui-color-warning-900);
74
69
  --color-warning-950: var(--ui-color-warning-950);
75
- --color-error: var(--ui-error);
76
70
  --color-error-50: var(--ui-color-error-50);
77
71
  --color-error-100: var(--ui-color-error-100);
78
72
  --color-error-200: var(--ui-color-error-200);
@@ -95,6 +89,12 @@
95
89
  --color-neutral-800: var(--ui-color-neutral-800);
96
90
  --color-neutral-900: var(--ui-color-neutral-900);
97
91
  --color-neutral-950: var(--ui-color-neutral-950);
92
+ --color-primary: var(--ui-primary);
93
+ --color-secondary: var(--ui-secondary);
94
+ --color-success: var(--ui-success);
95
+ --color-info: var(--ui-info);
96
+ --color-warning: var(--ui-warning);
97
+ --color-error: var(--ui-error);
98
98
  --radius-xs: calc(var(--ui-radius) * 0.5);
99
99
  --radius-sm: var(--ui-radius);
100
100
  --radius-md: calc(var(--ui-radius) * 1.5);
@@ -118,15 +118,22 @@
118
118
  --border-color-muted: var(--ui-border-muted);
119
119
  --border-color-accented: var(--ui-border-accented);
120
120
  --border-color-inverted: var(--ui-border-inverted);
121
+ --border-color-bg: var(--ui-bg);
121
122
  --ring-color-default: var(--ui-border);
122
123
  --ring-color-muted: var(--ui-border-muted);
123
124
  --ring-color-accented: var(--ui-border-accented);
124
125
  --ring-color-inverted: var(--ui-border-inverted);
125
126
  --ring-color-bg: var(--ui-bg);
127
+ --ring-offset-color-default: var(--ui-border);
128
+ --ring-offset-color-muted: var(--ui-border-muted);
129
+ --ring-offset-color-accented: var(--ui-border-accented);
130
+ --ring-offset-color-inverted: var(--ui-border-inverted);
131
+ --ring-offset-color-bg: var(--ui-bg);
126
132
  --divide-color-default: var(--ui-border);
127
133
  --divide-color-muted: var(--ui-border-muted);
128
134
  --divide-color-accented: var(--ui-border-accented);
129
135
  --divide-color-inverted: var(--ui-border-inverted);
136
+ --divide-color-bg: var(--ui-bg);
130
137
  --outline-color-default: var(--ui-border);
131
138
  --outline-color-inverted: var(--ui-border-inverted);
132
139
  --stroke-default: var(--ui-border);
package/README.md CHANGED
@@ -16,6 +16,10 @@ Nuxt UI harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Ta
16
16
  > [!NOTE]
17
17
  > You are on the `v3` development branch, check out the [v2 branch](https://github.com/nuxt/ui/tree/v2) for Nuxt UI v2.
18
18
 
19
+ > [!TIP]
20
+ > **Looking for more components ?**
21
+ > Check out [Nuxt UI Pro](https://ui.nuxt.com/pro), a collection of premium Vue components, composables, and utilities built on top of Nuxt UI for faster and more powerful app development.
22
+
19
23
  ## Documentation
20
24
 
21
25
  Visit https://ui.nuxt.com to explore the documentation.
package/cli/templates.mjs CHANGED
@@ -66,7 +66,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.${camelName}
66
66
  </script>
67
67
 
68
68
  <template>
69
- <Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })">
69
+ <Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
70
70
  <slot />
71
71
  </Primitive>
72
72
  </template>
@@ -109,7 +109,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.${camelName}
109
109
  </script>
110
110
 
111
111
  <template>
112
- <${upperName}Root v-bind="rootProps" :class="ui.root({ class: [props.class, props.ui?.root] })" />
112
+ <${upperName}Root v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })" />
113
113
  </template>
114
114
  `
115
115
  }
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "docs": "https://ui.nuxt.com/getting-started/installation/nuxt",
5
5
  "configKey": "ui",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -1,13 +1,14 @@
1
1
  import { defu } from 'defu';
2
2
  import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
3
- import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.D7lOOabO.mjs';
3
+ import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.BvUP-pSb.mjs';
4
4
  import '../dist/runtime/utils/index.js';
5
5
  import 'node:url';
6
6
  import 'scule';
7
7
  import 'tailwindcss/colors';
8
+ import 'knitwork';
8
9
 
9
10
  const name = "@nuxt/ui";
10
- const version = "3.1.0";
11
+ const version = "3.1.2";
11
12
 
12
13
  const module = defineNuxtModule({
13
14
  meta: {
@@ -42,12 +43,21 @@ const module = defineNuxtModule({
42
43
  nuxt.options[key] = defu(nuxt.options[key], options2);
43
44
  }
44
45
  }
45
- await registerModule("@nuxt/icon", "icon", { cssLayer: "components" });
46
+ await registerModule("@nuxt/icon", "icon", {
47
+ cssLayer: "components"
48
+ });
46
49
  if (options.fonts) {
47
- await registerModule("@nuxt/fonts", "fonts", { experimental: { processCSSVariables: true } });
50
+ await registerModule("@nuxt/fonts", "fonts", {
51
+ defaults: {
52
+ weights: [400, 500, 600, 700]
53
+ }
54
+ });
48
55
  }
49
56
  if (options.colorMode) {
50
- await registerModule("@nuxtjs/color-mode", "colorMode", { classSuffix: "", disableTransition: true });
57
+ await registerModule("@nuxtjs/color-mode", "colorMode", {
58
+ classSuffix: "",
59
+ disableTransition: true
60
+ });
51
61
  }
52
62
  addPlugin({ src: resolve("./runtime/plugins/colors") });
53
63
  addComponentsDir({