@nuxt/ui 3.0.0-alpha.9 → 3.0.0-beta.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 (289) hide show
  1. package/.nuxt/ui/accordion.ts +2 -2
  2. package/.nuxt/ui/alert.ts +122 -95
  3. package/.nuxt/ui/avatar-group.ts +14 -2
  4. package/.nuxt/ui/avatar.ts +16 -4
  5. package/.nuxt/ui/badge.ts +139 -93
  6. package/.nuxt/ui/breadcrumb.ts +5 -5
  7. package/.nuxt/ui/button-group.ts +13 -0
  8. package/.nuxt/ui/button.ts +167 -136
  9. package/.nuxt/ui/calendar.ts +103 -0
  10. package/.nuxt/ui/card.ts +27 -1
  11. package/.nuxt/ui/carousel.ts +7 -5
  12. package/.nuxt/ui/checkbox.ts +45 -27
  13. package/.nuxt/ui/chip.ts +44 -15
  14. package/.nuxt/ui/color-picker.ts +47 -0
  15. package/.nuxt/ui/command-palette.ts +28 -18
  16. package/.nuxt/ui/container.ts +1 -1
  17. package/.nuxt/ui/context-menu.ts +64 -46
  18. package/.nuxt/ui/drawer.ts +83 -15
  19. package/.nuxt/ui/dropdown-menu.ts +65 -47
  20. package/.nuxt/ui/form-field.ts +15 -7
  21. package/.nuxt/ui/index.ts +5 -1
  22. package/.nuxt/ui/input-menu.ts +150 -116
  23. package/.nuxt/ui/input-number.ts +102 -71
  24. package/.nuxt/ui/input.ts +111 -76
  25. package/.nuxt/ui/kbd.ts +18 -6
  26. package/.nuxt/ui/link.ts +3 -3
  27. package/.nuxt/ui/modal.ts +8 -7
  28. package/.nuxt/ui/navigation-menu.ts +244 -131
  29. package/.nuxt/ui/pin-input.ts +77 -51
  30. package/.nuxt/ui/popover.ts +2 -2
  31. package/.nuxt/ui/progress.ts +111 -72
  32. package/.nuxt/ui/radio-group.ts +45 -22
  33. package/.nuxt/ui/select-menu.ts +122 -86
  34. package/.nuxt/ui/select.ts +120 -84
  35. package/.nuxt/ui/separator.ts +60 -31
  36. package/.nuxt/ui/skeleton.ts +1 -1
  37. package/.nuxt/ui/slideover.ts +17 -9
  38. package/.nuxt/ui/slider.ts +61 -38
  39. package/.nuxt/ui/stepper.ts +202 -0
  40. package/.nuxt/ui/switch.ts +40 -22
  41. package/.nuxt/ui/table.ts +48 -31
  42. package/.nuxt/ui/tabs.ts +100 -72
  43. package/.nuxt/ui/textarea.ts +111 -76
  44. package/.nuxt/ui/toast.ts +53 -33
  45. package/.nuxt/ui/toaster.ts +31 -15
  46. package/.nuxt/ui/tooltip.ts +2 -2
  47. package/.nuxt/ui/tree.ts +154 -0
  48. package/.nuxt/ui.css +92 -0
  49. package/README.md +19 -8
  50. package/cli/commands/make/component.mjs +12 -0
  51. package/cli/package.json +2 -2
  52. package/cli/templates.mjs +27 -22
  53. package/dist/module.cjs +9 -171
  54. package/dist/module.d.cts +5 -15
  55. package/dist/module.d.mts +5 -15
  56. package/dist/module.d.ts +5 -15
  57. package/dist/module.json +2 -2
  58. package/dist/module.mjs +12 -168
  59. package/dist/runtime/components/Accordion.vue +8 -39
  60. package/dist/runtime/components/Alert.vue +22 -21
  61. package/dist/runtime/components/App.vue +9 -15
  62. package/dist/runtime/components/Avatar.vue +33 -21
  63. package/dist/runtime/components/AvatarGroup.vue +5 -7
  64. package/dist/runtime/components/Badge.vue +10 -8
  65. package/dist/runtime/components/Breadcrumb.vue +5 -31
  66. package/dist/runtime/components/Button.vue +5 -8
  67. package/dist/runtime/components/ButtonGroup.vue +5 -7
  68. package/dist/runtime/components/Calendar.vue +194 -0
  69. package/dist/runtime/components/Card.vue +10 -9
  70. package/dist/runtime/components/Carousel.vue +15 -10
  71. package/dist/runtime/components/Checkbox.vue +32 -38
  72. package/dist/runtime/components/Chip.vue +6 -8
  73. package/dist/runtime/components/Collapsible.vue +10 -11
  74. package/dist/runtime/components/ColorPicker.vue +297 -0
  75. package/dist/runtime/components/CommandPalette.vue +111 -97
  76. package/dist/runtime/components/Container.vue +4 -7
  77. package/dist/runtime/components/ContextMenu.vue +16 -69
  78. package/dist/runtime/components/ContextMenuContent.vue +12 -10
  79. package/dist/runtime/components/Drawer.vue +23 -12
  80. package/dist/runtime/components/DropdownMenu.vue +18 -59
  81. package/dist/runtime/components/DropdownMenuContent.vue +12 -10
  82. package/dist/runtime/components/Form.vue +65 -34
  83. package/dist/runtime/components/FormField.vue +22 -13
  84. package/dist/runtime/components/Icon.vue +1 -1
  85. package/dist/runtime/components/Input.vue +15 -7
  86. package/dist/runtime/components/InputMenu.vue +95 -104
  87. package/dist/runtime/components/InputNumber.vue +14 -9
  88. package/dist/runtime/components/Kbd.vue +5 -6
  89. package/dist/runtime/components/Link.vue +5 -8
  90. package/dist/runtime/components/LinkBase.vue +1 -1
  91. package/dist/runtime/components/Modal.vue +51 -38
  92. package/dist/runtime/components/NavigationMenu.vue +129 -114
  93. package/dist/runtime/components/OverlayProvider.vue +29 -0
  94. package/dist/runtime/components/Pagination.vue +6 -9
  95. package/dist/runtime/components/PinInput.vue +10 -11
  96. package/dist/runtime/components/Popover.vue +16 -18
  97. package/dist/runtime/components/Progress.vue +28 -12
  98. package/dist/runtime/components/RadioGroup.vue +9 -12
  99. package/dist/runtime/components/Select.vue +60 -34
  100. package/dist/runtime/components/SelectMenu.vue +160 -165
  101. package/dist/runtime/components/Separator.vue +6 -5
  102. package/dist/runtime/components/Skeleton.vue +4 -7
  103. package/dist/runtime/components/Slideover.vue +51 -37
  104. package/dist/runtime/components/Slider.vue +8 -7
  105. package/dist/runtime/components/Stepper.vue +170 -0
  106. package/dist/runtime/components/Switch.vue +19 -23
  107. package/dist/runtime/components/Table.vue +146 -31
  108. package/dist/runtime/components/Tabs.vue +12 -31
  109. package/dist/runtime/components/Textarea.vue +17 -8
  110. package/dist/runtime/components/Toast.vue +36 -25
  111. package/dist/runtime/components/Toaster.vue +10 -11
  112. package/dist/runtime/components/Tooltip.vue +9 -12
  113. package/dist/runtime/components/Tree.vue +196 -0
  114. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  115. package/dist/runtime/composables/defineShortcuts.js +2 -2
  116. package/dist/runtime/composables/useFormField.d.ts +7 -3
  117. package/dist/runtime/composables/useFormField.js +18 -8
  118. package/dist/runtime/composables/useLocale.js +1 -1
  119. package/dist/runtime/composables/useOverlay.d.ts +30 -0
  120. package/dist/runtime/composables/useOverlay.js +71 -0
  121. package/dist/runtime/composables/useToast.d.ts +4 -3
  122. package/dist/runtime/composables/useToast.js +20 -6
  123. package/dist/runtime/index.css +1 -1
  124. package/dist/runtime/keyframes.css +1 -1
  125. package/dist/runtime/locale/ar.js +9 -1
  126. package/dist/runtime/locale/az.js +54 -0
  127. package/dist/runtime/locale/bn.js +54 -0
  128. package/dist/runtime/locale/cs.js +9 -1
  129. package/dist/runtime/locale/da.d.ts +2 -0
  130. package/dist/runtime/locale/da.js +54 -0
  131. package/dist/runtime/locale/de.js +11 -3
  132. package/dist/runtime/locale/el.d.ts +2 -0
  133. package/dist/runtime/locale/el.js +54 -0
  134. package/dist/runtime/locale/en.js +9 -1
  135. package/dist/runtime/locale/es.js +9 -1
  136. package/dist/runtime/locale/et.d.ts +2 -0
  137. package/dist/runtime/locale/et.js +54 -0
  138. package/dist/runtime/locale/fa_ir.js +9 -1
  139. package/dist/runtime/locale/fi.d.ts +2 -0
  140. package/dist/runtime/locale/fi.js +54 -0
  141. package/dist/runtime/locale/fr.js +9 -1
  142. package/dist/runtime/locale/he.d.ts +2 -0
  143. package/dist/runtime/locale/he.js +53 -0
  144. package/dist/runtime/locale/hi.d.ts +2 -0
  145. package/dist/runtime/locale/hi.js +54 -0
  146. package/dist/runtime/locale/hu.d.ts +2 -0
  147. package/dist/runtime/locale/hu.js +54 -0
  148. package/dist/runtime/locale/id.d.ts +2 -0
  149. package/dist/runtime/locale/id.js +54 -0
  150. package/dist/runtime/locale/index.d.ts +25 -3
  151. package/dist/runtime/locale/index.js +25 -3
  152. package/dist/runtime/locale/it.js +9 -1
  153. package/dist/runtime/locale/ja.d.ts +2 -0
  154. package/dist/runtime/locale/ja.js +54 -0
  155. package/dist/runtime/locale/km.d.ts +2 -0
  156. package/dist/runtime/locale/km.js +54 -0
  157. package/dist/runtime/locale/ko.d.ts +2 -0
  158. package/dist/runtime/locale/ko.js +54 -0
  159. package/dist/runtime/locale/nb_no.d.ts +2 -0
  160. package/dist/runtime/locale/nb_no.js +54 -0
  161. package/dist/runtime/locale/nl.d.ts +2 -0
  162. package/dist/runtime/locale/nl.js +54 -0
  163. package/dist/runtime/locale/pl.js +9 -1
  164. package/dist/runtime/locale/pt.d.ts +2 -0
  165. package/dist/runtime/locale/pt.js +54 -0
  166. package/dist/runtime/locale/pt_br.d.ts +2 -0
  167. package/dist/runtime/locale/pt_br.js +54 -0
  168. package/dist/runtime/locale/ru.js +9 -1
  169. package/dist/runtime/locale/sk.d.ts +2 -0
  170. package/dist/runtime/locale/sk.js +54 -0
  171. package/dist/runtime/locale/sv.d.ts +2 -0
  172. package/dist/runtime/locale/sv.js +54 -0
  173. package/dist/runtime/locale/th.d.ts +2 -0
  174. package/dist/runtime/locale/th.js +54 -0
  175. package/dist/runtime/locale/tr.d.ts +2 -0
  176. package/dist/runtime/locale/tr.js +54 -0
  177. package/dist/runtime/locale/uk.d.ts +2 -0
  178. package/dist/runtime/locale/uk.js +54 -0
  179. package/dist/runtime/locale/vi.d.ts +2 -0
  180. package/dist/runtime/locale/vi.js +54 -0
  181. package/dist/runtime/locale/zh_cn.d.ts +2 -0
  182. package/dist/runtime/locale/{zh_hans.js → zh_cn.js} +10 -2
  183. package/dist/runtime/locale/zh_tw.d.ts +2 -0
  184. package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +16 -8
  185. package/dist/runtime/plugins/colors.js +8 -5
  186. package/dist/runtime/types/form.d.ts +24 -15
  187. package/dist/runtime/types/form.js +2 -2
  188. package/dist/runtime/types/index.d.ts +5 -0
  189. package/dist/runtime/types/index.js +5 -0
  190. package/dist/runtime/types/locale.d.ts +8 -0
  191. package/dist/runtime/types/utils.d.ts +7 -3
  192. package/dist/runtime/utils/form.d.ts +4 -4
  193. package/dist/runtime/utils/form.js +6 -8
  194. package/dist/runtime/utils/index.d.ts +1 -1
  195. package/dist/runtime/utils/index.js +15 -2
  196. package/dist/runtime/utils/tv.d.ts +1 -0
  197. package/dist/runtime/utils/tv.js +4 -0
  198. package/dist/runtime/vue/components/Icon.vue +2 -2
  199. package/dist/runtime/vue/components/Link.vue +87 -23
  200. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  201. package/dist/runtime/vue/composables/useAppConfig.js +2 -0
  202. package/dist/runtime/vue/plugins/head.d.ts +1 -1
  203. package/dist/runtime/vue/plugins/head.js +3 -3
  204. package/dist/runtime/vue/stubs.d.ts +19 -0
  205. package/dist/runtime/vue/stubs.js +37 -0
  206. package/dist/shared/{ui.d52SSCwA.mjs → ui.DSPu6Y8j.mjs} +905 -401
  207. package/dist/shared/{ui.BPnAe4QS.cjs → ui.DfK2RX6G.cjs} +908 -401
  208. package/dist/unplugin.cjs +62 -26
  209. package/dist/unplugin.d.cts +13 -1
  210. package/dist/unplugin.d.mts +13 -1
  211. package/dist/unplugin.d.ts +13 -1
  212. package/dist/unplugin.mjs +61 -25
  213. package/dist/vite.cjs +3 -2
  214. package/dist/vite.d.cts +2 -0
  215. package/dist/vite.d.mts +2 -0
  216. package/dist/vite.d.ts +2 -0
  217. package/dist/vite.mjs +3 -2
  218. package/package.json +103 -67
  219. package/dist/chunks/component-meta.cjs +0 -77249
  220. package/dist/chunks/component-meta.mjs +0 -77247
  221. package/dist/client/devtools/200.html +0 -1
  222. package/dist/client/devtools/404.html +0 -1
  223. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
  224. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
  225. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
  226. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
  227. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
  228. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
  229. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
  230. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
  231. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
  232. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
  233. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
  234. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
  235. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
  236. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
  237. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
  238. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
  239. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
  240. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
  241. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
  242. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
  243. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
  244. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
  245. package/dist/client/devtools/_nuxt/BDC8ywlR.js +0 -1
  246. package/dist/client/devtools/_nuxt/BT004Uxp.js +0 -53
  247. package/dist/client/devtools/_nuxt/C1H2Soz3.js +0 -1
  248. package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
  249. package/dist/client/devtools/_nuxt/builds/meta/f98c13ea-d751-4b37-8ce3-94e99708745f.json +0 -1
  250. package/dist/client/devtools/_nuxt/entry.Bx6WJjrx.css +0 -1
  251. package/dist/client/devtools/_nuxt/error-404.Cq4qshcf.css +0 -1
  252. package/dist/client/devtools/_nuxt/error-500.ax1aM34m.css +0 -1
  253. package/dist/client/devtools/favicon.svg +0 -1
  254. package/dist/client/devtools/index.html +0 -1
  255. package/dist/devtools/runtime/DevtoolsRenderer.vue +0 -53
  256. package/dist/devtools/runtime/examples/AvatarGroupExample.vue +0 -7
  257. package/dist/devtools/runtime/examples/ButtonGroupExample.vue +0 -8
  258. package/dist/devtools/runtime/examples/CardExample.vue +0 -13
  259. package/dist/devtools/runtime/examples/CarouselExample.vue +0 -13
  260. package/dist/devtools/runtime/examples/ChipExample.vue +0 -5
  261. package/dist/devtools/runtime/examples/CollapsibleExample.vue +0 -8
  262. package/dist/devtools/runtime/examples/CommandPaletteExample.vue +0 -29
  263. package/dist/devtools/runtime/examples/ContainerExample.vue +0 -5
  264. package/dist/devtools/runtime/examples/ContextMenuExample.vue +0 -5
  265. package/dist/devtools/runtime/examples/DrawerExample.vue +0 -8
  266. package/dist/devtools/runtime/examples/DropdownMenuExample.vue +0 -5
  267. package/dist/devtools/runtime/examples/FormExample.vue +0 -30
  268. package/dist/devtools/runtime/examples/FormFieldExample.vue +0 -5
  269. package/dist/devtools/runtime/examples/LinkExample.vue +0 -5
  270. package/dist/devtools/runtime/examples/ModalExample.vue +0 -8
  271. package/dist/devtools/runtime/examples/PopoverExample.vue +0 -8
  272. package/dist/devtools/runtime/examples/SkeletonExample.vue +0 -3
  273. package/dist/devtools/runtime/examples/SlideoverExample.vue +0 -8
  274. package/dist/devtools/runtime/examples/ToasterExample.vue +0 -11
  275. package/dist/devtools/runtime/examples/TooltipExample.vue +0 -5
  276. package/dist/runtime/components/ModalProvider.vue +0 -12
  277. package/dist/runtime/components/SlideoverProvider.vue +0 -12
  278. package/dist/runtime/composables/extendDevtoolsMeta.d.ts +0 -7
  279. package/dist/runtime/composables/extendDevtoolsMeta.js +0 -2
  280. package/dist/runtime/composables/useModal.d.ts +0 -17
  281. package/dist/runtime/composables/useModal.js +0 -46
  282. package/dist/runtime/composables/useSlideover.d.ts +0 -17
  283. package/dist/runtime/composables/useSlideover.js +0 -46
  284. package/dist/runtime/plugins/modal.d.ts +0 -2
  285. package/dist/runtime/plugins/modal.js +0 -10
  286. package/dist/runtime/plugins/slideover.d.ts +0 -2
  287. package/dist/runtime/plugins/slideover.js +0 -10
  288. /package/dist/runtime/locale/{zh_hans.d.ts → az.d.ts} +0 -0
  289. /package/dist/runtime/locale/{zh_hant.d.ts → bn.d.ts} +0 -0
