@soybeanjs/headless 0.18.0 → 0.20.0

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