@soybeanjs/headless 0.30.0 → 0.40.0-beta.2

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 (1111) hide show
  1. package/README.md +14 -14
  2. package/README.zh-CN.md +14 -14
  3. package/dist/components/_icon/icon.js +1 -1
  4. package/dist/components/_icon/types.d.ts +2 -3
  5. package/dist/components/accordion/accordion-compact.js +1 -1
  6. package/dist/components/accordion/accordion-content.js +1 -1
  7. package/dist/components/accordion/accordion-item.js +1 -1
  8. package/dist/components/accordion/accordion-root.js +1 -1
  9. package/dist/components/accordion/accordion-trigger.js +1 -1
  10. package/dist/components/accordion/context.d.ts +1 -1
  11. package/dist/components/accordion/context.js +1 -1
  12. package/dist/components/accordion/types.d.ts +15 -16
  13. package/dist/components/affix/affix-compact.js +1 -1
  14. package/dist/components/affix/affix-root.js +1 -1
  15. package/dist/components/affix/affix-root.vue.d.ts +1 -1
  16. package/dist/components/affix/context.d.ts +1 -1
  17. package/dist/components/affix/context.js +1 -1
  18. package/dist/components/affix/types.d.ts +11 -12
  19. package/dist/components/alert/alert-close.js +1 -1
  20. package/dist/components/alert/alert-compact.js +1 -1
  21. package/dist/components/alert/alert-compact.vue.d.ts +2 -2
  22. package/dist/components/alert/alert-root.js +1 -1
  23. package/dist/components/alert/context.d.ts +2 -2
  24. package/dist/components/alert/context.js +1 -1
  25. package/dist/components/alert/types.d.ts +13 -14
  26. package/dist/components/anchor/anchor-compact.js +1 -1
  27. package/dist/components/anchor/anchor-link.js +1 -1
  28. package/dist/components/anchor/anchor-root.js +1 -1
  29. package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
  30. package/dist/components/anchor/context.d.ts +2 -2
  31. package/dist/components/anchor/context.js +1 -1
  32. package/dist/components/anchor/shared.js +1 -1
  33. package/dist/components/anchor/types.d.ts +11 -12
  34. package/dist/components/arrow/arrow.js +1 -1
  35. package/dist/components/arrow/types.d.ts +2 -3
  36. package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
  37. package/dist/components/aspect-ratio/types.d.ts +2 -3
  38. package/dist/components/autocomplete/autocomplete-anchor.js +1 -0
  39. package/dist/components/autocomplete/autocomplete-anchor.vue.d.ts +16 -0
  40. package/dist/components/autocomplete/autocomplete-compact.js +1 -1
  41. package/dist/components/autocomplete/autocomplete-content.js +1 -0
  42. package/dist/components/autocomplete/autocomplete-content.vue.d.ts +34 -0
  43. package/dist/components/autocomplete/autocomplete-group-label.js +1 -0
  44. package/dist/components/autocomplete/autocomplete-group-label.vue.d.ts +16 -0
  45. package/dist/components/autocomplete/autocomplete-group.js +1 -0
  46. package/dist/components/autocomplete/autocomplete-group.vue.d.ts +16 -0
  47. package/dist/components/autocomplete/autocomplete-input.js +1 -1
  48. package/dist/components/autocomplete/autocomplete-item-indicator.js +1 -0
  49. package/dist/components/autocomplete/autocomplete-item-indicator.vue.d.ts +16 -0
  50. package/dist/components/autocomplete/autocomplete-item.js +1 -0
  51. package/dist/components/autocomplete/autocomplete-item.vue.d.ts +22 -0
  52. package/dist/components/autocomplete/autocomplete-root.js +1 -1
  53. package/dist/components/autocomplete/autocomplete-root.vue.d.ts +1 -2
  54. package/dist/components/autocomplete/autocomplete-separator.js +1 -0
  55. package/dist/components/autocomplete/autocomplete-separator.vue.d.ts +16 -0
  56. package/dist/components/autocomplete/autocomplete-trigger.js +1 -0
  57. package/dist/components/autocomplete/autocomplete-trigger.vue.d.ts +20 -0
  58. package/dist/components/autocomplete/autocomplete-viewport.js +1 -0
  59. package/dist/components/autocomplete/autocomplete-viewport.vue.d.ts +16 -0
  60. package/dist/components/autocomplete/context.d.ts +2 -2
  61. package/dist/components/autocomplete/context.js +1 -1
  62. package/dist/components/autocomplete/index.d.ts +14 -17
  63. package/dist/components/autocomplete/index.js +1 -1
  64. package/dist/components/autocomplete/types.d.ts +69 -26
  65. package/dist/components/avatar/avatar-compact.js +1 -1
  66. package/dist/components/avatar/avatar-fallback.js +1 -1
  67. package/dist/components/avatar/avatar-image.js +1 -1
  68. package/dist/components/avatar/context.d.ts +2 -2
  69. package/dist/components/avatar/context.js +1 -1
  70. package/dist/components/avatar/types.d.ts +10 -11
  71. package/dist/components/backtop/backtop.js +1 -1
  72. package/dist/components/backtop/backtop.vue.d.ts +3 -3
  73. package/dist/components/backtop/types.d.ts +5 -6
  74. package/dist/components/badge/badge-compact.js +1 -1
  75. package/dist/components/badge/badge-root.js +1 -1
  76. package/dist/components/badge/context.d.ts +2 -2
  77. package/dist/components/badge/context.js +1 -1
  78. package/dist/components/badge/types.d.ts +9 -10
  79. package/dist/components/bottom-sheet/bottom-sheet-cancel.js +1 -0
  80. package/dist/components/bottom-sheet/bottom-sheet-cancel.vue.d.ts +20 -0
  81. package/dist/components/bottom-sheet/bottom-sheet-close.js +1 -0
  82. package/dist/components/bottom-sheet/bottom-sheet-close.vue.d.ts +20 -0
  83. package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
  84. package/dist/components/bottom-sheet/bottom-sheet-confirm.js +1 -0
  85. package/dist/components/bottom-sheet/bottom-sheet-confirm.vue.d.ts +20 -0
  86. package/dist/components/bottom-sheet/bottom-sheet-content.js +1 -0
  87. package/dist/components/bottom-sheet/bottom-sheet-content.vue.d.ts +16 -0
  88. package/dist/components/bottom-sheet/bottom-sheet-description.js +1 -0
  89. package/dist/components/bottom-sheet/bottom-sheet-description.vue.d.ts +16 -0
  90. package/dist/components/bottom-sheet/bottom-sheet-footer.js +1 -0
  91. package/dist/components/bottom-sheet/bottom-sheet-footer.vue.d.ts +16 -0
  92. package/dist/components/bottom-sheet/bottom-sheet-header.js +1 -0
  93. package/dist/components/bottom-sheet/bottom-sheet-header.vue.d.ts +16 -0
  94. package/dist/components/bottom-sheet/bottom-sheet-overlay.js +1 -1
  95. package/dist/components/bottom-sheet/bottom-sheet-popup.js +1 -1
  96. package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
  97. package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
  98. package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
  99. package/dist/components/bottom-sheet/bottom-sheet-title.js +1 -0
  100. package/dist/components/bottom-sheet/bottom-sheet-title.vue.d.ts +16 -0
  101. package/dist/components/bottom-sheet/bottom-sheet-trigger.js +1 -0
  102. package/dist/components/bottom-sheet/bottom-sheet-trigger.vue.d.ts +20 -0
  103. package/dist/components/bottom-sheet/context.d.ts +2 -2
  104. package/dist/components/bottom-sheet/context.js +1 -1
  105. package/dist/components/bottom-sheet/index.d.ts +12 -12
  106. package/dist/components/bottom-sheet/index.js +1 -1
  107. package/dist/components/bottom-sheet/types.d.ts +66 -15
  108. package/dist/components/bottom-sheet/use-scale-background.js +1 -1
  109. package/dist/components/breadcrumb/breadcrumb-compact.js +1 -1
  110. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  111. package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
  112. package/dist/components/breadcrumb/context.d.ts +2 -2
  113. package/dist/components/breadcrumb/context.js +1 -1
  114. package/dist/components/breadcrumb/types.d.ts +16 -17
  115. package/dist/components/button/button-group.js +1 -1
  116. package/dist/components/button/button.js +1 -1
  117. package/dist/components/button/types.d.ts +5 -6
  118. package/dist/components/calendar/calendar-cell-trigger.js +1 -1
  119. package/dist/components/calendar/calendar-cell.js +1 -1
  120. package/dist/components/calendar/calendar-compact.js +1 -1
  121. package/dist/components/calendar/calendar-grid-body.js +1 -1
  122. package/dist/components/calendar/calendar-grid-head.js +1 -1
  123. package/dist/components/calendar/calendar-grid-row.js +1 -1
  124. package/dist/components/calendar/calendar-grid.js +1 -1
  125. package/dist/components/calendar/calendar-head-cell.js +1 -1
  126. package/dist/components/calendar/calendar-header.js +1 -1
  127. package/dist/components/calendar/calendar-heading.js +1 -1
  128. package/dist/components/calendar/calendar-next.js +1 -1
  129. package/dist/components/calendar/calendar-prev.js +1 -1
  130. package/dist/components/calendar/calendar-root.js +1 -1
  131. package/dist/components/calendar/context.d.ts +2 -2
  132. package/dist/components/calendar/context.js +1 -1
  133. package/dist/components/calendar/types.d.ts +26 -27
  134. package/dist/components/calendar/use-calendar.js +1 -1
  135. package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -1
  136. package/dist/components/calendar-range/calendar-range-cell.js +1 -1
  137. package/dist/components/calendar-range/calendar-range-compact.js +1 -1
  138. package/dist/components/calendar-range/calendar-range-grid-body.js +1 -1
  139. package/dist/components/calendar-range/calendar-range-grid-head.js +1 -1
  140. package/dist/components/calendar-range/calendar-range-grid-row.js +1 -1
  141. package/dist/components/calendar-range/calendar-range-grid.js +1 -1
  142. package/dist/components/calendar-range/calendar-range-head-cell.js +1 -1
  143. package/dist/components/calendar-range/calendar-range-header.js +1 -1
  144. package/dist/components/calendar-range/calendar-range-heading.js +1 -1
  145. package/dist/components/calendar-range/calendar-range-next.js +1 -1
  146. package/dist/components/calendar-range/calendar-range-prev.js +1 -1
  147. package/dist/components/calendar-range/calendar-range-root.js +1 -1
  148. package/dist/components/calendar-range/calendar-range-root.vue.d.ts +4 -4
  149. package/dist/components/calendar-range/context.d.ts +2 -2
  150. package/dist/components/calendar-range/context.js +1 -1
  151. package/dist/components/calendar-range/types.d.ts +25 -26
  152. package/dist/components/calendar-range/use-calendar-range.js +1 -1
  153. package/dist/components/card/card-collapsible-trigger.js +1 -1
  154. package/dist/components/card/card-compact.js +1 -1
  155. package/dist/components/card/card-root.js +1 -1
  156. package/dist/components/card/context.d.ts +2 -2
  157. package/dist/components/card/context.js +1 -1
  158. package/dist/components/card/types.d.ts +15 -16
  159. package/dist/components/carousel/carousel-compact.js +1 -1
  160. package/dist/components/carousel/carousel-next.js +1 -1
  161. package/dist/components/carousel/carousel-previous.js +1 -1
  162. package/dist/components/carousel/carousel-root.js +1 -1
  163. package/dist/components/carousel/context.d.ts +2 -2
  164. package/dist/components/carousel/context.js +1 -1
  165. package/dist/components/carousel/hooks.js +1 -1
  166. package/dist/components/carousel/types.d.ts +17 -17
  167. package/dist/components/cascader/cascader-clear.js +1 -1
  168. package/dist/components/cascader/cascader-compact.js +1 -1
  169. package/dist/components/cascader/cascader-compact.vue.d.ts +3 -3
  170. package/dist/components/cascader/cascader-content.js +1 -1
  171. package/dist/components/cascader/cascader-content.vue.d.ts +5 -5
  172. package/dist/components/cascader/cascader-menu.js +1 -1
  173. package/dist/components/cascader/cascader-menu.vue.d.ts +1 -1
  174. package/dist/components/cascader/cascader-option.js +1 -1
  175. package/dist/components/cascader/cascader-option.vue.d.ts +1 -1
  176. package/dist/components/cascader/cascader-root.js +1 -1
  177. package/dist/components/cascader/cascader-root.vue.d.ts +2 -2
  178. package/dist/components/cascader/cascader-search-input.js +1 -1
  179. package/dist/components/cascader/cascader-trigger.js +1 -1
  180. package/dist/components/cascader/context.d.ts +6 -5
  181. package/dist/components/cascader/context.js +1 -1
  182. package/dist/components/cascader/hooks.js +1 -1
  183. package/dist/components/cascader/types.d.ts +36 -37
  184. package/dist/components/checkbox/checkbox-card-compact.js +1 -1
  185. package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
  186. package/dist/components/checkbox/checkbox-compact.js +1 -1
  187. package/dist/components/checkbox/checkbox-control.js +1 -1
  188. package/dist/components/checkbox/checkbox-group-compact.js +1 -1
  189. package/dist/components/checkbox/checkbox-group-root.js +1 -1
  190. package/dist/components/checkbox/checkbox-indicator.js +1 -1
  191. package/dist/components/checkbox/checkbox-label.js +1 -1
  192. package/dist/components/checkbox/checkbox-root.js +1 -1
  193. package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
  194. package/dist/components/checkbox/context.d.ts +2 -2
  195. package/dist/components/checkbox/context.js +1 -1
  196. package/dist/components/checkbox/types.d.ts +23 -22
  197. package/dist/components/clipboard/clipboard.js +1 -1
  198. package/dist/components/clipboard/types.d.ts +12 -7
  199. package/dist/components/collapsible/collapsible-content.js +1 -1
  200. package/dist/components/collapsible/collapsible-root.js +1 -1
  201. package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
  202. package/dist/components/collapsible/collapsible-trigger.js +1 -1
  203. package/dist/components/collapsible/context.d.ts +1 -1
  204. package/dist/components/collapsible/context.js +1 -1
  205. package/dist/components/collapsible/types.d.ts +7 -8
  206. package/dist/components/color-area/color-area-area.js +1 -1
  207. package/dist/components/color-area/color-area-compact.js +1 -1
  208. package/dist/components/color-area/color-area-compact.vue.d.ts +2 -2
  209. package/dist/components/color-area/color-area-root.js +1 -1
  210. package/dist/components/color-area/color-area-root.vue.d.ts +3 -3
  211. package/dist/components/color-area/color-area-thumb.js +1 -1
  212. package/dist/components/color-area/context.d.ts +2 -2
  213. package/dist/components/color-area/context.js +1 -1
  214. package/dist/components/color-area/types.d.ts +10 -11
  215. package/dist/components/color-field/color-field-compact.js +1 -1
  216. package/dist/components/color-field/color-field-root.js +1 -1
  217. package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
  218. package/dist/components/color-field/context.d.ts +2 -2
  219. package/dist/components/color-field/context.js +1 -1
  220. package/dist/components/color-field/types.d.ts +8 -9
  221. package/dist/components/color-picker/color-picker-compact.js +1 -1
  222. package/dist/components/color-picker/color-picker-compact.vue.d.ts +4 -2
  223. package/dist/components/color-picker/color-picker-root.js +1 -1
  224. package/dist/components/color-picker/color-picker-root.vue.d.ts +6 -6
  225. package/dist/components/color-picker/color-picker-trigger.js +1 -1
  226. package/dist/components/color-picker/context.d.ts +2 -2
  227. package/dist/components/color-picker/context.js +1 -1
  228. package/dist/components/color-picker/types.d.ts +13 -11
  229. package/dist/components/color-slider/color-slider-compact.js +1 -1
  230. package/dist/components/color-slider/color-slider-compact.vue.d.ts +2 -2
  231. package/dist/components/color-slider/color-slider-root.js +1 -1
  232. package/dist/components/color-slider/color-slider-root.vue.d.ts +5 -5
  233. package/dist/components/color-slider/color-slider-thumb.js +1 -1
  234. package/dist/components/color-slider/color-slider-track.js +1 -1
  235. package/dist/components/color-slider/context.d.ts +2 -2
  236. package/dist/components/color-slider/context.js +1 -1
  237. package/dist/components/color-slider/types.d.ts +9 -10
  238. package/dist/components/color-swatch/color-swatch-compact.js +1 -1
  239. package/dist/components/color-swatch/color-swatch-root.js +1 -1
  240. package/dist/components/color-swatch/context.d.ts +2 -2
  241. package/dist/components/color-swatch/context.js +1 -1
  242. package/dist/components/color-swatch/types.d.ts +10 -11
  243. package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -1
  244. package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +2 -2
  245. package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
  246. package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
  247. package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
  248. package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
  249. package/dist/components/color-swatch-picker/context.d.ts +2 -2
  250. package/dist/components/color-swatch-picker/context.js +1 -1
  251. package/dist/components/color-swatch-picker/types.d.ts +14 -15
  252. package/dist/components/combobox/combobox-anchor.js +1 -0
  253. package/dist/components/combobox/combobox-anchor.vue.d.ts +16 -0
  254. package/dist/components/combobox/combobox-arrow.js +1 -1
  255. package/dist/components/combobox/combobox-cancel.js +1 -1
  256. package/dist/components/combobox/combobox-clear.js +1 -0
  257. package/dist/components/combobox/combobox-clear.vue.d.ts +19 -0
  258. package/dist/components/combobox/combobox-compact.js +1 -1
  259. package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
  260. package/dist/components/combobox/combobox-content-impl.js +1 -1
  261. package/dist/components/combobox/combobox-content.js +1 -1
  262. package/dist/components/combobox/combobox-empty.js +1 -1
  263. package/dist/components/combobox/combobox-group-label.js +1 -0
  264. package/dist/components/combobox/combobox-group-label.vue.d.ts +16 -0
  265. package/dist/components/combobox/combobox-input.js +1 -1
  266. package/dist/components/combobox/combobox-item-indicator.js +1 -0
  267. package/dist/components/combobox/combobox-item-indicator.vue.d.ts +16 -0
  268. package/dist/components/combobox/combobox-item.js +1 -1
  269. package/dist/components/combobox/combobox-root.js +1 -1
  270. package/dist/components/combobox/combobox-root.vue.d.ts +1 -1
  271. package/dist/components/combobox/combobox-separator.js +1 -1
  272. package/dist/components/combobox/combobox-trigger.js +1 -1
  273. package/dist/components/combobox/combobox-value.js +1 -0
  274. package/dist/components/combobox/combobox-value.vue.d.ts +29 -0
  275. package/dist/components/combobox/combobox-viewport.js +1 -1
  276. package/dist/components/combobox/combobox-virtualizer.js +1 -1
  277. package/dist/components/combobox/context.d.ts +2 -2
  278. package/dist/components/combobox/context.js +1 -1
  279. package/dist/components/combobox/index.d.ts +21 -19
  280. package/dist/components/combobox/index.js +1 -1
  281. package/dist/components/combobox/types.d.ts +81 -38
  282. package/dist/components/command/command-compact.js +1 -1
  283. package/dist/components/command/command-compact.vue.d.ts +1 -1
  284. package/dist/components/command/context.d.ts +2 -2
  285. package/dist/components/command/context.js +1 -1
  286. package/dist/components/command/index.d.ts +2 -2
  287. package/dist/components/command/types.d.ts +50 -19
  288. package/dist/components/config-provider/config-provider.js +1 -39
  289. package/dist/components/config-provider/context.js +1 -1
  290. package/dist/components/config-provider/types.d.ts +11 -4
  291. package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
  292. package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
  293. package/dist/components/context-menu/context-menu-compact.js +1 -1
  294. package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
  295. package/dist/components/context-menu/context-menu-content.js +1 -1
  296. package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
  297. package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
  298. package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
  299. package/dist/components/context-menu/context-menu-root.js +1 -1
  300. package/dist/components/context-menu/context-menu-trigger.js +1 -1
  301. package/dist/components/context-menu/context-menu-trigger.vue.d.ts +2 -2
  302. package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
  303. package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
  304. package/dist/components/context-menu/context.js +1 -1
  305. package/dist/components/context-menu/index.d.ts +5 -6
  306. package/dist/components/context-menu/index.js +1 -1
  307. package/dist/components/context-menu/types.d.ts +19 -22
  308. package/dist/components/date-field/context.d.ts +2 -2
  309. package/dist/components/date-field/context.js +1 -1
  310. package/dist/components/date-field/date-field-compact.js +1 -1
  311. package/dist/components/date-field/date-field-input.js +1 -1
  312. package/dist/components/date-field/date-field-root.js +1 -1
  313. package/dist/components/date-field/date-field-root.vue.d.ts +1 -1
  314. package/dist/components/date-field/types.d.ts +11 -12
  315. package/dist/components/date-picker/context.d.ts +2 -2
  316. package/dist/components/date-picker/context.js +1 -1
  317. package/dist/components/date-picker/date-picker-compact.js +1 -1
  318. package/dist/components/date-picker/date-picker-compact.vue.d.ts +2 -0
  319. package/dist/components/date-picker/types.d.ts +7 -8
  320. package/dist/components/date-range-field/context.d.ts +2 -2
  321. package/dist/components/date-range-field/context.js +1 -1
  322. package/dist/components/date-range-field/date-range-field-compact.js +1 -1
  323. package/dist/components/date-range-field/date-range-field-input.js +1 -1
  324. package/dist/components/date-range-field/date-range-field-root.js +1 -1
  325. package/dist/components/date-range-field/date-range-field-root.vue.d.ts +1 -1
  326. package/dist/components/date-range-field/types.d.ts +12 -13
  327. package/dist/components/date-range-picker/context.d.ts +2 -2
  328. package/dist/components/date-range-picker/context.js +1 -1
  329. package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
  330. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -0
  331. package/dist/components/date-range-picker/types.d.ts +7 -7
  332. package/dist/components/dialog/context.d.ts +2 -2
  333. package/dist/components/dialog/context.js +1 -1
  334. package/dist/components/dialog/dialog-close.js +1 -1
  335. package/dist/components/dialog/dialog-compact.js +1 -1
  336. package/dist/components/dialog/dialog-compact.vue.d.ts +10 -10
  337. package/dist/components/dialog/dialog-fullscreen.js +1 -1
  338. package/dist/components/dialog/dialog-overlay.js +1 -1
  339. package/dist/components/dialog/dialog-popup-impl.js +1 -1
  340. package/dist/components/dialog/dialog-popup.js +1 -1
  341. package/dist/components/dialog/dialog-root.js +1 -1
  342. package/dist/components/dialog/state.d.ts +2 -3
  343. package/dist/components/dialog/state.js +1 -1
  344. package/dist/components/dialog/types.d.ts +34 -34
  345. package/dist/components/dropdown-menu/context.js +1 -1
  346. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
  347. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
  348. package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
  349. package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
  350. package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
  351. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
  352. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
  353. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
  354. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  355. package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
  356. package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +2 -2
  357. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
  358. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
  359. package/dist/components/dropdown-menu/index.d.ts +5 -6
  360. package/dist/components/dropdown-menu/index.js +1 -1
  361. package/dist/components/dropdown-menu/types.d.ts +21 -23
  362. package/dist/components/editable/context.d.ts +2 -2
  363. package/dist/components/editable/context.js +1 -1
  364. package/dist/components/editable/editable-area.js +1 -1
  365. package/dist/components/editable/editable-cancel-trigger.js +1 -1
  366. package/dist/components/editable/editable-compact.js +1 -1
  367. package/dist/components/editable/editable-edit-trigger.js +1 -1
  368. package/dist/components/editable/editable-input.js +1 -1
  369. package/dist/components/editable/editable-preview.js +1 -1
  370. package/dist/components/editable/editable-root.js +1 -1
  371. package/dist/components/editable/editable-root.vue.d.ts +1 -1
  372. package/dist/components/editable/editable-submit-trigger.js +1 -1
  373. package/dist/components/editable/types.d.ts +20 -21
  374. package/dist/components/empty/context.d.ts +2 -2
  375. package/dist/components/empty/context.js +1 -1
  376. package/dist/components/empty/empty-compact.js +1 -1
  377. package/dist/components/empty/types.d.ts +11 -12
  378. package/dist/components/form/context.d.ts +2 -2
  379. package/dist/components/form/context.js +1 -1
  380. package/dist/components/form/core/shared.js +1 -1
  381. package/dist/components/form/core/types.d.ts +22 -23
  382. package/dist/components/form/core/use-field-array.js +1 -1
  383. package/dist/components/form/core/use-form-state.js +1 -1
  384. package/dist/components/form/core/use-form.js +1 -1
  385. package/dist/components/form/form-compact.js +1 -1
  386. package/dist/components/form/form-field-array-compact.js +1 -1
  387. package/dist/components/form/form-field-base-compact.js +1 -1
  388. package/dist/components/form/form-field-compact.js +1 -1
  389. package/dist/components/form/form-label.js +1 -1
  390. package/dist/components/form/types.d.ts +20 -21
  391. package/dist/components/form/use-form.d.ts +2 -3
  392. package/dist/components/hover-card/context.d.ts +10 -0
  393. package/dist/components/hover-card/context.js +1 -1
  394. package/dist/components/hover-card/hover-card-compact.js +1 -1
  395. package/dist/components/hover-card/hover-card-compact.vue.d.ts +3 -2
  396. package/dist/components/hover-card/hover-card-popup.js +1 -1
  397. package/dist/components/hover-card/hover-card-popup.vue.d.ts +2 -2
  398. package/dist/components/hover-card/hover-card-positioner.js +1 -1
  399. package/dist/components/hover-card/hover-card-root.js +1 -1
  400. package/dist/components/hover-card/hover-card-root.vue.d.ts +10 -4
  401. package/dist/components/hover-card/hover-card-trigger.js +1 -1
  402. package/dist/components/hover-card/hover-card-trigger.vue.d.ts +2 -2
  403. package/dist/components/hover-card/index.d.ts +5 -5
  404. package/dist/components/hover-card/index.js +1 -1
  405. package/dist/components/hover-card/types.d.ts +16 -17
  406. package/dist/components/input/context.d.ts +2 -2
  407. package/dist/components/input/context.js +1 -1
  408. package/dist/components/input/input-clear.js +1 -1
  409. package/dist/components/input/input-compact.js +1 -1
  410. package/dist/components/input/input-root.js +1 -1
  411. package/dist/components/input/types.d.ts +13 -14
  412. package/dist/components/input-number/context.d.ts +2 -2
  413. package/dist/components/input-number/context.js +1 -1
  414. package/dist/components/input-number/input-number-clear.js +1 -1
  415. package/dist/components/input-number/input-number-compact.js +1 -1
  416. package/dist/components/input-number/input-number-control.js +1 -1
  417. package/dist/components/input-number/input-number-decrement.js +1 -1
  418. package/dist/components/input-number/input-number-increment.js +1 -1
  419. package/dist/components/input-number/input-number-root.js +1 -1
  420. package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
  421. package/dist/components/input-number/shared.js +1 -1
  422. package/dist/components/input-number/types.d.ts +13 -14
  423. package/dist/components/input-otp/context.d.ts +2 -2
  424. package/dist/components/input-otp/context.js +1 -1
  425. package/dist/components/input-otp/input-otp-compact.js +1 -1
  426. package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
  427. package/dist/components/input-otp/input-otp-input.js +1 -1
  428. package/dist/components/input-otp/input-otp-root.js +1 -1
  429. package/dist/components/input-otp/input-otp-root.vue.d.ts +4 -4
  430. package/dist/components/input-otp/types.d.ts +15 -16
  431. package/dist/components/kbd/kbd.js +1 -1
  432. package/dist/components/kbd/types.d.ts +3 -4
  433. package/dist/components/label/types.d.ts +2 -3
  434. package/dist/components/layout/context.d.ts +2 -2
  435. package/dist/components/layout/context.js +1 -1
  436. package/dist/components/layout/layout-compact.js +1 -1
  437. package/dist/components/layout/layout-mobile.js +1 -1
  438. package/dist/components/layout/layout-rail.js +1 -1
  439. package/dist/components/layout/layout-root.js +1 -1
  440. package/dist/components/layout/layout-root.vue.d.ts +1 -1
  441. package/dist/components/layout/layout-trigger.js +1 -1
  442. package/dist/components/layout/types.d.ts +22 -23
  443. package/dist/components/link/link.js +1 -1
  444. package/dist/components/link/link.vue.d.ts +1 -1
  445. package/dist/components/link/types.d.ts +5 -6
  446. package/dist/components/list/context.d.ts +2 -2
  447. package/dist/components/list/context.js +1 -1
  448. package/dist/components/list/types.d.ts +8 -9
  449. package/dist/components/listbox/context.d.ts +2 -2
  450. package/dist/components/listbox/context.js +1 -1
  451. package/dist/components/listbox/index.js +1 -1
  452. package/dist/components/listbox/listbox-content.js +1 -1
  453. package/dist/components/listbox/listbox-filter.js +1 -1
  454. package/dist/components/listbox/listbox-item-indicator.js +1 -1
  455. package/dist/components/listbox/listbox-item.js +1 -1
  456. package/dist/components/listbox/listbox-root.js +1 -1
  457. package/dist/components/listbox/listbox-root.vue.d.ts +1 -1
  458. package/dist/components/listbox/listbox-virtualizer.js +1 -1
  459. package/dist/components/listbox/types.d.ts +18 -19
  460. package/dist/components/menu/context.d.ts +2 -2
  461. package/dist/components/menu/context.js +1 -1
  462. package/dist/components/menu/hooks.js +1 -1
  463. package/dist/components/menu/index.d.ts +6 -6
  464. package/dist/components/menu/index.js +1 -1
  465. package/dist/components/menu/menu-checkbox-group.js +1 -1
  466. package/dist/components/menu/menu-checkbox-item.js +1 -1
  467. package/dist/components/menu/menu-checkbox-options-compact.js +1 -1
  468. package/dist/components/menu/menu-content-impl.js +1 -1
  469. package/dist/components/menu/menu-content.js +1 -1
  470. package/dist/components/menu/menu-content.vue.d.ts +2 -2
  471. package/dist/components/menu/menu-group.js +1 -1
  472. package/dist/components/menu/menu-item-impl.js +1 -1
  473. package/dist/components/menu/menu-item-indicator.js +1 -1
  474. package/dist/components/menu/menu-item.js +1 -1
  475. package/dist/components/menu/menu-option-compact.js +1 -1
  476. package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
  477. package/dist/components/menu/menu-options-compact.js +1 -1
  478. package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
  479. package/dist/components/menu/menu-radio-group.js +1 -1
  480. package/dist/components/menu/menu-radio-item.js +1 -1
  481. package/dist/components/menu/menu-radio-options-compact.js +1 -1
  482. package/dist/components/menu/menu-root.js +1 -1
  483. package/dist/components/menu/menu-root.vue.d.ts +9 -2
  484. package/dist/components/menu/menu-sub-content.js +1 -1
  485. package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
  486. package/dist/components/menu/menu-sub-trigger.js +1 -1
  487. package/dist/components/menu/menu-sub.js +1 -1
  488. package/dist/components/menu/menu-sub.vue.d.ts +2 -2
  489. package/dist/components/menu/shared.js +1 -1
  490. package/dist/components/menu/types.d.ts +53 -53
  491. package/dist/components/menubar/context.d.ts +2 -2
  492. package/dist/components/menubar/context.js +1 -1
  493. package/dist/components/menubar/index.d.ts +1 -1
  494. package/dist/components/menubar/index.js +1 -1
  495. package/dist/components/menubar/menubar-compact.js +1 -1
  496. package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
  497. package/dist/components/menubar/menubar-content.js +1 -1
  498. package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
  499. package/dist/components/menubar/menubar-menu.js +1 -1
  500. package/dist/components/menubar/menubar-menus.js +1 -1
  501. package/dist/components/menubar/menubar-root.js +1 -1
  502. package/dist/components/menubar/menubar-root.vue.d.ts +3 -3
  503. package/dist/components/menubar/menubar-sub-content.js +1 -1
  504. package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
  505. package/dist/components/menubar/menubar-sub-trigger.js +1 -1
  506. package/dist/components/menubar/menubar-trigger.js +1 -1
  507. package/dist/components/menubar/menubar-trigger.vue.d.ts +2 -2
  508. package/dist/components/menubar/types.d.ts +18 -20
  509. package/dist/components/nav-menu/context.d.ts +9 -0
  510. package/dist/components/nav-menu/context.js +1 -0
  511. package/dist/components/nav-menu/index.d.ts +13 -0
  512. package/dist/components/nav-menu/index.js +1 -0
  513. package/dist/components/nav-menu/nav-menu-compact.js +1 -0
  514. package/dist/components/nav-menu/nav-menu-compact.vue.d.ts +23 -0
  515. package/dist/components/nav-menu/nav-menu-content.js +1 -0
  516. package/dist/components/nav-menu/nav-menu-content.vue.d.ts +16 -0
  517. package/dist/components/nav-menu/nav-menu-item.js +1 -0
  518. package/dist/components/nav-menu/nav-menu-item.vue.d.ts +16 -0
  519. package/dist/components/nav-menu/nav-menu-link.js +1 -0
  520. package/dist/components/nav-menu/nav-menu-link.vue.d.ts +28 -0
  521. package/dist/components/nav-menu/nav-menu-list.js +1 -0
  522. package/dist/components/nav-menu/nav-menu-list.vue.d.ts +16 -0
  523. package/dist/components/nav-menu/nav-menu-option-compact.js +1 -0
  524. package/dist/components/nav-menu/nav-menu-root.js +1 -0
  525. package/dist/components/nav-menu/nav-menu-root.vue.d.ts +28 -0
  526. package/dist/components/nav-menu/nav-menu-sub-content.js +1 -0
  527. package/dist/components/nav-menu/nav-menu-sub-content.vue.d.ts +18 -0
  528. package/dist/components/nav-menu/nav-menu-sub-option-compact.js +1 -0
  529. package/dist/components/nav-menu/nav-menu-sub-trigger.js +1 -0
  530. package/dist/components/nav-menu/nav-menu-sub-trigger.vue.d.ts +20 -0
  531. package/dist/components/nav-menu/nav-menu-trigger.js +1 -0
  532. package/dist/components/nav-menu/nav-menu-trigger.vue.d.ts +20 -0
  533. package/dist/components/nav-menu/nav-menu-viewport.js +1 -0
  534. package/dist/components/nav-menu/nav-menu-viewport.vue.d.ts +21 -0
  535. package/dist/components/nav-menu/shared.js +1 -0
  536. package/dist/components/nav-menu/types.d.ts +219 -0
  537. package/dist/components/navigation-menu/context.d.ts +2 -2
  538. package/dist/components/navigation-menu/context.js +1 -1
  539. package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
  540. package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
  541. package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
  542. package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
  543. package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
  544. package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
  545. package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -1
  546. package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
  547. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
  548. package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -1
  549. package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
  550. package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
  551. package/dist/components/navigation-menu/types.d.ts +81 -30
  552. package/dist/components/page-tabs/context.d.ts +2 -2
  553. package/dist/components/page-tabs/context.js +1 -1
  554. package/dist/components/page-tabs/hooks.js +1 -1
  555. package/dist/components/page-tabs/page-tabs-close.js +1 -1
  556. package/dist/components/page-tabs/page-tabs-compact.js +1 -1
  557. package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +3 -3
  558. package/dist/components/page-tabs/page-tabs-item.js +1 -1
  559. package/dist/components/page-tabs/page-tabs-item.vue.d.ts +6 -6
  560. package/dist/components/page-tabs/page-tabs-pin.js +1 -1
  561. package/dist/components/page-tabs/page-tabs-root.js +1 -1
  562. package/dist/components/page-tabs/page-tabs-root.vue.d.ts +2 -2
  563. package/dist/components/page-tabs/types.d.ts +22 -21
  564. package/dist/components/pagination/context.d.ts +2 -2
  565. package/dist/components/pagination/context.js +1 -1
  566. package/dist/components/pagination/pagination-compact.js +1 -1
  567. package/dist/components/pagination/pagination-ellipsis.js +1 -1
  568. package/dist/components/pagination/pagination-first.js +1 -1
  569. package/dist/components/pagination/pagination-last.js +1 -1
  570. package/dist/components/pagination/pagination-list-item.js +1 -1
  571. package/dist/components/pagination/pagination-next.js +1 -1
  572. package/dist/components/pagination/pagination-prev.js +1 -1
  573. package/dist/components/pagination/pagination-root.js +1 -1
  574. package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
  575. package/dist/components/pagination/types.d.ts +15 -16
  576. package/dist/components/password/context.d.ts +2 -2
  577. package/dist/components/password/context.js +1 -1
  578. package/dist/components/password/password-compact.js +1 -1
  579. package/dist/components/password/types.d.ts +7 -8
  580. package/dist/components/popconfirm/context.d.ts +2 -2
  581. package/dist/components/popconfirm/context.js +1 -1
  582. package/dist/components/popconfirm/index.d.ts +20 -20
  583. package/dist/components/popconfirm/index.js +1 -1
  584. package/dist/components/popconfirm/popconfirm-anchor.js +1 -0
  585. package/dist/components/popconfirm/popconfirm-anchor.vue.d.ts +16 -0
  586. package/dist/components/popconfirm/popconfirm-cancel.js +1 -1
  587. package/dist/components/popconfirm/popconfirm-close.js +1 -0
  588. package/dist/components/popconfirm/popconfirm-close.vue.d.ts +20 -0
  589. package/dist/components/popconfirm/popconfirm-compact.js +1 -1
  590. package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +5 -2
  591. package/dist/components/popconfirm/popconfirm-confirm.js +1 -1
  592. package/dist/components/popconfirm/popconfirm-popup.js +1 -0
  593. package/dist/components/popconfirm/popconfirm-popup.vue.d.ts +16 -0
  594. package/dist/components/popconfirm/popconfirm-positioner.js +1 -0
  595. package/dist/components/popconfirm/popconfirm-positioner.vue.d.ts +37 -0
  596. package/dist/components/popconfirm/popconfirm-root.js +1 -0
  597. package/dist/components/popconfirm/popconfirm-root.vue.d.ts +28 -0
  598. package/dist/components/popconfirm/popconfirm-trigger.js +1 -0
  599. package/dist/components/popconfirm/popconfirm-trigger.vue.d.ts +16 -0
  600. package/dist/components/popconfirm/shared.js +1 -0
  601. package/dist/components/popconfirm/types.d.ts +64 -25
  602. package/dist/components/popover/context.d.ts +2 -3
  603. package/dist/components/popover/context.js +1 -1
  604. package/dist/components/popover/index.d.ts +6 -6
  605. package/dist/components/popover/index.js +1 -1
  606. package/dist/components/popover/popover-anchor.js +1 -1
  607. package/dist/components/popover/popover-close.js +1 -1
  608. package/dist/components/popover/popover-compact.js +1 -1
  609. package/dist/components/popover/popover-compact.vue.d.ts +2 -0
  610. package/dist/components/popover/popover-popup.js +1 -1
  611. package/dist/components/popover/popover-positioner.js +1 -1
  612. package/dist/components/popover/popover-positioner.vue.d.ts +5 -6
  613. package/dist/components/popover/popover-root.js +1 -1
  614. package/dist/components/popover/popover-root.vue.d.ts +9 -5
  615. package/dist/components/popover/popover-trigger.js +1 -1
  616. package/dist/components/popover/popover-trigger.vue.d.ts +2 -2
  617. package/dist/components/popover/types.d.ts +17 -29
  618. package/dist/components/popper/context.d.ts +8 -5
  619. package/dist/components/popper/context.js +1 -1
  620. package/dist/components/popper/index.d.ts +17 -6
  621. package/dist/components/popper/index.js +1 -1
  622. package/dist/components/popper/popper-anchor.js +1 -1
  623. package/dist/components/popper/popper-arrow.js +1 -1
  624. package/dist/components/popper/popper-compact.js +1 -0
  625. package/dist/components/popper/popper-compact.vue.d.ts +40 -0
  626. package/dist/components/popper/popper-popup.js +1 -1
  627. package/dist/components/popper/popper-portal.js +1 -0
  628. package/dist/components/popper/popper-portal.vue.d.ts +16 -0
  629. package/dist/components/popper/popper-positioner-impl.js +1 -0
  630. package/dist/components/popper/popper-positioner-impl.vue.d.ts +247 -0
  631. package/dist/components/popper/popper-positioner.js +1 -1
  632. package/dist/components/popper/popper-positioner.vue.d.ts +15 -209
  633. package/dist/components/popper/popper-positioning-popup.js +1 -0
  634. package/dist/components/popper/popper-positioning-popup.vue.d.ts +16 -0
  635. package/dist/components/popper/popper-positioning-positioner.js +1 -0
  636. package/dist/components/popper/popper-positioning-positioner.vue.d.ts +231 -0
  637. package/dist/components/popper/popper-positioning-root.js +1 -0
  638. package/dist/components/popper/popper-positioning-root.vue.d.ts +16 -0
  639. package/dist/components/popper/popper-root.js +1 -1
  640. package/dist/components/popper/popper-root.vue.d.ts +12 -6
  641. package/dist/components/popper/popper-sub-trigger.js +1 -0
  642. package/dist/components/popper/popper-sub-trigger.vue.d.ts +22 -0
  643. package/dist/components/popper/popper-sub.js +1 -0
  644. package/dist/components/popper/popper-sub.vue.d.ts +21 -0
  645. package/dist/components/popper/popper-trigger.js +1 -0
  646. package/dist/components/popper/popper-trigger.vue.d.ts +23 -0
  647. package/dist/components/popper/shared.d.ts +10 -0
  648. package/dist/components/popper/shared.js +1 -1
  649. package/dist/components/popper/types.d.ts +357 -30
  650. package/dist/components/popper/use-popper-dismiss.js +1 -0
  651. package/dist/components/popper/use-popper-nesting.js +1 -0
  652. package/dist/components/popper/use-popper-positioning.js +1 -0
  653. package/dist/components/popper/use-popper-trigger.js +1 -0
  654. package/dist/components/popper/use-virtual-point-reference.d.ts +28 -0
  655. package/dist/components/popper/use-virtual-point-reference.js +1 -0
  656. package/dist/components/portal/types.d.ts +2 -3
  657. package/dist/components/primitive/primitive.d.ts +2 -3
  658. package/dist/components/primitive/primitive.js +1 -1
  659. package/dist/components/primitive/types.d.ts +4 -5
  660. package/dist/components/progress/context.d.ts +2 -2
  661. package/dist/components/progress/context.js +1 -1
  662. package/dist/components/progress/progress-circle-compact.js +1 -1
  663. package/dist/components/progress/progress-compact.js +1 -1
  664. package/dist/components/progress/progress-indicator.js +1 -1
  665. package/dist/components/progress/progress-provider.js +1 -1
  666. package/dist/components/progress/progress-root.js +1 -1
  667. package/dist/components/progress/shared.js +1 -1
  668. package/dist/components/progress/state.d.ts +2 -3
  669. package/dist/components/progress/state.js +1 -1
  670. package/dist/components/progress/types.d.ts +18 -19
  671. package/dist/components/radio-group/context.d.ts +2 -2
  672. package/dist/components/radio-group/context.js +1 -1
  673. package/dist/components/radio-group/radio-group-card-compact.js +1 -1
  674. package/dist/components/radio-group/radio-group-compact.js +1 -1
  675. package/dist/components/radio-group/radio-group-control.js +1 -1
  676. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  677. package/dist/components/radio-group/radio-group-indicator.js +1 -1
  678. package/dist/components/radio-group/radio-group-item.js +1 -1
  679. package/dist/components/radio-group/radio-group-label.js +1 -1
  680. package/dist/components/radio-group/radio-group-root.js +1 -1
  681. package/dist/components/radio-group/types.d.ts +19 -19
  682. package/dist/components/rating/context.js +1 -1
  683. package/dist/components/rating/rating-item.js +1 -1
  684. package/dist/components/rating/rating-root.js +1 -1
  685. package/dist/components/rating/rating-root.vue.d.ts +3 -3
  686. package/dist/components/rating/shared.js +1 -1
  687. package/dist/components/rating/types.d.ts +8 -9
  688. package/dist/components/scroll-area/context.d.ts +2 -2
  689. package/dist/components/scroll-area/context.js +1 -1
  690. package/dist/components/scroll-area/scroll-area-compact.js +1 -1
  691. package/dist/components/scroll-area/scroll-area-corner.js +1 -1
  692. package/dist/components/scroll-area/scroll-area-root.js +1 -1
  693. package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
  694. package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
  695. package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
  696. package/dist/components/scroll-area/types.d.ts +15 -16
  697. package/dist/components/segment/context.d.ts +9 -0
  698. package/dist/components/segment/context.js +1 -0
  699. package/dist/components/segment/index.d.ts +8 -8
  700. package/dist/components/segment/index.js +1 -1
  701. package/dist/components/segment/segment-compact.js +1 -1
  702. package/dist/components/segment/segment-indicator.js +1 -0
  703. package/dist/components/segment/segment-indicator.vue.d.ts +16 -0
  704. package/dist/components/segment/segment-list.js +1 -0
  705. package/dist/components/segment/segment-list.vue.d.ts +16 -0
  706. package/dist/components/segment/segment-root.js +1 -0
  707. package/dist/components/segment/segment-root.vue.d.ts +25 -0
  708. package/dist/components/segment/segment-trigger.js +1 -0
  709. package/dist/components/segment/segment-trigger.vue.d.ts +18 -0
  710. package/dist/components/segment/types.d.ts +30 -10
  711. package/dist/components/select/context.d.ts +2 -2
  712. package/dist/components/select/context.js +1 -1
  713. package/dist/components/select/index.d.ts +20 -19
  714. package/dist/components/select/index.js +1 -1
  715. package/dist/components/select/select-arrow.js +1 -1
  716. package/dist/components/select/select-bubble-select.js +1 -1
  717. package/dist/components/select/select-clear.js +1 -0
  718. package/dist/components/select/select-clear.vue.d.ts +16 -0
  719. package/dist/components/select/select-compact.js +1 -1
  720. package/dist/components/select/select-content-impl.js +1 -1
  721. package/dist/components/select/select-content.js +1 -1
  722. package/dist/components/select/select-item-aligned-popup.js +1 -1
  723. package/dist/components/select/select-item-aligned-positioner.js +1 -1
  724. package/dist/components/select/select-item-indicator.js +1 -1
  725. package/dist/components/select/select-item-text.js +1 -1
  726. package/dist/components/select/select-item.js +1 -1
  727. package/dist/components/select/select-popper-popup.js +1 -1
  728. package/dist/components/select/select-root.js +1 -1
  729. package/dist/components/select/select-scroll-button-impl.js +1 -1
  730. package/dist/components/select/select-scroll-down-button.js +1 -1
  731. package/dist/components/select/select-scroll-up-button.js +1 -1
  732. package/dist/components/select/select-trigger.js +1 -1
  733. package/dist/components/select/select-value.js +1 -1
  734. package/dist/components/select/select-viewport.js +1 -1
  735. package/dist/components/select/shared.js +1 -1
  736. package/dist/components/select/types.d.ts +58 -37
  737. package/dist/components/separator/context.d.ts +2 -2
  738. package/dist/components/separator/context.js +1 -1
  739. package/dist/components/separator/separator-compact.js +1 -1
  740. package/dist/components/separator/types.d.ts +7 -8
  741. package/dist/components/skeleton/skeleton.js +1 -1
  742. package/dist/components/skeleton/types.d.ts +2 -3
  743. package/dist/components/slider/context.d.ts +2 -2
  744. package/dist/components/slider/context.js +1 -1
  745. package/dist/components/slider/shared.js +1 -1
  746. package/dist/components/slider/slider-compact.js +1 -1
  747. package/dist/components/slider/slider-range.js +1 -1
  748. package/dist/components/slider/slider-root.js +1 -1
  749. package/dist/components/slider/slider-root.vue.d.ts +4 -4
  750. package/dist/components/slider/slider-thumb.js +1 -1
  751. package/dist/components/slider/slider-track.js +1 -1
  752. package/dist/components/slider/types.d.ts +16 -17
  753. package/dist/components/slot/slot.d.ts +2 -3
  754. package/dist/components/slot/slot.js +1 -1
  755. package/dist/components/split-nav/context.d.ts +9 -0
  756. package/dist/components/split-nav/context.js +1 -0
  757. package/dist/components/split-nav/dual-vertical-pane.js +1 -0
  758. package/dist/components/split-nav/first-level-item.js +1 -0
  759. package/dist/components/split-nav/first-level-menu.js +1 -0
  760. package/dist/components/split-nav/hooks.js +1 -0
  761. package/dist/components/split-nav/horizontal-dual-vertical-menu.js +1 -0
  762. package/dist/components/split-nav/horizontal-first-level-menu.js +1 -0
  763. package/dist/components/split-nav/horizontal-vertical-menu.js +1 -0
  764. package/dist/components/split-nav/index.d.ts +4 -0
  765. package/dist/components/split-nav/index.js +1 -0
  766. package/dist/components/split-nav/shared.js +1 -0
  767. package/dist/components/split-nav/split-nav-root.js +1 -0
  768. package/dist/components/split-nav/split-nav-root.vue.d.ts +22 -0
  769. package/dist/components/split-nav/types.d.ts +187 -0
  770. package/dist/components/split-nav/vertical-first-level-menu.js +1 -0
  771. package/dist/components/split-nav/vertical-horizontal-menu.js +1 -0
  772. package/dist/components/splitter/context.d.ts +2 -2
  773. package/dist/components/splitter/context.js +1 -1
  774. package/dist/components/splitter/shared.js +1 -1
  775. package/dist/components/splitter/splitter-group.js +1 -1
  776. package/dist/components/splitter/splitter-panel.js +1 -1
  777. package/dist/components/splitter/splitter-resize-handle.js +1 -1
  778. package/dist/components/splitter/splitter-resize-handle.vue.d.ts +1 -1
  779. package/dist/components/splitter/types.d.ts +13 -14
  780. package/dist/components/stepper/context.d.ts +2 -2
  781. package/dist/components/stepper/context.js +1 -1
  782. package/dist/components/stepper/stepper-compact.js +1 -1
  783. package/dist/components/stepper/stepper-description.js +1 -1
  784. package/dist/components/stepper/stepper-indicator.js +1 -1
  785. package/dist/components/stepper/stepper-item.js +1 -1
  786. package/dist/components/stepper/stepper-root.js +1 -1
  787. package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
  788. package/dist/components/stepper/stepper-separator.js +1 -1
  789. package/dist/components/stepper/stepper-title.js +1 -1
  790. package/dist/components/stepper/stepper-trigger.js +1 -1
  791. package/dist/components/stepper/types.d.ts +16 -17
  792. package/dist/components/switch/context.d.ts +2 -2
  793. package/dist/components/switch/context.js +1 -1
  794. package/dist/components/switch/switch-compact.js +1 -1
  795. package/dist/components/switch/switch-control.js +1 -1
  796. package/dist/components/switch/switch-root.js +1 -1
  797. package/dist/components/switch/switch-thumb.js +1 -1
  798. package/dist/components/switch/types.d.ts +12 -13
  799. package/dist/components/table/context.d.ts +2 -2
  800. package/dist/components/table/context.js +1 -1
  801. package/dist/components/table/hooks.js +1 -1
  802. package/dist/components/table/shared.d.ts +28 -29
  803. package/dist/components/table/shared.js +1 -1
  804. package/dist/components/table/table-compact-cell.js +1 -1
  805. package/dist/components/table/table-compact-head.js +1 -1
  806. package/dist/components/table/table-compact-row.js +1 -1
  807. package/dist/components/table/table-compact.js +1 -1
  808. package/dist/components/table/types.d.ts +64 -65
  809. package/dist/components/tabs/context.d.ts +2 -2
  810. package/dist/components/tabs/context.js +1 -1
  811. package/dist/components/tabs/tabs-compact.js +1 -1
  812. package/dist/components/tabs/tabs-content.js +1 -1
  813. package/dist/components/tabs/tabs-content.vue.d.ts +1 -1
  814. package/dist/components/tabs/tabs-indicator.js +1 -1
  815. package/dist/components/tabs/tabs-list.js +1 -1
  816. package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
  817. package/dist/components/tabs/tabs-root.js +1 -1
  818. package/dist/components/tabs/tabs-root.vue.d.ts +2 -2
  819. package/dist/components/tabs/tabs-trigger.js +1 -1
  820. package/dist/components/tabs/tabs-trigger.vue.d.ts +3 -3
  821. package/dist/components/tabs/types.d.ts +18 -18
  822. package/dist/components/tag/tag.js +1 -1
  823. package/dist/components/tag/types.d.ts +3 -4
  824. package/dist/components/tags-input/context.d.ts +2 -2
  825. package/dist/components/tags-input/context.js +1 -1
  826. package/dist/components/tags-input/tags-input-clear.js +1 -1
  827. package/dist/components/tags-input/tags-input-compact.js +1 -1
  828. package/dist/components/tags-input/tags-input-compact.vue.d.ts +2 -2
  829. package/dist/components/tags-input/tags-input-control.js +1 -1
  830. package/dist/components/tags-input/tags-input-item-delete.js +1 -1
  831. package/dist/components/tags-input/tags-input-item-text.js +1 -1
  832. package/dist/components/tags-input/tags-input-item.js +1 -1
  833. package/dist/components/tags-input/tags-input-root.js +1 -1
  834. package/dist/components/tags-input/tags-input-root.vue.d.ts +3 -3
  835. package/dist/components/tags-input/types.d.ts +15 -16
  836. package/dist/components/textarea/context.d.ts +2 -2
  837. package/dist/components/textarea/context.js +1 -1
  838. package/dist/components/textarea/textarea-clear.js +1 -1
  839. package/dist/components/textarea/textarea-compact.js +1 -1
  840. package/dist/components/textarea/textarea-root.js +1 -1
  841. package/dist/components/textarea/types.d.ts +15 -16
  842. package/dist/components/time-field/context.d.ts +2 -2
  843. package/dist/components/time-field/context.js +1 -1
  844. package/dist/components/time-field/time-field-compact.js +1 -1
  845. package/dist/components/time-field/time-field-input.js +1 -1
  846. package/dist/components/time-field/time-field-root.js +1 -1
  847. package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
  848. package/dist/components/time-field/types.d.ts +10 -10
  849. package/dist/components/time-range-field/context.d.ts +2 -2
  850. package/dist/components/time-range-field/context.js +1 -1
  851. package/dist/components/time-range-field/time-range-field-compact.js +1 -1
  852. package/dist/components/time-range-field/time-range-field-input.js +1 -1
  853. package/dist/components/time-range-field/time-range-field-root.js +1 -1
  854. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +1 -1
  855. package/dist/components/time-range-field/types.d.ts +11 -12
  856. package/dist/components/toast/context.d.ts +2 -2
  857. package/dist/components/toast/context.js +1 -1
  858. package/dist/components/toast/shared.js +1 -1
  859. package/dist/components/toast/state.d.ts +2 -3
  860. package/dist/components/toast/state.js +1 -1
  861. package/dist/components/toast/toast.js +1 -1
  862. package/dist/components/toast/toaster.js +1 -1
  863. package/dist/components/toast/toaster.vue.d.ts +1 -1
  864. package/dist/components/toast/types.d.ts +18 -19
  865. package/dist/components/toggle/toggle.js +1 -1
  866. package/dist/components/toggle/types.d.ts +4 -5
  867. package/dist/components/toggle-group/context.d.ts +2 -2
  868. package/dist/components/toggle-group/context.js +1 -1
  869. package/dist/components/toggle-group/toggle-group-item.js +1 -1
  870. package/dist/components/toggle-group/toggle-group-root.js +1 -1
  871. package/dist/components/toggle-group/types.d.ts +6 -7
  872. package/dist/components/toolbar/context.d.ts +2 -2
  873. package/dist/components/toolbar/context.js +1 -1
  874. package/dist/components/toolbar/toolbar-button.js +1 -1
  875. package/dist/components/toolbar/toolbar-button.vue.d.ts +2 -2
  876. package/dist/components/toolbar/toolbar-link.js +1 -1
  877. package/dist/components/toolbar/toolbar-link.vue.d.ts +2 -2
  878. package/dist/components/toolbar/toolbar-root.js +1 -1
  879. package/dist/components/toolbar/toolbar-root.vue.d.ts +2 -2
  880. package/dist/components/toolbar/toolbar-separator.js +1 -1
  881. package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
  882. package/dist/components/toolbar/toolbar-toggle-item.js +1 -1
  883. package/dist/components/toolbar/types.d.ts +13 -14
  884. package/dist/components/tooltip/context.d.ts +10 -0
  885. package/dist/components/tooltip/context.js +1 -1
  886. package/dist/components/tooltip/index.d.ts +9 -8
  887. package/dist/components/tooltip/index.js +1 -1
  888. package/dist/components/tooltip/shared.js +1 -1
  889. package/dist/components/tooltip/tooltip-compact.js +1 -1
  890. package/dist/components/tooltip/tooltip-compact.vue.d.ts +14 -3
  891. package/dist/components/tooltip/tooltip-popup.js +1 -1
  892. package/dist/components/tooltip/tooltip-positioner.js +1 -1
  893. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +12 -1
  894. package/dist/components/tooltip/tooltip-provider.js +1 -0
  895. package/dist/components/tooltip/tooltip-provider.vue.d.ts +16 -0
  896. package/dist/components/tooltip/tooltip-root.js +1 -1
  897. package/dist/components/tooltip/tooltip-root.vue.d.ts +10 -4
  898. package/dist/components/tooltip/tooltip-trigger.js +1 -1
  899. package/dist/components/tooltip/tooltip-trigger.vue.d.ts +2 -2
  900. package/dist/components/tooltip/types.d.ts +25 -19
  901. package/dist/components/tree/context.js +1 -1
  902. package/dist/components/tree/hooks.js +1 -1
  903. package/dist/components/tree/tree-item.js +1 -1
  904. package/dist/components/tree/tree-item.vue.d.ts +2 -2
  905. package/dist/components/tree/tree-root.js +1 -1
  906. package/dist/components/tree/tree-virtualizer-item.js +1 -1
  907. package/dist/components/tree/tree-virtualizer-root.js +1 -1
  908. package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
  909. package/dist/components/tree/types.d.ts +14 -15
  910. package/dist/components/tree-menu/context.d.ts +12 -5
  911. package/dist/components/tree-menu/context.js +1 -1
  912. package/dist/components/tree-menu/shared.js +1 -1
  913. package/dist/components/tree-menu/tree-menu-button.js +1 -1
  914. package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
  915. package/dist/components/tree-menu/tree-menu-compact.js +1 -1
  916. package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +2 -2
  917. package/dist/components/tree-menu/tree-menu-group.js +1 -1
  918. package/dist/components/tree-menu/tree-menu-item.js +1 -1
  919. package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
  920. package/dist/components/tree-menu/tree-menu-options-compact.js +1 -1
  921. package/dist/components/tree-menu/tree-menu-root.js +1 -1
  922. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +5 -5
  923. package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -1
  924. package/dist/components/tree-menu/tree-menu-sub.js +1 -1
  925. package/dist/components/tree-menu/tree-menu-tooltip-compact.js +1 -1
  926. package/dist/components/tree-menu/types.d.ts +46 -36
  927. package/dist/components/tree-nav/context.d.ts +68 -0
  928. package/dist/components/tree-nav/context.js +1 -0
  929. package/dist/components/tree-nav/index.d.ts +8 -0
  930. package/dist/components/tree-nav/index.js +1 -0
  931. package/dist/components/tree-nav/shared.js +1 -0
  932. package/dist/components/tree-nav/tree-nav-compact.js +1 -0
  933. package/dist/components/tree-nav/tree-nav-compact.vue.d.ts +19 -0
  934. package/dist/components/tree-nav/tree-nav-option-compact.js +1 -0
  935. package/dist/components/tree-nav/tree-nav-option-compact.vue.d.ts +15 -0
  936. package/dist/components/tree-nav/tree-nav-options-compact.js +1 -0
  937. package/dist/components/tree-nav/tree-nav-options-compact.vue.d.ts +15 -0
  938. package/dist/components/tree-nav/tree-nav-overflow.js +1 -0
  939. package/dist/components/tree-nav/tree-nav-overflow.vue.d.ts +16 -0
  940. package/dist/components/tree-nav/tree-nav-root.js +1 -0
  941. package/dist/components/tree-nav/tree-nav-root.vue.d.ts +23 -0
  942. package/dist/components/tree-nav/types.d.ts +299 -0
  943. package/dist/components/virtualizer/context.js +1 -1
  944. package/dist/components/virtualizer/types.d.ts +5 -5
  945. package/dist/components/virtualizer/virtualizer-content.js +1 -1
  946. package/dist/components/virtualizer/virtualizer-item.js +1 -1
  947. package/dist/components/virtualizer/virtualizer-root.js +1 -1
  948. package/dist/components/visually-hidden/types.d.ts +4 -5
  949. package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
  950. package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
  951. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
  952. package/dist/components/visually-hidden/visually-hidden.js +1 -1
  953. package/dist/components/watermark/context.d.ts +2 -2
  954. package/dist/components/watermark/context.js +1 -1
  955. package/dist/components/watermark/shared.js +1 -1
  956. package/dist/components/watermark/types.d.ts +6 -7
  957. package/dist/components/watermark/watermark-compact.js +1 -1
  958. package/dist/components/watermark/watermark-overlay.js +1 -1
  959. package/dist/components/watermark/watermark-root.js +1 -1
  960. package/dist/composables/index.d.ts +4 -3
  961. package/dist/composables/index.js +1 -1
  962. package/dist/composables/use-arrow-navigation.d.ts +2 -3
  963. package/dist/composables/use-body-scroll-lock.d.ts +2 -3
  964. package/dist/composables/use-body-scroll-lock.js +2 -2
  965. package/dist/composables/use-bool-prop.d.ts +2 -3
  966. package/dist/composables/use-collection.d.ts +5 -5
  967. package/dist/composables/use-collection.js +1 -1
  968. package/dist/composables/use-context.d.ts +25 -2
  969. package/dist/composables/use-context.js +1 -1
  970. package/dist/composables/use-controllable-state.d.ts +2 -3
  971. package/dist/composables/use-controllable-state.js +1 -1
  972. package/dist/composables/use-dismissable-layer.d.ts +6 -7
  973. package/dist/composables/use-dismissable-layer.js +1 -1
  974. package/dist/composables/use-escape-key-down.d.ts +2 -3
  975. package/dist/composables/use-exposed-element.d.ts +2 -3
  976. package/dist/composables/use-floating.d.ts +4 -5
  977. package/dist/composables/use-floating.js +1 -1
  978. package/dist/composables/use-focus-guards.d.ts +3 -3
  979. package/dist/composables/use-focus-guards.js +1 -1
  980. package/dist/composables/use-focus-scope.d.ts +3 -4
  981. package/dist/composables/use-focus-scope.js +1 -1
  982. package/dist/composables/use-forward-element.d.ts +2 -3
  983. package/dist/composables/use-forward-element.js +1 -1
  984. package/dist/composables/use-forward-listeners.d.ts +2 -3
  985. package/dist/composables/use-fuse.d.ts +19 -10
  986. package/dist/composables/use-fuse.js +1 -1
  987. package/dist/composables/use-grace-area.d.ts +3 -4
  988. package/dist/composables/use-grace-area.js +1 -1
  989. package/dist/composables/use-hide-others.d.ts +27 -8
  990. package/dist/composables/use-hide-others.js +1 -1
  991. package/dist/composables/use-image-loading-status.d.ts +2 -3
  992. package/dist/composables/use-image-loading-status.js +1 -1
  993. package/dist/composables/use-is-using-keyboard.d.ts +2 -3
  994. package/dist/composables/use-is-using-keyboard.js +1 -1
  995. package/dist/composables/use-kbd.d.ts +3 -4
  996. package/dist/composables/use-popup-events.d.ts +3 -5
  997. package/dist/composables/use-popup-events.js +1 -1
  998. package/dist/composables/use-presence.d.ts +2 -3
  999. package/dist/composables/use-props.d.ts +3 -4
  1000. package/dist/composables/use-props.js +1 -1
  1001. package/dist/composables/use-roving-focus.d.ts +79 -0
  1002. package/dist/composables/use-roving-focus.js +1 -0
  1003. package/dist/composables/use-selection.d.ts +2 -3
  1004. package/dist/composables/use-selection.js +1 -1
  1005. package/dist/composables/use-state-machine.d.ts +2 -3
  1006. package/dist/composables/use-typeahead.d.ts +3 -4
  1007. package/dist/composables/use-typeahead.js +1 -1
  1008. package/dist/composables/use-ui-context.d.ts +3 -4
  1009. package/dist/constants/attr.d.ts +11 -4
  1010. package/dist/constants/attr.js +1 -1
  1011. package/dist/constants/common.d.ts +6 -7
  1012. package/dist/constants/components.d.ts +5 -4
  1013. package/dist/constants/components.js +1 -1
  1014. package/dist/constants/index.d.ts +2 -2
  1015. package/dist/constants/index.js +1 -1
  1016. package/dist/constants/regexp.d.ts +4 -5
  1017. package/dist/date/calendar.d.ts +18 -19
  1018. package/dist/date/calendar.js +1 -1
  1019. package/dist/date/comparators.d.ts +26 -27
  1020. package/dist/date/formatter.d.ts +4 -5
  1021. package/dist/date/parser.d.ts +5 -6
  1022. package/dist/date/parts.d.ts +11 -12
  1023. package/dist/date/placeholders.d.ts +2 -3
  1024. package/dist/date/segment.d.ts +5 -6
  1025. package/dist/date/types.d.ts +28 -28
  1026. package/dist/date/use-date-field.d.ts +3 -4
  1027. package/dist/date/use-date-field.js +1 -1
  1028. package/dist/date/utils.d.ts +10 -11
  1029. package/dist/date/utils.js +1 -1
  1030. package/dist/index.d.ts +429 -359
  1031. package/dist/index.js +1 -1
  1032. package/dist/locale/hooks.d.ts +2 -3
  1033. package/dist/locale/hooks.js +1 -1
  1034. package/dist/locale/langs/ar.js +1 -1
  1035. package/dist/locale/langs/de.js +1 -1
  1036. package/dist/locale/langs/en.js +1 -1
  1037. package/dist/locale/langs/es.js +1 -1
  1038. package/dist/locale/langs/fr.js +1 -1
  1039. package/dist/locale/langs/id.js +1 -1
  1040. package/dist/locale/langs/ja.js +1 -1
  1041. package/dist/locale/langs/ko.js +1 -1
  1042. package/dist/locale/langs/pt-BR.js +1 -1
  1043. package/dist/locale/langs/ru.js +1 -1
  1044. package/dist/locale/langs/tr.js +1 -1
  1045. package/dist/locale/langs/zh-CN.js +1 -1
  1046. package/dist/locale/langs/zh-TW.js +1 -1
  1047. package/dist/locale/locales.d.ts +5 -5
  1048. package/dist/locale/types.d.ts +45 -37
  1049. package/dist/namespaced/index.d.ts +1205 -1118
  1050. package/dist/namespaced/index.js +1 -1
  1051. package/dist/nuxt/index.d.ts +2 -2
  1052. package/dist/nuxt/index.js +1 -1
  1053. package/dist/resolver/index.d.ts +2 -2
  1054. package/dist/resolver/index.js +1 -1
  1055. package/dist/shared/array.d.ts +4 -0
  1056. package/dist/shared/array.js +1 -0
  1057. package/dist/shared/color.d.ts +23 -24
  1058. package/dist/shared/color.js +1 -1
  1059. package/dist/shared/comparison.d.ts +2 -3
  1060. package/dist/shared/dom.d.ts +7 -8
  1061. package/dist/shared/dom.js +1 -1
  1062. package/dist/shared/env.d.ts +11 -6
  1063. package/dist/shared/env.js +1 -1
  1064. package/dist/shared/event.d.ts +3 -4
  1065. package/dist/shared/focus.d.ts +9 -10
  1066. package/dist/shared/form.d.ts +6 -7
  1067. package/dist/shared/fuzzy.d.ts +20 -0
  1068. package/dist/shared/fuzzy.js +1 -0
  1069. package/dist/shared/geometry.d.ts +8 -9
  1070. package/dist/shared/guard.d.ts +13 -14
  1071. package/dist/shared/index.d.ts +9 -5
  1072. package/dist/shared/index.js +1 -1
  1073. package/dist/shared/mark-others.d.ts +52 -0
  1074. package/dist/shared/mark-others.js +1 -0
  1075. package/dist/shared/object.d.ts +38 -18
  1076. package/dist/shared/object.js +1 -1
  1077. package/dist/shared/string.d.ts +17 -5
  1078. package/dist/shared/string.js +1 -1
  1079. package/dist/shared/time-picker.d.ts +9 -10
  1080. package/dist/shared/time-picker.js +1 -1
  1081. package/dist/shared/tree-navigation.d.ts +59 -0
  1082. package/dist/shared/tree-navigation.js +1 -0
  1083. package/dist/shared/tree.d.ts +2 -3
  1084. package/dist/shared/value.d.ts +11 -12
  1085. package/dist/shared/vue.d.ts +23 -10
  1086. package/dist/shared/vue.js +1 -1
  1087. package/dist/types/color.d.ts +8 -9
  1088. package/dist/types/common.d.ts +31 -32
  1089. package/dist/types/component.d.ts +8 -9
  1090. package/dist/types/dom.d.ts +4 -5
  1091. package/dist/types/event.d.ts +7 -8
  1092. package/dist/types/index.d.ts +2 -2
  1093. package/dist/types/path.d.ts +6 -7
  1094. package/dist/types/vue.d.ts +7 -8
  1095. package/package.json +16 -32
  1096. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +0 -1
  1097. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +0 -1
  1098. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +0 -1
  1099. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/typeof.js +0 -1
  1100. package/dist/components/dropdown-menu/shared.js +0 -1
  1101. package/dist/components/hover-card/hover-card-positioner-impl.js +0 -1
  1102. package/dist/components/popover/popover-positioner-impl.js +0 -1
  1103. package/dist/components/roving-focus/context.js +0 -1
  1104. package/dist/components/roving-focus/index.d.ts +0 -4
  1105. package/dist/components/roving-focus/index.js +0 -1
  1106. package/dist/components/roving-focus/roving-focus-group.js +0 -1
  1107. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +0 -32
  1108. package/dist/components/roving-focus/roving-focus-item.js +0 -1
  1109. package/dist/components/roving-focus/roving-focus-item.vue.d.ts +0 -18
  1110. package/dist/components/roving-focus/types.d.ts +0 -65
  1111. package/dist/components/tooltip/tooltip-positioner-impl.js +0 -1
