@soybeanjs/headless 0.2.8 → 0.3.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 (279) hide show
  1. package/dist/components/accordion/accordion-content.vue.d.ts +2 -2
  2. package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
  3. package/dist/components/accordion/accordion-item.vue.d.ts +5 -5
  4. package/dist/components/accordion/accordion-root.vue.d.ts +3 -3
  5. package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
  6. package/dist/components/accordion/context.d.ts +2 -2
  7. package/dist/components/accordion/context.js +1 -1
  8. package/dist/components/alert/alert-close.js +1 -1
  9. package/dist/components/alert/alert-close.vue.d.ts +2 -2
  10. package/dist/components/alert/alert-content.vue.d.ts +2 -2
  11. package/dist/components/alert/alert-description.vue.d.ts +2 -2
  12. package/dist/components/alert/alert-root.vue.d.ts +4 -4
  13. package/dist/components/alert/alert-title.vue.d.ts +2 -2
  14. package/dist/components/alert/context.d.ts +2 -2
  15. package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
  16. package/dist/components/alert-dialog/alert-dialog-content.js +1 -1
  17. package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
  18. package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
  19. package/dist/components/arrow/arrow.js +1 -1
  20. package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
  21. package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
  22. package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
  23. package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
  24. package/dist/components/avatar/context.d.ts +2 -2
  25. package/dist/components/badge/badge-content.vue.d.ts +2 -2
  26. package/dist/components/badge/badge-root.vue.d.ts +4 -4
  27. package/dist/components/badge/context.d.ts +2 -2
  28. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  29. package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
  30. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
  31. package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
  32. package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
  33. package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
  34. package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
  35. package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
  36. package/dist/components/breadcrumb/context.d.ts +2 -2
  37. package/dist/components/button/button.vue.d.ts +5 -5
  38. package/dist/components/card/card-content.vue.d.ts +2 -2
  39. package/dist/components/card/card-description.vue.d.ts +2 -2
  40. package/dist/components/card/card-footer.vue.d.ts +2 -2
  41. package/dist/components/card/card-header.vue.d.ts +2 -2
  42. package/dist/components/card/card-root.vue.d.ts +2 -2
  43. package/dist/components/card/card-title-root.vue.d.ts +2 -2
  44. package/dist/components/card/card-title.vue.d.ts +2 -2
  45. package/dist/components/card/context.d.ts +2 -2
  46. package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
  47. package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
  48. package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
  49. package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
  50. package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
  51. package/dist/components/checkbox/context.d.ts +2 -2
  52. package/dist/components/collapsible/collapsible-content.js +1 -1
  53. package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
  54. package/dist/components/collapsible/collapsible-root.vue.d.ts +7 -7
  55. package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
  56. package/dist/components/collapsible/context.d.ts +2 -2
  57. package/dist/components/collapsible/context.js +1 -1
  58. package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
  59. package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
  60. package/dist/components/context-menu/context-menu-root.js +1 -1
  61. package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
  62. package/dist/components/context-menu/context-menu-trigger.js +1 -1
  63. package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
  64. package/dist/components/dialog/context.d.ts +2 -2
  65. package/dist/components/dialog/context.js +1 -1
  66. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  67. package/dist/components/dialog/dialog-content.vue.d.ts +6 -6
  68. package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
  69. package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
  70. package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
  71. package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
  72. package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
  73. package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
  74. package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
  75. package/dist/components/dropdown-menu/context.js +1 -1
  76. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
  77. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  78. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +6 -6
  79. package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
  80. package/dist/components/form/context.d.ts +2 -2
  81. package/dist/components/form/form-description.vue.d.ts +2 -2
  82. package/dist/components/form/form-error.vue.d.ts +2 -2
  83. package/dist/components/form/form-field.vue.d.ts +2 -2
  84. package/dist/components/form/form-label.vue.d.ts +2 -2
  85. package/dist/components/input/context.d.ts +2 -2
  86. package/dist/components/input/input-control.vue.d.ts +2 -2
  87. package/dist/components/input/input-root.vue.d.ts +4 -4
  88. package/dist/components/kbd/kbd.vue.d.ts +2 -2
  89. package/dist/components/label/label.vue.d.ts +2 -2
  90. package/dist/components/layout/context.d.ts +2 -2
  91. package/dist/components/layout/layout-footer.vue.d.ts +2 -2
  92. package/dist/components/layout/layout-header.vue.d.ts +2 -2
  93. package/dist/components/layout/layout-main.vue.d.ts +2 -2
  94. package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
  95. package/dist/components/layout/layout-rail.js +1 -1
  96. package/dist/components/layout/layout-rail.vue.d.ts +2 -2
  97. package/dist/components/layout/layout-root.vue.d.ts +4 -4
  98. package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
  99. package/dist/components/layout/layout-tab.vue.d.ts +2 -2
  100. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  101. package/dist/components/link/link.vue.d.ts +4 -4
  102. package/dist/components/list/context.d.ts +2 -2
  103. package/dist/components/list/list-content.vue.d.ts +2 -2
  104. package/dist/components/list/list-description.vue.d.ts +2 -2
  105. package/dist/components/list/list-item.vue.d.ts +2 -2
  106. package/dist/components/list/list-root.vue.d.ts +2 -2
  107. package/dist/components/list/list-title.vue.d.ts +2 -2
  108. package/dist/components/listbox/context.d.ts +2 -2
  109. package/dist/components/listbox/listbox-content.js +1 -1
  110. package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
  111. package/dist/components/listbox/listbox-filter.js +1 -1
  112. package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
  113. package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
  114. package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
  115. package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
  116. package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
  117. package/dist/components/listbox/listbox-root.js +1 -1
  118. package/dist/components/listbox/listbox-root.vue.d.ts +7 -7
  119. package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
  120. package/dist/components/menu/context.d.ts +2 -2
  121. package/dist/components/menu/context.js +1 -1
  122. package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
  123. package/dist/components/menu/menu-checkbox-item.vue.d.ts +4 -4
  124. package/dist/components/menu/menu-content-impl.js +1 -1
  125. package/dist/components/menu/menu-content.vue.d.ts +8 -8
  126. package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
  127. package/dist/components/menu/menu-group.vue.d.ts +2 -2
  128. package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
  129. package/dist/components/menu/menu-item.vue.d.ts +4 -4
  130. package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
  131. package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
  132. package/dist/components/menu/menu-root.vue.d.ts +4 -4
  133. package/dist/components/menu/menu-sub-content.js +1 -1
  134. package/dist/components/menu/menu-sub-content.vue.d.ts +8 -8
  135. package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
  136. package/dist/components/menu/menu-sub.vue.d.ts +4 -4
  137. package/dist/components/navigation-menu/context.d.ts +2 -2
  138. package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
  139. package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
  140. package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
  141. package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
  142. package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
  143. package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
  144. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
  145. package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
  146. package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
  147. package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
  148. package/dist/components/number-input/context.d.ts +2 -2
  149. package/dist/components/number-input/number-input-control.js +1 -1
  150. package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
  151. package/dist/components/number-input/number-input-decrement.js +1 -1
  152. package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
  153. package/dist/components/number-input/number-input-increment.js +1 -1
  154. package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
  155. package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
  156. package/dist/components/pagination/context.d.ts +2 -2
  157. package/dist/components/pagination/pagination-ellipsis.js +1 -1
  158. package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
  159. package/dist/components/pagination/pagination-first.js +1 -1
  160. package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
  161. package/dist/components/pagination/pagination-last.js +1 -1
  162. package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
  163. package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
  164. package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
  165. package/dist/components/pagination/pagination-next.js +1 -1
  166. package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
  167. package/dist/components/pagination/pagination-prev.js +1 -1
  168. package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
  169. package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
  170. package/dist/components/popover/context.js +1 -1
  171. package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
  172. package/dist/components/popover/popover-close.js +1 -1
  173. package/dist/components/popover/popover-close.vue.d.ts +4 -4
  174. package/dist/components/popover/popover-popup.vue.d.ts +2 -2
  175. package/dist/components/popover/popover-positioner.vue.d.ts +6 -6
  176. package/dist/components/popover/popover-root.vue.d.ts +4 -4
  177. package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
  178. package/dist/components/popper/context.d.ts +2 -2
  179. package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
  180. package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
  181. package/dist/components/popper/popper-popup.vue.d.ts +2 -2
  182. package/dist/components/popper/popper-positioner.vue.d.ts +11 -11
  183. package/dist/components/popper/popper-root.vue.d.ts +2 -2
  184. package/dist/components/portal/portal.vue.d.ts +3 -3
  185. package/dist/components/primitive/primitive.d.ts +2 -2
  186. package/dist/components/radio-group/context.d.ts +2 -2
  187. package/dist/components/radio-group/radio-group-control.js +1 -1
  188. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  189. package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
  190. package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
  191. package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
  192. package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
  193. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
  194. package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
  195. package/dist/components/select/context.d.ts +2 -2
  196. package/dist/components/select/context.js +1 -1
  197. package/dist/components/select/select-arrow.vue.d.ts +2 -2
  198. package/dist/components/select/select-content-impl.js +1 -1
  199. package/dist/components/select/select-content.vue.d.ts +8 -8
  200. package/dist/components/select/select-group-label.vue.d.ts +2 -2
  201. package/dist/components/select/select-group.vue.d.ts +2 -2
  202. package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
  203. package/dist/components/select/select-item-text.vue.d.ts +2 -2
  204. package/dist/components/select/select-item.js +1 -1
  205. package/dist/components/select/select-item.vue.d.ts +4 -4
  206. package/dist/components/select/select-root.vue.d.ts +5 -5
  207. package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
  208. package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
  209. package/dist/components/select/select-separator.vue.d.ts +2 -2
  210. package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
  211. package/dist/components/select/select-trigger.vue.d.ts +4 -4
  212. package/dist/components/select/select-value.vue.d.ts +3 -3
  213. package/dist/components/select/select-viewport.vue.d.ts +2 -2
  214. package/dist/components/separator/context.d.ts +2 -2
  215. package/dist/components/separator/separator-label.vue.d.ts +2 -2
  216. package/dist/components/separator/separator-root.vue.d.ts +3 -3
  217. package/dist/components/slot/slot.d.ts +2 -2
  218. package/dist/components/switch/context.d.ts +2 -2
  219. package/dist/components/switch/switch-control.js +1 -1
  220. package/dist/components/switch/switch-control.vue.d.ts +2 -2
  221. package/dist/components/switch/switch-root.vue.d.ts +3 -3
  222. package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
  223. package/dist/components/tabs/context.d.ts +2 -2
  224. package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
  225. package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
  226. package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
  227. package/dist/components/tabs/tabs-root.vue.d.ts +4 -4
  228. package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
  229. package/dist/components/tag/tag.vue.d.ts +4 -4
  230. package/dist/components/textarea/context.d.ts +2 -2
  231. package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
  232. package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
  233. package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
  234. package/dist/components/toast/toast-action.vue.d.ts +4 -4
  235. package/dist/components/toast/toast-close.vue.d.ts +4 -4
  236. package/dist/components/toast/toast-description.vue.d.ts +2 -2
  237. package/dist/components/toast/toast-provider.vue.d.ts +3 -3
  238. package/dist/components/toast/toast-root.vue.d.ts +8 -8
  239. package/dist/components/toast/toast-title.vue.d.ts +2 -2
  240. package/dist/components/toast/toast-viewport.js +1 -1
  241. package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
  242. package/dist/components/tooltip/context.js +1 -1
  243. package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
  244. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
  245. package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
  246. package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
  247. package/dist/components/tree/tree-item.js +1 -1
  248. package/dist/components/tree/tree-item.vue.d.ts +5 -5
  249. package/dist/components/tree/tree-root.vue.d.ts +3 -3
  250. package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
  251. package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
  252. package/dist/components/tree-menu/context.d.ts +2 -2
  253. package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
  254. package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
  255. package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
  256. package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
  257. package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
  258. package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
  259. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
  260. package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
  261. package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
  262. package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
  263. package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
  264. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
  265. package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
  266. package/dist/composables/use-collection.js +1 -1
  267. package/dist/composables/use-grace-area.js +1 -1
  268. package/dist/composables/use-image-loading-status.js +1 -1
  269. package/dist/composables/use-is-using-keyboard.js +1 -1
  270. package/dist/composables/use-kbd.d.ts +2 -2
  271. package/dist/composables/use-presence.d.ts +2 -2
  272. package/dist/composables/use-props.d.ts +3 -3
  273. package/dist/composables/use-selection.d.ts +4 -4
  274. package/dist/shared/focus.js +1 -1
  275. package/dist/shared/index.d.ts +2 -1
  276. package/dist/shared/index.js +1 -1
  277. package/dist/shared/tree.d.ts +13 -0
  278. package/dist/shared/tree.js +1 -0
  279. package/package.json +26 -26
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { SwitchThumbProps } from "./types.js";
4
- import * as vue1051 from "vue";
4
+ import * as vue709 from "vue";
5
5
 
