@soybeanjs/headless 0.18.0 → 0.19.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 (962) 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 +3 -3
  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 +3 -7
  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.vue.d.ts +2 -2
  51. package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
  52. package/dist/components/bottom-sheet/context.js +1 -1
  53. package/dist/components/bottom-sheet/types.d.ts +3 -2
  54. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  55. package/dist/components/breadcrumb/breadcrumb-item.js +1 -1
  56. package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
  57. package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
  58. package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
  59. package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
  60. package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
  61. package/dist/components/breadcrumb/types.d.ts +8 -8
  62. package/dist/components/button/button.js +1 -1
  63. package/dist/components/button/types.d.ts +3 -2
  64. package/dist/components/calendar/calendar-cell-trigger.js +1 -1
  65. package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +3 -16
  66. package/dist/components/calendar/calendar-cell.js +1 -1
  67. package/dist/components/calendar/calendar-compact.js +1 -1
  68. package/dist/components/calendar/calendar-compact.vue.d.ts +3 -3
  69. package/dist/components/calendar/calendar-grid-body.js +1 -1
  70. package/dist/components/calendar/calendar-grid-head.js +1 -1
  71. package/dist/components/calendar/calendar-grid-row.js +1 -1
  72. package/dist/components/calendar/calendar-grid.js +1 -1
  73. package/dist/components/calendar/calendar-head-cell.js +1 -1
  74. package/dist/components/calendar/calendar-header.js +1 -1
  75. package/dist/components/calendar/calendar-header.vue.d.ts +1 -4
  76. package/dist/components/calendar/calendar-heading.js +1 -1
  77. package/dist/components/calendar/calendar-heading.vue.d.ts +6 -8
  78. package/dist/components/calendar/calendar-next.js +1 -1
  79. package/dist/components/calendar/calendar-next.vue.d.ts +6 -10
  80. package/dist/components/calendar/calendar-prev.js +1 -1
  81. package/dist/components/calendar/calendar-prev.vue.d.ts +6 -10
  82. package/dist/components/calendar/calendar-root.js +1 -1
  83. package/dist/components/calendar/calendar-root.vue.d.ts +2 -4
  84. package/dist/components/calendar/index.d.ts +2 -2
  85. package/dist/components/calendar/shared.js +1 -0
  86. package/dist/components/calendar/types.d.ts +119 -202
  87. package/dist/components/calendar/use-calendar.js +1 -1
  88. package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -0
  89. package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +15 -0
  90. package/dist/components/calendar-range/calendar-range-cell.js +1 -0
  91. package/dist/components/{range-calendar/range-calendar-cell.vue.d.ts → calendar-range/calendar-range-cell.vue.d.ts} +3 -3
  92. package/dist/components/calendar-range/calendar-range-compact.js +1 -0
  93. package/dist/components/{range-calendar/range-calendar-compact.vue.d.ts → calendar-range/calendar-range-compact.vue.d.ts} +5 -5
  94. package/dist/components/calendar-range/calendar-range-grid-body.js +1 -0
  95. package/dist/components/{range-calendar/range-calendar-grid-body.vue.d.ts → calendar-range/calendar-range-grid-body.vue.d.ts} +3 -3
  96. package/dist/components/calendar-range/calendar-range-grid-head.js +1 -0
  97. package/dist/components/{range-calendar/range-calendar-grid-head.vue.d.ts → calendar-range/calendar-range-grid-head.vue.d.ts} +3 -3
  98. package/dist/components/calendar-range/calendar-range-grid-row.js +1 -0
  99. package/dist/components/{range-calendar/range-calendar-grid-row.vue.d.ts → calendar-range/calendar-range-grid-row.vue.d.ts} +3 -3
  100. package/dist/components/calendar-range/calendar-range-grid.js +1 -0
  101. package/dist/components/{range-calendar/range-calendar-grid.vue.d.ts → calendar-range/calendar-range-grid.vue.d.ts} +3 -3
  102. package/dist/components/calendar-range/calendar-range-head-cell.js +1 -0
  103. package/dist/components/{range-calendar/range-calendar-head-cell.vue.d.ts → calendar-range/calendar-range-head-cell.vue.d.ts} +3 -3
  104. package/dist/components/calendar-range/calendar-range-header.js +1 -0
  105. package/dist/components/calendar-range/calendar-range-header.vue.d.ts +18 -0
  106. package/dist/components/calendar-range/calendar-range-heading.js +1 -0
  107. package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +20 -0
  108. package/dist/components/calendar-range/calendar-range-next.js +1 -0
  109. package/dist/components/calendar-range/calendar-range-next.vue.d.ts +20 -0
  110. package/dist/components/calendar-range/calendar-range-prev.js +1 -0
  111. package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +20 -0
  112. package/dist/components/calendar-range/calendar-range-root.js +1 -0
  113. package/dist/components/{range-calendar/range-calendar-root.vue.d.ts → calendar-range/calendar-range-root.vue.d.ts} +11 -23
  114. package/dist/components/calendar-range/context.d.ts +9 -0
  115. package/dist/components/calendar-range/context.js +1 -0
  116. package/dist/components/calendar-range/index.d.ts +16 -0
  117. package/dist/components/calendar-range/index.js +1 -0
  118. package/dist/components/calendar-range/types.d.ts +471 -0
  119. package/dist/components/{range-calendar/use-range-calendar.js → calendar-range/use-calendar-range.js} +1 -1
  120. package/dist/components/card/card-collapsible-trigger.js +1 -1
  121. package/dist/components/card/card-content.js +1 -1
  122. package/dist/components/card/card-description.js +1 -1
  123. package/dist/components/card/card-footer.js +1 -1
  124. package/dist/components/card/card-header.js +1 -1
  125. package/dist/components/card/card-root.js +1 -1
  126. package/dist/components/card/card-title-root.js +1 -1
  127. package/dist/components/card/card-title.js +1 -1
  128. package/dist/components/card/types.d.ts +6 -6
  129. package/dist/components/carousel/carousel-container.js +1 -1
  130. package/dist/components/carousel/carousel-content.js +1 -1
  131. package/dist/components/carousel/carousel-control.js +1 -1
  132. package/dist/components/carousel/carousel-item.js +1 -1
  133. package/dist/components/carousel/carousel-navigation.js +1 -1
  134. package/dist/components/carousel/carousel-next.js +1 -1
  135. package/dist/components/carousel/carousel-previous.js +1 -1
  136. package/dist/components/carousel/carousel-root.js +1 -1
  137. package/dist/components/carousel/types.d.ts +8 -7
  138. package/dist/components/checkbox/checkbox-card-compact.js +1 -1
  139. package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
  140. package/dist/components/checkbox/checkbox-compact.vue.d.ts +2 -2
  141. package/dist/components/checkbox/checkbox-control.js +1 -1
  142. package/dist/components/checkbox/checkbox-group-compact.js +1 -1
  143. package/dist/components/checkbox/checkbox-group-root.js +1 -1
  144. package/dist/components/checkbox/checkbox-indicator.js +1 -1
  145. package/dist/components/checkbox/checkbox-label.js +1 -1
  146. package/dist/components/checkbox/checkbox-root.js +1 -1
  147. package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
  148. package/dist/components/checkbox/context.js +1 -1
  149. package/dist/components/checkbox/types.d.ts +8 -6
  150. package/dist/components/clipboard/clipboard.js +1 -1
  151. package/dist/components/clipboard/types.d.ts +1 -1
  152. package/dist/components/collapsible/collapsible-content.js +1 -1
  153. package/dist/components/collapsible/collapsible-root.js +1 -1
  154. package/dist/components/collapsible/collapsible-root.vue.d.ts +2 -2
  155. package/dist/components/collapsible/collapsible-trigger.js +1 -1
  156. package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -4
  157. package/dist/components/collapsible/context.js +1 -1
  158. package/dist/components/collapsible/types.d.ts +6 -5
  159. package/dist/components/color-area/color-area-area.js +1 -1
  160. package/dist/components/color-area/color-area-area.vue.d.ts +1 -4
  161. package/dist/components/color-area/color-area-compact.js +1 -0
  162. package/dist/components/color-area/color-area-compact.vue.d.ts +19 -0
  163. package/dist/components/color-area/color-area-root.js +1 -1
  164. package/dist/components/color-area/color-area-root.vue.d.ts +2 -4
  165. package/dist/components/color-area/color-area-thumb.js +1 -1
  166. package/dist/components/color-area/index.d.ts +5 -4
  167. package/dist/components/color-area/index.js +1 -1
  168. package/dist/components/color-area/types.d.ts +24 -7
  169. package/dist/components/color-field/color-field-compact.js +1 -0
  170. package/dist/components/color-field/color-field-compact.vue.d.ts +15 -0
  171. package/dist/components/color-field/color-field-input.js +1 -1
  172. package/dist/components/color-field/color-field-root.js +1 -1
  173. package/dist/components/color-field/color-field-root.vue.d.ts +2 -4
  174. package/dist/components/color-field/index.d.ts +5 -4
  175. package/dist/components/color-field/index.js +1 -1
  176. package/dist/components/color-field/types.d.ts +20 -6
  177. package/dist/components/color-picker/color-picker-compact.js +1 -0
  178. package/dist/components/color-picker/color-picker-compact.vue.d.ts +60 -0
  179. package/dist/components/color-picker/color-picker-root.js +1 -1
  180. package/dist/components/color-picker/color-picker-root.vue.d.ts +16 -5
  181. package/dist/components/color-picker/color-picker-trigger.js +1 -0
  182. package/dist/components/color-picker/color-picker-trigger.vue.d.ts +25 -0
  183. package/dist/components/color-picker/context.d.ts +9 -0
  184. package/dist/components/color-picker/context.js +1 -0
  185. package/dist/components/color-picker/index.d.ts +6 -3
  186. package/dist/components/color-picker/index.js +1 -1
  187. package/dist/components/color-picker/shared.js +1 -0
  188. package/dist/components/color-picker/types.d.ts +132 -5
  189. package/dist/components/color-slider/color-slider-compact.js +1 -0
  190. package/dist/components/color-slider/color-slider-compact.vue.d.ts +19 -0
  191. package/dist/components/color-slider/color-slider-root.js +1 -1
  192. package/dist/components/color-slider/color-slider-root.vue.d.ts +3 -3
  193. package/dist/components/color-slider/color-slider-thumb.js +1 -1
  194. package/dist/components/color-slider/color-slider-track.js +1 -1
  195. package/dist/components/color-slider/index.d.ts +6 -5
  196. package/dist/components/color-slider/index.js +1 -1
  197. package/dist/components/color-slider/types.d.ts +24 -7
  198. package/dist/components/color-swatch/color-swatch-checker.js +1 -0
  199. package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +8 -0
  200. package/dist/components/color-swatch/color-swatch-compact.js +1 -0
  201. package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +15 -0
  202. package/dist/components/color-swatch/color-swatch-fill.js +1 -0
  203. package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +8 -0
  204. package/dist/components/color-swatch/color-swatch-root.js +1 -0
  205. package/dist/components/color-swatch/color-swatch-root.vue.d.ts +15 -0
  206. package/dist/components/color-swatch/context.d.ts +9 -0
  207. package/dist/components/color-swatch/context.js +1 -0
  208. package/dist/components/color-swatch/index.d.ts +7 -3
  209. package/dist/components/color-swatch/index.js +1 -1
  210. package/dist/components/color-swatch/types.d.ts +58 -5
  211. package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -0
  212. package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +28 -0
  213. package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
  214. package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.js +1 -1
  215. package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
  216. package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
  217. package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +1 -1
  218. package/dist/components/color-swatch-picker/context.js +1 -1
  219. package/dist/components/color-swatch-picker/index.d.ts +7 -6
  220. package/dist/components/color-swatch-picker/index.js +1 -1
  221. package/dist/components/color-swatch-picker/types.d.ts +63 -8
  222. package/dist/components/combobox/combobox-arrow.js +1 -1
  223. package/dist/components/combobox/combobox-cancel.js +1 -1
  224. package/dist/components/combobox/combobox-compact.js +1 -1
  225. package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
  226. package/dist/components/combobox/combobox-content-impl.js +1 -1
  227. package/dist/components/combobox/combobox-content.js +1 -1
  228. package/dist/components/combobox/combobox-empty.js +1 -1
  229. package/dist/components/combobox/combobox-empty.vue.d.ts +1 -4
  230. package/dist/components/combobox/combobox-group.js +1 -1
  231. package/dist/components/combobox/combobox-input.js +1 -1
  232. package/dist/components/combobox/combobox-item.js +1 -1
  233. package/dist/components/combobox/combobox-root.js +1 -1
  234. package/dist/components/combobox/combobox-root.vue.d.ts +3 -3
  235. package/dist/components/combobox/combobox-separator.js +1 -1
  236. package/dist/components/combobox/combobox-trigger.js +1 -1
  237. package/dist/components/combobox/combobox-viewport.js +1 -1
  238. package/dist/components/combobox/combobox-virtualizer.js +1 -1
  239. package/dist/components/combobox/types.d.ts +9 -8
  240. package/dist/components/command/command-compact.js +1 -1
  241. package/dist/components/command/types.d.ts +4 -4
  242. package/dist/components/config-provider/config-provider.js +1 -1
  243. package/dist/components/config-provider/context.js +1 -1
  244. package/dist/components/config-provider/types.d.ts +9 -1
  245. package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +3 -3
  246. package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
  247. package/dist/components/context-menu/context-menu-content.js +1 -1
  248. package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
  249. package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
  250. package/dist/components/context-menu/context-menu-trigger.js +1 -1
  251. package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
  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/types.d.ts +21 -14
  297. package/dist/components/dropdown-menu/context.js +1 -1
  298. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
  299. package/dist/components/dropdown-menu/dropdown-menu-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-content.vue.d.ts +2 -2
  302. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +3 -3
  303. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  304. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
  305. package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
  306. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
  307. package/dist/components/editable/context.js +1 -1
  308. package/dist/components/editable/editable-area.js +1 -1
  309. package/dist/components/editable/editable-area.vue.d.ts +1 -4
  310. package/dist/components/editable/editable-cancel-trigger.js +1 -1
  311. package/dist/components/editable/editable-cancel-trigger.vue.d.ts +1 -4
  312. package/dist/components/editable/editable-compact.js +1 -1
  313. package/dist/components/editable/editable-edit-trigger.js +1 -1
  314. package/dist/components/editable/editable-edit-trigger.vue.d.ts +1 -4
  315. package/dist/components/editable/editable-input.js +1 -1
  316. package/dist/components/editable/editable-input.vue.d.ts +4 -1
  317. package/dist/components/editable/editable-preview.js +1 -1
  318. package/dist/components/editable/editable-root.js +1 -1
  319. package/dist/components/editable/editable-root.vue.d.ts +2 -4
  320. package/dist/components/editable/editable-submit-trigger.js +1 -1
  321. package/dist/components/editable/editable-submit-trigger.vue.d.ts +1 -4
  322. package/dist/components/editable/types.d.ts +10 -9
  323. package/dist/components/empty/empty-content.js +1 -1
  324. package/dist/components/empty/empty-description.js +1 -1
  325. package/dist/components/empty/empty-header.js +1 -1
  326. package/dist/components/empty/empty-media.js +1 -1
  327. package/dist/components/empty/empty-root.js +1 -1
  328. package/dist/components/empty/empty-title.js +1 -1
  329. package/dist/components/empty/types.d.ts +8 -8
  330. package/dist/components/form/form-compact.js +1 -1
  331. package/dist/components/form/form-control.js +1 -1
  332. package/dist/components/form/form-description.js +1 -1
  333. package/dist/components/form/form-error.js +1 -1
  334. package/dist/components/form/form-field-array-compact.js +1 -1
  335. package/dist/components/form/form-field-compact.js +1 -1
  336. package/dist/components/form/form-label.js +1 -1
  337. package/dist/components/form/types.d.ts +7 -6
  338. package/dist/components/hover-card/context.js +1 -1
  339. package/dist/components/hover-card/hover-card-popup.js +1 -1
  340. package/dist/components/hover-card/hover-card-positioner.js +1 -1
  341. package/dist/components/hover-card/hover-card-root.js +1 -1
  342. package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
  343. package/dist/components/hover-card/hover-card-trigger.js +1 -1
  344. package/dist/components/hover-card/index.d.ts +1 -1
  345. package/dist/components/input/input-clear.js +1 -1
  346. package/dist/components/input/input-compact.js +1 -1
  347. package/dist/components/input/input-control.js +1 -1
  348. package/dist/components/input/input-root.js +1 -1
  349. package/dist/components/input/input-root.vue.d.ts +1 -1
  350. package/dist/components/input/types.d.ts +10 -9
  351. package/dist/components/input-number/context.js +1 -1
  352. package/dist/components/input-number/index.d.ts +7 -6
  353. package/dist/components/input-number/index.js +1 -1
  354. package/dist/components/input-number/input-number-clear.js +1 -0
  355. package/dist/components/input-number/input-number-compact.js +1 -0
  356. package/dist/components/input-number/input-number-compact.vue.d.ts +21 -0
  357. package/dist/components/input-number/input-number-control.js +1 -1
  358. package/dist/components/input-number/input-number-decrement.js +1 -1
  359. package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -4
  360. package/dist/components/input-number/input-number-increment.js +1 -1
  361. package/dist/components/input-number/input-number-increment.vue.d.ts +1 -4
  362. package/dist/components/input-number/input-number-root.js +1 -1
  363. package/dist/components/input-number/input-number-root.vue.d.ts +4 -4
  364. package/dist/components/input-number/types.d.ts +87 -14
  365. package/dist/components/input-otp/input-otp-compact.js +1 -1
  366. package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
  367. package/dist/components/input-otp/input-otp-input.js +1 -1
  368. package/dist/components/input-otp/input-otp-positioner.js +1 -1
  369. package/dist/components/input-otp/input-otp-root.js +1 -1
  370. package/dist/components/input-otp/input-otp-root.vue.d.ts +2 -2
  371. package/dist/components/input-otp/types.d.ts +5 -4
  372. package/dist/components/kbd/kbd.js +1 -1
  373. package/dist/components/kbd/types.d.ts +2 -3
  374. package/dist/components/label/label.js +1 -1
  375. package/dist/components/label/types.d.ts +2 -3
  376. package/dist/components/layout/layout-classic-placeholder.js +1 -1
  377. package/dist/components/layout/layout-classic-root.js +1 -1
  378. package/dist/components/layout/layout-content.js +1 -1
  379. package/dist/components/layout/layout-footer.js +1 -1
  380. package/dist/components/layout/layout-header.js +1 -1
  381. package/dist/components/layout/layout-main.js +1 -1
  382. package/dist/components/layout/layout-mobile.js +1 -1
  383. package/dist/components/layout/layout-rail.js +1 -1
  384. package/dist/components/layout/layout-root.js +1 -1
  385. package/dist/components/layout/layout-root.vue.d.ts +2 -2
  386. package/dist/components/layout/layout-sidebar.js +1 -1
  387. package/dist/components/layout/layout-tab.js +1 -1
  388. package/dist/components/layout/layout-trigger.js +1 -1
  389. package/dist/components/layout/layout-trigger.vue.d.ts +1 -4
  390. package/dist/components/layout/types.d.ts +13 -12
  391. package/dist/components/link/link.js +1 -1
  392. package/dist/components/link/types.d.ts +2 -3
  393. package/dist/components/list/list-content.js +1 -1
  394. package/dist/components/list/list-description.js +1 -1
  395. package/dist/components/list/list-item.js +1 -1
  396. package/dist/components/list/list-root.js +1 -1
  397. package/dist/components/list/list-title.js +1 -1
  398. package/dist/components/list/types.d.ts +6 -7
  399. package/dist/components/listbox/context.js +1 -1
  400. package/dist/components/listbox/listbox-content.js +1 -1
  401. package/dist/components/listbox/listbox-filter.js +1 -1
  402. package/dist/components/listbox/listbox-group-label.js +1 -1
  403. package/dist/components/listbox/listbox-group.js +1 -1
  404. package/dist/components/listbox/listbox-item-indicator.js +1 -1
  405. package/dist/components/listbox/listbox-item.js +1 -1
  406. package/dist/components/listbox/listbox-item.vue.d.ts +1 -4
  407. package/dist/components/listbox/listbox-root.js +1 -1
  408. package/dist/components/listbox/types.d.ts +9 -8
  409. package/dist/components/menu/context.js +1 -1
  410. package/dist/components/menu/menu-checkbox-group.js +1 -1
  411. package/dist/components/menu/menu-checkbox-group.vue.d.ts +1 -1
  412. package/dist/components/menu/menu-checkbox-item.js +1 -1
  413. package/dist/components/menu/menu-content-impl.js +1 -1
  414. package/dist/components/menu/menu-content.js +1 -1
  415. package/dist/components/menu/menu-content.vue.d.ts +2 -2
  416. package/dist/components/menu/menu-group-label.js +1 -1
  417. package/dist/components/menu/menu-group.js +1 -1
  418. package/dist/components/menu/menu-item-impl.js +1 -1
  419. package/dist/components/menu/menu-item-indicator.js +1 -1
  420. package/dist/components/menu/menu-item.js +1 -1
  421. package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
  422. package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
  423. package/dist/components/menu/menu-radio-group.js +1 -1
  424. package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
  425. package/dist/components/menu/menu-radio-item.js +1 -1
  426. package/dist/components/menu/menu-radio-options-compact.js +1 -1
  427. package/dist/components/menu/menu-radio-options-compact.vue.d.ts +2 -2
  428. package/dist/components/menu/menu-root.js +1 -1
  429. package/dist/components/menu/menu-root.vue.d.ts +1 -1
  430. package/dist/components/menu/menu-sub-content.js +1 -1
  431. package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
  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 +3 -3
  437. package/dist/components/menubar/menubar-content.js +1 -1
  438. package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
  439. package/dist/components/menubar/menubar-menu.js +1 -1
  440. package/dist/components/menubar/menubar-root.js +1 -1
  441. package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
  442. package/dist/components/menubar/menubar-sub-content.js +1 -1
  443. package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
  444. package/dist/components/menubar/menubar-sub-trigger.js +1 -1
  445. package/dist/components/menubar/menubar-trigger.js +1 -1
  446. package/dist/components/menubar/menubar-trigger.vue.d.ts +1 -4
  447. package/dist/components/menubar/types.d.ts +5 -7
  448. package/dist/components/navigation-menu/context.js +1 -1
  449. package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
  450. package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
  451. package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
  452. package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
  453. package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
  454. package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
  455. package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
  456. package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
  457. package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
  458. package/dist/components/navigation-menu/types.d.ts +12 -11
  459. package/dist/components/page-tabs/hooks.js +1 -1
  460. package/dist/components/page-tabs/index.d.ts +6 -5
  461. package/dist/components/page-tabs/index.js +1 -1
  462. package/dist/components/page-tabs/page-tabs-close.js +1 -1
  463. package/dist/components/page-tabs/page-tabs-compact.js +1 -0
  464. package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +27 -0
  465. package/dist/components/page-tabs/page-tabs-item.js +1 -1
  466. package/dist/components/page-tabs/page-tabs-item.vue.d.ts +2 -2
  467. package/dist/components/page-tabs/page-tabs-pin.js +1 -1
  468. package/dist/components/page-tabs/page-tabs-root.js +1 -1
  469. package/dist/components/page-tabs/page-tabs-root.vue.d.ts +3 -2
  470. package/dist/components/page-tabs/types.d.ts +208 -9
  471. package/dist/components/pagination/pagination-ellipsis.js +1 -1
  472. package/dist/components/pagination/pagination-first.js +1 -1
  473. package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
  474. package/dist/components/pagination/pagination-last.js +1 -1
  475. package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
  476. package/dist/components/pagination/pagination-list-item.js +1 -1
  477. package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
  478. package/dist/components/pagination/pagination-list.js +1 -1
  479. package/dist/components/pagination/pagination-next.js +1 -1
  480. package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
  481. package/dist/components/pagination/pagination-prev.js +1 -1
  482. package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
  483. package/dist/components/pagination/pagination-root.js +1 -1
  484. package/dist/components/pagination/types.d.ts +8 -6
  485. package/dist/components/password/context.d.ts +9 -0
  486. package/dist/components/password/context.js +1 -0
  487. package/dist/components/password/index.d.ts +4 -0
  488. package/dist/components/password/index.js +1 -0
  489. package/dist/components/password/password-compact.js +1 -0
  490. package/dist/components/password/password-compact.vue.d.ts +23 -0
  491. package/dist/components/password/types.d.ts +97 -0
  492. package/dist/components/popconfirm/context.d.ts +9 -0
  493. package/dist/components/popconfirm/context.js +1 -0
  494. package/dist/components/popconfirm/index.d.ts +21 -0
  495. package/dist/components/popconfirm/index.js +1 -0
  496. package/dist/components/popconfirm/popconfirm-cancel.js +1 -0
  497. package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +22 -0
  498. package/dist/components/popconfirm/popconfirm-compact.js +1 -0
  499. package/dist/components/{date-picker/date-picker-content.vue.d.ts → popconfirm/popconfirm-compact.vue.d.ts} +17 -7
  500. package/dist/components/popconfirm/popconfirm-confirm.js +1 -0
  501. package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +22 -0
  502. package/dist/components/popconfirm/popconfirm-content.js +1 -0
  503. package/dist/components/popconfirm/popconfirm-content.vue.d.ts +18 -0
  504. package/dist/components/popconfirm/popconfirm-description.js +1 -0
  505. package/dist/components/popconfirm/popconfirm-description.vue.d.ts +18 -0
  506. package/dist/components/popconfirm/popconfirm-footer.js +1 -0
  507. package/dist/components/popconfirm/popconfirm-footer.vue.d.ts +18 -0
  508. package/dist/components/popconfirm/popconfirm-header.js +1 -0
  509. package/dist/components/popconfirm/popconfirm-header.vue.d.ts +18 -0
  510. package/dist/components/popconfirm/popconfirm-title.js +1 -0
  511. package/dist/components/popconfirm/popconfirm-title.vue.d.ts +18 -0
  512. package/dist/components/popconfirm/types.d.ts +221 -0
  513. package/dist/components/popover/context.js +1 -1
  514. package/dist/components/popover/index.d.ts +3 -3
  515. package/dist/components/popover/index.js +1 -1
  516. package/dist/components/popover/popover-anchor.js +1 -1
  517. package/dist/components/popover/popover-close.js +1 -1
  518. package/dist/components/popover/popover-close.vue.d.ts +3 -6
  519. package/dist/components/popover/popover-compact.js +1 -1
  520. package/dist/components/popover/popover-popup.js +1 -1
  521. package/dist/components/popover/popover-positioner-impl.js +1 -1
  522. package/dist/components/popover/popover-positioner.js +1 -1
  523. package/dist/components/popover/popover-positioner.vue.d.ts +1 -0
  524. package/dist/components/popover/popover-root.js +1 -1
  525. package/dist/components/popover/popover-root.vue.d.ts +1 -1
  526. package/dist/components/popover/popover-trigger.js +1 -1
  527. package/dist/components/popover/types.d.ts +13 -15
  528. package/dist/components/popper/index.d.ts +1 -1
  529. package/dist/components/popper/popper-anchor.js +1 -1
  530. package/dist/components/popper/popper-arrow.js +1 -1
  531. package/dist/components/popper/popper-positioner.js +1 -1
  532. package/dist/components/popper/popper-positioner.vue.d.ts +3 -2
  533. package/dist/components/popper/types.d.ts +7 -6
  534. package/dist/components/primitive/index.d.ts +2 -2
  535. package/dist/components/primitive/types.d.ts +3 -1
  536. package/dist/components/progress/index.d.ts +8 -6
  537. package/dist/components/progress/index.js +1 -1
  538. package/dist/components/progress/progress-circle-compact.js +1 -0
  539. package/dist/components/progress/progress-circle-compact.vue.d.ts +21 -0
  540. package/dist/components/progress/progress-circle-svg.js +1 -0
  541. package/dist/components/progress/{progress-circle.vue.d.ts → progress-circle-svg.vue.d.ts} +3 -3
  542. package/dist/components/progress/progress-compact.js +1 -0
  543. package/dist/components/progress/progress-compact.vue.d.ts +21 -0
  544. package/dist/components/progress/progress-indicator.js +1 -1
  545. package/dist/components/progress/progress-indicator.vue.d.ts +1 -4
  546. package/dist/components/progress/progress-provider.js +1 -1
  547. package/dist/components/progress/progress-root.js +1 -1
  548. package/dist/components/progress/progress-root.vue.d.ts +1 -3
  549. package/dist/components/progress/shared.js +1 -1
  550. package/dist/components/progress/types.d.ts +67 -22
  551. package/dist/components/radio-group/context.js +1 -1
  552. package/dist/components/radio-group/radio-group-compact.vue.d.ts +2 -2
  553. package/dist/components/radio-group/radio-group-control.js +1 -1
  554. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  555. package/dist/components/radio-group/radio-group-indicator.js +1 -1
  556. package/dist/components/radio-group/radio-group-item.js +1 -1
  557. package/dist/components/radio-group/radio-group-label.js +1 -1
  558. package/dist/components/radio-group/radio-group-root.js +1 -1
  559. package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
  560. package/dist/components/radio-group/types.d.ts +9 -7
  561. package/dist/components/roving-focus/context.js +1 -1
  562. package/dist/components/roving-focus/roving-focus-group.js +1 -1
  563. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
  564. package/dist/components/roving-focus/roving-focus-item.js +1 -1
  565. package/dist/components/roving-focus/types.d.ts +3 -4
  566. package/dist/components/scroll-area/index.d.ts +8 -7
  567. package/dist/components/scroll-area/index.js +1 -1
  568. package/dist/components/scroll-area/scroll-area-compact.js +1 -0
  569. package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +15 -0
  570. package/dist/components/scroll-area/scroll-area-corner.js +1 -1
  571. package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -4
  572. package/dist/components/scroll-area/scroll-area-root.js +1 -1
  573. package/dist/components/scroll-area/scroll-area-root.vue.d.ts +0 -2
  574. package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
  575. package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +0 -2
  576. package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
  577. package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -4
  578. package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
  579. package/dist/components/scroll-area/types.d.ts +46 -8
  580. package/dist/components/segment/index.d.ts +1 -1
  581. package/dist/components/segment/segment-compact.js +1 -1
  582. package/dist/components/segment/segment-compact.vue.d.ts +2 -2
  583. package/dist/components/select/context.js +1 -1
  584. package/dist/components/select/select-arrow.js +1 -1
  585. package/dist/components/select/select-bubble-select.js +1 -1
  586. package/dist/components/select/select-compact.vue.d.ts +2 -2
  587. package/dist/components/select/select-content.js +1 -1
  588. package/dist/components/select/select-group-label.js +1 -1
  589. package/dist/components/select/select-group.js +1 -1
  590. package/dist/components/select/select-item-aligned-popup.js +1 -1
  591. package/dist/components/select/select-item-aligned-positioner.js +1 -1
  592. package/dist/components/select/select-item-indicator.js +1 -1
  593. package/dist/components/select/select-item-text.js +1 -1
  594. package/dist/components/select/select-item.js +1 -1
  595. package/dist/components/select/select-popper-popup.js +1 -1
  596. package/dist/components/select/select-root.vue.d.ts +2 -2
  597. package/dist/components/select/select-scroll-button-impl.js +1 -1
  598. package/dist/components/select/select-scroll-down-button.js +1 -1
  599. package/dist/components/select/select-scroll-up-button.js +1 -1
  600. package/dist/components/select/select-separator.js +1 -1
  601. package/dist/components/select/select-trigger-icon.js +1 -1
  602. package/dist/components/select/select-trigger.js +1 -1
  603. package/dist/components/select/select-value.js +1 -1
  604. package/dist/components/select/select-viewport.js +1 -1
  605. package/dist/components/select/types.d.ts +16 -14
  606. package/dist/components/separator/index.d.ts +5 -4
  607. package/dist/components/separator/index.js +1 -1
  608. package/dist/components/separator/separator-compact.js +1 -0
  609. package/dist/components/separator/separator-compact.vue.d.ts +18 -0
  610. package/dist/components/separator/separator-label.js +1 -1
  611. package/dist/components/separator/separator-root.js +1 -1
  612. package/dist/components/separator/types.d.ts +26 -5
  613. package/dist/components/skeleton/skeleton.js +1 -1
  614. package/dist/components/skeleton/skeleton.vue.d.ts +1 -4
  615. package/dist/components/skeleton/types.d.ts +2 -3
  616. package/dist/components/slider/index.d.ts +7 -6
  617. package/dist/components/slider/index.js +1 -1
  618. package/dist/components/slider/shared.js +1 -1
  619. package/dist/components/slider/slider-compact.js +1 -0
  620. package/dist/components/slider/slider-compact.vue.d.ts +21 -0
  621. package/dist/components/slider/slider-range.js +1 -1
  622. package/dist/components/slider/slider-range.vue.d.ts +1 -4
  623. package/dist/components/slider/slider-root.js +1 -1
  624. package/dist/components/slider/slider-root.vue.d.ts +1 -3
  625. package/dist/components/slider/slider-thumb.js +1 -1
  626. package/dist/components/slider/slider-thumb.vue.d.ts +1 -4
  627. package/dist/components/slider/slider-track.js +1 -1
  628. package/dist/components/slider/slider-track.vue.d.ts +1 -4
  629. package/dist/components/slider/types.d.ts +55 -8
  630. package/dist/components/splitter/context.js +1 -1
  631. package/dist/components/splitter/splitter-group.js +1 -1
  632. package/dist/components/splitter/splitter-group.vue.d.ts +1 -3
  633. package/dist/components/splitter/splitter-panel.js +1 -1
  634. package/dist/components/splitter/splitter-panel.vue.d.ts +4 -6
  635. package/dist/components/splitter/splitter-resize-handle.js +1 -1
  636. package/dist/components/splitter/splitter-resize-handle.vue.d.ts +0 -2
  637. package/dist/components/splitter/types.d.ts +5 -5
  638. package/dist/components/stepper/context.js +1 -1
  639. package/dist/components/stepper/stepper-description.js +1 -1
  640. package/dist/components/stepper/stepper-indicator.js +1 -1
  641. package/dist/components/stepper/stepper-item.js +1 -1
  642. package/dist/components/stepper/stepper-item.vue.d.ts +0 -2
  643. package/dist/components/stepper/stepper-root.js +1 -1
  644. package/dist/components/stepper/stepper-root.vue.d.ts +2 -4
  645. package/dist/components/stepper/stepper-separator.js +1 -1
  646. package/dist/components/stepper/stepper-title.js +1 -1
  647. package/dist/components/stepper/stepper-trigger.js +1 -1
  648. package/dist/components/stepper/types.d.ts +8 -8
  649. package/dist/components/switch/context.js +1 -1
  650. package/dist/components/switch/index.d.ts +6 -5
  651. package/dist/components/switch/index.js +1 -1
  652. package/dist/components/switch/switch-compact.js +1 -0
  653. package/dist/components/switch/switch-compact.vue.d.ts +22 -0
  654. package/dist/components/switch/switch-control.js +1 -1
  655. package/dist/components/switch/switch-control.vue.d.ts +2 -2
  656. package/dist/components/switch/switch-root.js +1 -1
  657. package/dist/components/switch/switch-root.vue.d.ts +1 -1
  658. package/dist/components/switch/switch-thumb.js +1 -1
  659. package/dist/components/switch/types.d.ts +51 -6
  660. package/dist/components/table/hooks.js +1 -1
  661. package/dist/components/table/shared.js +1 -1
  662. package/dist/components/table/table-body.js +1 -1
  663. package/dist/components/table/table-cell.js +1 -1
  664. package/dist/components/table/table-compact.js +1 -1
  665. package/dist/components/table/table-content.js +1 -1
  666. package/dist/components/table/table-footer.js +1 -1
  667. package/dist/components/table/table-head.js +1 -1
  668. package/dist/components/table/table-header.js +1 -1
  669. package/dist/components/table/table-root.js +1 -1
  670. package/dist/components/table/table-row.js +1 -1
  671. package/dist/components/table/table-scroll.js +1 -1
  672. package/dist/components/table/table-virtual-spacer-row.js +1 -1
  673. package/dist/components/table/types.d.ts +15 -11
  674. package/dist/components/tabs/context.js +1 -1
  675. package/dist/components/tabs/tabs-compact.vue.d.ts +2 -2
  676. package/dist/components/tabs/tabs-content.js +1 -1
  677. package/dist/components/tabs/tabs-indicator.js +1 -1
  678. package/dist/components/tabs/tabs-list.js +1 -1
  679. package/dist/components/tabs/tabs-root.js +1 -1
  680. package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
  681. package/dist/components/tabs/tabs-trigger.js +1 -1
  682. package/dist/components/tabs/types.d.ts +8 -7
  683. package/dist/components/tag/tag.js +1 -1
  684. package/dist/components/tag/types.d.ts +2 -3
  685. package/dist/components/tags-input/index.d.ts +8 -7
  686. package/dist/components/tags-input/index.js +1 -1
  687. package/dist/components/tags-input/tags-input-clear.js +1 -1
  688. package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -4
  689. package/dist/components/tags-input/tags-input-compact.js +1 -0
  690. package/dist/components/tags-input/tags-input-compact.vue.d.ts +25 -0
  691. package/dist/components/tags-input/tags-input-control.js +1 -0
  692. package/dist/components/tags-input/tags-input-control.vue.d.ts +8 -0
  693. package/dist/components/tags-input/tags-input-item-delete.js +1 -1
  694. package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -4
  695. package/dist/components/tags-input/tags-input-item-text.js +1 -1
  696. package/dist/components/tags-input/tags-input-item-text.vue.d.ts +3 -6
  697. package/dist/components/tags-input/tags-input-item.js +1 -1
  698. package/dist/components/tags-input/tags-input-item.vue.d.ts +14 -14
  699. package/dist/components/tags-input/tags-input-root.js +1 -1
  700. package/dist/components/tags-input/tags-input-root.vue.d.ts +29 -21
  701. package/dist/components/tags-input/types.d.ts +75 -63
  702. package/dist/components/textarea/index.d.ts +7 -5
  703. package/dist/components/textarea/index.js +1 -1
  704. package/dist/components/textarea/textarea-clear.js +1 -0
  705. package/dist/components/textarea/textarea-clear.vue.d.ts +22 -0
  706. package/dist/components/textarea/textarea-compact.js +1 -0
  707. package/dist/components/textarea/textarea-compact.vue.d.ts +21 -0
  708. package/dist/components/textarea/textarea-control.js +1 -1
  709. package/dist/components/textarea/textarea-counter.js +1 -1
  710. package/dist/components/textarea/textarea-root.js +1 -1
  711. package/dist/components/textarea/textarea-root.vue.d.ts +3 -1
  712. package/dist/components/textarea/types.d.ts +96 -6
  713. package/dist/components/time-field/index.d.ts +6 -4
  714. package/dist/components/time-field/index.js +1 -1
  715. package/dist/components/time-field/time-field-compact.js +1 -0
  716. package/dist/components/time-field/time-field-compact.vue.d.ts +15 -0
  717. package/dist/components/time-field/time-field-input.js +1 -1
  718. package/dist/components/time-field/time-field-input.vue.d.ts +2 -2
  719. package/dist/components/time-field/time-field-root.js +1 -1
  720. package/dist/components/time-field/time-field-root.vue.d.ts +5 -15
  721. package/dist/components/time-field/types.d.ts +33 -132
  722. package/dist/components/time-range-field/index.d.ts +2 -2
  723. package/dist/components/time-range-field/time-range-field-compact.js +1 -1
  724. package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +1 -2
  725. package/dist/components/time-range-field/time-range-field-input.js +1 -1
  726. package/dist/components/time-range-field/time-range-field-root.js +1 -1
  727. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +6 -20
  728. package/dist/components/time-range-field/types.d.ts +36 -184
  729. package/dist/components/toast/toast-provider.js +1 -1
  730. package/dist/components/toast/toast.js +1 -1
  731. package/dist/components/toast/toaster.js +1 -1
  732. package/dist/components/toast/toaster.vue.d.ts +1 -1
  733. package/dist/components/toast/types.d.ts +3 -2
  734. package/dist/components/toggle/toggle.js +1 -1
  735. package/dist/components/toggle/toggle.vue.d.ts +1 -4
  736. package/dist/components/toggle/types.d.ts +2 -7
  737. package/dist/components/toggle-group/context.js +1 -1
  738. package/dist/components/toggle-group/toggle-group-item.js +1 -1
  739. package/dist/components/toggle-group/toggle-group-root.js +1 -1
  740. package/dist/components/toggle-group/types.d.ts +3 -5
  741. package/dist/components/toolbar/context.js +1 -1
  742. package/dist/components/toolbar/toolbar-button.js +1 -1
  743. package/dist/components/toolbar/toolbar-link.js +1 -1
  744. package/dist/components/toolbar/toolbar-root.js +1 -1
  745. package/dist/components/toolbar/toolbar-separator.js +1 -1
  746. package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
  747. package/dist/components/toolbar/toolbar-toggle-item.js +1 -1
  748. package/dist/components/toolbar/types.d.ts +4 -4
  749. package/dist/components/tooltip/index.d.ts +8 -7
  750. package/dist/components/tooltip/index.js +1 -1
  751. package/dist/components/tooltip/tooltip-compact.js +1 -0
  752. package/dist/components/tooltip/tooltip-compact.vue.d.ts +28 -0
  753. package/dist/components/tooltip/tooltip-popup.js +1 -1
  754. package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
  755. package/dist/components/tooltip/tooltip-positioner.js +1 -1
  756. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +1 -0
  757. package/dist/components/tooltip/tooltip-root.js +1 -1
  758. package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
  759. package/dist/components/tooltip/tooltip-trigger.js +1 -1
  760. package/dist/components/tooltip/types.d.ts +58 -2
  761. package/dist/components/tree/context.js +1 -1
  762. package/dist/components/tree/tree-item.js +1 -1
  763. package/dist/components/tree/tree-root.js +1 -1
  764. package/dist/components/tree/tree-root.vue.d.ts +1 -1
  765. package/dist/components/tree/tree-virtualizer-item.js +1 -1
  766. package/dist/components/tree/tree-virtualizer-root.js +1 -1
  767. package/dist/components/tree/types.d.ts +5 -5
  768. package/dist/components/tree-menu/index.d.ts +12 -8
  769. package/dist/components/tree-menu/index.js +1 -1
  770. package/dist/components/tree-menu/shared.js +1 -0
  771. package/dist/components/tree-menu/tree-menu-button.js +1 -1
  772. package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -4
  773. package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
  774. package/dist/components/tree-menu/tree-menu-compact.js +1 -0
  775. package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +24 -0
  776. package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
  777. package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
  778. package/dist/components/tree-menu/tree-menu-group.js +1 -1
  779. package/dist/components/tree-menu/tree-menu-item.js +1 -1
  780. package/dist/components/tree-menu/tree-menu-option-compact.js +1 -0
  781. package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +33 -0
  782. package/dist/components/tree-menu/tree-menu-options-compact.js +1 -0
  783. package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +34 -0
  784. package/dist/components/tree-menu/tree-menu-root.js +1 -1
  785. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -1
  786. package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -0
  787. package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +28 -0
  788. package/dist/components/tree-menu/tree-menu-sub.js +1 -1
  789. package/dist/components/tree-menu/types.d.ts +241 -12
  790. package/dist/components/virtualizer/types.d.ts +7 -6
  791. package/dist/components/virtualizer/virtualizer-content.js +1 -1
  792. package/dist/components/virtualizer/virtualizer-item.js +1 -1
  793. package/dist/components/virtualizer/virtualizer-root.js +1 -1
  794. package/dist/components/visually-hidden/types.d.ts +2 -3
  795. package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
  796. package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
  797. package/dist/components/visually-hidden/visually-hidden.js +1 -1
  798. package/dist/composables/index.d.ts +2 -1
  799. package/dist/composables/index.js +1 -1
  800. package/dist/composables/use-bool-prop.d.ts +12 -0
  801. package/dist/composables/use-bool-prop.js +1 -0
  802. package/dist/composables/use-collection.d.ts +0 -3
  803. package/dist/composables/use-collection.js +1 -1
  804. package/dist/composables/use-controllable-state.d.ts +10 -1
  805. package/dist/composables/use-controllable-state.js +1 -1
  806. package/dist/composables/use-selection.js +1 -1
  807. package/dist/constants/components.d.ts +3 -7
  808. package/dist/constants/components.js +1 -1
  809. package/dist/date/calendar.d.ts +22 -24
  810. package/dist/date/calendar.js +1 -1
  811. package/dist/date/comparators.d.ts +29 -30
  812. package/dist/date/formatter.d.ts +1 -1
  813. package/dist/date/index.d.ts +8 -8
  814. package/dist/date/index.js +1 -1
  815. package/dist/date/parser.d.ts +14 -13
  816. package/dist/date/parser.js +1 -1
  817. package/dist/date/parts.d.ts +6 -6
  818. package/dist/date/placeholders.d.ts +2 -21
  819. package/dist/date/placeholders.js +1 -1
  820. package/dist/date/types.d.ts +12 -11
  821. package/dist/date/use-date-field.d.ts +6 -8
  822. package/dist/date/use-date-field.js +1 -1
  823. package/dist/date/utils.d.ts +3 -7
  824. package/dist/date/utils.js +1 -1
  825. package/dist/index.d.ts +423 -414
  826. package/dist/index.js +1 -1
  827. package/dist/locale/hooks.d.ts +14 -0
  828. package/dist/locale/hooks.js +1 -0
  829. package/dist/locale/index.d.ts +5 -0
  830. package/dist/locale/index.js +1 -0
  831. package/dist/locale/langs/en.d.ts +6 -0
  832. package/dist/locale/langs/en.js +1 -0
  833. package/dist/locale/langs/zh-CN.d.ts +6 -0
  834. package/dist/locale/langs/zh-CN.js +1 -0
  835. package/dist/locale/locales.d.ts +23 -0
  836. package/dist/locale/locales.js +1 -0
  837. package/dist/locale/types.d.ts +234 -0
  838. package/dist/namespaced/index.d.ts +983 -966
  839. package/dist/namespaced/index.js +1 -1
  840. package/dist/shared/color.d.ts +3 -13
  841. package/dist/shared/color.js +1 -1
  842. package/dist/shared/index.d.ts +4 -4
  843. package/dist/shared/index.js +1 -1
  844. package/dist/shared/object.d.ts +2 -1
  845. package/dist/shared/object.js +1 -1
  846. package/dist/shared/string.d.ts +6 -1
  847. package/dist/shared/string.js +1 -1
  848. package/dist/shared/time-picker.d.ts +1 -2
  849. package/dist/shared/vue.js +1 -1
  850. package/dist/types/color.d.ts +16 -0
  851. package/dist/types/index.d.ts +3 -2
  852. package/dist/types/vue.d.ts +4 -2
  853. package/package.json +13 -3
  854. package/dist/components/_icon/icon.vue.d.ts +0 -8
  855. package/dist/components/_icon/index.d.ts +0 -3
  856. package/dist/components/_icon/index.js +0 -1
  857. package/dist/components/calendar/use-calendar.d.ts +0 -45
  858. package/dist/components/color-swatch/color-swatch.js +0 -1
  859. package/dist/components/color-swatch/color-swatch.vue.d.ts +0 -26
  860. package/dist/components/date-picker/date-picker-content.js +0 -1
  861. package/dist/components/date-picker/date-picker-root.js +0 -1
  862. package/dist/components/date-picker/date-picker-root.vue.d.ts +0 -38
  863. package/dist/components/date-range-picker/date-range-picker-popup.js +0 -1
  864. package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +0 -21
  865. package/dist/components/date-range-picker/date-range-picker-root.js +0 -1
  866. package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +0 -50
  867. package/dist/components/date-range-picker/date-range-picker-trigger.js +0 -1
  868. package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +0 -21
  869. package/dist/components/month-picker/context.d.ts +0 -9
  870. package/dist/components/month-picker/context.js +0 -1
  871. package/dist/components/month-picker/index.d.ts +0 -6
  872. package/dist/components/month-picker/index.js +0 -1
  873. package/dist/components/month-picker/month-picker-popup.js +0 -1
  874. package/dist/components/month-picker/month-picker-popup.vue.d.ts +0 -36
  875. package/dist/components/month-picker/month-picker-root.js +0 -1
  876. package/dist/components/month-picker/month-picker-root.vue.d.ts +0 -39
  877. package/dist/components/month-picker/month-picker-trigger.js +0 -1
  878. package/dist/components/month-picker/month-picker-trigger.vue.d.ts +0 -21
  879. package/dist/components/month-picker/types.d.ts +0 -202
  880. package/dist/components/month-range-picker/context.d.ts +0 -9
  881. package/dist/components/month-range-picker/context.js +0 -1
  882. package/dist/components/month-range-picker/index.d.ts +0 -6
  883. package/dist/components/month-range-picker/index.js +0 -1
  884. package/dist/components/month-range-picker/month-range-picker-popup.js +0 -1
  885. package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +0 -39
  886. package/dist/components/month-range-picker/month-range-picker-root.js +0 -1
  887. package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +0 -43
  888. package/dist/components/month-range-picker/month-range-picker-trigger.js +0 -1
  889. package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +0 -21
  890. package/dist/components/month-range-picker/types.d.ts +0 -234
  891. package/dist/components/progress/progress-circle.js +0 -1
  892. package/dist/components/range-calendar/context.d.ts +0 -9
  893. package/dist/components/range-calendar/context.js +0 -1
  894. package/dist/components/range-calendar/index.d.ts +0 -16
  895. package/dist/components/range-calendar/index.js +0 -1
  896. package/dist/components/range-calendar/range-calendar-cell-trigger.js +0 -1
  897. package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +0 -33
  898. package/dist/components/range-calendar/range-calendar-cell.js +0 -1
  899. package/dist/components/range-calendar/range-calendar-compact.js +0 -1
  900. package/dist/components/range-calendar/range-calendar-grid-body.js +0 -1
  901. package/dist/components/range-calendar/range-calendar-grid-head.js +0 -1
  902. package/dist/components/range-calendar/range-calendar-grid-row.js +0 -1
  903. package/dist/components/range-calendar/range-calendar-grid.js +0 -1
  904. package/dist/components/range-calendar/range-calendar-head-cell.js +0 -1
  905. package/dist/components/range-calendar/range-calendar-header.js +0 -1
  906. package/dist/components/range-calendar/range-calendar-header.vue.d.ts +0 -21
  907. package/dist/components/range-calendar/range-calendar-heading.js +0 -1
  908. package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +0 -22
  909. package/dist/components/range-calendar/range-calendar-next.js +0 -1
  910. package/dist/components/range-calendar/range-calendar-next.vue.d.ts +0 -24
  911. package/dist/components/range-calendar/range-calendar-prev.js +0 -1
  912. package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +0 -24
  913. package/dist/components/range-calendar/range-calendar-root.js +0 -1
  914. package/dist/components/range-calendar/types.d.ts +0 -488
  915. package/dist/components/tags-input/tags-input-input.js +0 -1
  916. package/dist/components/tags-input/tags-input-input.vue.d.ts +0 -21
  917. package/dist/components/time-picker/context.d.ts +0 -9
  918. package/dist/components/time-picker/context.js +0 -1
  919. package/dist/components/time-picker/index.d.ts +0 -6
  920. package/dist/components/time-picker/index.js +0 -1
  921. package/dist/components/time-picker/time-picker-popup.js +0 -1
  922. package/dist/components/time-picker/time-picker-popup.vue.d.ts +0 -27
  923. package/dist/components/time-picker/time-picker-root.js +0 -1
  924. package/dist/components/time-picker/time-picker-root.vue.d.ts +0 -45
  925. package/dist/components/time-picker/time-picker-trigger.js +0 -1
  926. package/dist/components/time-picker/time-picker-trigger.vue.d.ts +0 -21
  927. package/dist/components/time-picker/types.d.ts +0 -224
  928. package/dist/components/time-range-picker/context.d.ts +0 -9
  929. package/dist/components/time-range-picker/context.js +0 -1
  930. package/dist/components/time-range-picker/index.d.ts +0 -7
  931. package/dist/components/time-range-picker/index.js +0 -1
  932. package/dist/components/time-range-picker/time-range-picker-compact.js +0 -1
  933. package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +0 -31
  934. package/dist/components/time-range-picker/time-range-picker-popup.js +0 -1
  935. package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +0 -30
  936. package/dist/components/time-range-picker/time-range-picker-root.js +0 -1
  937. package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +0 -50
  938. package/dist/components/time-range-picker/time-range-picker-trigger.js +0 -1
  939. package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +0 -21
  940. package/dist/components/time-range-picker/types.d.ts +0 -304
  941. package/dist/components/year-picker/context.d.ts +0 -9
  942. package/dist/components/year-picker/context.js +0 -1
  943. package/dist/components/year-picker/index.d.ts +0 -6
  944. package/dist/components/year-picker/index.js +0 -1
  945. package/dist/components/year-picker/types.d.ts +0 -207
  946. package/dist/components/year-picker/year-picker-popup.js +0 -1
  947. package/dist/components/year-picker/year-picker-popup.vue.d.ts +0 -36
  948. package/dist/components/year-picker/year-picker-root.js +0 -1
  949. package/dist/components/year-picker/year-picker-root.vue.d.ts +0 -39
  950. package/dist/components/year-picker/year-picker-trigger.js +0 -1
  951. package/dist/components/year-picker/year-picker-trigger.vue.d.ts +0 -21
  952. package/dist/components/year-range-picker/context.d.ts +0 -9
  953. package/dist/components/year-range-picker/context.js +0 -1
  954. package/dist/components/year-range-picker/index.d.ts +0 -6
  955. package/dist/components/year-range-picker/index.js +0 -1
  956. package/dist/components/year-range-picker/types.d.ts +0 -239
  957. package/dist/components/year-range-picker/year-range-picker-popup.js +0 -1
  958. package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +0 -39
  959. package/dist/components/year-range-picker/year-range-picker-root.js +0 -1
  960. package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +0 -43
  961. package/dist/components/year-range-picker/year-range-picker-trigger.js +0 -1
  962. package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +0 -21
