@soybeanjs/headless 0.29.3 → 0.30.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1073) hide show
  1. package/README.md +8 -4
  2. package/README.zh-CN.md +8 -4
  3. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +1 -0
  4. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +1 -0
  5. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +1 -0
  6. package/dist/_virtual/{_@oxc-project_runtime@0.135.0 → _@oxc-project_runtime@0.143.0}/helpers/esm/typeof.js +1 -1
  7. package/dist/components/_icon/types.d.ts +0 -1
  8. package/dist/components/accordion/accordion-compact.vue.d.ts +3 -4
  9. package/dist/components/accordion/accordion-content.vue.d.ts +1 -2
  10. package/dist/components/accordion/accordion-description.vue.d.ts +1 -2
  11. package/dist/components/accordion/accordion-header.vue.d.ts +1 -2
  12. package/dist/components/accordion/accordion-item.vue.d.ts +1 -2
  13. package/dist/components/accordion/accordion-root.vue.d.ts +3 -4
  14. package/dist/components/accordion/accordion-trigger.vue.d.ts +1 -2
  15. package/dist/components/accordion/context.d.ts +3 -0
  16. package/dist/components/accordion/context.js +1 -1
  17. package/dist/components/accordion/index.d.ts +7 -7
  18. package/dist/components/accordion/types.d.ts +1 -1
  19. package/dist/components/affix/affix-compact.vue.d.ts +1 -2
  20. package/dist/components/affix/affix-content.vue.d.ts +1 -2
  21. package/dist/components/affix/affix-placeholder.vue.d.ts +1 -2
  22. package/dist/components/affix/affix-root.vue.d.ts +1 -2
  23. package/dist/components/affix/context.d.ts +2 -0
  24. package/dist/components/affix/index.d.ts +4 -4
  25. package/dist/components/affix/shared.js +1 -1
  26. package/dist/components/affix/types.d.ts +1 -1
  27. package/dist/components/alert/alert-close.js +1 -1
  28. package/dist/components/alert/alert-close.vue.d.ts +1 -2
  29. package/dist/components/alert/alert-compact.vue.d.ts +1 -2
  30. package/dist/components/alert/alert-content.vue.d.ts +1 -2
  31. package/dist/components/alert/alert-description.vue.d.ts +1 -2
  32. package/dist/components/alert/alert-root.vue.d.ts +1 -2
  33. package/dist/components/alert/alert-title.vue.d.ts +1 -2
  34. package/dist/components/alert/context.d.ts +2 -0
  35. package/dist/components/alert/index.d.ts +6 -6
  36. package/dist/components/alert/types.d.ts +4 -3
  37. package/dist/components/anchor/anchor-compact.vue.d.ts +1 -2
  38. package/dist/components/anchor/anchor-item-compact.js +1 -1
  39. package/dist/components/anchor/anchor-item-compact.vue.d.ts +1 -2
  40. package/dist/components/anchor/anchor-link.js +1 -1
  41. package/dist/components/anchor/anchor-link.vue.d.ts +2 -1
  42. package/dist/components/anchor/anchor-root.js +1 -1
  43. package/dist/components/anchor/anchor-root.vue.d.ts +2 -1
  44. package/dist/components/anchor/context.d.ts +2 -0
  45. package/dist/components/anchor/index.d.ts +4 -4
  46. package/dist/components/anchor/shared.js +1 -1
  47. package/dist/components/anchor/types.d.ts +3 -3
  48. package/dist/components/arrow/arrow.js +1 -1
  49. package/dist/components/arrow/arrow.vue.d.ts +1 -2
  50. package/dist/components/arrow/index.d.ts +1 -1
  51. package/dist/components/arrow/types.d.ts +1 -1
  52. package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
  53. package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +1 -2
  54. package/dist/components/aspect-ratio/index.d.ts +1 -1
  55. package/dist/components/aspect-ratio/types.d.ts +0 -1
  56. package/dist/components/autocomplete/autocomplete-compact.js +1 -1
  57. package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +3 -4
  58. package/dist/components/autocomplete/autocomplete-input.js +1 -1
  59. package/dist/components/autocomplete/autocomplete-input.vue.d.ts +5 -6
  60. package/dist/components/autocomplete/autocomplete-root.js +1 -1
  61. package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
  62. package/dist/components/autocomplete/context.d.ts +3 -0
  63. package/dist/components/autocomplete/index.d.ts +15 -13
  64. package/dist/components/autocomplete/types.d.ts +5 -2
  65. package/dist/components/avatar/avatar-compact.js +1 -1
  66. package/dist/components/avatar/avatar-compact.vue.d.ts +2 -1
  67. package/dist/components/avatar/avatar-fallback.vue.d.ts +1 -2
  68. package/dist/components/avatar/avatar-image.js +1 -1
  69. package/dist/components/avatar/avatar-image.vue.d.ts +2 -1
  70. package/dist/components/avatar/avatar-root.vue.d.ts +1 -2
  71. package/dist/components/avatar/context.d.ts +3 -0
  72. package/dist/components/avatar/index.d.ts +4 -4
  73. package/dist/components/avatar/types.d.ts +13 -3
  74. package/dist/components/backtop/backtop.vue.d.ts +3 -4
  75. package/dist/components/backtop/index.d.ts +1 -1
  76. package/dist/components/backtop/shared.js +1 -1
  77. package/dist/components/backtop/types.d.ts +0 -1
  78. package/dist/components/badge/badge-compact.vue.d.ts +1 -2
  79. package/dist/components/badge/badge-content.vue.d.ts +1 -2
  80. package/dist/components/badge/badge-root.js +1 -1
  81. package/dist/components/badge/badge-root.vue.d.ts +1 -2
  82. package/dist/components/badge/context.d.ts +2 -0
  83. package/dist/components/badge/index.d.ts +3 -3
  84. package/dist/components/badge/types.d.ts +4 -2
  85. package/dist/components/bottom-sheet/bottom-sheet-compact.vue.d.ts +1 -2
  86. package/dist/components/bottom-sheet/bottom-sheet-handle.vue.d.ts +1 -2
  87. package/dist/components/bottom-sheet/bottom-sheet-overlay.vue.d.ts +1 -1
  88. package/dist/components/bottom-sheet/bottom-sheet-popup.vue.d.ts +1 -1
  89. package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
  90. package/dist/components/bottom-sheet/bottom-sheet-root.vue.d.ts +1 -2
  91. package/dist/components/bottom-sheet/context.d.ts +2 -0
  92. package/dist/components/bottom-sheet/context.js +1 -1
  93. package/dist/components/bottom-sheet/index.d.ts +17 -16
  94. package/dist/components/bottom-sheet/types.d.ts +3 -2
  95. package/dist/components/breadcrumb/breadcrumb-compact.js +1 -1
  96. package/dist/components/breadcrumb/breadcrumb-compact.vue.d.ts +3 -4
  97. package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +1 -2
  98. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +1 -2
  99. package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +1 -2
  100. package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +1 -2
  101. package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +1 -2
  102. package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +1 -2
  103. package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +1 -2
  104. package/dist/components/breadcrumb/context.d.ts +2 -0
  105. package/dist/components/breadcrumb/index.d.ts +8 -8
  106. package/dist/components/breadcrumb/types.d.ts +3 -3
  107. package/dist/components/button/button-group.js +1 -0
  108. package/dist/components/button/button-group.vue.d.ts +20 -0
  109. package/dist/components/button/button.vue.d.ts +2 -1
  110. package/dist/components/button/index.d.ts +4 -3
  111. package/dist/components/button/index.js +1 -1
  112. package/dist/components/button/types.d.ts +19 -3
  113. package/dist/components/calendar/calendar-cell-trigger.js +1 -1
  114. package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +1 -2
  115. package/dist/components/calendar/calendar-cell.vue.d.ts +2 -2
  116. package/dist/components/calendar/calendar-compact.vue.d.ts +3 -4
  117. package/dist/components/calendar/calendar-grid-body.vue.d.ts +2 -2
  118. package/dist/components/calendar/calendar-grid-head.vue.d.ts +2 -2
  119. package/dist/components/calendar/calendar-grid-row.vue.d.ts +2 -2
  120. package/dist/components/calendar/calendar-grid.vue.d.ts +2 -2
  121. package/dist/components/calendar/calendar-head-cell.vue.d.ts +2 -2
  122. package/dist/components/calendar/calendar-header.vue.d.ts +1 -2
  123. package/dist/components/calendar/calendar-heading.vue.d.ts +1 -2
  124. package/dist/components/calendar/calendar-next.js +1 -1
  125. package/dist/components/calendar/calendar-next.vue.d.ts +1 -2
  126. package/dist/components/calendar/calendar-prev.js +1 -1
  127. package/dist/components/calendar/calendar-prev.vue.d.ts +1 -2
  128. package/dist/components/calendar/calendar-root.vue.d.ts +3 -4
  129. package/dist/components/calendar/context.d.ts +2 -0
  130. package/dist/components/calendar/index.d.ts +13 -13
  131. package/dist/components/calendar/types.d.ts +3 -2
  132. package/dist/components/calendar/use-calendar.js +1 -1
  133. package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -1
  134. package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +1 -2
  135. package/dist/components/calendar-range/calendar-range-cell.vue.d.ts +2 -2
  136. package/dist/components/calendar-range/calendar-range-compact.vue.d.ts +2 -1
  137. package/dist/components/calendar-range/calendar-range-grid-body.vue.d.ts +2 -2
  138. package/dist/components/calendar-range/calendar-range-grid-head.vue.d.ts +2 -2
  139. package/dist/components/calendar-range/calendar-range-grid-row.vue.d.ts +2 -2
  140. package/dist/components/calendar-range/calendar-range-grid.vue.d.ts +2 -2
  141. package/dist/components/calendar-range/calendar-range-head-cell.vue.d.ts +2 -2
  142. package/dist/components/calendar-range/calendar-range-header.vue.d.ts +1 -2
  143. package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +1 -2
  144. package/dist/components/calendar-range/calendar-range-next.js +1 -1
  145. package/dist/components/calendar-range/calendar-range-next.vue.d.ts +1 -2
  146. package/dist/components/calendar-range/calendar-range-prev.js +1 -1
  147. package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +1 -2
  148. package/dist/components/calendar-range/calendar-range-root.js +1 -1
  149. package/dist/components/calendar-range/calendar-range-root.vue.d.ts +8 -6
  150. package/dist/components/calendar-range/context.d.ts +2 -0
  151. package/dist/components/calendar-range/index.d.ts +13 -13
  152. package/dist/components/calendar-range/types.d.ts +3 -2
  153. package/dist/components/calendar-range/use-calendar-range.js +1 -1
  154. package/dist/components/card/card-collapsible-trigger.vue.d.ts +1 -2
  155. package/dist/components/card/card-compact.vue.d.ts +1 -2
  156. package/dist/components/card/card-content.vue.d.ts +1 -2
  157. package/dist/components/card/card-description.vue.d.ts +1 -2
  158. package/dist/components/card/card-footer.vue.d.ts +1 -2
  159. package/dist/components/card/card-header.vue.d.ts +1 -2
  160. package/dist/components/card/card-root.vue.d.ts +1 -2
  161. package/dist/components/card/card-title-root.vue.d.ts +1 -2
  162. package/dist/components/card/card-title.vue.d.ts +1 -2
  163. package/dist/components/card/context.d.ts +2 -0
  164. package/dist/components/card/index.d.ts +9 -9
  165. package/dist/components/card/types.d.ts +1 -1
  166. package/dist/components/carousel/carousel-compact.vue.d.ts +4 -4
  167. package/dist/components/carousel/carousel-container.vue.d.ts +1 -2
  168. package/dist/components/carousel/carousel-content.vue.d.ts +1 -2
  169. package/dist/components/carousel/carousel-control.vue.d.ts +1 -2
  170. package/dist/components/carousel/carousel-item.vue.d.ts +1 -2
  171. package/dist/components/carousel/carousel-navigation.vue.d.ts +1 -2
  172. package/dist/components/carousel/carousel-next.js +1 -1
  173. package/dist/components/carousel/carousel-next.vue.d.ts +1 -2
  174. package/dist/components/carousel/carousel-previous.js +1 -1
  175. package/dist/components/carousel/carousel-previous.vue.d.ts +1 -2
  176. package/dist/components/carousel/carousel-root.js +1 -1
  177. package/dist/components/carousel/carousel-root.vue.d.ts +2 -1
  178. package/dist/components/carousel/context.d.ts +2 -0
  179. package/dist/components/carousel/index.d.ts +9 -9
  180. package/dist/components/carousel/types.d.ts +1 -1
  181. package/dist/components/cascader/cascader-clear.js +1 -0
  182. package/dist/components/cascader/cascader-clear.vue.d.ts +18 -0
  183. package/dist/components/cascader/cascader-compact.js +1 -0
  184. package/dist/components/cascader/cascader-compact.vue.d.ts +31 -0
  185. package/dist/components/cascader/cascader-content.js +1 -0
  186. package/dist/components/cascader/cascader-content.vue.d.ts +62 -0
  187. package/dist/components/cascader/cascader-empty.js +1 -0
  188. package/dist/components/cascader/cascader-empty.vue.d.ts +16 -0
  189. package/dist/components/cascader/cascader-menu.js +1 -0
  190. package/dist/components/cascader/cascader-menu.vue.d.ts +30 -0
  191. package/dist/components/cascader/cascader-option.js +1 -0
  192. package/dist/components/cascader/cascader-option.vue.d.ts +33 -0
  193. package/dist/components/cascader/cascader-root.js +1 -0
  194. package/dist/components/cascader/cascader-root.vue.d.ts +30 -0
  195. package/dist/components/cascader/cascader-search-input.js +1 -0
  196. package/dist/components/cascader/cascader-search-input.vue.d.ts +6 -0
  197. package/dist/components/cascader/cascader-tags.js +1 -0
  198. package/dist/components/cascader/cascader-tags.vue.d.ts +23 -0
  199. package/dist/components/cascader/cascader-trigger.js +1 -0
  200. package/dist/components/cascader/cascader-trigger.vue.d.ts +20 -0
  201. package/dist/components/cascader/cascader-value.js +1 -0
  202. package/dist/components/cascader/cascader-value.vue.d.ts +22 -0
  203. package/dist/components/cascader/context.d.ts +46 -0
  204. package/dist/components/cascader/context.js +1 -0
  205. package/dist/components/cascader/hooks.js +1 -0
  206. package/dist/components/cascader/index.d.ts +14 -0
  207. package/dist/components/cascader/index.js +1 -0
  208. package/dist/components/cascader/shared.js +1 -0
  209. package/dist/components/cascader/types.d.ts +479 -0
  210. package/dist/components/checkbox/checkbox-card-compact.vue.d.ts +4 -3
  211. package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
  212. package/dist/components/checkbox/checkbox-card-group-compact.vue.d.ts +3 -4
  213. package/dist/components/checkbox/checkbox-compact.vue.d.ts +9 -8
  214. package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -1
  215. package/dist/components/checkbox/checkbox-group-compact.vue.d.ts +3 -4
  216. package/dist/components/checkbox/checkbox-group-root.vue.d.ts +4 -4
  217. package/dist/components/checkbox/checkbox-indicator.vue.d.ts +2 -2
  218. package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -1
  219. package/dist/components/checkbox/checkbox-root.vue.d.ts +3 -1
  220. package/dist/components/checkbox/context.d.ts +2 -0
  221. package/dist/components/checkbox/index.d.ts +9 -9
  222. package/dist/components/checkbox/types.d.ts +6 -4
  223. package/dist/components/clipboard/clipboard.js +1 -1
  224. package/dist/components/clipboard/clipboard.vue.d.ts +3 -37
  225. package/dist/components/clipboard/index.d.ts +1 -1
  226. package/dist/components/clipboard/shared.js +1 -0
  227. package/dist/components/clipboard/types.d.ts +25 -18
  228. package/dist/components/collapsible/collapsible-content.js +1 -1
  229. package/dist/components/collapsible/collapsible-content.vue.d.ts +1 -2
  230. package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -2
  231. package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -2
  232. package/dist/components/collapsible/context.d.ts +3 -0
  233. package/dist/components/collapsible/index.d.ts +3 -3
  234. package/dist/components/collapsible/types.d.ts +3 -2
  235. package/dist/components/color-area/color-area-area.vue.d.ts +1 -2
  236. package/dist/components/color-area/color-area-compact.vue.d.ts +4 -4
  237. package/dist/components/color-area/color-area-root.vue.d.ts +4 -4
  238. package/dist/components/color-area/color-area-thumb.vue.d.ts +2 -2
  239. package/dist/components/color-area/context.d.ts +2 -0
  240. package/dist/components/color-area/index.d.ts +4 -4
  241. package/dist/components/color-area/types.d.ts +1 -1
  242. package/dist/components/color-field/color-field-compact.vue.d.ts +2 -2
  243. package/dist/components/color-field/color-field-input.js +1 -1
  244. package/dist/components/color-field/color-field-input.vue.d.ts +1 -2
  245. package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
  246. package/dist/components/color-field/context.d.ts +2 -0
  247. package/dist/components/color-field/index.d.ts +3 -3
  248. package/dist/components/color-field/types.d.ts +1 -1
  249. package/dist/components/color-picker/color-picker-compact.vue.d.ts +5 -3
  250. package/dist/components/color-picker/color-picker-root.js +1 -1
  251. package/dist/components/color-picker/color-picker-root.vue.d.ts +7 -7
  252. package/dist/components/color-picker/color-picker-trigger.vue.d.ts +2 -2
  253. package/dist/components/color-picker/context.d.ts +2 -0
  254. package/dist/components/color-picker/index.d.ts +3 -3
  255. package/dist/components/color-picker/types.d.ts +1 -1
  256. package/dist/components/color-slider/color-slider-compact.vue.d.ts +4 -4
  257. package/dist/components/color-slider/color-slider-root.js +1 -1
  258. package/dist/components/color-slider/color-slider-root.vue.d.ts +6 -4
  259. package/dist/components/color-slider/color-slider-thumb.vue.d.ts +1 -2
  260. package/dist/components/color-slider/color-slider-track.vue.d.ts +1 -2
  261. package/dist/components/color-slider/context.d.ts +2 -0
  262. package/dist/components/color-slider/index.d.ts +4 -4
  263. package/dist/components/color-slider/types.d.ts +1 -1
  264. package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +1 -2
  265. package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +1 -2
  266. package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +1 -2
  267. package/dist/components/color-swatch/color-swatch-root.vue.d.ts +1 -2
  268. package/dist/components/color-swatch/context.d.ts +2 -0
  269. package/dist/components/color-swatch/index.d.ts +4 -4
  270. package/dist/components/color-swatch/types.d.ts +2 -2
  271. package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -1
  272. package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +8 -5
  273. package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.vue.d.ts +1 -2
  274. package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.vue.d.ts +1 -2
  275. package/dist/components/color-swatch-picker/color-swatch-picker-item.vue.d.ts +2 -1
  276. package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +7 -6
  277. package/dist/components/color-swatch-picker/context.d.ts +2 -0
  278. package/dist/components/color-swatch-picker/index.d.ts +5 -5
  279. package/dist/components/color-swatch-picker/types.d.ts +1 -1
  280. package/dist/components/combobox/combobox-arrow.vue.d.ts +2 -1
  281. package/dist/components/combobox/combobox-cancel.vue.d.ts +2 -2
  282. package/dist/components/combobox/combobox-compact.vue.d.ts +8 -5
  283. package/dist/components/combobox/combobox-content-impl.js +1 -1
  284. package/dist/components/combobox/combobox-content.vue.d.ts +2 -1
  285. package/dist/components/combobox/combobox-empty.vue.d.ts +1 -2
  286. package/dist/components/combobox/combobox-group.js +1 -1
  287. package/dist/components/combobox/combobox-group.vue.d.ts +2 -1
  288. package/dist/components/combobox/combobox-input.js +1 -1
  289. package/dist/components/combobox/combobox-input.vue.d.ts +5 -6
  290. package/dist/components/combobox/combobox-item.js +1 -1
  291. package/dist/components/combobox/combobox-item.vue.d.ts +2 -2
  292. package/dist/components/combobox/combobox-root.js +1 -1
  293. package/dist/components/combobox/combobox-root.vue.d.ts +5 -3
  294. package/dist/components/combobox/combobox-separator.vue.d.ts +1 -2
  295. package/dist/components/combobox/combobox-trigger.vue.d.ts +3 -1
  296. package/dist/components/combobox/combobox-viewport.vue.d.ts +1 -2
  297. package/dist/components/combobox/combobox-virtualizer.vue.d.ts +1 -2
  298. package/dist/components/combobox/context.d.ts +2 -1
  299. package/dist/components/combobox/index.d.ts +17 -17
  300. package/dist/components/combobox/shared.js +1 -1
  301. package/dist/components/combobox/types.d.ts +3 -1
  302. package/dist/components/command/command-compact.js +1 -1
  303. package/dist/components/command/command-compact.vue.d.ts +8 -5
  304. package/dist/components/command/context.d.ts +2 -0
  305. package/dist/components/command/context.js +1 -1
  306. package/dist/components/command/index.d.ts +1 -1
  307. package/dist/components/command/types.d.ts +3 -2
  308. package/dist/components/config-provider/config-provider.vue.d.ts +1 -2
  309. package/dist/components/config-provider/index.d.ts +1 -1
  310. package/dist/components/config-provider/types.d.ts +1 -1
  311. package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +8 -5
  312. package/dist/components/context-menu/context-menu-compact.vue.d.ts +8 -5
  313. package/dist/components/context-menu/context-menu-content.js +1 -1
  314. package/dist/components/context-menu/context-menu-content.vue.d.ts +5 -4
  315. package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +9 -6
  316. package/dist/components/context-menu/context-menu-root.vue.d.ts +1 -2
  317. package/dist/components/context-menu/context-menu-trigger.js +1 -1
  318. package/dist/components/context-menu/context-menu-trigger.vue.d.ts +2 -2
  319. package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +4 -3
  320. package/dist/components/context-menu/index.d.ts +23 -22
  321. package/dist/components/context-menu/types.d.ts +2 -1
  322. package/dist/components/date-field/context.d.ts +2 -0
  323. package/dist/components/date-field/date-field-compact.vue.d.ts +1 -2
  324. package/dist/components/date-field/date-field-input.js +1 -1
  325. package/dist/components/date-field/date-field-input.vue.d.ts +2 -2
  326. package/dist/components/date-field/date-field-root.js +1 -1
  327. package/dist/components/date-field/date-field-root.vue.d.ts +4 -4
  328. package/dist/components/date-field/index.d.ts +3 -3
  329. package/dist/components/date-field/types.d.ts +2 -1
  330. package/dist/components/date-picker/context.d.ts +2 -0
  331. package/dist/components/date-picker/date-picker-compact.js +1 -1
  332. package/dist/components/date-picker/date-picker-compact.vue.d.ts +6 -272
  333. package/dist/components/date-picker/index.d.ts +1 -1
  334. package/dist/components/date-picker/types.d.ts +25 -3
  335. package/dist/components/date-range-field/context.d.ts +2 -0
  336. package/dist/components/date-range-field/date-range-field-compact.vue.d.ts +2 -1
  337. package/dist/components/date-range-field/date-range-field-input.js +1 -1
  338. package/dist/components/date-range-field/date-range-field-input.vue.d.ts +2 -2
  339. package/dist/components/date-range-field/date-range-field-root.js +1 -1
  340. package/dist/components/date-range-field/date-range-field-root.vue.d.ts +5 -3
  341. package/dist/components/date-range-field/index.d.ts +3 -3
  342. package/dist/components/date-range-field/types.d.ts +2 -1
  343. package/dist/components/date-range-picker/context.d.ts +2 -0
  344. package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
  345. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +6 -275
  346. package/dist/components/date-range-picker/index.d.ts +1 -1
  347. package/dist/components/date-range-picker/types.d.ts +29 -4
  348. package/dist/components/dialog/context.d.ts +3 -0
  349. package/dist/components/dialog/context.js +1 -1
  350. package/dist/components/dialog/dialog-cancel.vue.d.ts +2 -2
  351. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  352. package/dist/components/dialog/dialog-compact.vue.d.ts +5 -4
  353. package/dist/components/dialog/dialog-confirm.vue.d.ts +2 -2
  354. package/dist/components/dialog/dialog-content.vue.d.ts +1 -2
  355. package/dist/components/dialog/dialog-description.vue.d.ts +1 -2
  356. package/dist/components/dialog/dialog-footer.vue.d.ts +1 -2
  357. package/dist/components/dialog/dialog-header.vue.d.ts +1 -2
  358. package/dist/components/dialog/dialog-overlay.js +1 -1
  359. package/dist/components/dialog/dialog-overlay.vue.d.ts +1 -2
  360. package/dist/components/dialog/dialog-popup-impl.js +1 -1
  361. package/dist/components/dialog/dialog-popup.vue.d.ts +2 -2
  362. package/dist/components/dialog/dialog-provider.vue.d.ts +1 -1
  363. package/dist/components/dialog/dialog-root.js +1 -1
  364. package/dist/components/dialog/dialog-root.vue.d.ts +1 -2
  365. package/dist/components/dialog/dialog-title.vue.d.ts +1 -2
  366. package/dist/components/dialog/dialog-trigger.vue.d.ts +1 -2
  367. package/dist/components/dialog/index.d.ts +15 -15
  368. package/dist/components/dialog/state.d.ts +0 -1
  369. package/dist/components/dialog/state.js +1 -1
  370. package/dist/components/dialog/types.d.ts +12 -7
  371. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +8 -5
  372. package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +8 -5
  373. package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
  374. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +5 -4
  375. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +9 -6
  376. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +2 -3
  377. package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
  378. package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +2 -2
  379. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +4 -3
  380. package/dist/components/dropdown-menu/index.d.ts +23 -22
  381. package/dist/components/dropdown-menu/types.d.ts +2 -1
  382. package/dist/components/editable/context.d.ts +2 -0
  383. package/dist/components/editable/editable-area.vue.d.ts +1 -2
  384. package/dist/components/editable/editable-cancel-trigger.vue.d.ts +1 -2
  385. package/dist/components/editable/editable-compact.vue.d.ts +3 -4
  386. package/dist/components/editable/editable-edit-trigger.vue.d.ts +1 -2
  387. package/dist/components/editable/editable-input.js +1 -1
  388. package/dist/components/editable/editable-input.vue.d.ts +2 -2
  389. package/dist/components/editable/editable-preview.vue.d.ts +2 -2
  390. package/dist/components/editable/editable-root.js +1 -1
  391. package/dist/components/editable/editable-root.vue.d.ts +3 -4
  392. package/dist/components/editable/editable-submit-trigger.vue.d.ts +1 -2
  393. package/dist/components/editable/index.d.ts +8 -8
  394. package/dist/components/editable/types.d.ts +7 -4
  395. package/dist/components/empty/context.d.ts +2 -0
  396. package/dist/components/empty/empty-compact.vue.d.ts +1 -2
  397. package/dist/components/empty/empty-content.vue.d.ts +1 -2
  398. package/dist/components/empty/empty-description.vue.d.ts +1 -2
  399. package/dist/components/empty/empty-header.vue.d.ts +1 -2
  400. package/dist/components/empty/empty-media.vue.d.ts +1 -2
  401. package/dist/components/empty/empty-root.vue.d.ts +1 -2
  402. package/dist/components/empty/empty-title.vue.d.ts +1 -2
  403. package/dist/components/empty/index.d.ts +7 -7
  404. package/dist/components/empty/types.d.ts +1 -1
  405. package/dist/components/form/context.d.ts +2 -0
  406. package/dist/components/form/core/shared.js +1 -1
  407. package/dist/components/form/core/types.d.ts +20 -20
  408. package/dist/components/form/core/use-field-array.js +1 -1
  409. package/dist/components/form/core/use-form-state.js +1 -1
  410. package/dist/components/form/form-compact.vue.d.ts +2 -1
  411. package/dist/components/form/form-control.vue.d.ts +1 -2
  412. package/dist/components/form/form-description.vue.d.ts +1 -2
  413. package/dist/components/form/form-error.vue.d.ts +1 -2
  414. package/dist/components/form/form-field-array-compact.js +1 -1
  415. package/dist/components/form/form-field-array-compact.vue.d.ts +1 -2
  416. package/dist/components/form/form-field-base-compact.js +1 -1
  417. package/dist/components/form/form-field-base-compact.vue.d.ts +5 -6
  418. package/dist/components/form/form-field-compact.js +1 -1
  419. package/dist/components/form/form-field-compact.vue.d.ts +1 -2
  420. package/dist/components/form/form-field.js +1 -1
  421. package/dist/components/form/form-field.vue.d.ts +1 -2
  422. package/dist/components/form/form-label.vue.d.ts +1 -2
  423. package/dist/components/form/index.d.ts +9 -9
  424. package/dist/components/form/types.d.ts +2 -2
  425. package/dist/components/form/use-form.d.ts +0 -1
  426. package/dist/components/hover-card/hover-card-compact.vue.d.ts +2 -1
  427. package/dist/components/hover-card/hover-card-popup.vue.d.ts +1 -2
  428. package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
  429. package/dist/components/hover-card/hover-card-positioner.vue.d.ts +2 -1
  430. package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -2
  431. package/dist/components/hover-card/hover-card-trigger.vue.d.ts +3 -1
  432. package/dist/components/hover-card/index.d.ts +8 -8
  433. package/dist/components/hover-card/types.d.ts +2 -2
  434. package/dist/components/input/context.d.ts +2 -0
  435. package/dist/components/input/index.d.ts +4 -4
  436. package/dist/components/input/input-clear.js +1 -1
  437. package/dist/components/input/input-clear.vue.d.ts +1 -2
  438. package/dist/components/input/input-compact.js +1 -1
  439. package/dist/components/input/input-compact.vue.d.ts +1 -2
  440. package/dist/components/input/input-control.vue.d.ts +1 -2
  441. package/dist/components/input/input-root.vue.d.ts +1 -2
  442. package/dist/components/input/types.d.ts +6 -3
  443. package/dist/components/input-number/context.d.ts +2 -0
  444. package/dist/components/input-number/index.d.ts +5 -5
  445. package/dist/components/input-number/input-number-clear.js +1 -1
  446. package/dist/components/input-number/input-number-compact.js +1 -1
  447. package/dist/components/input-number/input-number-compact.vue.d.ts +1 -2
  448. package/dist/components/input-number/input-number-control.js +1 -1
  449. package/dist/components/input-number/input-number-control.vue.d.ts +1 -2
  450. package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -2
  451. package/dist/components/input-number/input-number-increment.vue.d.ts +1 -2
  452. package/dist/components/input-number/input-number-root.js +1 -1
  453. package/dist/components/input-number/input-number-root.vue.d.ts +1 -2
  454. package/dist/components/input-number/shared.js +1 -1
  455. package/dist/components/input-number/types.d.ts +2 -2
  456. package/dist/components/input-otp/context.d.ts +2 -0
  457. package/dist/components/input-otp/index.d.ts +4 -4
  458. package/dist/components/input-otp/input-otp-compact.js +1 -1
  459. package/dist/components/input-otp/input-otp-compact.vue.d.ts +3 -4
  460. package/dist/components/input-otp/input-otp-input.vue.d.ts +1 -2
  461. package/dist/components/input-otp/input-otp-positioner.vue.d.ts +1 -2
  462. package/dist/components/input-otp/input-otp-root.js +1 -1
  463. package/dist/components/input-otp/input-otp-root.vue.d.ts +3 -4
  464. package/dist/components/input-otp/shared.js +1 -1
  465. package/dist/components/input-otp/types.d.ts +2 -2
  466. package/dist/components/input-otp/use-password-manager-badge.js +1 -1
  467. package/dist/components/kbd/index.d.ts +1 -1
  468. package/dist/components/kbd/kbd.vue.d.ts +1 -2
  469. package/dist/components/kbd/types.d.ts +1 -0
  470. package/dist/components/label/index.d.ts +1 -1
  471. package/dist/components/label/label.vue.d.ts +1 -2
  472. package/dist/components/label/types.d.ts +1 -0
  473. package/dist/components/layout/context.d.ts +4 -3
  474. package/dist/components/layout/context.js +1 -1
  475. package/dist/components/layout/index.d.ts +14 -15
  476. package/dist/components/layout/index.js +1 -1
  477. package/dist/components/layout/layout-compact.js +1 -1
  478. package/dist/components/layout/layout-compact.vue.d.ts +2 -2
  479. package/dist/components/layout/layout-content.vue.d.ts +1 -2
  480. package/dist/components/layout/layout-footer.vue.d.ts +1 -2
  481. package/dist/components/layout/layout-header.vue.d.ts +1 -2
  482. package/dist/components/layout/layout-main.vue.d.ts +1 -2
  483. package/dist/components/layout/layout-mobile.vue.d.ts +1 -2
  484. package/dist/components/layout/layout-placeholder.js +1 -0
  485. package/dist/components/layout/layout-rail.js +1 -1
  486. package/dist/components/layout/layout-rail.vue.d.ts +1 -2
  487. package/dist/components/layout/layout-root.js +1 -1
  488. package/dist/components/layout/layout-root.vue.d.ts +9 -4
  489. package/dist/components/layout/layout-sidebar.vue.d.ts +1 -2
  490. package/dist/components/layout/layout-tab.vue.d.ts +1 -2
  491. package/dist/components/layout/layout-trigger.js +1 -1
  492. package/dist/components/layout/layout-trigger.vue.d.ts +1 -2
  493. package/dist/components/layout/shared.js +1 -1
  494. package/dist/components/layout/types.d.ts +44 -70
  495. package/dist/components/link/index.d.ts +1 -1
  496. package/dist/components/link/link.js +1 -1
  497. package/dist/components/link/link.vue.d.ts +2 -1
  498. package/dist/components/link/types.d.ts +1 -2
  499. package/dist/components/list/context.d.ts +2 -0
  500. package/dist/components/list/index.d.ts +5 -5
  501. package/dist/components/list/list-content.vue.d.ts +1 -2
  502. package/dist/components/list/list-description.vue.d.ts +1 -2
  503. package/dist/components/list/list-item.vue.d.ts +1 -2
  504. package/dist/components/list/list-root.vue.d.ts +1 -2
  505. package/dist/components/list/list-title.vue.d.ts +1 -2
  506. package/dist/components/list/types.d.ts +1 -0
  507. package/dist/components/listbox/context.d.ts +3 -0
  508. package/dist/components/listbox/context.js +1 -1
  509. package/dist/components/listbox/index.d.ts +8 -8
  510. package/dist/components/listbox/listbox-content.vue.d.ts +1 -2
  511. package/dist/components/listbox/listbox-filter.vue.d.ts +5 -6
  512. package/dist/components/listbox/listbox-group-label.vue.d.ts +1 -2
  513. package/dist/components/listbox/listbox-group.vue.d.ts +1 -2
  514. package/dist/components/listbox/listbox-item-indicator.vue.d.ts +2 -2
  515. package/dist/components/listbox/listbox-item.js +1 -1
  516. package/dist/components/listbox/listbox-item.vue.d.ts +2 -2
  517. package/dist/components/listbox/listbox-root.js +1 -1
  518. package/dist/components/listbox/listbox-root.vue.d.ts +6 -6
  519. package/dist/components/listbox/listbox-virtualizer.js +1 -1
  520. package/dist/components/listbox/listbox-virtualizer.vue.d.ts +1 -2
  521. package/dist/components/listbox/shared.js +1 -1
  522. package/dist/components/listbox/types.d.ts +10 -5
  523. package/dist/components/menu/context.d.ts +4 -1
  524. package/dist/components/menu/context.js +1 -1
  525. package/dist/components/menu/index.d.ts +23 -23
  526. package/dist/components/menu/index.js +1 -1
  527. package/dist/components/menu/menu-checkbox-group.js +1 -1
  528. package/dist/components/menu/menu-checkbox-group.vue.d.ts +4 -4
  529. package/dist/components/menu/menu-checkbox-item.js +1 -1
  530. package/dist/components/menu/menu-checkbox-item.vue.d.ts +2 -2
  531. package/dist/components/menu/menu-checkbox-options-compact.js +1 -1
  532. package/dist/components/menu/menu-checkbox-options-compact.vue.d.ts +4 -4
  533. package/dist/components/menu/menu-content-impl.js +1 -1
  534. package/dist/components/menu/menu-content.vue.d.ts +5 -3
  535. package/dist/components/menu/menu-group-label.vue.d.ts +1 -2
  536. package/dist/components/menu/menu-group.vue.d.ts +1 -2
  537. package/dist/components/menu/menu-item-impl.js +1 -1
  538. package/dist/components/menu/menu-item-indicator.vue.d.ts +2 -2
  539. package/dist/components/menu/menu-item.js +1 -1
  540. package/dist/components/menu/menu-item.vue.d.ts +1 -2
  541. package/dist/components/menu/menu-option-compact.js +1 -1
  542. package/dist/components/menu/menu-option-compact.vue.d.ts +7 -5
  543. package/dist/components/menu/menu-options-compact.vue.d.ts +7 -5
  544. package/dist/components/menu/menu-radio-group.js +1 -1
  545. package/dist/components/menu/menu-radio-group.vue.d.ts +7 -7
  546. package/dist/components/menu/menu-radio-item.js +1 -1
  547. package/dist/components/menu/menu-radio-item.vue.d.ts +1 -2
  548. package/dist/components/menu/menu-radio-options-compact.js +1 -1
  549. package/dist/components/menu/menu-radio-options-compact.vue.d.ts +6 -6
  550. package/dist/components/menu/menu-root.vue.d.ts +1 -2
  551. package/dist/components/menu/menu-sub-content.vue.d.ts +5 -3
  552. package/dist/components/menu/menu-sub-trigger.js +1 -1
  553. package/dist/components/menu/menu-sub-trigger.vue.d.ts +1 -2
  554. package/dist/components/menu/menu-sub.vue.d.ts +1 -2
  555. package/dist/components/menu/shared.js +1 -1
  556. package/dist/components/menu/types.d.ts +11 -8
  557. package/dist/components/menubar/context.d.ts +3 -0
  558. package/dist/components/menubar/context.js +1 -1
  559. package/dist/components/menubar/index.d.ts +22 -21
  560. package/dist/components/menubar/menubar-compact.js +1 -1
  561. package/dist/components/menubar/menubar-compact.vue.d.ts +8 -5
  562. package/dist/components/menubar/menubar-content.js +1 -1
  563. package/dist/components/menubar/menubar-content.vue.d.ts +9 -5
  564. package/dist/components/menubar/menubar-menu.vue.d.ts +2 -1
  565. package/dist/components/menubar/menubar-menus.js +1 -0
  566. package/dist/components/menubar/menubar-root.js +1 -1
  567. package/dist/components/menubar/menubar-root.vue.d.ts +6 -2
  568. package/dist/components/menubar/menubar-sub-content.vue.d.ts +4 -3
  569. package/dist/components/menubar/menubar-sub-trigger.vue.d.ts +1 -2
  570. package/dist/components/menubar/menubar-trigger.js +1 -1
  571. package/dist/components/menubar/menubar-trigger.vue.d.ts +3 -4
  572. package/dist/components/menubar/types.d.ts +60 -3
  573. package/dist/components/navigation-menu/context.d.ts +2 -0
  574. package/dist/components/navigation-menu/context.js +1 -1
  575. package/dist/components/navigation-menu/index.d.ts +10 -10
  576. package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +2 -1
  577. package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
  578. package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
  579. package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +2 -1
  580. package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +1 -2
  581. package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +1 -2
  582. package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
  583. package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +1 -2
  584. package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +1 -2
  585. package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -1
  586. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +2 -1
  587. package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
  588. package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +1 -2
  589. package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -1
  590. package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
  591. package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +2 -2
  592. package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
  593. package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +2 -1
  594. package/dist/components/navigation-menu/shared.js +1 -1
  595. package/dist/components/navigation-menu/types.d.ts +4 -4
  596. package/dist/components/page-tabs/context.d.ts +2 -0
  597. package/dist/components/page-tabs/hooks.js +1 -1
  598. package/dist/components/page-tabs/index.d.ts +7 -7
  599. package/dist/components/page-tabs/page-tabs-close.js +1 -1
  600. package/dist/components/page-tabs/page-tabs-close.vue.d.ts +1 -2
  601. package/dist/components/page-tabs/page-tabs-compact.js +1 -1
  602. package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +9 -6
  603. package/dist/components/page-tabs/page-tabs-item.js +1 -1
  604. package/dist/components/page-tabs/page-tabs-item.vue.d.ts +12 -3
  605. package/dist/components/page-tabs/page-tabs-pin.js +1 -1
  606. package/dist/components/page-tabs/page-tabs-pin.vue.d.ts +1 -2
  607. package/dist/components/page-tabs/page-tabs-root.js +1 -1
  608. package/dist/components/page-tabs/page-tabs-root.vue.d.ts +2 -2
  609. package/dist/components/page-tabs/types.d.ts +65 -2
  610. package/dist/components/pagination/context.d.ts +2 -0
  611. package/dist/components/pagination/index.d.ts +9 -9
  612. package/dist/components/pagination/pagination-compact.vue.d.ts +1 -2
  613. package/dist/components/pagination/pagination-ellipsis.vue.d.ts +1 -2
  614. package/dist/components/pagination/pagination-first.vue.d.ts +1 -2
  615. package/dist/components/pagination/pagination-last.vue.d.ts +1 -2
  616. package/dist/components/pagination/pagination-list-item.js +1 -1
  617. package/dist/components/pagination/pagination-list-item.vue.d.ts +1 -2
  618. package/dist/components/pagination/pagination-list.vue.d.ts +1 -2
  619. package/dist/components/pagination/pagination-next.vue.d.ts +1 -2
  620. package/dist/components/pagination/pagination-prev.vue.d.ts +1 -2
  621. package/dist/components/pagination/pagination-root.vue.d.ts +1 -2
  622. package/dist/components/pagination/shared.js +1 -1
  623. package/dist/components/pagination/types.d.ts +5 -3
  624. package/dist/components/password/context.d.ts +2 -0
  625. package/dist/components/password/index.d.ts +1 -1
  626. package/dist/components/password/password-compact.js +1 -1
  627. package/dist/components/password/password-compact.vue.d.ts +2 -2
  628. package/dist/components/password/types.d.ts +7 -1
  629. package/dist/components/popconfirm/context.d.ts +2 -0
  630. package/dist/components/popconfirm/index.d.ts +15 -15
  631. package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +1 -2
  632. package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +2 -1
  633. package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +1 -2
  634. package/dist/components/popconfirm/popconfirm-content.vue.d.ts +1 -2
  635. package/dist/components/popconfirm/popconfirm-description.vue.d.ts +1 -2
  636. package/dist/components/popconfirm/popconfirm-footer.vue.d.ts +1 -2
  637. package/dist/components/popconfirm/popconfirm-header.vue.d.ts +1 -2
  638. package/dist/components/popconfirm/popconfirm-title.vue.d.ts +1 -2
  639. package/dist/components/popconfirm/types.d.ts +2 -2
  640. package/dist/components/popover/context.d.ts +3 -0
  641. package/dist/components/popover/index.d.ts +9 -9
  642. package/dist/components/popover/popover-anchor.vue.d.ts +2 -1
  643. package/dist/components/popover/popover-close.vue.d.ts +1 -2
  644. package/dist/components/popover/popover-compact.vue.d.ts +2 -1
  645. package/dist/components/popover/popover-popup.vue.d.ts +1 -2
  646. package/dist/components/popover/popover-positioner-impl.js +1 -1
  647. package/dist/components/popover/popover-positioner.vue.d.ts +2 -1
  648. package/dist/components/popover/popover-root.vue.d.ts +1 -2
  649. package/dist/components/popover/popover-trigger.vue.d.ts +2 -2
  650. package/dist/components/popover/types.d.ts +2 -2
  651. package/dist/components/popper/context.d.ts +2 -1
  652. package/dist/components/popper/index.d.ts +5 -5
  653. package/dist/components/popper/popper-anchor.vue.d.ts +1 -2
  654. package/dist/components/popper/popper-arrow.vue.d.ts +1 -2
  655. package/dist/components/popper/popper-popup.vue.d.ts +1 -2
  656. package/dist/components/popper/popper-positioner.js +1 -1
  657. package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
  658. package/dist/components/popper/popper-root.js +1 -1
  659. package/dist/components/popper/popper-root.vue.d.ts +1 -2
  660. package/dist/components/popper/shared.js +1 -1
  661. package/dist/components/popper/types.d.ts +1 -1
  662. package/dist/components/portal/index.d.ts +1 -1
  663. package/dist/components/portal/portal.vue.d.ts +1 -2
  664. package/dist/components/portal/types.d.ts +1 -0
  665. package/dist/components/primitive/primitive.d.ts +0 -1
  666. package/dist/components/primitive/types.d.ts +1 -1
  667. package/dist/components/progress/context.d.ts +2 -0
  668. package/dist/components/progress/index.d.ts +6 -6
  669. package/dist/components/progress/progress-circle-compact.vue.d.ts +1 -2
  670. package/dist/components/progress/progress-circle-svg.vue.d.ts +1 -2
  671. package/dist/components/progress/progress-compact.vue.d.ts +1 -2
  672. package/dist/components/progress/progress-indicator.vue.d.ts +1 -2
  673. package/dist/components/progress/progress-provider.vue.d.ts +1 -2
  674. package/dist/components/progress/progress-root.js +1 -1
  675. package/dist/components/progress/progress-root.vue.d.ts +1 -2
  676. package/dist/components/progress/state.d.ts +0 -1
  677. package/dist/components/progress/state.js +1 -1
  678. package/dist/components/progress/types.d.ts +1 -1
  679. package/dist/components/radio-group/context.d.ts +3 -0
  680. package/dist/components/radio-group/index.d.ts +7 -7
  681. package/dist/components/radio-group/radio-group-card-compact.js +1 -1
  682. package/dist/components/radio-group/radio-group-card-compact.vue.d.ts +3 -4
  683. package/dist/components/radio-group/radio-group-compact.vue.d.ts +3 -4
  684. package/dist/components/radio-group/radio-group-control.js +1 -1
  685. package/dist/components/radio-group/radio-group-control.vue.d.ts +3 -4
  686. package/dist/components/radio-group/radio-group-indicator.vue.d.ts +2 -2
  687. package/dist/components/radio-group/radio-group-item.vue.d.ts +1 -2
  688. package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -1
  689. package/dist/components/radio-group/radio-group-root.vue.d.ts +4 -4
  690. package/dist/components/radio-group/types.d.ts +7 -5
  691. package/dist/components/rating/context.js +1 -0
  692. package/dist/components/rating/index.d.ts +4 -0
  693. package/dist/components/rating/index.js +1 -0
  694. package/dist/components/rating/rating-item.js +1 -0
  695. package/dist/components/rating/rating-item.vue.d.ts +20 -0
  696. package/dist/components/rating/rating-root.js +1 -0
  697. package/dist/components/rating/rating-root.vue.d.ts +39 -0
  698. package/dist/components/rating/shared.js +1 -0
  699. package/dist/components/rating/types.d.ts +77 -0
  700. package/dist/components/roving-focus/context.js +1 -1
  701. package/dist/components/roving-focus/index.d.ts +2 -2
  702. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +3 -1
  703. package/dist/components/roving-focus/roving-focus-item.vue.d.ts +1 -2
  704. package/dist/components/roving-focus/types.d.ts +1 -1
  705. package/dist/components/scroll-area/context.d.ts +2 -0
  706. package/dist/components/scroll-area/index.d.ts +6 -6
  707. package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +1 -2
  708. package/dist/components/scroll-area/scroll-area-corner.js +1 -1
  709. package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -2
  710. package/dist/components/scroll-area/scroll-area-root.js +1 -1
  711. package/dist/components/scroll-area/scroll-area-root.vue.d.ts +1 -2
  712. package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
  713. package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +1 -2
  714. package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
  715. package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -2
  716. package/dist/components/scroll-area/scroll-area-viewport.vue.d.ts +1 -2
  717. package/dist/components/scroll-area/shared.js +1 -1
  718. package/dist/components/scroll-area/types.d.ts +1 -1
  719. package/dist/components/segment/index.d.ts +6 -5
  720. package/dist/components/segment/segment-compact.vue.d.ts +3 -4
  721. package/dist/components/segment/types.d.ts +2 -2
  722. package/dist/components/select/context.d.ts +3 -0
  723. package/dist/components/select/context.js +1 -1
  724. package/dist/components/select/index.d.ts +17 -17
  725. package/dist/components/select/select-arrow.vue.d.ts +2 -1
  726. package/dist/components/select/select-compact.js +1 -1
  727. package/dist/components/select/select-compact.vue.d.ts +5 -3
  728. package/dist/components/select/select-content-impl.js +1 -1
  729. package/dist/components/select/select-content.js +1 -1
  730. package/dist/components/select/select-content.vue.d.ts +2 -1
  731. package/dist/components/select/select-group-label.vue.d.ts +1 -2
  732. package/dist/components/select/select-group.vue.d.ts +1 -2
  733. package/dist/components/select/select-item-indicator.vue.d.ts +2 -2
  734. package/dist/components/select/select-item-text.vue.d.ts +1 -2
  735. package/dist/components/select/select-item.js +1 -1
  736. package/dist/components/select/select-item.vue.d.ts +2 -2
  737. package/dist/components/select/select-root.js +1 -1
  738. package/dist/components/select/select-root.vue.d.ts +4 -4
  739. package/dist/components/select/select-scroll-down-button.vue.d.ts +1 -2
  740. package/dist/components/select/select-scroll-up-button.vue.d.ts +1 -2
  741. package/dist/components/select/select-separator.vue.d.ts +1 -2
  742. package/dist/components/select/select-trigger-icon.vue.d.ts +1 -2
  743. package/dist/components/select/select-trigger.vue.d.ts +2 -2
  744. package/dist/components/select/select-value.vue.d.ts +2 -1
  745. package/dist/components/select/select-viewport.vue.d.ts +1 -2
  746. package/dist/components/select/types.d.ts +26 -6
  747. package/dist/components/separator/context.d.ts +2 -0
  748. package/dist/components/separator/index.d.ts +3 -3
  749. package/dist/components/separator/separator-compact.vue.d.ts +1 -2
  750. package/dist/components/separator/separator-label.vue.d.ts +1 -2
  751. package/dist/components/separator/separator-root.js +1 -1
  752. package/dist/components/separator/separator-root.vue.d.ts +2 -2
  753. package/dist/components/separator/types.d.ts +2 -1
  754. package/dist/components/skeleton/index.d.ts +1 -1
  755. package/dist/components/skeleton/skeleton.vue.d.ts +1 -2
  756. package/dist/components/skeleton/types.d.ts +0 -1
  757. package/dist/components/slider/context.d.ts +2 -0
  758. package/dist/components/slider/index.d.ts +5 -5
  759. package/dist/components/slider/shared.js +1 -1
  760. package/dist/components/slider/slider-compact.js +1 -1
  761. package/dist/components/slider/slider-compact.vue.d.ts +1 -2
  762. package/dist/components/slider/slider-range.vue.d.ts +1 -2
  763. package/dist/components/slider/slider-root.js +1 -1
  764. package/dist/components/slider/slider-root.vue.d.ts +3 -2
  765. package/dist/components/slider/slider-thumb.vue.d.ts +1 -2
  766. package/dist/components/slider/slider-track.vue.d.ts +1 -2
  767. package/dist/components/slider/types.d.ts +4 -2
  768. package/dist/components/splitter/context.d.ts +2 -0
  769. package/dist/components/splitter/index.d.ts +3 -3
  770. package/dist/components/splitter/shared.js +1 -1
  771. package/dist/components/splitter/splitter-group.js +1 -1
  772. package/dist/components/splitter/splitter-group.vue.d.ts +2 -1
  773. package/dist/components/splitter/splitter-panel.vue.d.ts +1 -2
  774. package/dist/components/splitter/splitter-resize-handle.js +1 -1
  775. package/dist/components/splitter/splitter-resize-handle.vue.d.ts +2 -3
  776. package/dist/components/splitter/types.d.ts +2 -2
  777. package/dist/components/stepper/context.d.ts +2 -0
  778. package/dist/components/stepper/index.d.ts +8 -8
  779. package/dist/components/stepper/stepper-compact.js +1 -1
  780. package/dist/components/stepper/stepper-compact.vue.d.ts +1 -2
  781. package/dist/components/stepper/stepper-description.vue.d.ts +2 -2
  782. package/dist/components/stepper/stepper-indicator.vue.d.ts +2 -2
  783. package/dist/components/stepper/stepper-item.js +1 -1
  784. package/dist/components/stepper/stepper-item.vue.d.ts +1 -2
  785. package/dist/components/stepper/stepper-root.js +1 -1
  786. package/dist/components/stepper/stepper-root.vue.d.ts +2 -1
  787. package/dist/components/stepper/stepper-separator.vue.d.ts +2 -1
  788. package/dist/components/stepper/stepper-title.vue.d.ts +2 -2
  789. package/dist/components/stepper/stepper-trigger.vue.d.ts +2 -2
  790. package/dist/components/stepper/types.d.ts +3 -3
  791. package/dist/components/switch/context.d.ts +3 -0
  792. package/dist/components/switch/index.d.ts +4 -4
  793. package/dist/components/switch/switch-compact.js +1 -1
  794. package/dist/components/switch/switch-compact.vue.d.ts +4 -4
  795. package/dist/components/switch/switch-control.vue.d.ts +2 -1
  796. package/dist/components/switch/switch-root.js +1 -1
  797. package/dist/components/switch/switch-root.vue.d.ts +5 -5
  798. package/dist/components/switch/switch-thumb.vue.d.ts +2 -2
  799. package/dist/components/switch/types.d.ts +4 -3
  800. package/dist/components/table/context.d.ts +2 -0
  801. package/dist/components/table/hooks.js +1 -1
  802. package/dist/components/table/index.d.ts +10 -10
  803. package/dist/components/table/shared.d.ts +2 -1
  804. package/dist/components/table/shared.js +1 -1
  805. package/dist/components/table/table-body.vue.d.ts +1 -2
  806. package/dist/components/table/table-cell.vue.d.ts +1 -2
  807. package/dist/components/table/table-compact-cell.js +1 -1
  808. package/dist/components/table/table-compact-head.js +1 -1
  809. package/dist/components/table/table-compact.js +1 -1
  810. package/dist/components/table/table-compact.vue.d.ts +3 -4
  811. package/dist/components/table/table-content.vue.d.ts +1 -2
  812. package/dist/components/table/table-footer.vue.d.ts +1 -2
  813. package/dist/components/table/table-head.vue.d.ts +1 -2
  814. package/dist/components/table/table-header.vue.d.ts +1 -2
  815. package/dist/components/table/table-root.vue.d.ts +1 -2
  816. package/dist/components/table/table-row.vue.d.ts +1 -2
  817. package/dist/components/table/table-scroll.vue.d.ts +1 -2
  818. package/dist/components/table/types.d.ts +3 -3
  819. package/dist/components/tabs/context.d.ts +3 -1
  820. package/dist/components/tabs/index.d.ts +6 -6
  821. package/dist/components/tabs/tabs-compact.vue.d.ts +3 -4
  822. package/dist/components/tabs/tabs-content.js +1 -1
  823. package/dist/components/tabs/tabs-content.vue.d.ts +1 -2
  824. package/dist/components/tabs/tabs-indicator.js +1 -1
  825. package/dist/components/tabs/tabs-indicator.vue.d.ts +1 -2
  826. package/dist/components/tabs/tabs-list.vue.d.ts +1 -2
  827. package/dist/components/tabs/tabs-root.vue.d.ts +2 -1
  828. package/dist/components/tabs/tabs-trigger.js +1 -1
  829. package/dist/components/tabs/tabs-trigger.vue.d.ts +2 -2
  830. package/dist/components/tabs/types.d.ts +3 -2
  831. package/dist/components/tag/index.d.ts +1 -1
  832. package/dist/components/tag/tag.js +1 -1
  833. package/dist/components/tag/tag.vue.d.ts +1 -2
  834. package/dist/components/tag/types.d.ts +1 -0
  835. package/dist/components/tags-input/context.d.ts +2 -0
  836. package/dist/components/tags-input/index.d.ts +7 -7
  837. package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -2
  838. package/dist/components/tags-input/tags-input-compact.js +1 -1
  839. package/dist/components/tags-input/tags-input-compact.vue.d.ts +6 -5
  840. package/dist/components/tags-input/tags-input-control.js +1 -1
  841. package/dist/components/tags-input/tags-input-control.vue.d.ts +1 -2
  842. package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -2
  843. package/dist/components/tags-input/tags-input-item-text.js +1 -1
  844. package/dist/components/tags-input/tags-input-item-text.vue.d.ts +1 -2
  845. package/dist/components/tags-input/tags-input-item.js +1 -1
  846. package/dist/components/tags-input/tags-input-item.vue.d.ts +1 -2
  847. package/dist/components/tags-input/tags-input-root.js +1 -1
  848. package/dist/components/tags-input/tags-input-root.vue.d.ts +3 -4
  849. package/dist/components/tags-input/types.d.ts +4 -2
  850. package/dist/components/textarea/context.d.ts +2 -0
  851. package/dist/components/textarea/index.d.ts +5 -5
  852. package/dist/components/textarea/shared.js +1 -1
  853. package/dist/components/textarea/textarea-clear.vue.d.ts +1 -2
  854. package/dist/components/textarea/textarea-compact.js +1 -1
  855. package/dist/components/textarea/textarea-compact.vue.d.ts +1 -2
  856. package/dist/components/textarea/textarea-control.js +1 -1
  857. package/dist/components/textarea/textarea-control.vue.d.ts +1 -2
  858. package/dist/components/textarea/textarea-counter.vue.d.ts +1 -2
  859. package/dist/components/textarea/textarea-root.vue.d.ts +1 -2
  860. package/dist/components/textarea/types.d.ts +2 -2
  861. package/dist/components/time-field/context.d.ts +2 -0
  862. package/dist/components/time-field/index.d.ts +5 -5
  863. package/dist/components/time-field/time-field-compact.js +1 -1
  864. package/dist/components/time-field/time-field-compact.vue.d.ts +10 -4
  865. package/dist/components/time-field/time-field-input.js +1 -1
  866. package/dist/components/time-field/time-field-input.vue.d.ts +3 -1
  867. package/dist/components/time-field/time-field-root.js +1 -1
  868. package/dist/components/time-field/time-field-root.vue.d.ts +4 -4
  869. package/dist/components/time-field/types.d.ts +16 -2
  870. package/dist/components/time-range-field/context.d.ts +2 -0
  871. package/dist/components/time-range-field/index.d.ts +3 -3
  872. package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +3 -2
  873. package/dist/components/time-range-field/time-range-field-input.js +1 -1
  874. package/dist/components/time-range-field/time-range-field-input.vue.d.ts +2 -2
  875. package/dist/components/time-range-field/time-range-field-root.js +1 -1
  876. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +6 -5
  877. package/dist/components/time-range-field/types.d.ts +2 -1
  878. package/dist/components/toast/context.d.ts +2 -0
  879. package/dist/components/toast/hooks.js +1 -1
  880. package/dist/components/toast/index.d.ts +2 -2
  881. package/dist/components/toast/state.d.ts +0 -1
  882. package/dist/components/toast/state.js +1 -1
  883. package/dist/components/toast/toast-provider.vue.d.ts +1 -2
  884. package/dist/components/toast/toast.js +1 -1
  885. package/dist/components/toast/toaster.js +1 -1
  886. package/dist/components/toast/toaster.vue.d.ts +3 -4
  887. package/dist/components/toast/types.d.ts +2 -2
  888. package/dist/components/toggle/index.d.ts +1 -1
  889. package/dist/components/toggle/toggle.vue.d.ts +1 -2
  890. package/dist/components/toggle/types.d.ts +0 -1
  891. package/dist/components/toggle-group/context.d.ts +2 -0
  892. package/dist/components/toggle-group/index.d.ts +2 -2
  893. package/dist/components/toggle-group/toggle-group-item.js +1 -1
  894. package/dist/components/toggle-group/toggle-group-item.vue.d.ts +4 -4
  895. package/dist/components/toggle-group/toggle-group-root.vue.d.ts +4 -4
  896. package/dist/components/toggle-group/types.d.ts +1 -1
  897. package/dist/components/toolbar/context.d.ts +2 -0
  898. package/dist/components/toolbar/index.d.ts +6 -6
  899. package/dist/components/toolbar/toolbar-button.vue.d.ts +1 -2
  900. package/dist/components/toolbar/toolbar-link.vue.d.ts +1 -2
  901. package/dist/components/toolbar/toolbar-root.vue.d.ts +2 -1
  902. package/dist/components/toolbar/toolbar-separator.vue.d.ts +1 -2
  903. package/dist/components/toolbar/toolbar-toggle-group.vue.d.ts +4 -4
  904. package/dist/components/toolbar/toolbar-toggle-item.vue.d.ts +4 -4
  905. package/dist/components/toolbar/types.d.ts +1 -1
  906. package/dist/components/tooltip/index.d.ts +8 -8
  907. package/dist/components/tooltip/tooltip-compact.vue.d.ts +2 -1
  908. package/dist/components/tooltip/tooltip-popup.vue.d.ts +1 -2
  909. package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
  910. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +2 -1
  911. package/dist/components/tooltip/tooltip-root.js +1 -1
  912. package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -2
  913. package/dist/components/tooltip/tooltip-trigger.vue.d.ts +3 -1
  914. package/dist/components/tooltip/types.d.ts +2 -2
  915. package/dist/components/tree/hooks.js +1 -1
  916. package/dist/components/tree/index.d.ts +4 -4
  917. package/dist/components/tree/tree-item.js +1 -1
  918. package/dist/components/tree/tree-item.vue.d.ts +3 -2
  919. package/dist/components/tree/tree-root.js +1 -1
  920. package/dist/components/tree/tree-root.vue.d.ts +6 -6
  921. package/dist/components/tree/tree-virtualizer-item.vue.d.ts +2 -1
  922. package/dist/components/tree/tree-virtualizer-root.js +1 -1
  923. package/dist/components/tree/tree-virtualizer-root.vue.d.ts +648 -9
  924. package/dist/components/tree/types.d.ts +10 -3
  925. package/dist/components/tree-menu/context.d.ts +21 -17
  926. package/dist/components/tree-menu/context.js +1 -1
  927. package/dist/components/tree-menu/index.d.ts +14 -14
  928. package/dist/components/tree-menu/shared.js +1 -1
  929. package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -2
  930. package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +1 -2
  931. package/dist/components/tree-menu/tree-menu-compact.js +1 -1
  932. package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +3 -4
  933. package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +1 -2
  934. package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +1 -2
  935. package/dist/components/tree-menu/tree-menu-group.vue.d.ts +2 -2
  936. package/dist/components/tree-menu/tree-menu-item.vue.d.ts +2 -2
  937. package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
  938. package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +2 -2
  939. package/dist/components/tree-menu/tree-menu-options-compact.js +1 -1
  940. package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +3 -4
  941. package/dist/components/tree-menu/tree-menu-root.js +1 -1
  942. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
  943. package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -1
  944. package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +8 -9
  945. package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +2 -2
  946. package/dist/components/tree-menu/tree-menu-tooltip-compact.js +1 -1
  947. package/dist/components/tree-menu/types.d.ts +22 -5
  948. package/dist/components/virtualizer/index.d.ts +3 -3
  949. package/dist/components/virtualizer/types.d.ts +1 -1
  950. package/dist/components/virtualizer/virtualizer-content.js +1 -1
  951. package/dist/components/virtualizer/virtualizer-content.vue.d.ts +1 -2
  952. package/dist/components/virtualizer/virtualizer-item.vue.d.ts +1 -2
  953. package/dist/components/virtualizer/virtualizer-root.js +1 -1
  954. package/dist/components/virtualizer/virtualizer-root.vue.d.ts +4 -4
  955. package/dist/components/visually-hidden/index.d.ts +2 -2
  956. package/dist/components/visually-hidden/types.d.ts +0 -1
  957. package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
  958. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +2 -3
  959. package/dist/components/visually-hidden/visually-hidden.vue.d.ts +2 -2
  960. package/dist/components/watermark/context.d.ts +2 -0
  961. package/dist/components/watermark/index.d.ts +3 -3
  962. package/dist/components/watermark/shared.js +1 -1
  963. package/dist/components/watermark/types.d.ts +1 -1
  964. package/dist/components/watermark/watermark-compact.vue.d.ts +1 -2
  965. package/dist/components/watermark/watermark-overlay.vue.d.ts +1 -2
  966. package/dist/components/watermark/watermark-root.js +1 -1
  967. package/dist/components/watermark/watermark-root.vue.d.ts +1 -2
  968. package/dist/composables/use-arrow-navigation.d.ts +1 -0
  969. package/dist/composables/use-arrow-navigation.js +1 -1
  970. package/dist/composables/use-bool-prop.js +1 -1
  971. package/dist/composables/use-collection.d.ts +1 -1
  972. package/dist/composables/use-collection.js +1 -1
  973. package/dist/composables/use-controllable-state.d.ts +0 -1
  974. package/dist/composables/use-dismissable-layer.d.ts +4 -1
  975. package/dist/composables/use-dismissable-layer.js +1 -1
  976. package/dist/composables/use-escape-key-down.d.ts +0 -1
  977. package/dist/composables/use-exposed-element.d.ts +1 -0
  978. package/dist/composables/use-floating.d.ts +0 -1
  979. package/dist/composables/use-focus-scope.d.ts +1 -1
  980. package/dist/composables/use-forward-element.d.ts +1 -0
  981. package/dist/composables/use-forward-element.js +1 -1
  982. package/dist/composables/use-fuse.d.ts +0 -1
  983. package/dist/composables/use-grace-area.d.ts +0 -1
  984. package/dist/composables/use-grace-area.js +1 -1
  985. package/dist/composables/use-hide-others.d.ts +1 -1
  986. package/dist/composables/use-image-loading-status.d.ts +1 -1
  987. package/dist/composables/use-kbd.d.ts +1 -0
  988. package/dist/composables/use-popup-events.d.ts +1 -1
  989. package/dist/composables/use-presence.d.ts +0 -1
  990. package/dist/composables/use-presence.js +1 -1
  991. package/dist/composables/use-props.d.ts +0 -1
  992. package/dist/composables/use-selection.d.ts +1 -1
  993. package/dist/composables/use-state-machine.d.ts +0 -1
  994. package/dist/composables/use-typeahead.d.ts +0 -1
  995. package/dist/composables/use-typeahead.js +1 -1
  996. package/dist/composables/use-ui-context.d.ts +1 -1
  997. package/dist/constants/common.d.ts +1 -0
  998. package/dist/constants/components.d.ts +2 -0
  999. package/dist/constants/components.js +1 -1
  1000. package/dist/date/calendar.d.ts +2 -9
  1001. package/dist/date/calendar.js +1 -1
  1002. package/dist/date/comparators.d.ts +0 -1
  1003. package/dist/date/comparators.js +1 -1
  1004. package/dist/date/formatter.d.ts +0 -1
  1005. package/dist/date/parser.d.ts +0 -1
  1006. package/dist/date/parser.js +1 -1
  1007. package/dist/date/parts.d.ts +0 -1
  1008. package/dist/date/types.d.ts +2 -3
  1009. package/dist/date/use-date-field.d.ts +3 -1
  1010. package/dist/date/use-date-field.js +1 -1
  1011. package/dist/date/utils.d.ts +0 -1
  1012. package/dist/index.d.ts +578 -470
  1013. package/dist/index.js +1 -1
  1014. package/dist/locale/hooks.d.ts +0 -1
  1015. package/dist/locale/hooks.js +1 -1
  1016. package/dist/locale/langs/ar.d.ts +0 -1
  1017. package/dist/locale/langs/ar.js +1 -1
  1018. package/dist/locale/langs/de.d.ts +0 -1
  1019. package/dist/locale/langs/de.js +1 -1
  1020. package/dist/locale/langs/en.d.ts +0 -1
  1021. package/dist/locale/langs/en.js +1 -1
  1022. package/dist/locale/langs/es.d.ts +0 -1
  1023. package/dist/locale/langs/es.js +1 -1
  1024. package/dist/locale/langs/fr.d.ts +0 -1
  1025. package/dist/locale/langs/fr.js +1 -1
  1026. package/dist/locale/langs/id.d.ts +0 -1
  1027. package/dist/locale/langs/id.js +1 -1
  1028. package/dist/locale/langs/ja.d.ts +0 -1
  1029. package/dist/locale/langs/ja.js +1 -1
  1030. package/dist/locale/langs/ko.d.ts +0 -1
  1031. package/dist/locale/langs/ko.js +1 -1
  1032. package/dist/locale/langs/pt-BR.d.ts +0 -1
  1033. package/dist/locale/langs/pt-BR.js +1 -1
  1034. package/dist/locale/langs/ru.d.ts +0 -1
  1035. package/dist/locale/langs/ru.js +1 -1
  1036. package/dist/locale/langs/tr.d.ts +0 -1
  1037. package/dist/locale/langs/tr.js +1 -1
  1038. package/dist/locale/langs/zh-CN.d.ts +0 -1
  1039. package/dist/locale/langs/zh-CN.js +1 -1
  1040. package/dist/locale/langs/zh-TW.d.ts +0 -1
  1041. package/dist/locale/langs/zh-TW.js +1 -1
  1042. package/dist/locale/locales.d.ts +2 -2
  1043. package/dist/locale/locales.js +1 -1
  1044. package/dist/locale/types.d.ts +148 -2
  1045. package/dist/namespaced/index.d.ts +1014 -984
  1046. package/dist/namespaced/index.js +1 -1
  1047. package/dist/nuxt/index.d.ts +1 -0
  1048. package/dist/shared/color.d.ts +1 -1
  1049. package/dist/shared/color.js +1 -1
  1050. package/dist/shared/comparison.d.ts +1 -0
  1051. package/dist/shared/focus.d.ts +4 -6
  1052. package/dist/shared/focus.js +1 -1
  1053. package/dist/shared/form.d.ts +1 -0
  1054. package/dist/shared/geometry.d.ts +1 -0
  1055. package/dist/shared/time-picker.d.ts +1 -0
  1056. package/dist/shared/time-picker.js +1 -1
  1057. package/dist/shared/tree.d.ts +1 -0
  1058. package/dist/shared/value.d.ts +1 -0
  1059. package/dist/shared/vue.d.ts +2 -2
  1060. package/dist/shared/vue.js +1 -1
  1061. package/dist/types/color.d.ts +0 -1
  1062. package/dist/types/component.d.ts +8 -4
  1063. package/dist/types/event.d.ts +0 -1
  1064. package/dist/types/path.d.ts +2 -3
  1065. package/dist/types/vue.d.ts +5 -6
  1066. package/package.json +21 -18
  1067. package/dist/_virtual/_@oxc-project_runtime@0.135.0/helpers/esm/defineProperty.js +0 -1
  1068. package/dist/_virtual/_@oxc-project_runtime@0.135.0/helpers/esm/toPrimitive.js +0 -1
  1069. package/dist/_virtual/_@oxc-project_runtime@0.135.0/helpers/esm/toPropertyKey.js +0 -1
  1070. package/dist/components/layout/layout-classic-compact.js +0 -1
  1071. package/dist/components/layout/layout-classic-compact.vue.d.ts +0 -28
  1072. package/dist/components/layout/layout-classic-placeholder.js +0 -1
  1073. package/dist/components/layout/layout-classic-root.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { SeparatorCompactProps, SeparatorCompactSlots, SeparatorLabelProps, SeparatorRootProps, SeparatorUi, SeparatorUiSlot } from "./types.js";