6
6
  //#region src/components/switch/switch-thumb.vue.d.ts
7
7
  declare var __VLS_8: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue1051.DefineComponent<SwitchThumbProps, {}, {}, {}, {}, vue1051.ComponentOptionsMixin, vue1051.ComponentOptionsMixin, {}, string, vue1051.PublicProps, Readonly<SwitchThumbProps> & Readonly<{}>, {
12
- as: AsTag | vue1051.Component;
13
- }, {}, {}, {}, string, vue1051.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue709.DefineComponent<SwitchThumbProps, {}, {}, {}, {}, vue709.ComponentOptionsMixin, vue709.ComponentOptionsMixin, {}, string, vue709.PublicProps, Readonly<SwitchThumbProps> & Readonly<{}>, {
12
+ as: AsTag | vue709.Component;
13
+ }, {}, {}, {}, string, vue709.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -2,11 +2,11 @@ import { ClassValue, UiClass } from "../../types/common.js";
2
2
  import "../../types/index.js";
3
3
  import { TabsUiSlot } from "./types.js";
4
4
  import "../../index.js";
5
- import * as vue623 from "vue";
5
+ import * as vue635 from "vue";
6
6
  import { MaybeRefOrGetter } from "vue";
7
7
 
8
8
  //#region src/components/tabs/context.d.ts
9
9
 
10
- declare const provideTabsUi: (ui: vue623.ComputedRef<Partial<UiClass<TabsUiSlot>>>) => vue623.ComputedRef<Partial<UiClass<TabsUiSlot>>>, useTabsUi: <S extends TabsUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TabsUiSlot ? vue623.ComputedRef<ClassValue> : vue623.ComputedRef<Partial<UiClass<TabsUiSlot>>>;
10
+ declare const provideTabsUi: (ui: vue635.ComputedRef<Partial<UiClass<TabsUiSlot>>>) => vue635.ComputedRef<Partial<UiClass<TabsUiSlot>>>, useTabsUi: <S extends TabsUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TabsUiSlot ? vue635.ComputedRef<ClassValue> : vue635.ComputedRef<Partial<UiClass<TabsUiSlot>>>;
11
11
  //#endregion