@@ -5,47 +5,46 @@
5
5
  * @param value
6
6
  * @returns
7
7
  */
8
- declare function isString(value: unknown): value is string;
8
+ export declare function isString(value: unknown): value is string;
9
9
  /**
10
10
  * Type guard: check if value is a primitive type
11
11
  *
12
12
  * @param value - The value to check
13
13
  * @returns Whether the value is string | number | boolean
14
14
  */
15
- declare function isPrimitive(value: unknown): value is string | number | boolean | null | undefined;
15
+ export declare function isPrimitive(value: unknown): value is string | number | boolean | null | undefined;
16
16
  /**
17
17
  * Type guard: check if value is a non-null object (excluding arrays)
18
18
  *
19
19
  * @param value - The value to check
20
20
  * @returns Whether the value is a non-null object
21
21
  */
22
- declare function isNonNullObject(value: unknown): value is Record<string, unknown>;
22
+ export declare function isNonNullObject(value: unknown): value is Record<string, unknown>;
23
23
  /**
24
24
  * Type guard: check if value is an array
25
25
  *
26
26
  * @param value - The value to check
27
27
  * @returns Whether the value is an array
28
28
  */
29
- declare function isArrayValue(value: unknown): value is unknown[];
29
+ export declare function isArrayValue(value: unknown): value is unknown[];
30
30
  /**
31
31
  * Type guard: check if value is null or undefined
32
32
  *
33
33
  * @param value - The value to check
34
34
  * @returns Whether the value is null or undefined
35
35
  */