package/dist/unplugin.cjs CHANGED
@@ -3,26 +3,27 @@
3
3
  const node_url = require('node:url');
4
4
  const pathe = require('pathe');
5
5
  const unplugin = require('unplugin');
6
- const AutoImport = require('unplugin-auto-import');
7
6
  const defu = require('defu');
8
7
  const tailwind = require('@tailwindcss/vite');
9
- const templates = require('./shared/ui.BPnAe4QS.cjs');
8
+ const templates = require('./shared/ui.DfK2RX6G.cjs');
10
9
  const tinyglobby = require('tinyglobby');
11
10
  const knitwork = require('knitwork');
12
11
  const MagicString = require('magic-string');
13
12
  const mlly = require('mlly');
14
13
  const AutoImportComponents = require('unplugin-vue-components');
14
+ const AutoImport = require('unplugin-auto-import');
15
15
  require('../dist/runtime/utils/index.js');
16
16
  require('scule');
17
17
  require('@nuxt/kit');
18
+ require('tailwindcss/colors');
18
19
 
19
20
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
20
21
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
21
22
 
22
- const AutoImport__default = /*#__PURE__*/_interopDefaultCompat(AutoImport);
23
23
  const tailwind__default = /*#__PURE__*/_interopDefaultCompat(tailwind);