12
12
  export { provideTabsUi };
@@ -1,5 +1,5 @@
1
1
  import { TabsContentProps } from "./types.js";
2
- import * as vue673 from "vue";
2
+ import * as vue620 from "vue";
3
3
 
4
4
  //#region src/components/tabs/tabs-content.vue.d.ts
5
5
  declare var __VLS_1: {
@@ -8,7 +8,7 @@ declare var __VLS_1: {
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_1) => any;
10
10
  };
11
- declare const __VLS_base: vue673.DefineComponent<TabsContentProps, {}, {}, {}, {}, vue673.ComponentOptionsMixin, vue673.ComponentOptionsMixin, {}, string, vue673.PublicProps, Readonly<TabsContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue673.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue620.DefineComponent<TabsContentProps, {}, {}, {}, {}, vue620.ComponentOptionsMixin, vue620.ComponentOptionsMixin, {}, string, vue620.PublicProps, Readonly<TabsContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue620.ComponentProvideOptions, false, {}, any>;
12
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { TabsIndicatorProps } from "./types.js";
2
- import * as vue668 from "vue";
2
+ import * as vue625 from "vue";
3
3
 
4
4
  //#region src/components/tabs/tabs-indicator.vue.d.ts
5
5
  declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_8) => any;
8
8
  };
9
- declare const __VLS_base: vue668.DefineComponent<TabsIndicatorProps, {}, {}, {}, {}, vue668.ComponentOptionsMixin, vue668.ComponentOptionsMixin, {}, string, vue668.PublicProps, Readonly<TabsIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue668.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue625.DefineComponent<TabsIndicatorProps, {}, {}, {}, {}, vue625.ComponentOptionsMixin, vue625.ComponentOptionsMixin, {}, string, vue625.PublicProps, Readonly<TabsIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue625.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { TabsListProps } from "./types.js";
2
- import * as vue663 from "vue";
2
+ import * as vue630 from "vue";
3
3
 
4
4
  //#region src/components/tabs/tabs-list.vue.d.ts
5
5
  declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_8) => any;
8
8
  };
9
- declare const __VLS_base: vue663.DefineComponent<TabsListProps, {}, {}, {}, {}, vue663.ComponentOptionsMixin, vue663.ComponentOptionsMixin, {}, string, vue663.PublicProps, Readonly<TabsListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue663.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue630.DefineComponent<TabsListProps, {}, {}, {}, {}, vue630.ComponentOptionsMixin, vue630.ComponentOptionsMixin, {}, string, vue630.PublicProps, Readonly<TabsListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue630.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
1
  import { AcceptableValue, DataOrientation, DefinedValue } from "../../types/common.js";
2
2
  import { TabsActivationMode, TabsRootProps } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue618 from "vue";
4
+ import * as vue609 from "vue";
5
5
 
6
6
  //#region src/components/tabs/tabs-root.vue.d.ts
7
7
  type __VLS_Props = TabsRootProps;
@@ -11,9 +11,9 @@ declare var __VLS_1: {
11
11
  type __VLS_Slots = {} & {
12
12
  default?: (props: typeof __VLS_1) => any;
13
13
  };
14
- declare const __VLS_base: vue618.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue618.ComponentOptionsMixin, vue618.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue609.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue609.ComponentOptionsMixin, vue609.ComponentOptionsMixin, {
15
15
  "update:modelValue": (payload: NonNullable<AcceptableValue>) => any;
16
- }, string, vue618.PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ }, string, vue609.PublicProps, Readonly<__VLS_Props> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((payload: NonNullable<AcceptableValue>) => any) | undefined;
18
18
  }>, {
19
19
  modelValue: DefinedValue | null;
@@ -21,7 +21,7 @@ declare const __VLS_base: vue618.DefineComponent<__VLS_Props, {}, {}, {}, {}, vu
21
21
  unmountOnHide: boolean;
22
22
  loop: boolean;
23
23
  activationMode: TabsActivationMode;
24
- }, {}, {}, {}, string, vue618.ComponentProvideOptions, false, {}, any>;
24
+ }, {}, {}, {}, string, vue609.ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
27
27
  type __VLS_WithSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { TabsTriggerProps } from "./types.js";
4
- import * as vue612 from "vue";
4
+ import * as vue614 from "vue";
5
5
 
6
6
  //#region src/components/tabs/tabs-trigger.vue.d.ts
7
7
  declare var __VLS_18: {
@@ -10,10 +10,10 @@ declare var __VLS_18: {
10
10
  type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_18) => any;
12
12
  };
13
- declare const __VLS_base: vue612.DefineComponent<TabsTriggerProps, {}, {}, {}, {}, vue612.ComponentOptionsMixin, vue612.ComponentOptionsMixin, {}, string, vue612.PublicProps, Readonly<TabsTriggerProps> & Readonly<{}>, {
14
- as: AsTag | vue612.Component;
13
+ declare const __VLS_base: vue614.DefineComponent<TabsTriggerProps, {}, {}, {}, {}, vue614.ComponentOptionsMixin, vue614.ComponentOptionsMixin, {}, string, vue614.PublicProps, Readonly<TabsTriggerProps> & Readonly<{}>, {
14
+ as: AsTag | vue614.Component;
15
15
  disabled: boolean;
16
- }, {}, {}, {}, string, vue612.ComponentProvideOptions, false, {}, any>;
16
+ }, {}, {}, {}, string, vue614.ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { TagProps } from "./types.js";
2
- import * as vue1158 from "vue";
2
+ import * as vue604 from "vue";
3
3
 
4
4
  //#region src/components/tag/tag.vue.d.ts
5
5
  declare var __VLS_1: {
@@ -9,13 +9,13 @@ declare var __VLS_1: {
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_1) => any;
11
11
  };