36
- declare function isNullish(value: unknown): value is null | undefined;
36
+ export declare function isNullish(value: unknown): value is null | undefined;
37
37
  /**
38
38
  * Type guard: check if value is an empty string
39
39
  *
40
40
  * @param value - The value to check
41
41
  * @returns Whether the value is an empty string
42
42
  */
43
- declare function isBlankString(value: unknown | undefined): value is string;
44
- declare function isDateObject(value: unknown): value is Date;
45
- declare function isObjectType(value: unknown): value is object | null;
46
- declare function isFunction(value: unknown): value is (...args: any[]) => any;
47
- declare function isObject(value: unknown): boolean;
48
- declare function isPromise(value: any): value is PromiseLike<any>;
49
- declare function keysOf<TRecord extends Record<string, unknown>>(record: TRecord): (keyof TRecord)[];
50
- //#endregion
51
- export { isArrayValue, isBlankString, isDateObject, isFunction, isNonNullObject, isNullish, isObject, isObjectType, isPrimitive, isPromise, isString, keysOf };
43
+ export declare function isBlankString(value: unknown | undefined): value is string;
44
+ export declare function isDateObject(value: unknown): value is Date;
45
+ export declare function isObjectType(value: unknown): value is object | null;
46
+ export declare function isFunction(value: unknown): value is (...args: any[]) => any;
47
+ export declare function isObject(value: unknown): value is Record<string, unknown>;
48
+ export declare function isPromise(value: any): value is PromiseLike<any>;
49
+ export declare function keysOf<TRecord extends object>(record: TRecord): (keyof TRecord)[];
50
+ //#endregion
@@ -1,16 +1,20 @@
1
1
  import { isArrayValue, isBlankString, isDateObject, isFunction, isNonNullObject, isNullish, isObject, isObjectType, isPrimitive, isPromise, isString, keysOf } from "./guard.js";