24
24
  const MagicString__default = /*#__PURE__*/_interopDefaultCompat(MagicString);
25
25
  const AutoImportComponents__default = /*#__PURE__*/_interopDefaultCompat(AutoImportComponents);
26
+ const AutoImport__default = /*#__PURE__*/_interopDefaultCompat(AutoImport);
26
27
 
27
28
  function TemplatePlugin(options, appConfig) {
28
29
  const templates$1 = templates.getTemplates(options, appConfig.ui);
@@ -45,9 +46,9 @@ function TemplatePlugin(options, appConfig) {
45
46
 
46
47
  function PluginsPlugin(options) {
47
48
  const plugins = tinyglobby.globSync(["**/*", "!*.d.ts"], { cwd: pathe.join(runtimeDir, "plugins"), absolute: true });
48
- plugins.unshift(mlly.resolvePathSync(pathe.join(runtimeDir, "vue/plugins/head"), { extensions: [".ts", ".mjs", ".js"] }));
49
+ plugins.unshift(mlly.resolvePathSync("../runtime/vue/plugins/head", { extensions: [".ts", ".mjs", ".js"], url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href)) }));
49
50
  if (options.colorMode) {
50
- plugins.push(mlly.resolvePathSync(pathe.join(runtimeDir, "vue/plugins/color-mode"), { extensions: [".ts", ".mjs", ".js"] }));
51
+ plugins.push(mlly.resolvePathSync("../runtime/vue/plugins/color-mode", { extensions: [".ts", ".mjs", ".js"], url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href)) }));
51
52
  }