2
- import { _default as _default$2 } from "./separator-root.vue.js";
3
- import { _default } from "./separator-compact.vue.js";
4
- import { _default as _default$1 } from "./separator-label.vue.js";
2
+ import _default$2 from "./separator-root.vue.js";
3
+ import _default from "./separator-compact.vue.js";
4
+ import _default$1 from "./separator-label.vue.js";
5
5
  import { provideSeparatorUi } from "./context.js";
6
6
  export { _default as SeparatorCompact, type SeparatorCompactProps, type SeparatorCompactSlots, _default$1 as SeparatorLabel, type SeparatorLabelProps, _default$2 as SeparatorRoot, type SeparatorRootProps, type SeparatorUi, type SeparatorUiSlot, provideSeparatorUi };
@@ -1,5 +1,4 @@
1
1
  import { SeparatorCompactProps } from "./types.js";
2
-
3
2
  //#region src/components/separator/separator-compact.vue.d.ts
4
3
  declare var __VLS_14: {};
5
4
  type __VLS_Slots = {} & {
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
14
13
  };
15
14
  };
16
15
  //#endregion
17
- export { _default };
16
+ export { _default as default };
@@ -1,5 +1,4 @@
1
1
  import { SeparatorLabelProps } from "./types.js";
2
-
3
2
  //#region src/components/separator/separator-label.vue.d.ts
