@eslamdevui/ui 3.2.0-beta.1

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 (442) hide show
  1. package/.nuxt/ui/accordion.ts +20 -0
  2. package/.nuxt/ui/alert.ts +264 -0
  3. package/.nuxt/ui/avatar-group.ts +52 -0
  4. package/.nuxt/ui/avatar.ts +54 -0
  5. package/.nuxt/ui/badge.ts +263 -0
  6. package/.nuxt/ui/breadcrumb.ts +45 -0
  7. package/.nuxt/ui/button-group.ts +16 -0
  8. package/.nuxt/ui/button.ts +378 -0
  9. package/.nuxt/ui/calendar.ts +103 -0
  10. package/.nuxt/ui/card.ts +34 -0
  11. package/.nuxt/ui/carousel.ts +38 -0
  12. package/.nuxt/ui/chat-message.ts +129 -0
  13. package/.nuxt/ui/chat-messages.ts +14 -0
  14. package/.nuxt/ui/chat-prompt-submit.ts +5 -0
  15. package/.nuxt/ui/chat-prompt.ts +35 -0
  16. package/.nuxt/ui/checkbox-group.ts +204 -0
  17. package/.nuxt/ui/checkbox.ts +236 -0
  18. package/.nuxt/ui/chip.ts +96 -0
  19. package/.nuxt/ui/collapsible.ts +6 -0
  20. package/.nuxt/ui/color-picker.ts +47 -0
  21. package/.nuxt/ui/command-palette.ts +51 -0
  22. package/.nuxt/ui/container.ts +3 -0
  23. package/.nuxt/ui/content-navigation.ts +339 -0
  24. package/.nuxt/ui/content-search-button.ts +6 -0
  25. package/.nuxt/ui/content-search.ts +6 -0
  26. package/.nuxt/ui/content-surround.ts +34 -0
  27. package/.nuxt/ui/content-toc.ts +150 -0
  28. package/.nuxt/ui/context-menu.ts +217 -0
  29. package/.nuxt/ui/dashboard-group.ts +3 -0
  30. package/.nuxt/ui/dashboard-navbar.ts +21 -0
  31. package/.nuxt/ui/dashboard-panel.ts +17 -0
  32. package/.nuxt/ui/dashboard-resize-handle.ts +3 -0
  33. package/.nuxt/ui/dashboard-search-button.ts +6 -0
  34. package/.nuxt/ui/dashboard-search.ts +6 -0
  35. package/.nuxt/ui/dashboard-sidebar-collapse.ts +9 -0
  36. package/.nuxt/ui/dashboard-sidebar-toggle.ts +9 -0
  37. package/.nuxt/ui/dashboard-sidebar.ts +37 -0
  38. package/.nuxt/ui/drawer.ts +126 -0
  39. package/.nuxt/ui/dropdown-menu.ts +218 -0
  40. package/.nuxt/ui/form-field.ts +48 -0
  41. package/.nuxt/ui/form.ts +3 -0
  42. package/.nuxt/ui/index.ts +71 -0
  43. package/.nuxt/ui/input-menu.ts +450 -0
  44. package/.nuxt/ui/input-number.ts +245 -0
  45. package/.nuxt/ui/input-tags.ts +310 -0
  46. package/.nuxt/ui/input.ts +289 -0
  47. package/.nuxt/ui/kbd.ts +31 -0
  48. package/.nuxt/ui/link.ts +22 -0
  49. package/.nuxt/ui/modal.ts +29 -0
  50. package/.nuxt/ui/navigation-menu.ts +510 -0
  51. package/.nuxt/ui/pagination.ts +13 -0
  52. package/.nuxt/ui/pin-input.ts +171 -0
  53. package/.nuxt/ui/popover.ts +6 -0
  54. package/.nuxt/ui/progress.ts +297 -0
  55. package/.nuxt/ui/prose.ts +321 -0
  56. package/.nuxt/ui/radio-group.ts +350 -0
  57. package/.nuxt/ui/select-menu.ts +351 -0
  58. package/.nuxt/ui/select.ts +346 -0
  59. package/.nuxt/ui/separator.ts +172 -0
  60. package/.nuxt/ui/skeleton.ts +3 -0
  61. package/.nuxt/ui/slideover.ts +71 -0
  62. package/.nuxt/ui/slider.ts +171 -0
  63. package/.nuxt/ui/stepper.ts +202 -0
  64. package/.nuxt/ui/switch.ts +131 -0
  65. package/.nuxt/ui/table.ts +148 -0
  66. package/.nuxt/ui/tabs.ts +256 -0
  67. package/.nuxt/ui/textarea.ts +294 -0
  68. package/.nuxt/ui/timeline.ts +321 -0
  69. package/.nuxt/ui/toast.ts +81 -0
  70. package/.nuxt/ui/toaster.ts +91 -0
  71. package/.nuxt/ui/tooltip.ts +9 -0
  72. package/.nuxt/ui/tree.ts +154 -0
  73. package/.nuxt/ui.css +146 -0
  74. package/LICENSE.md +9 -0
  75. package/README.md +147 -0
  76. package/cli/commands/make/component.mjs +95 -0
  77. package/cli/commands/make/index.mjs +14 -0
  78. package/cli/commands/make/locale.mjs +64 -0
  79. package/cli/index.mjs +15 -0
  80. package/cli/package.json +13 -0
  81. package/cli/templates.mjs +228 -0
  82. package/cli/utils.mjs +31 -0
  83. package/dist/module.d.mts +63 -0
  84. package/dist/module.json +13 -0
  85. package/dist/module.mjs +135 -0
  86. package/dist/runtime/components/Accordion.vue +73 -0
  87. package/dist/runtime/components/Accordion.vue.d.ts +77 -0
  88. package/dist/runtime/components/Alert.vue +88 -0
  89. package/dist/runtime/components/Alert.vue.d.ts +81 -0
  90. package/dist/runtime/components/App.vue +44 -0
  91. package/dist/runtime/components/App.vue.d.ts +24 -0
  92. package/dist/runtime/components/Avatar.vue +83 -0
  93. package/dist/runtime/components/Avatar.vue.d.ts +41 -0
  94. package/dist/runtime/components/AvatarGroup.vue +65 -0
  95. package/dist/runtime/components/AvatarGroup.vue.d.ts +31 -0
  96. package/dist/runtime/components/Badge.vue +60 -0
  97. package/dist/runtime/components/Badge.vue.d.ts +43 -0
  98. package/dist/runtime/components/Breadcrumb.vue +65 -0
  99. package/dist/runtime/components/Breadcrumb.vue.d.ts +66 -0
  100. package/dist/runtime/components/Button.vue +147 -0
  101. package/dist/runtime/components/Button.vue.d.ts +48 -0
  102. package/dist/runtime/components/ButtonGroup.vue +31 -0
  103. package/dist/runtime/components/ButtonGroup.vue.d.ts +34 -0
  104. package/dist/runtime/components/Calendar.vue +154 -0
  105. package/dist/runtime/components/Calendar.vue.d.ts +111 -0
  106. package/dist/runtime/components/Card.vue +37 -0
  107. package/dist/runtime/components/Card.vue.d.ts +29 -0
  108. package/dist/runtime/components/Carousel.vue +210 -0
  109. package/dist/runtime/components/Carousel.vue.d.ts +127 -0
  110. package/dist/runtime/components/ChatMessage.vue +87 -0
  111. package/dist/runtime/components/ChatMessage.vue.d.ts +130 -0
  112. package/dist/runtime/components/ChatMessages.vue +225 -0
  113. package/dist/runtime/components/ChatMessages.vue.d.ts +83 -0
  114. package/dist/runtime/components/ChatPrompt.vue +77 -0
  115. package/dist/runtime/components/ChatPrompt.vue.d.ts +60 -0
  116. package/dist/runtime/components/ChatPromptSubmit.vue +74 -0
  117. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +99 -0
  118. package/dist/runtime/components/Checkbox.vue +90 -0
  119. package/dist/runtime/components/Checkbox.vue.d.ts +73 -0
  120. package/dist/runtime/components/CheckboxGroup.vue +124 -0
  121. package/dist/runtime/components/CheckboxGroup.vue.d.ts +84 -0
  122. package/dist/runtime/components/Chip.vue +48 -0
  123. package/dist/runtime/components/Chip.vue.d.ts +57 -0
  124. package/dist/runtime/components/Collapsible.vue +37 -0
  125. package/dist/runtime/components/Collapsible.vue.d.ts +35 -0
  126. package/dist/runtime/components/ColorPicker.vue +216 -0
  127. package/dist/runtime/components/ColorPicker.vue.d.ts +48 -0
  128. package/dist/runtime/components/CommandPalette.vue +275 -0
  129. package/dist/runtime/components/CommandPalette.vue.d.ts +187 -0
  130. package/dist/runtime/components/Container.vue +23 -0
  131. package/dist/runtime/components/Container.vue.d.ts +18 -0
  132. package/dist/runtime/components/ContextMenu.vue +61 -0
  133. package/dist/runtime/components/ContextMenu.vue.d.ts +109 -0
  134. package/dist/runtime/components/ContextMenuContent.vue +164 -0
  135. package/dist/runtime/components/ContextMenuContent.vue.d.ts +49 -0
  136. package/dist/runtime/components/DashboardGroup.vue +46 -0
  137. package/dist/runtime/components/DashboardGroup.vue.d.ts +27 -0
  138. package/dist/runtime/components/DashboardNavbar.vue +74 -0
  139. package/dist/runtime/components/DashboardNavbar.vue.d.ts +53 -0
  140. package/dist/runtime/components/DashboardPanel.vue +56 -0
  141. package/dist/runtime/components/DashboardPanel.vue.d.ts +28 -0
  142. package/dist/runtime/components/DashboardResizeHandle.vue +32 -0
  143. package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +22 -0
  144. package/dist/runtime/components/DashboardSearch.vue +124 -0
  145. package/dist/runtime/components/DashboardSearch.vue.d.ts +48 -0
  146. package/dist/runtime/components/DashboardSearchButton.vue +72 -0
  147. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +52 -0
  148. package/dist/runtime/components/DashboardSidebar.vue +170 -0
  149. package/dist/runtime/components/DashboardSidebar.vue.d.ts +72 -0
  150. package/dist/runtime/components/DashboardSidebarCollapse.vue +46 -0
  151. package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +15 -0
  152. package/dist/runtime/components/DashboardSidebarToggle.vue +43 -0
  153. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +19 -0
  154. package/dist/runtime/components/Drawer.vue +112 -0
  155. package/dist/runtime/components/Drawer.vue.d.ts +78 -0
  156. package/dist/runtime/components/DropdownMenu.vue +68 -0
  157. package/dist/runtime/components/DropdownMenu.vue.d.ts +119 -0
  158. package/dist/runtime/components/DropdownMenuContent.vue +171 -0
  159. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +52 -0
  160. package/dist/runtime/components/Form.vue +210 -0
  161. package/dist/runtime/components/Form.vue.d.ts +70 -0
  162. package/dist/runtime/components/FormField.vue +90 -0
  163. package/dist/runtime/components/FormField.vue.d.ts +61 -0
  164. package/dist/runtime/components/Icon.vue +19 -0
  165. package/dist/runtime/components/Icon.vue.d.ts +8 -0
  166. package/dist/runtime/components/Input.vue +147 -0
  167. package/dist/runtime/components/Input.vue.d.ts +77 -0
  168. package/dist/runtime/components/InputMenu.vue +373 -0
  169. package/dist/runtime/components/InputMenu.vue.d.ts +534 -0
  170. package/dist/runtime/components/InputNumber.vue +144 -0
  171. package/dist/runtime/components/InputNumber.vue.d.ts +260 -0
  172. package/dist/runtime/components/InputTags.vue +159 -0
  173. package/dist/runtime/components/InputTags.vue.d.ts +183 -0
  174. package/dist/runtime/components/Kbd.vue +30 -0
  175. package/dist/runtime/components/Kbd.vue.d.ts +34 -0
  176. package/dist/runtime/components/Link.vue +127 -0
  177. package/dist/runtime/components/Link.vue.d.ts +93 -0
  178. package/dist/runtime/components/LinkBase.vue +57 -0
  179. package/dist/runtime/components/LinkBase.vue.d.ts +25 -0
  180. package/dist/runtime/components/Modal.vue +130 -0
  181. package/dist/runtime/components/Modal.vue.d.ts +106 -0
  182. package/dist/runtime/components/NavigationMenu.vue +275 -0
  183. package/dist/runtime/components/NavigationMenu.vue.d.ts +170 -0
  184. package/dist/runtime/components/OverlayProvider.vue +25 -0
  185. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  186. package/dist/runtime/components/Pagination.vue +97 -0
  187. package/dist/runtime/components/Pagination.vue.d.ts +118 -0
  188. package/dist/runtime/components/PinInput.vue +94 -0
  189. package/dist/runtime/components/PinInput.vue.d.ts +60 -0
  190. package/dist/runtime/components/Popover.vue +73 -0
  191. package/dist/runtime/components/Popover.vue.d.ts +64 -0
  192. package/dist/runtime/components/Progress.vue +132 -0
  193. package/dist/runtime/components/Progress.vue.d.ts +66 -0
  194. package/dist/runtime/components/RadioGroup.vue +133 -0
  195. package/dist/runtime/components/RadioGroup.vue.d.ts +93 -0
  196. package/dist/runtime/components/Select.vue +225 -0
  197. package/dist/runtime/components/Select.vue.d.ts +253 -0
  198. package/dist/runtime/components/SelectMenu.vue +328 -0
  199. package/dist/runtime/components/SelectMenu.vue.d.ts +302 -0
  200. package/dist/runtime/components/Separator.vue +53 -0
  201. package/dist/runtime/components/Separator.vue.d.ts +54 -0
  202. package/dist/runtime/components/Skeleton.vue +29 -0
  203. package/dist/runtime/components/Skeleton.vue.d.ts +17 -0
  204. package/dist/runtime/components/Slideover.vue +137 -0
  205. package/dist/runtime/components/Slideover.vue.d.ts +107 -0
  206. package/dist/runtime/components/Slider.vue +94 -0
  207. package/dist/runtime/components/Slider.vue.d.ts +58 -0
  208. package/dist/runtime/components/Stepper.vue +116 -0
  209. package/dist/runtime/components/Stepper.vue.d.ts +85 -0
  210. package/dist/runtime/components/Switch.vue +89 -0
  211. package/dist/runtime/components/Switch.vue.d.ts +70 -0
  212. package/dist/runtime/components/Table.vue +286 -0
  213. package/dist/runtime/components/Table.vue.d.ts +185 -0
  214. package/dist/runtime/components/Tabs.vue +84 -0
  215. package/dist/runtime/components/Tabs.vue.d.ts +93 -0
  216. package/dist/runtime/components/Textarea.vue +169 -0
  217. package/dist/runtime/components/Textarea.vue.d.ts +78 -0
  218. package/dist/runtime/components/Timeline.vue +92 -0
  219. package/dist/runtime/components/Timeline.vue.d.ts +70 -0
  220. package/dist/runtime/components/Toast.vue +129 -0
  221. package/dist/runtime/components/Toast.vue.d.ts +163 -0
  222. package/dist/runtime/components/Toaster.vue +111 -0
  223. package/dist/runtime/components/Toaster.vue.d.ts +44 -0
  224. package/dist/runtime/components/Tooltip.vue +62 -0
  225. package/dist/runtime/components/Tooltip.vue.d.ts +50 -0
  226. package/dist/runtime/components/Tree.vue +121 -0
  227. package/dist/runtime/components/Tree.vue.d.ts +113 -0
  228. package/dist/runtime/components/color-mode/ColorModeAvatar.vue +16 -0
  229. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +7 -0
  230. package/dist/runtime/components/color-mode/ColorModeButton.vue +45 -0
  231. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +24 -0
  232. package/dist/runtime/components/color-mode/ColorModeImage.vue +17 -0
  233. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +6 -0
  234. package/dist/runtime/components/color-mode/ColorModeSelect.vue +49 -0
  235. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +7 -0
  236. package/dist/runtime/components/color-mode/ColorModeSwitch.vue +44 -0
  237. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +7 -0
  238. package/dist/runtime/components/locale/LocaleSelect.vue +61 -0
  239. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +16 -0
  240. package/dist/runtime/composables/color-mode/useColorMode.d.ts +3 -0
  241. package/dist/runtime/composables/color-mode/useColorMode.js +5 -0
  242. package/dist/runtime/composables/defineLocale.d.ts +11 -0
  243. package/dist/runtime/composables/defineLocale.js +9 -0
  244. package/dist/runtime/composables/defineShortcuts.d.ts +15 -0
  245. package/dist/runtime/composables/defineShortcuts.js +141 -0
  246. package/dist/runtime/composables/useAvatarGroup.d.ts +10 -0
  247. package/dist/runtime/composables/useAvatarGroup.js +10 -0
  248. package/dist/runtime/composables/useButtonGroup.d.ts +15 -0
  249. package/dist/runtime/composables/useButtonGroup.js +9 -0
  250. package/dist/runtime/composables/useComponentIcons.d.ts +39 -0
  251. package/dist/runtime/composables/useComponentIcons.js +26 -0
  252. package/dist/runtime/composables/useContentSearch.d.ts +6 -0
  253. package/dist/runtime/composables/useContentSearch.js +9 -0
  254. package/dist/runtime/composables/useFormField.d.ts +42 -0
  255. package/dist/runtime/composables/useFormField.js +66 -0
  256. package/dist/runtime/composables/useKbd.d.ts +36 -0
  257. package/dist/runtime/composables/useKbd.js +53 -0
  258. package/dist/runtime/composables/useLocale.d.ts +4 -0
  259. package/dist/runtime/composables/useLocale.js +10 -0
  260. package/dist/runtime/composables/useLocalePro.d.ts +3 -0
  261. package/dist/runtime/composables/useLocalePro.js +11 -0
  262. package/dist/runtime/composables/useOverlay.d.ts +38 -0
  263. package/dist/runtime/composables/useOverlay.js +85 -0
  264. package/dist/runtime/composables/usePortal.d.ts +6 -0
  265. package/dist/runtime/composables/usePortal.js +17 -0
  266. package/dist/runtime/composables/useResizable.d.ts +27 -0
  267. package/dist/runtime/composables/useResizable.js +173 -0
  268. package/dist/runtime/composables/useScrollspy.d.ts +6 -0
  269. package/dist/runtime/composables/useScrollspy.js +38 -0
  270. package/dist/runtime/composables/useToast.d.ts +13 -0
  271. package/dist/runtime/composables/useToast.js +62 -0
  272. package/dist/runtime/index.css +1 -0
  273. package/dist/runtime/inertia/components/Link.vue +132 -0
  274. package/dist/runtime/inertia/components/Link.vue.d.ts +63 -0
  275. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  276. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  277. package/dist/runtime/inertia/stubs.d.ts +43 -0
  278. package/dist/runtime/inertia/stubs.js +82 -0
  279. package/dist/runtime/keyframes.css +1 -0
  280. package/dist/runtime/locale/ar.d.ts +3 -0
  281. package/dist/runtime/locale/ar.js +56 -0
  282. package/dist/runtime/locale/az.d.ts +3 -0
  283. package/dist/runtime/locale/az.js +55 -0
  284. package/dist/runtime/locale/bg.d.ts +3 -0
  285. package/dist/runtime/locale/bg.js +55 -0
  286. package/dist/runtime/locale/bn.d.ts +3 -0
  287. package/dist/runtime/locale/bn.js +55 -0
  288. package/dist/runtime/locale/ca.d.ts +3 -0
  289. package/dist/runtime/locale/ca.js +55 -0
  290. package/dist/runtime/locale/ckb.d.ts +3 -0
  291. package/dist/runtime/locale/ckb.js +56 -0
  292. package/dist/runtime/locale/cs.d.ts +3 -0
  293. package/dist/runtime/locale/cs.js +55 -0
  294. package/dist/runtime/locale/da.d.ts +3 -0
  295. package/dist/runtime/locale/da.js +55 -0
  296. package/dist/runtime/locale/de.d.ts +3 -0
  297. package/dist/runtime/locale/de.js +55 -0
  298. package/dist/runtime/locale/el.d.ts +3 -0
  299. package/dist/runtime/locale/el.js +55 -0
  300. package/dist/runtime/locale/en.d.ts +3 -0
  301. package/dist/runtime/locale/en.js +125 -0
  302. package/dist/runtime/locale/es.d.ts +3 -0
  303. package/dist/runtime/locale/es.js +55 -0
  304. package/dist/runtime/locale/et.d.ts +3 -0
  305. package/dist/runtime/locale/et.js +55 -0
  306. package/dist/runtime/locale/fa_ir.d.ts +3 -0
  307. package/dist/runtime/locale/fa_ir.js +56 -0
  308. package/dist/runtime/locale/fi.d.ts +3 -0
  309. package/dist/runtime/locale/fi.js +55 -0
  310. package/dist/runtime/locale/fr.d.ts +3 -0
  311. package/dist/runtime/locale/fr.js +55 -0
  312. package/dist/runtime/locale/he.d.ts +3 -0
  313. package/dist/runtime/locale/he.js +54 -0
  314. package/dist/runtime/locale/hi.d.ts +3 -0
  315. package/dist/runtime/locale/hi.js +55 -0
  316. package/dist/runtime/locale/hu.d.ts +3 -0
  317. package/dist/runtime/locale/hu.js +55 -0
  318. package/dist/runtime/locale/hy.d.ts +3 -0
  319. package/dist/runtime/locale/hy.js +55 -0
  320. package/dist/runtime/locale/id.d.ts +3 -0
  321. package/dist/runtime/locale/id.js +55 -0
  322. package/dist/runtime/locale/index.d.ts +51 -0
  323. package/dist/runtime/locale/index.js +51 -0
  324. package/dist/runtime/locale/it.d.ts +3 -0
  325. package/dist/runtime/locale/it.js +55 -0
  326. package/dist/runtime/locale/ja.d.ts +3 -0
  327. package/dist/runtime/locale/ja.js +55 -0
  328. package/dist/runtime/locale/kk.d.ts +3 -0
  329. package/dist/runtime/locale/kk.js +55 -0
  330. package/dist/runtime/locale/km.d.ts +3 -0
  331. package/dist/runtime/locale/km.js +55 -0
  332. package/dist/runtime/locale/ko.d.ts +3 -0
  333. package/dist/runtime/locale/ko.js +55 -0
  334. package/dist/runtime/locale/ky.d.ts +3 -0
  335. package/dist/runtime/locale/ky.js +55 -0
  336. package/dist/runtime/locale/lb.d.ts +3 -0
  337. package/dist/runtime/locale/lb.js +55 -0
  338. package/dist/runtime/locale/lt.d.ts +3 -0
  339. package/dist/runtime/locale/lt.js +55 -0
  340. package/dist/runtime/locale/mn.d.ts +3 -0
  341. package/dist/runtime/locale/mn.js +55 -0
  342. package/dist/runtime/locale/ms.d.ts +3 -0
  343. package/dist/runtime/locale/ms.js +55 -0
  344. package/dist/runtime/locale/nb_no.d.ts +3 -0
  345. package/dist/runtime/locale/nb_no.js +55 -0
  346. package/dist/runtime/locale/nl.d.ts +3 -0
  347. package/dist/runtime/locale/nl.js +55 -0
  348. package/dist/runtime/locale/pl.d.ts +3 -0
  349. package/dist/runtime/locale/pl.js +55 -0
  350. package/dist/runtime/locale/pt.d.ts +3 -0
  351. package/dist/runtime/locale/pt.js +55 -0
  352. package/dist/runtime/locale/pt_br.d.ts +3 -0
  353. package/dist/runtime/locale/pt_br.js +55 -0
  354. package/dist/runtime/locale/ro.d.ts +3 -0
  355. package/dist/runtime/locale/ro.js +55 -0
  356. package/dist/runtime/locale/ru.d.ts +3 -0
  357. package/dist/runtime/locale/ru.js +55 -0
  358. package/dist/runtime/locale/sk.d.ts +3 -0
  359. package/dist/runtime/locale/sk.js +55 -0
  360. package/dist/runtime/locale/sl.d.ts +3 -0
  361. package/dist/runtime/locale/sl.js +55 -0
  362. package/dist/runtime/locale/sv.d.ts +3 -0
  363. package/dist/runtime/locale/sv.js +55 -0
  364. package/dist/runtime/locale/th.d.ts +3 -0
  365. package/dist/runtime/locale/th.js +55 -0
  366. package/dist/runtime/locale/tj.d.ts +3 -0
  367. package/dist/runtime/locale/tj.js +55 -0
  368. package/dist/runtime/locale/tr.d.ts +3 -0
  369. package/dist/runtime/locale/tr.js +55 -0
  370. package/dist/runtime/locale/ug_cn.d.ts +3 -0
  371. package/dist/runtime/locale/ug_cn.js +56 -0
  372. package/dist/runtime/locale/uk.d.ts +3 -0
  373. package/dist/runtime/locale/uk.js +55 -0
  374. package/dist/runtime/locale/ur.d.ts +3 -0
  375. package/dist/runtime/locale/ur.js +56 -0
  376. package/dist/runtime/locale/uz.d.ts +3 -0
  377. package/dist/runtime/locale/uz.js +55 -0
  378. package/dist/runtime/locale/vi.d.ts +3 -0
  379. package/dist/runtime/locale/vi.js +55 -0
  380. package/dist/runtime/locale/zh_cn.d.ts +3 -0
  381. package/dist/runtime/locale/zh_cn.js +55 -0
  382. package/dist/runtime/locale/zh_tw.d.ts +3 -0
  383. package/dist/runtime/locale/zh_tw.js +55 -0
  384. package/dist/runtime/plugins/colors.d.ts +2 -0
  385. package/dist/runtime/plugins/colors.js +51 -0
  386. package/dist/runtime/types/app.config.d.ts +6 -0
  387. package/dist/runtime/types/content.d.ts +1 -0
  388. package/dist/runtime/types/content.js +0 -0
  389. package/dist/runtime/types/form.d.ts +87 -0
  390. package/dist/runtime/types/form.js +12 -0
  391. package/dist/runtime/types/index.d.ts +76 -0
  392. package/dist/runtime/types/index.js +76 -0
  393. package/dist/runtime/types/locale.d.ts +127 -0
  394. package/dist/runtime/types/locale.js +0 -0
  395. package/dist/runtime/types/prose.d.ts +1 -0
  396. package/dist/runtime/types/prose.js +0 -0
  397. package/dist/runtime/types/tv.d.ts +53 -0
  398. package/dist/runtime/types/tv.js +0 -0
  399. package/dist/runtime/types/utils.d.ts +41 -0
  400. package/dist/runtime/types/utils.js +1 -0
  401. package/dist/runtime/utils/content.d.ts +13 -0
  402. package/dist/runtime/utils/content.js +51 -0
  403. package/dist/runtime/utils/dashboard.d.ts +10 -0
  404. package/dist/runtime/utils/dashboard.js +5 -0
  405. package/dist/runtime/utils/form.d.ts +13 -0
  406. package/dist/runtime/utils/form.js +108 -0
  407. package/dist/runtime/utils/fuse.d.ts +4 -0
  408. package/dist/runtime/utils/fuse.js +63 -0
  409. package/dist/runtime/utils/index.d.ts +12 -0
  410. package/dist/runtime/utils/index.js +89 -0
  411. package/dist/runtime/utils/link.d.ts +7 -0
  412. package/dist/runtime/utils/link.js +47 -0
  413. package/dist/runtime/utils/locale.d.ts +15 -0
  414. package/dist/runtime/utils/locale.js +25 -0
  415. package/dist/runtime/utils/tv.d.ts +1 -0
  416. package/dist/runtime/utils/tv.js +4 -0
  417. package/dist/runtime/vue/components/Icon.vue +14 -0
  418. package/dist/runtime/vue/components/Icon.vue.d.ts +5 -0
  419. package/dist/runtime/vue/components/Link.vue +169 -0
  420. package/dist/runtime/vue/components/Link.vue.d.ts +93 -0
  421. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +34 -0
  422. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +38 -0
  423. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +37 -0
  424. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -0
  425. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +32 -0
  426. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +5 -0
  427. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  428. package/dist/runtime/vue/composables/useAppConfig.js +4 -0
  429. package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
  430. package/dist/runtime/vue/plugins/color-mode.js +6 -0
  431. package/dist/runtime/vue/plugins/head.d.ts +4 -0
  432. package/dist/runtime/vue/plugins/head.js +10 -0
  433. package/dist/runtime/vue/stubs.d.ts +40 -0
  434. package/dist/runtime/vue/stubs.js +74 -0
  435. package/dist/shared/ui.BcVNrqyb.mjs +5374 -0
  436. package/dist/types.d.mts +5 -0
  437. package/dist/unplugin.d.mts +88 -0
  438. package/dist/unplugin.mjs +242 -0
  439. package/dist/vite.d.mts +15 -0
  440. package/dist/vite.mjs +21 -0
  441. package/package.json +255 -0
  442. package/vue-plugin.d.ts +5 -0