2
- import { appendAt, arrayRemove, chunk, compact, findValuesBetween, flattenChildren, getNextMatch, insertAt, moveAt, omit, pick, prependAt, removeAt, swapAt, updateAt, wrapArray } from "./object.js";
3
- import { interpolate, isKey, stringToPath } from "./string.js";
2
+ import { appendAt, arrayRemove, chunk, compact, defu, findValuesBetween, flattenChildren, getNextMatch, insertAt, isEqual, klona, moveAt, omit, pick, prependAt, removeAt, swapAt, updateAt, wrapArray } from "./object.js";
3
+ import { camelCase, capitalize, interpolate, isKey, kebabCase, pascalCase, snakeCase, stringToPath } from "./string.js";
4
+ import { arrayMove, filterNullish } from "./array.js";
4
5
  import { isValueEqualOrExist } from "./comparison.js";
5
6
  import { areColorsEqual, formatChannelValue, formatColor, getAreaBackgroundStyle, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getColorContrast, getColorLabel, getSliderBackgroundStyle, hasVisibleChromaticity, isValidColor, normalizeColor, resolveColorFormat, setChannelValue, setChannelValues, toColorObject } from "./color.js";
6
7
  import { clamp, getBinaryCheckedState, getCheckedState, getDisclosureState, getOpenFromSingleOrMultiple, getValue, isIndeterminate, roundToStepPrecision, setValue, snapValueToStep } from "./value.js";