4
3
  declare var __VLS_1: {};
5
4
  type __VLS_Slots = {} & {
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
14
13
  };
15
14
  };
16
15
  //#endregion
17
- export { _default };
16
+ export { _default as default };
@@ -1 +1 @@
1
- import{useSeparatorUi as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`data-orientation`,`aria-orientation`,`role`],l=r({name:`SeparatorRoot`,__name:`separator-root`,props:{orientation:{default:`horizontal`},decorative:{type:Boolean,default:!1}},setup(r){let l=r,u=e(`root`),d=[`horizontal`,`vertical`],f=t(()=>d.includes(l.orientation)?l.orientation:`horizontal`),p=t(()=>f.value===`vertical`?l.orientation:void 0);return(e,t)=>(a(),n(`div`,{"data-soybean-separator-root":``,class:i(s(u)),"data-orientation":f.value,"aria-orientation":p.value,role:r.decorative?`none`:`separator`},[o(e.$slots,`default`)],10,c))}});export{l as default};
1
+ import{useSeparatorUi as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`data-orientation`,`aria-orientation`,`role`],l=r({name:`SeparatorRoot`,__name:`separator-root`,props:{orientation:{default:`horizontal`},decorative:{type:Boolean,default:!1}},setup(r){let l=r,u=e(`root`),d=[`horizontal`,`vertical`],f=t(()=>d.includes(l.orientation)?l.orientation:`horizontal`),p=t(()=>!l.decorative&&f.value===`vertical`?l.orientation:void 0);return(e,t)=>(a(),n(`div`,{"data-soybean-separator-root":``,class:i(s(u)),"data-orientation":f.value,"aria-orientation":p.value,role:r.decorative?`none`:`separator`},[o(e.$slots,`default`)],10,c))}});export{l as default};
@@ -1,6 +1,6 @@
1
1
  import { DataOrientation } from "../../types/common.js";