12
- declare const __VLS_base: vue1158.DefineComponent<TagProps, {}, {}, {}, {}, vue1158.ComponentOptionsMixin, vue1158.ComponentOptionsMixin, {
12
+ declare const __VLS_base: vue604.DefineComponent<TagProps, {}, {}, {}, {}, vue604.ComponentOptionsMixin, vue604.ComponentOptionsMixin, {
13
13
  "update:open": (open: boolean) => any;
14
- }, string, vue1158.PublicProps, Readonly<TagProps> & Readonly<{
14
+ }, string, vue604.PublicProps, Readonly<TagProps> & Readonly<{
15
15
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
16
16
  }>, {
17
17
  open: boolean;
18
- }, {}, {}, {}, string, vue1158.ComponentProvideOptions, false, {}, any>;
18
+ }, {}, {}, {}, string, vue604.ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  type __VLS_WithSlots<T, S> = T & {
@@ -1,9 +1,9 @@
1
1
  import { ClassValue, UiClass } from "../../types/common.js";
2
2
  import { TextareaUiSlot } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue40 from "vue";
4
+ import * as vue790 from "vue";
5
5
 
6
6
  //#region src/components/textarea/context.d.ts
7
- declare const provideTextareaUi: (ui: vue40.ComputedRef<Partial<UiClass<TextareaUiSlot>>>) => vue40.ComputedRef<Partial<UiClass<TextareaUiSlot>>>, useTextareaUi: <S extends TextareaUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TextareaUiSlot ? vue40.ComputedRef<ClassValue> : vue40.ComputedRef<Partial<UiClass<TextareaUiSlot>>>;
7
+ declare const provideTextareaUi: (ui: vue790.ComputedRef<Partial<UiClass<TextareaUiSlot>>>) => vue790.ComputedRef<Partial<UiClass<TextareaUiSlot>>>, useTextareaUi: <S extends TextareaUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TextareaUiSlot ? vue790.ComputedRef<ClassValue> : vue790.ComputedRef<Partial<UiClass<TextareaUiSlot>>>;
8
8
  //#endregion
9
9
  export { provideTextareaUi };
@@ -1,8 +1,8 @@
1
1
  import { TextareaControlProps } from "./types.js";
2
- import * as vue44 from "vue";
2
+ import * as vue780 from "vue";
3
3
 
4
4
  //#region src/components/textarea/textarea-control.vue.d.ts
5
- declare const __VLS_export: vue44.DefineComponent<TextareaControlProps, {}, {}, {}, {}, vue44.ComponentOptionsMixin, vue44.ComponentOptionsMixin, {}, string, vue44.PublicProps, Readonly<TextareaControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue44.ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: vue780.DefineComponent<TextareaControlProps, {}, {}, {}, {}, vue780.ComponentOptionsMixin, vue780.ComponentOptionsMixin, {}, string, vue780.PublicProps, Readonly<TextareaControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue780.ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  //#endregion
8
8
  export { _default };
@@ -1,5 +1,5 @@
1
1
  import { TextareaCounterProps } from "./types.js";
2
- import * as vue35 from "vue";
2
+ import * as vue785 from "vue";
3
3
 
4
4
  //#region src/components/textarea/textarea-counter.vue.d.ts
5
5
  declare var __VLS_1: {
@@ -9,7 +9,7 @@ declare var __VLS_1: {
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_1) => any;
11
11
  };
12
- declare const __VLS_base: vue35.DefineComponent<TextareaCounterProps, {}, {}, {}, {}, vue35.ComponentOptionsMixin, vue35.ComponentOptionsMixin, {}, string, vue35.PublicProps, Readonly<TextareaCounterProps> & Readonly<{}>, {}, {}, {}, {}, string, vue35.ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_base: vue785.DefineComponent<TextareaCounterProps, {}, {}, {}, {}, vue785.ComponentOptionsMixin, vue785.ComponentOptionsMixin, {}, string, vue785.PublicProps, Readonly<TextareaCounterProps> & Readonly<{}>, {}, {}, {}, {}, string, vue785.ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { TextareaRootProps } from "./types.js";
2
- import * as vue49 from "vue";
2
+ import * as vue775 from "vue";
3
3
 
4
4
  //#region src/components/textarea/textarea-root.vue.d.ts
5
5
  declare var __VLS_1: {
@@ -9,13 +9,13 @@ declare var __VLS_1: {
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_1) => any;
11
11
  };
12
- declare const __VLS_base: vue49.DefineComponent<TextareaRootProps, {}, {}, {}, {}, vue49.ComponentOptionsMixin, vue49.ComponentOptionsMixin, {
12
+ declare const __VLS_base: vue775.DefineComponent<TextareaRootProps, {}, {}, {}, {}, vue775.ComponentOptionsMixin, vue775.ComponentOptionsMixin, {
13
13
  "update:modelValue": (value: string) => any;
14
- }, string, vue49.PublicProps, Readonly<TextareaRootProps> & Readonly<{
14
+ }, string, vue775.PublicProps, Readonly<TextareaRootProps> & Readonly<{
15
15
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
16
16
  }>, {
17
17
  modelValue: string;
18
- }, {}, {}, {}, string, vue49.ComponentProvideOptions, false, {}, any>;
18
+ }, {}, {}, {}, string, vue775.ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  type __VLS_WithSlots<T, S> = T & {
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { ToastActionProps } from "./types.js";
4
- import * as vue400 from "vue";
4
+ import * as vue539 from "vue";
5
5
 
6
6
  //#region src/components/toast/toast-action.vue.d.ts
7
7
  declare var __VLS_10: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_10) => any;
10
10
  };
11
- declare const __VLS_base: vue400.DefineComponent<ToastActionProps, {}, {}, {}, {}, vue400.ComponentOptionsMixin, vue400.ComponentOptionsMixin, {}, string, vue400.PublicProps, Readonly<ToastActionProps> & Readonly<{}>, {
12
- as: AsTag | vue400.Component;
13
- }, {}, {}, {}, string, vue400.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue539.DefineComponent<ToastActionProps, {}, {}, {}, {}, vue539.ComponentOptionsMixin, vue539.ComponentOptionsMixin, {}, string, vue539.PublicProps, Readonly<ToastActionProps> & Readonly<{}>, {
12
+ as: AsTag | vue539.Component;
13
+ }, {}, {}, {}, string, vue539.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { ToastCloseProps } from "./types.js";
4
- import * as vue422 from "vue";
4
+ import * as vue561 from "vue";
5
5
 
6
6
  //#region src/components/toast/toast-close.vue.d.ts
7
7
  declare var __VLS_10: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_10) => any;
10
10
  };
11
- declare const __VLS_base: vue422.DefineComponent<ToastCloseProps, {}, {}, {}, {}, vue422.ComponentOptionsMixin, vue422.ComponentOptionsMixin, {}, string, vue422.PublicProps, Readonly<ToastCloseProps> & Readonly<{}>, {
12
- as: AsTag | vue422.Component;
13
- }, {}, {}, {}, string, vue422.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue561.DefineComponent<ToastCloseProps, {}, {}, {}, {}, vue561.ComponentOptionsMixin, vue561.ComponentOptionsMixin, {}, string, vue561.PublicProps, Readonly<ToastCloseProps> & Readonly<{}>, {
12
+ as: AsTag | vue561.Component;
13
+ }, {}, {}, {}, string, vue561.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { ToastDescriptionProps } from "./types.js";
2
- import * as vue417 from "vue";
2
+ import * as vue556 from "vue";
3
3
 
4
4
  //#region src/components/toast/toast-description.vue.d.ts
5
5
  declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: vue417.DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, vue417.ComponentOptionsMixin, vue417.ComponentOptionsMixin, {}, string, vue417.PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue417.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue556.DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, vue556.ComponentOptionsMixin, vue556.ComponentOptionsMixin, {}, string, vue556.PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue556.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,19 +1,19 @@
1
1
  import { SwipeDirection } from "../../types/common.js";
2
2
  import "../../types/index.js";
3
3
  import { ToastProviderProps } from "./types.js";
4
- import * as vue460 from "vue";
4
+ import * as vue534 from "vue";
5
5
 
6
6
  //#region src/components/toast/toast-provider.vue.d.ts
7
7
  declare var __VLS_1: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_1) => any;
10
10
  };
11
- declare const __VLS_base: vue460.DefineComponent<ToastProviderProps, {}, {}, {}, {}, vue460.ComponentOptionsMixin, vue460.ComponentOptionsMixin, {}, string, vue460.PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
11
+ declare const __VLS_base: vue534.DefineComponent<ToastProviderProps, {}, {}, {}, {}, vue534.ComponentOptionsMixin, vue534.ComponentOptionsMixin, {}, string, vue534.PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
12
12
  label: string;
13
13
  duration: number;
14
14
  swipeDirection: SwipeDirection;
15
15
  swipeThreshold: number;