52
53
  return {
53
54
  name: "nuxt:ui:plugins",
@@ -79,6 +80,18 @@ ${plugins.map((p) => ` app.use(${knitwork.genSafeVariableName(p)})`).join("\n
79
80
  }
80
81
  }
81
82
  `;
83
+ },
84
+ // Argument Vite specific configuration
85
+ vite: {
86
+ config() {
87
+ return {
88
+ // Opt-out Nuxt UI from Vite's pre-bundling,
89
+ // as we need Vite's pipeline to resolve imports like `#imports`
90
+ optimizeDeps: {
91
+ exclude: ["@nuxt/ui"]
92
+ }
93
+ };
94
+ }
82
95
  }
83
96
  };
84
97
  }
@@ -101,11 +114,23 @@ function AppConfigPlugin(options, appConfig) {
101
114
  };
102
115
  }
103
116
 
104
- function ComponentImportPlugin(framework, options) {
117
+ function ComponentImportPlugin(options, meta) {
105
118
  const components = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "components") });
106
119
  const componentNames = new Set(components.map((c) => `${options.prefix}${c.replace(/\.vue$/, "")}`));
107
120
  const overrides = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "vue/components") });
108
121
  const overrideNames = new Set(overrides.map((c) => `${options.prefix}${c.replace(/\.vue$/, "")}`));