7
8
  import { createFieldName, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue } from "./form.js";
8
9
  import { getActiveElement, getAriaLabel, getCollectionItemElements, isElementHasAttribute, isHTMLElement, removeLinks } from "./dom.js";
9
10
  import { focus, focusFirstAndSelect, getDirectionAwareKey, getFocusIntent, getTabbableCandidates, getTabbableEdges, removeFromTabOrder, tryFocusFirst } from "./focus.js";
10
- import { getElFromTemplateRef, getLifeCycleTarget, getMergedRefsValue, getRawChildren, getVueBooleanCasting, isFormControl, transformPropsToContext } from "./vue.js";
11
- import { isBrowser, isClient, isIOS, refreshIOSDetection } from "./env.js";
11
+ import { FuzzyOptions, FuzzyResult, fuzzySearch } from "./fuzzy.js";
12
+ import { MarkOthersOptions, markOthers } from "./mark-others.js";
13
+ import { fromContext, getElFromTemplateRef, getLifeCycleTarget, getMergedRefsValue, getRawChildren, getVueBooleanCasting, isFormControl, toContext } from "./vue.js";
14
+ import { isBrowser, isClient, isIOS, refreshIOSDetection, supportsInert } from "./env.js";
12
15
  import { handleAndDispatchCustomEvent, isMouseEvent } from "./event.js";
13
16
  import { getExitSideFromRect, getHull, getPaddedExitPoints, getPointsFromRect, isDeltaInDirection, isPointInPolygon, isPointerInGraceArea } from "./geometry.js";
14
17
  import { getTreePaths } from "./tree.js";
18
+ import { TreeNavigationKey, TreeNavigationNode, TreeNavigationResult, getTreeNavigationKey, resolveTreeNavigation } from "./tree-navigation.js";
15
19
  import { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive } from "./time-picker.js";