2
+ import "../../types/index.js";
2
3
  import { SeparatorRootProps } from "./types.js";
3
-
4
4
  //#region src/components/separator/separator-root.vue.d.ts
5
5
  declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
@@ -18,4 +18,4 @@ type __VLS_WithSlots<T, S> = T & {
18
18
  };
19
19
  };
20
20
  //#endregion
21
- export { _default };
21
+ export { _default as default };
@@ -1,5 +1,6 @@
1
1
  import { DataOrientation, UiClass } from "../../types/common.js";
2
2
  import { BaseProps } from "../../types/vue.js";
3
+ import "../../types/index.js";
3
4
  //#region src/components/separator/types.d.ts
4
5
  /**
5
6
  * Properties for the SeparatorLabel component.
@@ -41,7 +42,7 @@ type SeparatorCompactSlots = {
41
42
  /**
42
43
  * Custom content for the label slot.
43
44
  */
44
- default?: () => any;
45
+ label?: () => any;
45
46
  };
46
47
  /**
47
48
  * Available UI slots for the Separator component.
@@ -1,3 +1,3 @@
1
1
  import { SkeletonProps } from "./types.js";
2
- import { _default } from "./skeleton.vue.js";
2
+ import _default from "./skeleton.vue.js";
3
3
  export { _default as Skeleton, type SkeletonProps };
@@ -1,5 +1,4 @@
1
1
  import { SkeletonProps } from "./types.js";
2
-
3
2
  //#region src/components/skeleton/skeleton.vue.d.ts
4
3
  declare var __VLS_8: {};
5
4
  type __VLS_Slots = {} & {
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
14
13
  };
15
14
  };
16
15
  //#endregion
17
- export { _default };
16
+ export { _default as default };
@@ -1,5 +1,4 @@
1
1
  import { PrimitiveWithBaseProps } from "../primitive/types.js";
2
-
3
2
  //#region src/components/skeleton/types.d.ts
4
3
  /**
5
4
  * Properties for the Skeleton component.
@@ -1,6 +1,8 @@
1
1
  import { UiClass } from "../../types/common.js";
2
2
  import { UseUiConsumer } from "../../composables/use-ui-context.js";
3
+ import "../../composables/index.js";
3
4
  import { SliderUiSlot } from "./types.js";
5
+ import "../../index.js";
4
6
  //#region src/components/slider/context.d.ts
5
7
  declare const provideSliderUi: (ui: import("vue").ComputedRef<Partial<UiClass<SliderUiSlot>>>) => import("vue").ComputedRef<Partial<UiClass<SliderUiSlot>>>, useSliderUi: UseUiConsumer<SliderUiSlot>;
6
8
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { SliderCompactEmits, SliderCompactProps, SliderCompactSlotProps, SliderCompactSlots, SliderRangeProps, SliderRootContext, SliderRootEmits, SliderRootProps, SliderSlideDirection, SliderThumbAlignment, SliderThumbProps, SliderTrackProps, SliderUi, SliderUiSlot } from "./types.js";
2
- import { _default } from "./slider-compact.vue.js";
3
- import { _default as _default$2 } from "./slider-root.vue.js";
4
- import { _default as _default$4 } from "./slider-track.vue.js";
5
- import { _default as _default$1 } from "./slider-range.vue.js";
6
- import { _default as _default$3 } from "./slider-thumb.vue.js";
2
+ import _default from "./slider-compact.vue.js";
3
+ import _default$2 from "./slider-root.vue.js";
4
+ import _default$4 from "./slider-track.vue.js";
5
+ import _default$1 from "./slider-range.vue.js";
6
+ import _default$3 from "./slider-thumb.vue.js";
7
7
  import { provideSliderUi } from "./context.js";
8
8
  export { _default as SliderCompact, type SliderCompactEmits, type SliderCompactProps, type SliderCompactSlotProps, type SliderCompactSlots, _default$1 as SliderRange, type SliderRangeProps, _default$2 as SliderRoot, type SliderRootContext, type SliderRootEmits, type SliderRootProps, type SliderSlideDirection, _default$3 as SliderThumb, type SliderThumbAlignment, type SliderThumbProps, _default$4 as SliderTrack, type SliderTrackProps, type SliderUi, type SliderUiSlot, provideSliderUi };
@@ -1 +1 @@
1
- import{interpolate as e}from"../../shared/string.js";import{clamp as t,snapValueToStep as n}from"../../shared/value.js";import"../../shared/index.js";const r=[0],i=[`PageUp`,`PageDown`],a=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],o={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageUp`,`ArrowUp`,`ArrowLeft`]};function s(e){return typeof e==`number`&&!Number.isNaN(e)?e:0}function c(e,t){return typeof e==`number`&&!Number.isNaN(e)&&e>t?e:Math.max(100,t+1)}function l(e){return typeof e==`number`&&!Number.isNaN(e)&&e>0?e:1}function u(e){return typeof e==`number`&&!Number.isNaN(e)&&e>=0?Math.floor(e):0}function d(e,t){return Array.isArray(e)&&e.length>0?e:t?.length?t:r}function f(e,t){return[...d(e,t.defaultValue)].map(e=>n(e,t.min,t.max,t.step)).sort((e,t)=>e-t)}function p(e,t){return e===t?!0:!e||!t||e.length!==t.length?!1:e.every((e,n)=>e===t[n])}function m(e,t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function h(e,t){if(e.length<=1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function g(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function _(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function v(e,t){if(t<=0)return!0;let n=_(e);return Math.min(...n)>=t}function y(e,n,r){let i=r-n;return i<=0?0:t((e-n)/i*100,0,100)}function b(e,t,n){let r=e/2;return(r-g([0,50],[0,r])(t)*n)*n}function x(t,n,r){if(n>2)return e(r.valueN,{index:String(t+1),total:String(n)});if(n===2)return[r.minimum,r.maximum][t]}function S(e,t,n){return e===`vertical`?n?{startEdge:`top`,endEdge:`bottom`,slideDirection:`from-top`}:{startEdge:`bottom`,endEdge:`top`,slideDirection:`from-bottom`}:t===`ltr`&&!n||t===`rtl`&&n?{startEdge:`left`,endEdge:`right`,slideDirection:`from-left`}:{startEdge:`right`,endEdge:`left`,slideDirection:`from-right`}}function C(e,n,r){let i=r.orientation===`horizontal`?n.width:n.height;if(i<=0)return r.min;let a=t((r.orientation===`horizontal`?r.startEdge===`left`?e.clientX-n.left:n.right-e.clientX:r.startEdge===`bottom`?n.bottom-e.clientY:e.clientY-n.top)/i,0,1);return r.min+a*(r.max-r.min)}export{a as ARROW_KEYS,o as BACK_KEYS,i as PAGE_KEYS,y as convertValueToPercentage,h as getClosestValueIndex,m as getNextSortedValues,S as getSliderSideState,C as getSliderValueFromPointer,b as getThumbInBoundsOffset,x as getThumbLabel,u as getValidMinStepsBetweenThumbs,c as getValidSliderMax,s as getValidSliderMin,l as getValidSliderStep,v as hasMinStepsBetweenValues,p as isSliderValuesEqual,f as normalizeSliderValues};
1
+ import{interpolate as e}from"../../shared/string.js";import{clamp as t,snapValueToStep as n}from"../../shared/value.js";import"../../shared/index.js";const r=[0],i=[`PageUp`,`PageDown`],a=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],o={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageUp`,`ArrowUp`,`ArrowLeft`]};function s(e){return typeof e==`number`&&!Number.isNaN(e)?e:0}function c(e,t){return typeof e==`number`&&!Number.isNaN(e)&&e>t?e:Math.max(100,t+1)}function l(e){return typeof e==`number`&&!Number.isNaN(e)&&e>0?e:1}function u(e){return typeof e==`number`&&!Number.isNaN(e)&&e>=0?Math.floor(e):0}function d(e,t){return Array.isArray(e)&&e.length>0?e:t?.length?t:r}function f(e,t){return[...d(e,t.defaultValue)].map(e=>n(e,t.min,t.max,t.step)).sort((e,t)=>e-t)}function p(e,t){return e===t?!0:!e||!t||e.length!==t.length?!1:e.every((e,n)=>e===t[n])}function m(e,t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function h(e,t){if(e.length<=1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function g(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function _(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function v(e,t){if(t<=0)return!0;let n=_(e);return Math.min(...n)>=t}function y(e,n,r){let i=r-n;return i<=0?0:t((e-n)/i*100,0,100)}function b(e,t,n){let r=e/2;return(r-g([0,50],[0,r])(t)*n)*n}function x(t,n,r){if(n>2)return e(r.valueN,{index:String(t+1),total:String(n)});if(n===2)return[r.minimum,r.maximum][t]}function S(e,t,n){return e===`vertical`?n?{startEdge:`top`,endEdge:`bottom`,slideDirection:`from-top`}:{startEdge:`bottom`,endEdge:`top`,slideDirection:`from-bottom`}:t===`ltr`&&!n||t===`rtl`&&n?{startEdge:`left`,endEdge:`right`,slideDirection:`from-left`}:{startEdge:`right`,endEdge:`left`,slideDirection:`from-right`}}function C(e,n,r){let i=r.orientation===`horizontal`?n.width:n.height;if(i<=0)return r.min;let a=r.orientation===`horizontal`?r.startEdge===`left`?e.clientX-n.left:n.right-e.clientX:r.startEdge===`bottom`?n.bottom-e.clientY:e.clientY-n.top,o=t(a/i,0,1);return r.min+o*(r.max-r.min)}export{a as ARROW_KEYS,o as BACK_KEYS,r as DEFAULT_SLIDER_VALUE,i as PAGE_KEYS,y as convertValueToPercentage,h as getClosestValueIndex,m as getNextSortedValues,S as getSliderSideState,C as getSliderValueFromPointer,_ as getStepsBetweenValues,b as getThumbInBoundsOffset,x as getThumbLabel,u as getValidMinStepsBetweenThumbs,c as getValidSliderMax,s as getValidSliderMin,l as getValidSliderStep,v as hasMinStepsBetweenValues,p as isSliderValuesEqual,g as linearScale,f as normalizeSliderValues};
@@ -1 +1 @@
1
- import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./slider-range.js";import r from"./slider-root.js";import i from"./slider-thumb.js";import a from"./slider-track.js";import{Fragment as o,createBlock as s,createElementBlock as c,createVNode as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,toHandlers as _,unref as v,withCtx as y}from"vue";const b=u({name:`SliderCompact`,__name:`slider-compact`,props:{trackProps:{},rangeProps:{},thumbProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`valueCommit`],setup(u,{emit:b}){let x=u,S=b,C=t(x,[`trackProps`,`rangeProps`,`thumbProps`]),w=e(S);return(e,t)=>(m(),s(r,f(v(C),_(v(w))),{default:y(({modelValue:t})=>[l(a,p(d(u.trackProps)),{default:y(()=>[l(n,p(d(u.rangeProps)),null,16)]),_:1},16),(m(!0),c(o,null,h(t,(n,r)=>(m(),s(i,f({key:`${r}-${n}`},{ref_for:!0},u.thumbProps,{index:r}),{default:y(()=>[g(e.$slots,`default`,{index:r,modelValue:t,value:n})]),_:2},1040,[`index`]))),128))]),_:3},16))}});export{b as default};
1
+ import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./slider-range.js";import r from"./slider-root.js";import i from"./slider-thumb.js";import a from"./slider-track.js";import{Fragment as o,createBlock as s,createElementBlock as c,createVNode as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,toHandlers as _,unref as v,withCtx as y}from"vue";const b=u({name:`SliderCompact`,__name:`slider-compact`,props:{trackProps:{},rangeProps:{},thumbProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`valueCommit`],setup(u,{emit:b}){let x=u,S=b,C=t(x,[`trackProps`,`rangeProps`,`thumbProps`]),w=e(S);return(e,t)=>(m(),s(r,f(v(C),_(v(w))),{default:y(({modelValue:t})=>[l(a,p(d(u.trackProps)),{default:y(()=>[l(n,p(d(u.rangeProps)),null,16)]),_:1},16),(m(!0),c(o,null,h(t,(n,r)=>(m(),s(i,f({key:r},{ref_for:!0},u.thumbProps,{index:r}),{default:y(()=>[g(e.$slots,`default`,{index:r,modelValue:t,value:n})]),_:2},1040,[`index`]))),128))]),_:3},16))}});export{b as default};
@@ -1,5 +1,4 @@
1
1
  import { SliderCompactProps, SliderCompactSlots } from "./types.js";
2
-
3
2
  //#region src/components/slider/slider-compact.vue.d.ts
4
3
  type __VLS_Slots = SliderCompactSlots;
5
4
  declare const __VLS_base: import("vue").DefineComponent<SliderCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -17,4 +16,4 @@ type __VLS_WithSlots<T, S> = T & {
17
16
  };
18
17
  };
19
18
  //#endregion
20
- export { _default };
19
+ export { _default as default };
@@ -1,5 +1,4 @@
1
1
  import { SliderRangeProps } from "./types.js";
2
-
3
2
  //#region src/components/slider/slider-range.vue.d.ts
4
3
  declare var __VLS_8: {};
5
4
  type __VLS_Slots = {} & {
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
14
13
  };
15
14
  };
16
15
  //#endregion
17
- export { _default };
16
+ export { _default as default };
@@ -1 +1 @@
1
- import{snapValueToStep as e}from"../../shared/value.js";import{isFormControl as t}from"../../shared/vue.js";import{useDirection as n}from"../config-provider/context.js";import{useLocaleMessages as r}from"../../locale/hooks.js";import"../../locale/index.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import ee from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideSliderRootContext as te,useSliderUi as ne}from"./context.js";import{ARROW_KEYS as s,BACK_KEYS as re,PAGE_KEYS as c,convertValueToPercentage as ie,getClosestValueIndex as ae,getNextSortedValues as oe,getSliderSideState as se,getSliderValueFromPointer as ce,getThumbLabel as le,getValidMinStepsBetweenThumbs as ue,getValidSliderMax as de,getValidSliderMin as fe,getValidSliderStep as pe,hasMinStepsBetweenValues as me,isSliderValuesEqual as l,normalizeSliderValues as he}from"./shared.js";import{computed as u,createBlock as d,createCommentVNode as ge,defineComponent as f,nextTick as _e,normalizeClass as ve,onBeforeUnmount as ye,openBlock as p,renderSlot as be,shallowRef as m,unref as h,watch as g,withCtx as xe}from"vue";const _=f({name:`SliderRoot`,__name:`slider-root`,props:{modelValue:{default:void 0},defaultValue:{default:()=>[0]},disabled:{type:Boolean,default:!1},orientation:{default:`horizontal`},dir:{default:void 0},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},thumbAlignment:{default:`contain`},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`valueCommit`],setup(f,{emit:_}){let v=f,y=_,[Se,Ce]=a(),we=ne(`root`),Te=r(),b=i(()=>v.modelValue,e=>{y(`update:modelValue`,e)},v.defaultValue),x=n(()=>v.dir),S=u(()=>v.disabled),Ee=u(()=>S.value?``:void 0),C=u(()=>v.orientation===`vertical`?`vertical`:`horizontal`),w=u(()=>v.inverted),T=u(()=>fe(v.min)),E=u(()=>de(v.max,T.value)),D=u(()=>pe(v.step)),O=u(()=>ue(v.minStepsBetweenThumbs)),De=u(()=>v.thumbAlignment===`overflow`?`overflow`:`contain`),k=u(()=>he(b.value,{defaultValue:v.defaultValue,min:T.value,max:E.value,step:D.value})),A=m(),j=u(()=>A.value??k.value),Oe=u(()=>t(Se.value)),ke=u(()=>C.value===`horizontal`),M=u(()=>se(C.value,x.value,w.value)),N=u(()=>M.value.startEdge),Ae=u(()=>M.value.endEdge),P=u(()=>M.value.slideDirection),F=m(0),I=m(),L=m([]),R=m(0),z=m(null),B=m(j.value);function je(e){I.value!==e&&(I.value=e)}function Me(e,t){if(L.value[e]===t)return;let n=[...L.value];n[e]=t,L.value=n}function Ne(e){return ie(e,T.value,E.value)}function V(e){_e(()=>{L.value[e]?.focus()})}function H(e){return ae(j.value,e)}function U(e){return z.value===e}let W=null;function G(){W?.(),W=null}function K(e){G();let t=e=>{X(e)},n=e=>{Z(e.pointerId)};e.addEventListener(`pointermove`,t),e.addEventListener(`pointerup`,n),e.addEventListener(`pointercancel`,n),W=()=>{e.removeEventListener(`pointermove`,t),e.removeEventListener(`pointerup`,n),e.removeEventListener(`pointercancel`,n)}}function q(){let e=A.value??j.value;l(B.value,e)||y(`valueCommit`,[...e])}function J(t,n,r={}){let i=e(t,T.value,E.value,D.value),a=oe(j.value,i,n);if(!me(a,O.value*D.value))return;let o=a.indexOf(i);if(F.value=o,l(a,j.value)){r.focus&&V(o),r.commit&&q();return}A.value=a,b.value=a,r.focus&&V(o),r.commit&&(y(`valueCommit`,[...a]),B.value=a,A.value=void 0)}function Y(e){return I.value?ce(e,I.value.getBoundingClientRect(),{min:T.value,max:E.value,orientation:C.value,startEdge:N.value}):null}function Pe(e){let t=Y(e);S.value||t===null||(z.value=e.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],R.value=0,J(t,H(t),{focus:!0}))}function Fe(e,t){if(S.value)return;z.value=t.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],F.value=e,V(e);let n=Y(t);R.value=n===null?0:j.value[e]-n}function X(e){let t=Y(e);S.value||t===null||!U(e.pointerId)||J(t+R.value,F.value)}function Z(e){if(S.value||typeof e==`number`&&!U(e))return;let t=A.value??j.value;z.value=null,G(),R.value=0,q(),B.value=[...t],A.value=void 0}function Q(e,t,n=1){let r=j.value[e];S.value||typeof r!=`number`||J(r+D.value*t*n,e,{commit:!0,focus:!0})}function $(e,t){J(t===`min`?T.value:E.value,e,{commit:!0,focus:!0})}function Ie(e){if(S.value||typeof F.value!=`number`)return;if(e.key===`Home`){e.preventDefault(),$(F.value,`min`);return}if(e.key===`End`){e.preventDefault(),$(F.value,`max`);return}if(!c.concat(s).includes(e.key))return;e.preventDefault();let t=re[P.value].includes(e.key),n=c.includes(e.key)||e.shiftKey&&s.includes(e.key)?10:1;Q(F.value,t?-1:1,n)}return te({modelValue:b,currentModelValue:j,disabled:S,orientation:C,dir:x,inverted:w,min:T,max:E,step:D,minStepsBetweenThumbs:O,thumbAlignment:De,isHorizontal:ke,startEdge:N,endEdge:Ae,slideDirection:P,activeThumbIndex:F,trackElement:I,thumbElements:L,setTrackElement:je,setThumbElement:Me,getPercentage:Ne,getClosestValueIndex:H,getThumbLabel:e=>le(e,j.value.length,Te.value.slider),beginTrackDrag:Pe,beginThumbDrag:Fe,moveDrag:X,endDrag:Z,stepValue:Q,setToLimit:$}),g(k,e=>{l(e,b.value)||(b.value=e),A.value&&l(e,A.value)&&(A.value=void 0)},{immediate:!0}),g(()=>j.value.length,e=>{L.value=L.value.slice(0,e)}),ye(()=>{G()}),(e,t)=>(p(),d(h(o),{ref:h(Ce),as:f.as,"as-child":f.asChild,"data-soybean-slider-root":``,class:ve(h(we)),dir:h(x),"data-disabled":Ee.value,"data-orientation":C.value,onKeydown:Ie},{default:xe(()=>[be(e.$slots,`default`,{modelValue:j.value}),Oe.value&&f.name?(p(),d(h(ee),{key:0,type:`number`,name:f.name,value:j.value,disabled:S.value,required:f.required},null,8,[`name`,`value`,`disabled`,`required`])):ge(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`class`,`dir`,`data-disabled`,`data-orientation`]))}});export{_ as default};
1
+ import{snapValueToStep as e}from"../../shared/value.js";import{isFormControl as t}from"../../shared/vue.js";import{useDirection as n}from"../config-provider/context.js";import{useLocaleMessages as r}from"../../locale/hooks.js";import"../../locale/index.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import s from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideSliderRootContext as ee,useSliderUi as te}from"./context.js";import{ARROW_KEYS as c,BACK_KEYS as ne,PAGE_KEYS as l,convertValueToPercentage as re,getClosestValueIndex as ie,getNextSortedValues as ae,getSliderSideState as oe,getSliderValueFromPointer as se,getThumbLabel as ce,getValidMinStepsBetweenThumbs as le,getValidSliderMax as ue,getValidSliderMin as de,getValidSliderStep as fe,hasMinStepsBetweenValues as pe,isSliderValuesEqual as u,normalizeSliderValues as me}from"./shared.js";import{computed as d,createBlock as f,createCommentVNode as he,defineComponent as p,nextTick as ge,normalizeClass as _e,onBeforeUnmount as ve,openBlock as m,renderSlot as ye,shallowRef as h,unref as g,watch as be,withCtx as xe}from"vue";const _=p({name:`SliderRoot`,__name:`slider-root`,props:{modelValue:{default:void 0},defaultValue:{default:()=>[0]},disabled:{type:Boolean,default:!1},orientation:{default:`horizontal`},dir:{default:void 0},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},thumbAlignment:{default:`contain`},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`valueCommit`],setup(p,{emit:_}){let v=p,y=_,[Se,Ce]=a(),we=te(`root`),Te=r(),b=i(()=>v.modelValue,e=>{y(`update:modelValue`,e)},v.defaultValue),x=n(()=>v.dir),S=d(()=>v.disabled),Ee=d(()=>S.value?``:void 0),C=d(()=>v.orientation===`vertical`?`vertical`:`horizontal`),w=d(()=>v.inverted),T=d(()=>de(v.min)),E=d(()=>ue(v.max,T.value)),D=d(()=>fe(v.step)),O=d(()=>le(v.minStepsBetweenThumbs)),De=d(()=>v.thumbAlignment===`overflow`?`overflow`:`contain`),k=d(()=>me(b.value,{defaultValue:v.defaultValue,min:T.value,max:E.value,step:D.value})),A=h(),j=d(()=>A.value??k.value),Oe=d(()=>t(Se.value)),ke=d(()=>C.value===`horizontal`),M=d(()=>oe(C.value,x.value,w.value)),N=d(()=>M.value.startEdge),Ae=d(()=>M.value.endEdge),P=d(()=>M.value.slideDirection),F=h(0),I=h(),L=h([]),R=h(0),z=h(null),B=h(j.value);function je(e){I.value!==e&&(I.value=e)}function Me(e,t){if(L.value[e]===t)return;let n=[...L.value];n[e]=t,L.value=n}function Ne(e){return re(e,T.value,E.value)}function V(e){ge(()=>{L.value[e]?.focus()})}function H(e){return ie(j.value,e)}function U(e){return z.value===e}let W=null;function G(){W?.(),W=null}function K(e){G();let t=e=>{X(e)},n=e=>{Z(e.pointerId)};e.addEventListener(`pointermove`,t),e.addEventListener(`pointerup`,n),e.addEventListener(`pointercancel`,n),W=()=>{e.removeEventListener(`pointermove`,t),e.removeEventListener(`pointerup`,n),e.removeEventListener(`pointercancel`,n)}}function q(){let e=A.value??j.value;u(B.value,e)||y(`valueCommit`,[...e])}function J(t,n,r={}){let i=e(t,T.value,E.value,D.value),a=ae(j.value,i,n),o=O.value*D.value;if(!pe(a,o))return;let s=a.indexOf(i);if(F.value=s,u(a,j.value)){r.focus&&V(s),r.commit&&q();return}A.value=a,b.value=a,r.focus&&V(s),r.commit&&(y(`valueCommit`,[...a]),B.value=a,A.value=void 0)}function Y(e){if(!I.value)return null;let t=I.value.getBoundingClientRect();return se(e,t,{min:T.value,max:E.value,orientation:C.value,startEdge:N.value})}function Pe(e){let t=Y(e);S.value||t===null||(z.value=e.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],R.value=0,J(t,H(t),{focus:!0}))}function Fe(e,t){if(S.value)return;z.value=t.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],F.value=e,V(e);let n=Y(t);R.value=n===null?0:j.value[e]-n}function X(e){let t=Y(e);S.value||t===null||!U(e.pointerId)||J(t+R.value,F.value)}function Z(e){if(S.value||typeof e==`number`&&!U(e))return;let t=A.value??j.value;z.value=null,G(),R.value=0,q(),B.value=[...t],A.value=void 0}function Q(e,t,n=1){let r=j.value[e];S.value||typeof r!=`number`||J(r+D.value*t*n,e,{commit:!0,focus:!0})}function $(e,t){J(t===`min`?T.value:E.value,e,{commit:!0,focus:!0})}function Ie(e){if(S.value||typeof F.value!=`number`)return;if(e.key===`Home`){e.preventDefault(),$(F.value,`min`);return}if(e.key===`End`){e.preventDefault(),$(F.value,`max`);return}if(!l.concat(c).includes(e.key))return;e.preventDefault();let t=ne[P.value].includes(e.key),n=l.includes(e.key)||e.shiftKey&&c.includes(e.key)?10:1;Q(F.value,t?-1:1,n)}return ee({modelValue:b,currentModelValue:j,disabled:S,orientation:C,dir:x,inverted:w,min:T,max:E,step:D,minStepsBetweenThumbs:O,thumbAlignment:De,isHorizontal:ke,startEdge:N,endEdge:Ae,slideDirection:P,activeThumbIndex:F,trackElement:I,thumbElements:L,setTrackElement:je,setThumbElement:Me,getPercentage:Ne,getClosestValueIndex:H,getThumbLabel:e=>ce(e,j.value.length,Te.value.slider),beginTrackDrag:Pe,beginThumbDrag:Fe,moveDrag:X,endDrag:Z,stepValue:Q,setToLimit:$}),be(k,e=>{u(e,b.value)||(b.value=e),A.value&&u(e,A.value)&&(A.value=void 0)},{immediate:!0}),be(()=>j.value.length,e=>{L.value=L.value.slice(0,e)}),ve(()=>{G()}),(e,t)=>(m(),f(g(o),{ref:g(Ce),as:p.as,"as-child":p.asChild,"data-soybean-slider-root":``,class:_e(g(we)),dir:g(x),"data-disabled":Ee.value,"data-orientation":C.value,onKeydown:Ie},{default:xe(()=>[ye(e.$slots,`default`,{modelValue:j.value}),Oe.value&&p.name?(m(),f(g(s),{key:0,type:`number`,name:p.name,value:j.value,disabled:S.value,required:p.required},null,8,[`name`,`value`,`disabled`,`required`])):he(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`class`,`dir`,`data-disabled`,`data-orientation`]))}});export{_ as default};
@@ -1,5 +1,6 @@
1
1
  import { DataOrientation, Direction } from "../../types/common.js";
2
2
  import { SliderRootProps, SliderThumbAlignment } from "./types.js";
3
+ import "../../index.js";
3
4
  //#region src/components/slider/slider-root.vue.d.ts
4
5
  declare var __VLS_10: {
5
6
  modelValue: number[];
@@ -14,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<SliderRootProps, {}, {},
14
15
  "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
15
16
  onValueCommit?: ((value: number[]) => any) | undefined;
16
17
  }>, {
17
- dir: Direction;
18
18
  disabled: boolean;
19
+ dir: Direction;
19
20
  max: number;
20
21
  min: number;
21
22
  orientation: DataOrientation;
@@ -34,4 +35,4 @@ type __VLS_WithSlots<T, S> = T & {
34
35
  };
35
36
  };
36
37
  //#endregion
37
- export { _default };
38
+ export { _default as default };
@@ -1,5 +1,4 @@
1
1
  import { SliderThumbProps } from "./types.js";
2
-
3
2
  //#region src/components/slider/slider-thumb.vue.d.ts
4
3
  declare var __VLS_11: {};
5
4
  type __VLS_Slots = {} & {
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
14
13
  };
15
14
  };
16
15
  //#endregion
17
- export { _default };
16
+ export { _default as default };
@@ -1,5 +1,4 @@
1
1
  import { SliderTrackProps } from "./types.js";
2
-
3
2
  //#region src/components/slider/slider-track.vue.d.ts
4
3
  declare var __VLS_10: {};
5
4
  type __VLS_Slots = {} & {
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
14
13
  };
15
14
  };
16
15
  //#endregion
17
- export { _default };
16
+ export { _default as default };
@@ -1,9 +1,9 @@
1
1
  import { DataOrientation, Direction, Side, UiClass } from "../../types/common.js";
2
2
  import { FormFieldCommonProps } from "../../types/component.js";
3
3
  import { BaseProps, PropsToContext } from "../../types/vue.js";
4
+ import "../../types/index.js";
4
5
  import { PrimitiveWithBaseProps } from "../primitive/types.js";
5
6
  import { ComputedRef, ShallowRef } from "vue";
6
-
7
7
  //#region src/components/slider/types.d.ts
8
8
  /**
9
9
  * Type information for SliderThumbAlignment.
@@ -40,7 +40,9 @@ interface SliderRootProps extends FormFieldCommonProps, PrimitiveWithBaseProps {
40
40
  * Events for the SliderRoot component.
41
41
  */