16
- }, {}, {}, {}, string, vue460.ComponentProvideOptions, false, {}, any>;
16
+ }, {}, {}, {}, string, vue534.ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  type __VLS_WithSlots<T, S> = T & {
@@ -3,7 +3,7 @@ import "../../types/index.js";
3
3
  import { AsTag } from "../primitive/types.js";
4
4
  import "../primitive/index.js";
5
5
  import { ToastLiveType, ToastRootProps } from "./types.js";
6
- import * as vue454 from "vue";
6
+ import * as vue528 from "vue";
7
7
 
8
8
  //#region src/components/toast/toast-root.vue.d.ts
9
9
  declare var __VLS_23: {
@@ -13,30 +13,30 @@ declare var __VLS_23: {
13
13
  type __VLS_Slots = {} & {
14
14
  default?: (props: typeof __VLS_23) => any;
15
15
  };
16
- declare const __VLS_base: vue454.DefineComponent<ToastRootProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {
16
+ declare const __VLS_base: vue528.DefineComponent<ToastRootProps, {}, {}, {}, {}, vue528.ComponentOptionsMixin, vue528.ComponentOptionsMixin, {
17
17
  pause: () => any;
18
+ "update:open": (value: boolean) => any;
18
19
  escapeKeyDown: (event: KeyboardEvent) => any;
19
20
  resume: () => any;
20
21
  swipeStart: (event: SwipeEvent) => any;
21
22
  swipeMove: (event: SwipeEvent) => any;
22
23
  swipeCancel: (event: SwipeEvent) => any;
23
24
  swipeEnd: (event: SwipeEvent) => any;
24
- "update:open": (value: boolean) => any;
25
- }, string, vue454.PublicProps, Readonly<ToastRootProps> & Readonly<{
25
+ }, string, vue528.PublicProps, Readonly<ToastRootProps> & Readonly<{
26
26
  onPause?: (() => any) | undefined;
27
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
27
28
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
28
29
  onResume?: (() => any) | undefined;
29
30
  onSwipeStart?: ((event: SwipeEvent) => any) | undefined;
30
31
  onSwipeMove?: ((event: SwipeEvent) => any) | undefined;
31
32
  onSwipeCancel?: ((event: SwipeEvent) => any) | undefined;
32
33
  onSwipeEnd?: ((event: SwipeEvent) => any) | undefined;
33
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
34
34
  }>, {
35
35
  open: boolean;
36
- as: AsTag | vue454.Component;
37
- liveType: ToastLiveType;
36
+ as: AsTag | vue528.Component;
38
37
  defaultOpen: boolean;
39
- }, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>;
38
+ liveType: ToastLiveType;
39
+ }, {}, {}, {}, string, vue528.ComponentProvideOptions, false, {}, any>;
40
40
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
41
  declare const _default: typeof __VLS_export;
42
42
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { ToastTitleProps } from "./types.js";
2
- import * as vue406 from "vue";
2
+ import * as vue545 from "vue";
3
3
 
4
4
  //#region src/components/toast/toast-title.vue.d.ts
5
5
  declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: vue406.DefineComponent<ToastTitleProps, {}, {}, {}, {}, vue406.ComponentOptionsMixin, vue406.ComponentOptionsMixin, {}, string, vue406.PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue406.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue545.DefineComponent<ToastTitleProps, {}, {}, {}, {}, vue545.ComponentOptionsMixin, vue545.ComponentOptionsMixin, {}, string, vue545.PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue545.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{getActiveElement as e}from"../../shared/dom.js";import{getTabbableCandidates as t,tryFocusFirst as n}from"../../shared/focus.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{Primitive as i}from"../primitive/primitive.js";import{useCollectionContext as a,useToastProviderContext as o,useToastViewportUi as s}from"./context.js";import{VIEWPORT_PAUSE as c,VIEWPORT_RESUME as l}from"./shared.js";import u from"./toast-focus-proxy.js";import{computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createVNode as h,defineComponent as g,mergeProps as _,normalizeStyle as v,onWatcherCleanup as y,openBlock as b,renderSlot as x,unref as S,useAttrs as C,watchEffect as w,withCtx as T}from"vue";import{onKeyStroke as E}from"@vueuse/core";const D=[`aria-label`];var O=g({name:`ToastViewport`,inheritAttrs:!1,__name:`toast-viewport`,props:{hotkey:{default:()=>[`F8`]},label:{type:[String,Function],default:`Notifications ({hotkey})`},asChild:{type:Boolean},as:{default:`ol`}},setup(g){let O=g,k=C(),A=s(),{onViewportElementChange:j,toastCount:M,isClosePausedRef:N}=o(`ToastViewport`),{onContainerElementChange:P,getOrderedElements:F}=a(`ToastViewport`),[I,L]=r(),[R,z]=r(),[B,V]=r(e=>{j(e),P(e)}),H=d(()=>M.value>0),U=d(()=>O.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``)),W=d(()=>typeof O.label==`string`?O.label.replace(`{hotkey}`,U.value):O.label(U.value));E(O.hotkey,()=>{B.value?.focus()});let G=e=>{n(K(e))};w(()=>{let t=B.value;if(!t||!H.value)return;let r=()=>{if(!N.value){let e=new CustomEvent(c);t.dispatchEvent(e),N.value=!0}},i=()=>{if(N.value){let e=new CustomEvent(l);t.dispatchEvent(e),N.value=!1}},a=e=>{t.contains(e.relatedTarget)||i()},o=()=>{t.contains(e())||i()},s=r=>{let i=r.altKey||r.ctrlKey||r.metaKey;if(r.key===`Tab`&&!i){let i=e(),a=r.shiftKey;if(r.target===t&&a){I.value?.focus();return}let o=K(a?`backwards`:`forwards`),s=o.findIndex(e=>e===i);if(n(o.slice(s+1))){r.preventDefault();return}a?I.value?.focus():R.value?.focus()}};t.addEventListener(`focusin`,r),t.addEventListener(`focusout`,a),t.addEventListener(`pointermove`,r),t.addEventListener(`pointerleave`,o),t.addEventListener(`keydown`,s),window.addEventListener(`blur`,r),window.addEventListener(`focus`,i),y(()=>{t.removeEventListener(`focusin`,r),t.removeEventListener(`focusout`,a),t.removeEventListener(`pointermove`,r),t.removeEventListener(`pointerleave`,o),t.removeEventListener(`keydown`,s),window.removeEventListener(`blur`,r),window.removeEventListener(`focus`,i)})});function K(e){let n=F().map(n=>{let r=[n,...t(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?n.reverse():n).flat()}return(e,t)=>(b(),m(`div`,{role:`region`,"aria-label":W.value,tabindex:`-1`,style:v({pointerEvents:H.value?void 0:`none`})},[H.value?(b(),f(u,{key:0,ref:S(L),onFocusFromOutsideViewport:t[0]||=e=>G(`forwards`)},null,512)):p(`v-if`,!0),h(S(i),_({ref:S(V)},S(k),{as:g.as,"as-child":g.asChild,class:S(A),tabindex:`-1`}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`class`]),H.value?(b(),f(u,{key:1,ref:S(z),onFocusFromOutsideViewport:t[1]||=e=>G(`backwards`)},null,512)):p(`v-if`,!0)],12,D))}});export{O as default};
1
+ import{getActiveElement as e}from"../../shared/dom.js";import{getTabbableCandidates as t,tryFocusFirst as n}from"../../shared/focus.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{Primitive as i}from"../primitive/primitive.js";import{useCollectionContext as a,useToastProviderContext as o,useToastViewportUi as s}from"./context.js";import{VIEWPORT_PAUSE as c,VIEWPORT_RESUME as l}from"./shared.js";import u from"./toast-focus-proxy.js";import{computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createVNode as h,defineComponent as g,mergeProps as _,normalizeStyle as v,onWatcherCleanup as y,openBlock as b,renderSlot as x,unref as S,useAttrs as C,watchEffect as w,withCtx as T}from"vue";import{onKeyStroke as E}from"@vueuse/core";const D=[`aria-label`];var O=g({name:`ToastViewport`,inheritAttrs:!1,__name:`toast-viewport`,props:{hotkey:{default:()=>[`F8`]},label:{type:[String,Function],default:`Notifications ({hotkey})`},asChild:{type:Boolean},as:{default:`ol`}},setup(g){let O=g,k=C(),A=s(),{onViewportElementChange:j,toastCount:M,isClosePausedRef:N}=o(`ToastViewport`),{onContainerElementChange:P,getOrderedElements:F}=a(`ToastViewport`),[I,L]=r(),[R,z]=r(),[B,V]=r(e=>{j(e),P(e)}),H=d(()=>M.value>0),U=d(()=>O.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``)),W=d(()=>typeof O.label==`string`?O.label.replace(`{hotkey}`,U.value):O.label(U.value));E(O.hotkey,()=>{B.value?.focus()});let G=e=>{n(K(e))};w(()=>{let t=B.value;if(!t||!H.value)return;let r=()=>{if(!N.value){let e=new CustomEvent(c);t.dispatchEvent(e),N.value=!0}},i=()=>{if(N.value){let e=new CustomEvent(l);t.dispatchEvent(e),N.value=!1}},a=e=>{t.contains(e.relatedTarget)||i()},o=()=>{t.contains(e())||i()},s=r=>{let i=r.altKey||r.ctrlKey||r.metaKey;if(r.key===`Tab`&&!i){let i=e(),a=r.shiftKey;if(r.target===t&&a){I.value?.focus();return}let o=K(a?`backwards`:`forwards`),s=o.findIndex(e=>e===i);if(n(o.slice(s+1))){r.preventDefault();return}a?I.value?.focus():R.value?.focus()}};t.addEventListener(`focusin`,r),t.addEventListener(`focusout`,a),t.addEventListener(`pointermove`,r),t.addEventListener(`pointerleave`,o),t.addEventListener(`keydown`,s),window.addEventListener(`blur`,r),window.addEventListener(`focus`,i),y(()=>{t.removeEventListener(`focusin`,r),t.removeEventListener(`focusout`,a),t.removeEventListener(`pointermove`,r),t.removeEventListener(`pointerleave`,o),t.removeEventListener(`keydown`,s),window.removeEventListener(`blur`,r),window.removeEventListener(`focus`,i)})});function K(e){let n=F().map(n=>{let r=[n,...t(n)];return e===`forwards`?r:r.slice().reverse()});return(e===`forwards`?n.slice().reverse():n).flat()}return(e,t)=>(b(),m(`div`,{role:`region`,"aria-label":W.value,tabindex:`-1`,style:v({pointerEvents:H.value?void 0:`none`})},[H.value?(b(),f(u,{key:0,ref:S(L),onFocusFromOutsideViewport:t[0]||(t[0]=e=>G(`forwards`))},null,512)):p(`v-if`,!0),h(S(i),_({ref:S(V)},S(k),{as:g.as,"as-child":g.asChild,class:S(A),tabindex:`-1`}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`class`]),H.value?(b(),f(u,{key:1,ref:S(z),onFocusFromOutsideViewport:t[1]||(t[1]=e=>G(`backwards`))},null,512)):p(`v-if`,!0)],12,D))}});export{O as default};
@@ -1,18 +1,18 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { ToastViewportProps } from "./types.js";
4
- import * as vue411 from "vue";
4
+ import * as vue550 from "vue";
5
5
 
6
6
  //#region src/components/toast/toast-viewport.vue.d.ts
7
7
  declare var __VLS_14: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_14) => any;
10
10
  };
11
- declare const __VLS_base: vue411.DefineComponent<ToastViewportProps, {}, {}, {}, {}, vue411.ComponentOptionsMixin, vue411.ComponentOptionsMixin, {}, string, vue411.PublicProps, Readonly<ToastViewportProps> & Readonly<{}>, {
11
+ declare const __VLS_base: vue550.DefineComponent<ToastViewportProps, {}, {}, {}, {}, vue550.ComponentOptionsMixin, vue550.ComponentOptionsMixin, {}, string, vue550.PublicProps, Readonly<ToastViewportProps> & Readonly<{}>, {
12
12
  label: string | ((hotkey: string) => string);
13
- as: AsTag | vue411.Component;
13
+ as: AsTag | vue550.Component;
14
14
  hotkey: string[];
15
- }, {}, {}, {}, string, vue411.ComponentProvideOptions, false, {}, any>;
15
+ }, {}, {}, {}, string, vue550.ComponentProvideOptions, false, {}, any>;
16
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
17
  declare const _default: typeof __VLS_export;
18
18
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{useContext as e}from"../../composables/use-context.js";import{computed as t,shallowRef as n,useId as r}from"vue";const[i,a]=e(`TooltipOpenDelayed`,e=>{let{skipDelayDuration:t}=e,r=n(!0),i=n(!1),a=null,o=()=>{a&&=(clearTimeout(a),null)},s=()=>{o(),a=setTimeout(()=>{r.value=!0},t.value)};return{skipDelayDuration:t,isOpenDelayed:r,isPointerInTransitRef:i,onOpen:()=>{o(),r.value=!1},onClose:()=>{s()}}}),[o,s]=e(`TooltipRoot`,e=>{let{open:i,delayDuration:a,isOpenDelayed:o,disableHoverableContent:s}=e,c=n(``),l=()=>{c.value||=`soybean-tooltip-popup-${r()}`},u=n(!1),d=t(()=>i.value?u.value?`delayed-open`:`instant-open`:`closed`),f=n(),p=e=>{f.value=e},m=n(),h=e=>{m.value=e},g=null,_=()=>{g&&=(clearTimeout(g),null)},v=()=>{_(),g=setTimeout(()=>{u.value=!0,i.value=!0},a.value)},y=()=>{_(),u.value=!1,i.value=!0},b=()=>{_(),i.value=!1},x=()=>{v()},S=()=>{o.value?x():y()},C=()=>{s.value?b():_()};return{...e,dataState:d,popupId:c,initPopupId:l,popupElement:f,onPopupElementChange:p,triggerElement:m,onTriggerElementChange:h,onTriggerEnter:S,onTriggerLeave:C,onOpen:y,onClose:b}});export{i as provideTooltipOpenDelayedContext,o as provideTooltipRootContext,a as useTooltipOpenDelayedContext,s as useTooltipRootContext};
1
+ import{useContext as e}from"../../composables/use-context.js";import{computed as t,shallowRef as n,useId as r}from"vue";const[i,a]=e(`TooltipOpenDelayed`,e=>{let{skipDelayDuration:t}=e,r=n(!0),i=n(!1),a=null,o=()=>{a&&(clearTimeout(a),a=null)},s=()=>{o(),a=setTimeout(()=>{r.value=!0},t.value)};return{skipDelayDuration:t,isOpenDelayed:r,isPointerInTransitRef:i,onOpen:()=>{o(),r.value=!1},onClose:()=>{s()}}}),[o,s]=e(`TooltipRoot`,e=>{let{open:i,delayDuration:a,isOpenDelayed:o,disableHoverableContent:s}=e,c=n(``),l=()=>{c.value||(c.value=`soybean-tooltip-popup-${r()}`)},u=n(!1),d=t(()=>i.value?u.value?`delayed-open`:`instant-open`:`closed`),f=n(),p=e=>{f.value=e},m=n(),h=e=>{m.value=e},g=null,_=()=>{g&&(clearTimeout(g),g=null)},v=()=>{_(),g=setTimeout(()=>{u.value=!0,i.value=!0},a.value)},y=()=>{_(),u.value=!1,i.value=!0},b=()=>{_(),i.value=!1},x=()=>{v()},S=()=>{o.value?x():y()},C=()=>{s.value?b():_()};return{...e,dataState:d,popupId:c,initPopupId:l,popupElement:f,onPopupElementChange:p,triggerElement:m,onTriggerElementChange:h,onTriggerEnter:S,onTriggerLeave:C,onOpen:y,onClose:b}});export{i as provideTooltipOpenDelayedContext,o as provideTooltipRootContext,a as useTooltipOpenDelayedContext,s as useTooltipRootContext};
@@ -1,12 +1,12 @@
1
1
  import { TooltipPopupProps } from "./types.js";
2
- import * as vue1751 from "vue";
2
+ import * as vue1165 from "vue";
3
3
 
4
4
  //#region src/components/tooltip/tooltip-popup.vue.d.ts
5
5
  declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_8) => any;