122
+ const pluginOptions = defu.defu(options.components, {
123
+ dts: options.dts ?? true,
124
+ exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
125
+ resolvers: [
126
+ (componentName) => {
127
+ if (overrideNames.has(componentName))
128
+ return { name: "default", from: pathe.join(runtimeDir, "vue/components", `${componentName.slice(options.prefix.length)}.vue`) };
129
+ if (componentNames.has(componentName))
130
+ return { name: "default", from: pathe.join(runtimeDir, "components", `${componentName.slice(options.prefix.length)}.vue`) };
131
+ }
132
+ ]
133
+ });
109
134
  return [
110
135
  /**
111
136
  * This plugin aims to ensure we override certain components with Vue-compatible versions:
@@ -127,24 +152,13 @@ function ComponentImportPlugin(framework, options) {
127
152
  }
128
153
  }
129
154
  },
130
- AutoImportComponents__default[framework]({
131
- dts: options.dts ?? true,
132
- exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
133
- resolvers: [
134
- (componentName) => {
135
- if (overrideNames.has(componentName))
136
- return { name: "default", from: pathe.join(runtimeDir, "vue/components", `${componentName.slice(options.prefix.length)}.vue`) };
137
- if (componentNames.has(componentName))
138
- return { name: "default", from: pathe.join(runtimeDir, "components", `${componentName.slice(options.prefix.length)}.vue`) };
139
- }
140
- ]
141
- })
155
+ AutoImportComponents__default.raw(pluginOptions, meta)
142
156
  ];
143
157
  }
144
158
  const RELATIVE_IMPORT_RE = /^\.{1,2}\//;
145
159
 
146
160
  function NuxtEnvironmentPlugin() {
147
- const stubPath = mlly.resolvePathSync(pathe.join(runtimeDir, "vue/stubs"), { extensions: [".ts", ".mjs", ".js"] });
161
+ const stubPath = mlly.resolvePathSync("../runtime/vue/stubs", { extensions: [".ts", ".mjs", ".js"], url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href)) });
148
162
  return {
149
163
  name: "nuxt:ui",
150
164
  enforce: "pre",
@@ -171,21 +185,43 @@ function NuxtEnvironmentPlugin() {
171
185
  };
172
186
  }
173
187
 
174
- const runtimeDir = node_url.fileURLToPath(new URL("./runtime", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href))));
188
+ function AutoImportPlugin(options, meta) {
189
+ const pluginOptions = defu.defu(options.autoImport, {
190
+ dts: options.dts ?? true,
191
+ dirs: [pathe.join(runtimeDir, "composables"), pathe.join(runtimeDir, "vue/composables")]
192
+ });
193
+ return AutoImport__default.raw(pluginOptions, meta);
194
+ }
195
+
196
+ const runtimeDir = pathe.normalize(node_url.fileURLToPath(new URL("./runtime", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href)))));
175
197
  const NuxtUIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
176
- const options = defu.defu(_options, { fonts: false, devtools: { enabled: false } }, templates.defaultOptions);
198
+ const options = defu.defu(_options, { fonts: false }, templates.defaultOptions);
177
199
  options.theme = options.theme || {};
178
200
  options.theme.colors = templates.resolveColors(options.theme.colors);
179
- const appConfig = defu.defu({ ui: options.ui }, { ui: templates.getDefaultUiConfig(options.theme.colors) });
201
+ const appConfig = defu.defu({ ui: options.ui, colorMode: options.colorMode }, { ui: templates.getDefaultUiConfig(options.theme.colors) });
180
202
  return [
181
203
  NuxtEnvironmentPlugin(),
182
- ...ComponentImportPlugin(meta.framework, options),
183
- AutoImport__default[meta.framework]({ dts: options.dts ?? true, dirs: [pathe.join(runtimeDir, "composables")] }),
204
+ ComponentImportPlugin(options, meta),
205
+ AutoImportPlugin(options, meta),
184
206
  tailwind__default(),
185
207
  PluginsPlugin(options),
186
208
  TemplatePlugin(options, appConfig),
187
- AppConfigPlugin(options, appConfig)
188
- ];
209
+ AppConfigPlugin(options, appConfig),
210
+ {
211
+ name: "nuxt:ui:plugins-duplication-detection",
212
+ vite: {
213
+ configResolved(config) {
214
+ const plugins = config.plugins || [];
215
+ if (plugins.filter((i) => i.name === "unplugin-auto-import").length > 1) {
216
+ throw new Error("[Nuxt UI] Multiple instances of `unplugin-auto-import` detected. Nuxt UI includes `unplugin-auto-import` already, and you can configure it using `autoImport` option in Nuxt UI module options.");
217
+ }
218
+ if (plugins.filter((i) => i.name === "unplugin-vue-components").length > 1) {
219
+ throw new Error("[Nuxt UI] Multiple instances of `unplugin-vue-components` detected. Nuxt UI includes `unplugin-vue-components` already, and you can configure it using `components` option in Nuxt UI module options.");
220
+ }
221
+ }
222
+ }
223
+ }
224
+ ].flat(1);
189
225
  });
190
226
 
191
227
  exports.NuxtUIPlugin = NuxtUIPlugin;
@@ -1,4 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
+ import { Options } from 'unplugin-auto-import/types';
3
+ import { Options as Options$1 } from 'unplugin-vue-components/types';
2
4
  import colors from 'tailwindcss/colors';
3
5
  import * as ui from '#build/ui';
4
6
  import { ModuleOptions } from './module.cjs';
@@ -15,14 +17,16 @@ declare const _default: {
15
17
  chevronDown: string;
16
18
  chevronLeft: string;
17
19
  chevronRight: string;
20
+ chevronUp: string;
18
21
  close: string;
19
22
  ellipsis: string;
20
23
  external: string;
24
+ folder: string;
25
+ folderOpen: string;
21
26
  loading: string;
22
27
  minus: string;
23
28
  plus: string;
24
29
  search: string;
25
- chevronUp: string;
26
30
  };
27
31
 
28
32
  type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone';
@@ -42,6 +46,14 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
42
46
  * @defaultValue `true`
43
47
  */
44
48
  colorMode?: boolean;
49
+ /**
50
+ * Override options for `unplugin-auto-import`
51
+ */
52
+ autoImport?: Partial<Options>;
53
+ /**
54
+ * Override options for `unplugin-vue-components`
55
+ */
56
+ components?: Partial<Options$1>;
45
57
  }