42
42
  type SliderRootEmits = {
43
- /** Event handler called when the slider value changes. */'update:modelValue': [value: number[]]; /** Event handler called when a slider interaction is committed. */
43
+ /** Event handler called when the slider value changes. */
44
+ 'update:modelValue': [value: number[]];
45
+ /** Event handler called when a slider interaction is committed. */
44
46
  valueCommit: [value: number[]];
45
47
  };
46
48
  /**
@@ -1,6 +1,8 @@
1
1
  import { UiClass } from "../../types/common.js";
2
2
  import { UseUiConsumer } from "../../composables/use-ui-context.js";
3
+ import "../../composables/index.js";
3
4
  import { SplitterUiSlot } from "./types.js";
5
+ import "../../index.js";
4
6
  //#region src/components/splitter/context.d.ts
5
7
  declare const provideSplitterUi: (ui: import("vue").ComputedRef<Partial<UiClass<SplitterUiSlot>>>) => import("vue").ComputedRef<Partial<UiClass<SplitterUiSlot>>>, useSplitterUi: UseUiConsumer<SplitterUiSlot>;
6
8
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { SplitterGroupContext, SplitterGroupEmits, SplitterGroupProps, SplitterPanelEmits, SplitterPanelProps, SplitterResizeHandleEmits, SplitterResizeHandleProps, SplitterUi, SplitterUiSlot } from "./types.js";
2
- import { _default } from "./splitter-group.vue.js";
3
- import { _default as _default$1 } from "./splitter-panel.vue.js";
4
- import { _default as _default$2 } from "./splitter-resize-handle.vue.js";
2
+ import _default from "./splitter-group.vue.js";
3
+ import _default$1 from "./splitter-panel.vue.js";
4
+ import _default$2 from "./splitter-resize-handle.vue.js";
5
5
  import { provideSplitterUi } from "./context.js";
6
6
  export { _default as SplitterGroup, type SplitterGroupContext, type SplitterGroupEmits, type SplitterGroupProps, _default$1 as SplitterPanel, type SplitterPanelEmits, type SplitterPanelProps, _default$2 as SplitterResizeHandle, type SplitterResizeHandleEmits, type SplitterResizeHandleProps, type SplitterUi, type SplitterUiSlot, provideSplitterUi };
@@ -1 +1 @@
1
- import{clamp as e}from"../../shared/value.js";import"../../shared/index.js";const t=.01;function n(e){return Number(e.toFixed(3))}function r(t){return e(t.minSize.value,0,100)}function i(t){return e(t.collapsedSize.value,0,100)}function a(t,n){return e(t.maxSize.value,n,100)}function o(e){return e.collapsible.value?Math.min(r(e),i(e)):r(e)}function s(o,s){if(!s.collapsible.value)return e(o,r(s),a(s,r(s)));let c=i(s),l=r(s),u=e(o,c,a(s,l));return u<=c+t?n(c):n(u<l?u<=c+(l-c)/2?c:l:u)}function c(e,i,o){if(Math.abs(o)<=t)return e;let s=[...e],c=o,l=0;for(;Math.abs(c)>t&&l<20;){l+=1;let e=s.map((e,n)=>{let o=i[n];if(!o)return null;let s=r(o),l=a(o,s),u=c>0?l-e:e-s;return u<=t?null:{index:n,room:u}}).filter(Boolean);if(e.length===0)break;for(let t=0;t<e.length;t+=1){let r=e[t];if(!r)continue;let i=e.length-t,a=c/i,o=c>0?Math.min(a,r.room):-Math.min(-a,r.room);s[r.index]=n(s[r.index]+o),c-=o}}if(Math.abs(c)>t){let e=s.findIndex((e,n)=>{let o=i[n];return o?c>0?a(o,r(o))-s[n]>t:s[n]-r(o)>t:!1});e>=0&&(s[e]=n(s[e]+c))}return s}function l(e,i){let o=[...e],s=n(100-o.reduce((e,t)=>e+t,0));if(Math.abs(s)<=t)return o.map(n);let c=o.findIndex((e,n)=>{let o=i[n];if(!o)return!1;let c=r(o),l=a(o,c),u=e+s;return u>=c-t&&u<=l+t});return c>=0&&(o[c]=n(o[c]+s)),o.map(n)}function u(e){return[...e].sort((e,t)=>{let n=e.order.value,r=t.order.value;return n==null&&r==null?e.registrationIndex-t.registrationIndex:n==null?-1:r==null?1:n===r?e.registrationIndex-t.registrationIndex:n-r})}function d(e,n){return e.length===n.length?e.every((e,r)=>Math.abs(e-(n[r]??0))<=t):!1}function f(e,r){if(e.length===0)return[];let i=e.map(e=>r?.get(e.id)??e.defaultSize.value),a=i.reduce((e,t)=>e+(t??0),0),o=i.filter(e=>e===void 0).length,s=o>0?Math.max(100-a,0)/o:0,c=i.map(e=>e??s),l=c.reduce((e,t)=>e+t,0);return l<=t?e.map(()=>n(100/e.length)):c.map(e=>n(e/l*100))}function p(t,i){if(i.length===0)return[];let o=t.map((t,o)=>{let s=i[o],c=r(s);return n(e(t,c,a(s,c)))}),s=o.reduce((e,t)=>e+t,0);return o=c(o,i,n(100-s)),l(o,i)}function m(t,i,c,l){let u=i[c],d=i[c+1];if(!u||!d)return t;let f=t[c]+t[c+1],p=o(u),m=o(d),h=Math.min(a(u,r(u)),f-m),g=Math.min(a(d,r(d)),f-p),_=s(t[c]+l,u);_=e(_,p,h);let v=s(f-_,d);v=e(v,m,g),_=e(f-v,p,h),_=s(_,u),v=n(f-_);let y=[...t];return y[c]=n(_),y[c+1]=n(v),y}function h(e,n){if(!(!n.collapsible.value||e===void 0))return e<=i(n)+t?`collapsed`:`expanded`}function g(e,t=100){let i=o(e),s=Math.min(a(e,r(e)),t);return{min:n(i),max:n(s)}}export{d as areLayoutsEqual,f as getDefaultLayout,g as getPanelBounds,h as getPanelState,p as normalizeLayout,m as resizeLayoutPair,u as sortPanels};
1
+ import{clamp as e}from"../../shared/value.js";import"../../shared/index.js";const t=.01;function n(e){return Number(e.toFixed(3))}function r(t){return e(t.minSize.value,0,100)}function i(t){return e(t.collapsedSize.value,0,100)}function a(t,n){return e(t.maxSize.value,n,100)}function o(e){return e.collapsible.value?Math.min(r(e),i(e)):r(e)}function s(o,s){if(!s.collapsible.value)return e(o,r(s),a(s,r(s)));let c=i(s),l=r(s),u=a(s,l),d=e(o,c,u);return d<=c+t?n(c):n(d<l?d<=c+(l-c)/2?c:l:d)}function c(e,i,o){if(Math.abs(o)<=t)return e;let s=[...e],c=o,l=0;for(;Math.abs(c)>t&&l<20;){l+=1;let e=s.map((e,n)=>{let o=i[n];if(!o)return null;let s=r(o),l=a(o,s),u=c>0?l-e:e-s;return u<=t?null:{index:n,room:u}}).filter(Boolean);if(e.length===0)break;for(let t=0;t<e.length;t+=1){let r=e[t];if(!r)continue;let i=e.length-t,a=c/i,o=c>0?Math.min(a,r.room):-Math.min(-a,r.room);s[r.index]=n(s[r.index]+o),c-=o}}if(Math.abs(c)>t){let e=s.findIndex((e,n)=>{let o=i[n];return o?c>0?a(o,r(o))-s[n]>t:s[n]-r(o)>t:!1});e>=0&&(s[e]=n(s[e]+c))}return s}function l(e,i){let o=[...e],s=n(100-o.reduce((e,t)=>e+t,0));if(Math.abs(s)<=t)return o.map(n);let c=o.findIndex((e,n)=>{let o=i[n];if(!o)return!1;let c=r(o),l=a(o,c),u=e+s;return u>=c-t&&u<=l+t});return c>=0&&(o[c]=n(o[c]+s)),o.map(n)}function u(e){return[...e].sort((e,t)=>{let n=e.order.value,r=t.order.value;return n==null&&r==null?e.registrationIndex-t.registrationIndex:n==null?-1:r==null?1:n===r?e.registrationIndex-t.registrationIndex:n-r})}function d(e,n){return e.length===n.length&&e.every((e,r)=>Math.abs(e-(n[r]??0))<=t)}function f(e,r){if(e.length===0)return[];let i=e.map(e=>r?.get(e.id)??e.defaultSize.value),a=i.reduce((e,t)=>e+(t??0),0),o=i.filter(e=>e===void 0).length,s=o>0?Math.max(100-a,0)/o:0,c=i.map(e=>e??s),l=c.reduce((e,t)=>e+t,0);return l<=t?e.map(()=>n(100/e.length)):c.map(e=>n(e/l*100))}function p(t,i){if(i.length===0)return[];let o=t.map((t,o)=>{let s=i[o],c=r(s),l=a(s,c);return n(e(t,c,l))}),s=o.reduce((e,t)=>e+t,0);return o=c(o,i,n(100-s)),l(o,i)}function m(t,i,c,l){let u=i[c],d=i[c+1];if(!u||!d)return t;let f=t[c]+t[c+1],p=o(u),m=o(d),h=Math.min(a(u,r(u)),f-m),g=Math.min(a(d,r(d)),f-p),_=s(t[c]+l,u);_=e(_,p,h);let v=s(f-_,d);v=e(v,m,g),_=e(f-v,p,h),_=s(_,u),v=n(f-_);let y=[...t];return y[c]=n(_),y[c+1]=n(v),y}function h(e,n){if(!(!n.collapsible.value||e===void 0))return e<=i(n)+t?`collapsed`:`expanded`}function g(e,t=100){let i=o(e),s=Math.min(a(e,r(e)),t);return{min:n(i),max:n(s)}}export{d as areLayoutsEqual,f as getDefaultLayout,g as getPanelBounds,h as getPanelState,p as normalizeLayout,m as resizeLayoutPair,u as sortPanels};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{areLayoutsEqual as r,getDefaultLayout as i,getPanelBounds as a,getPanelState as o,normalizeLayout as s,resizeLayoutPair as c,sortPanels as l}from"./shared.js";import{provideSplitterGroupContext as u,useSplitterUi as d}from"./context.js";import{computed as f,createBlock as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,shallowRef as v,unref as y,useId as b,withCtx as x}from"vue";const S=m({name:`SplitterGroup`,__name:`splitter-group`,props:{direction:{default:`horizontal`},dir:{default:void 0},defaultLayout:{default:void 0},keyboardResizeBy:{default:10},asChild:{type:Boolean},as:{}},emits:[`layout`],setup(m,{emit:S}){let C=m,w=S,[T,E]=e(),D=d(`root`),O=t(C,[`direction`,`dir`,`defaultLayout`,`keyboardResizeBy`]),k=v([]),A=v([]),j=v({}),M=v({}),N=v({}),P=0,F=f(()=>C.direction===`vertical`?`vertical`:`horizontal`),I=f(()=>C.dir),L=f(()=>Math.max(C.keyboardResizeBy,1)),R=f(()=>l(k.value)),z=`soybean-splitter-group-${b()}`;function B(){return new Map(R.value.map((e,t)=>[e.id,A.value[t]]))}function V(e){let t={...j.value},n={...M.value};R.value.forEach((r,i)=>{let a=e[i],s=j.value[r.id];r.onResize(a,s);let c=o(a,r)===`collapsed`,l=M.value[r.id];c!==l&&(c?r.onCollapse():l!==void 0&&r.onExpand()),c||(N.value={...N.value,[r.id]:a}),t[r.id]=a,n[r.id]=c}),j.value=t,M.value=n}function H(e){r(A.value,e)||(A.value=e,w(`layout`,e),V(e))}function U(){let e=A.value.length===R.value.length?B():void 0;H(s(C.defaultLayout?.length===R.value.length?C.defaultLayout:i(R.value,e),R.value))}function W(e){return R.value.findIndex(t=>t.id===e)}function G(){let e=T.value?.getBoundingClientRect();return e?F.value===`vertical`?e.height:e.width:0}function K(e,t){H(c(A.value,R.value,e,t))}function q(e){return R.value[e]}function J(e){let t=W(e),n=R.value[t];if(n)return a(n,t<R.value.length-1?(A.value[t]??0)+(A.value[t+1]??0):t>0?(A.value[t-1]??0)+(A.value[t]??0):100)}function Y(e,t){let n=W(e);if(!(n<0)){if(n<R.value.length-1){K(n,t-(A.value[n]??0));return}if(n>0){let e=A.value[n]??0,r=A.value[n-1]??0,i=e+r;K(n-1,i-t-r)}}}function X(e){let t=R.value.find(t=>t.id===e);if(!t?.collapsible.value)return;let n=Q(e);n!==void 0&&n>t.collapsedSize.value&&(N.value={...N.value,[e]:n}),Y(e,t.collapsedSize.value)}function Z(e){let t=R.value.find(t=>t.id===e);if(!t)return;let n=N.value[e]??t.defaultSize.value??t.minSize.value;Y(e,Math.max(n,t.minSize.value))}function Q(e){let t=W(e);if(!(t<0))return A.value[t]}function $(e){let t=R.value.find(t=>t.id===e),n=Q(e);return t?o(n,t)===`collapsed`:!1}function ee(e){return{flexBasis:`0px`,flexGrow:Q(e)??0,flexShrink:1,overflow:`hidden`}}function te(e){k.value=[...k.value,{...e,registrationIndex:P}],P+=1,U()}function ne(e){k.value=k.value.filter(t=>t.id!==e),U()}let{dir:re}=u({direction:F,dir:I,keyboardResizeBy:L,groupId:z,layout:A,rootElement:T,registerPanel:te,unregisterPanel:ne,refreshLayout:U,getPanelStyle:ee,getPanelSize:Q,isPanelCollapsed:$,collapsePanel:X,expandPanel:Z,resizePanel:Y,resizePanelPair:K,getPanelRecordByIndex:q,getPanelBounds:J,getGroupSize:G});return U(),(e,t)=>(g(),p(y(n),h(y(O),{ref:y(E),as:m.as,"as-child":m.asChild,"data-soybean-splitter-group":``,class:y(D),dir:y(re),"data-orientation":F.value,"data-panel-group-direction":F.value,"data-splitter-group-id":z}),{default:x(()=>[_(e.$slots,`default`,{layout:A.value})]),_:3},16,[`as`,`as-child`,`class`,`dir`,`data-orientation`,`data-panel-group-direction`]))}});export{S as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{areLayoutsEqual as r,getDefaultLayout as i,getPanelBounds as a,getPanelState as o,normalizeLayout as s,resizeLayoutPair as c,sortPanels as l}from"./shared.js";import{provideSplitterGroupContext as u,useSplitterUi as d}from"./context.js";import{computed as f,createBlock as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,shallowRef as v,unref as y,useId as b,withCtx as x}from"vue";const S=m({name:`SplitterGroup`,__name:`splitter-group`,props:{direction:{default:`horizontal`},dir:{default:void 0},defaultLayout:{default:void 0},keyboardResizeBy:{default:10},asChild:{type:Boolean},as:{}},emits:[`layout`],setup(m,{emit:S}){let C=m,w=S,[T,E]=e(),D=d(`root`),O=t(C,[`direction`,`dir`,`defaultLayout`,`keyboardResizeBy`]),k=v([]),A=v([]),j=v({}),M=v({}),N=v({}),P=0,F=f(()=>C.direction===`vertical`?`vertical`:`horizontal`),I=f(()=>C.dir),L=f(()=>Math.max(C.keyboardResizeBy,1)),R=f(()=>l(k.value)),z=`soybean-splitter-group-${b()}`;function B(){return new Map(R.value.map((e,t)=>[e.id,A.value[t]]))}function V(e){let t={...j.value},n={...M.value};R.value.forEach((r,i)=>{let a=e[i],s=j.value[r.id];r.onResize(a,s);let c=o(a,r)===`collapsed`,l=M.value[r.id];c!==l&&(c?r.onCollapse():l!==void 0&&r.onExpand()),c||(N.value={...N.value,[r.id]:a}),t[r.id]=a,n[r.id]=c}),j.value=t,M.value=n}function H(e){r(A.value,e)||(A.value=e,w(`layout`,e),V(e))}function U(){let e=A.value.length===R.value.length?B():void 0,t=C.defaultLayout?.length===R.value.length?C.defaultLayout:i(R.value,e);H(s(t,R.value))}function W(e){return R.value.findIndex(t=>t.id===e)}function G(){let e=T.value?.getBoundingClientRect();return e?F.value===`vertical`?e.height:e.width:0}function K(e,t){H(c(A.value,R.value,e,t))}function q(e){return R.value[e]}function J(e){let t=W(e),n=R.value[t];if(!n)return;let r=t<R.value.length-1?(A.value[t]??0)+(A.value[t+1]??0):t>0?(A.value[t-1]??0)+(A.value[t]??0):100;return a(n,r)}function Y(e,t){let n=W(e);if(!(n<0)){if(n<R.value.length-1){K(n,t-(A.value[n]??0));return}if(n>0){let e=A.value[n]??0,r=A.value[n-1]??0,i=e+r;K(n-1,i-t-r)}}}function X(e){let t=R.value.find(t=>t.id===e);if(!t?.collapsible.value)return;let n=Q(e);n!==void 0&&n>t.collapsedSize.value&&(N.value={...N.value,[e]:n}),Y(e,t.collapsedSize.value)}function Z(e){let t=R.value.find(t=>t.id===e);if(!t)return;let n=N.value[e]??t.defaultSize.value??t.minSize.value;Y(e,Math.max(n,t.minSize.value))}function Q(e){let t=W(e);if(!(t<0))return A.value[t]}function $(e){let t=R.value.find(t=>t.id===e),n=Q(e);return t?o(n,t)===`collapsed`:!1}function ee(e){return{flexBasis:`0px`,flexGrow:Q(e)??0,flexShrink:1,overflow:`hidden`}}function te(e){k.value=[...k.value,{...e,registrationIndex:P}],P+=1,U()}function ne(e){k.value=k.value.filter(t=>t.id!==e),U()}let{dir:re}=u({direction:F,dir:I,keyboardResizeBy:L,groupId:z,layout:A,rootElement:T,registerPanel:te,unregisterPanel:ne,refreshLayout:U,getPanelStyle:ee,getPanelSize:Q,isPanelCollapsed:$,collapsePanel:X,expandPanel:Z,resizePanel:Y,resizePanelPair:K,getPanelRecordByIndex:q,getPanelBounds:J,getGroupSize:G});return U(),(e,t)=>(g(),p(y(n),h(y(O),{ref:y(E),as:m.as,"as-child":m.asChild,"data-soybean-splitter-group":``,class:y(D),dir:y(re),"data-orientation":F.value,"data-panel-group-direction":F.value,"data-splitter-group-id":z}),{default:x(()=>[_(e.$slots,`default`,{layout:A.value})]),_:3},16,[`as`,`as-child`,`class`,`dir`,`data-orientation`,`data-panel-group-direction`]))}});export{S as default};
@@ -1,5 +1,6 @@
1
1
  import { DataOrientation, Direction } from "../../types/common.js";
2
2
  import { SplitterGroupProps } from "./types.js";
3
+ import "../../index.js";
3
4
  //#region src/components/splitter/splitter-group.vue.d.ts
4
5
  declare var __VLS_8: {
5
6
  layout: number[];
@@ -25,4 +26,4 @@ type __VLS_WithSlots<T, S> = T & {
25
26
  };
26
27
  };
27
28
  //#endregion
28
- export { _default };
29
+ export { _default as default };
@@ -1,5 +1,4 @@
1
1
  import { SplitterPanelProps } from "./types.js";
2
-
3
2
  //#region src/components/splitter/splitter-panel.vue.d.ts
4
3
  declare function collapse(): void;
5
4
  declare function expand(): void;
@@ -45,4 +44,4 @@ type __VLS_WithSlots<T, S> = T & {
45
44
  };
46
45
  };
47
46
  //#endregion
48
- export { _default };
47
+ export { _default as default };
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{useSplitterGroupContext as r,useSplitterUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,mergeProps as c,onBeforeUnmount as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,withCtx as m}from"vue";const h=s({name:`SplitterResizeHandle`,__name:`splitter-resize-handle`,props:{disabled:{type:Boolean,default:!1},tabindex:{default:0},asChild:{type:Boolean},as:{}},emits:[`dragging`],setup(s,{emit:h}){let g=s,_=h,[v,y]=e(),b=i(`resizeHandle`),x=t(g,[`disabled`,`tabindex`]),{direction:S,dir:C,groupId:w,keyboardResizeBy:T,layout:E,rootElement:D,collapsePanel:O,expandPanel:k,resizePanelPair:A,getPanelRecordByIndex:j,getPanelBounds:M,getGroupSize:N}=r(`SplitterResizeHandle`),P=f(`inactive`),F=f(!1),I=f(null),L=f(0),R=a(()=>!D.value||!v.value?-1:Array.from(D.value.querySelectorAll(`[data-panel-group-id="${w}"][data-splitter-resize-handle]`)).findIndex(e=>e===v.value)),z=a(()=>j(R.value)),B=a(()=>E.value[R.value]),V=a(()=>{let e=z.value;if(e)return M(e.id)}),H=a(()=>{if(B.value!==void 0)return String(Number(B.value.toFixed(1)))}),U=a(()=>{if(V.value)return String(V.value.min)}),W=a(()=>{if(V.value)return String(V.value.max)}),G=a(()=>z.value?.id);function K(e){return S.value===`vertical`?e.clientY:e.clientX}function q(e){let t=K(e),n=t-L.value;L.value=t;let r=N();if(r<=0)return 0;let i=n/r*100;return S.value===`horizontal`&&C.value===`rtl`&&(i*=-1),i}let J=null;function Y(){J?.(),J=null}function X(e){e!==void 0&&I.value!==e||(I.value=null,P.value=`hover`,Y(),_(`dragging`,!1))}function Z(e){if(g.disabled||R.value<0)return;e.preventDefault(),I.value=e.pointerId,L.value=K(e),P.value=`drag`,_(`dragging`,!0);let t=v.value?.ownerDocument;if(!t)return;let n=e=>{I.value===e.pointerId&&A(R.value,q(e))},r=e=>{X(e.pointerId)};t.addEventListener(`pointermove`,n),t.addEventListener(`pointerup`,r),t.addEventListener(`pointercancel`,r),J=()=>{t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerup`,r),t.removeEventListener(`pointercancel`,r)}}function Q(e){if(g.disabled||R.value<0)return;let t=z.value;if(!t)return;let n=T.value??10,r=0;if(e.key===`Enter`&&t.collapsible.value){e.preventDefault(),B.value!==void 0&&B.value<=t.collapsedSize.value+.1?k(t.id):O(t.id);return}if(e.key===`Home`){e.preventDefault(),A(R.value,(V.value?.min??0)-(B.value??0));return}if(e.key===`End`){e.preventDefault(),A(R.value,(V.value?.max??0)-(B.value??0));return}S.value===`vertical`?(e.key===`ArrowDown`&&(r=n),e.key===`ArrowUp`&&(r=-n)):C.value===`rtl`?(e.key===`ArrowLeft`&&(r=n),e.key===`ArrowRight`&&(r=-n)):(e.key===`ArrowRight`&&(r=n),e.key===`ArrowLeft`&&(r=-n)),r!==0&&(e.preventDefault(),A(R.value,r))}return l(()=>{Y()}),(e,t)=>(u(),o(p(n),c(p(x),{ref:p(y),as:s.as,"as-child":s.asChild,"data-soybean-splitter-resize-handle":``,class:p(b),role:`separator`,"data-splitter-resize-handle":``,tabindex:s.disabled?void 0:s.tabindex,"data-panel-group-id":p(w),"data-state":P.value,"data-disabled":s.disabled?``:void 0,"data-orientation":p(S),"aria-controls":G.value,"aria-disabled":s.disabled?`true`:void 0,"aria-orientation":p(S),"aria-valuenow":H.value,"aria-valuemin":U.value,"aria-valuemax":W.value,onBlur:t[0]||(t[0]=e=>F.value=!1),onFocus:t[1]||(t[1]=e=>F.value=!0),onKeydown:Q,onMouseenter:t[2]||(t[2]=e=>P.value=I.value===null?`hover`:P.value),onMouseleave:t[3]||(t[3]=e=>P.value=I.value===null?`inactive`:P.value),onPointerdown:Z}),{default:m(()=>[d(e.$slots,`default`,{active:P.value===`drag`,focused:F.value})]),_:3},16,[`as`,`as-child`,`class`,`tabindex`,`data-panel-group-id`,`data-state`,`data-disabled`,`data-orientation`,`aria-controls`,`aria-disabled`,`aria-orientation`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`]))}});export{h as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{useSplitterGroupContext as r,useSplitterUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,mergeProps as c,onBeforeUnmount as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,withCtx as m}from"vue";const h=s({name:`SplitterResizeHandle`,__name:`splitter-resize-handle`,props:{disabled:{type:Boolean,default:!1},tabindex:{default:0},asChild:{type:Boolean},as:{}},emits:[`dragging`],setup(s,{emit:h}){let g=s,_=h,[v,y]=e(),b=i(`resizeHandle`),x=t(g,[`disabled`,`tabindex`]),{direction:S,dir:C,groupId:w,keyboardResizeBy:T,layout:E,rootElement:D,collapsePanel:O,expandPanel:k,resizePanelPair:A,getPanelRecordByIndex:j,getPanelBounds:M,getGroupSize:N}=r(`SplitterResizeHandle`),P=f(`inactive`),F=f(!1),I=f(null),L=f(0),R=a(()=>!D.value||!v.value?-1:Array.from(D.value.querySelectorAll(`[data-panel-group-id="${w}"][data-splitter-resize-handle]`)).findIndex(e=>e===v.value)),z=a(()=>j(R.value)),B=a(()=>E.value[R.value]),V=a(()=>{let e=z.value;if(e)return M(e.id)}),H=a(()=>{if(B.value!==void 0)return String(Number(B.value.toFixed(1)))}),U=a(()=>{if(V.value)return String(V.value.min)}),W=a(()=>{if(V.value)return String(V.value.max)}),G=a(()=>z.value?.id);function K(e){return S.value===`vertical`?e.clientY:e.clientX}function q(e){let t=K(e),n=t-L.value;L.value=t;let r=N();if(r<=0)return 0;let i=n/r*100;return S.value===`horizontal`&&C.value===`rtl`&&(i*=-1),i}let J=null;function Y(){J?.(),J=null}function X(e){(e===void 0||I.value===e)&&(I.value=null,P.value=`hover`,Y(),_(`dragging`,!1))}function Z(e){if(g.disabled||R.value<0)return;e.preventDefault(),I.value=e.pointerId,L.value=K(e),P.value=`drag`,_(`dragging`,!0);let t=v.value?.ownerDocument;if(!t)return;let n=e=>{I.value===e.pointerId&&A(R.value,q(e))},r=e=>{X(e.pointerId)};t.addEventListener(`pointermove`,n),t.addEventListener(`pointerup`,r),t.addEventListener(`pointercancel`,r),J=()=>{t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerup`,r),t.removeEventListener(`pointercancel`,r)}}function Q(e){if(g.disabled||R.value<0)return;let t=z.value;if(!t)return;let n=T.value??10,r=0;if(e.key===`Enter`&&t.collapsible.value){e.preventDefault(),B.value!==void 0&&B.value<=t.collapsedSize.value+.1?k(t.id):O(t.id);return}if(e.key===`Home`){e.preventDefault(),A(R.value,(V.value?.min??0)-(B.value??0));return}if(e.key===`End`){e.preventDefault(),A(R.value,(V.value?.max??0)-(B.value??0));return}S.value===`vertical`?(e.key===`ArrowDown`&&(r=n),e.key===`ArrowUp`&&(r=-n)):C.value===`rtl`?(e.key===`ArrowLeft`&&(r=n),e.key===`ArrowRight`&&(r=-n)):(e.key===`ArrowRight`&&(r=n),e.key===`ArrowLeft`&&(r=-n)),r!==0&&(e.preventDefault(),A(R.value,r))}return l(()=>{Y()}),(e,t)=>(u(),o(p(n),c(p(x),{ref:p(y),as:s.as,"as-child":s.asChild,"data-soybean-splitter-resize-handle":``,class:p(b),role:`separator`,"data-splitter-resize-handle":``,tabindex:s.disabled?void 0:s.tabindex,"data-panel-group-id":p(w),"data-state":P.value,"data-disabled":s.disabled?``:void 0,"data-orientation":p(S),"aria-controls":G.value,"aria-disabled":s.disabled?`true`:void 0,"aria-orientation":p(S),"aria-valuenow":H.value,"aria-valuemin":U.value,"aria-valuemax":W.value,onBlur:t[0]||(t[0]=e=>F.value=!1),onFocus:t[1]||(t[1]=e=>F.value=!0),onKeydown:Q,onMouseenter:t[2]||(t[2]=e=>P.value=I.value===null?`hover`:P.value),onMouseleave:t[3]||(t[3]=e=>P.value=I.value===null?`inactive`:P.value),onPointerdown:Z}),{default:m(()=>[d(e.$slots,`default`,{active:P.value===`drag`,focused:F.value})]),_:3},16,[`as`,`as-child`,`class`,`tabindex`,`data-panel-group-id`,`data-state`,`data-disabled`,`data-orientation`,`aria-controls`,`aria-disabled`,`aria-orientation`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`]))}});export{h as default};
@@ -1,5 +1,4 @@
1
1
  import { SplitterResizeHandleProps } from "./types.js";
2
-
3
2
  //#region src/components/splitter/splitter-resize-handle.vue.d.ts
4
3
  declare var __VLS_15: {
5
4
  active: boolean;
@@ -13,8 +12,8 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterResizeHandleProp
13
12
  }, string, import("vue").PublicProps, Readonly<SplitterResizeHandleProps> & Readonly<{
14
13
  onDragging?: ((value: boolean) => any) | undefined;
15
14
  }>, {
16
- tabindex: number;
17
15
  disabled: boolean;
16
+ tabindex: number;
18
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
19
  declare const _default: typeof __VLS_export;
@@ -24,4 +23,4 @@ type __VLS_WithSlots<T, S> = T & {
24
23
  };
25
24
  };
26
25
  //#endregion
27
- export { _default };
26
+ export { _default as default };
@@ -1,8 +1,8 @@
1
1
  import { DataOrientation, Direction, UiClass } from "../../types/common.js";
2
2
  import { PropsToContext } from "../../types/vue.js";
3
+ import "../../types/index.js";
3
4
  import { PrimitiveWithBaseProps } from "../primitive/types.js";
4
5
  import { CSSProperties, ComputedRef, ShallowRef } from "vue";
5
-
6
6
  //#region src/components/splitter/types.d.ts
7
7
  /**
8
8
  * Properties for the SplitterGroup component.
@@ -238,4 +238,4 @@ type SplitterUiSlot = 'root' | 'panel' | 'resizeHandle';
238
238
  */
