@eslamdevui/ui 3.3.1 → 3.3.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/.nuxt/ui/button.ts +42 -42
  2. package/.nuxt/ui/command-palette.ts +2 -1
  3. package/.nuxt/ui/file-upload.ts +295 -0
  4. package/.nuxt/ui/index.ts +2 -0
  5. package/.nuxt/ui/kbd.ts +167 -3
  6. package/.nuxt/ui/scroll-to-section.ts +3 -0
  7. package/.nuxt/ui/table.ts +14 -0
  8. package/.nuxt/ui/tabs.ts +4 -2
  9. package/.nuxt/ui/toast.ts +8 -15
  10. package/.nuxt/ui/tooltip.ts +1 -1
  11. package/cli/templates.mjs +4 -3
  12. package/dist/module.d.mts +15 -1
  13. package/dist/module.json +2 -2
  14. package/dist/module.mjs +3 -3
  15. package/dist/runtime/components/Accordion.vue.d.ts +1 -1
  16. package/dist/runtime/components/Alert.vue.d.ts +2 -2
  17. package/dist/runtime/components/App.vue.d.ts +1 -1
  18. package/dist/runtime/components/Avatar.vue.d.ts +1 -1
  19. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  20. package/dist/runtime/components/Badge.vue.d.ts +1 -1
  21. package/dist/runtime/components/Banner.vue.d.ts +1 -5
  22. package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
  23. package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
  24. package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
  25. package/dist/runtime/components/Button.vue +6 -6
  26. package/dist/runtime/components/Button.vue.d.ts +1 -5
  27. package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
  28. package/dist/runtime/components/Calendar.vue.d.ts +1 -1
  29. package/dist/runtime/components/Card.vue.d.ts +1 -1
  30. package/dist/runtime/components/Carousel.vue +18 -14
  31. package/dist/runtime/components/Carousel.vue.d.ts +1 -1
  32. package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
  33. package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
  34. package/dist/runtime/components/ChatMessage.vue.d.ts +4 -8
  35. package/dist/runtime/components/ChatMessages.vue.d.ts +1 -1
  36. package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
  37. package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
  38. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +1 -1
  39. package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
  40. package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
  41. package/dist/runtime/components/Chip.vue.d.ts +2 -2
  42. package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
  43. package/dist/runtime/components/ColorPicker.vue +1 -2
  44. package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
  45. package/dist/runtime/components/CommandPalette.vue +4 -0
  46. package/dist/runtime/components/CommandPalette.vue.d.ts +9 -4
  47. package/dist/runtime/components/Container.vue.d.ts +1 -1
  48. package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
  49. package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
  50. package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
  51. package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
  52. package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
  53. package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
  54. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +1 -1
  55. package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
  56. package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
  57. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
  58. package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
  59. package/dist/runtime/components/Drawer.vue +4 -4
  60. package/dist/runtime/components/Drawer.vue.d.ts +6 -1
  61. package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
  62. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +8 -5
  63. package/dist/runtime/components/Error.vue.d.ts +1 -1
  64. package/dist/runtime/components/FileUpload.vue +242 -0
  65. package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
  66. package/dist/runtime/components/Footer.vue.d.ts +1 -1
  67. package/dist/runtime/components/FooterColumns.vue.d.ts +1 -1
  68. package/dist/runtime/components/Form.vue.d.ts +5 -4
  69. package/dist/runtime/components/FormField.vue +2 -2
  70. package/dist/runtime/components/FormField.vue.d.ts +4 -4
  71. package/dist/runtime/components/Header.vue.d.ts +1 -1
  72. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  73. package/dist/runtime/components/Input.vue +10 -7
  74. package/dist/runtime/components/Input.vue.d.ts +9 -9
  75. package/dist/runtime/components/InputMenu.vue +17 -10
  76. package/dist/runtime/components/InputMenu.vue.d.ts +17 -14
  77. package/dist/runtime/components/InputNumber.vue.d.ts +4 -4
  78. package/dist/runtime/components/InputTags.vue +2 -0
  79. package/dist/runtime/components/InputTags.vue.d.ts +5 -3
  80. package/dist/runtime/components/Kbd.vue +2 -1
  81. package/dist/runtime/components/Kbd.vue.d.ts +5 -1
  82. package/dist/runtime/components/Link.vue +6 -5
  83. package/dist/runtime/components/Link.vue.d.ts +1 -3
  84. package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
  85. package/dist/runtime/components/Main.vue.d.ts +1 -1
  86. package/dist/runtime/components/Modal.vue.d.ts +2 -2
  87. package/dist/runtime/components/NavigationMenu.vue +3 -2
  88. package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
  89. package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
  90. package/dist/runtime/components/Page.vue.d.ts +1 -1
  91. package/dist/runtime/components/PageAccordion.vue.d.ts +1 -1
  92. package/dist/runtime/components/PageAnchors.vue.d.ts +1 -1
  93. package/dist/runtime/components/PageAside.vue.d.ts +1 -1
  94. package/dist/runtime/components/PageBody.vue.d.ts +1 -1
  95. package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
  96. package/dist/runtime/components/PageCard.vue.d.ts +1 -1
  97. package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
  98. package/dist/runtime/components/PageFeature.vue.d.ts +1 -1
  99. package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
  100. package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
  101. package/dist/runtime/components/PageHero.vue.d.ts +1 -1
  102. package/dist/runtime/components/PageLinks.vue.d.ts +1 -1
  103. package/dist/runtime/components/PageList.vue.d.ts +1 -1
  104. package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
  105. package/dist/runtime/components/PageMarquee.vue.d.ts +1 -1
  106. package/dist/runtime/components/PageSection.vue.d.ts +1 -1
  107. package/dist/runtime/components/Pagination.vue.d.ts +1 -1
  108. package/dist/runtime/components/PinInput.vue.d.ts +1 -1
  109. package/dist/runtime/components/Popover.vue +2 -1
  110. package/dist/runtime/components/Popover.vue.d.ts +8 -2
  111. package/dist/runtime/components/PricingPlan.vue.d.ts +1 -1
  112. package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
  113. package/dist/runtime/components/PricingTable.vue +14 -2
  114. package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
  115. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  116. package/dist/runtime/components/RadioGroup.vue +1 -1
  117. package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
  118. package/dist/runtime/components/ScrollToSection.vue +62 -0
  119. package/dist/runtime/components/ScrollToSection.vue.d.ts +36 -0
  120. package/dist/runtime/components/Select.vue.d.ts +1 -1
  121. package/dist/runtime/components/SelectMenu.vue +9 -6
  122. package/dist/runtime/components/SelectMenu.vue.d.ts +4 -4
  123. package/dist/runtime/components/Separator.vue.d.ts +1 -1
  124. package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
  125. package/dist/runtime/components/Slideover.vue.d.ts +2 -2
  126. package/dist/runtime/components/Slider.vue.d.ts +5 -5
  127. package/dist/runtime/components/Stepper.vue.d.ts +1 -1
  128. package/dist/runtime/components/Switch.vue.d.ts +1 -1
  129. package/dist/runtime/components/Table.vue +83 -8
  130. package/dist/runtime/components/Table.vue.d.ts +20 -4
  131. package/dist/runtime/components/Tabs.vue +36 -16
  132. package/dist/runtime/components/Tabs.vue.d.ts +8 -3
  133. package/dist/runtime/components/Textarea.vue +10 -7
  134. package/dist/runtime/components/Textarea.vue.d.ts +10 -9
  135. package/dist/runtime/components/Timeline.vue.d.ts +1 -1
  136. package/dist/runtime/components/Toast.vue +12 -4
  137. package/dist/runtime/components/Toast.vue.d.ts +14 -13
  138. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  139. package/dist/runtime/components/Tooltip.vue +2 -1
  140. package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
  141. package/dist/runtime/components/Tree.vue +3 -2
  142. package/dist/runtime/components/Tree.vue.d.ts +1 -1
  143. package/dist/runtime/components/User.vue.d.ts +1 -1
  144. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
  145. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
  146. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
  147. package/dist/runtime/components/color-mode/ColorModeSelect.vue +1 -1
  148. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
  149. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  150. package/dist/runtime/components/content/ContentNavigation.vue.d.ts +1 -1
  151. package/dist/runtime/components/content/ContentSearch.vue +1 -2
  152. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +1 -1
  153. package/dist/runtime/components/content/ContentSurround.vue.d.ts +1 -1
  154. package/dist/runtime/components/content/ContentToc.vue.d.ts +1 -1
  155. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
  156. package/dist/runtime/components/prose/A.vue.d.ts +1 -1
  157. package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
  158. package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
  159. package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
  160. package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
  161. package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
  162. package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
  163. package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
  164. package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
  165. package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +1 -1
  166. package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
  167. package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
  168. package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
  169. package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
  170. package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
  171. package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
  172. package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
  173. package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
  174. package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
  175. package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
  176. package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
  177. package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
  178. package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
  179. package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
  180. package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
  181. package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
  182. package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
  183. package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
  184. package/dist/runtime/components/prose/P.vue.d.ts +1 -1
  185. package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
  186. package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
  187. package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
  188. package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
  189. package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
  190. package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
  191. package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
  192. package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
  193. package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
  194. package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
  195. package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
  196. package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
  197. package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
  198. package/dist/runtime/components/prose/callout/Caution.vue.d.ts +3 -3
  199. package/dist/runtime/components/prose/callout/Note.vue.d.ts +3 -3
  200. package/dist/runtime/components/prose/callout/Tip.vue.d.ts +3 -3
  201. package/dist/runtime/components/prose/callout/Warning.vue.d.ts +3 -3
  202. package/dist/runtime/composables/defineShortcuts.js +5 -3
  203. package/dist/runtime/composables/useFileUpload.d.ts +19 -0
  204. package/dist/runtime/composables/useFileUpload.js +63 -0
  205. package/dist/runtime/composables/useFormField.d.ts +1 -4
  206. package/dist/runtime/composables/useFormField.js +5 -2
  207. package/dist/runtime/composables/useKbd.d.ts +1 -1
  208. package/dist/runtime/composables/useLocale.js +2 -2
  209. package/dist/runtime/composables/useOverlay.d.ts +28 -1
  210. package/dist/runtime/composables/useOverlay.js +4 -4
  211. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  212. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
  213. package/dist/runtime/inertia/stubs.d.ts +1 -0
  214. package/dist/runtime/inertia/stubs.js +4 -2
  215. package/dist/runtime/locale/ar.js +2 -1
  216. package/dist/runtime/locale/az.js +1 -0
  217. package/dist/runtime/locale/bg.js +1 -0
  218. package/dist/runtime/locale/bn.js +1 -0
  219. package/dist/runtime/locale/ca.js +1 -0
  220. package/dist/runtime/locale/ckb.js +2 -1
  221. package/dist/runtime/locale/cs.js +1 -0
  222. package/dist/runtime/locale/da.js +1 -0
  223. package/dist/runtime/locale/de.js +1 -0
  224. package/dist/runtime/locale/el.js +1 -0
  225. package/dist/runtime/locale/en.js +1 -0
  226. package/dist/runtime/locale/es.js +1 -0
  227. package/dist/runtime/locale/et.js +1 -0
  228. package/dist/runtime/locale/fa_ir.js +1 -0
  229. package/dist/runtime/locale/fi.js +1 -0
  230. package/dist/runtime/locale/fr.js +1 -0
  231. package/dist/runtime/locale/he.js +1 -0
  232. package/dist/runtime/locale/hi.js +2 -1
  233. package/dist/runtime/locale/hu.js +1 -0
  234. package/dist/runtime/locale/hy.js +1 -0
  235. package/dist/runtime/locale/id.js +1 -0
  236. package/dist/runtime/locale/it.js +1 -0
  237. package/dist/runtime/locale/ja.js +1 -0
  238. package/dist/runtime/locale/kk.js +1 -0
  239. package/dist/runtime/locale/km.js +2 -1
  240. package/dist/runtime/locale/ko.js +1 -0
  241. package/dist/runtime/locale/ky.js +1 -0
  242. package/dist/runtime/locale/lb.js +1 -0
  243. package/dist/runtime/locale/lt.js +1 -0
  244. package/dist/runtime/locale/mn.js +1 -0
  245. package/dist/runtime/locale/ms.js +1 -0
  246. package/dist/runtime/locale/nb_no.js +1 -0
  247. package/dist/runtime/locale/nl.js +1 -0
  248. package/dist/runtime/locale/pl.js +1 -0
  249. package/dist/runtime/locale/pt.js +1 -0
  250. package/dist/runtime/locale/pt_br.js +1 -0
  251. package/dist/runtime/locale/ro.js +1 -0
  252. package/dist/runtime/locale/ru.js +1 -0
  253. package/dist/runtime/locale/sk.js +1 -0
  254. package/dist/runtime/locale/sl.js +1 -0
  255. package/dist/runtime/locale/sv.js +1 -0
  256. package/dist/runtime/locale/th.js +1 -0
  257. package/dist/runtime/locale/tj.js +1 -0
  258. package/dist/runtime/locale/tr.js +1 -0
  259. package/dist/runtime/locale/ug_cn.js +1 -0
  260. package/dist/runtime/locale/uk.js +1 -0
  261. package/dist/runtime/locale/ur.js +1 -0
  262. package/dist/runtime/locale/uz.js +1 -0
  263. package/dist/runtime/locale/vi.js +1 -0
  264. package/dist/runtime/locale/zh_cn.js +1 -0
  265. package/dist/runtime/locale/zh_tw.js +1 -0
  266. package/dist/runtime/types/index.d.ts +2 -0
  267. package/dist/runtime/types/index.js +2 -0
  268. package/dist/runtime/types/locale.d.ts +1 -0
  269. package/dist/runtime/utils/content.d.ts +18 -6
  270. package/dist/runtime/utils/content.js +51 -25
  271. package/dist/runtime/utils/index.d.ts +1 -0
  272. package/dist/runtime/utils/index.js +9 -0
  273. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
  274. package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
  275. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
  276. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +1 -1
  277. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
  278. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  279. package/dist/runtime/vue/stubs.d.ts +1 -0
  280. package/dist/runtime/vue/stubs.js +3 -1
  281. package/dist/shared/{ui.i6pGHFq6.mjs → ui.CgUuvRXi.mjs} +282 -29
  282. package/dist/unplugin.d.mts +2 -1
  283. package/dist/unplugin.mjs +6 -3
  284. package/dist/vite.mjs +1 -1
  285. package/package.json +57 -41
  286. package/dist/runtime/composables/useQuerySection.d.ts +0 -14
  287. package/dist/runtime/composables/useQuerySection.js +0 -44