46
58
  declare const runtimeDir: string;
47
59
  declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
@@ -1,4 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
+ import { Options } from 'unplugin-auto-import/types';
3
+ import { Options as Options$1 } from 'unplugin-vue-components/types';
2
4
  import colors from 'tailwindcss/colors';
3
5
  import * as ui from '#build/ui';
4
6
  import { ModuleOptions } from './module.mjs';
@@ -15,14 +17,16 @@ declare const _default: {
15
17
  chevronDown: string;
16
18
  chevronLeft: string;
17
19
  chevronRight: string;
20
+ chevronUp: string;
18
21
  close: string;
19
22
  ellipsis: string;
20
23
  external: string;
24
+ folder: string;
25
+ folderOpen: string;
21
26
  loading: string;
22
27
  minus: string;
23
28
  plus: string;
24
29
  search: string;
25
- chevronUp: string;
26
30
  };
27
31
 
28
32
  type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone';
@@ -42,6 +46,14 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
42
46
  * @defaultValue `true`
43
47
  */
44
48
  colorMode?: boolean;
49
+ /**
50
+ * Override options for `unplugin-auto-import`
51
+ */
52
+ autoImport?: Partial<Options>;
53
+ /**
54
+ * Override options for `unplugin-vue-components`
55
+ */
56
+ components?: Partial<Options$1>;
45
57
  }
46
58
  declare const runtimeDir: string;
47
59
  declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
@@ -1,4 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
+ import { Options } from 'unplugin-auto-import/types';
3
+ import { Options as Options$1 } from 'unplugin-vue-components/types';
2
4
  import colors from 'tailwindcss/colors';
3
5
  import * as ui from '#build/ui';
4
6
  import { ModuleOptions } from './module.js';
@@ -15,14 +17,16 @@ declare const _default: {
15
17
  chevronDown: string;
16
18
  chevronLeft: string;
17
19
  chevronRight: string;
20
+ chevronUp: string;
18
21
  close: string;
19
22
  ellipsis: string;
20
23
  external: string;
24
+ folder: string;
25
+ folderOpen: string;
21
26
  loading: string;
22
27
  minus: string;
23
28
  plus: string;
24
29
  search: string;
25
- chevronUp: string;
26
30
  };
27
31
 
28
32
  type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone';
@@ -42,6 +46,14 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
42
46
  * @defaultValue `true`
43
47
  */
44
48
  colorMode?: boolean;
49
+ /**
50
+ * Override options for `unplugin-auto-import`
51
+ */
52
+ autoImport?: Partial<Options>;
53
+ /**
54
+ * Override options for `unplugin-vue-components`
55
+ */
56
+ components?: Partial<Options$1>;
45
57
  }
46
58
  declare const runtimeDir: string;
47
59
  declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
package/dist/unplugin.mjs CHANGED
@@ -1,18 +1,19 @@
1
1
  import { fileURLToPath } from 'node:url';
2
2
  import { join, normalize } from 'pathe';
3
3
  import { createUnplugin } from 'unplugin';
4
- import AutoImport from 'unplugin-auto-import';
5
4
  import { defu } from 'defu';
6
5
  import tailwind from '@tailwindcss/vite';
7
- import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.d52SSCwA.mjs';
6
+ import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.DSPu6Y8j.mjs';
8
7
  import { globSync } from 'tinyglobby';
9
8
  import { genSafeVariableName } from 'knitwork';
10
9
  import MagicString from 'magic-string';
11
10
  import { resolvePathSync } from 'mlly';
12
11
  import AutoImportComponents from 'unplugin-vue-components';