@@ -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
+ interface 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,9 +16,8 @@ declare const __VLS_base: _$vue.DefineComponent<SplitterGroupProps, {}, {}, {},
17
16
  }>, {
18
17
  dir: Direction;
19
18
  direction: DataOrientation;
20
- as: AsTag | _$vue.Component;
21
- defaultLayout: number[];
22
19
  keyboardResizeBy: number;
20
+ defaultLayout: number[];
23
21
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
24
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
23
  declare const _default: typeof __VLS_export;
@@ -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};
@@ -1,4 +1,3 @@
1
- import { AsTag } from "../primitive/types.js";
2
1
  import { SplitterPanelProps } from "./types.js";
3
2
  import * as _$vue from "vue";
4
3
 
@@ -25,20 +24,19 @@ declare const __VLS_base: _$vue.DefineComponent<SplitterPanelProps, {
25
24
  isExpanded: _$vue.ComputedRef<boolean>;
26
25
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
27
26
  resize: (size: number, prevSize: number | undefined) => any;
28
- expand: () => any;
29
27
  collapse: () => any;
28
+ expand: () => any;
30
29
  }, string, _$vue.PublicProps, Readonly<SplitterPanelProps> & Readonly<{
31
30
  onResize?: ((size: number, prevSize: number | undefined) => any) | undefined;
32
- onExpand?: (() => any) | undefined;
33
31
  onCollapse?: (() => any) | undefined;
32
+ onExpand?: (() => any) | undefined;
34
33
  }>, {
35
34
  collapsible: boolean;
36
35
  order: number;
37
- as: AsTag | _$vue.Component;
38
36
  defaultSize: number;
39
- collapsedSize: number;
40
- maxSize: number;
41
37
  minSize: number;
38
+ maxSize: number;
39
+ collapsedSize: number;
42
40
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
43
41
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
42
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{useSplitterGroupContext as r,useSplitterUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,mergeProps as c,onBeforeUnmount as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,withCtx as m}from"vue";const h=s({name:`SplitterResizeHandle`,__name:`splitter-resize-handle`,props:{disabled:{type:Boolean,default:!1},tabindex:{default:0},asChild:{type:Boolean},as:{default:`div`}},emits:[`dragging`],setup(s,{emit:h}){let g=s,_=h,[v,y]=e(),b=i(`resizeHandle`),x=t(g,[`disabled`,`tabindex`]),{direction:S,dir:C,groupId:w,keyboardResizeBy:T,layout:E,rootElement:D,collapsePanel:O,expandPanel:k,resizePanelPair:A,getPanelRecordByIndex:j,getPanelBounds:M,getGroupSize:N}=r(`SplitterResizeHandle`),P=f(`inactive`),F=f(!1),I=f(null),L=f(0),R=a(()=>!D.value||!v.value?-1:Array.from(D.value.querySelectorAll(`[data-panel-group-id="${w}"][data-splitter-resize-handle]`)).findIndex(e=>e===v.value)),z=a(()=>j(R.value)),B=a(()=>E.value[R.value]),V=a(()=>{let e=z.value;if(e)return M(e.id)}),H=a(()=>{if(B.value!==void 0)return String(Number(B.value.toFixed(1)))}),U=a(()=>{if(V.value)return String(V.value.min)}),W=a(()=>{if(V.value)return String(V.value.max)}),G=a(()=>z.value?.id);function K(e){return S.value===`vertical`?e.clientY:e.clientX}function q(e){let t=K(e),n=t-L.value;L.value=t;let r=N();if(r<=0)return 0;let i=n/r*100;return S.value===`horizontal`&&C.value===`rtl`&&(i*=-1),i}let J=null;function Y(){J?.(),J=null}function X(e){e!==void 0&&I.value!==e||(I.value=null,P.value=`hover`,Y(),_(`dragging`,!1))}function Z(e){if(g.disabled||R.value<0)return;e.preventDefault(),I.value=e.pointerId,L.value=K(e),P.value=`drag`,_(`dragging`,!0);let t=v.value?.ownerDocument;if(!t)return;let n=e=>{I.value===e.pointerId&&A(R.value,q(e))},r=e=>{X(e.pointerId)};t.addEventListener(`pointermove`,n),t.addEventListener(`pointerup`,r),t.addEventListener(`pointercancel`,r),J=()=>{t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerup`,r),t.removeEventListener(`pointercancel`,r)}}function Q(e){if(g.disabled||R.value<0)return;let t=z.value;if(!t)return;let n=T.value??10,r=0;if(e.key===`Enter`&&t.collapsible.value){e.preventDefault(),B.value!==void 0&&B.value<=t.collapsedSize.value+.1?k(t.id):O(t.id);return}if(e.key===`Home`){e.preventDefault(),A(R.value,(V.value?.min??0)-(B.value??0));return}if(e.key===`End`){e.preventDefault(),A(R.value,(V.value?.max??0)-(B.value??0));return}S.value===`vertical`?(e.key===`ArrowDown`&&(r=n),e.key===`ArrowUp`&&(r=-n)):C.value===`rtl`?(e.key===`ArrowLeft`&&(r=n),e.key===`ArrowRight`&&(r=-n)):(e.key===`ArrowRight`&&(r=n),e.key===`ArrowLeft`&&(r=-n)),r!==0&&(e.preventDefault(),A(R.value,r))}return l(()=>{Y()}),(e,t)=>(u(),o(p(n),c(p(x),{ref:p(y),as:s.as,"as-child":s.asChild,class:p(b),role:`separator`,"data-splitter-resize-handle":``,tabindex:s.disabled?void 0:s.tabindex,"data-panel-group-id":p(w),"data-state":P.value,"data-disabled":s.disabled?``:void 0,"data-orientation":p(S),"aria-controls":G.value,"aria-disabled":s.disabled?`true`:void 0,"aria-orientation":p(S),"aria-valuenow":H.value,"aria-valuemin":U.value,"aria-valuemax":W.value,onBlur:t[0]||(t[0]=e=>F.value=!1),onFocus:t[1]||(t[1]=e=>F.value=!0),onKeydown:Q,onMouseenter:t[2]||(t[2]=e=>P.value=I.value===null?`hover`:P.value),onMouseleave:t[3]||(t[3]=e=>P.value=I.value===null?`inactive`:P.value),onPointerdown:Z}),{default:m(()=>[d(e.$slots,`default`,{active:P.value===`drag`,focused:F.value})]),_:3},16,[`as`,`as-child`,`class`,`tabindex`,`data-panel-group-id`,`data-state`,`data-disabled`,`data-orientation`,`aria-controls`,`aria-disabled`,`aria-orientation`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`]))}});export{h as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{useSplitterGroupContext as r,useSplitterUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,mergeProps as c,onBeforeUnmount as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,withCtx as m}from"vue";const h=s({name:`SplitterResizeHandle`,__name:`splitter-resize-handle`,props:{disabled:{type:Boolean,default:!1},tabindex:{default:0},asChild:{type:Boolean},as:{}},emits:[`dragging`],setup(s,{emit:h}){let g=s,_=h,[v,y]=e(),b=i(`resizeHandle`),x=t(g,[`disabled`,`tabindex`]),{direction:S,dir:C,groupId:w,keyboardResizeBy:T,layout:E,rootElement:D,collapsePanel:O,expandPanel:k,resizePanelPair:A,getPanelRecordByIndex:j,getPanelBounds:M,getGroupSize:N}=r(`SplitterResizeHandle`),P=f(`inactive`),F=f(!1),I=f(null),L=f(0),R=a(()=>!D.value||!v.value?-1:Array.from(D.value.querySelectorAll(`[data-panel-group-id="${w}"][data-splitter-resize-handle]`)).findIndex(e=>e===v.value)),z=a(()=>j(R.value)),B=a(()=>E.value[R.value]),V=a(()=>{let e=z.value;if(e)return M(e.id)}),H=a(()=>{if(B.value!==void 0)return String(Number(B.value.toFixed(1)))}),U=a(()=>{if(V.value)return String(V.value.min)}),W=a(()=>{if(V.value)return String(V.value.max)}),G=a(()=>z.value?.id);function K(e){return S.value===`vertical`?e.clientY:e.clientX}function q(e){let t=K(e),n=t-L.value;L.value=t;let r=N();if(r<=0)return 0;let i=n/r*100;return S.value===`horizontal`&&C.value===`rtl`&&(i*=-1),i}let J=null;function Y(){J?.(),J=null}function X(e){e!==void 0&&I.value!==e||(I.value=null,P.value=`hover`,Y(),_(`dragging`,!1))}function Z(e){if(g.disabled||R.value<0)return;e.preventDefault(),I.value=e.pointerId,L.value=K(e),P.value=`drag`,_(`dragging`,!0);let t=v.value?.ownerDocument;if(!t)return;let n=e=>{I.value===e.pointerId&&A(R.value,q(e))},r=e=>{X(e.pointerId)};t.addEventListener(`pointermove`,n),t.addEventListener(`pointerup`,r),t.addEventListener(`pointercancel`,r),J=()=>{t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerup`,r),t.removeEventListener(`pointercancel`,r)}}function Q(e){if(g.disabled||R.value<0)return;let t=z.value;if(!t)return;let n=T.value??10,r=0;if(e.key===`Enter`&&t.collapsible.value){e.preventDefault(),B.value!==void 0&&B.value<=t.collapsedSize.value+.1?k(t.id):O(t.id);return}if(e.key===`Home`){e.preventDefault(),A(R.value,(V.value?.min??0)-(B.value??0));return}if(e.key===`End`){e.preventDefault(),A(R.value,(V.value?.max??0)-(B.value??0));return}S.value===`vertical`?(e.key===`ArrowDown`&&(r=n),e.key===`ArrowUp`&&(r=-n)):C.value===`rtl`?(e.key===`ArrowLeft`&&(r=n),e.key===`ArrowRight`&&(r=-n)):(e.key===`ArrowRight`&&(r=n),e.key===`ArrowLeft`&&(r=-n)),r!==0&&(e.preventDefault(),A(R.value,r))}return l(()=>{Y()}),(e,t)=>(u(),o(p(n),c(p(x),{ref:p(y),as:s.as,"as-child":s.asChild,"data-soybean-splitter-resize-handle":``,class:p(b),role:`separator`,"data-splitter-resize-handle":``,tabindex:s.disabled?void 0:s.tabindex,"data-panel-group-id":p(w),"data-state":P.value,"data-disabled":s.disabled?``:void 0,"data-orientation":p(S),"aria-controls":G.value,"aria-disabled":s.disabled?`true`:void 0,"aria-orientation":p(S),"aria-valuenow":H.value,"aria-valuemin":U.value,"aria-valuemax":W.value,onBlur:t[0]||(t[0]=e=>F.value=!1),onFocus:t[1]||(t[1]=e=>F.value=!0),onKeydown:Q,onMouseenter:t[2]||(t[2]=e=>P.value=I.value===null?`hover`:P.value),onMouseleave:t[3]||(t[3]=e=>P.value=I.value===null?`inactive`:P.value),onPointerdown:Z}),{default:m(()=>[d(e.$slots,`default`,{active:P.value===`drag`,focused:F.value})]),_:3},16,[`as`,`as-child`,`class`,`tabindex`,`data-panel-group-id`,`data-state`,`data-disabled`,`data-orientation`,`aria-controls`,`aria-disabled`,`aria-orientation`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`]))}});export{h as default};
@@ -1,4 +1,3 @@
1
- import { AsTag } from "../primitive/types.js";
2
1
  import { SplitterResizeHandleProps } from "./types.js";