@@ -6,7 +6,7 @@ import theme from "#build/ui/carousel";
6
6
  import { computed, ref, watch, onMounted } from "vue";
7
7
  import useEmblaCarousel from "embla-carousel-vue";
8
8
  import { Primitive, useForwardProps } from "reka-ui";
9
- import { reactivePick, computedAsync } from "@vueuse/core";
9
+ import { reactivePick } from "@vueuse/core";
10
10
  import { useAppConfig } from "#imports";
11
11
  import { useLocale } from "../composables/useLocale";
12
12
  import { tv } from "../utils/tv";
@@ -62,34 +62,36 @@ const options = computed(() => ({
62
62
  axis: props.orientation === "horizontal" ? "x" : "y",
63
63
  direction: dir.value === "rtl" ? "rtl" : "ltr"
64
64
  }));
65
- const plugins = computedAsync(async () => {
66
- const plugins2 = [];
65
+ const plugins = ref([]);
66
+ async function loadPlugins() {
67
+ const emblaPlugins = [];
67
68
  if (props.autoplay) {
68
69
  const AutoplayPlugin = await import("embla-carousel-autoplay").then((r) => r.default);
69
- plugins2.push(AutoplayPlugin(typeof props.autoplay === "boolean" ? {} : props.autoplay));
70
+ emblaPlugins.push(AutoplayPlugin(typeof props.autoplay === "boolean" ? {} : props.autoplay));
70
71
  }
71
72
  if (props.autoScroll) {
72
73
  const AutoScrollPlugin = await import("embla-carousel-auto-scroll").then((r) => r.default);
73
- plugins2.push(AutoScrollPlugin(typeof props.autoScroll === "boolean" ? {} : props.autoScroll));
74
+ emblaPlugins.push(AutoScrollPlugin(typeof props.autoScroll === "boolean" ? {} : props.autoScroll));
74
75
  }
75
76
  if (props.autoHeight) {
76
77
  const AutoHeightPlugin = await import("embla-carousel-auto-height").then((r) => r.default);
77
- plugins2.push(AutoHeightPlugin(typeof props.autoHeight === "boolean" ? {} : props.autoHeight));
78
+ emblaPlugins.push(AutoHeightPlugin(typeof props.autoHeight === "boolean" ? {} : props.autoHeight));
78
79
  }
79
80
  if (props.classNames) {
80
81
  const ClassNamesPlugin = await import("embla-carousel-class-names").then((r) => r.default);
81
- plugins2.push(ClassNamesPlugin(typeof props.classNames === "boolean" ? {} : props.classNames));
82
+ emblaPlugins.push(ClassNamesPlugin(typeof props.classNames === "boolean" ? {} : props.classNames));
82
83
  }
83
84
  if (props.fade) {
84
85
  const FadePlugin = await import("embla-carousel-fade").then((r) => r.default);
85
- plugins2.push(FadePlugin(typeof props.fade === "boolean" ? {} : props.fade));
86
+ emblaPlugins.push(FadePlugin(typeof props.fade === "boolean" ? {} : props.fade));
86
87
  }
87
88
  if (props.wheelGestures) {
88
89
  const { WheelGesturesPlugin } = await import("embla-carousel-wheel-gestures");
89
- plugins2.push(WheelGesturesPlugin(typeof props.wheelGestures === "boolean" ? {} : props.wheelGestures));
90
+ emblaPlugins.push(WheelGesturesPlugin(typeof props.wheelGestures === "boolean" ? {} : props.wheelGestures));
90
91
  }
91
- return plugins2;
92
- });
92
+ plugins.value = emblaPlugins;
93
+ }
94
+ watch(() => [props.autoplay, props.autoScroll, props.autoHeight, props.classNames, props.fade, props.wheelGestures], loadPlugins, { immediate: true });
93
95
  const [emblaRef, emblaApi] = useEmblaCarousel(options.value, plugins.value);