12
+ import AutoImport from 'unplugin-auto-import';
13
13
  import '../dist/runtime/utils/index.js';
14
14
  import 'scule';
15
15
  import '@nuxt/kit';
16
+ import 'tailwindcss/colors';
16
17
 
17
18
  function TemplatePlugin(options, appConfig) {
18
19
  const templates = getTemplates(options, appConfig.ui);
@@ -35,9 +36,9 @@ function TemplatePlugin(options, appConfig) {
35
36
 
36
37
  function PluginsPlugin(options) {
37
38
  const plugins = globSync(["**/*", "!*.d.ts"], { cwd: join(runtimeDir, "plugins"), absolute: true });
38
- plugins.unshift(resolvePathSync(join(runtimeDir, "vue/plugins/head"), { extensions: [".ts", ".mjs", ".js"] }));
39
+ plugins.unshift(resolvePathSync("../runtime/vue/plugins/head", { extensions: [".ts", ".mjs", ".js"], url: import.meta.url }));
39
40
  if (options.colorMode) {
40
- plugins.push(resolvePathSync(join(runtimeDir, "vue/plugins/color-mode"), { extensions: [".ts", ".mjs", ".js"] }));
41
+ plugins.push(resolvePathSync("../runtime/vue/plugins/color-mode", { extensions: [".ts", ".mjs", ".js"], url: import.meta.url }));
41
42
  }
42
43
  return {
43
44
  name: "nuxt:ui:plugins",
@@ -69,6 +70,18 @@ ${plugins.map((p) => ` app.use(${genSafeVariableName(p)})`).join("\n")}
69
70
  }
70
71
  }
71
72
  `;
73
+ },
74
+ // Argument Vite specific configuration
75
+ vite: {
76
+ config() {
77
+ return {
78
+ // Opt-out Nuxt UI from Vite's pre-bundling,
79
+ // as we need Vite's pipeline to resolve imports like `#imports`
80
+ optimizeDeps: {
81
+ exclude: ["@nuxt/ui"]
82
+ }
83
+ };
84
+ }
72
85
  }
73
86
  };
74
87
  }
@@ -91,11 +104,23 @@ function AppConfigPlugin(options, appConfig) {
91
104
  };
92
105
  }
93
106
 