@@ -0,0 +1,328 @@
1
+ <script>
2
+ import theme from "#build/ui/select-menu";
3
+ </script>
4
+
5
+ <script setup>
6
+ import { ref, computed, onMounted, toRef, toRaw } from "vue";
7
+ import { ComboboxRoot, ComboboxArrow, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxSeparator, ComboboxItem, ComboboxItemIndicator, FocusScope, useForwardPropsEmits, useFilter } from "reka-ui";
8
+ import { defu } from "defu";
9
+ import { reactivePick, createReusableTemplate } from "@vueuse/core";
10
+ import { useAppConfig } from "#imports";
11
+ import { useButtonGroup } from "../composables/useButtonGroup";
12
+ import { useComponentIcons } from "../composables/useComponentIcons";
13
+ import { useFormField } from "../composables/useFormField";
14
+ import { useLocale } from "../composables/useLocale";
15
+ import { usePortal } from "../composables/usePortal";
16
+ import { compare, get, isArrayOfArray } from "../utils";
17
+ import { tv } from "../utils/tv";
18
+ import UIcon from "./Icon.vue";
19
+ import UAvatar from "./Avatar.vue";
20
+ import UChip from "./Chip.vue";
21
+ import UInput from "./Input.vue";
22
+ defineOptions({ inheritAttrs: false });
23
+ const props = defineProps({
24
+ id: { type: String, required: false },
25
+ placeholder: { type: String, required: false },
26
+ searchInput: { type: [Boolean, Object], required: false, default: true },
27
+ color: { type: null, required: false },
28
+ variant: { type: null, required: false },
29
+ size: { type: null, required: false },
30
+ required: { type: Boolean, required: false },
31
+ trailingIcon: { type: String, required: false },
32
+ selectedIcon: { type: String, required: false },
33
+ content: { type: Object, required: false },
34
+ arrow: { type: [Boolean, Object], required: false },
35
+ portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
36
+ valueKey: { type: null, required: false },
37
+ labelKey: { type: null, required: false, default: "label" },
38
+ items: { type: null, required: false },
39
+ defaultValue: { type: null, required: false },
40
+ modelValue: { type: null, required: false },
41
+ multiple: { type: Boolean, required: false },
42
+ highlight: { type: Boolean, required: false },
43
+ createItem: { type: [Boolean, String, Object], required: false },
44
+ filterFields: { type: Array, required: false },
45
+ ignoreFilter: { type: Boolean, required: false },
46
+ autofocus: { type: Boolean, required: false },
47
+ autofocusDelay: { type: Number, required: false, default: 0 },
48
+ class: { type: null, required: false },
49
+ ui: { type: null, required: false },
50
+ open: { type: Boolean, required: false },
51
+ defaultOpen: { type: Boolean, required: false },
52
+ disabled: { type: Boolean, required: false },
53
+ name: { type: String, required: false },
54
+ resetSearchTermOnBlur: { type: Boolean, required: false, default: true },
55
+ resetSearchTermOnSelect: { type: Boolean, required: false, default: true },
56
+ highlightOnHover: { type: Boolean, required: false },
57
+ icon: { type: String, required: false },
58
+ avatar: { type: Object, required: false },
59
+ leading: { type: Boolean, required: false },
60
+ leadingIcon: { type: String, required: false },
61
+ trailing: { type: Boolean, required: false },
62
+ loading: { type: Boolean, required: false },
63
+ loadingIcon: { type: String, required: false }
64
+ });
65
+ const emits = defineEmits(["update:open", "change", "blur", "focus", "create", "highlight", "update:modelValue"]);
66
+ const slots = defineSlots();
67
+ const searchTerm = defineModel("searchTerm", { type: String, ...{ default: "" } });
68
+ const { t } = useLocale();
69
+ const appConfig = useAppConfig();
70
+ const { contains } = useFilter({ sensitivity: "base" });
71
+ const rootProps = useForwardPropsEmits(reactivePick(props, "modelValue", "defaultValue", "open", "defaultOpen", "required", "multiple", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "highlightOnHover"), emits);
72
+ const portalProps = usePortal(toRef(() => props.portal));
73
+ const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8, position: "popper" }));
74
+ const arrowProps = toRef(() => props.arrow);
75
+ const searchInputProps = toRef(() => defu(props.searchInput, { placeholder: t("selectMenu.search"), variant: "none" }));
76
+ const { emitFormBlur, emitFormFocus, emitFormInput, emitFormChange, size: formGroupSize, color, id, name, highlight, disabled, ariaAttrs } = useFormField(props);
77
+ const { orientation, size: buttonGroupSize } = useButtonGroup(props);
78
+ const { isLeading, isTrailing, leadingIconName, trailingIconName } = useComponentIcons(toRef(() => defu(props, { trailingIcon: appConfig.ui.icons.chevronDown })));
79
+ const selectSize = computed(() => buttonGroupSize.value || formGroupSize.value);
80
+ const [DefineCreateItemTemplate, ReuseCreateItemTemplate] = createReusableTemplate();
81
+ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.selectMenu || {} })({
82
+ color: color.value,
83
+ variant: props.variant,
84
+ size: selectSize?.value,
85
+ loading: props.loading,
86
+ highlight: highlight.value,
87
+ leading: isLeading.value || !!props.avatar || !!slots.leading,
88
+ trailing: isTrailing.value || !!slots.trailing,
89
+ buttonGroup: orientation.value
90
+ }));
91
+ function displayValue(value) {
92
+ if (props.multiple && Array.isArray(value)) {
93
+ const values = value.map((v) => displayValue(v)).filter(Boolean);
94
+ return values?.length ? values.join(", ") : void 0;
95
+ }
96
+ if (!props.valueKey) {
97
+ return value && (typeof value === "object" ? get(value, props.labelKey) : value);
98
+ }
99
+ const item = items.value.find((item2) => compare(typeof item2 === "object" ? get(item2, props.valueKey) : item2, value));
100
+ return item && (typeof item === "object" ? get(item, props.labelKey) : item);
101
+ }
102
+ const groups = computed(
103
+ () => props.items?.length ? isArrayOfArray(props.items) ? props.items : [props.items] : []
104
+ );
105
+ const items = computed(() => groups.value.flatMap((group) => group));
106
+ const filteredGroups = computed(() => {
107
+ if (props.ignoreFilter || !searchTerm.value) {
108
+ return groups.value;
109
+ }
110
+ const fields = Array.isArray(props.filterFields) ? props.filterFields : [props.labelKey];
111
+ return groups.value.map((items2) => items2.filter((item) => {
112
+ if (typeof item !== "object" || item === null) {
113
+ return contains(String(item), searchTerm.value);
114
+ }
115
+ if (item.type && ["label", "separator"].includes(item.type)) {
116
+ return true;
117
+ }
118
+ return fields.some((field) => contains(get(item, field), searchTerm.value));
119
+ })).filter((group) => group.filter(
120
+ (item) => !isSelectItem(item) || (!item.type || !["label", "separator"].includes(item.type))
121
+ ).length > 0);
122
+ });
123
+ const filteredItems = computed(() => filteredGroups.value.flatMap((group) => group));
124
+ const createItem = computed(() => {
125
+ if (!props.createItem || !searchTerm.value) {
126
+ return false;
127
+ }
128
+ const newItem = props.valueKey ? { [props.valueKey]: searchTerm.value } : searchTerm.value;
129
+ if (typeof props.createItem === "object" && props.createItem.when === "always" || props.createItem === "always") {
130
+ return !filteredItems.value.find((item) => compare(item, newItem, props.valueKey));
131
+ }
132
+ return !filteredItems.value.length;
133
+ });
134
+ const createItemPosition = computed(() => typeof props.createItem === "object" ? props.createItem.position : "bottom");
135
+ const triggerRef = ref(null);
136
+ function autoFocus() {
137
+ if (props.autofocus) {
138
+ triggerRef.value?.$el?.focus({
139
+ focusVisible: true
140
+ });
141
+ }
142
+ }
143
+ onMounted(() => {
144
+ setTimeout(() => {
145
+ autoFocus();
146
+ }, props.autofocusDelay);
147
+ });
148
+ function onUpdate(value) {
149
+ if (toRaw(props.modelValue) === value) {
150
+ return;
151
+ }
152
+ const event = new Event("change", { target: { value } });
153
+ emits("change", event);
154
+ emitFormChange();
155
+ emitFormInput();
156
+ if (props.resetSearchTermOnSelect) {
157
+ searchTerm.value = "";
158
+ }
159
+ }
160
+ function onUpdateOpen(value) {
161
+ let timeoutId;
162
+ if (!value) {
163
+ const event = new FocusEvent("blur");
164
+ emits("blur", event);
165
+ emitFormBlur();
166
+ if (props.resetSearchTermOnBlur) {
167
+ const STATE_ANIMATION_DELAY_MS = 100;
168
+ timeoutId = setTimeout(() => {
169
+ searchTerm.value = "";
170
+ }, STATE_ANIMATION_DELAY_MS);
171
+ }
172
+ } else {
173
+ const event = new FocusEvent("focus");
174
+ emits("focus", event);
175
+ emitFormFocus();
176
+ clearTimeout(timeoutId);
177
+ }
178
+ }
179
+ function onSelect(e, item) {
180
+ if (!isSelectItem(item)) {
181
+ return;
182
+ }
183
+ if (item.disabled) {
184
+ e.preventDefault();
185
+ return;
186
+ }
187
+ item.onSelect?.(e);
188
+ }
189
+ function isSelectItem(item) {
190
+ return typeof item === "object" && item !== null;
191
+ }
192
+ defineExpose({
193
+ triggerRef
194
+ });
195
+ </script>
196
+
197
+ <template>
198
+ <DefineCreateItemTemplate>
199
+ <ComboboxGroup :class="ui.group({ class: props.ui?.group })">
200
+ <ComboboxItem
201
+ :class="ui.item({ class: props.ui?.item })"
202
+ :value="searchTerm"
203
+ @select.prevent="emits('create', searchTerm)"
204
+ >
205
+ <span :class="ui.itemLabel({ class: props.ui?.itemLabel })">
206
+ <slot name="create-item-label" :item="searchTerm">
207
+ {{ t("selectMenu.create", { label: searchTerm }) }}
208
+ </slot>
209
+ </span>
210
+ </ComboboxItem>
211
+ </ComboboxGroup>
212
+ </DefineCreateItemTemplate>
213
+
214
+ <ComboboxRoot
215
+ :id="id"
216
+ v-slot="{ modelValue, open }"
217
+ v-bind="{ ...rootProps, ...$attrs, ...ariaAttrs }"
218
+ ignore-filter
219
+ as-child
220
+ :name="name"
221
+ :disabled="disabled"
222
+ @update:model-value="onUpdate"
223
+ @update:open="onUpdateOpen"
224
+ >
225
+ <ComboboxAnchor as-child>
226
+ <ComboboxTrigger ref="triggerRef" :class="ui.base({ class: [props.ui?.base, props.class] })" tabindex="0">
227
+ <span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
228
+ <slot name="leading" :model-value="modelValue" :open="open" :ui="ui">
229
+ <UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
230
+ <UAvatar v-else-if="!!avatar" :size="props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="avatar" :class="ui.itemLeadingAvatar({ class: props.ui?.itemLeadingAvatar })" />
231
+ </slot>
232
+ </span>
233
+
234
+ <slot :model-value="modelValue" :open="open">
235
+ <template v-for="displayedModelValue in [displayValue(modelValue)]" :key="displayedModelValue">
236
+ <span v-if="displayedModelValue !== void 0 && displayedModelValue !== null" :class="ui.value({ class: props.ui?.value })">
237
+ {{ displayedModelValue }}
238
+ </span>
239
+ <span v-else :class="ui.placeholder({ class: props.ui?.placeholder })">
240
+ {{ placeholder ?? "\xA0" }}
241
+ </span>
242
+ </template>
243
+ </slot>
244
+
245
+ <span v-if="isTrailing || !!slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })">
246
+ <slot name="trailing" :model-value="modelValue" :open="open" :ui="ui">
247
+ <UIcon v-if="trailingIconName" :name="trailingIconName" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
248
+ </slot>
249
+ </span>
250
+ </ComboboxTrigger>
251
+ </ComboboxAnchor>
252
+
253
+ <ComboboxPortal v-bind="portalProps">
254
+ <ComboboxContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps">
255
+ <FocusScope trapped :class="ui.focusScope({ class: props.ui?.focusScope })">
256
+ <slot name="content-top" />
257
+
258
+ <ComboboxInput v-if="!!searchInput" v-model="searchTerm" :display-value="() => searchTerm" as-child>
259
+ <UInput autofocus autocomplete="off" :size="size" v-bind="searchInputProps" :class="ui.input({ class: props.ui?.input })" />
260
+ </ComboboxInput>
261
+
262
+ <ComboboxEmpty :class="ui.empty({ class: props.ui?.empty })">
263
+ <slot name="empty" :search-term="searchTerm">
264
+ {{ searchTerm ? t("selectMenu.noMatch", { searchTerm }) : t("selectMenu.noData") }}
265
+ </slot>
266
+ </ComboboxEmpty>
267
+
268
+ <div role="presentation" :class="ui.viewport({ class: props.ui?.viewport })">
269
+ <ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'top'" />
270
+
271
+ <ComboboxGroup v-for="(group, groupIndex) in filteredGroups" :key="`group-${groupIndex}`" :class="ui.group({ class: props.ui?.group })">
272
+ <template v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`">
273
+ <ComboboxLabel v-if="isSelectItem(item) && item.type === 'label'" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })">
274
+ {{ get(item, props.labelKey) }}
275
+ </ComboboxLabel>
276
+
277
+ <ComboboxSeparator v-else-if="isSelectItem(item) && item.type === 'separator'" :class="ui.separator({ class: [props.ui?.separator, item.ui?.separator, item.class] })" />
278
+
279
+ <ComboboxItem
280
+ v-else
281
+ :class="ui.item({ class: [props.ui?.item, isSelectItem(item) && item.ui?.item, isSelectItem(item) && item.class] })"
282
+ :disabled="isSelectItem(item) && item.disabled"
283
+ :value="props.valueKey && isSelectItem(item) ? get(item, props.valueKey) : item"
284
+ @select="onSelect($event, item)"
285
+ >
286
+ <slot name="item" :item="item" :index="index">
287
+ <slot name="item-leading" :item="item" :index="index">
288
+ <UIcon v-if="isSelectItem(item) && item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon] })" />
289
+ <UAvatar v-else-if="isSelectItem(item) && item.avatar" :size="item.ui?.itemLeadingAvatarSize || props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" :class="ui.itemLeadingAvatar({ class: [props.ui?.itemLeadingAvatar, item.ui?.itemLeadingAvatar] })" />
290
+ <UChip
291
+ v-else-if="isSelectItem(item) && item.chip"
292
+ :size="props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
293
+ inset
294
+ standalone
295
+ v-bind="item.chip"
296
+ :class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip] })"
297
+ />
298
+ </slot>
299
+
300
+ <span :class="ui.itemLabel({ class: [props.ui?.itemLabel, isSelectItem(item) && item.ui?.itemLabel] })">
301
+ <slot name="item-label" :item="item" :index="index">
302
+ {{ isSelectItem(item) ? get(item, props.labelKey) : item }}
303
+ </slot>
304
+ </span>
305
+
306
+ <span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, isSelectItem(item) && item.ui?.itemTrailing] })">
307
+ <slot name="item-trailing" :item="item" :index="index" />
308
+
309
+ <ComboboxItemIndicator as-child>
310
+ <UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, isSelectItem(item) && item.ui?.itemTrailingIcon] })" />
311
+ </ComboboxItemIndicator>
312
+ </span>
313
+ </slot>
314
+ </ComboboxItem>
315
+ </template>
316
+ </ComboboxGroup>
317
+
318
+ <ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'bottom'" />
319
+ </div>
320
+
321
+ <slot name="content-bottom" />
322
+ </FocusScope>
323
+
324
+ <ComboboxArrow v-if="!!arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" />
325
+ </ComboboxContent>
326
+ </ComboboxPortal>
327
+ </ComboboxRoot>
328
+ </template>
@@ -0,0 +1,302 @@
1
+ import type { ComboboxRootProps, ComboboxRootEmits, ComboboxContentProps, ComboboxContentEmits, ComboboxArrowProps } from 'reka-ui';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/ui/select-menu';
4
+ import type { UseComponentIconsProps } from '../composables/useComponentIcons';
5
+ import type { AvatarProps, ChipProps, InputProps } from '../types';
6
+ import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps, ComponentConfig } from '../types/utils';
7
+ type SelectMenu = ComponentConfig<typeof theme, AppConfig, 'selectMenu'>;
8
+ interface _SelectMenuItem {
9
+ label?: string;
10
+ /**
11
+ * @IconifyIcon
12
+ */
13
+ icon?: string;
14
+ avatar?: AvatarProps;
15
+ chip?: ChipProps;
16
+ /**
17
+ * The item type.
18
+ * @defaultValue 'item'
19
+ */
20
+ type?: 'label' | 'separator' | 'item';
21
+ disabled?: boolean;
22
+ onSelect?(e?: Event): void;
23
+ class?: any;
24
+ ui?: Pick<SelectMenu['slots'], 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChipSize' | 'itemLeadingChip' | 'itemLabel' | 'itemTrailing' | 'itemTrailingIcon'>;
25
+ [key: string]: any;
26
+ }
27
+ export type SelectMenuItem = _SelectMenuItem | AcceptableValue | boolean;
28
+ export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover'>, UseComponentIconsProps {
29
+ id?: string;
30
+ /** The placeholder text when the select is empty. */
31
+ placeholder?: string;
32
+ /**
33
+ * Whether to display the search input or not.
34
+ * Can be an object to pass additional props to the input.
35
+ * `{ placeholder: 'Search...', variant: 'none' }`{lang="ts-type"}
36
+ * @defaultValue true
37
+ */
38
+ searchInput?: boolean | InputProps;
39
+ /**
40
+ * @defaultValue 'primary'
41
+ */
42
+ color?: SelectMenu['variants']['color'];
43
+ /**
44
+ * @defaultValue 'outline'
45
+ */
46
+ variant?: SelectMenu['variants']['variant'];
47
+ /**
48
+ * @defaultValue 'md'
49
+ */
50
+ size?: SelectMenu['variants']['size'];
51
+ required?: boolean;
52
+ /**
53
+ * The icon displayed to open the menu.
54
+ * @defaultValue appConfig.ui.icons.chevronDown
55
+ * @IconifyIcon
56
+ */
57
+ trailingIcon?: string;
58
+ /**
59
+ * The icon displayed when an item is selected.
60
+ * @defaultValue appConfig.ui.icons.check
61
+ * @IconifyIcon
62
+ */
63
+ selectedIcon?: string;
64
+ /**
65
+ * The content of the menu.
66
+ * @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
67
+ */
68
+ content?: Omit<ComboboxContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<ComboboxContentEmits>>;
69
+ /**
70
+ * Display an arrow alongside the menu.
71
+ * @defaultValue false
72
+ * @IconifyIcon
73
+ */
74
+ arrow?: boolean | Omit<ComboboxArrowProps, 'as' | 'asChild'>;
75
+ /**
76
+ * Render the menu in a portal.
77
+ * @defaultValue true
78
+ */
79
+ portal?: boolean | string | HTMLElement;
80
+ /**
81
+ * When `items` is an array of objects, select the field to use as the value instead of the object itself.
82
+ * @defaultValue undefined
83
+ */
84
+ valueKey?: VK;
85
+ /**
86
+ * When `items` is an array of objects, select the field to use as the label.
87
+ * @defaultValue 'label'
88
+ */
89
+ labelKey?: keyof NestedItem<T>;
90
+ items?: T;
91
+ /** The value of the SelectMenu when initially rendered. Use when you do not need to control the state of the SelectMenu. */
92
+ defaultValue?: GetModelValue<T, VK, M>;
93
+ /** The controlled value of the SelectMenu. Can be binded-with with `v-model`. */
94
+ modelValue?: GetModelValue<T, VK, M>;
95
+ /** Whether multiple options can be selected or not. */
96
+ multiple?: M & boolean;
97
+ /** Highlight the ring color like a focus state. */
98
+ highlight?: boolean;
99
+ /**
100
+ * Determines if custom user input that does not exist in options can be added.
101
+ * @defaultValue false
102
+ */
103
+ createItem?: boolean | 'always' | {
104
+ position?: 'top' | 'bottom';
105
+ when?: 'empty' | 'always';
106
+ };
107
+ /**
108
+ * Fields to filter items by.
109
+ * @defaultValue [labelKey]
110
+ */
111
+ filterFields?: string[];
112
+ /**
113
+ * When `true`, disable the default filters, useful for custom filtering (useAsyncData, useFetch, etc.).
114
+ * @defaultValue false
115
+ */
116
+ ignoreFilter?: boolean;
117
+ autofocus?: boolean;
118
+ autofocusDelay?: number;
119
+ class?: any;
120
+ ui?: SelectMenu['slots'];
121
+ }
122
+ export type SelectMenuEmits<A extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Pick<ComboboxRootEmits, 'update:open'> & {
123
+ change: [payload: Event];
124
+ blur: [payload: FocusEvent];
125
+ focus: [payload: FocusEvent];
126
+ create: [item: string];
127
+ /** Event handler when highlighted element changes. */
128
+ highlight: [
129
+ payload: {
130
+ ref: HTMLElement;
131
+ value: GetModelValue<A, VK, M>;
132
+ } | undefined
133
+ ];
134
+ } & GetModelValueEmits<A, VK, M>;
135
+ type SlotProps<T extends SelectMenuItem> = (props: {
136
+ item: T;
137
+ index: number;
138
+ }) => any;
139
+ export interface SelectMenuSlots<A extends ArrayOrNested<SelectMenuItem> = ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<A> | undefined = undefined, M extends boolean = false, T extends NestedItem<A> = NestedItem<A>> {
140
+ 'leading'(props: {
141
+ modelValue?: GetModelValue<A, VK, M>;
142
+ open: boolean;
143
+ ui: {
144
+ [K in keyof Required<SelectMenu['slots']>]: (props?: Record<string, any>) => string;
145
+ };
146
+ }): any;
147
+ 'default'(props: {
148
+ modelValue?: GetModelValue<A, VK, M>;
149
+ open: boolean;
150
+ }): any;
151
+ 'trailing'(props: {
152
+ modelValue?: GetModelValue<A, VK, M>;
153
+ open: boolean;
154
+ ui: {
155
+ [K in keyof Required<SelectMenu['slots']>]: (props?: Record<string, any>) => string;
156
+ };
157
+ }): any;
158
+ 'empty'(props: {
159
+ searchTerm?: string;
160
+ }): any;
161
+ 'item': SlotProps<T>;
162
+ 'item-leading': SlotProps<T>;
163
+ 'item-label': SlotProps<T>;
164
+ 'item-trailing': SlotProps<T>;
165
+ 'content-top': (props?: {}) => any;
166
+ 'content-bottom': (props?: {}) => any;
167
+ 'create-item-label'(props: {
168
+ item: string;
169
+ }): any;
170
+ }
171
+ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
172
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
173
+ readonly onBlur?: ((payload: FocusEvent) => any) | undefined;
174
+ readonly onChange?: ((payload: Event) => any) | undefined;
175
+ readonly onFocus?: ((payload: FocusEvent) => any) | undefined;
176
+ readonly onCreate?: ((item: string) => any) | undefined;
177
+ readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
178
+ readonly "onUpdate:modelValue"?: ((payload: GetModelValue<T, VK, M>) => any) | undefined;
179
+ readonly onHighlight?: ((payload: {
180
+ ref: HTMLElement;
181
+ value: GetModelValue<T, VK, M>;
182
+ } | undefined) => any) | undefined;
183
+ readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
184
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onCreate"> & (SelectMenuProps<T, VK, M> & {
185
+ searchTerm?: string;
186
+ }) & Partial<{}>> & import("vue").PublicProps;
187
+ expose(exposed: import("vue").ShallowUnwrapRef<{
188
+ triggerRef: import("vue").Ref<({
189
+ $: import("vue").ComponentInternalInstance;
190
+ $data: {};
191
+ $props: {
192
+ readonly disabled?: boolean | undefined;
193
+ readonly asChild?: boolean | undefined;
194
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
195
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
196
+ $attrs: {
197
+ [x: string]: unknown;
198
+ };
199
+ $refs: {
200
+ [x: string]: unknown;
201
+ };
202
+ $slots: Readonly<{
203
+ [name: string]: import("vue").Slot<any> | undefined;
204
+ }>;
205
+ $root: import("vue").ComponentPublicInstance | null;
206
+ $parent: import("vue").ComponentPublicInstance | null;
207
+ $host: Element | null;
208
+ $emit: (event: string, ...args: any[]) => void;
209
+ $el: any;
210
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
211
+ as: import("reka-ui").AsTag | import("vue").Component;
212
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
213
+ beforeCreate?: (() => void) | (() => void)[];
214
+ created?: (() => void) | (() => void)[];
215
+ beforeMount?: (() => void) | (() => void)[];
216
+ mounted?: (() => void) | (() => void)[];
217
+ beforeUpdate?: (() => void) | (() => void)[];
218
+ updated?: (() => void) | (() => void)[];
219
+ activated?: (() => void) | (() => void)[];
220
+ deactivated?: (() => void) | (() => void)[];
221
+ beforeDestroy?: (() => void) | (() => void)[];
222
+ beforeUnmount?: (() => void) | (() => void)[];
223
+ destroyed?: (() => void) | (() => void)[];
224
+ unmounted?: (() => void) | (() => void)[];
225
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
226
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
227
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
228
+ };
229
+ $forceUpdate: () => void;
230
+ $nextTick: typeof import("vue").nextTick;
231
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
232
+ } & Readonly<{
233
+ as: import("reka-ui").AsTag | import("vue").Component;
234
+ }> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
235
+ $slots: {
236
+ default?(_: {}): any;
237
+ };
238
+ }) | null, ({
239
+ $: import("vue").ComponentInternalInstance;
240
+ $data: {};
241
+ $props: {
242
+ readonly disabled?: boolean | undefined;
243
+ readonly asChild?: boolean | undefined;
244
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
245
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
246
+ $attrs: {
247
+ [x: string]: unknown;
248
+ };
249
+ $refs: {
250
+ [x: string]: unknown;
251
+ };
252
+ $slots: Readonly<{
253
+ [name: string]: import("vue").Slot<any> | undefined;
254
+ }>;
255
+ $root: import("vue").ComponentPublicInstance | null;
256
+ $parent: import("vue").ComponentPublicInstance | null;
257
+ $host: Element | null;
258
+ $emit: (event: string, ...args: any[]) => void;
259
+ $el: any;
260
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
261
+ as: import("reka-ui").AsTag | import("vue").Component;
262
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
263
+ beforeCreate?: (() => void) | (() => void)[];
264
+ created?: (() => void) | (() => void)[];
265
+ beforeMount?: (() => void) | (() => void)[];
266
+ mounted?: (() => void) | (() => void)[];
267
+ beforeUpdate?: (() => void) | (() => void)[];
268
+ updated?: (() => void) | (() => void)[];
269
+ activated?: (() => void) | (() => void)[];
270
+ deactivated?: (() => void) | (() => void)[];
271
+ beforeDestroy?: (() => void) | (() => void)[];
272
+ beforeUnmount?: (() => void) | (() => void)[];
273
+ destroyed?: (() => void) | (() => void)[];
274
+ unmounted?: (() => void) | (() => void)[];
275
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
276
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
277
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
278
+ };
279
+ $forceUpdate: () => void;
280
+ $nextTick: typeof import("vue").nextTick;
281
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
282
+ } & Readonly<{
283
+ as: import("reka-ui").AsTag | import("vue").Component;
284
+ }> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
285
+ $slots: {
286
+ default?(_: {}): any;
287
+ };
288
+ }) | null>;
289
+ }>): void;
290
+ attrs: any;
291
+ slots: SelectMenuSlots<T, VK, M, NestedItem<T>>;
292
+ emit: (((evt: "blur", payload: FocusEvent) => void) & ((evt: "change", payload: Event) => void) & ((evt: "focus", payload: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", payload: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
293
+ ref: HTMLElement;
294
+ value: GetModelValue<T, VK, M>;
295
+ } | undefined) => void)) & ((evt: "update:searchTerm", value: string) => void);
296
+ }>) => import("vue").VNode & {
297
+ __ctx?: Awaited<typeof __VLS_setup>;
298
+ };
299
+ export default _default;
300
+ type __VLS_PrettifyLocal<T> = {
301
+ [K in keyof T]: T[K];
302
+ } & {};