94
96
  watch([options, plugins], () => {
95
97
  emblaApi.value?.reInit(options.value, plugins.value);
@@ -162,8 +164,7 @@ defineExpose({
162
164
  <div
163
165
  v-for="(item, index) in items"
164
166
  :key="index"
165
- role="group"
166
- aria-roledescription="slide"
167
+ v-bind="dots ? { role: 'tabpanel' } : { 'role': 'group', 'aria-roledescription': 'slide' }"
167
168
  :class="ui.item({ class: [props.ui?.item, isCarouselItem(item) && item.ui?.item, isCarouselItem(item) && item.class] })"
168
169
  >
169
170
  <slot :item="item" :index="index" />
@@ -195,10 +196,13 @@ defineExpose({
195
196
  />
196
197
  </div>
197
198
 
198
- <div v-if="dots" :class="ui.dots({ class: props.ui?.dots })">
199
+ <div v-if="dots" role="tablist" :aria-label="t('carousel.dots')" :class="ui.dots({ class: props.ui?.dots })">
199
200
  <template v-for="(_, index) in scrollSnaps" :key="index">
200
201
  <button
202
+ type="button"
203
+ role="tab"
201
204
  :aria-label="t('carousel.goto', { slide: index + 1 })"
205
+ :aria-selected="selectedIndex === index"
202
206
  :class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
203
207
  :data-state="selectedIndex === index ? 'active' : void 0"
204
208
  @click="scrollTo(index)"
@@ -123,5 +123,5 @@ declare const _default: <T extends CarouselItem>(__VLS_props: NonNullable<Awaite
123
123
  };
124
124
  export default _default;
125
125
  type __VLS_PrettifyLocal<T> = {
126
- [K in keyof T]: T[K];
126
+ [K in keyof T as K]: T[K];
127
127
  } & {};
@@ -46,7 +46,7 @@ export interface ChangelogVersionSlots {
46
46
  actions(props?: {}): any;
47
47
  indicator(props?: {}): any;
48
48
  }
49
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionProps> & Readonly<{}>, {
49
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionProps> & Readonly<{}>, {
50
50
  as: any;
51
51
  indicator: boolean;
52
52
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionSlots>;
@@ -62,7 +62,7 @@ export interface ChangelogVersionsSlots<T extends ChangelogVersionProps = Change
62
62
  version: T;
63
63
  }): any;
64
64
  }
65
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionsProps<ChangelogVersionProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionsProps<ChangelogVersionProps>> & Readonly<{}>, {
65
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionsProps<ChangelogVersionProps>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionsProps<ChangelogVersionProps>> & Readonly<{}>, {
66
66
  indicator: boolean;
67
67
  indicatorMotion: boolean | SpringOptions;
68
68
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionsSlots<ChangelogVersionProps>>;
@@ -98,28 +98,24 @@ export interface ChatMessageSlots {
98
98
  })[] | undefined;
99
99
  }): any;
100
100
  }
101
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageProps> & Readonly<{}>, {
101
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessageProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageProps> & Readonly<{}>, {
102
102
  as: any;
103
103
  variant: "solid" | "outline" | "soft" | "subtle" | "naked";
104
104
  side: "right" | "left";
105
105
  compact: boolean;
106
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
107
107
  leading?: (props: {
108
- avatar: (AvatarProps & {
109
- [key: string]: any;
110
- }) | undefined;
108
+ avatar: any;
111
109
  }) => any;
112
110
  } & {
113
111
  content?: (props: {
114
- content: string | undefined;
112
+ content: any;
115
113
  }) => any;
116
114
  } & {
117
115
  default?: (props: {}) => any;
118
116
  } & {
119
117
  actions?: (props: {
120
- actions: (Omit<ButtonProps, "onClick"> & {
121
- onClick?: ((e: MouseEvent, message: any) => void) | undefined;
122
- })[] | undefined;
118
+ actions: any;
123
119
  }) => any;
124
120
  }>;
125
121
  export default _default;
@@ -68,7 +68,7 @@ export interface ChatMessagesSlots {
68
68
  message: Message;
69
69
  }): any;
70
70
  }
71
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessagesProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessagesProps> & Readonly<{}>, {
71
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessagesProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessagesProps> & Readonly<{}>, {
72
72
  autoScroll: boolean | Partial<ButtonProps>;
73
73
  shouldAutoScroll: boolean;
74
74
  shouldScrollToBottom: boolean;
@@ -15,7 +15,7 @@ export interface ChatPaletteSlots {
15
15
  default(props?: {}): any;
16
16
  prompt(props?: {}): any;
17
17
  }
18
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPaletteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatPaletteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatPaletteSlots>;
18
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPaletteProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatPaletteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatPaletteSlots>;
19
19
  export default _default;
20
20
  type __VLS_WithSlots<T, S> = T & {
21
21
  new (): {
@@ -49,8 +49,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPrompt
49
49
  }>, {
50
50
  as: any;
51
51
  autofocus: boolean;
52
- rows: number;
53
52
  autoresize: boolean;
53
+ rows: number;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatPromptSlots>;
55
55
  export default _default;
56
56
  type __VLS_WithSlots<T, S> = T & {
@@ -76,7 +76,7 @@ export interface ChatPromptSubmitProps extends /** @vue-ignore */ Pick<ButtonPro
76
76
  export interface ChatPromptSubmitEmits {
77
77
  (e: 'stop' | 'reload'): void;
78
78
  }
79
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
79
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
80
80
  stop: () => any;
81
81
  reload: () => any;
82
82
  }, string, import("vue").PublicProps, Readonly<ChatPromptSubmitProps> & Readonly<{
@@ -56,7 +56,7 @@ export interface CheckboxSlots {
56
56
  }
57
57
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
58
58
  modelValue?: boolean | "indeterminate";
59
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
60
  change: (payload: Event) => any;
61
61
  "update:modelValue": (value: boolean | "indeterminate") => any;
62
62
  }, string, import("vue").PublicProps, Readonly<CheckboxProps & {
@@ -80,5 +80,5 @@ declare const _default: <T extends CheckboxGroupItem>(__VLS_props: NonNullable<A
80
80
  };
81
81
  export default _default;
82
82
  type __VLS_PrettifyLocal<T> = {
83
- [K in keyof T]: T[K];
83
+ [K in keyof T as K]: T[K];
84
84
  } & {};
@@ -31,7 +31,7 @@ export interface ChipProps {
31
31
  ui?: Chip['slots'];
32
32
  }
33
33
  export interface ChipEmits {
34
- (e: 'update:show', payload: boolean): void;
34
+ 'update:show': [payload: boolean];
35
35
  }
36
36
  export interface ChipSlots {
37
37
  default(props?: {}): any;
@@ -39,7 +39,7 @@ export interface ChipSlots {
39
39
  }
40
40
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
41
41
  show?: boolean;
42
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
+ }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
43
  "update:show": (value: boolean) => any;
44
44
  }, string, import("vue").PublicProps, Readonly<ChipProps & {
45
45
  show?: boolean;
@@ -20,7 +20,7 @@ export interface CollapsibleSlots {
20
20
  }): any;
21
21
  content(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:open": (value: boolean) => any;
25
25
  }, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
26
26
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -14,7 +14,7 @@ function HSVtoHSL(hsv) {
14
14
  return {
15
15
  H: hsv.h,
16
16
  S: x === 0 || x === 200 ? 0 : Math.round(hsv.s * hsv.v / (x <= 100 ? x : 200 - x)),
17
- L: Math.round(x / 2)
17
+ L: x / 2
18
18
  };
19
19
  }
20
20
  </script>
@@ -53,7 +53,6 @@ const pickedColor = computed({
53
53
  },
54
54
  set(value) {
55
55
  const color = new ColorTranslator(HSVtoHSL(value), {
56
- decimals: 2,
57
56
  labUnit: "percent",
58
57
  cmykUnit: "percent",
59
58
  cmykFunction: "cmyk"
@@ -34,7 +34,7 @@ export type ColorPickerProps = {
34
34
  };
35
35
  declare const _default: import("vue").DefineComponent<ColorPickerProps & {
36
36
  modelValue?: string;
37
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  "update:modelValue": (value: string | undefined) => any;
39
39
  }, string, import("vue").PublicProps, Readonly<ColorPickerProps & {
40
40
  modelValue?: string;
@@ -271,5 +271,9 @@ function onSelect(e, item) {
271
271
  </slot>
272
272
  </div>
273
273
  </ListboxContent>
274
+
275
+ <div v-if="!!slots.footer" :class="ui.footer({ class: props.ui?.footer })">
276
+ <slot name="footer" :ui="ui" />
277
+ </div>
274
278
  </ListboxRoot>
275
279
  </template>
@@ -142,6 +142,11 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
142
142
  'empty'(props: {
143
143
  searchTerm?: string;
144
144
  }): any;
145
+ 'footer'(props: {
146
+ ui: {
147
+ [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string;
148
+ };
149
+ }): any;
145
150
  'back'(props: {
146
151
  ui: {
147
152
  [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string;
@@ -160,11 +165,11 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
160
165
  declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
161
166
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
162
167
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
168
+ readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
163
169
  readonly onHighlight?: ((payload: {
164
170
  ref: HTMLElement;
165
171
  value: T;
166
172
  } | undefined) => any) | undefined;
167
- readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
168
173
  readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
169
174
  readonly onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
170
175
  readonly onLeave?: ((event: Event) => any) | undefined;
@@ -174,14 +179,14 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
174
179
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
175
180
  attrs: any;
176
181
  slots: CommandPaletteSlots<G, T>;
177
- emit: (((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload: {
182
+ emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
178
183
  ref: HTMLElement;
179
184
  value: T;
180
- } | undefined) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void)) & ((evt: "update:searchTerm", value: string) => void);
185
+ } | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void)) & ((evt: "update:searchTerm", value: string) => void);
181
186
  }>) => import("vue").VNode & {
182
187
  __ctx?: Awaited<typeof __VLS_setup>;
183
188
  };
184
189
  export default _default;
185
190
  type __VLS_PrettifyLocal<T> = {
186
- [K in keyof T]: T[K];
191
+ [K in keyof T as K]: T[K];
187
192
  } & {};
@@ -9,7 +9,7 @@ export interface ContainerProps {
9
9
  export interface ContainerSlots {
10
10
  default(props?: {}): any;
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
12
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
13
13
  export default _default;
14
14
  type __VLS_WithSlots<T, S> = T & {
15
15
  new (): {
@@ -105,5 +105,5 @@ declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props:
105
105
  };
106
106
  export default _default;
107
107
  type __VLS_PrettifyLocal<T> = {
108
- [K in keyof T]: T[K];
108
+ [K in keyof T as K]: T[K];
109
109
  } & {};
@@ -45,5 +45,5 @@ declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props:
45
45
  };
46
46
  export default _default;
47
47
  type __VLS_PrettifyLocal<T> = {
48
- [K in keyof T]: T[K];
48
+ [K in keyof T as K]: T[K];
49
49
  } & {};
@@ -10,7 +10,7 @@ export interface DashboardGroupProps extends Pick<UseResizableProps, 'storage' |
10
10
  export interface DashboardGroupSlots {
11
11
  default(props?: {}): any;
12
12
  }
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardGroupProps> & Readonly<{}>, {
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardGroupProps> & Readonly<{}>, {
14
14
  storage: "cookie" | "local";
15
15
  as: any;
16
16
  storageKey: string;
@@ -40,7 +40,7 @@ export interface DashboardNavbarSlots {
40
40
  right(props: DashboardNavbarSlotsProps): any;
41
41
  toggle(props: DashboardNavbarSlotsProps): any;
42
42
  }
43
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardNavbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardNavbarProps> & Readonly<{}>, {
43
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardNavbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardNavbarProps> & Readonly<{}>, {
44
44
  toggle: boolean | Partial<ButtonProps>;
45
45
  as: any;
46
46
  toggleSide: "left" | "right";
@@ -17,7 +17,7 @@ export interface DashboardPanelSlots {
17
17
  onTouchStart: (e: TouchEvent) => void;
18
18
  }): any;
19
19
  }
20
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardPanelProps> & Readonly<{}>, {
20
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardPanelProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardPanelProps> & Readonly<{}>, {
21
21
  resizable: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardPanelSlots>;
23
23
  export default _default;
@@ -13,7 +13,7 @@ export interface DashboardResizeHandleProps {
13
13
  export interface DashboardResizeHandleSlots {
14
14
  default(props?: {}): any;
15
15
  }
16
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardResizeHandleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardResizeHandleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
16
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardResizeHandleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardResizeHandleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
17
17
  export default _default;
18
18
  type __VLS_WithSlots<T, S> = T & {
19
19
  new (): {
@@ -44,7 +44,7 @@ export interface DashboardSearchButtonProps {
44
44
  ui?: DashboardSearchButton['slots'] & ButtonProps['ui'];
45
45
  class?: any;
46
46
  }
47
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSearchButtonProps> & Readonly<{}>, {
47
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSearchButtonProps> & Readonly<{}>, {
48
48
  color: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
49
49
  tooltip: boolean | TooltipProps;
50
50
  kbds: KbdProps["value"][] | KbdProps[];
@@ -43,7 +43,7 @@ export interface DashboardSidebarSlots {
43
43
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSidebarProps<DashboardSidebarMode> & {
44
44
  open?: boolean;
45
45
  collapsed?: boolean;
46
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
47
  "update:open": (value: boolean) => any;
48
48
  "update:collapsed": (value: boolean) => any;
49
49
  }, string, import("vue").PublicProps, Readonly<DashboardSidebarProps<DashboardSidebarMode> & {
@@ -7,7 +7,7 @@ export interface DashboardSidebarCollapseProps extends /** @vue-ignore */ Pick<B
7
7
  variant?: ButtonProps['variant'];
8
8
  class?: any;
9
9
  }
10
- declare const _default: import("vue").DefineComponent<DashboardSidebarCollapseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarCollapseProps> & Readonly<{}>, {
10
+ declare const _default: import("vue").DefineComponent<DashboardSidebarCollapseProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarCollapseProps> & Readonly<{}>, {
11
11
  color: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
12
12
  variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
13
13
  side: "left" | "right";
@@ -14,7 +14,7 @@ export interface DashboardSidebarToggleProps extends /** @vue-ignore */ Pick<But
14
14
  variant?: ButtonProps['variant'];
15
15
  class?: any;
16
16
  }
17
- declare const _default: import("vue").DefineComponent<DashboardSidebarToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarToggleProps> & Readonly<{}>, {
17
+ declare const _default: import("vue").DefineComponent<DashboardSidebarToggleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarToggleProps> & Readonly<{}>, {
18
18
  color: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
19
19
  variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
20
20
  side: "left" | "right";
@@ -16,7 +16,7 @@ export interface DashboardToolbarSlots {
16
16
  left(props?: {}): any;
17
17
  right(props?: {}): any;
18
18
  }
19
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardToolbarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardToolbarSlots>;
19
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardToolbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardToolbarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardToolbarSlots>;
20
20
  export default _default;
21
21
  type __VLS_WithSlots<T, S> = T & {
22
22
  new (): {
@@ -5,7 +5,7 @@ import theme from "#build/ui/drawer";
5
5
  <script setup>
6
6
  import { computed, toRef } from "vue";
7
7
  import { VisuallyHidden, useForwardPropsEmits } from "reka-ui";
8
- import { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerOverlay, DrawerContent, DrawerTitle, DrawerDescription, DrawerHandle } from "vaul-vue";
8
+ import { DrawerRoot, DrawerRootNested, DrawerTrigger, DrawerPortal, DrawerOverlay, DrawerContent, DrawerTitle, DrawerDescription, DrawerHandle } from "vaul-vue";
9
9
  import { reactivePick } from "@vueuse/core";
10
10
  import { useAppConfig } from "#imports";
11
11
  import { usePortal } from "../composables/usePortal";
@@ -19,6 +19,7 @@ const props = defineProps({
19
19
  overlay: { type: Boolean, required: false, default: true },
20
20
  handle: { type: Boolean, required: false, default: true },
21
21
  portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
22
+ nested: { type: Boolean, required: false },
22
23
  class: { type: null, required: false },
23
24
  ui: { type: null, required: false },
24
25
  activeSnapPoint: { type: [Number, String, null], required: false },
@@ -31,7 +32,6 @@ const props = defineProps({
31
32
  modal: { type: Boolean, required: false, default: true },
32
33
  open: { type: Boolean, required: false },
33
34
  defaultOpen: { type: Boolean, required: false },
34
- nested: { type: Boolean, required: false },
35
35
  direction: { type: String, required: false, default: "bottom" },
36
36
  noBodyStyles: { type: Boolean, required: false },
37
37
  handleOnly: { type: Boolean, required: false },
@@ -54,7 +54,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.drawer || {}
54
54
  </script>
55
55
 
56
56
  <template>
57
- <DrawerRoot v-bind="rootProps">
57
+ <component :is="nested ? DrawerRootNested : DrawerRoot" v-bind="rootProps">
58
58
  <DrawerTrigger v-if="!!slots.default" as-child :class="props.class">
59
59
  <slot />
60
60
  </DrawerTrigger>
@@ -108,5 +108,5 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.drawer || {}
108
108
  </slot>
109
109
  </DrawerContent>
110
110
  </DrawerPortal>
111
- </DrawerRoot>
111
+ </component>
112
112
  </template>
@@ -34,6 +34,11 @@ export interface DrawerProps extends Pick<DrawerRootProps, 'activeSnapPoint' | '
34
34
  * @defaultValue true
35
35
  */
36
36
  portal?: boolean | string | HTMLElement;
37
+ /**
38
+ * Whether the drawer is nested in another drawer.
39
+ * @defaultValue false
40
+ */
41
+ nested?: boolean;
37
42
  class?: any;
38
43
  ui?: Drawer['slots'];
39
44
  }
@@ -48,7 +53,7 @@ export interface DrawerSlots {
48
53
  body(props?: {}): any;
49
54
  footer(props?: {}): any;
50
55
  }
51
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
56
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
52
57
  close: () => any;
53
58
  drag: (percentageDragged: number) => any;
54
59
  "update:open": (open: boolean) => any;
@@ -115,5 +115,5 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
115
115
  };
116
116
  export default _default;
117
117
  type __VLS_PrettifyLocal<T> = {
118
- [K in keyof T]: T[K];
118
+ [K in keyof T as K]: T[K];
119
119
  } & {};
@@ -2,7 +2,7 @@ import { DropdownMenu } from 'reka-ui/namespaced';
2
2
  import type { DropdownMenuContentProps as RekaDropdownMenuContentProps } from 'reka-ui';
3
3
  import type { AppConfig } from '@nuxt/schema';
4
4
  import type theme from '#build/ui/dropdown-menu';
5
- import type { DropdownMenuItem, DropdownMenuSlots } from '../types';
5
+ import type { DropdownMenuItem, DropdownMenuSlots, DynamicSlots, MergeTypes } from '../types';
6
6
  import type { ArrayOrNested, NestedItem, ComponentConfig } from '../types/utils';
7
7
  type DropdownMenu = ComponentConfig<typeof theme, AppConfig, 'dropdownMenu'>;
8
8
  interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> extends Omit<RekaDropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
@@ -28,9 +28,12 @@ interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> ex
28
28
  };
29
29
  uiOverride?: DropdownMenu['slots'];
30
30
  }
31
- type DropdownMenuContentSlots<T extends ArrayOrNested<DropdownMenuItem>> = Omit<DropdownMenuSlots<T>, 'default'> & {
31
+ type DropdownMenuContentSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayOrNested<DropdownMenuItem>, T extends NestedItem<A> = NestedItem<A>> = Pick<DropdownMenuSlots<A>, 'item' | 'item-leading' | 'item-label' | 'item-trailing' | 'content-top' | 'content-bottom'> & {
32
32
  default(props?: {}): any;
33
- };
33
+ } & DynamicSlots<MergeTypes<T>, 'leading' | 'label' | 'trailing', {
34
+ active?: boolean;
35
+ index: number;
36
+ }>;
34
37
  declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__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<{
35
38
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
36
39
  readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
@@ -41,12 +44,12 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
41
44
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & Partial<{}>> & import("vue").PublicProps;
42
45
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
43
46
  attrs: any;
44
- slots: DropdownMenuContentSlots<T>;
47
+ slots: DropdownMenuContentSlots<T, NestedItem<T>>;
45
48
  emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
46
49
  }>) => import("vue").VNode & {
47
50
  __ctx?: Awaited<typeof __VLS_setup>;
48
51
  };
49
52
  export default _default;
50
53
  type __VLS_PrettifyLocal<T> = {
51
- [K in keyof T]: T[K];
54
+ [K in keyof T as K]: T[K];
52
55
  } & {};
@@ -32,7 +32,7 @@ export interface ErrorSlots {
32
32
  statusMessage(props?: {}): any;
33
33
  links(props?: {}): any;
34
34
  }
35
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ErrorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
35
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ErrorProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
36
36
  clear: () => any;
37
37
  }, string, import("vue").PublicProps, Readonly<ErrorProps> & Readonly<{
38
38
  onClear?: (() => any) | undefined;