8
8
  };
9
- declare const __VLS_base: vue1751.DefineComponent<TooltipPopupProps, {}, {}, {}, {}, vue1751.ComponentOptionsMixin, vue1751.ComponentOptionsMixin, {}, string, vue1751.PublicProps, Readonly<TooltipPopupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1751.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue1165.DefineComponent<TooltipPopupProps, {}, {}, {}, {}, vue1165.ComponentOptionsMixin, vue1165.ComponentOptionsMixin, {}, string, vue1165.PublicProps, Readonly<TooltipPopupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1165.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,20 +1,20 @@
1
1
  import { PointerDownOutsideEvent } from "../../types/event.js";
2
2
  import { TooltipPositionerProps } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue1746 from "vue";
4
+ import * as vue1155 from "vue";
5
5
 
6
6
  //#region src/components/tooltip/tooltip-positioner.vue.d.ts
7
7
  declare var __VLS_8: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue1746.DefineComponent<TooltipPositionerProps, {}, {}, {}, {}, vue1746.ComponentOptionsMixin, vue1746.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue1155.DefineComponent<TooltipPositionerProps, {}, {}, {}, {}, vue1155.ComponentOptionsMixin, vue1155.ComponentOptionsMixin, {
12
12
  escapeKeyDown: (event: KeyboardEvent) => any;
13
13
  pointerDownOutside: (event: PointerDownOutsideEvent) => any;
14
- }, string, vue1746.PublicProps, Readonly<TooltipPositionerProps> & Readonly<{
14
+ }, string, vue1155.PublicProps, Readonly<TooltipPositionerProps> & Readonly<{
15
15
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
16
16
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, vue1746.ComponentProvideOptions, false, {}, any>;
17
+ }>, {}, {}, {}, {}, string, vue1155.ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { TooltipRootProps } from "./types.js";
2
- import * as vue1735 from "vue";
2
+ import * as vue1160 from "vue";
3
3
 
