@nuxt/ui 3.0.0-alpha.1 → 3.0.0-alpha.10

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 (332) hide show
  1. package/.nuxt/ui/accordion.ts +20 -0
  2. package/.nuxt/ui/alert.ts +242 -0
  3. package/.nuxt/ui/avatar-group.ts +40 -0
  4. package/.nuxt/ui/avatar.ts +42 -0
  5. package/.nuxt/ui/badge.ts +194 -0
  6. package/.nuxt/ui/breadcrumb.ts +45 -0
  7. package/.nuxt/ui/button-group.ts +16 -0
  8. package/.nuxt/ui/button.ts +344 -0
  9. package/.nuxt/ui/calendar.ts +85 -0
  10. package/.nuxt/ui/card.ts +8 -0
  11. package/.nuxt/ui/carousel.ts +41 -0
  12. package/.nuxt/ui/checkbox.ts +105 -0
  13. package/.nuxt/ui/chip.ts +67 -0
  14. package/.nuxt/ui/collapsible.ts +6 -0
  15. package/.nuxt/ui/color-picker.ts +39 -0
  16. package/.nuxt/ui/command-palette.ts +50 -0
  17. package/.nuxt/ui/container.ts +3 -0
  18. package/.nuxt/ui/context-menu.ts +198 -0
  19. package/.nuxt/ui/drawer.ts +55 -0
  20. package/.nuxt/ui/dropdown-menu.ts +199 -0
  21. package/.nuxt/ui/form-field.ts +40 -0
  22. package/.nuxt/ui/form.ts +3 -0
  23. package/.nuxt/ui/index.ts +48 -0
  24. package/.nuxt/ui/input-menu.ts +410 -0
  25. package/.nuxt/ui/input-number.ts +204 -0
  26. package/.nuxt/ui/input.ts +263 -0
  27. package/.nuxt/ui/kbd.ts +19 -0
  28. package/.nuxt/ui/link.ts +15 -0
  29. package/.nuxt/ui/modal.ts +28 -0
  30. package/.nuxt/ui/navigation-menu.ts +390 -0
  31. package/.nuxt/ui/pagination.ts +8 -0
  32. package/.nuxt/ui/pin-input.ts +145 -0
  33. package/.nuxt/ui/popover.ts +6 -0
  34. package/.nuxt/ui/progress.ts +258 -0
  35. package/.nuxt/ui/radio-group.ts +112 -0
  36. package/.nuxt/ui/select-menu.ts +316 -0
  37. package/.nuxt/ui/select.ts +315 -0
  38. package/.nuxt/ui/separator.ts +143 -0
  39. package/.nuxt/ui/skeleton.ts +3 -0
  40. package/.nuxt/ui/slideover.ts +63 -0
  41. package/.nuxt/ui/slider.ts +148 -0
  42. package/.nuxt/ui/stepper.ts +180 -0
  43. package/.nuxt/ui/switch.ts +113 -0
  44. package/.nuxt/ui/table.ts +129 -0
  45. package/.nuxt/ui/tabs.ts +227 -0
  46. package/.nuxt/ui/textarea.ts +263 -0
  47. package/.nuxt/ui/toast.ts +66 -0
  48. package/.nuxt/ui/toaster.ts +75 -0
  49. package/.nuxt/ui/tooltip.ts +9 -0
  50. package/README.md +75 -54
  51. package/cli/commands/{init.mjs → make/component.mjs} +5 -5
  52. package/cli/commands/make/index.mjs +14 -0
  53. package/cli/commands/make/locale.mjs +64 -0
  54. package/cli/index.mjs +2 -2
  55. package/cli/templates.mjs +52 -7
  56. package/cli/utils.mjs +14 -0
  57. package/dist/chunks/component-meta.cjs +82802 -0
  58. package/dist/chunks/component-meta.mjs +82800 -0
  59. package/dist/client/devtools/200.html +1 -0
  60. package/dist/client/devtools/404.html +1 -0
  61. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
  62. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
  63. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
  64. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
  65. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
  66. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
  67. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
  68. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
  69. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
  70. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
  71. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
  72. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
  73. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
  74. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
  75. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
  76. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
  77. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
  78. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
  79. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
  80. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
  81. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
  82. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
  83. package/dist/client/devtools/_nuxt/B1fTd_Rf.js +1 -0
  84. package/dist/client/devtools/_nuxt/CSUxkedg.js +1 -0
  85. package/dist/client/devtools/_nuxt/CbRTGpb7.js +1 -0
  86. package/dist/client/devtools/_nuxt/YQTlxbcT.js +53 -0
  87. package/dist/client/devtools/_nuxt/builds/latest.json +1 -0
  88. package/dist/client/devtools/_nuxt/builds/meta/b3465abc-0a92-4ee7-ba6b-e5174891fcc0.json +1 -0
  89. package/dist/client/devtools/_nuxt/entry.DXXceQev.css +1 -0
  90. package/dist/client/devtools/_nuxt/error-404.BJpkZFyY.css +1 -0
  91. package/dist/client/devtools/_nuxt/error-500.D3i9VDlt.css +1 -0
  92. package/dist/client/devtools/favicon.svg +1 -0
  93. package/dist/client/devtools/index.html +1 -0
  94. package/dist/devtools/runtime/DevtoolsRenderer.vue +54 -0
  95. package/dist/devtools/runtime/examples/AvatarGroupExample.vue +7 -0
  96. package/dist/devtools/runtime/examples/ButtonGroupExample.vue +8 -0
  97. package/dist/devtools/runtime/examples/CardExample.vue +13 -0
  98. package/dist/devtools/runtime/examples/CarouselExample.vue +13 -0
  99. package/dist/devtools/runtime/examples/ChipExample.vue +5 -0
  100. package/dist/devtools/runtime/examples/CollapsibleExample.vue +8 -0
  101. package/dist/devtools/runtime/examples/CommandPaletteExample.vue +29 -0
  102. package/dist/devtools/runtime/examples/ContainerExample.vue +5 -0
  103. package/dist/devtools/runtime/examples/ContextMenuExample.vue +5 -0
  104. package/dist/devtools/runtime/examples/DrawerExample.vue +8 -0
  105. package/dist/devtools/runtime/examples/DropdownMenuExample.vue +5 -0
  106. package/dist/devtools/runtime/examples/FormExample.vue +30 -0
  107. package/dist/devtools/runtime/examples/FormFieldExample.vue +5 -0
  108. package/dist/devtools/runtime/examples/LinkExample.vue +5 -0
  109. package/dist/devtools/runtime/examples/ModalExample.vue +8 -0
  110. package/dist/devtools/runtime/examples/PopoverExample.vue +8 -0
  111. package/dist/devtools/runtime/examples/SkeletonExample.vue +3 -0
  112. package/dist/devtools/runtime/examples/SlideoverExample.vue +8 -0
  113. package/dist/devtools/runtime/examples/StepperExample.vue +44 -0
  114. package/dist/devtools/runtime/examples/ToasterExample.vue +11 -0
  115. package/dist/devtools/runtime/examples/TooltipExample.vue +5 -0
  116. package/dist/module.cjs +223 -4
  117. package/dist/module.d.cts +54 -0
  118. package/dist/module.d.mts +38 -7
  119. package/dist/module.d.ts +38 -7
  120. package/dist/module.json +2 -1
  121. package/dist/module.mjs +179 -2568
  122. package/dist/runtime/components/Accordion.vue +49 -8
  123. package/dist/runtime/components/Alert.vue +13 -6
  124. package/dist/runtime/components/App.vue +20 -7
  125. package/dist/runtime/components/Avatar.vue +33 -9
  126. package/dist/runtime/components/AvatarGroup.vue +4 -1
  127. package/dist/runtime/components/Badge.vue +34 -4
  128. package/dist/runtime/components/Breadcrumb.vue +52 -13
  129. package/dist/runtime/components/Button.vue +45 -6
  130. package/dist/runtime/components/ButtonGroup.vue +5 -2
  131. package/dist/runtime/components/Calendar.vue +190 -0
  132. package/dist/runtime/components/Card.vue +4 -1
  133. package/dist/runtime/components/Carousel.vue +322 -0
  134. package/dist/runtime/components/Checkbox.vue +28 -33
  135. package/dist/runtime/components/Chip.vue +9 -2
  136. package/dist/runtime/components/Collapsible.vue +7 -4
  137. package/dist/runtime/components/ColorPicker.vue +265 -0
  138. package/dist/runtime/components/CommandPalette.vue +122 -96
  139. package/dist/runtime/components/Container.vue +4 -1
  140. package/dist/runtime/components/ContextMenu.vue +101 -14
  141. package/dist/runtime/components/ContextMenuContent.vue +48 -18
  142. package/dist/runtime/components/Drawer.vue +22 -11
  143. package/dist/runtime/components/DropdownMenu.vue +91 -16
  144. package/dist/runtime/components/DropdownMenuContent.vue +50 -18
  145. package/dist/runtime/components/Form.vue +49 -32
  146. package/dist/runtime/components/FormField.vue +18 -6
  147. package/dist/runtime/components/Icon.vue +1 -1
  148. package/dist/runtime/components/Input.vue +15 -6
  149. package/dist/runtime/components/InputMenu.vue +152 -65
  150. package/dist/runtime/components/InputNumber.vue +192 -0
  151. package/dist/runtime/components/Kbd.vue +3 -1
  152. package/dist/runtime/components/Link.vue +71 -8
  153. package/dist/runtime/components/LinkBase.vue +10 -7
  154. package/dist/runtime/components/Modal.vue +23 -11
  155. package/dist/runtime/components/NavigationMenu.vue +170 -75
  156. package/dist/runtime/components/Pagination.vue +31 -15
  157. package/dist/runtime/components/PinInput.vue +96 -0
  158. package/dist/runtime/components/Popover.vue +26 -7
  159. package/dist/runtime/components/Progress.vue +25 -8
  160. package/dist/runtime/components/RadioGroup.vue +28 -7
  161. package/dist/runtime/components/Select.vue +79 -32
  162. package/dist/runtime/components/SelectMenu.vue +164 -80
  163. package/dist/runtime/components/Separator.vue +3 -3
  164. package/dist/runtime/components/Skeleton.vue +4 -1
  165. package/dist/runtime/components/Slideover.vue +23 -11
  166. package/dist/runtime/components/Slider.vue +3 -3
  167. package/dist/runtime/components/Stepper.vue +171 -0
  168. package/dist/runtime/components/Switch.vue +16 -16
  169. package/dist/runtime/components/Table.vue +262 -0
  170. package/dist/runtime/components/Tabs.vue +42 -15
  171. package/dist/runtime/components/Textarea.vue +9 -3
  172. package/dist/runtime/components/Toast.vue +13 -5
  173. package/dist/runtime/components/Toaster.vue +31 -16
  174. package/dist/runtime/components/Tooltip.vue +9 -6
  175. package/dist/runtime/composables/defineLocale.d.ts +9 -0
  176. package/dist/runtime/composables/defineLocale.js +4 -0
  177. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  178. package/dist/runtime/composables/defineShortcuts.js +2 -8
  179. package/dist/runtime/composables/extendDevtoolsMeta.d.ts +7 -0
  180. package/dist/runtime/composables/extendDevtoolsMeta.js +2 -0
  181. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  182. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  183. package/dist/runtime/composables/useComponentIcons.d.ts +3 -0
  184. package/dist/runtime/composables/useFormField.d.ts +8 -4
  185. package/dist/runtime/composables/useFormField.js +2 -1
  186. package/dist/runtime/composables/useKbd.d.ts +10 -3
  187. package/dist/runtime/composables/useKbd.js +14 -8
  188. package/dist/runtime/composables/useLocale.d.ts +4 -0
  189. package/dist/runtime/composables/useLocale.js +10 -0
  190. package/dist/runtime/composables/useModal.d.ts +2 -2
  191. package/dist/runtime/composables/useSlideover.d.ts +2 -2
  192. package/dist/runtime/composables/useToast.d.ts +2 -2
  193. package/dist/runtime/index.css +1 -1
  194. package/dist/runtime/keyframes.css +1 -0
  195. package/dist/runtime/locale/ar.d.ts +2 -0
  196. package/dist/runtime/locale/ar.js +53 -0
  197. package/dist/runtime/locale/cs.d.ts +2 -0
  198. package/dist/runtime/locale/cs.js +52 -0
  199. package/dist/runtime/locale/de.d.ts +2 -0
  200. package/dist/runtime/locale/de.js +52 -0
  201. package/dist/runtime/locale/en.d.ts +2 -0
  202. package/dist/runtime/locale/en.js +52 -0
  203. package/dist/runtime/locale/es.d.ts +2 -0
  204. package/dist/runtime/locale/es.js +52 -0
  205. package/dist/runtime/locale/fa_ir.d.ts +2 -0
  206. package/dist/runtime/locale/fa_ir.js +53 -0
  207. package/dist/runtime/locale/fr.d.ts +2 -0
  208. package/dist/runtime/locale/fr.js +52 -0
  209. package/dist/runtime/locale/index.d.ts +19 -0
  210. package/dist/runtime/locale/index.js +19 -0
  211. package/dist/runtime/locale/it.d.ts +2 -0
  212. package/dist/runtime/locale/it.js +52 -0
  213. package/dist/runtime/locale/ja.d.ts +2 -0
  214. package/dist/runtime/locale/ja.js +52 -0
  215. package/dist/runtime/locale/ko.d.ts +2 -0
  216. package/dist/runtime/locale/ko.js +52 -0
  217. package/dist/runtime/locale/nl.d.ts +2 -0
  218. package/dist/runtime/locale/nl.js +52 -0
  219. package/dist/runtime/locale/pl.d.ts +2 -0
  220. package/dist/runtime/locale/pl.js +52 -0
  221. package/dist/runtime/locale/pt.d.ts +2 -0
  222. package/dist/runtime/locale/pt.js +52 -0
  223. package/dist/runtime/locale/pt_br.d.ts +2 -0
  224. package/dist/runtime/locale/pt_br.js +52 -0
  225. package/dist/runtime/locale/ru.d.ts +2 -0
  226. package/dist/runtime/locale/ru.js +52 -0
  227. package/dist/runtime/locale/sk.d.ts +2 -0
  228. package/dist/runtime/locale/sk.js +52 -0
  229. package/dist/runtime/locale/tr.d.ts +2 -0
  230. package/dist/runtime/locale/tr.js +52 -0
  231. package/dist/runtime/locale/zh_hans.d.ts +2 -0
  232. package/dist/runtime/locale/zh_hans.js +52 -0
  233. package/dist/runtime/locale/zh_hant.d.ts +2 -0
  234. package/dist/runtime/locale/zh_hant.js +52 -0
  235. package/dist/runtime/plugins/colors.js +12 -8
  236. package/dist/runtime/types/form.d.ts +9 -2
  237. package/dist/runtime/types/index.d.ts +50 -42
  238. package/dist/runtime/types/index.js +8 -0
  239. package/dist/runtime/types/locale.d.ts +54 -0
  240. package/dist/runtime/types/utils.d.ts +8 -3
  241. package/dist/runtime/utils/form.d.ts +7 -5
  242. package/dist/runtime/utils/form.js +117 -28
  243. package/dist/runtime/utils/index.d.ts +2 -1
  244. package/dist/runtime/utils/index.js +16 -0
  245. package/dist/runtime/utils/link.d.ts +5 -3
  246. package/dist/runtime/utils/link.js +1 -1
  247. package/dist/runtime/utils/locale.d.ts +15 -0
  248. package/dist/runtime/utils/locale.js +25 -0
  249. package/dist/runtime/vue/components/Icon.vue +15 -0
  250. package/dist/runtime/vue/components/Link.vue +208 -0
  251. package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
  252. package/dist/runtime/vue/plugins/color-mode.js +6 -0
  253. package/dist/runtime/vue/plugins/head.d.ts +4 -0
  254. package/dist/runtime/vue/plugins/head.js +6 -0
  255. package/dist/runtime/vue/stubs.d.ts +15 -0
  256. package/dist/runtime/vue/stubs.js +27 -0
  257. package/dist/shared/ui.CwmIkD_Y.cjs +3269 -0
  258. package/dist/shared/ui.D_93iuwH.mjs +3262 -0
  259. package/dist/unplugin.cjs +192 -0
  260. package/dist/unplugin.d.cts +49 -0
  261. package/dist/unplugin.d.mts +49 -0
  262. package/dist/unplugin.d.ts +49 -0
  263. package/dist/unplugin.mjs +181 -0
  264. package/dist/vite.cjs +22 -0
  265. package/dist/vite.d.cts +13 -0
  266. package/dist/vite.d.mts +13 -0
  267. package/dist/vite.d.ts +13 -0
  268. package/dist/vite.mjs +20 -0
  269. package/package.json +98 -31
  270. package/vue-plugin.d.ts +5 -0
  271. package/cli/node_modules/.ignored/citty/LICENSE +0 -36
  272. package/cli/node_modules/.ignored/citty/README.md +0 -134
  273. package/cli/node_modules/.ignored/citty/dist/index.cjs +0 -475
  274. package/cli/node_modules/.ignored/citty/dist/index.d.cts +0 -80
  275. package/cli/node_modules/.ignored/citty/dist/index.d.mts +0 -80
  276. package/cli/node_modules/.ignored/citty/dist/index.d.ts +0 -80
  277. package/cli/node_modules/.ignored/citty/dist/index.mjs +0 -463
  278. package/cli/node_modules/.ignored/citty/package.json +0 -49
  279. package/cli/node_modules/.ignored/consola/LICENSE +0 -47
  280. package/cli/node_modules/.ignored/consola/README.md +0 -318
  281. package/cli/node_modules/.ignored/consola/core.d.ts +0 -1
  282. package/cli/node_modules/.ignored/consola/dist/basic.cjs +0 -32
  283. package/cli/node_modules/.ignored/consola/dist/basic.d.ts +0 -9
  284. package/cli/node_modules/.ignored/consola/dist/basic.mjs +0 -24
  285. package/cli/node_modules/.ignored/consola/dist/browser.cjs +0 -80
  286. package/cli/node_modules/.ignored/consola/dist/browser.d.ts +0 -7
  287. package/cli/node_modules/.ignored/consola/dist/browser.mjs +0 -72
  288. package/cli/node_modules/.ignored/consola/dist/chunks/prompt.cjs +0 -436
  289. package/cli/node_modules/.ignored/consola/dist/chunks/prompt.mjs +0 -429
  290. package/cli/node_modules/.ignored/consola/dist/core.cjs +0 -415
  291. package/cli/node_modules/.ignored/consola/dist/core.d.ts +0 -124
  292. package/cli/node_modules/.ignored/consola/dist/core.mjs +0 -410
  293. package/cli/node_modules/.ignored/consola/dist/index.cjs +0 -21
  294. package/cli/node_modules/.ignored/consola/dist/index.d.ts +0 -9
  295. package/cli/node_modules/.ignored/consola/dist/index.mjs +0 -8
  296. package/cli/node_modules/.ignored/consola/dist/shared/consola.06ad8a64.mjs +0 -62
  297. package/cli/node_modules/.ignored/consola/dist/shared/consola.36c0034f.mjs +0 -636
  298. package/cli/node_modules/.ignored/consola/dist/shared/consola.4bbae468.cjs +0 -645
  299. package/cli/node_modules/.ignored/consola/dist/shared/consola.deac7d5a.cjs +0 -65
  300. package/cli/node_modules/.ignored/consola/dist/utils.cjs +0 -308
  301. package/cli/node_modules/.ignored/consola/dist/utils.d.ts +0 -169
  302. package/cli/node_modules/.ignored/consola/dist/utils.mjs +0 -284
  303. package/cli/node_modules/.ignored/consola/lib/index.cjs +0 -9
  304. package/cli/node_modules/.ignored/consola/package.json +0 -101
  305. package/cli/node_modules/.ignored/consola/utils.d.ts +0 -1
  306. package/cli/node_modules/.ignored/pathe/LICENSE +0 -44
  307. package/cli/node_modules/.ignored/pathe/README.md +0 -69
  308. package/cli/node_modules/.ignored/pathe/dist/index.cjs +0 -23
  309. package/cli/node_modules/.ignored/pathe/dist/index.d.cts +0 -36
  310. package/cli/node_modules/.ignored/pathe/dist/index.d.mts +0 -36
  311. package/cli/node_modules/.ignored/pathe/dist/index.d.ts +0 -36
  312. package/cli/node_modules/.ignored/pathe/dist/index.mjs +0 -1
  313. package/cli/node_modules/.ignored/pathe/dist/shared/pathe.1f0a373c.cjs +0 -238
  314. package/cli/node_modules/.ignored/pathe/dist/shared/pathe.ff20891b.mjs +0 -221
  315. package/cli/node_modules/.ignored/pathe/dist/utils.cjs +0 -58
  316. package/cli/node_modules/.ignored/pathe/dist/utils.d.cts +0 -5
  317. package/cli/node_modules/.ignored/pathe/dist/utils.d.mts +0 -5
  318. package/cli/node_modules/.ignored/pathe/dist/utils.d.ts +0 -5
  319. package/cli/node_modules/.ignored/pathe/dist/utils.mjs +0 -54
  320. package/cli/node_modules/.ignored/pathe/package.json +0 -48
  321. package/cli/node_modules/.ignored/pathe/utils.d.ts +0 -1
  322. package/cli/node_modules/.ignored/scule/LICENSE +0 -21
  323. package/cli/node_modules/.ignored/scule/README.md +0 -149
  324. package/cli/node_modules/.ignored/scule/dist/index.cjs +0 -92
  325. package/cli/node_modules/.ignored/scule/dist/index.d.cts +0 -57
  326. package/cli/node_modules/.ignored/scule/dist/index.d.mts +0 -57
  327. package/cli/node_modules/.ignored/scule/dist/index.d.ts +0 -57
  328. package/cli/node_modules/.ignored/scule/dist/index.mjs +0 -80
  329. package/cli/node_modules/.ignored/scule/package.json +0 -43
  330. package/cli/node_modules/.package-lock.json +0 -33
  331. package/dist/runtime/types/component.d.ts +0 -17
  332. /package/dist/runtime/types/{component.js → locale.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
- import type { InputHTMLAttributes } from 'vue'
3
2
  import { tv, type VariantProps } from 'tailwind-variants'
4
- import type { CheckboxRootProps } from 'radix-vue'
3
+ import type { CheckboxRootProps } from 'reka-ui'
5
4
  import type { AppConfig } from '@nuxt/schema'
6
5
  import _appConfig from '#build/app.config'
7
6
  import theme from '#build/ui/checkbox'
7
+ import { extendDevtoolsMeta } from '../composables/extendDevtoolsMeta'
8
8
 
9
9
  const appConfig = _appConfig as AppConfig & { ui: { checkbox: Partial<typeof theme> } }
10
10
 
@@ -12,7 +12,12 @@ const checkbox = tv({ extend: tv(theme), ...(appConfig.ui?.checkbox || {}) })
12
12
 
13
13
  type CheckboxVariants = VariantProps<typeof checkbox>
14
14
 
15
- export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'required' | 'name' | 'value' | 'id'> {
15
+ export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'required' | 'name' | 'value' | 'id' | 'defaultValue'> {
16
+ /**
17
+ * The element or component this component should render as.
18
+ * @defaultValue 'div'
19
+ */
20
+ as?: any
16
21
  label?: string
17
22
  description?: string
18
23
  color?: CheckboxVariants['color']
@@ -22,65 +27,53 @@ export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'req
22
27
  * @defaultValue appConfig.ui.icons.check
23
28
  */
24
29
  icon?: string
25
- indeterminate?: InputHTMLAttributes['indeterminate']
26
30
  /**
27
31
  * The icon displayed when the checkbox is indeterminate.
28
32
  * @defaultValue appConfig.ui.icons.minus
29
33
  */
30
34
  indeterminateIcon?: string
31
- /** The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state. */
32
- defaultValue?: boolean
33
35
  class?: any
34
36
  ui?: Partial<typeof checkbox.slots>
35
37
  }
36
38
 
37
- export interface CheckboxEmits {
38
- (e: 'update:modelValue', payload: boolean): void
39
- (e: 'change', payload: Event): void
39
+ export type CheckboxEmits = {
40
+ change: [payload: Event]
40
41
  }
41
42
 
42
43
  export interface CheckboxSlots {
43
44
  label(props: { label?: string }): any
44
45
  description(props: { description?: string }): any
45
46
  }
47
+
48
+ extendDevtoolsMeta({ defaultProps: { label: 'Check me!' } })
46
49
  </script>
47
50
 
48
51
  <script setup lang="ts">
49
52
  import { computed, useId } from 'vue'
50
- import { CheckboxRoot, CheckboxIndicator, Label, useForwardProps } from 'radix-vue'
53
+ import { Primitive, CheckboxRoot, CheckboxIndicator, Label, useForwardProps } from 'reka-ui'
51
54
  import { reactivePick } from '@vueuse/core'
52
55
  import { useAppConfig } from '#imports'
53
56
  import { useFormField } from '../composables/useFormField'
57
+ import UIcon from './Icon.vue'
54
58
 
55
59
  const props = defineProps<CheckboxProps>()
56
60
  const slots = defineSlots<CheckboxSlots>()
57
61
  const emits = defineEmits<CheckboxEmits>()
58
62
 
59
- const modelValue = defineModel<boolean | undefined>({ default: undefined })
63
+ const modelValue = defineModel<boolean | 'indeterminate'>({ default: undefined })
60
64
 
61
- const rootProps = useForwardProps(reactivePick(props, 'required', 'value'))
65
+ const rootProps = useForwardProps(reactivePick(props, 'required', 'value', 'defaultValue'))
62
66
 
63
67
  const appConfig = useAppConfig()
64
68
  const { id: _id, emitFormChange, emitFormInput, size, color, name, disabled } = useFormField<CheckboxProps>(props)
65
69
  const id = _id.value ?? useId()
66
70
 
67
- const indeterminate = computed(() => (modelValue.value === undefined && props.indeterminate))
68
-
69
- const checked = computed({
70
- get() {
71
- return indeterminate.value ? 'indeterminate' : modelValue.value
72
- },
73
- set(value) {
74
- modelValue.value = value === 'indeterminate' ? undefined : value
75
- }
76
- })
77
-
78
71
  const ui = computed(() => checkbox({
79
72
  size: size.value,
80
73
  color: color.value,
81
74
  required: props.required,
82
75
  disabled: disabled.value,
83
- checked: (modelValue.value ?? props.defaultValue) || indeterminate.value
76
+ checked: Boolean(modelValue.value ?? props.defaultValue)
84
77
  }))
85
78
 
86
79
  function onUpdate(value: any) {
@@ -92,23 +85,25 @@ function onUpdate(value: any) {
92
85
  }
93
86
  </script>
94
87
 
88
+ <!-- eslint-disable vue/no-template-shadow -->
95
89
  <template>
96
- <div :class="ui.root({ class: [props.class, props.ui?.root] })">
90
+ <Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })">
97
91
  <div :class="ui.container({ class: props.ui?.container })">
98
92
  <CheckboxRoot
99
93
  :id="id"
100
- v-model:checked="checked"
101
- :default-checked="defaultValue"
102
94
  v-bind="rootProps"
95
+ v-model="modelValue"
103
96
  :name="name"
104
97
  :disabled="disabled"
105
98
  :class="ui.base({ class: props.ui?.base })"
106
- @update:checked="onUpdate"
99
+ @update:model-value="onUpdate"
107
100
  >
108
- <CheckboxIndicator as-child>
109
- <UIcon v-if="indeterminate" :name="indeterminateIcon || appConfig.ui.icons.minus" :class="ui.icon({ class: props.ui?.icon })" />
110
- <UIcon v-else :name="icon || appConfig.ui.icons.check" :class="ui.icon({ class: props.ui?.icon })" />
111
- </CheckboxIndicator>
101
+ <template #default="{ modelValue }">
102
+ <CheckboxIndicator as-child>
103
+ <UIcon v-if="modelValue === 'indeterminate'" :name="indeterminateIcon || appConfig.ui.icons.minus" :class="ui.icon({ class: props.ui?.icon })" />
104
+ <UIcon v-else :name="icon || appConfig.ui.icons.check" :class="ui.icon({ class: props.ui?.icon })" />
105
+ </CheckboxIndicator>
106
+ </template>
112
107
  </CheckboxRoot>
113
108
  </div>
114
109
 
@@ -124,5 +119,5 @@ function onUpdate(value: any) {
124
119
  </slot>
125
120
  </p>
126
121
  </div>
127
- </div>
122
+ </Primitive>
128
123
  </template>
@@ -3,6 +3,7 @@ import { tv, type VariantProps } from 'tailwind-variants'
3
3
  import type { AppConfig } from '@nuxt/schema'
4
4
  import _appConfig from '#build/app.config'
5
5
  import theme from '#build/ui/chip'
6
+ import { extendDevtoolsMeta } from '../composables/extendDevtoolsMeta'
6
7
 
7
8
  const appConfig = _appConfig as AppConfig & { ui: { chip: Partial<typeof theme> } }
8
9
 
@@ -37,13 +38,17 @@ export interface ChipSlots {
37
38
  default(props?: {}): any
38
39
  content(props?: {}): any
39
40
  }
41
+
42
+ extendDevtoolsMeta({ example: 'ChipExample' })
40
43
  </script>
41
44
 
42
45
  <script setup lang="ts">
43
46
  import { computed } from 'vue'
44
- import { Primitive } from 'radix-vue'
47
+ import { Primitive, Slot } from 'reka-ui'
45
48
  import { useAvatarGroup } from '../composables/useAvatarGroup'
46
49
 
50
+ defineOptions({ inheritAttrs: false })
51
+
47
52
  const props = withDefaults(defineProps<ChipProps>(), {
48
53
  inset: false,
49
54
  standalone: false
@@ -65,7 +70,9 @@ const ui = computed(() => chip({
65
70
 
66
71
  <template>
67
72
  <Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })">
68
- <slot />
73
+ <Slot v-bind="$attrs">
74
+ <slot />
75
+ </Slot>
69
76
 
70
77
  <span v-if="show" :class="ui.base({ class: props.ui?.base })">
71
78
  <slot name="content">
@@ -1,15 +1,16 @@
1
1
  <script lang="ts">
2
2
  import { tv } from 'tailwind-variants'
3
- import type { CollapsibleRootProps, CollapsibleRootEmits } from 'radix-vue'
3
+ import type { CollapsibleRootProps, CollapsibleRootEmits } from 'reka-ui'
4
4
  import type { AppConfig } from '@nuxt/schema'
5
5
  import _appConfig from '#build/app.config'
6
6
  import theme from '#build/ui/collapsible'
7
+ import { extendDevtoolsMeta } from '../composables/extendDevtoolsMeta'
7
8
 
8
9
  const appConfig = _appConfig as AppConfig & { ui: { collapsible: Partial<typeof theme> } }
9
10
 
10
11
  const collapsible = tv({ extend: tv(theme), ...(appConfig.ui?.collapsible || {}) })
11
12
 
12
- export interface CollapsibleProps extends Pick<CollapsibleRootProps, 'defaultOpen' | 'open' | 'disabled'> {
13
+ export interface CollapsibleProps extends Pick<CollapsibleRootProps, 'defaultOpen' | 'open' | 'disabled' | 'unmountOnHide'> {
13
14
  /**
14
15
  * The element or component this component should render as.
15
16
  * @defaultValue 'div'
@@ -25,17 +26,19 @@ export interface CollapsibleSlots {
25
26
  default(props: { open: boolean }): any
26
27
  content(props?: {}): any
27
28
  }
29
+
30
+ extendDevtoolsMeta({ example: 'CollapsibleExample' })
28
31
  </script>
29
32
 
30
33
  <script setup lang="ts">
31
- import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, useForwardPropsEmits } from 'radix-vue'
34
+ import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, useForwardPropsEmits } from 'reka-ui'
32
35
  import { reactivePick } from '@vueuse/core'
33
36
 
34
37
  const props = defineProps<CollapsibleProps>()
35
38
  const emits = defineEmits<CollapsibleEmits>()
36
39
  const slots = defineSlots<CollapsibleSlots>()
37
40
 
38
- const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultOpen', 'open', 'disabled'), emits)
41
+ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultOpen', 'open', 'disabled', 'unmountOnHide'), emits)
39
42
 
40
43
  // eslint-disable-next-line vue/no-dupe-keys
41
44
  const ui = collapsible()
@@ -0,0 +1,265 @@
1
+ <script lang="ts">
2
+ import { tv, type VariantProps } from 'tailwind-variants'
3
+ import type { MaybeRefOrGetter } from '@vueuse/shared'
4
+ import type { AppConfig } from '@nuxt/schema'
5
+ import _appConfig from '#build/app.config'
6
+ import theme from '#build/ui/color-picker'
7
+
8
+ const appConfig = _appConfig as AppConfig & { ui: { colorPicker: Partial<typeof theme> } }
9
+
10
+ const colorPicker = tv({ extend: tv(theme), ...(appConfig.ui?.colorPicker || {}) })
11
+
12
+ type ColorPickerVariants = VariantProps<typeof colorPicker>
13
+
14
+ type HSVColor = {
15
+ h: number
16
+ s: number
17
+ v: number
18
+ }
19
+
20
+ export type ColorPickerProps = {
21
+ /**
22
+ * The element or component this component should render as.
23
+ * @defaultValue 'div'
24
+ */
25
+ as?: any
26
+ /**
27
+ * Throttle time in ms for the color picker
28
+ */
29
+ throttle?: number
30
+ /**
31
+ * Disable the color picker
32
+ */
33
+ disabled?: boolean
34
+ /**
35
+ * The default value of the color picker
36
+ */
37
+ defaultValue?: string
38
+ /**
39
+ * Format of the color
40
+ * @defaultValue 'hex'
41
+ */
42
+ format?: 'hex' | 'rgb' | 'hsl' | 'hwb'
43
+ size?: ColorPickerVariants['size']
44
+ class?: any
45
+ ui?: Partial<typeof colorPicker.slots>
46
+ }
47
+ </script>
48
+
49
+ <script setup lang="ts">
50
+ import { ref, nextTick, computed, toValue } from 'vue'
51
+ import { Primitive } from 'reka-ui'
52
+ import { useEventListener, useElementBounding, watchThrottled, watchPausable } from '@vueuse/core'
53
+ import { isClient } from '@vueuse/shared'
54
+ import Color from 'color'
55
+
56
+ const props = withDefaults(defineProps<ColorPickerProps>(), {
57
+ format: 'hex',
58
+ throttle: 50,
59
+ defaultValue: '#FFFFFF'
60
+ })
61
+ const modelValue = defineModel<string>(undefined)
62
+
63
+ const pickedColor = computed<HSVColor>({
64
+ get() {
65
+ try {
66
+ const color = Color(modelValue.value || props.defaultValue)
67
+ return color.hsv().object() as HSVColor
68
+ } catch (_) {
69
+ return { h: 0, s: 0, v: 100 }
70
+ }
71
+ },
72
+ set(value) {
73
+ const color = Color.hsv(value.h, value.s, value.v)
74
+
75
+ switch (props.format) {
76
+ case 'rgb':
77
+ modelValue.value = color.rgb().string()
78
+ break
79
+ case 'hsl':
80
+ modelValue.value = color.hsl().string()
81
+ break
82
+ case 'hwb':
83
+ modelValue.value = color.hwb().string()
84
+ break
85
+ case 'hex':
86
+ default:
87
+ modelValue.value = color.hex()
88
+ }
89
+ }
90
+ })
91
+
92
+ function useColorDraggable(targetElement: MaybeRefOrGetter<HTMLElement | null>,
93
+ containerElement: MaybeRefOrGetter<HTMLElement | null>,
94
+ axis: 'x' | 'y' | 'both' = 'both',
95
+ initialPosition = { x: 0, y: 0 },
96
+ disabled?: MaybeRefOrGetter<boolean | undefined>
97
+ ) {
98
+ const position = ref<{ x: number, y: number }>(initialPosition)
99
+ const pressedDelta = ref<{ x: number, y: number }>()
100
+ const targetRect = useElementBounding(targetElement)
101
+ const containerRect = useElementBounding(containerElement)
102
+
103
+ function start(event: PointerEvent) {
104
+ if (toValue(disabled)) return event.preventDefault()
105
+
106
+ const container = toValue(containerElement)
107
+
108
+ pressedDelta.value = {
109
+ x: event.clientX - (container ? event.clientX - containerRect.left.value + container.scrollLeft : targetRect.left.value),
110
+ y: event.clientY - (container ? event.clientY - containerRect.top.value + container.scrollTop : targetRect.top.value)
111
+ }
112
+
113
+ move(event)
114
+ }
115
+
116
+ function move(event: PointerEvent) {
117
+ if (!pressedDelta.value) return
118
+
119
+ const container = toValue(containerElement)
120
+ let { x, y } = position.value
121
+
122
+ if (container && (axis === 'x' || axis === 'both')) {
123
+ x = Math.min(Math.max(0, (event.clientX - pressedDelta.value.x) / container.scrollWidth * 100), 100)
124
+ }
125
+
126
+ if (container && (axis === 'y' || axis === 'both')) {
127
+ y = Math.min(Math.max(0, (event.clientY - pressedDelta.value.y) / container.scrollHeight * 100), 100)
128
+ }
129
+
130
+ position.value = { x, y }
131
+ }
132
+
133
+ function end() {
134
+ if (!pressedDelta.value) {
135
+ return
136
+ }
137
+
138
+ pressedDelta.value = undefined
139
+ }
140
+
141
+ if (isClient) {
142
+ useEventListener(containerElement, 'pointerdown', start)
143
+ useEventListener(window, 'pointermove', move)
144
+ useEventListener(window, 'pointerup', end)
145
+ }
146
+
147
+ return {
148
+ position
149
+ }
150
+ }
151
+
152
+ function normalizeHue(hue: number, dir: 'left' | 'right' = 'left'): number {
153
+ if (dir === 'right') {
154
+ return (hue * 100) / 360
155
+ }
156
+
157
+ return (hue / 100) * 360
158
+ }
159
+
160
+ function normalizeBrightness(brightness: number): number {
161
+ return 100 - brightness
162
+ }
163
+
164
+ const selectorRef = ref<HTMLDivElement | null>(null)
165
+ const selectorThumbRef = ref<HTMLDivElement | null>(null)
166
+ const trackRef = ref<HTMLDivElement | null>(null)
167
+ const trackThumbRef = ref<HTMLDivElement | null>(null)
168
+
169
+ const disabled = computed(() => props.disabled)
170
+
171
+ const { position: selectorThumbPosition } = useColorDraggable(selectorThumbRef, selectorRef, 'both', {
172
+ x: pickedColor.value.s,
173
+ y: normalizeBrightness(pickedColor.value.v)
174
+ }, disabled)
175
+
176
+ const { position: trackThumbPosition } = useColorDraggable(trackThumbRef, trackRef, 'y', {
177
+ x: 0,
178
+ y: normalizeHue(pickedColor.value.h, 'right')
179
+ }, disabled)
180
+
181
+ const { pause: pauseWatchColor, resume: resumeWatchColor } = watchPausable(pickedColor, (hsb) => {
182
+ selectorThumbPosition.value = {
183
+ x: hsb.s,
184
+ y: normalizeBrightness(hsb.v)
185
+ }
186
+ trackThumbPosition.value = {
187
+ x: 0,
188
+ y: normalizeHue(hsb.h, 'right')
189
+ }
190
+ })
191
+
192
+ watchThrottled([selectorThumbPosition, trackThumbPosition], () => {
193
+ pauseWatchColor()
194
+
195
+ pickedColor.value = {
196
+ h: normalizeHue(trackThumbPosition.value.y),
197
+ s: selectorThumbPosition.value.x,
198
+ v: normalizeBrightness(selectorThumbPosition.value.y)
199
+ }
200
+
201
+ nextTick(resumeWatchColor)
202
+ }, { throttle: () => props.throttle })
203
+
204
+ const trackThumbColor = computed(() => Color({
205
+ h: normalizeHue(trackThumbPosition.value.y),
206
+ s: 100,
207
+ v: 100
208
+ }).hex())
209
+
210
+ const selectorStyle = computed(() => ({
211
+ backgroundColor: trackThumbColor.value
212
+ }))
213
+
214
+ const selectorThumbStyle = computed(() => ({
215
+ backgroundColor: Color(modelValue.value || props.defaultValue).hex(),
216
+ left: `${selectorThumbPosition.value.x}%`,
217
+ top: `${selectorThumbPosition.value.y}%`
218
+ }))
219
+
220
+ const trackThumbStyle = computed(() => ({
221
+ backgroundColor: trackThumbColor.value,
222
+ top: `${trackThumbPosition.value.y}%`
223
+ }))
224
+
225
+ const ui = computed(() => colorPicker({
226
+ size: props.size
227
+ }))
228
+ </script>
229
+
230
+ <template>
231
+ <Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })" :data-disabled="disabled ? true : undefined">
232
+ <div :class="ui.picker({ class: props.ui?.picker })">
233
+ <div
234
+ ref="selectorRef"
235
+ :class="ui.selector({ class: props.ui?.selector })"
236
+ :style="selectorStyle"
237
+ >
238
+ <div :class="ui.selectorBackground({ class: props.ui?.selectorBackground })" data-color-picker-background>
239
+ <div
240
+ ref="selectorThumbRef"
241
+ :class="ui.selectorThumb({ class: props.ui?.selectorThumb })"
242
+ :style="selectorThumbStyle"
243
+ :data-disabled="disabled ? true : undefined"
244
+ />
245
+ </div>
246
+ </div>
247
+ <div
248
+ ref="trackRef"
249
+ :class="ui.track({ class: props.ui?.track })"
250
+ data-color-picker-track
251
+ >
252
+ <div
253
+ ref="trackThumbRef"
254
+ :class="ui.trackThumb({ class: props.ui?.trackThumb })"
255
+ :style="trackThumbStyle"
256
+ :data-disabled="disabled ? true : undefined"
257
+ />
258
+ </div>
259
+ </div>
260
+ </Primitive>
261
+ </template>
262
+
263
+ <style scoped>
264
+ [data-color-picker-background]{background-image:linear-gradient(0deg,#000 0,transparent),linear-gradient(90deg,#fff 0,hsla(0,0%,100%,0))}[data-color-picker-track]{background-image:linear-gradient(0deg,red,#f0f 17%,#00f 33%,#0ff 50%,#0f0 67%,#ff0 83%,red)}
265
+ </style>