239
239
  type SplitterUi = UiClass<SplitterUiSlot>;
240
240
  //#endregion
241
- export { SplitterGroupContext, SplitterGroupEmits, SplitterGroupProps, SplitterPanelEmits, SplitterPanelProps, SplitterResizeHandleEmits, SplitterResizeHandleProps, SplitterUi, SplitterUiSlot };
241
+ export { SplitterGroupContext, SplitterGroupEmits, SplitterGroupProps, SplitterPanelEmits, SplitterPanelProps, SplitterPanelRecord, SplitterPanelRegistration, SplitterResizeHandleEmits, SplitterResizeHandleProps, SplitterUi, SplitterUiSlot };
@@ -1,6 +1,8 @@
1
1
  import { UiClass } from "../../types/common.js";
2
2
  import { UseUiConsumer } from "../../composables/use-ui-context.js";
3
+ import "../../composables/index.js";
3
4
  import { StepperUiSlot } from "./types.js";
5
+ import "../../index.js";
4
6
  //#region src/components/stepper/context.d.ts
5
7
  declare const provideStepperUi: (ui: import("vue").ComputedRef<Partial<UiClass<StepperUiSlot>>>) => import("vue").ComputedRef<Partial<UiClass<StepperUiSlot>>>, useStepperUi: UseUiConsumer<StepperUiSlot>;