16
- export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, appendAt, areColorsEqual, arrayRemove, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, keysOf, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snapValueToStep, stringToPath, swapAt, toColorObject, transformPropsToContext, tryFocusFirst, updateAt, wrapArray };
20
+ export { CreateTimeOptionsProps, FormatTimeValueProps, FuzzyOptions, FuzzyResult, MarkOthersOptions, TimePickerOption, TreeNavigationKey, TreeNavigationNode, TreeNavigationResult, appendAt, areColorsEqual, arrayMove, arrayRemove, camelCase, capitalize, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, defu, filterNullish, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, fromContext, fuzzySearch, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreeNavigationKey, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isEqual, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, kebabCase, keysOf, klona, markOthers, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pascalCase, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, resolveTreeNavigation, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snakeCase, snapValueToStep, stringToPath, supportsInert, swapAt, toColorObject, toContext, tryFocusFirst, updateAt, wrapArray };
@@ -1 +1 @@
1
- import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,findValuesBetween as g,flattenChildren as _,getNextMatch as v,insertAt as y,moveAt as b,omit as x,pick as S,prependAt as C,removeAt as w,swapAt as T,updateAt as E,wrapArray as D}from"./object.js";import{interpolate as O,isKey as k,stringToPath as A}from"./string.js";import{isValueEqualOrExist as j}from"./comparison.js";import{areColorsEqual as M,formatChannelValue as N,formatColor as P,getAreaBackgroundStyle as F,getChannelName as I,getChannelObjectSpace as L,getChannelRange as R,getChannelValue as z,getColorContrast as B,getColorLabel as V,getSliderBackgroundStyle as H,hasVisibleChromaticity as U,isValidColor as W,normalizeColor as G,resolveColorFormat as K,setChannelValue as q,setChannelValues as J,toColorObject as Y}from"./color.js";import{clamp as X,getBinaryCheckedState as Z,getCheckedState as Q,getDisclosureState as $,getOpenFromSingleOrMultiple as ee,getValue as te,isIndeterminate as ne,roundToStepPrecision as re,setValue as ie,snapValueToStep as ae}from"./value.js";import{createFieldName as oe,parseArrayValue as se,parseFormValue as ce,parseObjectValue as le,parsePrimitiveValue as ue}from"./form.js";import{getActiveElement as de,getAriaLabel as fe,getCollectionItemElements as pe,isElementHasAttribute as me,isHTMLElement as he,removeLinks as ge}from"./dom.js";import{focus as _e,focusFirstAndSelect as ve,getDirectionAwareKey as ye,getFocusIntent as be,getTabbableCandidates as xe,getTabbableEdges as Se,removeFromTabOrder as Ce,tryFocusFirst as we}from"./focus.js";import{getElFromTemplateRef as Te,getLifeCycleTarget as Ee,getMergedRefsValue as De,getRawChildren as Oe,getVueBooleanCasting as ke,isFormControl as Ae,transformPropsToContext as je}from"./vue.js";import{isBrowser as Me,isClient as Ne,isIOS as Pe,refreshIOSDetection as Fe}from"./env.js";import{handleAndDispatchCustomEvent as Ie,isMouseEvent as Le}from"./event.js";import{getExitSideFromRect as Re,getHull as ze,getPaddedExitPoints as Be,getPointsFromRect as Ve,isDeltaInDirection as He,isPointInPolygon as Ue,isPointerInGraceArea as We}from"./geometry.js";import{getTreePaths as Ge}from"./tree.js";import{compareTimeValues as Ke,createTimeOptions as qe,findClosestTimeOption as Je,formatTimeValue as Ye,isTimeBetweenInclusive as Xe}from"./time-picker.js";export{f as appendAt,M as areColorsEqual,p as arrayRemove,m as chunk,X as clamp,h as compact,Ke as compareTimeValues,oe as createFieldName,qe as createTimeOptions,Je as findClosestTimeOption,g as findValuesBetween,_ as flattenChildren,_e as focus,ve as focusFirstAndSelect,N as formatChannelValue,P as formatColor,Ye as formatTimeValue,de as getActiveElement,F as getAreaBackgroundStyle,fe as getAriaLabel,Z as getBinaryCheckedState,I as getChannelName,L as getChannelObjectSpace,R as getChannelRange,z as getChannelValue,Q as getCheckedState,pe as getCollectionItemElements,B as getColorContrast,V as getColorLabel,ye as getDirectionAwareKey,$ as getDisclosureState,Te as getElFromTemplateRef,Re as getExitSideFromRect,be as getFocusIntent,ze as getHull,Ee as getLifeCycleTarget,De as getMergedRefsValue,v as getNextMatch,ee as getOpenFromSingleOrMultiple,Be as getPaddedExitPoints,Ve as getPointsFromRect,Oe as getRawChildren,H as getSliderBackgroundStyle,xe as getTabbableCandidates,Se as getTabbableEdges,Ge as getTreePaths,te as getValue,ke as getVueBooleanCasting,Ie as handleAndDispatchCustomEvent,U as hasVisibleChromaticity,y as insertAt,O as interpolate,e as isArrayValue,t as isBlankString,Me as isBrowser,Ne as isClient,n as isDateObject,He as isDeltaInDirection,me as isElementHasAttribute,Ae as isFormControl,r as isFunction,he as isHTMLElement,Pe as isIOS,ne as isIndeterminate,k as isKey,Le as isMouseEvent,i as isNonNullObject,a as isNullish,o as isObject,s as isObjectType,Ue as isPointInPolygon,We as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,Xe as isTimeBetweenInclusive,W as isValidColor,j as isValueEqualOrExist,d as keysOf,b as moveAt,G as normalizeColor,x as omit,se as parseArrayValue,ce as parseFormValue,le as parseObjectValue,ue as parsePrimitiveValue,S as pick,C as prependAt,Fe as refreshIOSDetection,w as removeAt,Ce as removeFromTabOrder,ge as removeLinks,K as resolveColorFormat,re as roundToStepPrecision,q as setChannelValue,J as setChannelValues,ie as setValue,ae as snapValueToStep,A as stringToPath,T as swapAt,Y as toColorObject,je as transformPropsToContext,we as tryFocusFirst,E as updateAt,D as wrapArray};
1
+ import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,defu as g,findValuesBetween as _,flattenChildren as v,getNextMatch as y,insertAt as b,isEqual as x,klona as S,moveAt as C,omit as w,pick as T,prependAt as E,removeAt as D,swapAt as O,updateAt as k,wrapArray as A}from"./object.js";import{camelCase as j,capitalize as M,interpolate as N,isKey as P,kebabCase as F,pascalCase as I,snakeCase as L,stringToPath as R}from"./string.js";import{arrayMove as z,filterNullish as B}from"./array.js";import{isValueEqualOrExist as V}from"./comparison.js";import{areColorsEqual as H,formatChannelValue as U,formatColor as W,getAreaBackgroundStyle as G,getChannelName as K,getChannelObjectSpace as q,getChannelRange as J,getChannelValue as Y,getColorContrast as X,getColorLabel as Z,getSliderBackgroundStyle as Q,hasVisibleChromaticity as $,isValidColor as ee,normalizeColor as te,resolveColorFormat as ne,setChannelValue as re,setChannelValues as ie,toColorObject as ae}from"./color.js";import{clamp as oe,getBinaryCheckedState as se,getCheckedState as ce,getDisclosureState as le,getOpenFromSingleOrMultiple as ue,getValue as de,isIndeterminate as fe,roundToStepPrecision as pe,setValue as me,snapValueToStep as he}from"./value.js";import{createFieldName as ge,parseArrayValue as _e,parseFormValue as ve,parseObjectValue as ye,parsePrimitiveValue as be}from"./form.js";import{getActiveElement as xe,getAriaLabel as Se,getCollectionItemElements as Ce,isElementHasAttribute as we,isHTMLElement as Te,removeLinks as Ee}from"./dom.js";import{focus as De,focusFirstAndSelect as Oe,getDirectionAwareKey as ke,getFocusIntent as Ae,getTabbableCandidates as je,getTabbableEdges as Me,removeFromTabOrder as Ne,tryFocusFirst as Pe}from"./focus.js";import{fuzzySearch as Fe}from"./fuzzy.js";import{isBrowser as Ie,isClient as Le,isIOS as Re,refreshIOSDetection as ze,supportsInert as Be}from"./env.js";import{markOthers as Ve}from"./mark-others.js";import{fromContext as He,getElFromTemplateRef as Ue,getLifeCycleTarget as We,getMergedRefsValue as Ge,getRawChildren as Ke,getVueBooleanCasting as qe,isFormControl as Je,toContext as Ye}from"./vue.js";import{handleAndDispatchCustomEvent as Xe,isMouseEvent as Ze}from"./event.js";import{getExitSideFromRect as Qe,getHull as $e,getPaddedExitPoints as et,getPointsFromRect as tt,isDeltaInDirection as nt,isPointInPolygon as rt,isPointerInGraceArea as it}from"./geometry.js";import{getTreePaths as at}from"./tree.js";import{getTreeNavigationKey as ot,resolveTreeNavigation as st}from"./tree-navigation.js";import{compareTimeValues as ct,createTimeOptions as lt,findClosestTimeOption as ut,formatTimeValue as dt,isTimeBetweenInclusive as ft}from"./time-picker.js";export{f as appendAt,H as areColorsEqual,z as arrayMove,p as arrayRemove,j as camelCase,M as capitalize,m as chunk,oe as clamp,h as compact,ct as compareTimeValues,ge as createFieldName,lt as createTimeOptions,g as defu,B as filterNullish,ut as findClosestTimeOption,_ as findValuesBetween,v as flattenChildren,De as focus,Oe as focusFirstAndSelect,U as formatChannelValue,W as formatColor,dt as formatTimeValue,He as fromContext,Fe as fuzzySearch,xe as getActiveElement,G as getAreaBackgroundStyle,Se as getAriaLabel,se as getBinaryCheckedState,K as getChannelName,q as getChannelObjectSpace,J as getChannelRange,Y as getChannelValue,ce as getCheckedState,Ce as getCollectionItemElements,X as getColorContrast,Z as getColorLabel,ke as getDirectionAwareKey,le as getDisclosureState,Ue as getElFromTemplateRef,Qe as getExitSideFromRect,Ae as getFocusIntent,$e as getHull,We as getLifeCycleTarget,Ge as getMergedRefsValue,y as getNextMatch,ue as getOpenFromSingleOrMultiple,et as getPaddedExitPoints,tt as getPointsFromRect,Ke as getRawChildren,Q as getSliderBackgroundStyle,je as getTabbableCandidates,Me as getTabbableEdges,ot as getTreeNavigationKey,at as getTreePaths,de as getValue,qe as getVueBooleanCasting,Xe as handleAndDispatchCustomEvent,$ as hasVisibleChromaticity,b as insertAt,N as interpolate,e as isArrayValue,t as isBlankString,Ie as isBrowser,Le as isClient,n as isDateObject,nt as isDeltaInDirection,we as isElementHasAttribute,x as isEqual,Je as isFormControl,r as isFunction,Te as isHTMLElement,Re as isIOS,fe as isIndeterminate,P as isKey,Ze as isMouseEvent,i as isNonNullObject,a as isNullish,o as isObject,s as isObjectType,rt as isPointInPolygon,it as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,ft as isTimeBetweenInclusive,ee as isValidColor,V as isValueEqualOrExist,F as kebabCase,d as keysOf,S as klona,Ve as markOthers,C as moveAt,te as normalizeColor,w as omit,_e as parseArrayValue,ve as parseFormValue,ye as parseObjectValue,be as parsePrimitiveValue,I as pascalCase,T as pick,E as prependAt,ze as refreshIOSDetection,D as removeAt,Ne as removeFromTabOrder,Ee as removeLinks,ne as resolveColorFormat,st as resolveTreeNavigation,pe as roundToStepPrecision,re as setChannelValue,ie as setChannelValues,me as setValue,L as snakeCase,he as snapValueToStep,R as stringToPath,Be as supportsInert,O as swapAt,ae as toColorObject,Ye as toContext,Pe as tryFocusFirst,k as updateAt,A as wrapArray};
@@ -0,0 +1,52 @@
1
+ //#region src/shared/mark-others.d.ts
2
+ /**
3
+ * Hides everything outside the given elements from assistive technology while a floating
4
+ * layer is open — the Base UI `markOthers` scheme (the core algorithm inlined and reworked
5
+ * from the `aria-hidden` package), kept dependency-free here so overlay families never need
6
+ * the third-party `aria-hidden` package.
7
+ *
8
+ * Mechanics:
9
+ * - Walks from `body` and applies a control attribute (`inert`, else `aria-hidden="true"`)
10
+ * to every element outside the keep set (the avoid elements and their ancestor chain).
11
+ * - Reference counts via WeakMaps plus a global `lockCount`, so stacked / nested layers
12
+ * each hold a lock and attributes are only removed when the last lock releases.
13
+ * - Attributes that already existed before the first lock are recorded as uncontrolled and
14
+ * preserved on release.
15
+ * - `aria-live` regions stay announced: they and their subtrees are excluded from hiding.
16
+ * - Shadow hosts are corrected through their shadow root; `<script>` elements are skipped.
17
+ * - The independent `mark` channel tags outside elements with `data-soybean-inert` for CSS
18
+ * hooks (dimmed background, disabled text selection) without touching the control
19
+ * attribute semantics.
20
+ */
21
+ type Undo = () => void;
22
+ export interface MarkOthersOptions {
23
+ /**
24
+ * Apply `aria-hidden="true"` to elements outside the keep set.
25
+ *
26
+ * @defaultValue false
27
+ */
28
+ ariaHidden?: boolean;
29
+ /**
30
+ * Apply `inert` to elements outside the keep set. Takes precedence over `ariaHidden`
31
+ * when both are set: `inert` removes content from the accessibility tree and the tab
32
+ * order at once, so modal layers prefer it where the runtime supports it.
33
+ *
34
+ * @defaultValue false
35
+ */
36
+ inert?: boolean;
37
+ /**
38
+ * Tag outside elements with `data-soybean-inert` (the marker channel).
39
+ *
40
+ * @defaultValue true
41
+ */
42
+ mark?: boolean;
43
+ }
44
+ /**
45
+ * Marks every element outside `avoidElements` per `options` and returns the undo function.
46
+ * Call the undo exactly once per `markOthers` call (usually in a cleanup hook).
47
+ *
48
+ * @param avoidElements - Elements (and their ancestor chains) that stay visible and announced.
49
+ * @param options - Which channels to apply: `inert`, `ariaHidden`, and/or the `mark` tag.
50
+ */
51
+ export declare function markOthers(avoidElements: Element[], options?: MarkOthersOptions): Undo;
52
+ //#endregion
@@ -0,0 +1 @@
1
+ import{INERT_MARKER_ATTR as e}from"../constants/attr.js";import{isClient as t}from"./env.js";const n={inert:new WeakMap,"aria-hidden":new WeakMap},r={inert:new WeakSet,"aria-hidden":new WeakSet};let i=new WeakMap,a=0;function o(e){return typeof ShadowRoot<`u`&&e instanceof ShadowRoot}function s(e){return(e.nodeName??``).toLowerCase()}function c(e){return e?o(e)?e.host:c(e.parentNode):null}function l(e,t){return t.map(t=>{if(e.contains(t))return t;let n=c(t);return e.contains(n)?n:null}).filter(e=>e!==null)}function u(e){let t=new Set;for(let n of e){let e=n;for(;e&&!t.has(e);)t.add(e),e=e.parentNode}return t}function d(e,t){let n=[];return(e=>{if(e)for(let r of Array.from(e.children))s(r)!==`script`&&(t.has(r)||n.push(r))})(e),n}function f(e,t,i){let a=n[t],o=r[t],s=[],c=l(e,Array.from(e.querySelectorAll(`[aria-live]`))),f=[...i,...c];for(let n of d(e,u(f))){let e=n.getAttribute(t),r=e!==null&&e!==`false`,i=(a.get(n)??0)+1;a.set(n,i),s.push(n),i===1&&r&&o.add(n),r||n.setAttribute(t,t===`inert`?``:`true`)}return{hiddenElements:s,uncontrolledElementsSet:o}}function p(t,n){let r=[];for(let a of d(t,u(n))){let t=(i.get(a)??0)+1;i.set(a,t),r.push(a),t===1&&a.setAttribute(e,``)}return r}function m(t,o,s,c){return()=>{if(t){let e=n[t];for(let n of o){let r=(e.get(n)??0)-1;e.set(n,r),r===0&&(s&&!s.has(n)&&n.removeAttribute(t),s?.delete(n))}}for(let t of c){let n=(i.get(t)??0)-1;i.set(t,n),n===0&&t.removeAttribute(e)}--a,a===0&&(n.inert=new WeakMap,n[`aria-hidden`]=new WeakMap,r.inert=new WeakSet,r[`aria-hidden`]=new WeakSet,i=new WeakMap)}}function h(e,n={}){let{ariaHidden:r=!1,inert:i=!1,mark:o=!0}=n;if(!t||e.length===0)return()=>{};let s=e[0].ownerDocument.body,c=l(s,e),u=i?`inert`:r?`aria-hidden`:null;a+=1;let d=[],h=null;if(u){let e=f(s,u,c);d=e.hiddenElements,h=e.uncontrolledElementsSet}let g=o?p(s,c):[];return m(u,d,h,g)}export{h as markOthers};
@@ -1,4 +1,25 @@
1
1
  //#region src/shared/object.d.ts