94
- function ComponentImportPlugin(framework, options) {
107
+ function ComponentImportPlugin(options, meta) {
95
108
  const components = globSync("**/*.vue", { cwd: join(runtimeDir, "components") });
96
109
  const componentNames = new Set(components.map((c) => `${options.prefix}${c.replace(/\.vue$/, "")}`));
97
110
  const overrides = globSync("**/*.vue", { cwd: join(runtimeDir, "vue/components") });
98
111
  const overrideNames = new Set(overrides.map((c) => `${options.prefix}${c.replace(/\.vue$/, "")}`));
112
+ const pluginOptions = defu(options.components, {
113
+ dts: options.dts ?? true,
114
+ exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
115
+ resolvers: [
116
+ (componentName) => {
117
+ if (overrideNames.has(componentName))
118
+ return { name: "default", from: join(runtimeDir, "vue/components", `${componentName.slice(options.prefix.length)}.vue`) };
119
+ if (componentNames.has(componentName))
120
+ return { name: "default", from: join(runtimeDir, "components", `${componentName.slice(options.prefix.length)}.vue`) };
121
+ }
122
+ ]
123
+ });
99
124
  return [
100
125
  /**
101
126
  * This plugin aims to ensure we override certain components with Vue-compatible versions:
@@ -117,24 +142,13 @@ function ComponentImportPlugin(framework, options) {
117
142
  }
118
143
  }
119
144
  },
120
- AutoImportComponents[framework]({
121
- dts: options.dts ?? true,
122
- exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
123
- resolvers: [
124
- (componentName) => {
125
- if (overrideNames.has(componentName))
126
- return { name: "default", from: join(runtimeDir, "vue/components", `${componentName.slice(options.prefix.length)}.vue`) };
127
- if (componentNames.has(componentName))
128
- return { name: "default", from: join(runtimeDir, "components", `${componentName.slice(options.prefix.length)}.vue`) };
129
- }
130
- ]
131
- })
145
+ AutoImportComponents.raw(pluginOptions, meta)
132
146
  ];
133
147
  }
134
148
  const RELATIVE_IMPORT_RE = /^\.{1,2}\//;
135
149
 
136
150
  function NuxtEnvironmentPlugin() {
137
- const stubPath = resolvePathSync(join(runtimeDir, "vue/stubs"), { extensions: [".ts", ".mjs", ".js"] });
151
+ const stubPath = resolvePathSync("../runtime/vue/stubs", { extensions: [".ts", ".mjs", ".js"], url: import.meta.url });
138
152
  return {
139
153
  name: "nuxt:ui",
140
154
  enforce: "pre",
@@ -161,21 +175,43 @@ function NuxtEnvironmentPlugin() {
161
175
  };
162
176
  }
163
177
 
164
- const runtimeDir = fileURLToPath(new URL("./runtime", import.meta.url));
178
+ function AutoImportPlugin(options, meta) {
179
+ const pluginOptions = defu(options.autoImport, {
180
+ dts: options.dts ?? true,
181
+ dirs: [join(runtimeDir, "composables"), join(runtimeDir, "vue/composables")]
182
+ });
183
+ return AutoImport.raw(pluginOptions, meta);
184
+ }
185
+
186
+ const runtimeDir = normalize(fileURLToPath(new URL("./runtime", import.meta.url)));
165
187
  const NuxtUIPlugin = createUnplugin((_options = {}, meta) => {
166
- const options = defu(_options, { fonts: false, devtools: { enabled: false } }, defaultOptions);
188
+ const options = defu(_options, { fonts: false }, defaultOptions);
167
189
  options.theme = options.theme || {};
168
190
  options.theme.colors = resolveColors(options.theme.colors);
169
- const appConfig = defu({ ui: options.ui }, { ui: getDefaultUiConfig(options.theme.colors) });
191
+ const appConfig = defu({ ui: options.ui, colorMode: options.colorMode }, { ui: getDefaultUiConfig(options.theme.colors) });
170
192
  return [
171
193
  NuxtEnvironmentPlugin(),
172
- ...ComponentImportPlugin(meta.framework, options),
173
- AutoImport[meta.framework]({ dts: options.dts ?? true, dirs: [join(runtimeDir, "composables")] }),
194
+ ComponentImportPlugin(options, meta),
195
+ AutoImportPlugin(options, meta),
174
196
  tailwind(),
175
197
  PluginsPlugin(options),
176
198
  TemplatePlugin(options, appConfig),
177
- AppConfigPlugin(options, appConfig)
178
- ];
199
+ AppConfigPlugin(options, appConfig),
200
+ {
201
+ name: "nuxt:ui:plugins-duplication-detection",
202
+ vite: {
203
+ configResolved(config) {
204
+ const plugins = config.plugins || [];
205
+ if (plugins.filter((i) => i.name === "unplugin-auto-import").length > 1) {
206
+ throw new Error("[Nuxt UI] Multiple instances of `unplugin-auto-import` detected. Nuxt UI includes `unplugin-auto-import` already, and you can configure it using `autoImport` option in Nuxt UI module options.");
207
+ }
208
+ if (plugins.filter((i) => i.name === "unplugin-vue-components").length > 1) {
209
+ throw new Error("[Nuxt UI] Multiple instances of `unplugin-vue-components` detected. Nuxt UI includes `unplugin-vue-components` already, and you can configure it using `components` option in Nuxt UI module options.");
210
+ }
211
+ }
212
+ }
213
+ }
214
+ ].flat(1);
179
215
  });
180
216
 
181
217
  export { NuxtUIPlugin, runtimeDir };
package/dist/vite.cjs CHANGED
@@ -4,18 +4,19 @@ const unplugin = require('./unplugin.cjs');
4
4
  require('node:url');
5
5
  require('pathe');
6
6
  require('unplugin');
7
- require('unplugin-auto-import');
8
7
  require('defu');
9
8
  require('@tailwindcss/vite');
10
- require('./shared/ui.BPnAe4QS.cjs');
9
+ require('./shared/ui.DfK2RX6G.cjs');
11
10
  require('../dist/runtime/utils/index.js');
12
11
  require('scule');
13
12
  require('@nuxt/kit');
13
+ require('tailwindcss/colors');
14
14
  require('tinyglobby');
15
15
  require('knitwork');
16
16
  require('magic-string');
17
17
  require('mlly');
18
18
  require('unplugin-vue-components');
19
+ require('unplugin-auto-import');
19
20
 
20
21
  const vite = unplugin.NuxtUIPlugin.vite;
21
22
 
package/dist/vite.d.cts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as vite from 'vite';
2
2
  import { NuxtUIOptions } from './unplugin.cjs';
3
3
  import 'unplugin';
4
+ import 'unplugin-auto-import/types';
5
+ import 'unplugin-vue-components/types';
4
6
  import 'tailwindcss/colors';
5
7
  import '#build/ui';
6
8
  import './module.cjs';
package/dist/vite.d.mts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as vite from 'vite';
2
2
  import { NuxtUIOptions } from './unplugin.mjs';
3
3
  import 'unplugin';
4
+ import 'unplugin-auto-import/types';
5
+ import 'unplugin-vue-components/types';
4
6
  import 'tailwindcss/colors';
5
7
  import '#build/ui';
6
8
  import './module.mjs';
package/dist/vite.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as vite from 'vite';
2
2
  import { NuxtUIOptions } from './unplugin.js';
3
3
  import 'unplugin';
4
+ import 'unplugin-auto-import/types';
5
+ import 'unplugin-vue-components/types';
4
6
  import 'tailwindcss/colors';
5
7
  import '#build/ui';
6
8
  import './module.js';
package/dist/vite.mjs CHANGED
@@ -2,18 +2,19 @@ import { NuxtUIPlugin } from './unplugin.mjs';
2
2
  import 'node:url';
3
3
  import 'pathe';
4
4
  import 'unplugin';
5
- import 'unplugin-auto-import';
6
5
  import 'defu';
7
6
  import '@tailwindcss/vite';
8
- import './shared/ui.d52SSCwA.mjs';
7
+ import './shared/ui.DSPu6Y8j.mjs';
9
8
  import '../dist/runtime/utils/index.js';
10
9
  import 'scule';
11
10
  import '@nuxt/kit';
11
+ import 'tailwindcss/colors';
12
12
  import 'tinyglobby';
13
13
  import 'knitwork';
14
14
  import 'magic-string';
15
15
  import 'mlly';
16
16
  import 'unplugin-vue-components';
17
+ import 'unplugin-auto-import';
17
18
 
18
19
  const vite = NuxtUIPlugin.vite;
19
20