6
8
  //#endregion
@@ -1,11 +1,11 @@
1
1
  import { StepperCompactEmits, StepperCompactProps, StepperCompactSlots, StepperDescriptionProps, StepperIndicatorProps, StepperItemData, StepperItemProps, StepperRootEmits, StepperRootProps, StepperSeparatorProps, StepperState, StepperTitleProps, StepperTriggerProps, StepperUi, StepperUiSlot } from "./types.js";
2
- import { _default as _default$4 } from "./stepper-root.vue.js";
3
- import { _default as _default$3 } from "./stepper-item.vue.js";
4
- import { _default as _default$7 } from "./stepper-trigger.vue.js";
5
- import { _default as _default$2 } from "./stepper-indicator.vue.js";
6
- import { _default as _default$5 } from "./stepper-separator.vue.js";
7
- import { _default as _default$6 } from "./stepper-title.vue.js";
8
- import { _default as _default$1 } from "./stepper-description.vue.js";
9
- import { _default } from "./stepper-compact.vue.js";
2
+ import _default$4 from "./stepper-root.vue.js";
3
+ import _default$3 from "./stepper-item.vue.js";
4
+ import _default$7 from "./stepper-trigger.vue.js";
5
+ import _default$2 from "./stepper-indicator.vue.js";
6
+ import _default$5 from "./stepper-separator.vue.js";
7
+ import _default$6 from "./stepper-title.vue.js";
8
+ import _default$1 from "./stepper-description.vue.js";
9
+ import _default from "./stepper-compact.vue.js";
10
10
  import { provideStepperUi } from "./context.js";
11
11
  export { _default as StepperCompact, type StepperCompactEmits, type StepperCompactProps, type StepperCompactSlots, _default$1 as StepperDescription, type StepperDescriptionProps, _default$2 as StepperIndicator, type StepperIndicatorProps, _default$3 as StepperItem, type StepperItemData, type StepperItemProps, _default$4 as StepperRoot, type StepperRootEmits, type StepperRootProps, _default$5 as StepperSeparator, type StepperSeparatorProps, type StepperState, _default$6 as StepperTitle, type StepperTitleProps, _default$7 as StepperTrigger, type StepperTriggerProps, type StepperUi, type StepperUiSlot, provideStepperUi };
