@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 +1 @@
1
- import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useSelectItemContext as t,useSelectUi as n}from"./context.js";import{createBlock as r,createCommentVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`SelectItemIndicator`,__name:`select-item-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(a){let{isSelected:d}=t(`SelectItemIndicator`),f=n(`itemIndicator`);return(t,n)=>l(d)?(s(),r(l(e),{key:0,as:a.as,"as-child":a.asChild,class:o(l(f)),"aria-hidden":`true`},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):i(`v-if`,!0)}});export{d as default};
1
+ import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useSelectItemContext as t,useSelectUi as n}from"./context.js";import{createBlock as r,createCommentVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`SelectItemIndicator`,__name:`select-item-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(a){let{isSelected:d}=t(`SelectItemIndicator`),f=n(`itemIndicator`);return(t,n)=>l(d)?(s(),r(l(e),{key:0,"data-soybean-select-item-indicator":``,as:a.as,"as-child":a.asChild,class:o(l(f)),"aria-hidden":`true`},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):i(`v-if`,!0)}});export{d as default};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemContext as n,useSelectRootContext as r,useSelectUi as i}from"./context.js";import{computed as a,createElementBlock as o,defineComponent as s,normalizeClass as c,onMounted as l,onUnmounted as u,openBlock as d,renderSlot as f,unref as p}from"vue";const m=[`id`],h=s({name:`SelectItemText`,__name:`select-item-text`,setup(s){let{onOptionAdd:h,onOptionRemove:g}=r(`SelectItemText`),{onSelectedItemTextElementChange:_}=t(`SelectItemText`),{onItemTextElementChange:v,value:y,disabled:b,textId:x,initTextId:S}=n(`SelectItemText`),[C,w]=e(e=>{v(e),_(e,y,b.value??!1)}),T=i(`itemText`),E=a(()=>({value:y,disabled:b.value??!1,textContent:C.value?.textContent??y?.toString()??``}));return S(),l(()=>{h(E.value)}),u(()=>{g(E.value)}),(e,t)=>(d(),o(`span`,{id:p(x),ref:p(w),class:c(p(T))},[f(e.$slots,`default`)],10,m))}});export{h as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemContext as n,useSelectRootContext as r,useSelectUi as i}from"./context.js";import{computed as a,createElementBlock as o,defineComponent as s,normalizeClass as c,onMounted as l,onUnmounted as u,openBlock as d,renderSlot as f,unref as p}from"vue";const m=[`id`],h=s({name:`SelectItemText`,__name:`select-item-text`,setup(s){let{onOptionAdd:h,onOptionRemove:g}=r(`SelectItemText`),{onSelectedItemTextElementChange:_}=t(`SelectItemText`),{onItemTextElementChange:v,value:y,disabled:b,textId:x,initTextId:S}=n(`SelectItemText`),[C,w]=e(e=>{v(e),_(e,y,b.value??!1)}),T=i(`itemText`),E=a(()=>({value:y,disabled:b.value??!1,textContent:C.value?.textContent??y?.toString()??``}));return S(),l(()=>{h(E.value)}),u(()=>{g(E.value)}),(e,t)=>(d(),o(`span`,{id:p(x),ref:p(w),"data-soybean-select-item-text":``,class:c(p(T))},[f(e.$slots,`default`)],10,m))}});export{h as default};
@@ -1 +1 @@
1
- import{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getBinaryCheckedState as t}from"../../shared/value.js";import{getActiveElement as n}from"../../shared/dom.js";import{transformPropsToContext as r}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as i}from"../../shared/event.js";import"../../shared/index.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import{provideSelectItemContext as s,useCollectionItem as c,useSelectContentContext as l,useSelectRootContext as u,useSelectUi as d}from"./context.js";import{SELECTION_KEYS as f,SELECT_EVENT as p}from"./shared.js";import{computed as m,createBlock as h,defineComponent as g,mergeProps as _,nextTick as v,openBlock as y,renderSlot as b,shallowRef as x,unref as S,withCtx as C,withModifiers as w}from"vue";const T=g({name:`SelectItem`,__name:`select-item`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(g,{emit:T}){let E=g,D=T,{modelValue:O,onModelValueChange:k,onOpenChange:A,isMultiple:j}=u(`SelectItem`),M=d(`item`),N=m(()=>e(O.value,E.value)),{textId:P,textValue:F,disabled:I}=s({...r(E,[`textValue`,`disabled`]),value:E.value,isSelected:N}),{onItemElementChange:L,itemProps:R}=c(()=>({textValue:F.value})),{onSelectedItemElementChange:z,onItemElementLeave:B,search:V}=l(`SelectItem`),[H,U]=a(e=>{z(e,E.value,E.disabled),L(e)}),W=m(()=>t(N.value)),G=x(!1),K=()=>{G.value=!0},q=()=>{G.value=!1};async function J(e){e.defaultPrevented||i(p,Y,{originalEvent:e,value:E.value})}async function Y(e){await v(),D(`select`,e),!e.defaultPrevented&&(I.value||(k(E.value),!j.value&&A(!1)))}async function X(e){await v(),!e.defaultPrevented&&(I.value?B():e.currentTarget?.focus({preventScroll:!0}))}async function Z(e){await v(),!e.defaultPrevented&&e.currentTarget===n()&&B()}async function Q(e){await v(),!e.defaultPrevented&&(V.value!==``&&e.key===` `||(f.includes(e.key)&&J(e),e.key===` `&&e.preventDefault()))}function $(e){e.currentTarget.focus({preventScroll:!0})}if(E.value===``)throw Error(`A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(e,t)=>(y(),h(S(o),_(S(R),{ref:S(U),as:g.as,"as-child":g.asChild,class:S(M),"aria-disabled":S(I)||void 0,"data-highlighted":G.value?``:void 0,"aria-labelledby":S(P),"aria-selected":N.value,"data-disabled":S(I)?``:void 0,"data-state":W.value,role:`option`,tabindex:S(I)?void 0:-1,onFocus:K,onBlur:q,onPointerup:J,onPointerdown:$,onTouchend:t[0]||(t[0]=w(()=>{},[`prevent`,`stop`])),onPointermove:X,onPointerleave:Z,onKeydown:Q}),{default:C(()=>[b(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`class`,`aria-disabled`,`data-highlighted`,`aria-labelledby`,`aria-selected`,`data-disabled`,`data-state`,`tabindex`]))}});export{T as default};
1
+ import{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getBinaryCheckedState as t}from"../../shared/value.js";import{getActiveElement as n}from"../../shared/dom.js";import{transformPropsToContext as r}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as i}from"../../shared/event.js";import"../../shared/index.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import{provideSelectItemContext as s,useCollectionItem as c,useSelectContentContext as l,useSelectRootContext as u,useSelectUi as d}from"./context.js";import{SELECTION_KEYS as f,SELECT_EVENT as p}from"./shared.js";import{computed as m,createBlock as h,defineComponent as g,nextTick as _,normalizeClass as v,openBlock as y,renderSlot as b,shallowRef as x,unref as S,withCtx as C,withModifiers as w}from"vue";const T=g({name:`SelectItem`,__name:`select-item`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(g,{emit:T}){let E=g,D=T,{modelValue:O,onModelValueChange:k,onOpenChange:A,isMultiple:j}=u(`SelectItem`),M=d(`item`),N=m(()=>e(O.value,E.value)),{textId:P,textValue:F,disabled:I}=s({...r(E,[`textValue`,`disabled`]),value:E.value,isSelected:N}),{onItemElementChange:L}=c(()=>({textValue:F.value})),{onSelectedItemElementChange:R,onItemElementLeave:z,search:B}=l(`SelectItem`),[V,H]=a(e=>{R(e,E.value,E.disabled),L(e)}),U=m(()=>t(N.value)),W=x(!1),G=()=>{W.value=!0},K=()=>{W.value=!1};async function q(e){e.defaultPrevented||i(p,J,{originalEvent:e,value:E.value})}async function J(e){await _(),D(`select`,e),!e.defaultPrevented&&(I.value||(k(E.value),!j.value&&A(!1)))}async function Y(e){await _(),!e.defaultPrevented&&(I.value?z():e.currentTarget?.focus({preventScroll:!0}))}async function X(e){await _(),!e.defaultPrevented&&e.currentTarget===n()&&z()}async function Z(e){await _(),!e.defaultPrevented&&(B.value!==``&&e.key===` `||(f.includes(e.key)&&q(e),e.key===` `&&e.preventDefault()))}function Q(e){e.currentTarget.focus({preventScroll:!0})}if(E.value===``)throw Error(`A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(e,t)=>(y(),h(S(o),{ref:S(H),"data-soybean-select-item":``,"data-soybean-collection-item":``,as:g.as,"as-child":g.asChild,class:v(S(M)),"aria-disabled":S(I)||void 0,"data-highlighted":W.value?``:void 0,"aria-labelledby":S(P),"aria-selected":N.value,"data-disabled":S(I)?``:void 0,"data-state":U.value,role:`option`,tabindex:S(I)?void 0:-1,onFocus:G,onBlur:K,onPointerup:q,onPointerdown:Q,onTouchend:t[0]||(t[0]=w(()=>{},[`prevent`,`stop`])),onPointermove:Y,onPointerleave:X,onKeydown:Z},{default:C(()=>[b(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-disabled`,`data-highlighted`,`aria-labelledby`,`aria-selected`,`data-disabled`,`data-state`,`tabindex`]))}});export{T as default};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{popperCssVars as t}from"../popper/shared.js";import n from"../popper/popper-popup.js";import"../popper/index.js";import{useSelectPopupElementContext as r}from"./context.js";import{selectCssVars as i}from"./shared.js";import{createBlock as a,defineComponent as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=o({name:`SelectPopperPopup`,__name:`select-popper-popup`,setup(o){let{onPopupElementChange:d}=r(`SelectPopperPopup`),[f,p]=e(d),m={boxSizing:`border-box`,[i.popupTransformOrigin]:`var(${t.transformOrigin})`,[i.popupAvailableWidth]:`var(${t.availableWidth})`,[i.popupAvailableHeight]:`var(${t.availableHeight})`,[i.triggerWidth]:`var(${t.anchorWidth})`,[i.triggerHeight]:`var(${t.anchorHeight})`};return(e,t)=>(s(),a(l(n),{ref:l(p),style:m},{default:u(()=>[c(e.$slots,`default`)]),_:3},512))}});export{d as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{popperCssVars as t}from"../popper/shared.js";import n from"../popper/popper-popup.js";import"../popper/index.js";import{useSelectPopupElementContext as r}from"./context.js";import{selectCssVars as i}from"./shared.js";import{createBlock as a,defineComponent as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=o({name:`SelectPopperPopup`,__name:`select-popper-popup`,setup(o){let{onPopupElementChange:d}=r(`SelectPopperPopup`),[f,p]=e(d),m={boxSizing:`border-box`,[i.popupTransformOrigin]:`var(${t.transformOrigin})`,[i.popupAvailableWidth]:`var(${t.availableWidth})`,[i.popupAvailableHeight]:`var(${t.availableHeight})`,[i.triggerWidth]:`var(${t.anchorWidth})`,[i.triggerHeight]:`var(${t.anchorHeight})`};return(e,t)=>(s(),a(l(n),{ref:l(p),"data-soybean-select-popper-popup":``,style:m},{default:u(()=>[c(e.$slots,`default`)]),_:3},512))}});export{d as default};
@@ -5,8 +5,8 @@ import * as _$vue from "vue";
5
5
  //#region src/components/select/select-root.vue.d.ts