4
4
  //#region src/components/tooltip/tooltip-root.vue.d.ts
5
5
  declare var __VLS_8: {
@@ -8,14 +8,14 @@ declare var __VLS_8: {
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue1735.DefineComponent<TooltipRootProps, {}, {}, {}, {}, vue1735.ComponentOptionsMixin, vue1735.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue1160.DefineComponent<TooltipRootProps, {}, {}, {}, {}, vue1160.ComponentOptionsMixin, vue1160.ComponentOptionsMixin, {
12
12
  "update:open": (value: boolean) => any;
13
- }, string, vue1735.PublicProps, Readonly<TooltipRootProps> & Readonly<{
13
+ }, string, vue1160.PublicProps, Readonly<TooltipRootProps> & Readonly<{
14
14
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
15
15
  }>, {
16
16
  open: boolean;
17
17
  defaultOpen: boolean;
18
- }, {}, {}, {}, string, vue1735.ComponentProvideOptions, false, {}, any>;
18
+ }, {}, {}, {}, string, vue1160.ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  type __VLS_WithSlots<T, S> = T & {
@@ -2,16 +2,16 @@ import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { PopperAnchorProps } from "../popper/types.js";
4
4
  import "./types.js";
5
- import * as vue1740 from "vue";
5
+ import * as vue1144 from "vue";
6
6
 
7
7
  //#region src/components/tooltip/tooltip-trigger.vue.d.ts
8
8
  declare var __VLS_8: {};
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_8) => any;
11
11
  };