@@ -1 +1 @@
1
- import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../_icon/icon.js";import{useStepperUi as r}from"./context.js";import i from"./stepper-root.js";import a from"./stepper-item.js";import o from"./stepper-trigger.js";import s from"./stepper-indicator.js";import c from"./stepper-separator.js";import l from"./stepper-title.js";import u from"./stepper-description.js";import{Fragment as d,computed as f,createBlock as p,createCommentVNode as m,createElementBlock as h,createElementVNode as g,createTextVNode as _,createVNode as v,defineComponent as y,mergeProps as b,normalizeClass as x,openBlock as S,renderList as C,renderSlot as w,toDisplayString as T,toHandlers as E,unref as D,useSlots as O,withCtx as k}from"vue";const A={key:1},j=y({name:`StepperCompact`,__name:`stepper-compact`,props:{items:{},itemProps:{},triggerProps:{},indicatorProps:{},separatorProps:{},titleProps:{},descriptionProps:{},defaultValue:{},modelValue:{},orientation:{},dir:{},linear:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(y,{emit:j}){let M=y,N=j,P=O(),F=t(M,[`items`,`itemProps`,`triggerProps`,`indicatorProps`,`separatorProps`,`titleProps`,`descriptionProps`]),I=e(N),L=f(()=>M.items.map((e,t)=>({...e,step:t+1}))),R=r();return(e,t)=>(S(),p(i,b(D(F),E(D(I))),{default:k(t=>[(S(!0),h(d,null,C(L.value,(r,i)=>(S(),p(a,b({key:r.step,ref_for:!0},y.itemProps,{step:r.step,disabled:r.disabled,completed:r.completed}),{default:k(a=>[w(e.$slots,`item`,b({ref_for:!0},{...r,...t,...a}),()=>[v(o,b({ref_for:!0},y.triggerProps),{default:k(()=>[v(s,b({ref_for:!0},y.indicatorProps),{default:k(()=>[w(e.$slots,`indicator`,b({ref_for:!0},{...r,...t,...a}),()=>[a.state===`completed`?(S(),p(n,{key:0,icon:`lucide:check`,class:x(D(R).indicatorIcon),"aria-hidden":!0},null,8,[`class`])):(S(),h(`span`,A,T(r.step),1))])]),_:2},1040),g(`div`,{class:x(D(R).itemContent)},[v(l,b({ref_for:!0},y.titleProps),{default:k(()=>[w(e.$slots,`title`,b({ref_for:!0},{...r,...t,...a}),()=>[_(T(r.title??`Step ${r.step}`),1)])]),_:2},1040),r.description||P.description?(S(),p(u,b({key:0,ref_for:!0},y.descriptionProps),{default:k(()=>[w(e.$slots,`description`,b({ref_for:!0},{...r,...t,...a}),()=>[_(T(r.description),1)])]),_:2},1040)):m(`v-if`,!0)],2)]),_:2},1040),i<L.value.length-1?w(e.$slots,`separator`,b({key:0,ref_for:!0},{...r,...t,...a}),()=>[v(c,b({ref_for:!0},y.separatorProps),null,16)]):m(`v-if`,!0)])]),_:2},1040,[`step`,`disabled`,`completed`]))),128))]),_:3},16))}});export{j as default};
1
+ import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../_icon/icon.js";import{useStepperUi as r}from"./context.js";import i from"./stepper-root.js";import a from"./stepper-item.js";import o from"./stepper-trigger.js";import s from"./stepper-indicator.js";import c from"./stepper-separator.js";import l from"./stepper-title.js";import u from"./stepper-description.js";import{Fragment as d,computed as f,createBlock as p,createCommentVNode as m,createElementBlock as h,createElementVNode as g,createTextVNode as _,createVNode as v,defineComponent as y,mergeProps as b,normalizeClass as x,openBlock as S,renderList as C,renderSlot as w,toDisplayString as T,toHandlers as E,unref as D,useSlots as O,withCtx as k}from"vue";const A={key:1},j=y({name:`StepperCompact`,__name:`stepper-compact`,props:{items:{},itemProps:{},triggerProps:{},indicatorProps:{},separatorProps:{},titleProps:{},descriptionProps:{},defaultValue:{},modelValue:{},orientation:{},dir:{},linear:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(y,{emit:j}){let M=y,N=j,P=O(),F=t(M,[`items`,`itemProps`,`triggerProps`,`indicatorProps`,`separatorProps`,`titleProps`,`descriptionProps`]),I=e(N),L=f(()=>M.items.map((e,t)=>({...e,step:t+1}))),R=r();return(e,t)=>(S(),p(i,b(D(F),E(D(I))),{default:k(t=>[(S(!0),h(d,null,C(L.value,(r,i)=>(S(),p(a,b({key:r.step,ref_for:!0},y.itemProps,{step:r.step,disabled:r.disabled,completed:r.completed}),{default:k(a=>[w(e.$slots,`item`,b({ref_for:!0},{...r,...t,...a}),()=>[v(o,b({ref_for:!0},y.triggerProps),{default:k(()=>[v(s,b({ref_for:!0},y.indicatorProps),{default:k(()=>[w(e.$slots,`indicator`,b({ref_for:!0},{...r,...t,...a}),()=>[a.state===`completed`?(S(),p(n,{key:0,icon:`lucide:check`,class:x(D(R).indicatorIcon),"aria-hidden":!0},null,8,[`class`])):(S(),h(`span`,A,T(r.step),1))])]),_:2},1040),g(`div`,{class:x(D(R).itemContent)},[v(l,b({ref_for:!0},y.titleProps),{default:k(()=>[w(e.$slots,`title`,b({ref_for:!0},{...r,...t,...a}),()=>[_(T(r.title??`Step ${r.step}`),1)])]),_:2},1040),r.description||P.description?(S(),p(u,b({key:0,ref_for:!0},y.descriptionProps),{default:k(()=>[w(e.$slots,`description`,b({ref_for:!0},{...r,...t,...a}),()=>[_(T(r.description),1)])]),_:2},1040)):m(`v-if`,!0)],2)]),_:2},1040),i<L.value.length-1?w(e.$slots,`separator`,b({ref_for:!0},{...r,...t,...a}),()=>[v(c,b({ref_for:!0},y.separatorProps),null,16)],void 0,0):m(`v-if`,!0)])]),_:2},1040,[`step`,`disabled`,`completed`]))),128))]),_:3},16))}});export{j as default};
@@ -1,5 +1,4 @@
1
1
  import { StepperCompactProps, StepperCompactSlots } from "./types.js";
2
-
3
2
  //#region src/components/stepper/stepper-compact.vue.d.ts
4
3
  type __VLS_Slots = StepperCompactSlots;
5
4
  declare const __VLS_base: import("vue").DefineComponent<StepperCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -15,4 +14,4 @@ type __VLS_WithSlots<T, S> = T & {
15
14
  };
16
15
  };
17
16
  //#endregion
18
- export { _default };
17
+ export { _default as default };
@@ -1,6 +1,6 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
+ import "../primitive/index.js";
2
3
  import { StepperDescriptionProps } from "./types.js";
3
-
4
4
  //#region src/components/stepper/stepper-description.vue.d.ts
5
5
  declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
@@ -17,4 +17,4 @@ type __VLS_WithSlots<T, S> = T & {
17
17
  };
18
18
  };
19
19
  //#endregion
20
- export { _default };
20
+ export { _default as default };
@@ -1,6 +1,6 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
+ import "../primitive/index.js";
2
3
  import { StepperIndicatorProps } from "./types.js";
3
-
4
4
  //#region src/components/stepper/stepper-indicator.vue.d.ts
5
5
  declare var __VLS_8: {
6
6
  step: number;
@@ -19,4 +19,4 @@ type __VLS_WithSlots<T, S> = T & {
19
19
  };
20
20
  };
21
21
  //#endregion
22
- export { _default };
22
+ export { _default as default };
@@ -1 +1 @@
1
- import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{provideStepperItemContext as r,useStepperRootContext as i,useStepperUi as a}from"./context.js";import{computed as o,createBlock as s,defineComponent as c,mergeProps as l,openBlock as u,renderSlot as d,unref as f,withCtx as p}from"vue";const m=c({name:`StepperItem`,__name:`stepper-item`,props:{step:{},disabled:{type:Boolean,default:!1},completed:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},setup(c){let m=c,h=a(`item`),g=t(m,[`step`,`disabled`,`completed`]),{modelValue:_,linear:v,orientation:y}=i(`StepperItem`),b=o(()=>_.value??1),x=o(()=>m.completed?`completed`:b.value===m.step?`active`:b.value>m.step?`completed`:`inactive`),S=o(()=>m.disabled?!1:v.value?m.step<=b.value||m.step===b.value+1:!0),C=o(()=>m.disabled||!S.value?``:void 0);return r({...e(m,[`step`,`disabled`,`completed`]),state:x,isFocusable:S,dataDisabled:C}),(e,t)=>(u(),s(f(n),l(f(g),{as:c.as,"as-child":c.asChild,"data-soybean-stepper-item":``,class:f(h),"aria-current":x.value===`active`?`step`:void 0,"data-disabled":C.value,"data-orientation":f(y),"data-state":x.value}),{default:p(()=>[d(e.$slots,`default`,{state:x.value})]),_:3},16,[`as`,`as-child`,`class`,`aria-current`,`data-disabled`,`data-orientation`,`data-state`]))}});export{m as default};
1
+ import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{provideStepperItemContext as r,useStepperRootContext as i,useStepperUi as a}from"./context.js";import{computed as o,createBlock as s,defineComponent as c,mergeProps as l,openBlock as u,renderSlot as d,unref as f,withCtx as p}from"vue";const m=c({name:`StepperItem`,__name:`stepper-item`,props:{step:{},disabled:{type:Boolean,default:!1},completed:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},setup(c){let m=c,h=a(`item`),g=t(m,[`step`,`disabled`,`completed`]),{modelValue:_,linear:v,orientation:y}=i(`StepperItem`),b=o(()=>_.value??1),x=o(()=>m.completed?`completed`:b.value===m.step?`active`:b.value>m.step?`completed`:`inactive`),S=o(()=>m.disabled?!1:!v.value||m.step<=b.value||m.step===b.value+1),C=o(()=>m.disabled||!S.value?``:void 0);return r({...e(m,[`step`,`disabled`,`completed`]),state:x,isFocusable:S,dataDisabled:C}),(e,t)=>(u(),s(f(n),l(f(g),{as:c.as,"as-child":c.asChild,"data-soybean-stepper-item":``,class:f(h),"aria-current":x.value===`active`?`step`:void 0,"data-disabled":C.value,"data-orientation":f(y),"data-state":x.value}),{default:p(()=>[d(e.$slots,`default`,{state:x.value})]),_:3},16,[`as`,`as-child`,`class`,`aria-current`,`data-disabled`,`data-orientation`,`data-state`]))}});export{m as default};
@@ -1,5 +1,4 @@
1
1
  import { StepperItemProps, StepperState } from "./types.js";
2
-
3
2
  //#region src/components/stepper/stepper-item.vue.d.ts
4
3
  declare var __VLS_8: {
5
4
  state: StepperState;
@@ -19,4 +18,4 @@ type __VLS_WithSlots<T, S> = T & {
19
18
  };
20
19
  };
21
20
  //#endregion
22
- export { _default };
21
+ export { _default as default };
@@ -1 +1 @@
1
- import{getCollectionItemElements as e,isElementHasAttribute as t}from"../../shared/dom.js";import{transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import{useOmitProps as a}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import s from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{provideStepperRootContext as c,useStepperUi as l}from"./context.js";import{computed as u,createBlock as d,createCommentVNode as f,createTextVNode as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,shallowRef as v,toDisplayString as y,unref as b,useAttrs as x,withCtx as S}from"vue";const C=m({name:`StepperRoot`,__name:`stepper-root`,props:{defaultValue:{default:1},modelValue:{default:void 0},orientation:{default:`horizontal`},dir:{},linear:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(m,{expose:C,emit:w}){let T=m,E=w,D=x(),O=l(`root`),k=r(()=>T.modelValue,e=>{E(`update:modelValue`,e)},T.defaultValue),A=a(T,[`defaultValue`,`modelValue`,`orientation`,`dir`,`linear`]),[j,M]=i(),N=v([]),P=u(()=>j.value?e(j.value).filter(e=>N.value.includes(e)):N.value),F=u(()=>P.value.length),I=u(()=>k.value??1),L=u(()=>I.value===1),R=u(()=>F.value>0&&I.value===F.value),z=u(()=>P.value[I.value]),B=u(()=>P.value[I.value-2]),V=u(()=>z.value?t(z.value,`disabled`):!0),H=u(()=>B.value?t(B.value,`disabled`):!0),U=e=>{if(e<1||e>F.value)return!1;let n=P.value[e-1];return!(!n||t(n,`disabled`)||T.linear&&e>I.value+1)},W=e=>{U(e)&&(k.value=e)},G=()=>{W(I.value+1)},K=()=>{W(I.value-1)},q=()=>I.value<F.value,J=()=>I.value>1;function Y(e){return typeof e==`string`&&e.trim().length>0?e:void 0}let X=u(()=>Y(D[`aria-label`])??`Step-by-step progress`),Z=e=>{N.value.includes(e)||(N.value=[...N.value,e])},Q=e=>{e&&(N.value=N.value.filter(t=>t!==e))},{dir:$}=c({...n(T,[`orientation`,`dir`,`linear`]),modelValue:k,stepperItems:P,totalSteps:F,changeModelValue:W,registerStepperItem:Z,unregisterStepperItem:Q});return C({modelValue:k,totalSteps:F,isNextDisabled:V,isPrevDisabled:H,isFirstStep:L,isLastStep:R,goToStep:W,nextStep:G,prevStep:K,hasNext:q,hasPrev:J,registerStepperItem:Z,unregisterStepperItem:Q}),(e,t)=>(g(),d(b(o),h({ref:b(M)},b(A),{as:m.as,"as-child":m.asChild,"data-soybean-stepper-root":``,class:b(O),dir:b($),role:`group`,"aria-label":X.value,"data-linear":m.linear?``:void 0,"data-orientation":m.orientation}),{default:S(()=>[_(e.$slots,`default`,{modelValue:b(k),totalSteps:F.value,isNextDisabled:V.value,isPrevDisabled:H.value,isFirstStep:L.value,isLastStep:R.value,goToStep:W,nextStep:G,prevStep:K,hasNext:q,hasPrev:J}),F.value>0?(g(),d(b(s),{key:0,as:`span`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`},{default:S(()=>[p(` Step `+y(I.value)+` of `+y(F.value),1)]),_:1})):f(`v-if`,!0)]),_:3},16,[`as`,`as-child`,`class`,`dir`,`aria-label`,`data-linear`,`data-orientation`]))}});export{C as default};
1
+ import{interpolate as e}from"../../shared/string.js";import{getCollectionItemElements as t,isElementHasAttribute as n}from"../../shared/dom.js";import{transformPropsToContext as r}from"../../shared/vue.js";import{useLocaleMessages as i}from"../../locale/hooks.js";import"../../locale/index.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{useForwardElement as o}from"../../composables/use-forward-element.js";import{useOmitProps as s}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as c}from"../primitive/primitive.js";import"../primitive/index.js";import l from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{provideStepperRootContext as u,useStepperUi as d}from"./context.js";import{computed as f,createBlock as p,createCommentVNode as m,createTextVNode as h,defineComponent as g,mergeProps as _,openBlock as v,renderSlot as ee,shallowRef as y,toDisplayString as b,unref as x,useAttrs as S,withCtx as C}from"vue";const w=g({name:`StepperRoot`,__name:`stepper-root`,props:{defaultValue:{default:1},modelValue:{default:void 0},orientation:{default:`horizontal`},dir:{},linear:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(g,{expose:w,emit:T}){let E=g,D=T,O=S(),te=d(`root`),k=i(),A=a(()=>E.modelValue,e=>{D(`update:modelValue`,e)},E.defaultValue),j=s(E,[`defaultValue`,`modelValue`,`orientation`,`dir`,`linear`]),[M,N]=o(),P=y([]),F=f(()=>M.value?t(M.value).filter(e=>P.value.includes(e)):P.value),I=f(()=>F.value.length),L=f(()=>A.value??1),R=f(()=>L.value===1),z=f(()=>I.value>0&&L.value===I.value),B=f(()=>F.value[L.value]),V=f(()=>F.value[L.value-2]),H=f(()=>!B.value||n(B.value,`disabled`)),U=f(()=>!V.value||n(V.value,`disabled`)),W=e=>{if(e<1||e>I.value)return!1;let t=F.value[e-1];return!(!t||n(t,`disabled`)||E.linear&&e>L.value+1)},G=e=>{W(e)&&(A.value=e)},K=()=>{G(L.value+1)},q=()=>{G(L.value-1)},J=()=>L.value<I.value,Y=()=>L.value>1;function X(e){return typeof e==`string`&&e.trim().length>0?e:void 0}let Z=f(()=>X(O[`aria-label`])??k.value.stepper.ariaLabel),Q=e=>{P.value.includes(e)||(P.value=[...P.value,e])},$=e=>{e&&(P.value=P.value.filter(t=>t!==e))},{dir:ne}=u({...r(E,[`orientation`,`dir`,`linear`]),modelValue:A,stepperItems:F,totalSteps:I,changeModelValue:G,registerStepperItem:Q,unregisterStepperItem:$});return w({modelValue:A,totalSteps:I,isNextDisabled:H,isPrevDisabled:U,isFirstStep:R,isLastStep:z,goToStep:G,nextStep:K,prevStep:q,hasNext:J,hasPrev:Y,registerStepperItem:Q,unregisterStepperItem:$}),(t,n)=>(v(),p(x(c),_({ref:x(N)},x(j),{as:g.as,"as-child":g.asChild,"data-soybean-stepper-root":``,class:x(te),dir:x(ne),role:`group`,"aria-label":Z.value,"data-linear":g.linear?``:void 0,"data-orientation":g.orientation}),{default:C(()=>[ee(t.$slots,`default`,{modelValue:x(A),totalSteps:I.value,isNextDisabled:H.value,isPrevDisabled:U.value,isFirstStep:R.value,isLastStep:z.value,goToStep:G,nextStep:K,prevStep:q,hasNext:J,hasPrev:Y}),I.value>0?(v(),p(x(l),{key:0,as:`span`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`},{default:C(()=>[h(b(x(e)(x(k).stepper.stepOf,{current:String(L.value),total:String(I.value)})),1)]),_:1})):m(`v-if`,!0)]),_:3},16,[`as`,`as-child`,`class`,`dir`,`aria-label`,`data-linear`,`data-orientation`]))}});export{w as default};
@@ -1,5 +1,6 @@
1
1
  import { DataOrientation } from "../../types/common.js";
2
2
  import { StepperRootProps } from "./types.js";
3
+ import "../../index.js";
3
4
  //#region src/components/stepper/stepper-root.vue.d.ts
4
5
  declare var __VLS_8: {
5
6
  modelValue: number;
@@ -49,4 +50,4 @@ type __VLS_WithSlots<T, S> = T & {
49
50
  };
50
51
  };
51
52
  //#endregion
52
- export { _default };
53
+ export { _default as default };
@@ -1,4 +1,5 @@
1
1
  import { SeparatorRootProps } from "../separator/types.js";
2
+ import "../menu/index.js";
2
3
  //#region src/components/stepper/stepper-separator.vue.d.ts
3
4
  declare var __VLS_8: {};
4
5
  type __VLS_Slots = {} & {
@@ -15,4 +16,4 @@ type __VLS_WithSlots<T, S> = T & {
15
16
  };
16
17
  };
17
18
  //#endregion
18
- export { _default };
19
+ export { _default as default };