6
6
  declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__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
7
  props: _$vue.PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
8
- "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
9
8
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
9
+ "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
11
11
  __VLS_PROPS_FALLBACK: infer P;
12
12
  } ? P : {});
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
18
18
  open: boolean;
19
19
  }) => any;
20
20
  };
21
- emit: ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void);
21
+ emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
22
22
  }>) => _$vue.VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
@@ -1 +1 @@
1
- import{getActiveElement as e}from"../../shared/dom.js";import"../../shared/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useCollectionContext as n,useSelectContentContext as r}from"./context.js";import{createBlock as i,defineComponent as a,onBeforeUnmount as o,openBlock as s,renderSlot as c,unref as l,watchEffect as u,withCtx as d}from"vue";const f=a({name:`SelectScrollButtonImpl`,__name:`select-scroll-button-impl`,props:{asChild:{type:Boolean},as:{}},emits:[`autoScroll`],setup(a,{emit:f}){let p=f,{getOrderedItems:m}=n(`SelectScrollButtonImpl`),{onItemElementLeave:h}=r(`SelectScrollButtonImpl`),g=null,_=()=>{g!==null&&(window.clearInterval(g),g=null)},v=()=>{g===null&&(g=window.setInterval(()=>{p(`autoScroll`)},50))},y=()=>{h(),g===null&&(g=window.setInterval(()=>{p(`autoScroll`)},50))},b=()=>{_()};return u(()=>{m().map(e=>e.element).find(t=>t===e())?.scrollIntoView({block:`nearest`})}),o(()=>{_()}),(e,n)=>(s(),i(l(t),{as:a.as,"as-child":a.asChild,"aria-hidden":`true`,style:{"flex-shrink":`0`},onPointerdown:v,onPointermove:y,onPointerleave:b},{default:d(()=>[c(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});export{f as default};
1
+ import{getActiveElement as e}from"../../shared/dom.js";import"../../shared/index.js";import t from"../button/button.js";import{useCollectionContext as n,useSelectContentContext as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,onBeforeUnmount as s,openBlock as c,renderSlot as l,watchEffect as u,withCtx as d}from"vue";const f=a({name:`SelectScrollButtonImpl`,__name:`select-scroll-button-impl`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`autoScroll`],setup(a,{emit:f}){let p=a,m=f,{getOrderedItems:h}=n(`SelectScrollButtonImpl`),{onItemElementLeave:g}=r(`SelectScrollButtonImpl`),_=null,v=()=>{_!==null&&(window.clearInterval(_),_=null)},y=()=>{_===null&&(_=window.setInterval(()=>{m(`autoScroll`)},50))},b=()=>{g(),_===null&&(_=window.setInterval(()=>{m(`autoScroll`)},50))},x=()=>{v()};return u(()=>{h().map(e=>e.element).find(t=>t===e())?.scrollIntoView({block:`nearest`})}),s(()=>{v()}),(e,n)=>(c(),i(t,o(p,{"data-soybean-select-scroll-button-impl":``,"aria-hidden":`true`,style:{"flex-shrink":`0`},onPointerdown:y,onPointermove:b,onPointerleave:x}),{default:d(()=>[l(e.$slots,`default`)]),_:3},16))}});export{f as default};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import i from"./select-scroll-button-impl.js";import{createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,watchEffect as m,withCtx as h}from"vue";const g=s({name:`SelectScrollDownButton`,__name:`select-scroll-down-button`,props:{asChild:{type:Boolean},as:{}},setup(s){let{selectedItemElement:g,viewportElement:_,isPositioned:v}=t(`SelectScrollDownButton`),y=n(),[b,x]=e(e=>{y?.onScrollButtonChange(e)}),S=r(`scrollDownButton`),C=()=>{_.value&&g.value&&(_.value.scrollTop+=g.value.offsetHeight)},w=f(!1);return m(()=>{if(!_.value||!v.value)return;let e=_.value;function t(){let t=e.scrollHeight-e.clientHeight;w.value=Math.ceil(e.scrollTop)<t}t(),e.addEventListener(`scroll`,t),l(()=>{e.removeEventListener(`scroll`,t)})}),(e,t)=>w.value?(u(),a(i,{key:0,ref:p(x),as:s.as,"as-child":s.asChild,class:c(p(S)),onAutoScroll:C},{default:h(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):o(`v-if`,!0)}});export{g as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import i from"./select-scroll-button-impl.js";import{createBlock as a,createCommentVNode as o,defineComponent as s,mergeProps as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,watchEffect as m,withCtx as h}from"vue";const g=s({name:`SelectScrollDownButton`,__name:`select-scroll-down-button`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let g=s,{selectedItemElement:_,viewportElement:v,isPositioned:y}=t(`SelectScrollDownButton`),b=n(),[x,S]=e(e=>{b?.onScrollButtonChange(e)}),C=r(`scrollDownButton`),w=()=>{v.value&&_.value&&(v.value.scrollTop+=_.value.offsetHeight)},T=f(!1);return m(()=>{if(!v.value||!y.value)return;let e=v.value;function t(){let t=e.scrollHeight-e.clientHeight;T.value=Math.ceil(e.scrollTop)<t}t(),e.addEventListener(`scroll`,t),l(()=>{e.removeEventListener(`scroll`,t)})}),(e,t)=>T.value?(u(),a(i,c({key:0,ref:p(S),"data-soybean-select-scroll-down-button":``},g,{class:p(C),onAutoScroll:w}),{default:h(()=>[d(e.$slots,`default`)]),_:3},16,[`class`])):o(`v-if`,!0)}});export{g as default};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import i from"./select-scroll-button-impl.js";import{createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,watchEffect as m,withCtx as h}from"vue";const g=s({name:`SelectScrollUpButton`,__name:`select-scroll-up-button`,props:{asChild:{type:Boolean},as:{}},setup(s){let{selectedItemElement:g,viewportElement:_,isPositioned:v}=t(`SelectScrollDownButton`),y=n(),[b,x]=e(e=>{y?.onScrollButtonChange(e)}),S=r(`scrollUpButton`),C=()=>{_.value&&g.value&&(_.value.scrollTop-=g.value.offsetHeight)},w=f(!1);return m(()=>{if(!_.value||!v.value)return;let e=_.value;function t(){w.value=e.scrollTop>0}t(),e.addEventListener(`scroll`,t),l(()=>{e.removeEventListener(`scroll`,t)})}),(e,t)=>w.value?(u(),a(i,{key:0,ref:p(x),as:s.as,"as-child":s.asChild,class:c(p(S)),onAutoScroll:C},{default:h(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):o(`v-if`,!0)}});export{g as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import i from"./select-scroll-button-impl.js";import{createBlock as a,createCommentVNode as o,defineComponent as s,mergeProps as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,watchEffect as m,withCtx as h}from"vue";const g=s({name:`SelectScrollUpButton`,__name:`select-scroll-up-button`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let g=s,{selectedItemElement:_,viewportElement:v,isPositioned:y}=t(`SelectScrollUpButton`),b=n(),[x,S]=e(e=>{b?.onScrollButtonChange(e)}),C=r(`scrollUpButton`),w=()=>{v.value&&_.value&&(v.value.scrollTop-=_.value.offsetHeight)},T=f(!1);return m(()=>{if(!v.value||!y.value)return;let e=v.value;function t(){T.value=e.scrollTop>0}t(),e.addEventListener(`scroll`,t),l(()=>{e.removeEventListener(`scroll`,t)})}),(e,t)=>T.value?(u(),a(i,c({key:0,ref:p(S),"data-soybean-select-scroll-up-button":``},g,{class:p(C),onAutoScroll:w}),{default:h(()=>[d(e.$slots,`default`)]),_:3},16,[`class`])):o(`v-if`,!0)}});export{g as default};
@@ -1 +1 @@
1
- import{useSelectUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`SelectSeparator`,__name:`select-separator`,setup(n){let s=e(`separator`);return(e,n)=>(i(),t(`div`,{class:r(o(s)),role:`separator`,"aria-orientation":`horizontal`},[a(e.$slots,`default`)],2))}});export{s as default};
1
+ import{useSelectUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`SelectSeparator`,__name:`select-separator`,setup(n){let s=e(`separator`);return(e,n)=>(i(),t(`div`,{"data-soybean-select-separator":``,class:r(o(s)),role:`separator`,"aria-orientation":`horizontal`},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -1 +1 @@
1
- import{useSelectUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`SelectTriggerIcon`,__name:`select-trigger-icon`,setup(n){let s=e(`triggerIcon`);return(e,n)=>(i(),t(`span`,{class:r(o(s)),"aria-hidden":`true`},[a(e.$slots,`default`)],2))}});export{s as default};
1
+ import{useSelectUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`SelectTriggerIcon`,__name:`select-trigger-icon`,setup(n){let s=e(`triggerIcon`);return(e,n)=>(i(),t(`span`,{"data-soybean-select-trigger-icon":``,class:r(o(s)),"aria-hidden":`true`},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useTypeahead as t}from"../../composables/use-typeahead.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import r from"../popper/popper-anchor.js";import"../popper/index.js";import{useCollectionContext as i,useSelectRootContext as a,useSelectUi as o}from"./context.js";import{OPEN_KEYS as s,shouldShowPlaceholder as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,withCtx as _,withModifiers as v}from"vue";const y=f({name:`SelectTrigger`,__name:`select-trigger`,props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{default:`button`}},setup(f){let y=f,{open:b,dataState:x,modelValue:S,disabled:C,required:w,contentId:T,dir:E,initContentId:D,onTriggerElementChange:O,onOpenChange:k,setTriggerPointerDownPosition:A}=a(`SelectTrigger`),[j,M]=e(O),{getOrderedItems:N}=i(`SelectTrigger`),{search:P,handleTypeaheadSearch:F,resetTypeahead:I}=t(),L=o(`trigger`),R=l(()=>C.value||y.disabled),z=l(()=>c(S.value)?``:void 0),B=l(()=>y.as===`button`?`button`:void 0),V=()=>{R.value||(k(!0),I())},H=e=>{V();let{pageX:t,pageY:n}=e;A({x:Math.round(t),y:Math.round(n)})},U=e=>{b.value||e.currentTarget?.focus()},W=e=>{if(e.pointerType===`touch`){e.preventDefault();return}let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(H(e),e.preventDefault())},G=e=>{e.pointerType===`touch`&&H(e)},K=e=>{let t=P.value!==``;if(!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&t&&e.key===` `)return;let n=N();F(e.key,n),s.includes(e.key)&&(V(),e.preventDefault())};return D(),(e,t)=>(m(),u(g(r),{"as-child":``,reference:f.reference},{default:_(()=>[d(g(n),{ref:g(M),as:f.as,"as-child":f.asChild,class:p(g(L)),"aria-controls":g(T),"aria-expanded":g(b)||!1,"aria-required":g(w),"aria-autocomplete":`none`,disabled:R.value,dir:g(E),"data-state":g(x),"data-disabled":R.value?``:void 0,"data-placeholder":z.value,role:`combobox`,type:B.value,onClick:U,onPointerdown:W,onPointerup:v(G,[`prevent`]),onKeydown:K},{default:_(()=>[h(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-controls`,`aria-expanded`,`aria-required`,`disabled`,`dir`,`data-state`,`data-disabled`,`data-placeholder`,`type`])]),_:3},8,[`reference`]))}});export{y as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useTypeahead as t}from"../../composables/use-typeahead.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import r from"../popper/popper-anchor.js";import"../popper/index.js";import{useCollectionContext as i,useSelectRootContext as a,useSelectUi as o}from"./context.js";import{OPEN_KEYS as s,shouldShowPlaceholder as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,withCtx as _,withModifiers as v}from"vue";const y=f({name:`SelectTrigger`,__name:`select-trigger`,props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{default:`button`}},setup(f){let y=f,{open:b,dataState:x,modelValue:S,disabled:C,required:w,contentId:T,dir:E,initContentId:D,onTriggerElementChange:O,onOpenChange:k,setTriggerPointerDownPosition:A}=a(`SelectTrigger`),[j,M]=e(O),{getOrderedItems:N}=i(`SelectTrigger`),{search:P,handleTypeaheadSearch:F,resetTypeahead:I}=t(),L=o(`trigger`),R=l(()=>C.value||y.disabled),z=l(()=>c(S.value)?``:void 0),B=l(()=>y.as===`button`?`button`:void 0),V=()=>{R.value||(k(!0),I())},H=e=>{V();let{pageX:t,pageY:n}=e;A({x:Math.round(t),y:Math.round(n)})},U=e=>{b.value||e.currentTarget?.focus()},W=e=>{if(e.pointerType===`touch`){e.preventDefault();return}let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(H(e),e.preventDefault())},G=e=>{e.pointerType===`touch`&&H(e)},K=e=>{let t=P.value!==``;if(!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&t&&e.key===` `)return;let n=N();F(e.key,n),s.includes(e.key)&&(V(),e.preventDefault())};return D(),(e,t)=>(m(),u(g(r),{"as-child":``,reference:f.reference},{default:_(()=>[d(g(n),{ref:g(M),as:f.as,"as-child":f.asChild,"data-soybean-select-trigger":``,class:p(g(L)),"aria-controls":g(T),"aria-expanded":g(b)||!1,"aria-required":g(w),"aria-autocomplete":`none`,disabled:R.value,dir:g(E),"data-state":g(x),"data-disabled":R.value?``:void 0,"data-placeholder":z.value,role:`combobox`,type:B.value,onClick:U,onPointerdown:W,onPointerup:v(G,[`prevent`]),onKeydown:K},{default:_(()=>[h(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-controls`,`aria-expanded`,`aria-required`,`disabled`,`dir`,`data-state`,`data-disabled`,`data-placeholder`,`type`])]),_:3},8,[`reference`]))}});export{y as default};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectRootContext as t,useSelectUi as n}from"./context.js";import{computed as r,createElementBlock as i,createTextVNode as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,toDisplayString as u,unref as d}from"vue";const f=[`data-placeholder`],p=o({name:`SelectValue`,__name:`select-value`,props:{placeholder:{default:``}},setup(o){let p=o,{modelValue:m,options:h,onValueElementChange:g}=t(`SelectValue`),[_,v]=e(g),y=n(`value`),b=r(()=>{let e=[],t=e=>h.value.find(t=>e===t.value);return e=Array.isArray(m.value)?m.value.map(e=>t(e)?.textContent??``):[t(m.value)?.textContent??``],e.filter(Boolean)}),x=r(()=>b.value.length?b.value.join(`, `):p.placeholder);return(e,t)=>(c(),i(`span`,{ref:d(v),class:s(d(y)),"data-placeholder":b.value.length?void 0:p.placeholder,style:{"pointer-events":`none`}},[l(e.$slots,`default`,{modelValue:d(m),selectedLabel:b.value,slotText:x.value},()=>[a(u(x.value),1)])],10,f))}});export{p as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectRootContext as t,useSelectUi as n}from"./context.js";import{computed as r,createElementBlock as i,createTextVNode as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,toDisplayString as u,unref as d}from"vue";const f=[`data-placeholder`],p=o({name:`SelectValue`,__name:`select-value`,props:{placeholder:{default:``}},setup(o){let p=o,{modelValue:m,options:h,onValueElementChange:g}=t(`SelectValue`),[_,v]=e(g),y=n(`value`),b=r(()=>{let e=[],t=e=>h.value.find(t=>e===t.value);return e=Array.isArray(m.value)?m.value.map(e=>t(e)?.textContent??``):[t(m.value)?.textContent??``],e.filter(Boolean)}),x=r(()=>b.value.length?b.value.join(`, `):p.placeholder);return(e,t)=>(c(),i(`span`,{ref:d(v),"data-soybean-select-value":``,class:s(d(y)),"data-placeholder":b.value.length?void 0:p.placeholder,style:{"pointer-events":`none`}},[l(e.$slots,`default`,{modelValue:d(m),selectedLabel:b.value,slotText:x.value},()=>[a(u(x.value),1)])],10,f))}});export{p as default};
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import"./shared.js";import{createElementBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,useAttrs as u}from"vue";const d=a({name:`SelectViewport`,__name:`select-viewport`,props:{nonce:{}},setup(a){let d=u(),{onViewportElementChange:f}=t(`SelectViewport`),[p,m]=e(f),h=n(),g=r(`viewport`),_=0;function v(e){let t=e.currentTarget,{positionerElement:n,shouldExpandOnScroll:r}=h??{};if(!n?.value||!r?.value){_=t.scrollTop;return}let i=Math.abs(_-t.scrollTop);if(i<=0)return;let a=window.innerHeight-20,o=Number.parseFloat(n.value.style.minHeight),s=Number.parseFloat(n.value.style.height),c=Math.max(o,s);if(c<a){let e=c+i,r=Math.min(a,e),o=e-r;n.value.style.height=`${r}px`,n.value.style.bottom===`0px`&&(t.scrollTop=o>0?o:0,n.value.style.justifyContent=`flex-end`)}_=t.scrollTop}return(e,t)=>(s(),i(`div`,o(l(d),{ref:l(m),class:l(g),"data-soybean-select-viewport":``,role:`presentation`,style:`position:relative;flex:1;overflow:hidden auto;`,onScroll:v}),[c(e.$slots,`default`)],16))}});export{d as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import"./shared.js";import{createElementBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,useAttrs as u}from"vue";const d=a({name:`SelectViewport`,__name:`select-viewport`,props:{nonce:{}},setup(a){let d=u(),{onViewportElementChange:f}=t(`SelectViewport`),[p,m]=e(f),h=n(),g=r(`viewport`),_=0;function v(e){let t=e.currentTarget,{positionerElement:n,shouldExpandOnScroll:r}=h??{};if(!n?.value||!r?.value){_=t.scrollTop;return}let i=Math.abs(_-t.scrollTop);if(i<=0)return;let a=window.innerHeight-20,o=Number.parseFloat(n.value.style.minHeight),s=Number.parseFloat(n.value.style.height),c=Math.max(o,s);if(c<a){let e=c+i,r=Math.min(a,e),o=e-r;n.value.style.height=`${r}px`,n.value.style.bottom===`0px`&&(t.scrollTop=o>0?o:0,n.value.style.justifyContent=`flex-end`)}_=t.scrollTop}return(e,t)=>(s(),i(`div`,o(l(d),{ref:l(m),"data-soybean-select-viewport":``,class:l(g),role:`presentation`,style:`position:relative;flex:1;overflow:hidden auto;`,onScroll:v}),[c(e.$slots,`default`)],16))}});export{d as default};
@@ -1,11 +1,13 @@
1
- import { IconValue } from "../_icon/types.js";
2
1
  import { DefinedValue, Direction, SelectionEmits, SelectionProps, UiClass } from "../../types/common.js";
3
2
  import { PointerDownOutsideEvent } from "../../types/event.js";
4
3
  import { DismissableLayerProps, ForceMountProps, FormFieldCommonProps } from "../../types/component.js";
5
- import { PrimitiveProps } from "../primitive/types.js";
4
+ import { BaseProps } from "../../types/vue.js";
5
+ import { PrimitiveWithBaseProps } from "../primitive/types.js";
6
+ import { ButtonProps } from "../button/types.js";
7
+ import { IconValue } from "../_icon/types.js";
6
8
  import { PopperAnchorProps, PopperArrowProps, PopperPositionerProps } from "../popper/types.js";
7
9
  import { PortalProps } from "../portal/types.js";
8
- import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
10
+ import { ComputedRef, ShallowRef } from "vue";
9
11
 
10
12
  //#region src/components/select/types.d.ts
11
13
  /**
@@ -35,7 +37,7 @@ type SelectRootEmits<T extends DefinedValue = DefinedValue, M extends boolean =
35
37
  /**
36
38
  * Properties for the SelectPopup component.
37
39
  */
38
- interface SelectPopupProps extends /** @vue-ignore */HTMLAttributes {}
40
+ interface SelectPopupProps extends BaseProps {}
39
41
  /**
40
42
  * Type information for SelectPosition.
41
43
  */
@@ -85,7 +87,7 @@ type SelectContentEmits = SelectContentImplEmits;
85
87
  /**
86
88
  * Properties for the SelectViewport component.
87
89
  */
88
- interface SelectViewportProps extends /** @vue-ignore */HTMLAttributes {
90
+ interface SelectViewportProps extends BaseProps {
89
91
  /**
90
92
  * Will add `nonce` attribute to the style tag which can be used by Content Security Policy. <br> If omitted, inherits
91
93
  * globally from `ConfigProvider`.
@@ -95,11 +97,11 @@ interface SelectViewportProps extends /** @vue-ignore */HTMLAttributes {
95
97
  /**
96
98
  * Properties for the SelectGroup component.
97
99
  */
98
- interface SelectGroupProps extends /** @vue-ignore */Omit<HTMLAttributes, 'onSelect'> {}
100
+ interface SelectGroupProps extends Omit<BaseProps, 'onSelect'> {}
99
101
  /**
100
102
  * Properties for the SelectGroupLabel component.
101
103
  */
102
- interface SelectGroupLabelProps extends /** @vue-ignore */HTMLAttributes {}
104
+ interface SelectGroupLabelProps extends BaseProps {}
103
105
  /**
104
106
  * Properties for the SelectTrigger component.
105
107
  */
@@ -112,11 +114,11 @@ interface SelectTriggerProps extends PopperAnchorProps {
112
114
  /**
113
115
  * Properties for the SelectTriggerIcon component.
114
116
  */
115
- interface SelectTriggerIconProps extends /** @vue-ignore */HTMLAttributes {}
117
+ interface SelectTriggerIconProps extends BaseProps {}
116
118
  /**
117
119
  * Properties for the SelectItem component.
118
120
  */
119
- interface SelectItemProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'onSelect'> {
121
+ interface SelectItemProps extends Omit<PrimitiveWithBaseProps, 'onSelect'> {
120
122
  /** The value given as data when submitted with a `name`. */
121
123
  value: DefinedValue;
122
124
  /** When `true`, prevents the user from interacting with the item. */
@@ -149,11 +151,11 @@ type SelectItemEmits<T extends DefinedValue = DefinedValue> = {
149
151
  /**
150
152
  * Properties for the SelectItemText component.
151
153
  */
152
- interface SelectItemTextProps extends /** @vue-ignore */HTMLAttributes {}
154
+ interface SelectItemTextProps extends BaseProps {}
153
155
  /**
154
156
  * Properties for the SelectItemIndicator component.
155
157
  */
156
- interface SelectItemIndicatorProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
158
+ interface SelectItemIndicatorProps extends PrimitiveWithBaseProps {}
157
159
  /**
158
160
  * Option data for the SelectSingle component.
159
161
  */
@@ -365,18 +367,18 @@ type SelectCompactSlots<T extends DefinedValue = DefinedValue, M extends boolean
365
367
  /**
366
368
  * Properties for the SelectValue component.
367
369
  */
368
- interface SelectValueProps extends /** @vue-ignore */HTMLAttributes {
370
+ interface SelectValueProps extends BaseProps {
369
371
  /** The content that will be rendered inside the `SelectValue` when no `value` or `defaultValue` is set. */
370
372
  placeholder?: string;
371
373
  }
372
374
  /**
373
375
  * Properties for the SelectSeparator component.
374
376
  */
375
- interface SelectSeparatorProps extends /** @vue-ignore */HTMLAttributes {}
377
+ interface SelectSeparatorProps extends BaseProps {}
376
378
  /**
377
379
  * Properties for the SelectScrollButtonImpl component.
378
380
  */
379
- interface SelectScrollButtonImplProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {}
381
+ interface SelectScrollButtonImplProps extends ButtonProps {}
380
382
  /**
381
383
  * Properties for the SelectScrollDownButton component.
382
384
  */
@@ -1,5 +1,6 @@
1
- import { SeparatorLabelProps, SeparatorRootProps, SeparatorUi, SeparatorUiSlot } from "./types.js";
2
- import { _default as _default$1 } from "./separator-root.vue.js";
3
- import { _default } from "./separator-label.vue.js";
1
+ import { SeparatorCompactProps, SeparatorCompactSlots, SeparatorLabelProps, SeparatorRootProps, SeparatorUi, SeparatorUiSlot } from "./types.js";
2
+ import { _default as _default$2 } from "./separator-root.vue.js";
3
+ import { _default } from "./separator-compact.vue.js";
4
+ import { _default as _default$1 } from "./separator-label.vue.js";
4
5
  import { provideSeparatorUi } from "./context.js";
5
- export { _default as SeparatorLabel, type SeparatorLabelProps, _default$1 as SeparatorRoot, type SeparatorRootProps, type SeparatorUi, type SeparatorUiSlot, provideSeparatorUi };
6
+ export { _default as SeparatorCompact, type SeparatorCompactProps, type SeparatorCompactSlots, _default$1 as SeparatorLabel, type SeparatorLabelProps, _default$2 as SeparatorRoot, type SeparatorRootProps, type SeparatorUi, type SeparatorUiSlot, provideSeparatorUi };
@@ -1 +1 @@
1
- import{provideSeparatorUi as e}from"./context.js";import t from"./separator-root.js";import n from"./separator-label.js";export{n as SeparatorLabel,t as SeparatorRoot,e as provideSeparatorUi};
1
+ import{provideSeparatorUi as e}from"./context.js";import t from"./separator-root.js";import n from"./separator-label.js";import r from"./separator-compact.js";export{r as SeparatorCompact,n as SeparatorLabel,t as SeparatorRoot,e as provideSeparatorUi};
@@ -0,0 +1 @@
1
+ import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./separator-root.js";import n from"./separator-label.js";import{computed as r,createBlock as i,createCommentVNode as a,createTextVNode as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderSlot as f,toDisplayString as p,unref as m,useSlots as h,withCtx as g}from"vue";const _=s({name:`SeparatorCompact`,__name:`separator-compact`,props:{label:{},labelProps:{},orientation:{},decorative:{type:Boolean}},setup(s){let _=s,v=h(),y=e(_,[`label`,`labelProps`]),b=r(()=>(v.label||_.label)&&_.orientation!==`vertical`);return(e,r)=>(d(),i(t,u(c(m(y))),{default:g(()=>[b.value?(d(),i(n,u(l({key:0},s.labelProps)),{default:g(()=>[f(e.$slots,`label`,{},()=>[o(p(s.label),1)])]),_:3},16)):a(`v-if`,!0)]),_:3},16))}});export{_ as default};
@@ -0,0 +1,18 @@
1
+ import { SeparatorCompactProps } from "./types.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/separator/separator-compact.vue.d.ts
5
+ declare var __VLS_14: {};
6
+ type __VLS_Slots = {} & {
7
+ label?: (props: typeof __VLS_14) => any;
8
+ };
9
+ declare const __VLS_base: _$vue.DefineComponent<SeparatorCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SeparatorCompactProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -1 +1 @@
1
- import{useSeparatorUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`SeparatorLabel`,__name:`separator-label`,setup(n){let s=e(`label`);return(e,n)=>(i(),t(`span`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
1
+ import{useSeparatorUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`SeparatorLabel`,__name:`separator-label`,setup(n){let s=e(`label`);return(e,n)=>(i(),t(`span`,{"data-soybean-separator-label":``,class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -1 +1 @@
1
- import{useSeparatorUi as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`data-orientation`,`aria-orientation`,`role`],l=r({name:`SeparatorRoot`,__name:`separator-root`,props:{orientation:{default:`horizontal`},decorative:{type:Boolean,default:!1}},setup(r){let l=r,u=e(`root`),d=[`horizontal`,`vertical`],f=t(()=>d.includes(l.orientation)?l.orientation:`horizontal`),p=t(()=>f.value===`vertical`?l.orientation:void 0);return(e,t)=>(a(),n(`div`,{class:i(s(u)),"data-orientation":f.value,"aria-orientation":p.value,role:r.decorative?`none`:`separator`},[o(e.$slots,`default`)],10,c))}});export{l as default};
1
+ import{useSeparatorUi as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`data-orientation`,`aria-orientation`,`role`],l=r({name:`SeparatorRoot`,__name:`separator-root`,props:{orientation:{default:`horizontal`},decorative:{type:Boolean,default:!1}},setup(r){let l=r,u=e(`root`),d=[`horizontal`,`vertical`],f=t(()=>d.includes(l.orientation)?l.orientation:`horizontal`),p=t(()=>f.value===`vertical`?l.orientation:void 0);return(e,t)=>(a(),n(`div`,{"data-soybean-separator-root":``,class:i(s(u)),"data-orientation":f.value,"aria-orientation":p.value,role:r.decorative?`none`:`separator`},[o(e.$slots,`default`)],10,c))}});export{l as default};
@@ -1,15 +1,14 @@
1
1
  import { DataOrientation, UiClass } from "../../types/common.js";
2
- import { HTMLAttributes } from "vue";
3
-
2
+ import { BaseProps } from "../../types/vue.js";
4
3
  //#region src/components/separator/types.d.ts
5
4
  /**
6
5
  * Properties for the SeparatorLabel component.
7
6
  */
8
- interface SeparatorLabelProps extends /** @vue-ignore */HTMLAttributes {}
7
+ interface SeparatorLabelProps extends BaseProps {}
9
8
  /**
10
9
  * Properties for the SeparatorRoot component.
11
10
  */
12
- interface SeparatorRootProps extends /** @vue-ignore */HTMLAttributes {
11
+ interface SeparatorRootProps extends BaseProps {
13
12
  /**
14
13
  * Orientation of the component.
15
14
  *
@@ -22,6 +21,28 @@ interface SeparatorRootProps extends /** @vue-ignore */HTMLAttributes {
22
21
  */
23
22
  decorative?: boolean;
24
23
  }
24
+ /**
25
+ * Properties for the SeparatorCompact component.
26
+ */
27
+ interface SeparatorCompactProps extends SeparatorRootProps {
28
+ /**
29
+ * Label text rendered by the component.
30
+ */
31
+ label?: string;
32
+ /**
33
+ * Properties forwarded to the label element.
34
+ */
35
+ labelProps?: SeparatorLabelProps;
36
+ }
37
+ /**
38
+ * Slots for the SeparatorCompact component.
39
+ */
40
+ interface SeparatorCompactSlots {
41
+ /**
42
+ * Custom content for the label slot.
43
+ */
44
+ default?: () => any;
45
+ }
25
46
  /**
26
47
  * Available UI slots for the Separator component.
27
48
  */
@@ -31,4 +52,4 @@ type SeparatorUiSlot = 'root' | 'label';
31
52
  */
32
53
  type SeparatorUi = UiClass<SeparatorUiSlot>;
33
54
  //#endregion
34
- export { SeparatorLabelProps, SeparatorRootProps, SeparatorUi, SeparatorUiSlot };
55
+ export { SeparatorCompactProps, SeparatorCompactSlots, SeparatorLabelProps, SeparatorRootProps, SeparatorUi, SeparatorUiSlot };
@@ -1 +1 @@
1
- import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{computed as t,createBlock as n,defineComponent as r,openBlock as i,renderSlot as a,unref as o,useAttrs as s,withCtx as c}from"vue";const l=r({name:`Skeleton`,__name:`skeleton`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(r){let l=s(),u=t(()=>l[`aria-hidden`]??!0);return(t,s)=>(i(),n(o(e),{as:r.as,"as-child":r.asChild,"aria-hidden":u.value},{default:c(()=>[a(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`]))}});export{l as default};
1
+ import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{computed as t,createBlock as n,defineComponent as r,openBlock as i,renderSlot as a,unref as o,useAttrs as s,withCtx as c}from"vue";const l=r({name:`Skeleton`,__name:`skeleton`,props:{asChild:{type:Boolean},as:{}},setup(r){let l=s(),u=t(()=>l[`aria-hidden`]??!0);return(t,s)=>(i(),n(o(e),{"data-soybean-skeleton":``,as:r.as,"as-child":r.asChild,"aria-hidden":u.value},{default:c(()=>[a(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`]))}});export{l as default};
@@ -1,4 +1,3 @@
1
- import { AsTag } from "../primitive/types.js";
2
1
  import { SkeletonProps } from "./types.js";
3
2
  import * as _$vue from "vue";
4
3
 
@@ -7,9 +6,7 @@ declare var __VLS_8: {};
7
6
  type __VLS_Slots = {} & {
8
7
  default?: (props: typeof __VLS_8) => any;
9
8
  };
10
- declare const __VLS_base: _$vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
11
- as: AsTag | _$vue.Component;
12
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: _$vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
11
  declare const _default: typeof __VLS_export;
15
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,10 +1,9 @@
1
- import { PrimitiveProps } from "../primitive/types.js";
2
- import { HTMLAttributes } from "vue";
1
+ import { PrimitiveWithBaseProps } from "../primitive/types.js";
3
2
 
4
3
  //#region src/components/skeleton/types.d.ts
5
4
  /**
6
5
  * Properties for the Skeleton component.
7
6
  */
8
- interface SkeletonProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
7
+ interface SkeletonProps extends PrimitiveWithBaseProps {}
9
8
  //#endregion
10
9
  export { SkeletonProps };
@@ -1,7 +1,8 @@
1
- import { SliderRangeProps, SliderRootContext, SliderRootEmits, SliderRootProps, SliderSlideDirection, SliderThumbAlignment, SliderThumbProps, SliderTrackProps, SliderUi, SliderUiSlot } from "./types.js";
2
- import { _default as _default$1 } from "./slider-root.vue.js";
3
- import { _default as _default$3 } from "./slider-track.vue.js";
4
- import { _default } from "./slider-range.vue.js";
5
- import { _default as _default$2 } from "./slider-thumb.vue.js";
1
+ import { SliderCompactEmits, SliderCompactProps, SliderCompactSlotProps, SliderCompactSlots, SliderRangeProps, SliderRootContext, SliderRootEmits, SliderRootProps, SliderSlideDirection, SliderThumbAlignment, SliderThumbProps, SliderTrackProps, SliderUi, SliderUiSlot } from "./types.js";
2
+ import { _default } from "./slider-compact.vue.js";
3
+ import { _default as _default$2 } from "./slider-root.vue.js";
4
+ import { _default as _default$4 } from "./slider-track.vue.js";
5
+ import { _default as _default$1 } from "./slider-range.vue.js";
6
+ import { _default as _default$3 } from "./slider-thumb.vue.js";
6
7
  import { provideSliderUi } from "./context.js";
7
- export { _default as SliderRange, type SliderRangeProps, _default$1 as SliderRoot, type SliderRootContext, type SliderRootEmits, type SliderRootProps, type SliderSlideDirection, _default$2 as SliderThumb, type SliderThumbAlignment, type SliderThumbProps, _default$3 as SliderTrack, type SliderTrackProps, type SliderUi, type SliderUiSlot, provideSliderUi };
8
+ export { _default as SliderCompact, type SliderCompactEmits, type SliderCompactProps, type SliderCompactSlotProps, type SliderCompactSlots, _default$1 as SliderRange, type SliderRangeProps, _default$2 as SliderRoot, type SliderRootContext, type SliderRootEmits, type SliderRootProps, type SliderSlideDirection, _default$3 as SliderThumb, type SliderThumbAlignment, type SliderThumbProps, _default$4 as SliderTrack, type SliderTrackProps, type SliderUi, type SliderUiSlot, provideSliderUi };
@@ -1 +1 @@
1
- import{provideSliderUi as e}from"./context.js";import t from"./slider-root.js";import n from"./slider-track.js";import r from"./slider-range.js";import i from"./slider-thumb.js";export{r as SliderRange,t as SliderRoot,i as SliderThumb,n as SliderTrack,e as provideSliderUi};
1
+ import{provideSliderUi as e}from"./context.js";import t from"./slider-range.js";import n from"./slider-root.js";import r from"./slider-thumb.js";import i from"./slider-track.js";import a from"./slider-compact.js";export{a as SliderCompact,t as SliderRange,n as SliderRoot,r as SliderThumb,i as SliderTrack,e as provideSliderUi};
@@ -1 +1 @@
1
- import{clamp as e,snapValueToStep as t}from"../../shared/value.js";import"../../shared/index.js";const n=[0],r=[`PageUp`,`PageDown`],i=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],a={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageUp`,`ArrowUp`,`ArrowLeft`]};function o(e){return typeof e==`number`&&!Number.isNaN(e)?e:0}function s(e,t){return typeof e==`number`&&!Number.isNaN(e)&&e>t?e:Math.max(100,t+1)}function c(e){return typeof e==`number`&&!Number.isNaN(e)&&e>0?e:1}function l(e){return typeof e==`number`&&!Number.isNaN(e)&&e>=0?Math.floor(e):0}function u(e,t){return Array.isArray(e)&&e.length>0?e:t?.length?t:n}function d(e,n){return[...u(e,n.defaultValue)].map(e=>t(e,n.min,n.max,n.step)).sort((e,t)=>e-t)}function f(e,t){return e===t?!0:!e||!t||e.length!==t.length?!1:e.every((e,n)=>e===t[n])}function p(e,t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function m(e,t){if(e.length<=1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function h(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function g(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function _(e,t){if(t<=0)return!0;let n=g(e);return Math.min(...n)>=t}function v(t,n,r){let i=r-n;return i<=0?0:e((t-n)/i*100,0,100)}function y(e,t,n){let r=e/2;return(r-h([0,50],[0,r])(t)*n)*n}function b(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function x(e,t,n){return e===`vertical`?n?{startEdge:`top`,endEdge:`bottom`,slideDirection:`from-top`}:{startEdge:`bottom`,endEdge:`top`,slideDirection:`from-bottom`}:t===`ltr`&&!n||t===`rtl`&&n?{startEdge:`left`,endEdge:`right`,slideDirection:`from-left`}:{startEdge:`right`,endEdge:`left`,slideDirection:`from-right`}}function S(t,n,r){let i=r.orientation===`horizontal`?n.width:n.height;if(i<=0)return r.min;let a=e((r.orientation===`horizontal`?r.startEdge===`left`?t.clientX-n.left:n.right-t.clientX:r.startEdge===`bottom`?n.bottom-t.clientY:t.clientY-n.top)/i,0,1);return r.min+a*(r.max-r.min)}export{i as ARROW_KEYS,a as BACK_KEYS,r as PAGE_KEYS,v as convertValueToPercentage,m as getClosestValueIndex,p as getNextSortedValues,x as getSliderSideState,S as getSliderValueFromPointer,y as getThumbInBoundsOffset,b as getThumbLabel,l as getValidMinStepsBetweenThumbs,s as getValidSliderMax,o as getValidSliderMin,c as getValidSliderStep,_ as hasMinStepsBetweenValues,f as isSliderValuesEqual,d as normalizeSliderValues};
1
+ import{interpolate as e}from"../../shared/string.js";import{clamp as t,snapValueToStep as n}from"../../shared/value.js";import"../../shared/index.js";const r=[0],i=[`PageUp`,`PageDown`],a=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],o={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageUp`,`ArrowUp`,`ArrowLeft`]};function s(e){return typeof e==`number`&&!Number.isNaN(e)?e:0}function c(e,t){return typeof e==`number`&&!Number.isNaN(e)&&e>t?e:Math.max(100,t+1)}function l(e){return typeof e==`number`&&!Number.isNaN(e)&&e>0?e:1}function u(e){return typeof e==`number`&&!Number.isNaN(e)&&e>=0?Math.floor(e):0}function d(e,t){return Array.isArray(e)&&e.length>0?e:t?.length?t:r}function f(e,t){return[...d(e,t.defaultValue)].map(e=>n(e,t.min,t.max,t.step)).sort((e,t)=>e-t)}function p(e,t){return e===t?!0:!e||!t||e.length!==t.length?!1:e.every((e,n)=>e===t[n])}function m(e,t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function h(e,t){if(e.length<=1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function g(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function _(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function v(e,t){if(t<=0)return!0;let n=_(e);return Math.min(...n)>=t}function y(e,n,r){let i=r-n;return i<=0?0:t((e-n)/i*100,0,100)}function b(e,t,n){let r=e/2;return(r-g([0,50],[0,r])(t)*n)*n}function x(t,n,r){if(n>2)return e(r.valueN,{index:String(t+1),total:String(n)});if(n===2)return[r.minimum,r.maximum][t]}function S(e,t,n){return e===`vertical`?n?{startEdge:`top`,endEdge:`bottom`,slideDirection:`from-top`}:{startEdge:`bottom`,endEdge:`top`,slideDirection:`from-bottom`}:t===`ltr`&&!n||t===`rtl`&&n?{startEdge:`left`,endEdge:`right`,slideDirection:`from-left`}:{startEdge:`right`,endEdge:`left`,slideDirection:`from-right`}}function C(e,n,r){let i=r.orientation===`horizontal`?n.width:n.height;if(i<=0)return r.min;let a=t((r.orientation===`horizontal`?r.startEdge===`left`?e.clientX-n.left:n.right-e.clientX:r.startEdge===`bottom`?n.bottom-e.clientY:e.clientY-n.top)/i,0,1);return r.min+a*(r.max-r.min)}export{a as ARROW_KEYS,o as BACK_KEYS,i as PAGE_KEYS,y as convertValueToPercentage,h as getClosestValueIndex,m as getNextSortedValues,S as getSliderSideState,C as getSliderValueFromPointer,b as getThumbInBoundsOffset,x as getThumbLabel,u as getValidMinStepsBetweenThumbs,c as getValidSliderMax,s as getValidSliderMin,l as getValidSliderStep,v as hasMinStepsBetweenValues,p as isSliderValuesEqual,f as normalizeSliderValues};
@@ -0,0 +1 @@
1
+ import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./slider-range.js";import r from"./slider-root.js";import i from"./slider-thumb.js";import a from"./slider-track.js";import{Fragment as o,createBlock as s,createElementBlock as c,createVNode as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,toHandlers as _,unref as v,withCtx as y}from"vue";const b=u({name:`SliderCompact`,__name:`slider-compact`,props:{trackProps:{},rangeProps:{},thumbProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`valueCommit`],setup(u,{emit:b}){let x=u,S=b,C=t(x,[`trackProps`,`rangeProps`,`thumbProps`]),w=e(S);return(e,t)=>(m(),s(r,f(v(C),_(v(w))),{default:y(({modelValue:t})=>[l(a,p(d(u.trackProps)),{default:y(()=>[l(n,p(d(u.rangeProps)),null,16)]),_:1},16),(m(!0),c(o,null,h(t,(n,r)=>(m(),s(i,f({key:`${r}-${n}`},{ref_for:!0},u.thumbProps,{index:r}),{default:y(()=>[g(e.$slots,`default`,{index:r,modelValue:t,value:n})]),_:2},1040,[`index`]))),128))]),_:3},16))}});export{b as default};
@@ -0,0 +1,21 @@
1
+ import { SliderCompactProps, SliderCompactSlots } from "./types.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/slider/slider-compact.vue.d.ts
5
+ type __VLS_Slots = SliderCompactSlots;
6
+ declare const __VLS_base: _$vue.DefineComponent<SliderCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
7
+ "update:modelValue": (value: number[]) => any;
8
+ valueCommit: (value: number[]) => any;
9
+ }, string, _$vue.PublicProps, Readonly<SliderCompactProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
11
+ onValueCommit?: ((value: number[]) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
+ //#endregion
21
+ export { _default };
@@ -1 +1 @@
1
- import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useSliderRootContext as t,useSliderUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,normalizeStyle as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";const f=a({name:`SliderRange`,__name:`slider-range`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(a){let f=n(`range`),{currentModelValue:p,disabled:m,orientation:h,startEdge:g,endEdge:_,getPercentage:v}=t(`SliderRange`),y=r(()=>p.value.map(e=>v(e))),b=r(()=>p.value.length>1?Math.min(...y.value):0),x=r(()=>100-Math.max(...y.value,0)),S=r(()=>({[g.value]:`${b.value}%`,[_.value]:`${x.value}%`}));return(t,n)=>(c(),i(u(e),{as:a.as,"as-child":a.asChild,class:o(u(f)),"data-disabled":u(m)?``:void 0,"data-orientation":u(h),style:s(S.value)},{default:d(()=>[l(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-orientation`,`style`]))}});export{f as default};
1
+ import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useSliderRootContext as t,useSliderUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,normalizeStyle as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";const f=a({name:`SliderRange`,__name:`slider-range`,props:{asChild:{type:Boolean},as:{}},setup(a){let f=n(`range`),{currentModelValue:p,disabled:m,orientation:h,startEdge:g,endEdge:_,getPercentage:v}=t(`SliderRange`),y=r(()=>p.value.map(e=>v(e))),b=r(()=>p.value.length>1?Math.min(...y.value):0),x=r(()=>100-Math.max(...y.value,0)),S=r(()=>({[g.value]:`${b.value}%`,[_.value]:`${x.value}%`}));return(t,n)=>(c(),i(u(e),{as:a.as,"as-child":a.asChild,"data-soybean-slider-range":``,class:o(u(f)),"data-disabled":u(m)?``:void 0,"data-orientation":u(h),style:s(S.value)},{default:d(()=>[l(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-orientation`,`style`]))}});export{f as default};
@@ -1,4 +1,3 @@
1
- import { AsTag } from "../primitive/types.js";
2
1
  import { SliderRangeProps } from "./types.js";
3
2
  import * as _$vue from "vue";
4
3
 
@@ -7,9 +6,7 @@ declare var __VLS_8: {};
7
6
  type __VLS_Slots = {} & {
8
7
  default?: (props: typeof __VLS_8) => any;
9
8
  };
10
- declare const __VLS_base: _$vue.DefineComponent<SliderRangeProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SliderRangeProps> & Readonly<{}>, {
11
- as: AsTag | _$vue.Component;
12
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: _$vue.DefineComponent<SliderRangeProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SliderRangeProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
11
  declare const _default: typeof __VLS_export;
15
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{snapValueToStep as e}from"../../shared/value.js";import{isFormControl as t}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as n}from"../../composables/use-controllable-state.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useDirection as i}from"../config-provider/context.js";import{Primitive as a}from"../primitive/primitive.js";import"../primitive/index.js";import o from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideSliderRootContext as ee,useSliderUi as te}from"./context.js";import{ARROW_KEYS as s,BACK_KEYS as ne,PAGE_KEYS as c,convertValueToPercentage as re,getClosestValueIndex as ie,getNextSortedValues as ae,getSliderSideState as oe,getSliderValueFromPointer as se,getThumbLabel as ce,getValidMinStepsBetweenThumbs as le,getValidSliderMax as ue,getValidSliderMin as de,getValidSliderStep as fe,hasMinStepsBetweenValues as pe,isSliderValuesEqual as l,normalizeSliderValues as me}from"./shared.js";import{computed as u,createBlock as d,createCommentVNode as he,defineComponent as f,nextTick as ge,normalizeClass as _e,onBeforeUnmount as ve,openBlock as p,renderSlot as ye,shallowRef as m,unref as h,watch as g,withCtx as be}from"vue";const _=f({name:`SliderRoot`,__name:`slider-root`,props:{modelValue:{default:void 0},defaultValue:{default:()=>[0]},disabled:{type:Boolean,default:!1},orientation:{default:`horizontal`},dir:{default:void 0},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},thumbAlignment:{default:`contain`},asChild:{type:Boolean},as:{default:`div`},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`valueCommit`],setup(f,{emit:_}){let v=f,y=_,[xe,Se]=r(),Ce=te(`root`),b=n(()=>v.modelValue,e=>{y(`update:modelValue`,e??[])},v.defaultValue),x=i(()=>v.dir),S=u(()=>v.disabled),we=u(()=>S.value?``:void 0),C=u(()=>v.orientation===`vertical`?`vertical`:`horizontal`),w=u(()=>v.inverted),T=u(()=>de(v.min)),E=u(()=>ue(v.max,T.value)),D=u(()=>fe(v.step)),O=u(()=>le(v.minStepsBetweenThumbs)),Te=u(()=>v.thumbAlignment===`overflow`?`overflow`:`contain`),k=u(()=>me(b.value,{defaultValue:v.defaultValue,min:T.value,max:E.value,step:D.value})),A=m(),j=u(()=>A.value??k.value),Ee=u(()=>t(xe.value)),De=u(()=>C.value===`horizontal`),M=u(()=>oe(C.value,x.value,w.value)),N=u(()=>M.value.startEdge),Oe=u(()=>M.value.endEdge),P=u(()=>M.value.slideDirection),F=m(0),I=m(),L=m([]),R=m(0),z=m(null),B=m(j.value);function ke(e){I.value!==e&&(I.value=e)}function Ae(e,t){if(L.value[e]===t)return;let n=[...L.value];n[e]=t,L.value=n}function je(e){return re(e,T.value,E.value)}function V(e){ge(()=>{L.value[e]?.focus()})}function H(e){return ie(j.value,e)}function U(e){return z.value===e}let W=null;function G(){W?.(),W=null}function K(e){G();let t=e=>{X(e)},n=e=>{Z(e.pointerId)};e.addEventListener(`pointermove`,t),e.addEventListener(`pointerup`,n),e.addEventListener(`pointercancel`,n),W=()=>{e.removeEventListener(`pointermove`,t),e.removeEventListener(`pointerup`,n),e.removeEventListener(`pointercancel`,n)}}function q(){let e=A.value??j.value;l(B.value,e)||y(`valueCommit`,[...e])}function J(t,n,r={}){let i=e(t,T.value,E.value,D.value),a=ae(j.value,i,n);if(!pe(a,O.value*D.value))return;let o=a.indexOf(i);if(F.value=o,l(a,j.value)){r.focus&&V(o),r.commit&&q();return}A.value=a,b.value=a,r.focus&&V(o),r.commit&&(y(`valueCommit`,[...a]),B.value=a,A.value=void 0)}function Y(e){return I.value?se(e,I.value.getBoundingClientRect(),{min:T.value,max:E.value,orientation:C.value,startEdge:N.value}):null}function Me(e){let t=Y(e);S.value||t===null||(z.value=e.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],R.value=0,J(t,H(t),{focus:!0}))}function Ne(e,t){if(S.value)return;z.value=t.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],F.value=e,V(e);let n=Y(t);R.value=n===null?0:j.value[e]-n}function X(e){let t=Y(e);S.value||t===null||!U(e.pointerId)||J(t+R.value,F.value)}function Z(e){if(S.value||typeof e==`number`&&!U(e))return;let t=A.value??j.value;z.value=null,G(),R.value=0,q(),B.value=[...t],A.value=void 0}function Q(e,t,n=1){let r=j.value[e];S.value||typeof r!=`number`||J(r+D.value*t*n,e,{commit:!0,focus:!0})}function $(e,t){J(t===`min`?T.value:E.value,e,{commit:!0,focus:!0})}function Pe(e){if(S.value||typeof F.value!=`number`)return;if(e.key===`Home`){e.preventDefault(),$(F.value,`min`);return}if(e.key===`End`){e.preventDefault(),$(F.value,`max`);return}if(!c.concat(s).includes(e.key))return;e.preventDefault();let t=ne[P.value].includes(e.key),n=c.includes(e.key)||e.shiftKey&&s.includes(e.key)?10:1;Q(F.value,t?-1:1,n)}return ee({modelValue:b,currentModelValue:j,disabled:S,orientation:C,dir:x,inverted:w,min:T,max:E,step:D,minStepsBetweenThumbs:O,thumbAlignment:Te,isHorizontal:De,startEdge:N,endEdge:Oe,slideDirection:P,activeThumbIndex:F,trackElement:I,thumbElements:L,setTrackElement:ke,setThumbElement:Ae,getPercentage:je,getClosestValueIndex:H,getThumbLabel:e=>ce(e,j.value.length),beginTrackDrag:Me,beginThumbDrag:Ne,moveDrag:X,endDrag:Z,stepValue:Q,setToLimit:$}),g(k,e=>{l(e,b.value)||(b.value=e),A.value&&l(e,A.value)&&(A.value=void 0)},{immediate:!0}),g(()=>j.value.length,e=>{L.value=L.value.slice(0,e)}),ve(()=>{G()}),(e,t)=>(p(),d(h(a),{ref:h(Se),as:f.as,"as-child":f.asChild,class:_e(h(Ce)),dir:h(x),"data-disabled":we.value,"data-orientation":C.value,onKeydown:Pe},{default:be(()=>[ye(e.$slots,`default`,{modelValue:j.value}),Ee.value&&f.name?(p(),d(h(o),{key:0,type:`number`,name:f.name,value:j.value,disabled:S.value,required:f.required},null,8,[`name`,`value`,`disabled`,`required`])):he(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`class`,`dir`,`data-disabled`,`data-orientation`]))}});export{_ as default};
1
+ import{snapValueToStep as e}from"../../shared/value.js";import{isFormControl as t}from"../../shared/vue.js";import{useDirection as n}from"../config-provider/context.js";import{useLocaleMessages as r}from"../../locale/hooks.js";import"../../locale/index.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import ee from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideSliderRootContext as te,useSliderUi as ne}from"./context.js";import{ARROW_KEYS as s,BACK_KEYS as re,PAGE_KEYS as c,convertValueToPercentage as ie,getClosestValueIndex as ae,getNextSortedValues as oe,getSliderSideState as se,getSliderValueFromPointer as ce,getThumbLabel as le,getValidMinStepsBetweenThumbs as ue,getValidSliderMax as de,getValidSliderMin as fe,getValidSliderStep as pe,hasMinStepsBetweenValues as me,isSliderValuesEqual as l,normalizeSliderValues as he}from"./shared.js";import{computed as u,createBlock as d,createCommentVNode as ge,defineComponent as f,nextTick as _e,normalizeClass as ve,onBeforeUnmount as ye,openBlock as p,renderSlot as be,shallowRef as m,unref as h,watch as g,withCtx as xe}from"vue";const _=f({name:`SliderRoot`,__name:`slider-root`,props:{modelValue:{default:void 0},defaultValue:{default:()=>[0]},disabled:{type:Boolean,default:!1},orientation:{default:`horizontal`},dir:{default:void 0},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},thumbAlignment:{default:`contain`},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`valueCommit`],setup(f,{emit:_}){let v=f,y=_,[Se,Ce]=a(),we=ne(`root`),Te=r(),b=i(()=>v.modelValue,e=>{y(`update:modelValue`,e)},v.defaultValue),x=n(()=>v.dir),S=u(()=>v.disabled),Ee=u(()=>S.value?``:void 0),C=u(()=>v.orientation===`vertical`?`vertical`:`horizontal`),w=u(()=>v.inverted),T=u(()=>fe(v.min)),E=u(()=>de(v.max,T.value)),D=u(()=>pe(v.step)),O=u(()=>ue(v.minStepsBetweenThumbs)),De=u(()=>v.thumbAlignment===`overflow`?`overflow`:`contain`),k=u(()=>he(b.value,{defaultValue:v.defaultValue,min:T.value,max:E.value,step:D.value})),A=m(),j=u(()=>A.value??k.value),Oe=u(()=>t(Se.value)),ke=u(()=>C.value===`horizontal`),M=u(()=>se(C.value,x.value,w.value)),N=u(()=>M.value.startEdge),Ae=u(()=>M.value.endEdge),P=u(()=>M.value.slideDirection),F=m(0),I=m(),L=m([]),R=m(0),z=m(null),B=m(j.value);function je(e){I.value!==e&&(I.value=e)}function Me(e,t){if(L.value[e]===t)return;let n=[...L.value];n[e]=t,L.value=n}function Ne(e){return ie(e,T.value,E.value)}function V(e){_e(()=>{L.value[e]?.focus()})}function H(e){return ae(j.value,e)}function U(e){return z.value===e}let W=null;function G(){W?.(),W=null}function K(e){G();let t=e=>{X(e)},n=e=>{Z(e.pointerId)};e.addEventListener(`pointermove`,t),e.addEventListener(`pointerup`,n),e.addEventListener(`pointercancel`,n),W=()=>{e.removeEventListener(`pointermove`,t),e.removeEventListener(`pointerup`,n),e.removeEventListener(`pointercancel`,n)}}function q(){let e=A.value??j.value;l(B.value,e)||y(`valueCommit`,[...e])}function J(t,n,r={}){let i=e(t,T.value,E.value,D.value),a=oe(j.value,i,n);if(!me(a,O.value*D.value))return;let o=a.indexOf(i);if(F.value=o,l(a,j.value)){r.focus&&V(o),r.commit&&q();return}A.value=a,b.value=a,r.focus&&V(o),r.commit&&(y(`valueCommit`,[...a]),B.value=a,A.value=void 0)}function Y(e){return I.value?ce(e,I.value.getBoundingClientRect(),{min:T.value,max:E.value,orientation:C.value,startEdge:N.value}):null}function Pe(e){let t=Y(e);S.value||t===null||(z.value=e.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],R.value=0,J(t,H(t),{focus:!0}))}function Fe(e,t){if(S.value)return;z.value=t.pointerId,I.value?.ownerDocument&&K(I.value.ownerDocument),B.value=[...j.value],F.value=e,V(e);let n=Y(t);R.value=n===null?0:j.value[e]-n}function X(e){let t=Y(e);S.value||t===null||!U(e.pointerId)||J(t+R.value,F.value)}function Z(e){if(S.value||typeof e==`number`&&!U(e))return;let t=A.value??j.value;z.value=null,G(),R.value=0,q(),B.value=[...t],A.value=void 0}function Q(e,t,n=1){let r=j.value[e];S.value||typeof r!=`number`||J(r+D.value*t*n,e,{commit:!0,focus:!0})}function $(e,t){J(t===`min`?T.value:E.value,e,{commit:!0,focus:!0})}function Ie(e){if(S.value||typeof F.value!=`number`)return;if(e.key===`Home`){e.preventDefault(),$(F.value,`min`);return}if(e.key===`End`){e.preventDefault(),$(F.value,`max`);return}if(!c.concat(s).includes(e.key))return;e.preventDefault();let t=re[P.value].includes(e.key),n=c.includes(e.key)||e.shiftKey&&s.includes(e.key)?10:1;Q(F.value,t?-1:1,n)}return te({modelValue:b,currentModelValue:j,disabled:S,orientation:C,dir:x,inverted:w,min:T,max:E,step:D,minStepsBetweenThumbs:O,thumbAlignment:De,isHorizontal:ke,startEdge:N,endEdge:Ae,slideDirection:P,activeThumbIndex:F,trackElement:I,thumbElements:L,setTrackElement:je,setThumbElement:Me,getPercentage:Ne,getClosestValueIndex:H,getThumbLabel:e=>le(e,j.value.length,Te.value.slider),beginTrackDrag:Pe,beginThumbDrag:Fe,moveDrag:X,endDrag:Z,stepValue:Q,setToLimit:$}),g(k,e=>{l(e,b.value)||(b.value=e),A.value&&l(e,A.value)&&(A.value=void 0)},{immediate:!0}),g(()=>j.value.length,e=>{L.value=L.value.slice(0,e)}),ye(()=>{G()}),(e,t)=>(p(),d(h(o),{ref:h(Ce),as:f.as,"as-child":f.asChild,"data-soybean-slider-root":``,class:ve(h(we)),dir:h(x),"data-disabled":Ee.value,"data-orientation":C.value,onKeydown:Ie},{default:xe(()=>[be(e.$slots,`default`,{modelValue:j.value}),Oe.value&&f.name?(p(),d(h(ee),{key:0,type:`number`,name:f.name,value:j.value,disabled:S.value,required:f.required},null,8,[`name`,`value`,`disabled`,`required`])):ge(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`class`,`dir`,`data-disabled`,`data-orientation`]))}});export{_ as default};
@@ -1,5 +1,4 @@
1
1
  import { DataOrientation, Direction } from "../../types/common.js";
2
- import { AsTag } from "../primitive/types.js";
3
2
  import { SliderRootProps, SliderThumbAlignment } from "./types.js";
4
3
  import * as _$vue from "vue";
5
4
 
@@ -22,11 +21,10 @@ declare const __VLS_base: _$vue.DefineComponent<SliderRootProps, {}, {}, {}, {},
22
21
  max: number;
23
22
  min: number;
24
23
  orientation: DataOrientation;
25
- as: AsTag | _$vue.Component;
26
24
  step: number;
27
- inverted: boolean;
28
25
  modelValue: number[];
29
26
  defaultValue: number[];
27
+ inverted: boolean;
30
28
  minStepsBetweenThumbs: number;
31
29
  thumbAlignment: SliderThumbAlignment;
32
30
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useSliderRootContext as n,useSliderUi as r}from"./context.js";import{getThumbInBoundsOffset as i}from"./shared.js";import{computed as a,createBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,renderSlot as d,unref as f,useAttrs as p,withCtx as m}from"vue";import{useElementSize as h}from"@vueuse/core";const g=s({name:`SliderThumb`,__name:`slider-thumb`,props:{index:{},asChild:{type:Boolean},as:{default:`div`}},setup(s){let g=s,_=p(),v=r(`thumb`),{currentModelValue:y,disabled:b,orientation:x,min:S,max:C,startEdge:w,isHorizontal:T,thumbAlignment:E,activeThumbIndex:D,getPercentage:O,getThumbLabel:k,setThumbElement:A,beginThumbDrag:j}=n(`SliderThumb`),[M,N]=e(e=>{A(g.index,e)}),{width:P,height:F}=h(M),I=a(()=>y.value[g.index]),L=a(()=>O(I.value??S.value)),R=a(()=>k(g.index)),z=a(()=>{let e=_[`aria-label`];return typeof e==`string`?e:R.value});function B(e,t){return e?`${t===`right`&&E.value===`overflow`?`translateX(50%)`:`translateX(-50%)`} translateY(-50%)`:`translateX(-50%) ${t===`top`&&E.value===`overflow`?`translateY(-50%)`:`translateY(50%)`}`}let V=a(()=>{if(E.value===`overflow`)return 0;let e=T.value?P.value:F.value;if(!e)return 0;let t=T.value?w.value===`left`?1:-1:w.value===`bottom`?1:-1;return i(e,L.value,t)}),H=a(()=>{let e=B(T.value,w.value);return{position:`absolute`,...T.value?{top:`50%`}:{left:`50%`},[w.value]:`calc(${L.value}% + ${V.value}px)`,transform:e}});function U(e){b.value||(e.preventDefault(),e.stopPropagation(),e.currentTarget.focus(),j(g.index,e))}function W(){D.value=g.index}return(e,n)=>(u(),o(f(t),{ref:f(N),as:s.as,"as-child":s.asChild,class:c(f(v)),"data-disabled":f(b)?``:void 0,"data-orientation":f(x),"aria-disabled":f(b)||void 0,"aria-label":z.value,"aria-valuenow":I.value,"aria-valuemin":f(S),"aria-valuemax":f(C),"aria-orientation":f(x),tabindex:f(b)?void 0:0,role:`slider`,style:l(H.value),onFocus:W,onPointerdown:U},{default:m(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-orientation`,`aria-disabled`,`aria-label`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`,`aria-orientation`,`tabindex`,`style`]))}});export{g as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useSliderRootContext as n,useSliderUi as r}from"./context.js";import{getThumbInBoundsOffset as i}from"./shared.js";import{computed as a,createBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,renderSlot as d,unref as f,useAttrs as p,withCtx as m}from"vue";import{useElementSize as h}from"@vueuse/core";const g=s({name:`SliderThumb`,__name:`slider-thumb`,props:{index:{},asChild:{type:Boolean},as:{}},setup(s){let g=s,_=p(),v=r(`thumb`),{currentModelValue:y,disabled:b,orientation:x,min:S,max:C,startEdge:w,isHorizontal:T,thumbAlignment:E,activeThumbIndex:D,getPercentage:O,getThumbLabel:k,setThumbElement:A,beginThumbDrag:j}=n(`SliderThumb`),[M,N]=e(e=>{A(g.index,e)}),{width:P,height:F}=h(M),I=a(()=>y.value[g.index]),L=a(()=>O(I.value??S.value)),R=a(()=>k(g.index)),z=a(()=>{let e=_[`aria-label`];return typeof e==`string`?e:R.value});function B(e,t){return e?`${t===`right`&&E.value===`overflow`?`translateX(50%)`:`translateX(-50%)`} translateY(-50%)`:`translateX(-50%) ${t===`top`&&E.value===`overflow`?`translateY(-50%)`:`translateY(50%)`}`}let V=a(()=>{if(E.value===`overflow`)return 0;let e=T.value?P.value:F.value;if(!e)return 0;let t=T.value?w.value===`left`?1:-1:w.value===`bottom`?1:-1;return i(e,L.value,t)}),H=a(()=>{let e=B(T.value,w.value);return{position:`absolute`,...T.value?{top:`50%`}:{left:`50%`},[w.value]:`calc(${L.value}% + ${V.value}px)`,transform:e}});function U(e){b.value||(e.preventDefault(),e.stopPropagation(),e.currentTarget.focus(),j(g.index,e))}function W(){D.value=g.index}return(e,n)=>(u(),o(f(t),{ref:f(N),as:s.as,"as-child":s.asChild,"data-soybean-slider-thumb":``,class:c(f(v)),"data-disabled":f(b)?``:void 0,"data-orientation":f(x),"aria-disabled":f(b)||void 0,"aria-label":z.value,"aria-valuenow":I.value,"aria-valuemin":f(S),"aria-valuemax":f(C),"aria-orientation":f(x),tabindex:f(b)?void 0:0,role:`slider`,style:l(H.value),onFocus:W,onPointerdown:U},{default:m(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-orientation`,`aria-disabled`,`aria-label`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`,`aria-orientation`,`tabindex`,`style`]))}});export{g as default};
@@ -1,4 +1,3 @@
1
- import { AsTag } from "../primitive/types.js";
2
1
  import { SliderThumbProps } from "./types.js";
3
2
  import * as _$vue from "vue";
4
3
 
@@ -7,9 +6,7 @@ declare var __VLS_11: {};
7
6
  type __VLS_Slots = {} & {
8
7
  default?: (props: typeof __VLS_11) => any;
9
8
  };
10
- declare const __VLS_base: _$vue.DefineComponent<SliderThumbProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SliderThumbProps> & Readonly<{}>, {
11
- as: AsTag | _$vue.Component;
12
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: _$vue.DefineComponent<SliderThumbProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<SliderThumbProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
11
  declare const _default: typeof __VLS_export;
15
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useSliderRootContext as n,useSliderUi as r}from"./context.js";import{createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`SliderTrack`,__name:`slider-track`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(a){let d=r(`track`),{disabled:f,orientation:p,setTrackElement:m,beginTrackDrag:h}=n(`SliderTrack`),g=e(e=>{m(e)})[1];function _(e){f.value||(e.preventDefault(),h(e))}return(e,n)=>(s(),i(l(t),{ref:l(g),as:a.as,"as-child":a.asChild,class:o(l(d)),"data-disabled":l(f)?``:void 0,"data-orientation":l(p),onPointerdown:_},{default:u(()=>[c(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-orientation`]))}});export{d as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useSliderRootContext as n,useSliderUi as r}from"./context.js";import{createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`SliderTrack`,__name:`slider-track`,props:{asChild:{type:Boolean},as:{}},setup(a){let d=r(`track`),{disabled:f,orientation:p,setTrackElement:m,beginTrackDrag:h}=n(`SliderTrack`),g=e(e=>{m(e)})[1];function _(e){f.value||(e.preventDefault(),h(e))}return(e,n)=>(s(),i(l(t),{ref:l(g),as:a.as,"as-child":a.asChild,"data-soybean-slider-track":``,class:o(l(d)),"data-disabled":l(f)?``:void 0,"data-orientation":l(p),onPointerdown:_},{default:u(()=>[c(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-orientation`]))}});export{d as default};