3
2
  import * as _$vue from "vue";
4
3
 
@@ -17,7 +16,6 @@ declare const __VLS_base: _$vue.DefineComponent<SplitterResizeHandleProps, {}, {
17
16
  }>, {
18
17
  tabindex: number;
19
18
  disabled: boolean;
20
- as: AsTag | _$vue.Component;
21
19
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
22
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
21
  declare const _default: typeof __VLS_export;
@@ -1,13 +1,13 @@
1
1
  import { DataOrientation, Direction, UiClass } from "../../types/common.js";
2
2
  import { PropsToContext } from "../../types/vue.js";
3
- import { PrimitiveProps } from "../primitive/types.js";
4
- import { CSSProperties, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
3
+ import { PrimitiveWithBaseProps } from "../primitive/types.js";
4
+ import { CSSProperties, ComputedRef, ShallowRef } from "vue";
5
5
 
6
6
  //#region src/components/splitter/types.d.ts
7
7
  /**
8
8
  * Properties for the SplitterGroup component.
9
9
  */
10
- interface SplitterGroupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
10
+ interface SplitterGroupProps extends PrimitiveWithBaseProps {
11
11
  /**
12
12
  * The orientation of the splitter group.
13
13
  *
@@ -39,7 +39,7 @@ type SplitterGroupEmits = {
39
39
  /**
40
40
  * Properties for the SplitterPanel component.
41
41
  */
42
- interface SplitterPanelProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
42
+ interface SplitterPanelProps extends PrimitiveWithBaseProps {
43
43
  /**
44
44
  * The initial size of the panel as a percentage of the group.
45
45
  */
@@ -85,7 +85,7 @@ type SplitterPanelEmits = {
85
85
  /**
86
86
  * Properties for the SplitterResizeHandle component.
87
87
  */
88
- interface SplitterResizeHandleProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
88
+ interface SplitterResizeHandleProps extends PrimitiveWithBaseProps {
89
89
  /**
90
90
  * Whether the resize handle is disabled.
91
91
  */
@@ -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";import{shallowRef as r,useId as i}from"vue";const[a,o]=e(`StepperRoot`,e=>{let t=n(e.dir);return{...e,dir:t}}),[s,c]=e(`StepperItem`,e=>{let t=r(`soybean-stepper-title-${i()}`),n=r(`soybean-stepper-description-${i()}`);return{...e,titleId:t,descriptionId:n}}),[l,u]=t(`StepperUi`);export{s as provideStepperItemContext,a as provideStepperRootContext,l as provideStepperUi,c as useStepperItemContext,o as useStepperRootContext,u as useStepperUi};
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";import{shallowRef as r,useId as i}from"vue";const[a,o]=e(`StepperRoot`,e=>{let n=t(e.dir);return{...e,dir:n}}),[s,c]=e(`StepperItem`,e=>{let t=r(`soybean-stepper-title-${i()}`),n=r(`soybean-stepper-description-${i()}`);return{...e,titleId:t,descriptionId:n}}),[l,u]=n(`StepperUi`);export{s as provideStepperItemContext,a as provideStepperRootContext,l as provideStepperUi,c as useStepperItemContext,o as useStepperRootContext,u as useStepperUi};
@@ -1 +1 @@
1
- import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as n,useStepperUi as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`StepperDescription`,__name:`stepper-description`,props:{asChild:{type:Boolean},as:{default:`p`}},setup(a){let d=a,{descriptionId:f}=n(`StepperDescription`),p=r(`description`),m=e(d,[]);return(e,n)=>(s(),i(l(t),o(l(m),{id:l(f),as:a.as,"as-child":a.asChild,class:l(p)}),{default:u(()=>[c(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`class`]))}});export{d as default};
1
+ import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as n,useStepperUi as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`StepperDescription`,__name:`stepper-description`,props:{asChild:{type:Boolean},as:{default:`p`}},setup(a){let d=a,{descriptionId:f}=n(`StepperDescription`),p=r(`description`),m=e(d,[]);return(e,n)=>(s(),i(l(t),o(l(m),{id:l(f),as:a.as,"as-child":a.asChild,"data-soybean-stepper-description":``,class:l(p)}),{default:u(()=>[c(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`class`]))}});export{d as default};
@@ -1 +1 @@
1
- import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as n,useStepperUi as r}from"./context.js";import{createBlock as i,createTextVNode as a,defineComponent as o,mergeProps as s,openBlock as c,renderSlot as l,toDisplayString as u,unref as d,withCtx as f}from"vue";const p=o({name:`StepperIndicator`,__name:`stepper-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(o){let p=o,{step:m}=n(`StepperIndicator`),h=r(`indicator`),g=e(p,[]);return(e,n)=>(c(),i(d(t),s(d(g),{as:o.as,"as-child":o.asChild,class:d(h)}),{default:f(()=>[l(e.$slots,`default`,{step:d(m)},()=>[a(`Step `+u(d(m)),1)])]),_:3},16,[`as`,`as-child`,`class`]))}});export{p as default};
1
+ import{interpolate as e}from"../../shared/string.js";import{useLocaleMessages as t}from"../../locale/hooks.js";import"../../locale/index.js";import"../../shared/index.js";import{useOmitProps as n}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as i,useStepperUi as a}from"./context.js";import{createBlock as o,createTextVNode as s,defineComponent as c,mergeProps as l,openBlock as u,renderSlot as d,toDisplayString as f,unref as p,withCtx as m}from"vue";const h=c({name:`StepperIndicator`,__name:`stepper-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(c){let h=c,{step:g}=i(`StepperIndicator`),_=t(),v=a(`indicator`),y=n(h,[]);return(t,n)=>(u(),o(p(r),l(p(y),{as:c.as,"as-child":c.asChild,"data-soybean-stepper-indicator":``,class:p(v)}),{default:m(()=>[d(t.$slots,`default`,{step:p(g)},()=>[s(f(p(e)(p(_).stepper.step,{step:String(p(g))})),1)])]),_:3},16,[`as`,`as-child`,`class`]))}});export{h as default};
@@ -1 +1 @@
1
- import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{provideStepperItemContext as r,useStepperRootContext as i,useStepperUi as a}from"./context.js";import{computed as o,createBlock as s,defineComponent as c,mergeProps as l,openBlock as u,renderSlot as d,unref as f,withCtx as p}from"vue";const m=c({name:`StepperItem`,__name:`stepper-item`,props:{step:{},disabled:{type:Boolean,default:!1},completed:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:`div`}},setup(c){let m=c,h=a(`item`),g=t(m,[`step`,`disabled`,`completed`]),{modelValue:_,linear:v,orientation:y}=i(`StepperItem`),b=o(()=>_.value??1),x=o(()=>m.completed?`completed`:b.value===m.step?`active`:b.value>m.step?`completed`:`inactive`),S=o(()=>m.disabled?!1:v.value?m.step<=b.value||m.step===b.value+1:!0),C=o(()=>m.disabled||!S.value?``:void 0);return r({...e(m,[`step`,`disabled`,`completed`]),state:x,isFocusable:S,dataDisabled:C}),(e,t)=>(u(),s(f(n),l(f(g),{as:c.as,"as-child":c.asChild,class:f(h),"aria-current":x.value===`active`?`step`:void 0,"data-disabled":C.value,"data-orientation":f(y),"data-state":x.value}),{default:p(()=>[d(e.$slots,`default`,{state:x.value})]),_:3},16,[`as`,`as-child`,`class`,`aria-current`,`data-disabled`,`data-orientation`,`data-state`]))}});export{m as default};
1
+ import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{provideStepperItemContext as r,useStepperRootContext as i,useStepperUi as a}from"./context.js";import{computed as o,createBlock as s,defineComponent as c,mergeProps as l,openBlock as u,renderSlot as d,unref as f,withCtx as p}from"vue";const m=c({name:`StepperItem`,__name:`stepper-item`,props:{step:{},disabled:{type:Boolean,default:!1},completed:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},setup(c){let m=c,h=a(`item`),g=t(m,[`step`,`disabled`,`completed`]),{modelValue:_,linear:v,orientation:y}=i(`StepperItem`),b=o(()=>_.value??1),x=o(()=>m.completed?`completed`:b.value===m.step?`active`:b.value>m.step?`completed`:`inactive`),S=o(()=>m.disabled?!1:v.value?m.step<=b.value||m.step===b.value+1:!0),C=o(()=>m.disabled||!S.value?``:void 0);return r({...e(m,[`step`,`disabled`,`completed`]),state:x,isFocusable:S,dataDisabled:C}),(e,t)=>(u(),s(f(n),l(f(g),{as:c.as,"as-child":c.asChild,"data-soybean-stepper-item":``,class:f(h),"aria-current":x.value===`active`?`step`:void 0,"data-disabled":C.value,"data-orientation":f(y),"data-state":x.value}),{default:p(()=>[d(e.$slots,`default`,{state:x.value})]),_:3},16,[`as`,`as-child`,`class`,`aria-current`,`data-disabled`,`data-orientation`,`data-state`]))}});export{m as default};
@@ -1,4 +1,3 @@
1
- import { AsTag } from "../primitive/types.js";
2
1
  import { StepperItemProps, StepperState } from "./types.js";
3
2
  import * as _$vue from "vue";
4
3
 
@@ -11,7 +10,6 @@ type __VLS_Slots = {} & {
11
10
  };
12
11
  declare const __VLS_base: _$vue.DefineComponent<StepperItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<StepperItemProps> & Readonly<{}>, {
13
12
  disabled: boolean;
14
- as: AsTag | _$vue.Component;
15
13
  completed: boolean;
16
14
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
17
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- import{getCollectionItemElements as e,isElementHasAttribute as t}from"../../shared/dom.js";import{transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import{useOmitProps as a}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import s from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{provideStepperRootContext as c,useStepperUi as l}from"./context.js";import{computed as u,createBlock as d,createCommentVNode as f,createTextVNode as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,shallowRef as v,toDisplayString as y,unref as b,useAttrs as x,withCtx as S}from"vue";const C=m({name:`StepperRoot`,__name:`stepper-root`,props:{defaultValue:{default:1},modelValue:{default:void 0},orientation:{default:`horizontal`},dir:{},linear:{type:Boolean,default:!0},asChild:{type:Boolean},as:{default:`div`}},emits:[`update:modelValue`],setup(m,{expose:C,emit:w}){let T=m,E=w,D=x(),O=l(`root`),k=r(()=>T.modelValue,e=>{typeof e==`number`&&E(`update:modelValue`,e)},T.defaultValue),A=a(T,[`defaultValue`,`modelValue`,`orientation`,`dir`,`linear`]),[j,M]=i(),N=v([]),P=u(()=>j.value?e(j.value).filter(e=>N.value.includes(e)):N.value),F=u(()=>P.value.length),I=u(()=>k.value??1),L=u(()=>I.value===1),R=u(()=>F.value>0&&I.value===F.value),z=u(()=>P.value[I.value]),B=u(()=>P.value[I.value-2]),V=u(()=>z.value?t(z.value,`disabled`):!0),H=u(()=>B.value?t(B.value,`disabled`):!0),U=e=>{if(e<1||e>F.value)return!1;let n=P.value[e-1];return!(!n||t(n,`disabled`)||T.linear&&e>I.value+1)},W=e=>{U(e)&&(k.value=e)},G=()=>{W(I.value+1)},K=()=>{W(I.value-1)},q=()=>I.value<F.value,J=()=>I.value>1;function Y(e){return typeof e==`string`&&e.trim().length>0?e:void 0}let X=u(()=>Y(D[`aria-label`])??`Step-by-step progress`),Z=e=>{N.value.includes(e)||(N.value=[...N.value,e])},Q=e=>{e&&(N.value=N.value.filter(t=>t!==e))},{dir:$}=c({...n(T,[`orientation`,`dir`,`linear`]),modelValue:k,stepperItems:P,totalSteps:F,changeModelValue:W,registerStepperItem:Z,unregisterStepperItem:Q});return C({modelValue:k,totalSteps:F,isNextDisabled:V,isPrevDisabled:H,isFirstStep:L,isLastStep:R,goToStep:W,nextStep:G,prevStep:K,hasNext:q,hasPrev:J,registerStepperItem:Z,unregisterStepperItem:Q}),(e,t)=>(g(),d(b(o),h({ref:b(M)},b(A),{as:m.as,"as-child":m.asChild,class:b(O),dir:b($),role:`group`,"aria-label":X.value,"data-linear":m.linear?``:void 0,"data-orientation":m.orientation}),{default:S(()=>[_(e.$slots,`default`,{modelValue:b(k),totalSteps:F.value,isNextDisabled:V.value,isPrevDisabled:H.value,isFirstStep:L.value,isLastStep:R.value,goToStep:W,nextStep:G,prevStep:K,hasNext:q,hasPrev:J}),F.value>0?(g(),d(b(s),{key:0,as:`span`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`},{default:S(()=>[p(` Step `+y(I.value)+` of `+y(F.value),1)]),_:1})):f(`v-if`,!0)]),_:3},16,[`as`,`as-child`,`class`,`dir`,`aria-label`,`data-linear`,`data-orientation`]))}});export{C as default};
1
+ import{getCollectionItemElements as e,isElementHasAttribute as t}from"../../shared/dom.js";import{transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import{useOmitProps as a}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import s from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{provideStepperRootContext as c,useStepperUi as l}from"./context.js";import{computed as u,createBlock as d,createCommentVNode as f,createTextVNode as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,shallowRef as v,toDisplayString as y,unref as b,useAttrs as x,withCtx as S}from"vue";const C=m({name:`StepperRoot`,__name:`stepper-root`,props:{defaultValue:{default:1},modelValue:{default:void 0},orientation:{default:`horizontal`},dir:{},linear:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(m,{expose:C,emit:w}){let T=m,E=w,D=x(),O=l(`root`),k=r(()=>T.modelValue,e=>{E(`update:modelValue`,e)},T.defaultValue),A=a(T,[`defaultValue`,`modelValue`,`orientation`,`dir`,`linear`]),[j,M]=i(),N=v([]),P=u(()=>j.value?e(j.value).filter(e=>N.value.includes(e)):N.value),F=u(()=>P.value.length),I=u(()=>k.value??1),L=u(()=>I.value===1),R=u(()=>F.value>0&&I.value===F.value),z=u(()=>P.value[I.value]),B=u(()=>P.value[I.value-2]),V=u(()=>z.value?t(z.value,`disabled`):!0),H=u(()=>B.value?t(B.value,`disabled`):!0),U=e=>{if(e<1||e>F.value)return!1;let n=P.value[e-1];return!(!n||t(n,`disabled`)||T.linear&&e>I.value+1)},W=e=>{U(e)&&(k.value=e)},G=()=>{W(I.value+1)},K=()=>{W(I.value-1)},q=()=>I.value<F.value,J=()=>I.value>1;function Y(e){return typeof e==`string`&&e.trim().length>0?e:void 0}let X=u(()=>Y(D[`aria-label`])??`Step-by-step progress`),Z=e=>{N.value.includes(e)||(N.value=[...N.value,e])},Q=e=>{e&&(N.value=N.value.filter(t=>t!==e))},{dir:$}=c({...n(T,[`orientation`,`dir`,`linear`]),modelValue:k,stepperItems:P,totalSteps:F,changeModelValue:W,registerStepperItem:Z,unregisterStepperItem:Q});return C({modelValue:k,totalSteps:F,isNextDisabled:V,isPrevDisabled:H,isFirstStep:L,isLastStep:R,goToStep:W,nextStep:G,prevStep:K,hasNext:q,hasPrev:J,registerStepperItem:Z,unregisterStepperItem:Q}),(e,t)=>(g(),d(b(o),h({ref:b(M)},b(A),{as:m.as,"as-child":m.asChild,"data-soybean-stepper-root":``,class:b(O),dir:b($),role:`group`,"aria-label":X.value,"data-linear":m.linear?``:void 0,"data-orientation":m.orientation}),{default:S(()=>[_(e.$slots,`default`,{modelValue:b(k),totalSteps:F.value,isNextDisabled:V.value,isPrevDisabled:H.value,isFirstStep:L.value,isLastStep:R.value,goToStep:W,nextStep:G,prevStep:K,hasNext:q,hasPrev:J}),F.value>0?(g(),d(b(s),{key:0,as:`span`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`},{default:S(()=>[p(` Step `+y(I.value)+` of `+y(F.value),1)]),_:1})):f(`v-if`,!0)]),_:3},16,[`as`,`as-child`,`class`,`dir`,`aria-label`,`data-linear`,`data-orientation`]))}});export{C as default};
@@ -1,11 +1,10 @@
1
1
  import { DataOrientation } from "../../types/common.js";
2
- import { AsTag } from "../primitive/types.js";
3
2
  import { StepperRootProps } from "./types.js";
4
3
  import * as _$vue from "vue";
5
4
 
6
5
  //#region src/components/stepper/stepper-root.vue.d.ts
7
6
  declare var __VLS_8: {
8
- modelValue: number | undefined;
7
+ modelValue: number;
9
8
  totalSteps: number;
10
9
  isNextDisabled: boolean;
11
10
  isPrevDisabled: boolean;
@@ -21,7 +20,7 @@ type __VLS_Slots = {} & {
21
20
  default?: (props: typeof __VLS_8) => any;
22
21
  };
23
22
  declare const __VLS_base: _$vue.DefineComponent<StepperRootProps, {
24
- modelValue: _$vue.ShallowRef<number | undefined>;
23
+ modelValue: _$vue.ShallowRef<number>;
25
24
  totalSteps: _$vue.ComputedRef<number>;
26
25
  isNextDisabled: _$vue.ComputedRef<boolean>;
27
26
  isPrevDisabled: _$vue.ComputedRef<boolean>;
@@ -40,7 +39,6 @@ declare const __VLS_base: _$vue.DefineComponent<StepperRootProps, {
40
39
  "onUpdate:modelValue"?: ((payload: number) => any) | undefined;
41
40
  }>, {
42
41
  orientation: DataOrientation;
43
- as: AsTag | _$vue.Component;
44
42
  modelValue: number;
45
43
  defaultValue: number;
46
44
  linear: boolean;
@@ -1 +1 @@
1
- import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../separator/separator-root.js";import"../separator/index.js";import{useStepperItemContext as n,useStepperRootContext as r,useStepperUi as i}from"./context.js";import{createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";const f=o({name:`StepperSeparator`,__name:`stepper-separator`,props:{orientation:{},decorative:{type:Boolean,default:!0}},setup(o){let f=e(o,[`orientation`,`decorative`]),{orientation:p}=r(`StepperSeparator`),{state:m}=n(`StepperSeparator`),h=i(`separator`);return(e,n)=>(c(),a(u(t),s(u(f),{class:u(h),orientation:u(p),decorative:o.decorative,"data-state":u(m)}),{default:d(()=>[l(e.$slots,`default`)]),_:3},16,[`class`,`orientation`,`decorative`,`data-state`]))}});export{f as default};
1
+ import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../separator/separator-root.js";import"../separator/index.js";import{useStepperItemContext as n,useStepperRootContext as r,useStepperUi as i}from"./context.js";import{createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";const f=o({name:`StepperSeparator`,__name:`stepper-separator`,props:{orientation:{},decorative:{type:Boolean,default:!0}},setup(o){let f=e(o,[`orientation`,`decorative`]),{orientation:p}=r(`StepperSeparator`),{state:m}=n(`StepperSeparator`),h=i(`separator`);return(e,n)=>(c(),a(u(t),s(u(f),{class:u(h),"data-soybean-stepper-separator":``,orientation:u(p),decorative:o.decorative,"data-state":u(m)}),{default:d(()=>[l(e.$slots,`default`)]),_:3},16,[`class`,`orientation`,`decorative`,`data-state`]))}});export{f as default};
@@ -1 +1 @@
1
- import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as n,useStepperUi as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`StepperTitle`,__name:`stepper-title`,props:{asChild:{type:Boolean},as:{default:`h4`}},setup(a){let d=a,{titleId:f}=n(`StepperTitle`),p=r(`title`),m=e(d,[]);return(e,n)=>(s(),i(l(t),o(l(m),{id:l(f),as:a.as,"as-child":a.asChild,class:l(p)}),{default:u(()=>[c(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`class`]))}});export{d as default};
1
+ import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as n,useStepperUi as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`StepperTitle`,__name:`stepper-title`,props:{asChild:{type:Boolean},as:{default:`h4`}},setup(a){let d=a,{titleId:f}=n(`StepperTitle`),p=r(`title`),m=e(d,[]);return(e,n)=>(s(),i(l(t),o(l(m),{id:l(f),as:a.as,"as-child":a.asChild,"data-soybean-stepper-title":``,class:l(p)}),{default:u(()=>[c(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`class`]))}});export{d as default};
@@ -1 +1 @@
1
- import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{useOmitProps as n}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as i,useStepperRootContext as a,useStepperUi as o}from"./context.js";import{createBlock as s,defineComponent as c,mergeProps as l,onBeforeUnmount as u,onMounted as d,openBlock as f,renderSlot as p,unref as m,withCtx as h,withKeys as g,withModifiers as _}from"vue";const v=c({name:`StepperTrigger`,__name:`stepper-trigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(c){let v=c,{orientation:y,dir:b,stepperItems:x,changeModelValue:S,registerStepperItem:C,unregisterStepperItem:w}=a(`StepperTrigger`),{step:T,disabled:E,state:D,isFocusable:O,titleId:k,descriptionId:A}=i(`StepperTrigger`),j=o(`trigger`),M=n(v,[]),[N,P]=t(),F=e=>{if(E.value||!O.value){e.preventDefault();return}if(e.ctrlKey){e.preventDefault();return}S(T.value)},I=t=>{if(E.value||!O.value){t.preventDefault();return}if(t.key===`Enter`||t.key===` `){t.preventDefault(),S(T.value);return}e(t,t.currentTarget,void 0,{itemsArray:x.value,focus:!0,loop:!1,arrowKeyOptions:y.value,dir:b.value})};return d(()=>{N.value&&C(N.value)}),u(()=>{w(N.value)}),(e,t)=>(f(),s(m(r),l({ref:m(P)},m(M),{as:c.as,"as-child":c.asChild,class:m(j),type:c.as===`button`?`button`:void 0,disabled:m(E)||!m(O)?!0:void 0,"data-disabled":m(E)||!m(O)?``:void 0,"data-orientation":m(y),"data-state":m(D),tabindex:m(O)?0:-1,"aria-describedby":m(A),"aria-labelledby":m(k),"data-soybean-collection-item":``,onMousedown:_(F,[`left`]),onKeydown:g(I,[`enter`,`space`,`left`,`right`,`up`,`down`,`home`,`end`])}),{default:h(()=>[p(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`class`,`type`,`disabled`,`data-disabled`,`data-orientation`,`data-state`,`tabindex`,`aria-describedby`,`aria-labelledby`]))}});export{v as default};
1
+ import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{useOmitProps as n}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useStepperItemContext as i,useStepperRootContext as a,useStepperUi as o}from"./context.js";import{createBlock as s,defineComponent as c,mergeProps as l,onBeforeUnmount as u,onMounted as d,openBlock as f,renderSlot as p,unref as m,withCtx as h,withKeys as g,withModifiers as _}from"vue";const v=c({name:`StepperTrigger`,__name:`stepper-trigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(c){let v=c,{orientation:y,dir:b,stepperItems:x,changeModelValue:S,registerStepperItem:C,unregisterStepperItem:w}=a(`StepperTrigger`),{step:T,disabled:E,state:D,isFocusable:O,titleId:k,descriptionId:A}=i(`StepperTrigger`),j=o(`trigger`),M=n(v,[]),[N,P]=t(),F=e=>{if(E.value||!O.value){e.preventDefault();return}if(e.ctrlKey){e.preventDefault();return}S(T.value)},I=t=>{if(E.value||!O.value){t.preventDefault();return}if(t.key===`Enter`||t.key===` `){t.preventDefault(),S(T.value);return}e(t,t.currentTarget,void 0,{itemsArray:x.value,focus:!0,loop:!1,arrowKeyOptions:y.value,dir:b.value})};return d(()=>{N.value&&C(N.value)}),u(()=>{w(N.value)}),(e,t)=>(f(),s(m(r),l({ref:m(P)},m(M),{as:c.as,"as-child":c.asChild,"data-soybean-stepper-trigger":``,"data-soybean-collection-item":``,class:m(j),type:c.as===`button`?`button`:void 0,disabled:m(E)||!m(O)?!0:void 0,"data-disabled":m(E)||!m(O)?``:void 0,"data-orientation":m(y),"data-state":m(D),tabindex:m(O)?0:-1,"aria-describedby":m(A),"aria-labelledby":m(k),onMousedown:_(F,[`left`]),onKeydown:g(I,[`enter`,`space`,`left`,`right`,`up`,`down`,`home`,`end`])}),{default:h(()=>[p(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`class`,`type`,`disabled`,`data-disabled`,`data-orientation`,`data-state`,`tabindex`,`aria-describedby`,`aria-labelledby`]))}});export{v as default};
@@ -1,7 +1,7 @@
1
1
  import { DataOrientation, Direction, UiClass } from "../../types/common.js";
2
- import { PrimitiveProps } from "../primitive/types.js";
2
+ import { PrimitiveWithBaseProps } from "../primitive/types.js";
3
3
  import { SeparatorRootProps } from "../separator/types.js";
4
- import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
4
+ import { ComputedRef, ShallowRef } from "vue";
5
5
 
6
6
  //#region src/components/stepper/types.d.ts
7
7
  /**
@@ -11,7 +11,7 @@ type StepperState = 'completed' | 'active' | 'inactive';
11
11
  /**
12
12
  * Properties for the StepperRoot component.
13
13
  */
14
- interface StepperRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
14
+ interface StepperRootProps extends PrimitiveWithBaseProps {
15
15
  /**
16
16
  * The value of the step that should be active when initially rendered.
17
17
  *
@@ -51,7 +51,7 @@ type StepperRootEmits = {
51
51
  /**
52
52
  * Properties for the StepperItem component.
53
53
  */
54
- interface StepperItemProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
54
+ interface StepperItemProps extends PrimitiveWithBaseProps {
55
55
  /** The step index, starting from `1`. */
56
56
  step: number;
57
57
  /** When `true`, prevents the user from interacting with the step. */
@@ -62,19 +62,19 @@ interface StepperItemProps extends PrimitiveProps, /** @vue-ignore */HTMLAttribu
62
62
  /**
63
63
  * Properties for the StepperTrigger component.
64
64
  */
65
- interface StepperTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
65
+ interface StepperTriggerProps extends PrimitiveWithBaseProps {}
66
66
  /**
67
67
  * Properties for the StepperIndicator component.
68
68
  */
69
- interface StepperIndicatorProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
69
+ interface StepperIndicatorProps extends PrimitiveWithBaseProps {}
70
70
  /**
71
71
  * Properties for the StepperTitle component.
72
72
  */
73
- interface StepperTitleProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
73
+ interface StepperTitleProps extends PrimitiveWithBaseProps {}
74
74
  /**
75
75
  * Properties for the StepperDescription component.
76
76
  */
77
- interface StepperDescriptionProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
77
+ interface StepperDescriptionProps extends PrimitiveWithBaseProps {}
78
78
  /**
79
79
  * Available UI slots for the Stepper component.
80
80
  */
@@ -1 +1 @@
1
- import{isNullish as e}from"../../shared/guard.js";import"../../shared/index.js";import{useContext as t}from"../../composables/use-context.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as r}from"vue";const[i,a]=t(`SwitchRoot`,t=>{let{modelValue:n,disabled:i,trueValue:a,falseValue:o}=t;function s(){i.value||(e(n.value)?n.value=a.value:n.value=n.value===a.value?o.value:a.value)}let c=r(()=>n?.value===a.value?`checked`:`unchecked`),l=r(()=>i.value?``:void 0);return{...t,toggleCheck:s,dataState:c,dataDisabled:l}}),[o,s]=n(`SwitchUi`);export{i as provideSwitchRootContext,o as provideSwitchUi,a as useSwitchRootContext,s as useSwitchUi};
1
+ import{isNullish as e}from"../../shared/guard.js";import{useContext as t}from"../../composables/use-context.js";import"../../shared/index.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as r}from"vue";const[i,a]=t(`SwitchRoot`,t=>{let{modelValue:n,disabled:i,trueValue:a,falseValue:o}=t;function s(){i.value||(e(n.value)?n.value=a.value:n.value=n.value===a.value?o.value:a.value)}let c=r(()=>n?.value===a.value?`checked`:`unchecked`),l=r(()=>i.value?``:void 0);return{...t,toggleCheck:s,dataState:c,dataDisabled:l}}),[o,s]=n(`SwitchUi`);export{i as provideSwitchRootContext,o as provideSwitchUi,a as useSwitchRootContext,s as useSwitchUi};
@@ -1,6 +1,7 @@
1
- import { SwitchControlProps, SwitchRootEmits, SwitchRootProps, SwitchThumbProps, SwitchUi, SwitchUiSlot } from "./types.js";
2
- import { _default as _default$1 } from "./switch-root.vue.js";
3
- import { _default } from "./switch-control.vue.js";
4
- import { _default as _default$2 } from "./switch-thumb.vue.js";
1
+ import { SwitchCompactEmits, SwitchCompactProps, SwitchCompactSlotProps, SwitchCompactSlots, SwitchControlProps, SwitchRootEmits, SwitchRootProps, SwitchThumbProps, SwitchUi, SwitchUiSlot } from "./types.js";
2
+ import { _default as _default$2 } from "./switch-root.vue.js";
3
+ import { _default as _default$1 } from "./switch-control.vue.js";
4
+ import { _default as _default$3 } from "./switch-thumb.vue.js";
5
+ import { _default } from "./switch-compact.vue.js";
5
6
  import { provideSwitchUi } from "./context.js";
6
- export { _default as SwitchControl, type SwitchControlProps, _default$1 as SwitchRoot, type SwitchRootEmits, type SwitchRootProps, _default$2 as SwitchThumb, type SwitchThumbProps, type SwitchUi, type SwitchUiSlot, provideSwitchUi };
7
+ export { _default as SwitchCompact, type SwitchCompactEmits, type SwitchCompactProps, type SwitchCompactSlotProps, type SwitchCompactSlots, _default$1 as SwitchControl, type SwitchControlProps, _default$2 as SwitchRoot, type SwitchRootEmits, type SwitchRootProps, _default$3 as SwitchThumb, type SwitchThumbProps, type SwitchUi, type SwitchUiSlot, provideSwitchUi };
@@ -1 +1 @@
1
- import{provideSwitchUi as e}from"./context.js";import t from"./switch-root.js";import n from"./switch-control.js";import r from"./switch-thumb.js";export{n as SwitchControl,t as SwitchRoot,r as SwitchThumb,e as provideSwitchUi};
1
+ import{provideSwitchUi as e}from"./context.js";import t from"./switch-root.js";import n from"./switch-control.js";import r from"./switch-thumb.js";import i from"./switch-compact.js";export{i as SwitchCompact,n as SwitchControl,t as SwitchRoot,r as SwitchThumb,e as provideSwitchUi};
@@ -0,0 +1 @@
1
+ import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./switch-root.js";import n from"./switch-control.js";import r from"./switch-thumb.js";import{computed as i,createBlock as a,createVNode as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderSlot as f,unref as p,useId as m,withCtx as h}from"vue";const g=s({name:`SwitchCompact`,__name:`switch-compact`,props:{controlProps:{},thumbProps:{},defaultValue:{},modelValue:{default:void 0},disabled:{type:Boolean},value:{},name:{},required:{type:Boolean},trueValue:{default:!0},falseValue:{default:!1}},emits:[`update:modelValue`],setup(s,{emit:g}){let _=s,v=g,y=e(_,[`controlProps`,`thumbProps`]),b=m(),x=i(()=>_.controlProps?.id||`switch-${b}`);return(e,i)=>(d(),a(t,l(p(y),{"onUpdate:modelValue":i[0]||(i[0]=e=>v(`update:modelValue`,e))}),{default:h(t=>[f(e.$slots,`leading`,u(c(t))),o(n,l(s.controlProps,{id:x.value}),{default:h(()=>[o(r,u(c(s.thumbProps)),{default:h(()=>[f(e.$slots,`default`,u(c(t)))]),_:2},1040)]),_:2},1040,[`id`]),f(e.$slots,`trailing`,u(c(t)))]),_:3},16))}});export{g as default};
@@ -0,0 +1,22 @@
1
+ import { AcceptableBooleanValue } from "../../types/common.js";
2
+ import { SwitchCompactProps, SwitchCompactSlots } from "./types.js";
3
+ import * as _$vue from "vue";
4
+
5
+ //#region src/components/switch/switch-compact.vue.d.ts
6
+ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: _$vue.PublicProps & __VLS_PrettifyLocal<SwitchCompactProps<T> & {
8
+ "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
9
+ }> & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
12
+ expose: (exposed: {}) => void;
13
+ attrs: any;
14
+ slots: SwitchCompactSlots<T>;
15
+ emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
16
+ }>) => _$vue.VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ declare const _default: typeof __VLS_export;
20
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
21
+ //#endregion
22
+ export { _default };
@@ -1 +1 @@
1
- import{getAriaLabel as e}from"../../shared/dom.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSwitchRootContext as n,useSwitchUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u,useAttrs as d,withKeys as f,withModifiers as p}from"vue";const m=[`id`,`aria-checked`,`aria-label`,`aria-required`,`data-disabled`,`data-state`],h=o({name:`SwitchControl`,__name:`switch-control`,props:{id:{}},setup(o){let h=o,g=d(),{modelValue:_,dataDisabled:v,dataState:y,toggleCheck:b,required:x}=n(`SwitchControl`),[S,C]=t(),w=r(`control`),T=i(()=>e(S.value,h.id,g[`aria-label`]));return(e,t)=>(c(),a(`button`,{id:o.id,ref:u(C),class:s(u(w)),"aria-checked":u(y)===`checked`,"aria-label":T.value,"aria-required":u(x),"data-disabled":u(v),"data-state":u(y),role:`switch`,onClick:t[0]||(t[0]=(...e)=>u(b)&&u(b)(...e)),onKeydown:t[1]||(t[1]=f(p((...e)=>u(b)&&u(b)(...e),[`prevent`]),[`enter`]))},[l(e.$slots,`default`,{modelValue:u(_)})],42,m))}});export{h as default};
1
+ import{getAriaLabel as e}from"../../shared/dom.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import"../../composables/index.js";import n from"../button/button.js";import{useSwitchRootContext as r,useSwitchUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,unref as d,useAttrs as f,withCtx as p,withKeys as m,withModifiers as h}from"vue";const g=s({name:`SwitchControl`,__name:`switch-control`,props:{id:{},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let g=s,_=f(),{modelValue:v,disabled:y,dataState:b,toggleCheck:x,required:S}=r(`SwitchControl`),[C,w]=t(),T=i(`control`),E=a(()=>y.value||g.disabled),D=a(()=>e(C.value,g.id,_[`aria-label`]));return(e,t)=>(l(),o(n,c(g,{ref:d(w),"data-soybean-switch-control":``,class:d(T),disabled:E.value,"aria-checked":d(b)===`checked`,"aria-label":D.value,"aria-required":d(S),"data-state":d(b),role:`switch`,onClick:d(x),onKeydown:m(h(d(x),[`prevent`]),[`enter`])}),{default:p(()=>[u(e.$slots,`default`,{modelValue:d(v)})]),_:3},16,[`class`,`disabled`,`aria-checked`,`aria-label`,`aria-required`,`data-state`,`onClick`,`onKeydown`]))}});export{g as default};
@@ -3,11 +3,11 @@ import { SwitchControlProps } from "./types.js";
3
3
  import * as _$vue from "vue";
4
4
 
5
5
  //#region src/components/switch/switch-control.vue.d.ts
6
- declare var __VLS_1: {
6
+ declare var __VLS_11: {
7
7
  modelValue: AcceptableBooleanValue;
8
8
  };
9
9
  type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_1) => any;
10
+ default?: (props: typeof __VLS_11) => any;
11
11
  };
12
12
  declare const __VLS_base: _$vue.DefineComponent<SwitchControlProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SwitchControlProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import"../../composables/index.js";import a from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideSwitchRootContext as o,useSwitchUi as s}from"./context.js";import{computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g}from"vue";const _=[`data-state`],v=f({name:`SwitchRoot`,__name:`switch-root`,props:{defaultValue:{},modelValue:{default:void 0},disabled:{type:Boolean},value:{default:`on`},name:{},required:{type:Boolean},trueValue:{default:!0},falseValue:{default:!1}},emits:[`update:modelValue`],setup(f,{emit:v}){let y=f,b=v,[x,S]=i(),C=s(`root`),w=r(()=>y.modelValue,e=>{b(`update:modelValue`,e)},y.defaultValue),T=c(()=>t(x.value));function E(){if(e(y.trueValue)||e(y.falseValue))throw Error(`trueValue and falseValue cannot be nullish`)}E();let{dataState:D}=o({...n(y,[`modelValue`,`disabled`,`required`,`trueValue`,`falseValue`]),modelValue:w});return(e,t)=>(m(),d(`div`,{ref:g(S),class:p(g(C)),"data-state":g(D)},[h(e.$slots,`default`,{modelValue:g(w)}),T.value&&f.name?(m(),l(g(a),{key:0,type:`checkbox`,name:f.name,disabled:f.disabled,required:f.required,value:f.value,checked:!!g(w)},null,8,[`name`,`disabled`,`required`,`value`,`checked`])):u(`v-if`,!0)],10,_))}});export{v as default};
1
+ import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import"../../composables/index.js";import a from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideSwitchRootContext as o,useSwitchUi as s}from"./context.js";import{computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g}from"vue";const _=[`data-state`],v=f({name:`SwitchRoot`,__name:`switch-root`,props:{defaultValue:{},modelValue:{default:void 0},disabled:{type:Boolean},value:{default:`on`},name:{},required:{type:Boolean},trueValue:{default:!0},falseValue:{default:!1}},emits:[`update:modelValue`],setup(f,{emit:v}){let y=f,b=v,[x,S]=i(),C=s(`root`),w=r(()=>y.modelValue,e=>{b(`update:modelValue`,e)},y.defaultValue??null),T=c(()=>t(x.value));function E(){if(e(y.trueValue)||e(y.falseValue))throw Error(`trueValue and falseValue cannot be nullish`)}E();let{dataState:D}=o({...n(y,[`modelValue`,`disabled`,`required`,`trueValue`,`falseValue`]),modelValue:w});return(e,t)=>(m(),d(`div`,{ref:g(S),"data-soybean-switch-root":``,class:p(g(C)),"data-state":g(D)},[h(e.$slots,`default`,{modelValue:g(w)}),T.value&&f.name?(m(),l(g(a),{key:0,type:`checkbox`,name:f.name,disabled:f.disabled,required:f.required,value:f.value,checked:!!g(w)},null,8,[`name`,`disabled`,`required`,`value`,`checked`])):u(`v-if`,!0)],10,_))}});export{v as default};
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
13
13
  attrs: any;
14
14
  slots: {
15
15
  default?: (props: {
16
- modelValue: T | undefined;
16
+ modelValue: (T | undefined) & Exclude<T, undefined>;
17
17
  }) => any;
18
18
  };
19
19
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
@@ -1 +1 @@
1
- import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useSwitchRootContext as t,useSwitchUi as n}from"./context.js";import{createBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`SwitchThumb`,__name:`switch-thumb`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(i){let{dataState:u,dataDisabled:d}=t(`SwitchThumb`),f=n(`thumb`);return(t,n)=>(o(),r(c(e),{as:i.as,"as-child":i.asChild,class:a(c(f)),"data-disabled":c(d),"data-state":c(u)},{default:l(()=>[s(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-state`]))}});export{u as default};
1
+ import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useSwitchRootContext as t,useSwitchUi as n}from"./context.js";import{createBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`SwitchThumb`,__name:`switch-thumb`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(i){let{dataState:u,dataDisabled:d}=t(`SwitchThumb`),f=n(`thumb`);return(t,n)=>(o(),r(c(e),{as:i.as,"as-child":i.asChild,"data-soybean-switch-thumb":``,class:a(c(f)),"data-disabled":c(d),"data-state":c(u)},{default:l(()=>[s(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-state`]))}});export{u as default};