12
- declare const __VLS_base: vue1740.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, vue1740.ComponentOptionsMixin, vue1740.ComponentOptionsMixin, {}, string, vue1740.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {
13
- as: AsTag | vue1740.Component;
14
- }, {}, {}, {}, string, vue1740.ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_base: vue1144.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, vue1144.ComponentOptionsMixin, vue1144.ComponentOptionsMixin, {}, string, vue1144.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {
13
+ as: AsTag | vue1144.Component;
14
+ }, {}, {}, {}, string, vue1144.ComponentProvideOptions, false, {}, any>;
15
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{flattenChildren as e}from"../../shared/object.js";import{getActiveElement as t}from"../../shared/dom.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import{Primitive as r}from"../primitive/primitive.js";import i from"../roving-focus/roving-focus-item.js";import{useTreeRootContext as a}from"./context.js";import{TREE_SELECT as o,TREE_TOGGLE as s,recurseCheckChildren as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,openBlock as p,renderSlot as m,unref as h,withCtx as g,withKeys as _,withModifiers as v}from"vue";var y=f({name:`TreeItem`,__name:`tree-item`,props:{value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`select`,`toggle`],setup(f,{emit:y}){let b=f,x=y,{modelValue:S,disabled:C,dir:w,selectedKeys:T,expanded:E,expandedItems:D,propagateSelect:O,bubbleSelect:k,onSelect:A,onToggle:j,getItems:M}=a(`TreeItem`),N={value:b.value},P=l(()=>D.value.find(e=>e.value===b.value)),F=l(()=>C.value||b.disabled),I=l(()=>!!P.value?.hasChildren),L=l(()=>E.value?.includes(b.value)??!1),R=l(()=>T.value.includes(b.value)),z=l(()=>c(T.value,P.value?.data?.children)),B=l(()=>{if(!P.value||!I.value||!Array.isArray(S.value))return;let t=e(P.value.data.children);if(k.value)return t.some(e=>T.value.includes(e.value))&&!t.every(e=>T.value.includes(e.value));if(O.value&&R.value)return!t.every(e=>T.value.includes(e.value))}),V=e=>{F.value||!I.value||(L.value?W(`right`)?.focus?.():J(e))},H=e=>{F.value||(L.value?J(e):W(`left`)?.focus?.())},U=(e,t)=>{if(!F.value){if(t===`right`){w.value===`ltr`?V(e):H(e);return}w.value===`ltr`?H(e):V(e)}};function W(e){let n=M?.()?.map(e=>e.element)??[],r=t(),i=n.indexOf(r),a=[...n];a=e===`left`?a.slice(0,i).reverse():a.slice(i);let o=e===`left`?b.level-1:b.level+1;return a.find(e=>Number(e.getAttribute(`data-indent`))===o)}async function G(e){x(`select`,e),!e?.defaultPrevented&&A(b.value)}function K(e){x(`toggle`,e),!e?.defaultPrevented&&j(b.value)}async function q(e){b.disabledSelect||e&&n(o,G,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}function J(e){b.disabledToggle||e&&n(s,K,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}let Y=e=>{F.value||(q(e),J(e))};return(e,t)=>(p(),u(i,{"as-child":``,"item-data":N,"allow-shift-key":``},{default:g(()=>[d(h(r),{as:f.as,"as-child":f.asChild,"aria-disabled":F.value?!0:void 0,"aria-selected":R.value,"aria-expanded":I.value?L.value:void 0,"aria-level":f.level,"data-disabled":F.value?``:void 0,"data-indent":f.level,"data-selected":R.value?``:void 0,"data-expanded":L.value?``:void 0,"data-contains-selected":z.value?``:void 0,role:`treeitem`,onKeydown:[_(v(Y,[`self`,`prevent`]),[`enter`,`space`]),t[0]||=_(v(e=>U(e,`right`),[`prevent`]),[`right`]),t[1]||=_(v(e=>U(e,`left`),[`prevent`]),[`left`])],onClick:v(Y,[`stop`])},{default:g(()=>[m(e.$slots,`default`,{isExpanded:L.value,isSelected:R.value,isIndeterminate:B.value,hasChildren:I.value})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-selected`,`aria-expanded`,`aria-level`,`data-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-contains-selected`,`onKeydown`])]),_:3}))}});export{y as default};
1
+ import{flattenChildren as e}from"../../shared/object.js";import{getActiveElement as t}from"../../shared/dom.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import{Primitive as r}from"../primitive/primitive.js";import i from"../roving-focus/roving-focus-item.js";import{useTreeRootContext as a}from"./context.js";import{TREE_SELECT as o,TREE_TOGGLE as s,recurseCheckChildren as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,openBlock as p,renderSlot as m,unref as h,withCtx as g,withKeys as _,withModifiers as v}from"vue";var y=f({name:`TreeItem`,__name:`tree-item`,props:{value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`select`,`toggle`],setup(f,{emit:y}){let b=f,x=y,{modelValue:S,disabled:C,dir:w,selectedKeys:T,expanded:E,expandedItems:D,propagateSelect:O,bubbleSelect:k,onSelect:A,onToggle:j,getItems:M}=a(`TreeItem`),N={value:b.value},P=l(()=>D.value.find(e=>e.value===b.value)),F=l(()=>C.value||b.disabled),I=l(()=>!!P.value?.hasChildren),L=l(()=>E.value?.includes(b.value)??!1),R=l(()=>T.value.includes(b.value)),z=l(()=>c(T.value,P.value?.data?.children)),B=l(()=>{if(!P.value||!I.value||!Array.isArray(S.value))return;let t=e(P.value.data.children);if(k.value)return t.some(e=>T.value.includes(e.value))&&!t.every(e=>T.value.includes(e.value));if(O.value&&R.value)return!t.every(e=>T.value.includes(e.value))}),V=e=>{F.value||!I.value||(L.value?W(`right`)?.focus?.():J(e))},H=e=>{F.value||(L.value?J(e):W(`left`)?.focus?.())},U=(e,t)=>{if(!F.value){if(t===`right`){w.value===`ltr`?V(e):H(e);return}w.value===`ltr`?H(e):V(e)}};function W(e){let n=M?.()?.map(e=>e.element)??[],r=t(),i=n.indexOf(r),a=[...n];a=e===`left`?a.slice(0,i).reverse():a.slice(i);let o=e===`left`?b.level-1:b.level+1;return a.find(e=>Number(e.getAttribute(`data-indent`))===o)}async function G(e){x(`select`,e),!e?.defaultPrevented&&A(b.value)}function K(e){x(`toggle`,e),!e?.defaultPrevented&&j(b.value)}async function q(e){b.disabledSelect||e&&n(o,G,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}function J(e){b.disabledToggle||e&&n(s,K,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}let Y=e=>{F.value||(q(e),J(e))};return(e,t)=>(p(),u(i,{"as-child":``,"item-data":N,"allow-shift-key":``},{default:g(()=>[d(h(r),{as:f.as,"as-child":f.asChild,"aria-disabled":F.value?!0:void 0,"aria-selected":R.value,"aria-expanded":I.value?L.value:void 0,"aria-level":f.level,"data-disabled":F.value?``:void 0,"data-indent":f.level,"data-selected":R.value?``:void 0,"data-expanded":L.value?``:void 0,"data-contains-selected":z.value?``:void 0,role:`treeitem`,onKeydown:[_(v(Y,[`self`,`prevent`]),[`enter`,`space`]),t[0]||(t[0]=_(v(e=>U(e,`right`),[`prevent`]),[`right`])),t[1]||(t[1]=_(v(e=>U(e,`left`),[`prevent`]),[`left`]))],onClick:v(Y,[`stop`])},{default:g(()=>[m(e.$slots,`default`,{isExpanded:L.value,isSelected:R.value,isIndeterminate:B.value,hasChildren:I.value})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-selected`,`aria-expanded`,`aria-level`,`data-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-contains-selected`,`onKeydown`])]),_:3}))}});export{y as default};
@@ -3,7 +3,7 @@ import "../../types/index.js";
3
3
  import { AsTag } from "../primitive/types.js";
4
4
  import "../primitive/index.js";
5
5
  import { TreeItemProps } from "./types.js";
6
- import * as vue1253 from "vue";
6
+ import * as vue289 from "vue";
7
7
 
8
8
  //#region src/components/tree/tree-item.vue.d.ts
9
9
  declare var __VLS_19: {
@@ -15,15 +15,15 @@ declare var __VLS_19: {
15
15
  type __VLS_Slots = {} & {
16
16
  default?: (props: typeof __VLS_19) => any;
17
17
  };
18
- declare const __VLS_base: vue1253.DefineComponent<TreeItemProps, {}, {}, {}, {}, vue1253.ComponentOptionsMixin, vue1253.ComponentOptionsMixin, {
18
+ declare const __VLS_base: vue289.DefineComponent<TreeItemProps, {}, {}, {}, {}, vue289.ComponentOptionsMixin, vue289.ComponentOptionsMixin, {
19
19
  select: (event: TreeSelectEvent<string>) => any;
20
20
  toggle: (event: TreeToggleEvent<string>) => any;
21
- }, string, vue1253.PublicProps, Readonly<TreeItemProps> & Readonly<{
21
+ }, string, vue289.PublicProps, Readonly<TreeItemProps> & Readonly<{
22
22
  onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
23
23
  onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
24
24
  }>, {
25
- as: AsTag | vue1253.Component;
26
- }, {}, {}, {}, string, vue1253.ComponentProvideOptions, false, {}, any>;
25
+ as: AsTag | vue289.Component;
26
+ }, {}, {}, {}, string, vue289.ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  type __VLS_WithSlots<T, S> = T & {
@@ -1,11 +1,11 @@
1
1
  import { MaybeArray } from "../../types/common.js";
2
2
  import "../../types/index.js";
3
3
  import { FlattenedItem, TreeItemData, TreeRootProps } from "./types.js";
4
- import * as vue1261 from "vue";
4
+ import * as vue287 from "vue";
5
5
 
6
6
  //#region src/components/tree/tree-root.vue.d.ts
7
7
  declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
- props: vue1261.PublicProps & __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
8
+ props: vue287.PublicProps & __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
9
9
  "onUpdate:modelValue"?: ((value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => any) | undefined;
10
10
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
11
11
  }> & (typeof globalThis extends {
@@ -23,7 +23,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
23
23
  }) => any;
24
24
  };
25
25
  emit: ((evt: "update:modelValue", value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => void) & ((evt: "update:expanded", value: string[]) => void);
26
- }>) => vue1261.VNode & {
26
+ }>) => vue287.VNode & {
27
27
  __ctx?: Awaited<typeof __VLS_setup>;
28
28
  };
29
29
  declare const _default: typeof __VLS_export;