2
+ /**
3
+ * Structured deep comparison (covers the common `ohash isEqual` semantics: objects / arrays / Date / NaN).
4
+ *
5
+ * @param a - First value
6
+ * @param b - Second value
7
+ * @returns Whether the two values are structurally equal
8
+ */
9
+ export declare function isEqual(a: unknown, b: unknown): boolean;
10
+ type UnionToIntersection<U> = (U extends unknown ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never;
11
+ /**
12
+ * Recursive defaults merge: `defu({ a: 1 }, { a: 2, b: 3 })` → `{ a: 1, b: 3 }`.
13
+ * Left side wins; plain objects merge recursively, arrays and other types are taken from the left side.
14
+ */
15
+ export declare function defu<T extends object, D extends object[]>(source: T | undefined, ...defaults: D): UnionToIntersection<T | D[number]>;
16
+ /**
17
+ * Structured deep clone (JSON-cloneable values + Date), replacing `klona`.
18
+ *
19
+ * @param value - The value to clone
20
+ * @returns A deep clone of the value
21
+ */
22
+ export declare function klona<T>(value: T): T;
2
23
  /**
3
24
  * Select specified properties from an object
4
25
  *
@@ -6,7 +27,7 @@
6
27
  * @param keys - Array of property keys to select
7
28
  * @returns New object containing specified properties
8
29
  */
9
- declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
30
+ export declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
10
31
  /**
11
32
  * Exclude specified properties from an object
12
33
  *
@@ -14,8 +35,8 @@ declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T,
14
35
  * @param keys - Array of property keys to exclude
15
36
  * @returns New object with specified properties excluded
16
37
  */
17
- declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
18
- declare function compact<T>(value: T[]): T[];
38
+ export declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
39
+ export declare function compact<T>(value: T[]): T[];
19
40
  /**
20
41
  * Remove specified element from an array
21
42
  *
@@ -23,19 +44,19 @@ declare function compact<T>(value: T[]): T[];
23
44
  * @param item - Element to remove
24
45
  * @returns New array with element removed
25
46
  */
26
- declare function arrayRemove<T>(array: T[], item: T): T[];
47
+ export declare function arrayRemove<T>(array: T[], item: T): T[];
27
48
  /**
28
49
  * Wraps an array around itself at a given start index Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a',
29
50
  * 'b']`
30
51
  */
31
- declare function wrapArray<T>(array: T[], startIndex: number): T[];
32
- declare function appendAt<T>(data: T[], value: T): T[];
33
- declare function prependAt<T>(data: T[], value: T): T[];
34
- declare function removeAt<T>(data: T[], index?: number): T[];
35
- declare function swapAt<T>(data: T[], indexA: number, indexB: number): void;
36
- declare function moveAt<T>(data: T[], from: number, to: number): void;
37
- declare function insertAt<T>(data: T[], index: number, value: T): T[];
38
- declare function updateAt<T>(data: T[], index: number, value: T): T[];
52
+ export declare function wrapArray<T>(array: T[], startIndex: number): T[];
53
+ export declare function appendAt<T>(data: T[], value: T): T[];
54
+ export declare function prependAt<T>(data: T[], value: T): T[];
55
+ export declare function removeAt<T>(data: T[], index?: number): T[];
56
+ export declare function swapAt<T>(data: T[], indexA: number, indexB: number): void;
57
+ export declare function moveAt<T>(data: T[], from: number, to: number): void;
58
+ export declare function insertAt<T>(data: T[], index: number, value: T): T[];
59
+ export declare function updateAt<T>(data: T[], index: number, value: T): T[];
39
60
  /**
40
61
  * This is the "meat" of the typeahead matching logic. It takes in all the values, the search and the current match, and
41
62
  * returns the next match (or `undefined`).
@@ -50,7 +71,7 @@ declare function updateAt<T>(data: T[], index: number, value: T): T[];
50
71
  * otherwise it would be the first to match always and focus would never move. This is as opposed to the regular case,
51
72
  * where we don't want focus to move if the current match still matches.
52
73
  */
53
- declare function getNextMatch(values?: string[], search?: string, currentMatch?: string): string | undefined;
74
+ export declare function getNextMatch(values?: string[], search?: string, currentMatch?: string): string | undefined;
54
75
  /**
55
76
  * The function `findValuesBetween` takes an array and two values, then returns a subarray containing elements between
56
77
  * the first occurrence of the start value and the first occurrence of the end value in the array.
@@ -65,10 +86,9 @@ declare function getNextMatch(values?: string[], search?: string, currentMatch?:
65
86
  * `start` and `end` values (inclusive). If either the `start` or `end` values are not found in the input array, an
66
87
  * empty array is returned.
67
88
  */
68
- declare function findValuesBetween<T>(array: T[], start: T, end: T): T[];
69
- declare function flattenChildren<T extends {
89
+ export declare function findValuesBetween<T>(array: T[], start: T, end: T): T[];
90
+ export declare function flattenChildren<T extends {
70
91
  children?: any[];
71
92
  }>(items?: T[]): Omit<T, "children">[];
72
- declare function chunk<T>(array: T[], size: number): T[][];
73
- //#endregion
74
- export { appendAt, arrayRemove, chunk, compact, findValuesBetween, flattenChildren, getNextMatch, insertAt, moveAt, omit, pick, prependAt, removeAt, swapAt, updateAt, wrapArray };
93
+ export declare function chunk<T>(array: T[], size: number): T[][];
94
+ //#endregion
@@ -1 +1 @@
1
- import{isEqual as e}from"ohash";function t(e,t){let n={};for(let r of t)n[r]=e[r];return n}function n(e,t){let n={};for(let r in e){let i=r;t.includes(i)||(n[i]=e[i])}return n}function r(e){return Array.isArray(e)?e.filter(Boolean):[]}function i(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function a(e,t){if(e.length===0)return[];let n=(t%e.length+e.length)%e.length;return e.map((t,r)=>e[(n+r)%e.length])}function o(e,t){return[...e,t]}function s(e,t){return[t,...e]}function c(e,t){if(t===void 0)return[];let n=[...e];return n.splice(t,1),n}function l(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function u(e,t,n){let[r]=e.splice(t,1);e.splice(n,0,r)}function d(e,t,n){return[...e.slice(0,t),n,...e.slice(t)]}function f(e,t,n){let r=[...e];return r[t]=n,r}function p(e,t,n){if(!e?.length||!t)return;let r=t.length>1&&t[0]?.repeat(t.length)===t?t[0]:t,i=r.toLowerCase(),a=r.length===1,o=n?e.indexOf(n):-1,s=Math.max(o,0),c=e.length;for(let t=0;t<c;t++){let r=e[(s+t)%c];if((!a||r!==n)&&r?.toLowerCase().startsWith(i))return r===n?void 0:r}}function m(t,n,r){let i=t.findIndex(t=>e(t,n)),a=t.findIndex(t=>e(t,r));if(i===-1||a===-1)return[];let[o,s]=[i,a].sort((e,t)=>e-t);return t.slice(o,s+1)}function h(e){return e?e.reduce((e,t)=>(e.push(t),t.children&&e.push(...h(t.children)),e),[]):[]}function g(e,t){if(t<=0)throw RangeError(`chunk size must be greater than 0`);let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}export{o as appendAt,i as arrayRemove,g as chunk,r as compact,m as findValuesBetween,h as flattenChildren,p as getNextMatch,d as insertAt,u as moveAt,n as omit,t as pick,s as prependAt,c as removeAt,l as swapAt,f as updateAt,a as wrapArray};
1
+ import{isObject as e}from"./guard.js";function t(n,r){if(n===r)return!0;if(typeof n==`number`&&typeof r==`number`)return Number.isNaN(n)&&Number.isNaN(r);if(n instanceof Date&&r instanceof Date)return n.getTime()===r.getTime();if(Array.isArray(n)&&Array.isArray(r))return n.length===r.length&&n.every((e,n)=>t(e,r[n]));if(e(n)&&e(r)){let e=Object.keys(n),i=Object.keys(r);return e.length===i.length&&e.every(e=>e in r&&t(n[e],r[e]))}return!1}function n(t,...r){let i={};for(let a of[t,...r])if(e(a))for(let t of Object.keys(a)){let r=a[t],o=i[t];o===void 0?i[t]=r:e(o)&&e(r)&&(i[t]=n(o,r))}return i}function r(t){if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.map(e=>r(e));if(e(t)){let e={};for(let n of Object.keys(t))e[n]=r(t[n]);return e}return t}function i(e,t){let n={};for(let r of t)n[r]=e[r];return n}function a(e,t){let n={};for(let r in e){let i=r;t.includes(i)||(n[i]=e[i])}return n}function o(e){return Array.isArray(e)?e.filter(Boolean):[]}function s(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function c(e,t){if(e.length===0)return[];let n=(t%e.length+e.length)%e.length;return e.map((t,r)=>e[(n+r)%e.length])}function l(e,t){return[...e,t]}function u(e,t){return[t,...e]}function d(e,t){if(t===void 0)return[];let n=[...e];return n.splice(t,1),n}function f(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function p(e,t,n){let[r]=e.splice(t,1);e.splice(n,0,r)}function m(e,t,n){return[...e.slice(0,t),n,...e.slice(t)]}function h(e,t,n){let r=[...e];return r[t]=n,r}function g(e,t,n){if(!e?.length||!t)return;let r=t.length>1&&t[0]?.repeat(t.length)===t?t[0]:t,i=r.toLowerCase(),a=r.length===1,o=n?e.indexOf(n):-1,s=Math.max(o,0),c=e.length;for(let t=0;t<c;t++){let r=e[(s+t)%c];if((!a||r!==n)&&r?.toLowerCase().startsWith(i))return r===n?void 0:r}}function _(e,n,r){let i=e.findIndex(e=>t(e,n)),a=e.findIndex(e=>t(e,r));if(i===-1||a===-1)return[];let[o,s]=[i,a].sort((e,t)=>e-t);return e.slice(o,s+1)}function v(e){return e?e.reduce((e,t)=>(e.push(t),t.children&&e.push(...v(t.children)),e),[]):[]}function y(e,t){if(t<=0)throw RangeError(`chunk size must be greater than 0`);let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}export{l as appendAt,s as arrayRemove,y as chunk,o as compact,n as defu,_ as findValuesBetween,v as flattenChildren,g as getNextMatch,m as insertAt,t as isEqual,r as klona,p as moveAt,a as omit,i as pick,u as prependAt,d as removeAt,f as swapAt,h as updateAt,c as wrapArray};
@@ -1,22 +1,34 @@
1
1
  //#region src/shared/string.d.ts
2
+ export declare function capitalize(str: string): string;
3
+ /** 'helloWorld' | 'hello_world' | 'Hello World' | 'SButton' → 'hello-world' | 's-button' */
4
+ export declare function kebabCase(str: string): string;
5
+ /**
6
+ * 'hello-world' | 'hello_world' | 'hello world' | 'SButton' | 'HTTPRequest' → 'HelloWorld' | 'SButton' | 'HTTPRequest'
7
+ *
8
+ * Splits on both separators and camel-case boundaries so already-cased names
9
+ * (e.g. 'SButton', 'AccordionRoot') keep their inner capitals.
10
+ */
11
+ export declare function pascalCase(str: string): string;
12
+ /** 'hello-world' | 'hello_world' | 'Hello World' → 'helloWorld' */
13
+ export declare function camelCase(str: string): string;
14
+ export declare function snakeCase(str: string): string;
2
15
  /**
3
16
  * Convert string to path
4
17
  *
5
18
  * @param str - The string to convert
6
19
  * @returns Path
7
20
  */
8
- declare function stringToPath(str: string): string[];
21
+ export declare function stringToPath(str: string): string[];
9
22
  /**
10
23
  * Check if string is a key
11
24
  *
12
25
  * @param str - The string to check
13
26
  * @returns Whether the string is a key
14
27
  */
15
- declare function isKey(str: string): boolean;
28
+ export declare function isKey(str: string): boolean;
16
29
  /**
17
30
  * Replace `{key}` placeholders in a template string with values from `params`.
18
31
  * Unknown keys are left as-is.
19
32
  */
20
- declare function interpolate(template: string, params: Record<string, string>): string;
21
- //#endregion
22
- export { interpolate, isKey, stringToPath };
33
+ export declare function interpolate(template: string, params: Record<string, string>): string;
34
+ //#endregion
@@ -1 +1 @@
1
- import{compact as e}from"./object.js";function t(t){return e(t.replace(/["|']|\]/g,``).split(/\.|\[/))}function n(e){return/^\w*$/.test(e)}function r(e,t){return e.replace(/\{(\w+)\}/g,(e,n)=>t[n]??e)}export{r as interpolate,n as isKey,t as stringToPath};
1
+ import{compact as e}from"./object.js";function t(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function n(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).replace(/-+/g,`-`).replace(/^-|-$/g,``).toLowerCase()}function r(e){return(e.match(/[A-Z]{2,}(?=[A-Z][a-z]+|\b)|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).map(e=>t(e)).join(``)}function i(e){let t=r(e);return t.charAt(0).toLowerCase()+t.slice(1)}function a(e){return n(e).replace(/-/g,`_`)}function o(t){return e(t.replace(/["|']|\]/g,``).split(/\.|\[/))}function s(e){return/^\w*$/.test(e)}function c(e,t){return e.replace(/\{(\w+)\}/g,(e,n)=>t[n]??e)}export{i as camelCase,t as capitalize,c as interpolate,s as isKey,n as kebabCase,r as pascalCase,a as snakeCase,o as stringToPath};
@@ -2,29 +2,28 @@ import { DateStep, HourCycle, TimeGranularity, TimeMatcher, TimeValue } from "..
2
2
  import { Formatter } from "../date/formatter.js";
3
3
  import "../date/index.js";
4
4
  //#region src/shared/time-picker.d.ts
5
- interface TimePickerOption {
5
+ export interface TimePickerOption {
6
6
  value: TimeValue;
7
7
  label: string;
8
8
  key: string;
9
9
  }
10
- interface FormatTimeValueProps {
10
+ export interface FormatTimeValueProps {
11
11
  formatter: Formatter;
12
12
  granularity: TimeGranularity;
13
13
  hideTimeZone?: boolean;
14
14
  hourCycle?: HourCycle;
15
15
  value: TimeValue;
16
16
  }
17
- interface CreateTimeOptionsProps extends Omit<FormatTimeValueProps, 'value'> {
17
+ export interface CreateTimeOptionsProps extends Omit<FormatTimeValueProps, 'value'> {
18
18
  isTimeUnavailable?: TimeMatcher;
19
19
  maxValue?: TimeValue;
20
20
  minValue?: TimeValue;
21
21
  reference: TimeValue;
22
22
  step?: DateStep;
23
23
  }
24
- declare function compareTimeValues(a: TimeValue, b: TimeValue): number;
25
- declare function isTimeBetweenInclusive(date: TimeValue, start: TimeValue, end: TimeValue): boolean;
26
- declare function formatTimeValue(props: FormatTimeValueProps): string;
27
- declare function createTimeOptions(props: CreateTimeOptionsProps): TimePickerOption[];
28
- declare function findClosestTimeOption(options: TimePickerOption[], value: TimeValue | undefined): TimePickerOption;
29
- //#endregion
30
- export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive };
24
+ export declare function compareTimeValues(a: TimeValue, b: TimeValue): number;
25
+ export declare function isTimeBetweenInclusive(date: TimeValue, start: TimeValue, end: TimeValue): boolean;
26
+ export declare function formatTimeValue(props: FormatTimeValueProps): string;
27
+ export declare function createTimeOptions(props: CreateTimeOptionsProps): TimePickerOption[];
28
+ export declare function findClosestTimeOption(options: TimePickerOption[], value: TimeValue | undefined): TimePickerOption;
29
+ //#endregion
@@ -1 +1 @@
1
- import{isAfter as e,isAfterOrSame as t,isBefore as n,isBeforeOrSame as r,isEqualValue as i,isTime as a,isZonedDateTime as o}from"../date/comparators.js";import{getOptsByGranularity as s}from"../date/utils.js";import"../date/index.js";function c(t,r){return n(t,r)?-1:+!!e(t,r)}function l(e,n,i){return t(e,n)&&r(e,i)}function u(e){return e.formatter.toParts(e.value,s(e.granularity,e.hourCycle,!0)).filter(t=>t.type!==`timeZoneName`||!e.hideTimeZone&&!a(e.value)&&o(e.value)).map(e=>e.value).join(``)}function d(t){let r=p(t.granularity,t.step),i=Math.ceil(86400/r);return Array.from({length:i},(e,n)=>{let i=n*r,a=Math.floor(i/3600)%24,o=Math.floor(i%3600/60),s=i%60,c=t.reference.set({hour:a,minute:o,second:s,millisecond:0});return{value:c,label:u({formatter:t.formatter,granularity:t.granularity,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,value:c}),key:c.toString()}}).filter(r=>!(t.minValue&&n(r.value,t.minValue)||t.maxValue&&e(r.value,t.maxValue)||t.isTimeUnavailable?.(r.value)))}function f(e,t){return t?e.find(e=>i(e.value,t))??e[0]:e[0]}function p(e,t){let n=(t?.hour??0)*3600+(t?.minute??0)*60+(t?.second??0);return n>0?n:e===`hour`?3600:e===`second`?30:1800}export{c as compareTimeValues,d as createTimeOptions,f as findClosestTimeOption,u as formatTimeValue,l as isTimeBetweenInclusive};
1
+ import{isAfter as e,isAfterOrSame as t,isBefore as n,isBeforeOrSame as r,isEqualValue as i,isTime as a,isZonedDateTime as o}from"../date/comparators.js";import{getOptsByGranularity as s}from"../date/utils.js";function c(t,r){return n(t,r)?-1:+!!e(t,r)}function l(e,n,i){return t(e,n)&&r(e,i)}function u(e){return e.formatter.toParts(e.value,s(e.granularity,e.hourCycle,!0)).filter(t=>t.type!==`timeZoneName`||!e.hideTimeZone&&!a(e.value)&&o(e.value)).map(e=>e.value).join(``)}function d(t){let r=p(t.granularity,t.step),i=Math.ceil(86400/r);return Array.from({length:i},(e,n)=>{let i=n*r,a=Math.floor(i/3600)%24,o=Math.floor(i%3600/60),s=i%60,c=t.reference.set({hour:a,minute:o,second:s,millisecond:0});return{value:c,label:u({formatter:t.formatter,granularity:t.granularity,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,value:c}),key:c.toString()}}).filter(r=>!(t.minValue&&n(r.value,t.minValue)||t.maxValue&&e(r.value,t.maxValue)||t.isTimeUnavailable?.(r.value)))}function f(e,t){return t?e.find(e=>i(e.value,t))??e[0]:e[0]}function p(e,t){let n=(t?.hour??0)*3600+(t?.minute??0)*60+(t?.second??0);return n>0?n:e===`hour`?3600:e===`second`?30:1800}export{c as compareTimeValues,d as createTimeOptions,f as findClosestTimeOption,u as formatTimeValue,l as isTimeBetweenInclusive};
@@ -0,0 +1,59 @@
1
+ import { Direction } from "../types/common.js";
2
+ import "../types/index.js";
3
+ //#region src/shared/tree-navigation.d.ts
4
+ /**
5
+ * A single visible node of a tree flattened for keyboard navigation.
6
+ *
7
+ * Only nodes that are currently rendered (every ancestor branch expanded) take
8
+ * part in navigation, aligned with the WAI-ARIA tree pattern.
9
+ */
10
+ export interface TreeNavigationNode {
11
+ /** Unique value of the node. */
12
+ value: string;
13
+ /** Depth of the node inside the visible tree (0 = root level). */
14
+ level: number;
15
+ /** Whether the node renders children. */
16
+ hasChildren: boolean;
17
+ /** Whether the node's children are currently expanded. */
18
+ expanded: boolean;
19
+ /** Whether the node cannot receive focus. */
20
+ disabled?: boolean;
21
+ }
22
+ /**
23
+ * Logical navigation keys of a tree.
24
+ *
25
+ * `left`/`right` are the physical keys; RTL mapping happens inside
26
+ * `resolveTreeNavigation` so callers can forward the raw event key.
27
+ */
28
+ export type TreeNavigationKey = 'up' | 'down' | 'left' | 'right' | 'home' | 'end';
29
+ /**
30
+ * Result of resolving a tree navigation key.
31
+ *
32
+ * - `targetValue`: move focus to the node carrying this value.
33
+ * - `toggleExpand`: expand or collapse the current node instead of moving focus.
34
+ */
35
+ export interface TreeNavigationResult {
36
+ targetValue?: string;
37
+ toggleExpand?: boolean;
38
+ }
39
+ /**
40
+ * Extract the logical tree navigation key from a keyboard event.
41
+ *
42
+ * Returns `null` for every non-navigation key so callers can bail out early.
43
+ */
44
+ export declare function getTreeNavigationKey(event: KeyboardEvent): TreeNavigationKey | null;
45
+ /**
46
+ * Resolve a tree navigation key against the flattened visible tree.
47
+ *
48
+ * Rules follow the WAI-ARIA APG tree pattern:
49
+ *
50
+ * - `up`/`down`: move to the previous/next visible node, skipping disabled
51
+ * nodes, without wrapping around.
52
+ * - `right` (or `left` in RTL): closed branches expand (focus stays); expanded
53
+ * branches move focus to their first focusable child; leaves are no-ops.
54
+ * - `left` (or `right` in RTL): expanded branches collapse; leaves and closed
55
+ * branches move focus to the parent; root-level nodes are no-ops.
56
+ * - `home`/`end`: move to the first/last focusable visible node.
57
+ */
58
+ export declare function resolveTreeNavigation(nodes: TreeNavigationNode[], currentValue: string, key: TreeNavigationKey, dir?: Direction): TreeNavigationResult | null;
59
+ //#endregion
@@ -0,0 +1 @@
1
+ const e={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`,Home:`home`,End:`end`};function t(t){return e[t.key]??null}function n(e,t,n){for(let r=t;r>=0&&r<e.length;r+=n){let t=e[r];if(!t.disabled)return t.value}}function r(e,t){let n=e[t];for(let r=t+1;r<e.length;r+=1){let t=e[r];if(t.level<=n.level)return;if(t.level===n.level+1&&!t.disabled)return t.value}}function i(e,t){let n=e[t];for(let r=t-1;r>=0;--r){let t=e[r];if(t.level<n.level-1)return;if(t.level===n.level-1)return t.disabled?void 0:t.value}}function a(e,t,a,o=`ltr`){let s=e.findIndex(e=>e.value===t);if(s===-1)return null;let c=e[s];switch(a){case`up`:{let t=n(e,s-1,-1);return t?{targetValue:t}:null}case`down`:{let t=n(e,s+1,1);return t?{targetValue:t}:null}case`home`:{let t=n(e,0,1);return t?{targetValue:t}:null}case`end`:{let t=n(e,e.length-1,-1);return t?{targetValue:t}:null}default:{if(o===`rtl`?a===`left`:a===`right`){if(!c.hasChildren)return null;if(!c.expanded)return{toggleExpand:!0};let t=r(e,s);return t?{targetValue:t}:null}if(c.hasChildren&&c.expanded)return{toggleExpand:!0};let t=i(e,s);return t?{targetValue:t}:null}}}export{t as getTreeNavigationKey,a as resolveTreeNavigation};
@@ -7,6 +7,5 @@ interface BaseTree<T extends DefinedValue = DefinedValue> {
7
7
  type Tree<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>> = BaseTree<T> & {
8
8
  children?: S[];
9
9
  };
10
- declare function getTreePaths<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>>(targetValue: T, items: Tree<T, S>[]): T[];
11
- //#endregion
12
- export { getTreePaths };
10
+ export declare function getTreePaths<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>>(targetValue: T, items: Tree<T, S>[]): T[];
11
+ //#endregion
@@ -1,9 +1,9 @@
1
1
  import { CheckedState, DefinedValue, MaybeArray } from "../types/common.js";
2
2
  import "../types/index.js";
3
3
  //#region src/shared/value.d.ts
4
- declare function isIndeterminate(checked?: CheckedState | null): checked is 'indeterminate';
5
- declare function getCheckedState(checked?: CheckedState | null): "checked" | "unchecked" | "indeterminate";
6
- declare function getBinaryCheckedState(checked?: CheckedState | null): "checked" | "unchecked";
4
+ export declare function isIndeterminate(checked?: CheckedState | null): checked is 'indeterminate';
5
+ export declare function getCheckedState(checked?: CheckedState | null): "checked" | "unchecked" | "indeterminate";
6
+ export declare function getBinaryCheckedState(checked?: CheckedState | null): "checked" | "unchecked";
7
7
  /**
8
8
  * Check if value is enabled based on single or multiple selection mode
9
9
  *
@@ -12,14 +12,14 @@ declare function getBinaryCheckedState(checked?: CheckedState | null): "checked"
12
12
  * @param isSingle - Whether it's single selection mode
13
13
  * @returns Whether it's enabled
14
14
  */
15
- declare function getOpenFromSingleOrMultiple(value: DefinedValue, modelValue: MaybeArray<DefinedValue> | undefined, isMultiple: boolean): boolean;
15
+ export declare function getOpenFromSingleOrMultiple(value: DefinedValue, modelValue: MaybeArray<DefinedValue> | undefined, isMultiple: boolean): boolean;
16
16
  /**
17
17
  * Return corresponding string based on open state
18
18
  *
19
19
  * @param open - Whether it's open
20
20
  * @returns 'open' or 'closed'
21
21
  */
22
- declare function getDisclosureState(open?: boolean): "open" | "closed";
22
+ export declare function getDisclosureState(open?: boolean): "open" | "closed";
23
23
  /**
24
24
  * The `clamp` function restricts a number within a specified range by returning the value itself if it falls within the
25
25
  * range, or the closest boundary value if it exceeds the range.
@@ -31,7 +31,7 @@ declare function getDisclosureState(open?: boolean): "open" | "closed";
31
31
  * @param {number} max - If the `value` parameter is greater than the `max` value, the function will return `max`.
32
32
  * @returns The `clamp` function returns the value of `value` constrained within the range defined by `min` and `max`.
33
33
  */
34
- declare function clamp(value: number, min?: number, max?: number): number;
34
+ export declare function clamp(value: number, min?: number, max?: number): number;
35
35
  /**
36
36
  * The function `roundToStepPrecision` rounds a number to a specified precision step.
37
37
  *
@@ -41,7 +41,7 @@ declare function clamp(value: number, min?: number, max?: number): number;
41
41
  * you want to round the `value`. For example, if `step` is 0.5, the `value` will be rounded to the nearest half.
42
42
  * @returns the `roundedValue` after rounding it to the precision specified by the `step`.
43
43
  */
44
- declare function roundToStepPrecision(value: number, step: number): number;
44
+ export declare function roundToStepPrecision(value: number, step: number): number;
45
45
  /**
46
46
  * The function `snapValueToStep` snaps a given value to the nearest step within a specified range.
47
47
  *
@@ -57,8 +57,7 @@ declare function roundToStepPrecision(value: number, step: number): number;
57
57
  * @returns a number that has been snapped to the nearest step value within the specified range of minimum and maximum
58
58
  * values.
59
59
  */
60
- declare function snapValueToStep(value: number, min: number | undefined, max: number | undefined, step: number): number;
61
- declare function setValue(obj: Record<string, any>, path: string, value?: any): Record<string, any>;
62
- declare function getValue<T>(obj: T, path: string, defaultValue?: unknown): any;
63
- //#endregion
64
- export { clamp, getBinaryCheckedState, getCheckedState, getDisclosureState, getOpenFromSingleOrMultiple, getValue, isIndeterminate, roundToStepPrecision, setValue, snapValueToStep };
60
+ export declare function snapValueToStep(value: number, min: number | undefined, max: number | undefined, step: number): number;
61
+ export declare function setValue(obj: Record<string, any>, path: string, value?: any): Record<string, any>;
62
+ export declare function getValue<T>(obj: T, path: string, defaultValue?: unknown): any;
63
+ //#endregion
@@ -1,14 +1,27 @@
1
- import { PropsToContext, VNodeRef } from "../types/vue.js";
1
+ import { ToContext, VNodeRef } from "../types/vue.js";
2
2
  import "../types/index.js";
3
3
  import { MaybeRefOrGetter, VNode } from "vue";
4
4
  //#region src/shared/vue.d.ts
5
- declare function getLifeCycleTarget(target?: any): any;
6
- declare function getRawChildren(children: VNode[]): VNode[];
7
- declare function getElFromTemplateRef<T extends HTMLElement>(nodeRef: VNodeRef): T | undefined;
8
- declare function transformPropsToContext<T extends Record<string, any>, K extends keyof T = keyof T>(props: T, keys?: K[]): PropsToContext<T, K>;
9
- declare function isFormControl(el?: HTMLElement | null): boolean;
5
+ export declare function getLifeCycleTarget(target?: any): any;
6
+ export declare function getRawChildren(children: VNode[]): VNode[];
7
+ export declare function getElFromTemplateRef<T extends HTMLElement>(nodeRef: VNodeRef): T | undefined;
8
+ /**
9
+ * Builds a reactive context value map (`ComputedRef` per key) from a source object.
10
+ *
11
+ * `source` accepts anything `toValue` understands — a reactive object such as `props`, a
12
+ * ref / computed of an object, or a getter returning one. Values are taken as-is, so a
13
+ * function-valued key stays a function in the context. Keys default to every own key of
14
+ * the resolved source.
15
+ */
16
+ export declare function toContext<T extends object, K extends keyof T = keyof T>(source: MaybeRefOrGetter<T>, keys?: K[]): ToContext<T, K>;
17
+ /**
18
+ * Snapshots a `toContext`-built context back into plain values (all own keys by default).
19
+ * A nullish context yields an empty object, whose missing keys behave like `undefined`
20
+ * ones in `defu` resolution chains.
21
+ */
22
+ export declare function fromContext<T extends object, K extends keyof T = keyof T>(context: ToContext<T, K> | null | undefined, keys?: K[]): Partial<T>;
23
+ export declare function isFormControl(el?: HTMLElement | null): boolean;
10
24
  type RefToValue<T extends MaybeRefOrGetter> = T extends MaybeRefOrGetter<infer V> ? V : never;
11
- declare const getMergedRefsValue: <T extends Record<string, MaybeRefOrGetter>>(refs: T) => { [K in keyof T]: RefToValue<T[K]>; };
12
- declare const getVueBooleanCasting: (value?: boolean | "") => boolean;
13
- //#endregion
14
- export { getElFromTemplateRef, getLifeCycleTarget, getMergedRefsValue, getRawChildren, getVueBooleanCasting, isFormControl, transformPropsToContext };
25
+ export declare const getMergedRefsValue: <T extends Record<string, MaybeRefOrGetter>>(refs: T) => { [K in keyof T]: RefToValue<T[K]>; };
26
+ export declare const getVueBooleanCasting: (value?: boolean | "") => boolean;
27
+ //#endregion
@@ -1 +1 @@
1
- import{Comment as e,Fragment as t,computed as n,getCurrentInstance as r,toValue as i}from"vue";const a={KEYED_FRAGMENT:128,BAIL:-2};function o(e){return e||r()}function s(n){let r=[],i=0;for(let o=0;o<n.length;o++){let c=n[o];c.type===t?((c.patchFlag??0)===a.KEYED_FRAGMENT&&i++,r=r.concat(s(c.children))):c.type!==e&&r.push(c)}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=a.BAIL;return r}function c(e){let t=e?.$el??e;return t&&t.nodeType!==1&&(t=void 0),t}function l(e,t){return(t??Object.keys(e)).reduce((t,r)=>(t[r]=n(()=>typeof e[r]==`function`?e[r]():e[r]),t),{})}function u(e){return!e||`classList`in e&&e.classList.contains(`form`)}const d=e=>{let t={};for(let n in e)t[n]=i(e[n]);return t},f=e=>!!e||e===``;export{c as getElFromTemplateRef,o as getLifeCycleTarget,d as getMergedRefsValue,s as getRawChildren,f as getVueBooleanCasting,u as isFormControl,l as transformPropsToContext};
1
+ import{Comment as e,Fragment as t,computed as n,getCurrentInstance as r,toValue as i}from"vue";const a={KEYED_FRAGMENT:128,BAIL:-2};function o(e){return e||r()}function s(n){let r=[],i=0;for(let o=0;o<n.length;o++){let c=n[o];c.type===t?((c.patchFlag??0)===a.KEYED_FRAGMENT&&i++,r=r.concat(s(c.children))):c.type!==e&&r.push(c)}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=a.BAIL;return r}function c(e){let t=e?.$el??e;return t&&t.nodeType!==1&&(t=void 0),t}function l(e,t){return(t??Object.keys(i(e))).reduce((t,r)=>(t[r]=n(()=>i(e)[r]),t),{})}function u(e,t){return e?(t??Object.keys(e)).reduce((t,n)=>(t[n]=e[n].value,t),{}):{}}function d(e){return!e||`classList`in e&&e.classList.contains(`form`)}const f=e=>{let t={};for(let n in e)t[n]=i(e[n]);return t},p=e=>!!e||e===``;export{u as fromContext,c as getElFromTemplateRef,o as getLifeCycleTarget,f as getMergedRefsValue,s as getRawChildren,p as getVueBooleanCasting,d as isFormControl,l as toContext};
@@ -1,15 +1,14 @@
1
1
  import { AnyColor, HslColor, HsvColor, OklchColor, RgbColor } from "@soybeanjs/colord";
2
2
  //#region src/types/color.d.ts
3
- type ColorValue = AnyColor;
4
- type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'oklch';
5
- type ColorSpace = 'hsl' | 'hsv' | 'oklch';
6
- type ColorObjectSpace = 'rgb' | ColorSpace;
7
- type ColorChannel = 'hue' | 'saturation' | 'lightness' | 'brightness' | 'red' | 'green' | 'blue' | 'alpha' | 'chroma';
8
- interface ColorChannelRange {
3
+ export type ColorValue = AnyColor;
4
+ export type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'oklch';
5
+ export type ColorSpace = 'hsl' | 'hsv' | 'oklch';
6
+ export type ColorObjectSpace = 'rgb' | ColorSpace;
7
+ export type ColorChannel = 'hue' | 'saturation' | 'lightness' | 'brightness' | 'red' | 'green' | 'blue' | 'alpha' | 'chroma';
8
+ export interface ColorChannelRange {
9
9
  min: number;
10
10
  max: number;
11
11
  step: number;
12
12
  }
13
- type NormalizedColor = RgbColor | HslColor | HsvColor | OklchColor;
14
- //#endregion
15
- export { ColorChannel, ColorChannelRange, ColorFormat, ColorObjectSpace, ColorSpace, ColorValue, NormalizedColor };
13
+ export type NormalizedColor = RgbColor | HslColor | HsvColor | OklchColor;
14
+ //#endregion