@soybeanjs/headless 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (985) hide show
  1. package/dist/components/_icon/types.d.ts +1 -10
  2. package/dist/components/accordion/accordion-content.js +1 -1
  3. package/dist/components/accordion/accordion-description.js +1 -1
  4. package/dist/components/accordion/accordion-header.js +1 -1
  5. package/dist/components/accordion/accordion-item.js +1 -1
  6. package/dist/components/accordion/accordion-root.js +1 -1
  7. package/dist/components/accordion/accordion-trigger.js +1 -1
  8. package/dist/components/accordion/context.js +1 -1
  9. package/dist/components/accordion/types.d.ts +6 -5
  10. package/dist/components/affix/affix-content.js +1 -1
  11. package/dist/components/affix/affix-placeholder.js +1 -1
  12. package/dist/components/affix/affix-root.js +1 -1
  13. package/dist/components/affix/types.d.ts +5 -4
  14. package/dist/components/alert/alert-close.js +1 -1
  15. package/dist/components/alert/alert-close.vue.d.ts +5 -4
  16. package/dist/components/alert/alert-compact.js +1 -1
  17. package/dist/components/alert/alert-compact.vue.d.ts +2 -0
  18. package/dist/components/alert/alert-content.js +1 -1
  19. package/dist/components/alert/alert-description.js +1 -1
  20. package/dist/components/alert/alert-root.js +1 -1
  21. package/dist/components/alert/alert-title.js +1 -1
  22. package/dist/components/alert/types.d.ts +16 -9
  23. package/dist/components/anchor/anchor-link.js +1 -1
  24. package/dist/components/anchor/anchor-root.js +1 -1
  25. package/dist/components/anchor/anchor-root.vue.d.ts +2 -2
  26. package/dist/components/anchor/context.js +1 -1
  27. package/dist/components/anchor/types.d.ts +5 -4
  28. package/dist/components/arrow/arrow.js +1 -1
  29. package/dist/components/arrow/types.d.ts +2 -1
  30. package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
  31. package/dist/components/aspect-ratio/types.d.ts +2 -3
  32. package/dist/components/autocomplete/autocomplete-compact.js +1 -1
  33. package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
  34. package/dist/components/autocomplete/autocomplete-input.js +1 -1
  35. package/dist/components/autocomplete/autocomplete-root.js +1 -1
  36. package/dist/components/autocomplete/autocomplete-root.vue.d.ts +4 -4
  37. package/dist/components/autocomplete/types.d.ts +4 -3
  38. package/dist/components/avatar/avatar-fallback.js +1 -1
  39. package/dist/components/avatar/avatar-image.js +1 -1
  40. package/dist/components/avatar/avatar-root.js +1 -1
  41. package/dist/components/avatar/types.d.ts +5 -4
  42. package/dist/components/backtop/backtop.js +1 -1
  43. package/dist/components/backtop/backtop.vue.d.ts +2 -6
  44. package/dist/components/backtop/types.d.ts +2 -2
  45. package/dist/components/badge/badge-content.js +1 -1
  46. package/dist/components/badge/badge-root.js +1 -1
  47. package/dist/components/badge/types.d.ts +4 -3
  48. package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
  49. package/dist/components/bottom-sheet/bottom-sheet-popup.js +1 -1
  50. package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
  51. package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
  52. package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
  53. package/dist/components/bottom-sheet/context.js +1 -1
  54. package/dist/components/bottom-sheet/types.d.ts +3 -2
  55. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  56. package/dist/components/breadcrumb/breadcrumb-item.js +1 -1
  57. package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
  58. package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
  59. package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
  60. package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
  61. package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
  62. package/dist/components/breadcrumb/types.d.ts +8 -8
  63. package/dist/components/button/button.js +1 -1
  64. package/dist/components/button/types.d.ts +3 -2
  65. package/dist/components/calendar/calendar-cell-trigger.js +1 -1
  66. package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +3 -16
  67. package/dist/components/calendar/calendar-cell.js +1 -1
  68. package/dist/components/calendar/calendar-compact.js +1 -1
  69. package/dist/components/calendar/calendar-compact.vue.d.ts +3 -3
  70. package/dist/components/calendar/calendar-grid-body.js +1 -1
  71. package/dist/components/calendar/calendar-grid-head.js +1 -1
  72. package/dist/components/calendar/calendar-grid-row.js +1 -1
  73. package/dist/components/calendar/calendar-grid.js +1 -1
  74. package/dist/components/calendar/calendar-head-cell.js +1 -1
  75. package/dist/components/calendar/calendar-header.js +1 -1
  76. package/dist/components/calendar/calendar-header.vue.d.ts +1 -4
  77. package/dist/components/calendar/calendar-heading.js +1 -1
  78. package/dist/components/calendar/calendar-heading.vue.d.ts +6 -8
  79. package/dist/components/calendar/calendar-next.js +1 -1
  80. package/dist/components/calendar/calendar-next.vue.d.ts +6 -10
  81. package/dist/components/calendar/calendar-prev.js +1 -1
  82. package/dist/components/calendar/calendar-prev.vue.d.ts +6 -10
  83. package/dist/components/calendar/calendar-root.js +1 -1
  84. package/dist/components/calendar/calendar-root.vue.d.ts +2 -4
  85. package/dist/components/calendar/index.d.ts +2 -2
  86. package/dist/components/calendar/shared.js +1 -0
  87. package/dist/components/calendar/types.d.ts +119 -202
  88. package/dist/components/calendar/use-calendar.js +1 -1
  89. package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -0
  90. package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +15 -0
  91. package/dist/components/calendar-range/calendar-range-cell.js +1 -0
  92. package/dist/components/{range-calendar/range-calendar-cell.vue.d.ts → calendar-range/calendar-range-cell.vue.d.ts} +3 -3
  93. package/dist/components/calendar-range/calendar-range-compact.js +1 -0
  94. package/dist/components/{range-calendar/range-calendar-compact.vue.d.ts → calendar-range/calendar-range-compact.vue.d.ts} +5 -5
  95. package/dist/components/calendar-range/calendar-range-grid-body.js +1 -0
  96. package/dist/components/{range-calendar/range-calendar-grid-body.vue.d.ts → calendar-range/calendar-range-grid-body.vue.d.ts} +3 -3
  97. package/dist/components/calendar-range/calendar-range-grid-head.js +1 -0
  98. package/dist/components/{range-calendar/range-calendar-grid-head.vue.d.ts → calendar-range/calendar-range-grid-head.vue.d.ts} +3 -3
  99. package/dist/components/calendar-range/calendar-range-grid-row.js +1 -0
  100. package/dist/components/{range-calendar/range-calendar-grid-row.vue.d.ts → calendar-range/calendar-range-grid-row.vue.d.ts} +3 -3
  101. package/dist/components/calendar-range/calendar-range-grid.js +1 -0
  102. package/dist/components/{range-calendar/range-calendar-grid.vue.d.ts → calendar-range/calendar-range-grid.vue.d.ts} +3 -3
  103. package/dist/components/calendar-range/calendar-range-head-cell.js +1 -0
  104. package/dist/components/{range-calendar/range-calendar-head-cell.vue.d.ts → calendar-range/calendar-range-head-cell.vue.d.ts} +3 -3
  105. package/dist/components/calendar-range/calendar-range-header.js +1 -0
  106. package/dist/components/calendar-range/calendar-range-header.vue.d.ts +18 -0
  107. package/dist/components/calendar-range/calendar-range-heading.js +1 -0
  108. package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +20 -0
  109. package/dist/components/calendar-range/calendar-range-next.js +1 -0
  110. package/dist/components/calendar-range/calendar-range-next.vue.d.ts +20 -0
  111. package/dist/components/calendar-range/calendar-range-prev.js +1 -0
  112. package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +20 -0
  113. package/dist/components/calendar-range/calendar-range-root.js +1 -0
  114. package/dist/components/{range-calendar/range-calendar-root.vue.d.ts → calendar-range/calendar-range-root.vue.d.ts} +12 -24
  115. package/dist/components/calendar-range/context.d.ts +9 -0
  116. package/dist/components/calendar-range/context.js +1 -0
  117. package/dist/components/calendar-range/index.d.ts +16 -0
  118. package/dist/components/calendar-range/index.js +1 -0
  119. package/dist/components/calendar-range/types.d.ts +471 -0
  120. package/dist/components/{range-calendar/use-range-calendar.js → calendar-range/use-calendar-range.js} +1 -1
  121. package/dist/components/card/card-collapsible-trigger.js +1 -1
  122. package/dist/components/card/card-content.js +1 -1
  123. package/dist/components/card/card-description.js +1 -1
  124. package/dist/components/card/card-footer.js +1 -1
  125. package/dist/components/card/card-header.js +1 -1
  126. package/dist/components/card/card-root.js +1 -1
  127. package/dist/components/card/card-root.vue.d.ts +1 -1
  128. package/dist/components/card/card-title-root.js +1 -1
  129. package/dist/components/card/card-title.js +1 -1
  130. package/dist/components/card/types.d.ts +8 -8
  131. package/dist/components/carousel/carousel-container.js +1 -1
  132. package/dist/components/carousel/carousel-content.js +1 -1
  133. package/dist/components/carousel/carousel-control.js +1 -1
  134. package/dist/components/carousel/carousel-item.js +1 -1
  135. package/dist/components/carousel/carousel-navigation.js +1 -1
  136. package/dist/components/carousel/carousel-next.js +1 -1
  137. package/dist/components/carousel/carousel-previous.js +1 -1
  138. package/dist/components/carousel/carousel-root.js +1 -1
  139. package/dist/components/carousel/types.d.ts +8 -7
  140. package/dist/components/checkbox/checkbox-card-compact.js +1 -1
  141. package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
  142. package/dist/components/checkbox/checkbox-compact.vue.d.ts +2 -2
  143. package/dist/components/checkbox/checkbox-control.js +1 -1
  144. package/dist/components/checkbox/checkbox-group-compact.js +1 -1
  145. package/dist/components/checkbox/checkbox-group-root.js +1 -1
  146. package/dist/components/checkbox/checkbox-indicator.js +1 -1
  147. package/dist/components/checkbox/checkbox-label.js +1 -1
  148. package/dist/components/checkbox/checkbox-root.js +1 -1
  149. package/dist/components/checkbox/checkbox-root.vue.d.ts +2 -2
  150. package/dist/components/checkbox/context.js +1 -1
  151. package/dist/components/checkbox/types.d.ts +8 -6
  152. package/dist/components/clipboard/clipboard.js +1 -1
  153. package/dist/components/clipboard/clipboard.vue.d.ts +5 -5
  154. package/dist/components/clipboard/types.d.ts +1 -1
  155. package/dist/components/collapsible/collapsible-content.js +1 -1
  156. package/dist/components/collapsible/collapsible-root.js +1 -1
  157. package/dist/components/collapsible/collapsible-root.vue.d.ts +3 -3
  158. package/dist/components/collapsible/collapsible-trigger.js +1 -1
  159. package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -4
  160. package/dist/components/collapsible/context.js +1 -1
  161. package/dist/components/collapsible/types.d.ts +6 -5
  162. package/dist/components/color-area/color-area-area.js +1 -1
  163. package/dist/components/color-area/color-area-area.vue.d.ts +1 -4
  164. package/dist/components/color-area/color-area-compact.js +1 -0
  165. package/dist/components/color-area/color-area-compact.vue.d.ts +19 -0
  166. package/dist/components/color-area/color-area-root.js +1 -1
  167. package/dist/components/color-area/color-area-root.vue.d.ts +4 -6
  168. package/dist/components/color-area/color-area-thumb.js +1 -1
  169. package/dist/components/color-area/index.d.ts +5 -4
  170. package/dist/components/color-area/index.js +1 -1
  171. package/dist/components/color-area/types.d.ts +24 -7
  172. package/dist/components/color-field/color-field-compact.js +1 -0
  173. package/dist/components/color-field/color-field-compact.vue.d.ts +15 -0
  174. package/dist/components/color-field/color-field-input.js +1 -1
  175. package/dist/components/color-field/color-field-root.js +1 -1
  176. package/dist/components/color-field/color-field-root.vue.d.ts +2 -4
  177. package/dist/components/color-field/index.d.ts +5 -4
  178. package/dist/components/color-field/index.js +1 -1
  179. package/dist/components/color-field/types.d.ts +20 -6
  180. package/dist/components/color-picker/color-picker-compact.js +1 -0
  181. package/dist/components/color-picker/color-picker-compact.vue.d.ts +60 -0
  182. package/dist/components/color-picker/color-picker-root.js +1 -1
  183. package/dist/components/color-picker/color-picker-root.vue.d.ts +18 -7
  184. package/dist/components/color-picker/color-picker-trigger.js +1 -0
  185. package/dist/components/color-picker/color-picker-trigger.vue.d.ts +25 -0
  186. package/dist/components/color-picker/context.d.ts +9 -0
  187. package/dist/components/color-picker/context.js +1 -0
  188. package/dist/components/color-picker/index.d.ts +6 -3
  189. package/dist/components/color-picker/index.js +1 -1
  190. package/dist/components/color-picker/shared.js +1 -0
  191. package/dist/components/color-picker/types.d.ts +132 -5
  192. package/dist/components/color-slider/color-slider-compact.js +1 -0
  193. package/dist/components/color-slider/color-slider-compact.vue.d.ts +19 -0
  194. package/dist/components/color-slider/color-slider-root.js +1 -1
  195. package/dist/components/color-slider/color-slider-root.vue.d.ts +5 -5
  196. package/dist/components/color-slider/color-slider-thumb.js +1 -1
  197. package/dist/components/color-slider/color-slider-track.js +1 -1
  198. package/dist/components/color-slider/index.d.ts +6 -5
  199. package/dist/components/color-slider/index.js +1 -1
  200. package/dist/components/color-slider/types.d.ts +24 -7
  201. package/dist/components/color-swatch/color-swatch-checker.js +1 -0
  202. package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +8 -0
  203. package/dist/components/color-swatch/color-swatch-compact.js +1 -0
  204. package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +15 -0
  205. package/dist/components/color-swatch/color-swatch-fill.js +1 -0
  206. package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +8 -0
  207. package/dist/components/color-swatch/color-swatch-root.js +1 -0
  208. package/dist/components/color-swatch/color-swatch-root.vue.d.ts +15 -0
  209. package/dist/components/color-swatch/context.d.ts +9 -0
  210. package/dist/components/color-swatch/context.js +1 -0
  211. package/dist/components/color-swatch/index.d.ts +7 -3
  212. package/dist/components/color-swatch/index.js +1 -1
  213. package/dist/components/color-swatch/types.d.ts +58 -5
  214. package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -0
  215. package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +28 -0
  216. package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
  217. package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.js +1 -1
  218. package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
  219. package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
  220. package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +1 -1
  221. package/dist/components/color-swatch-picker/context.js +1 -1
  222. package/dist/components/color-swatch-picker/index.d.ts +7 -6
  223. package/dist/components/color-swatch-picker/index.js +1 -1
  224. package/dist/components/color-swatch-picker/types.d.ts +63 -8
  225. package/dist/components/combobox/combobox-arrow.js +1 -1
  226. package/dist/components/combobox/combobox-cancel.js +1 -1
  227. package/dist/components/combobox/combobox-compact.js +1 -1
  228. package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
  229. package/dist/components/combobox/combobox-content-impl.js +1 -1
  230. package/dist/components/combobox/combobox-content.js +1 -1
  231. package/dist/components/combobox/combobox-empty.js +1 -1
  232. package/dist/components/combobox/combobox-empty.vue.d.ts +1 -4
  233. package/dist/components/combobox/combobox-group.js +1 -1
  234. package/dist/components/combobox/combobox-input.js +1 -1
  235. package/dist/components/combobox/combobox-item.js +1 -1
  236. package/dist/components/combobox/combobox-root.js +1 -1
  237. package/dist/components/combobox/combobox-root.vue.d.ts +3 -3
  238. package/dist/components/combobox/combobox-separator.js +1 -1
  239. package/dist/components/combobox/combobox-trigger.js +1 -1
  240. package/dist/components/combobox/combobox-viewport.js +1 -1
  241. package/dist/components/combobox/combobox-virtualizer.js +1 -1
  242. package/dist/components/combobox/types.d.ts +9 -8
  243. package/dist/components/command/command-compact.js +1 -1
  244. package/dist/components/command/types.d.ts +4 -4
  245. package/dist/components/config-provider/config-provider.js +14 -2
  246. package/dist/components/config-provider/context.js +1 -1
  247. package/dist/components/config-provider/types.d.ts +9 -1
  248. package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
  249. package/dist/components/context-menu/context-menu-content.js +1 -1
  250. package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
  251. package/dist/components/context-menu/context-menu-trigger.js +1 -1
  252. package/dist/components/context-menu/context.js +1 -1
  253. package/dist/components/date-field/date-field-compact.js +1 -1
  254. package/dist/components/date-field/date-field-compact.vue.d.ts +17 -5
  255. package/dist/components/date-field/date-field-input.js +1 -1
  256. package/dist/components/date-field/date-field-root.js +1 -1
  257. package/dist/components/date-field/date-field-root.vue.d.ts +14 -22
  258. package/dist/components/date-field/index.d.ts +3 -3
  259. package/dist/components/date-field/types.d.ts +44 -144
  260. package/dist/components/date-picker/context.js +1 -1
  261. package/dist/components/date-picker/date-picker-compact.js +1 -1
  262. package/dist/components/date-picker/date-picker-compact.vue.d.ts +290 -10
  263. package/dist/components/date-picker/index.d.ts +2 -7
  264. package/dist/components/date-picker/index.js +1 -1
  265. package/dist/components/date-picker/types.d.ts +11 -274
  266. package/dist/components/date-range-field/date-range-field-compact.js +1 -1
  267. package/dist/components/date-range-field/date-range-field-input.js +1 -1
  268. package/dist/components/date-range-field/date-range-field-input.vue.d.ts +2 -2
  269. package/dist/components/date-range-field/date-range-field-root.js +1 -1
  270. package/dist/components/date-range-field/date-range-field-root.vue.d.ts +15 -30
  271. package/dist/components/date-range-field/index.d.ts +3 -3
  272. package/dist/components/date-range-field/types.d.ts +36 -183
  273. package/dist/components/date-range-picker/context.js +1 -1
  274. package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
  275. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +293 -12
  276. package/dist/components/date-range-picker/index.d.ts +2 -5
  277. package/dist/components/date-range-picker/index.js +1 -1
  278. package/dist/components/date-range-picker/types.d.ts +14 -269
  279. package/dist/components/dialog/context.js +1 -1
  280. package/dist/components/dialog/dialog-cancel.js +1 -1
  281. package/dist/components/dialog/dialog-close.js +1 -1
  282. package/dist/components/dialog/dialog-compact.js +1 -1
  283. package/dist/components/dialog/dialog-compact.vue.d.ts +7 -7
  284. package/dist/components/dialog/dialog-confirm.js +1 -1
  285. package/dist/components/dialog/dialog-content.js +1 -1
  286. package/dist/components/dialog/dialog-description.js +1 -1
  287. package/dist/components/dialog/dialog-footer.js +1 -1
  288. package/dist/components/dialog/dialog-header.js +1 -1
  289. package/dist/components/dialog/dialog-overlay.js +1 -1
  290. package/dist/components/dialog/dialog-popup-impl.js +1 -1
  291. package/dist/components/dialog/dialog-popup.js +1 -1
  292. package/dist/components/dialog/dialog-root.js +1 -1
  293. package/dist/components/dialog/dialog-title.js +1 -1
  294. package/dist/components/dialog/dialog-trigger.js +1 -1
  295. package/dist/components/dialog/dialog-trigger.vue.d.ts +5 -1
  296. package/dist/components/dialog/state.js +1 -1
  297. package/dist/components/dialog/types.d.ts +26 -15
  298. package/dist/components/dropdown-menu/context.js +1 -1
  299. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
  300. package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
  301. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
  302. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  303. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +2 -2
  304. package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
  305. package/dist/components/editable/context.js +1 -1
  306. package/dist/components/editable/editable-area.js +1 -1
  307. package/dist/components/editable/editable-area.vue.d.ts +1 -4
  308. package/dist/components/editable/editable-cancel-trigger.js +1 -1
  309. package/dist/components/editable/editable-cancel-trigger.vue.d.ts +1 -4
  310. package/dist/components/editable/editable-compact.js +1 -1
  311. package/dist/components/editable/editable-compact.vue.d.ts +2 -2
  312. package/dist/components/editable/editable-edit-trigger.js +1 -1
  313. package/dist/components/editable/editable-edit-trigger.vue.d.ts +1 -4
  314. package/dist/components/editable/editable-input.js +1 -1
  315. package/dist/components/editable/editable-input.vue.d.ts +4 -1
  316. package/dist/components/editable/editable-preview.js +1 -1
  317. package/dist/components/editable/editable-root.js +1 -1
  318. package/dist/components/editable/editable-root.vue.d.ts +4 -6
  319. package/dist/components/editable/editable-submit-trigger.js +1 -1
  320. package/dist/components/editable/editable-submit-trigger.vue.d.ts +1 -4
  321. package/dist/components/editable/types.d.ts +12 -11
  322. package/dist/components/empty/empty-content.js +1 -1
  323. package/dist/components/empty/empty-description.js +1 -1
  324. package/dist/components/empty/empty-header.js +1 -1
  325. package/dist/components/empty/empty-media.js +1 -1
  326. package/dist/components/empty/empty-root.js +1 -1
  327. package/dist/components/empty/empty-title.js +1 -1
  328. package/dist/components/empty/types.d.ts +8 -8
  329. package/dist/components/form/form-compact.js +1 -1
  330. package/dist/components/form/form-control.js +1 -1
  331. package/dist/components/form/form-description.js +1 -1
  332. package/dist/components/form/form-error.js +1 -1
  333. package/dist/components/form/form-field-array-compact.js +1 -1
  334. package/dist/components/form/form-field-compact.js +1 -1
  335. package/dist/components/form/form-label.js +1 -1
  336. package/dist/components/form/types.d.ts +7 -6
  337. package/dist/components/hover-card/context.js +1 -1
  338. package/dist/components/hover-card/hover-card-compact.js +1 -1
  339. package/dist/components/hover-card/hover-card-compact.vue.d.ts +0 -1
  340. package/dist/components/hover-card/hover-card-popup.js +1 -1
  341. package/dist/components/hover-card/hover-card-positioner.js +1 -1
  342. package/dist/components/hover-card/hover-card-root.js +1 -1
  343. package/dist/components/hover-card/hover-card-root.vue.d.ts +2 -2
  344. package/dist/components/hover-card/hover-card-trigger.js +1 -1
  345. package/dist/components/hover-card/index.d.ts +1 -1
  346. package/dist/components/hover-card/types.d.ts +2 -2
  347. package/dist/components/input/input-clear.js +1 -1
  348. package/dist/components/input/input-compact.js +1 -1
  349. package/dist/components/input/input-control.js +1 -1
  350. package/dist/components/input/input-root.js +1 -1
  351. package/dist/components/input/input-root.vue.d.ts +1 -1
  352. package/dist/components/input/types.d.ts +10 -9
  353. package/dist/components/input-number/context.js +1 -1
  354. package/dist/components/input-number/index.d.ts +7 -6
  355. package/dist/components/input-number/index.js +1 -1
  356. package/dist/components/input-number/input-number-clear.js +1 -0
  357. package/dist/components/input-number/input-number-compact.js +1 -0
  358. package/dist/components/input-number/input-number-compact.vue.d.ts +21 -0
  359. package/dist/components/input-number/input-number-control.js +1 -1
  360. package/dist/components/input-number/input-number-decrement.js +1 -1
  361. package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -4
  362. package/dist/components/input-number/input-number-increment.js +1 -1
  363. package/dist/components/input-number/input-number-increment.vue.d.ts +1 -4
  364. package/dist/components/input-number/input-number-root.js +1 -1
  365. package/dist/components/input-number/input-number-root.vue.d.ts +4 -4
  366. package/dist/components/input-number/types.d.ts +87 -14
  367. package/dist/components/input-otp/input-otp-compact.js +1 -1
  368. package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
  369. package/dist/components/input-otp/input-otp-input.js +1 -1
  370. package/dist/components/input-otp/input-otp-positioner.js +1 -1
  371. package/dist/components/input-otp/input-otp-root.js +1 -1
  372. package/dist/components/input-otp/input-otp-root.vue.d.ts +4 -4
  373. package/dist/components/input-otp/types.d.ts +5 -4
  374. package/dist/components/kbd/kbd.js +1 -1
  375. package/dist/components/kbd/types.d.ts +2 -3
  376. package/dist/components/label/label.js +1 -1
  377. package/dist/components/label/types.d.ts +2 -3
  378. package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
  379. package/dist/components/layout/layout-classic-placeholder.js +1 -1
  380. package/dist/components/layout/layout-classic-root.js +1 -1
  381. package/dist/components/layout/layout-compact.vue.d.ts +1 -1
  382. package/dist/components/layout/layout-content.js +1 -1
  383. package/dist/components/layout/layout-footer.js +1 -1
  384. package/dist/components/layout/layout-header.js +1 -1
  385. package/dist/components/layout/layout-main.js +1 -1
  386. package/dist/components/layout/layout-mobile.js +1 -1
  387. package/dist/components/layout/layout-rail.js +1 -1
  388. package/dist/components/layout/layout-root.js +1 -1
  389. package/dist/components/layout/layout-root.vue.d.ts +3 -3
  390. package/dist/components/layout/layout-sidebar.js +1 -1
  391. package/dist/components/layout/layout-tab.js +1 -1
  392. package/dist/components/layout/layout-trigger.js +1 -1
  393. package/dist/components/layout/layout-trigger.vue.d.ts +1 -4
  394. package/dist/components/layout/types.d.ts +13 -12
  395. package/dist/components/link/link.js +1 -1
  396. package/dist/components/link/types.d.ts +2 -3
  397. package/dist/components/list/list-content.js +1 -1
  398. package/dist/components/list/list-description.js +1 -1
  399. package/dist/components/list/list-item.js +1 -1
  400. package/dist/components/list/list-root.js +1 -1
  401. package/dist/components/list/list-title.js +1 -1
  402. package/dist/components/list/types.d.ts +6 -7
  403. package/dist/components/listbox/context.js +1 -1
  404. package/dist/components/listbox/listbox-content.js +1 -1
  405. package/dist/components/listbox/listbox-filter.js +1 -1
  406. package/dist/components/listbox/listbox-group-label.js +1 -1
  407. package/dist/components/listbox/listbox-group.js +1 -1
  408. package/dist/components/listbox/listbox-item-indicator.js +1 -1
  409. package/dist/components/listbox/listbox-item.js +1 -1
  410. package/dist/components/listbox/listbox-item.vue.d.ts +1 -4
  411. package/dist/components/listbox/listbox-root.js +1 -1
  412. package/dist/components/listbox/types.d.ts +9 -8
  413. package/dist/components/menu/context.js +1 -1
  414. package/dist/components/menu/menu-checkbox-group.js +1 -1
  415. package/dist/components/menu/menu-checkbox-group.vue.d.ts +1 -1
  416. package/dist/components/menu/menu-checkbox-item.js +1 -1
  417. package/dist/components/menu/menu-content-impl.js +1 -1
  418. package/dist/components/menu/menu-content.js +1 -1
  419. package/dist/components/menu/menu-group-label.js +1 -1
  420. package/dist/components/menu/menu-group.js +1 -1
  421. package/dist/components/menu/menu-item-impl.js +1 -1
  422. package/dist/components/menu/menu-item-indicator.js +1 -1
  423. package/dist/components/menu/menu-item.js +1 -1
  424. package/dist/components/menu/menu-radio-group.js +1 -1
  425. package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
  426. package/dist/components/menu/menu-radio-item.js +1 -1
  427. package/dist/components/menu/menu-radio-options-compact.js +1 -1
  428. package/dist/components/menu/menu-radio-options-compact.vue.d.ts +2 -2
  429. package/dist/components/menu/menu-root.js +1 -1
  430. package/dist/components/menu/menu-root.vue.d.ts +1 -1
  431. package/dist/components/menu/menu-sub-content.js +1 -1
  432. package/dist/components/menu/menu-sub-trigger.js +1 -1
  433. package/dist/components/menu/menu-sub.js +1 -1
  434. package/dist/components/menu/types.d.ts +11 -12
  435. package/dist/components/menubar/context.js +1 -1
  436. package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
  437. package/dist/components/menubar/menubar-content.js +1 -1
  438. package/dist/components/menubar/menubar-menu.js +1 -1
  439. package/dist/components/menubar/menubar-root.js +1 -1
  440. package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
  441. package/dist/components/menubar/menubar-sub-content.js +1 -1
  442. package/dist/components/menubar/menubar-sub-trigger.js +1 -1
  443. package/dist/components/menubar/menubar-trigger.js +1 -1
  444. package/dist/components/menubar/menubar-trigger.vue.d.ts +1 -4
  445. package/dist/components/menubar/types.d.ts +5 -7
  446. package/dist/components/navigation-menu/context.js +1 -1
  447. package/dist/components/navigation-menu/index.d.ts +3 -3
  448. package/dist/components/navigation-menu/index.js +1 -1
  449. package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
  450. package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +2 -2
  451. package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
  452. package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
  453. package/dist/components/navigation-menu/navigation-menu-item-slot-compact.js +1 -0
  454. package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
  455. package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
  456. package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
  457. package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -0
  458. package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
  459. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -2
  460. package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
  461. package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -0
  462. package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
  463. package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
  464. package/dist/components/navigation-menu/shared.js +1 -1
  465. package/dist/components/navigation-menu/types.d.ts +105 -65
  466. package/dist/components/page-tabs/hooks.js +1 -1
  467. package/dist/components/page-tabs/index.d.ts +6 -5
  468. package/dist/components/page-tabs/index.js +1 -1
  469. package/dist/components/page-tabs/page-tabs-close.js +1 -1
  470. package/dist/components/page-tabs/page-tabs-compact.js +1 -0
  471. package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +27 -0
  472. package/dist/components/page-tabs/page-tabs-item.js +1 -1
  473. package/dist/components/page-tabs/page-tabs-item.vue.d.ts +4 -4
  474. package/dist/components/page-tabs/page-tabs-pin.js +1 -1
  475. package/dist/components/page-tabs/page-tabs-root.js +1 -1
  476. package/dist/components/page-tabs/page-tabs-root.vue.d.ts +3 -2
  477. package/dist/components/page-tabs/types.d.ts +208 -9
  478. package/dist/components/pagination/pagination-ellipsis.js +1 -1
  479. package/dist/components/pagination/pagination-first.js +1 -1
  480. package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
  481. package/dist/components/pagination/pagination-last.js +1 -1
  482. package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
  483. package/dist/components/pagination/pagination-list-item.js +1 -1
  484. package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
  485. package/dist/components/pagination/pagination-list.js +1 -1
  486. package/dist/components/pagination/pagination-next.js +1 -1
  487. package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
  488. package/dist/components/pagination/pagination-prev.js +1 -1
  489. package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
  490. package/dist/components/pagination/pagination-root.js +1 -1
  491. package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
  492. package/dist/components/pagination/types.d.ts +18 -16
  493. package/dist/components/password/context.d.ts +9 -0
  494. package/dist/components/password/context.js +1 -0
  495. package/dist/components/password/index.d.ts +4 -0
  496. package/dist/components/password/index.js +1 -0
  497. package/dist/components/password/password-compact.js +1 -0
  498. package/dist/components/password/password-compact.vue.d.ts +23 -0
  499. package/dist/components/password/types.d.ts +97 -0
  500. package/dist/components/popconfirm/context.d.ts +9 -0
  501. package/dist/components/popconfirm/context.js +1 -0
  502. package/dist/components/popconfirm/index.d.ts +21 -0
  503. package/dist/components/popconfirm/index.js +1 -0
  504. package/dist/components/popconfirm/popconfirm-cancel.js +1 -0
  505. package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +22 -0
  506. package/dist/components/popconfirm/popconfirm-compact.js +1 -0
  507. package/dist/components/{date-picker/date-picker-content.vue.d.ts → popconfirm/popconfirm-compact.vue.d.ts} +17 -7
  508. package/dist/components/popconfirm/popconfirm-confirm.js +1 -0
  509. package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +22 -0
  510. package/dist/components/popconfirm/popconfirm-content.js +1 -0
  511. package/dist/components/popconfirm/popconfirm-content.vue.d.ts +18 -0
  512. package/dist/components/popconfirm/popconfirm-description.js +1 -0
  513. package/dist/components/popconfirm/popconfirm-description.vue.d.ts +18 -0
  514. package/dist/components/popconfirm/popconfirm-footer.js +1 -0
  515. package/dist/components/popconfirm/popconfirm-footer.vue.d.ts +18 -0
  516. package/dist/components/popconfirm/popconfirm-header.js +1 -0
  517. package/dist/components/popconfirm/popconfirm-header.vue.d.ts +18 -0
  518. package/dist/components/popconfirm/popconfirm-title.js +1 -0
  519. package/dist/components/popconfirm/popconfirm-title.vue.d.ts +18 -0
  520. package/dist/components/popconfirm/types.d.ts +221 -0
  521. package/dist/components/popover/context.js +1 -1
  522. package/dist/components/popover/index.d.ts +3 -3
  523. package/dist/components/popover/index.js +1 -1
  524. package/dist/components/popover/popover-anchor.js +1 -1
  525. package/dist/components/popover/popover-close.js +1 -1
  526. package/dist/components/popover/popover-close.vue.d.ts +3 -6
  527. package/dist/components/popover/popover-compact.js +1 -1
  528. package/dist/components/popover/popover-compact.vue.d.ts +1 -1
  529. package/dist/components/popover/popover-popup.js +1 -1
  530. package/dist/components/popover/popover-positioner-impl.js +1 -1
  531. package/dist/components/popover/popover-positioner.js +1 -1
  532. package/dist/components/popover/popover-positioner.vue.d.ts +1 -0
  533. package/dist/components/popover/popover-root.js +1 -1
  534. package/dist/components/popover/popover-root.vue.d.ts +1 -1
  535. package/dist/components/popover/popover-trigger.js +1 -1
  536. package/dist/components/popover/types.d.ts +13 -15
  537. package/dist/components/popper/index.d.ts +1 -1
  538. package/dist/components/popper/popper-anchor.js +1 -1
  539. package/dist/components/popper/popper-arrow.js +1 -1
  540. package/dist/components/popper/popper-positioner.js +1 -1
  541. package/dist/components/popper/popper-positioner.vue.d.ts +2 -1
  542. package/dist/components/popper/types.d.ts +7 -6
  543. package/dist/components/primitive/index.d.ts +2 -2
  544. package/dist/components/primitive/types.d.ts +3 -1
  545. package/dist/components/progress/index.d.ts +8 -6
  546. package/dist/components/progress/index.js +1 -1
  547. package/dist/components/progress/progress-circle-compact.js +1 -0
  548. package/dist/components/progress/progress-circle-compact.vue.d.ts +21 -0
  549. package/dist/components/progress/progress-circle-svg.js +1 -0
  550. package/dist/components/progress/{progress-circle.vue.d.ts → progress-circle-svg.vue.d.ts} +3 -3
  551. package/dist/components/progress/progress-compact.js +1 -0
  552. package/dist/components/progress/progress-compact.vue.d.ts +21 -0
  553. package/dist/components/progress/progress-indicator.js +1 -1
  554. package/dist/components/progress/progress-indicator.vue.d.ts +1 -4
  555. package/dist/components/progress/progress-provider.js +1 -1
  556. package/dist/components/progress/progress-root.js +1 -1
  557. package/dist/components/progress/progress-root.vue.d.ts +1 -3
  558. package/dist/components/progress/shared.js +1 -1
  559. package/dist/components/progress/state.js +1 -1
  560. package/dist/components/progress/types.d.ts +68 -23
  561. package/dist/components/radio-group/context.d.ts +3 -2
  562. package/dist/components/radio-group/context.js +1 -1
  563. package/dist/components/radio-group/index.d.ts +10 -9
  564. package/dist/components/radio-group/index.js +1 -1
  565. package/dist/components/radio-group/radio-group-card-compact.js +1 -0
  566. package/dist/components/radio-group/radio-group-card-compact.vue.d.ts +21 -0
  567. package/dist/components/radio-group/radio-group-compact.js +1 -1
  568. package/dist/components/radio-group/radio-group-compact.vue.d.ts +4 -5
  569. package/dist/components/radio-group/radio-group-control.js +1 -1
  570. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  571. package/dist/components/radio-group/radio-group-indicator.js +1 -1
  572. package/dist/components/radio-group/radio-group-item.js +1 -1
  573. package/dist/components/radio-group/radio-group-label.js +1 -1
  574. package/dist/components/radio-group/radio-group-root.js +1 -1
  575. package/dist/components/radio-group/radio-group-root.vue.d.ts +5 -5
  576. package/dist/components/radio-group/types.d.ts +74 -18
  577. package/dist/components/roving-focus/context.js +1 -1
  578. package/dist/components/roving-focus/roving-focus-group.js +1 -1
  579. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
  580. package/dist/components/roving-focus/roving-focus-item.js +1 -1
  581. package/dist/components/roving-focus/types.d.ts +3 -4
  582. package/dist/components/scroll-area/index.d.ts +8 -7
  583. package/dist/components/scroll-area/index.js +1 -1
  584. package/dist/components/scroll-area/scroll-area-compact.js +1 -0
  585. package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +15 -0
  586. package/dist/components/scroll-area/scroll-area-corner.js +1 -1
  587. package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -4
  588. package/dist/components/scroll-area/scroll-area-root.js +1 -1
  589. package/dist/components/scroll-area/scroll-area-root.vue.d.ts +0 -2
  590. package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
  591. package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +0 -2
  592. package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
  593. package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -4
  594. package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
  595. package/dist/components/scroll-area/types.d.ts +46 -8
  596. package/dist/components/segment/index.d.ts +1 -1
  597. package/dist/components/segment/segment-compact.js +1 -1
  598. package/dist/components/segment/segment-compact.vue.d.ts +2 -2
  599. package/dist/components/select/context.js +1 -1
  600. package/dist/components/select/select-arrow.js +1 -1
  601. package/dist/components/select/select-bubble-select.js +1 -1
  602. package/dist/components/select/select-compact.vue.d.ts +2 -2
  603. package/dist/components/select/select-content.js +1 -1
  604. package/dist/components/select/select-group-label.js +1 -1
  605. package/dist/components/select/select-group.js +1 -1
  606. package/dist/components/select/select-item-aligned-popup.js +1 -1
  607. package/dist/components/select/select-item-aligned-positioner.js +1 -1
  608. package/dist/components/select/select-item-indicator.js +1 -1
  609. package/dist/components/select/select-item-text.js +1 -1
  610. package/dist/components/select/select-item.js +1 -1
  611. package/dist/components/select/select-popper-popup.js +1 -1
  612. package/dist/components/select/select-root.vue.d.ts +2 -2
  613. package/dist/components/select/select-scroll-button-impl.js +1 -1
  614. package/dist/components/select/select-scroll-down-button.js +1 -1
  615. package/dist/components/select/select-scroll-up-button.js +1 -1
  616. package/dist/components/select/select-separator.js +1 -1
  617. package/dist/components/select/select-trigger-icon.js +1 -1
  618. package/dist/components/select/select-trigger.js +1 -1
  619. package/dist/components/select/select-value.js +1 -1
  620. package/dist/components/select/select-viewport.js +1 -1
  621. package/dist/components/select/types.d.ts +16 -14
  622. package/dist/components/separator/index.d.ts +5 -4
  623. package/dist/components/separator/index.js +1 -1
  624. package/dist/components/separator/separator-compact.js +1 -0
  625. package/dist/components/separator/separator-compact.vue.d.ts +18 -0
  626. package/dist/components/separator/separator-label.js +1 -1
  627. package/dist/components/separator/separator-root.js +1 -1
  628. package/dist/components/separator/types.d.ts +26 -5
  629. package/dist/components/skeleton/skeleton.js +1 -1
  630. package/dist/components/skeleton/skeleton.vue.d.ts +1 -4
  631. package/dist/components/skeleton/types.d.ts +2 -3
  632. package/dist/components/slider/index.d.ts +7 -6
  633. package/dist/components/slider/index.js +1 -1
  634. package/dist/components/slider/shared.js +1 -1
  635. package/dist/components/slider/slider-compact.js +1 -0
  636. package/dist/components/slider/slider-compact.vue.d.ts +21 -0
  637. package/dist/components/slider/slider-range.js +1 -1
  638. package/dist/components/slider/slider-range.vue.d.ts +1 -4
  639. package/dist/components/slider/slider-root.js +1 -1
  640. package/dist/components/slider/slider-root.vue.d.ts +1 -3
  641. package/dist/components/slider/slider-thumb.js +1 -1
  642. package/dist/components/slider/slider-thumb.vue.d.ts +1 -4
  643. package/dist/components/slider/slider-track.js +1 -1
  644. package/dist/components/slider/slider-track.vue.d.ts +1 -4
  645. package/dist/components/slider/types.d.ts +55 -8
  646. package/dist/components/splitter/context.js +1 -1
  647. package/dist/components/splitter/splitter-group.js +1 -1
  648. package/dist/components/splitter/splitter-group.vue.d.ts +0 -2
  649. package/dist/components/splitter/splitter-panel.js +1 -1
  650. package/dist/components/splitter/splitter-panel.vue.d.ts +2 -4
  651. package/dist/components/splitter/splitter-resize-handle.js +1 -1
  652. package/dist/components/splitter/splitter-resize-handle.vue.d.ts +0 -2
  653. package/dist/components/splitter/types.d.ts +5 -5
  654. package/dist/components/stepper/context.js +1 -1
  655. package/dist/components/stepper/stepper-description.js +1 -1
  656. package/dist/components/stepper/stepper-indicator.js +1 -1
  657. package/dist/components/stepper/stepper-item.js +1 -1
  658. package/dist/components/stepper/stepper-item.vue.d.ts +0 -2
  659. package/dist/components/stepper/stepper-root.js +1 -1
  660. package/dist/components/stepper/stepper-root.vue.d.ts +2 -4
  661. package/dist/components/stepper/stepper-separator.js +1 -1
  662. package/dist/components/stepper/stepper-title.js +1 -1
  663. package/dist/components/stepper/stepper-trigger.js +1 -1
  664. package/dist/components/stepper/types.d.ts +10 -10
  665. package/dist/components/switch/context.js +1 -1
  666. package/dist/components/switch/index.d.ts +6 -5
  667. package/dist/components/switch/index.js +1 -1
  668. package/dist/components/switch/switch-compact.js +1 -0
  669. package/dist/components/switch/switch-compact.vue.d.ts +22 -0
  670. package/dist/components/switch/switch-control.js +1 -1
  671. package/dist/components/switch/switch-control.vue.d.ts +2 -2
  672. package/dist/components/switch/switch-root.js +1 -1
  673. package/dist/components/switch/switch-root.vue.d.ts +1 -1
  674. package/dist/components/switch/switch-thumb.js +1 -1
  675. package/dist/components/switch/types.d.ts +54 -7
  676. package/dist/components/table/hooks.js +1 -1
  677. package/dist/components/table/shared.js +1 -1
  678. package/dist/components/table/table-body.js +1 -1
  679. package/dist/components/table/table-cell.js +1 -1
  680. package/dist/components/table/table-compact.js +1 -1
  681. package/dist/components/table/table-content.js +1 -1
  682. package/dist/components/table/table-footer.js +1 -1
  683. package/dist/components/table/table-head.js +1 -1
  684. package/dist/components/table/table-header.js +1 -1
  685. package/dist/components/table/table-root.js +1 -1
  686. package/dist/components/table/table-row.js +1 -1
  687. package/dist/components/table/table-scroll.js +1 -1
  688. package/dist/components/table/table-virtual-spacer-row.js +1 -1
  689. package/dist/components/table/types.d.ts +15 -11
  690. package/dist/components/tabs/context.js +1 -1
  691. package/dist/components/tabs/tabs-compact.vue.d.ts +2 -2
  692. package/dist/components/tabs/tabs-content.js +1 -1
  693. package/dist/components/tabs/tabs-indicator.js +1 -1
  694. package/dist/components/tabs/tabs-list.js +1 -1
  695. package/dist/components/tabs/tabs-root.js +1 -1
  696. package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
  697. package/dist/components/tabs/tabs-trigger.js +1 -1
  698. package/dist/components/tabs/types.d.ts +8 -7
  699. package/dist/components/tag/tag.js +1 -1
  700. package/dist/components/tag/types.d.ts +2 -3
  701. package/dist/components/tags-input/index.d.ts +8 -7
  702. package/dist/components/tags-input/index.js +1 -1
  703. package/dist/components/tags-input/tags-input-clear.js +1 -1
  704. package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -4
  705. package/dist/components/tags-input/tags-input-compact.js +1 -0
  706. package/dist/components/tags-input/tags-input-compact.vue.d.ts +25 -0
  707. package/dist/components/tags-input/tags-input-control.js +1 -0
  708. package/dist/components/tags-input/tags-input-control.vue.d.ts +8 -0
  709. package/dist/components/tags-input/tags-input-item-delete.js +1 -1
  710. package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -4
  711. package/dist/components/tags-input/tags-input-item-text.js +1 -1
  712. package/dist/components/tags-input/tags-input-item-text.vue.d.ts +3 -6
  713. package/dist/components/tags-input/tags-input-item.js +1 -1
  714. package/dist/components/tags-input/tags-input-item.vue.d.ts +14 -14
  715. package/dist/components/tags-input/tags-input-root.js +1 -1
  716. package/dist/components/tags-input/tags-input-root.vue.d.ts +29 -21
  717. package/dist/components/tags-input/types.d.ts +75 -63
  718. package/dist/components/textarea/index.d.ts +7 -5
  719. package/dist/components/textarea/index.js +1 -1
  720. package/dist/components/textarea/textarea-clear.js +1 -0
  721. package/dist/components/textarea/textarea-clear.vue.d.ts +22 -0
  722. package/dist/components/textarea/textarea-compact.js +1 -0
  723. package/dist/components/textarea/textarea-compact.vue.d.ts +21 -0
  724. package/dist/components/textarea/textarea-control.js +1 -1
  725. package/dist/components/textarea/textarea-counter.js +1 -1
  726. package/dist/components/textarea/textarea-root.js +1 -1
  727. package/dist/components/textarea/textarea-root.vue.d.ts +3 -1
  728. package/dist/components/textarea/types.d.ts +96 -6
  729. package/dist/components/time-field/index.d.ts +6 -4
  730. package/dist/components/time-field/index.js +1 -1
  731. package/dist/components/time-field/time-field-compact.js +1 -0
  732. package/dist/components/time-field/time-field-compact.vue.d.ts +15 -0
  733. package/dist/components/time-field/time-field-input.js +1 -1
  734. package/dist/components/time-field/time-field-input.vue.d.ts +2 -2
  735. package/dist/components/time-field/time-field-root.js +1 -1
  736. package/dist/components/time-field/time-field-root.vue.d.ts +5 -15
  737. package/dist/components/time-field/types.d.ts +33 -132
  738. package/dist/components/time-range-field/index.d.ts +2 -2
  739. package/dist/components/time-range-field/time-range-field-compact.js +1 -1
  740. package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +1 -2
  741. package/dist/components/time-range-field/time-range-field-input.js +1 -1
  742. package/dist/components/time-range-field/time-range-field-root.js +1 -1
  743. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +5 -19
  744. package/dist/components/time-range-field/types.d.ts +36 -184
  745. package/dist/components/toast/state.js +1 -1
  746. package/dist/components/toast/toast-provider.js +1 -1
  747. package/dist/components/toast/toast.js +1 -1
  748. package/dist/components/toast/toaster.js +1 -1
  749. package/dist/components/toast/toaster.vue.d.ts +2 -2
  750. package/dist/components/toast/types.d.ts +3 -2
  751. package/dist/components/toggle/toggle.js +1 -1
  752. package/dist/components/toggle/toggle.vue.d.ts +1 -4
  753. package/dist/components/toggle/types.d.ts +2 -7
  754. package/dist/components/toggle-group/context.js +1 -1
  755. package/dist/components/toggle-group/toggle-group-item.js +1 -1
  756. package/dist/components/toggle-group/toggle-group-root.js +1 -1
  757. package/dist/components/toggle-group/types.d.ts +3 -5
  758. package/dist/components/toolbar/context.js +1 -1
  759. package/dist/components/toolbar/toolbar-button.js +1 -1
  760. package/dist/components/toolbar/toolbar-link.js +1 -1
  761. package/dist/components/toolbar/toolbar-link.vue.d.ts +1 -2
  762. package/dist/components/toolbar/toolbar-root.js +1 -1
  763. package/dist/components/toolbar/toolbar-separator.js +1 -1
  764. package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
  765. package/dist/components/toolbar/toolbar-toggle-item.js +1 -1
  766. package/dist/components/toolbar/types.d.ts +11 -6
  767. package/dist/components/tooltip/index.d.ts +8 -7
  768. package/dist/components/tooltip/index.js +1 -1
  769. package/dist/components/tooltip/tooltip-compact.js +1 -0
  770. package/dist/components/tooltip/tooltip-compact.vue.d.ts +28 -0
  771. package/dist/components/tooltip/tooltip-popup.js +1 -1
  772. package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
  773. package/dist/components/tooltip/tooltip-positioner.js +1 -1
  774. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +1 -0
  775. package/dist/components/tooltip/tooltip-root.js +1 -1
  776. package/dist/components/tooltip/tooltip-root.vue.d.ts +2 -2
  777. package/dist/components/tooltip/tooltip-trigger.js +1 -1
  778. package/dist/components/tooltip/types.d.ts +58 -2
  779. package/dist/components/tree/context.js +1 -1
  780. package/dist/components/tree/tree-item.js +1 -1
  781. package/dist/components/tree/tree-root.js +1 -1
  782. package/dist/components/tree/tree-root.vue.d.ts +1 -1
  783. package/dist/components/tree/tree-virtualizer-item.js +1 -1
  784. package/dist/components/tree/tree-virtualizer-root.js +1 -1
  785. package/dist/components/tree/types.d.ts +5 -5
  786. package/dist/components/tree-menu/index.d.ts +12 -8
  787. package/dist/components/tree-menu/index.js +1 -1
  788. package/dist/components/tree-menu/shared.js +1 -0
  789. package/dist/components/tree-menu/tree-menu-button.js +1 -1
  790. package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -4
  791. package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
  792. package/dist/components/tree-menu/tree-menu-compact.js +1 -0
  793. package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +24 -0
  794. package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
  795. package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
  796. package/dist/components/tree-menu/tree-menu-group.js +1 -1
  797. package/dist/components/tree-menu/tree-menu-item.js +1 -1
  798. package/dist/components/tree-menu/tree-menu-option-compact.js +1 -0
  799. package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +33 -0
  800. package/dist/components/tree-menu/tree-menu-options-compact.js +1 -0
  801. package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +34 -0
  802. package/dist/components/tree-menu/tree-menu-root.js +1 -1
  803. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +3 -0
  804. package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -0
  805. package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +28 -0
  806. package/dist/components/tree-menu/tree-menu-sub.js +1 -1
  807. package/dist/components/tree-menu/types.d.ts +241 -12
  808. package/dist/components/virtualizer/types.d.ts +7 -6
  809. package/dist/components/virtualizer/virtualizer-content.js +1 -1
  810. package/dist/components/virtualizer/virtualizer-item.js +1 -1
  811. package/dist/components/virtualizer/virtualizer-root.js +1 -1
  812. package/dist/components/visually-hidden/types.d.ts +2 -3
  813. package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
  814. package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
  815. package/dist/components/visually-hidden/visually-hidden.js +1 -1
  816. package/dist/composables/index.d.ts +2 -1
  817. package/dist/composables/index.js +1 -1
  818. package/dist/composables/use-bool-prop.d.ts +12 -0
  819. package/dist/composables/use-bool-prop.js +1 -0
  820. package/dist/composables/use-collection.d.ts +0 -3
  821. package/dist/composables/use-collection.js +1 -1
  822. package/dist/composables/use-controllable-state.d.ts +10 -1
  823. package/dist/composables/use-controllable-state.js +1 -1
  824. package/dist/composables/use-selection.js +1 -1
  825. package/dist/constants/components.d.ts +3 -7
  826. package/dist/constants/components.js +1 -1
  827. package/dist/date/calendar.d.ts +22 -24
  828. package/dist/date/calendar.js +1 -1
  829. package/dist/date/comparators.d.ts +29 -30
  830. package/dist/date/formatter.d.ts +1 -1
  831. package/dist/date/index.d.ts +8 -8
  832. package/dist/date/index.js +1 -1
  833. package/dist/date/parser.d.ts +14 -13
  834. package/dist/date/parser.js +1 -1
  835. package/dist/date/parts.d.ts +6 -6
  836. package/dist/date/placeholders.d.ts +2 -21
  837. package/dist/date/placeholders.js +1 -1
  838. package/dist/date/types.d.ts +12 -11
  839. package/dist/date/use-date-field.d.ts +6 -8
  840. package/dist/date/use-date-field.js +1 -1
  841. package/dist/date/utils.d.ts +3 -7
  842. package/dist/date/utils.js +1 -1
  843. package/dist/index.d.ts +427 -417
  844. package/dist/index.js +1 -1
  845. package/dist/locale/hooks.d.ts +14 -0
  846. package/dist/locale/hooks.js +1 -0
  847. package/dist/locale/index.d.ts +5 -0
  848. package/dist/locale/index.js +1 -0
  849. package/dist/locale/langs/en.d.ts +6 -0
  850. package/dist/locale/langs/en.js +1 -0
  851. package/dist/locale/langs/zh-CN.d.ts +6 -0
  852. package/dist/locale/langs/zh-CN.js +1 -0
  853. package/dist/locale/locales.d.ts +23 -0
  854. package/dist/locale/locales.js +1 -0
  855. package/dist/locale/types.d.ts +234 -0
  856. package/dist/namespaced/index.d.ts +982 -963
  857. package/dist/namespaced/index.js +1 -1
  858. package/dist/shared/color.d.ts +3 -13
  859. package/dist/shared/color.js +1 -1
  860. package/dist/shared/index.d.ts +4 -4
  861. package/dist/shared/index.js +1 -1
  862. package/dist/shared/object.d.ts +2 -1
  863. package/dist/shared/object.js +1 -1
  864. package/dist/shared/string.d.ts +6 -1
  865. package/dist/shared/string.js +1 -1
  866. package/dist/shared/time-picker.d.ts +1 -2
  867. package/dist/shared/vue.js +1 -1
  868. package/dist/types/color.d.ts +16 -0
  869. package/dist/types/common.d.ts +2 -1
  870. package/dist/types/index.d.ts +4 -3
  871. package/dist/types/vue.d.ts +4 -2
  872. package/package.json +17 -7
  873. package/dist/components/_icon/icon.vue.d.ts +0 -8
  874. package/dist/components/_icon/index.d.ts +0 -3
  875. package/dist/components/_icon/index.js +0 -1
  876. package/dist/components/calendar/use-calendar.d.ts +0 -45
  877. package/dist/components/color-swatch/color-swatch.js +0 -1
  878. package/dist/components/color-swatch/color-swatch.vue.d.ts +0 -26
  879. package/dist/components/date-picker/date-picker-content.js +0 -1
  880. package/dist/components/date-picker/date-picker-root.js +0 -1
  881. package/dist/components/date-picker/date-picker-root.vue.d.ts +0 -38
  882. package/dist/components/date-range-picker/date-range-picker-popup.js +0 -1
  883. package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +0 -21
  884. package/dist/components/date-range-picker/date-range-picker-root.js +0 -1
  885. package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +0 -50
  886. package/dist/components/date-range-picker/date-range-picker-trigger.js +0 -1
  887. package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +0 -21
  888. package/dist/components/month-picker/context.d.ts +0 -9
  889. package/dist/components/month-picker/context.js +0 -1
  890. package/dist/components/month-picker/index.d.ts +0 -6
  891. package/dist/components/month-picker/index.js +0 -1
  892. package/dist/components/month-picker/month-picker-popup.js +0 -1
  893. package/dist/components/month-picker/month-picker-popup.vue.d.ts +0 -36
  894. package/dist/components/month-picker/month-picker-root.js +0 -1
  895. package/dist/components/month-picker/month-picker-root.vue.d.ts +0 -39
  896. package/dist/components/month-picker/month-picker-trigger.js +0 -1
  897. package/dist/components/month-picker/month-picker-trigger.vue.d.ts +0 -21
  898. package/dist/components/month-picker/types.d.ts +0 -202
  899. package/dist/components/month-range-picker/context.d.ts +0 -9
  900. package/dist/components/month-range-picker/context.js +0 -1
  901. package/dist/components/month-range-picker/index.d.ts +0 -6
  902. package/dist/components/month-range-picker/index.js +0 -1
  903. package/dist/components/month-range-picker/month-range-picker-popup.js +0 -1
  904. package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +0 -39
  905. package/dist/components/month-range-picker/month-range-picker-root.js +0 -1
  906. package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +0 -43
  907. package/dist/components/month-range-picker/month-range-picker-trigger.js +0 -1
  908. package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +0 -21
  909. package/dist/components/month-range-picker/types.d.ts +0 -234
  910. package/dist/components/progress/progress-circle.js +0 -1
  911. package/dist/components/range-calendar/context.d.ts +0 -9
  912. package/dist/components/range-calendar/context.js +0 -1
  913. package/dist/components/range-calendar/index.d.ts +0 -16
  914. package/dist/components/range-calendar/index.js +0 -1
  915. package/dist/components/range-calendar/range-calendar-cell-trigger.js +0 -1
  916. package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +0 -33
  917. package/dist/components/range-calendar/range-calendar-cell.js +0 -1
  918. package/dist/components/range-calendar/range-calendar-compact.js +0 -1
  919. package/dist/components/range-calendar/range-calendar-grid-body.js +0 -1
  920. package/dist/components/range-calendar/range-calendar-grid-head.js +0 -1
  921. package/dist/components/range-calendar/range-calendar-grid-row.js +0 -1
  922. package/dist/components/range-calendar/range-calendar-grid.js +0 -1
  923. package/dist/components/range-calendar/range-calendar-head-cell.js +0 -1
  924. package/dist/components/range-calendar/range-calendar-header.js +0 -1
  925. package/dist/components/range-calendar/range-calendar-header.vue.d.ts +0 -21
  926. package/dist/components/range-calendar/range-calendar-heading.js +0 -1
  927. package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +0 -22
  928. package/dist/components/range-calendar/range-calendar-next.js +0 -1
  929. package/dist/components/range-calendar/range-calendar-next.vue.d.ts +0 -24
  930. package/dist/components/range-calendar/range-calendar-prev.js +0 -1
  931. package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +0 -24
  932. package/dist/components/range-calendar/range-calendar-root.js +0 -1
  933. package/dist/components/range-calendar/types.d.ts +0 -488
  934. package/dist/components/tags-input/tags-input-input.js +0 -1
  935. package/dist/components/tags-input/tags-input-input.vue.d.ts +0 -21
  936. package/dist/components/time-picker/context.d.ts +0 -9
  937. package/dist/components/time-picker/context.js +0 -1
  938. package/dist/components/time-picker/index.d.ts +0 -6
  939. package/dist/components/time-picker/index.js +0 -1
  940. package/dist/components/time-picker/time-picker-popup.js +0 -1
  941. package/dist/components/time-picker/time-picker-popup.vue.d.ts +0 -27
  942. package/dist/components/time-picker/time-picker-root.js +0 -1
  943. package/dist/components/time-picker/time-picker-root.vue.d.ts +0 -45
  944. package/dist/components/time-picker/time-picker-trigger.js +0 -1
  945. package/dist/components/time-picker/time-picker-trigger.vue.d.ts +0 -21
  946. package/dist/components/time-picker/types.d.ts +0 -224
  947. package/dist/components/time-range-picker/context.d.ts +0 -9
  948. package/dist/components/time-range-picker/context.js +0 -1
  949. package/dist/components/time-range-picker/index.d.ts +0 -7
  950. package/dist/components/time-range-picker/index.js +0 -1
  951. package/dist/components/time-range-picker/time-range-picker-compact.js +0 -1
  952. package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +0 -31
  953. package/dist/components/time-range-picker/time-range-picker-popup.js +0 -1
  954. package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +0 -30
  955. package/dist/components/time-range-picker/time-range-picker-root.js +0 -1
  956. package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +0 -50
  957. package/dist/components/time-range-picker/time-range-picker-trigger.js +0 -1
  958. package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +0 -21
  959. package/dist/components/time-range-picker/types.d.ts +0 -304
  960. package/dist/components/year-picker/context.d.ts +0 -9
  961. package/dist/components/year-picker/context.js +0 -1
  962. package/dist/components/year-picker/index.d.ts +0 -6
  963. package/dist/components/year-picker/index.js +0 -1
  964. package/dist/components/year-picker/types.d.ts +0 -207
  965. package/dist/components/year-picker/year-picker-popup.js +0 -1
  966. package/dist/components/year-picker/year-picker-popup.vue.d.ts +0 -36
  967. package/dist/components/year-picker/year-picker-root.js +0 -1
  968. package/dist/components/year-picker/year-picker-root.vue.d.ts +0 -39
  969. package/dist/components/year-picker/year-picker-trigger.js +0 -1
  970. package/dist/components/year-picker/year-picker-trigger.vue.d.ts +0 -21
  971. package/dist/components/year-range-picker/context.d.ts +0 -9
  972. package/dist/components/year-range-picker/context.js +0 -1
  973. package/dist/components/year-range-picker/index.d.ts +0 -6
  974. package/dist/components/year-range-picker/index.js +0 -1
  975. package/dist/components/year-range-picker/types.d.ts +0 -239
  976. package/dist/components/year-range-picker/year-range-picker-popup.js +0 -1
  977. package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +0 -39
  978. package/dist/components/year-range-picker/year-range-picker-root.js +0 -1
  979. package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +0 -43
  980. package/dist/components/year-range-picker/year-range-picker-trigger.js +0 -1
  981. package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +0 -21
  982. /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/defineProperty.js +0 -0
  983. /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPrimitive.js +0 -0
  984. /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPropertyKey.js +0 -0
  985. /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/typeof.js +0 -0
@@ -1,21 +1,21 @@
1
- import { TagsInputAcceptableValue, TagsInputItemProps } from "./types.js";
1
+ import { TagsInputItemProps } from "./types.js";
2
2
  import * as _$vue from "vue";
3
3
 
4
4
  //#region src/components/tags-input/tags-input-item.vue.d.ts
5
- declare const __VLS_export: <T extends TagsInputAcceptableValue = string>(__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<{
6
- props: _$vue.PublicProps & __VLS_PrettifyLocal<TagsInputItemProps<T>> & (typeof globalThis extends {
7
- __VLS_PROPS_FALLBACK: infer P;
8
- } ? P : {});
9
- expose: (exposed: {}) => void;
10
- attrs: any;
11
- slots: {
12
- default?: (props: {}) => any;
13
- };
14
- emit: {};
15
- }>) => _$vue.VNode & {
16
- __ctx?: Awaited<typeof __VLS_setup>;
5
+ declare var __VLS_8: {
6
+ onDelete: () => void;
7
+ displayedValue: string;
8
+ };
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_8) => any;
17
11
  };
12
+ declare const __VLS_base: _$vue.DefineComponent<TagsInputItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TagsInputItemProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
14
  declare const _default: typeof __VLS_export;
19
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
20
  //#endregion
21
21
  export { _default };
@@ -1 +1 @@
1
- import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{removeAt as t}from"../../shared/object.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.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{useDirection as o}from"../config-provider/context.js";import s from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCollectionContext as c,provideTagsInputRootContext as l,useTagsInputUi as u}from"./context.js";import{computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,defineComponent as h,normalizeClass as g,openBlock as _,renderSlot as v,shallowRef as y,unref as b}from"vue";import{isEqual as x}from"ohash";const S=[`dir`,`data-disabled`,`data-invalid`],C=h({name:`TagsInputRoot`,__name:`tags-input-root`,props:{id:{},modelValue:{default:void 0},defaultValue:{default:()=>[]},addOnPaste:{type:Boolean,default:!1},addOnTab:{type:Boolean,default:!1},addOnBlur:{type:Boolean,default:!1},duplicate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},delimiter:{default:`,`},dir:{},max:{default:0},convertValue:{},displayValue:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`invalid`,`addTag`,`removeTag`],setup(h,{emit:C}){let w=h,T=C,E=u(`root`),{getOrderedItems:D,getOrderedElements:O,onContainerElementChange:k}=c(),[A,j]=a(k),M=o(()=>w.dir),N=i(()=>w.modelValue,e=>{T(`update:modelValue`,e)},w.defaultValue??[]),P=y(),F=y(!1),I=e=>w.displayValue?w.displayValue(e):String(e),L=d(()=>Array.isArray(N.value)?[...N.value]:[]),R=d(()=>n(A.value)),z=()=>D(!1),B=()=>O(!1).filter(e=>e.dataset.disabled===void 0),V=()=>{w.disabled||(N.value=[],P.value=void 0,F.value=!1)},H=e=>{if(w.disabled||e<0)return;let n=z()[e];n&&(N.value=t(L.value,e),T(`removeTag`,n.data.value))},U=e=>{let t=e.trim(),n=L.value,r=n.some(e=>typeof e==`object`&&!!e),i=(w.defaultValue??[]).some(e=>typeof e==`object`&&!!e);if(w.disabled||!t)return!1;if((r||i)&&typeof w.convertValue!=`function`)throw Error("You must provide a `convertValue` function when using object values.");let a=w.convertValue?w.convertValue(t):t;if(w.max>0&&n.length>=w.max)return F.value=!0,T(`invalid`,a),!1;let o=n.some(e=>x(e,a));return!w.duplicate&&o?(F.value=!0,T(`invalid`,a),!1):(F.value=!1,N.value=[...n,a],T(`addTag`,a),!0)},W=t=>{if(w.disabled)return;let n=t.target;if(!n)return;let r=B();if(!r.length){P.value=void 0;return}let i=r.at(-1),a=n.selectionStart===0&&n.selectionEnd===0,o=t.key===`ArrowRight`&&M.value===`ltr`||t.key===`ArrowLeft`&&M.value===`rtl`,s=t.key===`ArrowLeft`&&M.value===`ltr`||t.key===`ArrowRight`&&M.value===`rtl`;switch(t.key){case`Delete`:case`Backspace`:if(!a){P.value=void 0;break}if(P.value){let e=z().findIndex(e=>e.element===P.value),n=P.value===i?r.at(r.indexOf(P.value)-1):r.at(r.indexOf(P.value)+1);H(e),P.value=n,t.preventDefault()}else t.key===`Backspace`&&(P.value=i,t.preventDefault());break;case`Home`:case`End`:case`ArrowLeft`:case`ArrowRight`:if(!a){P.value=void 0;break}if(s&&!P.value)P.value=i,t.preventDefault();else if(o&&P.value===i)P.value=void 0,t.preventDefault();else if(P.value){let n=e(t,P.value,void 0,{itemsArray:r,loop:!1,dir:M.value});n&&(P.value=n)}break;case`ArrowUp`:case`ArrowDown`:P.value&&t.preventDefault();break;default:P.value=void 0;break}};return l({...r(w,[`id`,`addOnPaste`,`addOnTab`,`addOnBlur`,`disabled`,`delimiter`,`max`]),modelValue:N,selectedElement:P,isInvalidInput:F,dir:M,displayValue:I,onAddValue:U,onRemoveValue:H,onInputKeydown:W,onClear:V,getItems:z}),(e,t)=>(_(),m(`div`,{ref:b(j),class:g(b(E)),role:`group`,dir:b(M),"data-disabled":h.disabled?``:void 0,"data-invalid":F.value?``:void 0},[v(e.$slots,`default`,{modelValue:b(N)}),R.value&&h.name?(_(),f(b(s),{key:0,name:h.name,value:b(N),required:h.required,disabled:h.disabled},null,8,[`name`,`value`,`required`,`disabled`])):p(`v-if`,!0)],10,S))}});export{C as default};
1
+ import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{removeAt as t}from"../../shared/object.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.js";import{useDirection as i}from"../config-provider/context.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{useForwardElement as o}from"../../composables/use-forward-element.js";import"../../composables/index.js";import s from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCollectionContext as c,provideTagsInputRootContext as l,useTagsInputUi as u}from"./context.js";import{computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,defineComponent as h,normalizeClass as g,openBlock as _,renderSlot as v,shallowRef as y,unref as b}from"vue";const x=[`dir`,`data-disabled`,`data-invalid`,`data-has-value`],S=h({name:`TagsInputRoot`,__name:`tags-input-root`,props:{dir:{},modelValue:{default:void 0},defaultValue:{default:()=>[]},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},addOnBlur:{type:Boolean},duplicate:{type:Boolean},delimiter:{default:`,`},max:{default:0},displayValue:{},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`invalid`,`addTag`,`removeTag`],setup(h,{emit:S}){let C=h,w=S,T=u(`root`),{getOrderedItems:E,getOrderedElements:D,onContainerElementChange:O}=c(),[k,A]=o(O),j=i(()=>C.dir),M=a(()=>C.modelValue,e=>{w(`update:modelValue`,e)},C.defaultValue??[]),N=y(),P=y(!1),F=d(()=>M.value.length>0),I=d(()=>n(k.value)),L=()=>E(),R=()=>D(),z=()=>{C.disabled||(M.value=[],N.value=void 0,P.value=!1)},B=e=>{if(C.disabled||e<0)return;let n=L()[e];n&&(M.value=t(M.value,e),w(`removeTag`,n.data.value))},V=e=>{if(C.disabled)return!1;let t=e.trim();if(!t)return!1;let n=M.value;if(C.max>0&&n.length>=C.max)return P.value=!0,w(`invalid`,t),!1;let r=n.some(e=>e===t);return!C.duplicate&&r?(P.value=!0,w(`invalid`,t),!1):(P.value=!1,M.value=[...n,t],w(`addTag`,t),!0)},H=t=>{if(C.disabled)return;let n=t.target;if(!n)return;let r=R();if(!r.length){N.value=void 0;return}let i=r.at(-1),a=n.selectionStart===0&&n.selectionEnd===0,o=t.key===`ArrowRight`&&j.value===`ltr`||t.key===`ArrowLeft`&&j.value===`rtl`,s=t.key===`ArrowLeft`&&j.value===`ltr`||t.key===`ArrowRight`&&j.value===`rtl`;switch(t.key){case`Delete`:case`Backspace`:if(!a){N.value=void 0;break}if(N.value){let e=L().findIndex(e=>e.element===N.value),n=N.value===i?r.at(r.indexOf(N.value)-1):r.at(r.indexOf(N.value)+1);B(e),N.value=n,t.preventDefault()}else t.key===`Backspace`&&(N.value=i,t.preventDefault());break;case`Home`:case`End`:case`ArrowLeft`:case`ArrowRight`:if(!a){N.value=void 0;break}if(s&&!N.value)N.value=i,t.preventDefault();else if(o&&N.value===i)N.value=void 0,t.preventDefault();else if(N.value){let n=e(t,N.value,void 0,{itemsArray:r,loop:!1,dir:j.value});n&&(N.value=n)}break;case`ArrowUp`:case`ArrowDown`:N.value&&t.preventDefault();break;default:N.value=void 0;break}};return l({...r(C,[`id`,`autofocus`,`disabled`,`maxlength`,`minlength`,`pattern`,`placeholder`,`readonly`,`addOnPaste`,`addOnTab`,`addOnBlur`,`disabled`,`delimiter`,`max`]),modelValue:M,selectedElement:N,isInvalidInput:P,dir:j,onAddValue:V,onRemoveValue:B,onInputKeydown:H,onClear:z,getItems:L,displayValue:C.displayValue??(e=>e)}),(e,t)=>(_(),m(`div`,{ref:b(A),"data-soybean-tags-input-root":``,class:g(b(T)),role:`group`,dir:b(j),"data-disabled":h.disabled?``:void 0,"data-invalid":P.value?``:void 0,"data-has-value":F.value?``:void 0},[v(e.$slots,`default`,{modelValue:b(M),clear:z}),I.value&&h.name?(_(),f(b(s),{key:0,name:h.name,value:b(M),required:h.required,disabled:h.disabled},null,8,[`name`,`value`,`required`,`disabled`])):p(`v-if`,!0)],10,x))}});export{S as default};
@@ -1,28 +1,36 @@
1
- import { TagsInputAcceptableValue, TagsInputRootProps } from "./types.js";
1
+ import { TagsInputRootProps } from "./types.js";
2
2
  import * as _$vue from "vue";
3
3
 
4
4
  //#region src/components/tags-input/tags-input-root.vue.d.ts
5
- declare const __VLS_export: <T extends TagsInputAcceptableValue = string>(__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<{
6
- props: _$vue.PublicProps & __VLS_PrettifyLocal<TagsInputRootProps<T> & {
7
- onInvalid?: ((value: T) => any) | undefined;
8
- "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
9
- onAddTag?: ((value: T) => any) | undefined;
10
- onRemoveTag?: ((value: T) => any) | undefined;
11
- }> & (typeof globalThis extends {
12
- __VLS_PROPS_FALLBACK: infer P;
13
- } ? P : {});
14
- expose: (exposed: {}) => void;
15
- attrs: any;
16
- slots: {
17
- default?: (props: {
18
- modelValue: TagsInputAcceptableValue[] | undefined;
19
- }) => any;
20
- };
21
- emit: ((evt: "invalid", value: T) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "addTag", value: T) => void) & ((evt: "removeTag", value: T) => void);
22
- }>) => _$vue.VNode & {
23
- __ctx?: Awaited<typeof __VLS_setup>;
5
+ declare var __VLS_1: {
6
+ modelValue: string[];
7
+ clear: () => void;
8
+ };
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
24
11
  };
12
+ declare const __VLS_base: _$vue.DefineComponent<TagsInputRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
13
+ "update:modelValue": (value: string[]) => any;
14
+ invalid: (value: string) => any;
15
+ addTag: (value: string) => any;
16
+ removeTag: (value: string) => any;
17
+ }, string, _$vue.PublicProps, Readonly<TagsInputRootProps> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
19
+ onInvalid?: ((value: string) => any) | undefined;
20
+ onAddTag?: ((value: string) => any) | undefined;
21
+ onRemoveTag?: ((value: string) => any) | undefined;
22
+ }>, {
23
+ max: number;
24
+ modelValue: string[];
25
+ defaultValue: string[];
26
+ delimiter: string | RegExp;
27
+ }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
29
  declare const _default: typeof __VLS_export;
26
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
27
35
  //#endregion
28
36
  export { _default };
@@ -1,23 +1,22 @@
1
1
  import { Direction, UiClass } from "../../types/common.js";
2
2
  import { FormFieldCommonProps } from "../../types/component.js";
3
- import { PrimitiveProps } from "../primitive/types.js";
4
- import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
3
+ import { BaseProps } from "../../types/vue.js";
4
+ import { PrimitiveWithBaseProps } from "../primitive/types.js";
5
+ import { ButtonProps } from "../button/types.js";
6
+ import { InputBaseProps } from "../input/types.js";
7
+ import { ComputedRef, InputHTMLAttributes, ShallowRef } from "vue";
5
8
 
6
9
  //#region src/components/tags-input/types.d.ts
7
- /**
8
- * Type information for TagsInputAcceptableValue.
9
- */
10
- type TagsInputAcceptableValue = string | number | bigint | Record<string, unknown>;
11
10
  /**
12
11
  * Properties for the TagsInputRoot component.
13
12
  */
14
- interface TagsInputRootProps<T = TagsInputAcceptableValue> extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
15
- /** Id of the input element. */
16
- id?: string;
13
+ interface TagsInputRootProps extends InputBaseProps, FormFieldCommonProps, Omit<BaseProps, 'onInvalid'> {
14
+ /** The reading direction of the tags input. */
15
+ dir?: Direction;
17
16
  /** The controlled value of the tags input. */
18
- modelValue?: T[];
17
+ modelValue?: string[];
19
18
  /** The uncontrolled default value of the tags input. */
20
- defaultValue?: T[];
19
+ defaultValue?: string[];
21
20
  /** Whether to add tags on paste. */
22
21
  addOnPaste?: boolean;
23
22
  /** Whether to add tags on tab. */
@@ -26,101 +25,114 @@ interface TagsInputRootProps<T = TagsInputAcceptableValue> extends FormFieldComm
26
25
  addOnBlur?: boolean;
27
26
  /** Whether to allow duplicated tags. */
28
27
  duplicate?: boolean;
29
- /** Whether to disable the tags input. */
30
- disabled?: boolean;
31
28
  /** The delimiter used to add tags. */
32
29
  delimiter?: string | RegExp;
33
- /** The reading direction of the tags input. */
34
- dir?: Direction;
35
30
  /** Maximum number of tags. Set to 0 for unlimited. */
36
31
  max?: number;
37
- /** Convert the raw input string into the tag value. */
38
- convertValue?: (value: string) => T;
39
- /** Display the tag value. */
40
- displayValue?: (value: T) => string;
32
+ /**
33
+ * Display the value of the tag. Useful when you want to apply modifications to the value like adding a suffix
34
+ *
35
+ * @default "(value: string) => value"
36
+ */
37
+ displayValue?: (value: string) => string;
41
38
  }
42
39
  /**
43
40
  * Events for the TagsInputRoot component.
44
41
  */
45
- type TagsInputRootEmits<T = TagsInputAcceptableValue> = {
42
+ type TagsInputRootEmits = {
46
43
  /**
47
44
  * Emitted when the model value changes.
48
45
  */
49
- 'update:modelValue': [value: T[]];
46
+ 'update:modelValue': [value: string[]];
50
47
  /**
51
48
  * Emitted when invalid occurs.
52
49
  */
53
- invalid: [value: T];
50
+ invalid: [value: string];
54
51
  /**
55
52
  * Emitted when add tag occurs.
56
53
  */
57
- addTag: [value: T];
54
+ addTag: [value: string];
58
55
  /**
59
56
  * Emitted when remove tag occurs.
60
57
  */
61
- removeTag: [value: T];
58
+ removeTag: [value: string];
62
59
  };
63
60
  /**
64
- * Properties for the TagsInputInput component.
61
+ * Properties for the TagsInputControl component.
65
62
  */
66
- interface TagsInputInputProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
67
- /**
68
- * Id.
69
- */
70
- id?: string;
71
- /**
72
- * Placeholder.
73
- */
74
- placeholder?: string;
75
- /**
76
- * Whether autofocus.
77
- */
78
- autofocus?: boolean;
79
- /**
80
- * Maxlength.
81
- */
82
- maxlength?: number;
83
- /**
84
- * Whether the component is disabled.
85
- */
86
- disabled?: boolean;
87
- /**
88
- * Aria label.
89
- */
90
- 'aria-label'?: string;
91
- /**
92
- * Aria controls.
93
- */
94
- 'aria-controls'?: string;
95
- }
63
+ interface TagsInputControlProps extends BaseProps<InputHTMLAttributes> {}
96
64
  /**
97
65
  * Properties for the TagsInputItem component.
98
66
  */
99
- interface TagsInputItemProps<T = TagsInputAcceptableValue> extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'value'> {
100
- /** Value associated with the tag. */
101
- value: T;
67
+ interface TagsInputItemProps extends PrimitiveWithBaseProps {
68
+ /**
69
+ * Value associated with the tag.
70
+ */
71
+ value: string;
102
72
  /** Whether to disable the tag item. */
103
73
  disabled?: boolean;
104
74
  }
105
75
  /**
106
76
  * Properties for the TagsInputItemText component.
107
77
  */
108
- interface TagsInputItemTextProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
78
+ interface TagsInputItemTextProps extends PrimitiveWithBaseProps {}
109
79
  /**
110
80
  * Properties for the TagsInputItemDelete component.
111
81
  */
112
- interface TagsInputItemDeleteProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
82
+ interface TagsInputItemDeleteProps extends ButtonProps {}
113
83
  /**
114
84
  * Properties for the TagsInputClear component.
115
85
  */
116
- interface TagsInputClearProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
86
+ interface TagsInputClearProps extends ButtonProps {}
87
+ /**
88
+ * Properties for the TagsInputCompact component.
89
+ */
90
+ interface TagsInputCompactProps extends TagsInputRootProps {
91
+ /** Whether to render the clear trigger. */
92
+ clearable?: boolean;
93
+ /** Props forwarded to the input element. */
94
+ controlProps?: TagsInputControlProps;
95
+ /** Props forwarded to the clear element. */
96
+ clearProps?: TagsInputClearProps;
97
+ /** Props forwarded to the item element. */
98
+ itemProps?: TagsInputItemProps;
99
+ /** Props forwarded to the item text element. */
100
+ itemTextProps?: TagsInputItemTextProps;
101
+ /** Props forwarded to the item delete element. */
102
+ itemDeleteProps?: TagsInputItemDeleteProps;
103
+ }
104
+ /**
105
+ * Events for the TagsInputCompact component.
106
+ */
107
+ type TagsInputCompactEmits = TagsInputRootEmits;
108
+ /**
109
+ * Slot properties for item-related compact slots.
110
+ */
111
+ interface TagsInputCompactSlotProps {
112
+ /** Value associated with the current item. */
113
+ value: string;
114
+ /** Current item index. */
115
+ index: number;
116
+ /** Current item display value. */
117
+ displayedValue: string;
118
+ /** Delete handler for the current item. */
119
+ onDelete: () => void;
120
+ /** Clear handler for the current item. */
121
+ onClear: () => void;
122
+ }
123
+ /**
124
+ * Slots for the TagsInputCompact component.
125
+ */
126
+ type TagsInputCompactSlots = {
127
+ /** Custom item content or full item replacement. */item?: (props: TagsInputCompactSlotProps) => any;
128
+ };
117
129
  /**
118
130
  * Available UI slots for the TagsInput component.
119
131
  */
120
- type TagsInputUiSlot = 'root' | 'item' | 'itemText' | 'itemDelete' | 'input' | 'clear';
132
+ type TagsInputUiSlot = 'root' | 'item' | 'itemText' | 'itemDelete' | 'control' | 'clear';
121
133
  /**
122
134
  * UI class overrides for the TagsInput component.
123
135
  */
124
136
  type TagsInputUi = UiClass<TagsInputUiSlot>;
125
137
  //#endregion
126
- export { TagsInputAcceptableValue, TagsInputClearProps, TagsInputInputProps, TagsInputItemDeleteProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputRootEmits, TagsInputRootProps, TagsInputUi, TagsInputUiSlot };
138
+ export { TagsInputClearProps, TagsInputCompactEmits, TagsInputCompactProps, TagsInputCompactSlotProps, TagsInputCompactSlots, TagsInputControlProps, TagsInputItemDeleteProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputRootEmits, TagsInputRootProps, TagsInputUi, TagsInputUiSlot };
@@ -1,6 +1,8 @@
1
- import { TextareaControlProps, TextareaCounterProps, TextareaRootEmits, TextareaRootProps, TextareaUi, TextareaUiSlot } from "./types.js";
2
- import { _default as _default$2 } from "./textarea-root.vue.js";
3
- import { _default } from "./textarea-control.vue.js";
4
- import { _default as _default$1 } from "./textarea-counter.vue.js";
1
+ import { TextareaClearEmits, TextareaClearProps, TextareaCompactEmits, TextareaCompactProps, TextareaCompactSlotProps, TextareaCompactSlots, TextareaControlProps, TextareaCounterProps, TextareaRootEmits, TextareaRootProps, TextareaUi, TextareaUiSlot } from "./types.js";
2
+ import { _default as _default$1 } from "./textarea-compact.vue.js";
3
+ import { _default as _default$4 } from "./textarea-root.vue.js";
4
+ import { _default as _default$2 } from "./textarea-control.vue.js";
5
+ import { _default } from "./textarea-clear.vue.js";
6
+ import { _default as _default$3 } from "./textarea-counter.vue.js";
5
7
  import { provideTextareaUi } from "./context.js";
6
- export { _default as TextareaControl, type TextareaControlProps, _default$1 as TextareaCounter, type TextareaCounterProps, _default$2 as TextareaRoot, type TextareaRootEmits, type TextareaRootProps, type TextareaUi, type TextareaUiSlot, provideTextareaUi };
8
+ export { _default as TextareaClear, type TextareaClearEmits, type TextareaClearProps, _default$1 as TextareaCompact, type TextareaCompactEmits, type TextareaCompactProps, type TextareaCompactSlotProps, type TextareaCompactSlots, _default$2 as TextareaControl, type TextareaControlProps, _default$3 as TextareaCounter, type TextareaCounterProps, _default$4 as TextareaRoot, type TextareaRootEmits, type TextareaRootProps, type TextareaUi, type TextareaUiSlot, provideTextareaUi };
@@ -1 +1 @@
1
- import{provideTextareaUi as e}from"./context.js";import t from"./textarea-root.js";import n from"./textarea-control.js";import r from"./textarea-counter.js";export{n as TextareaControl,r as TextareaCounter,t as TextareaRoot,e as provideTextareaUi};
1
+ import{provideTextareaUi as e}from"./context.js";import t from"./textarea-clear.js";import n from"./textarea-control.js";import r from"./textarea-counter.js";import i from"./textarea-root.js";import a from"./textarea-compact.js";export{t as TextareaClear,a as TextareaCompact,n as TextareaControl,r as TextareaCounter,i as TextareaRoot,e as provideTextareaUi};
@@ -0,0 +1 @@
1
+ import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../_icon/icon.js";import n from"../button/button.js";import{useTextareaRootContext as r,useTextareaUi as i}from"./context.js";import{computed as a,createBlock as o,createVNode as s,defineComponent as c,mergeProps as l,openBlock as u,renderSlot as d,unref as f,useAttrs as p,withCtx as m}from"vue";const h=c({name:`TextareaClear`,__name:`textarea-clear`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`clear`],setup(c,{emit:h}){let g=c,_=h,v=p(),y=i(`clear`),b=e(),{disabled:x,readonly:S,onClear:C}=r(`TextareaClear`),w=a(()=>v[`aria-label`]??b.value.textarea.clear),T=a(()=>g.disabled||x.value||S.value||!1),E=e=>{_(`clear`,e),C()};return(e,r)=>(u(),o(n,l(g,{"data-soybean-textarea-clearable":``,class:f(y),disabled:T.value,"aria-label":w.value,onClick:E}),{default:m(()=>[d(e.$slots,`default`,{},()=>[s(t,{icon:`lucide:x`,"aria-hidden":!0})])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{h as default};
@@ -0,0 +1,22 @@
1
+ import { TextareaClearProps } from "./types.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/textarea/textarea-clear.vue.d.ts
5
+ declare var __VLS_10: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_10) => any;
8
+ };
9
+ declare const __VLS_base: _$vue.DefineComponent<TextareaClearProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
10
+ clear: (event: PointerEvent) => any;
11
+ }, string, _$vue.PublicProps, Readonly<TextareaClearProps> & Readonly<{
12
+ onClear?: ((event: PointerEvent) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ //#endregion
22
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./textarea-clear.js";import r from"./textarea-control.js";import i from"./textarea-counter.js";import a from"./textarea-root.js";import{createBlock as o,createCommentVNode as s,createVNode as c,defineComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,openBlock as p,renderSlot as m,unref as h,withCtx as g}from"vue";const _=l({name:`TextareaCompact`,__name:`textarea-compact`,props:{textareaRef:{type:Function},clearable:{type:Boolean},showCounter:{type:Boolean},controlProps:{},clearProps:{},counterProps:{},defaultValue:{},modelValue:{},autosize:{type:[Boolean,Object]},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`clear`],setup(l,{emit:_}){let v=l,y=_,b=t(v,[`textareaRef`,`clearable`,`showCounter`,`controlProps`,`clearProps`,`counterProps`]),[x,S]=e(e=>v.textareaRef?.(e));return(e,t)=>(p(),o(a,d(h(b),{"onUpdate:modelValue":t[1]||(t[1]=e=>y(`update:modelValue`,e))}),{default:g(a=>[c(r,d(l.controlProps,{ref:h(S)}),null,16),l.clearable?m(e.$slots,`clear`,f(d({key:0},a)),()=>[c(n,d(l.clearProps,{onClear:t[0]||(t[0]=e=>y(`clear`,e))}),null,16)]):s(`v-if`,!0),l.showCounter?m(e.$slots,`counter`,f(d({key:1},a)),()=>[c(i,f(u(l.counterProps)),null,16)]):s(`v-if`,!0),m(e.$slots,`footer`,f(u(a)))]),_:3},16))}});export{_ as default};
@@ -0,0 +1,21 @@
1
+ import { TextareaCompactProps, TextareaCompactSlots } from "./types.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/textarea/textarea-compact.vue.d.ts
5
+ type __VLS_Slots = TextareaCompactSlots;
6
+ declare const __VLS_base: _$vue.DefineComponent<TextareaCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
7
+ clear: (event: PointerEvent) => any;
8
+ "update:modelValue": (value: string) => any;
9
+ }, string, _$vue.PublicProps, Readonly<TextareaCompactProps> & Readonly<{
10
+ onClear?: ((event: PointerEvent) => any) | undefined;
11
+ "onUpdate:modelValue"?: ((value: string) => 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{useTextareaRootContext as e,useTextareaUi as t}from"./context.js";import{adjustHeight as n}from"./shared.js";import{createElementBlock as r,defineComponent as i,nextTick as a,normalizeClass as o,normalizeStyle as s,openBlock as c,ref as l,unref as u,watch as d}from"vue";const f=[`id`,`aria-valuenow`,`autofocus`,`data-disabled`,`data-readonly`,`disabled`,`maxlength`,`minlength`,`placeholder`,`readonly`,`value`],p=i({name:`TextareaControl`,__name:`textarea-control`,setup(i){let{modelValue:p,id:m,autofocus:h,placeholder:g,disabled:_,readonly:v,maxlength:y,minlength:b,autosizeOptions:x}=e(`TextareaControl`),S=t(`control`),C=l(null),w=e=>{p.value=e.target.value};return d(p,async()=>{x.value&&(await a(),n(C.value,x.value))},{immediate:!0,flush:`post`}),(e,t)=>(c(),r(`textarea`,{id:u(m),ref_key:`textareaRef`,ref:C,class:o(u(S)),"aria-roledescription":`Textarea`,"aria-valuenow":u(p)??void 0,autocorrect:`off`,autofocus:u(h),"data-disabled":u(_)?``:void 0,"data-readonly":u(v)?``:void 0,disabled:u(_),maxlength:u(y),minlength:u(b),placeholder:u(g),readonly:u(v),spellcheck:`false`,tabindex:`0`,value:u(p),style:s(u(x)?{resize:`none`,overflowY:`hidden`}:void 0),onInput:w},null,46,f))}});export{p as default};
1
+ import{useTextareaRootContext as e,useTextareaUi as t}from"./context.js";import{adjustHeight as n}from"./shared.js";import{createElementBlock as r,defineComponent as i,nextTick as a,normalizeClass as o,normalizeStyle as s,openBlock as c,ref as l,unref as u,watch as d}from"vue";const f=[`id`,`aria-disabled`,`autofocus`,`data-disabled`,`data-readonly`,`disabled`,`maxlength`,`minlength`,`placeholder`,`readonly`,`value`],p=i({name:`TextareaControl`,__name:`textarea-control`,setup(i){let{modelValue:p,id:m,autofocus:h,placeholder:g,disabled:_,readonly:v,maxlength:y,minlength:b,autosizeOptions:x}=e(`TextareaControl`),S=t(`control`),C=l(null),w=e=>{p.value=e.target.value};return d(p,async()=>{x.value&&(await a(),n(C.value,x.value))},{immediate:!0,flush:`post`}),(e,t)=>(c(),r(`textarea`,{id:u(m),ref_key:`textareaRef`,ref:C,"data-soybean-textarea-control":``,class:o(u(S)),"aria-disabled":u(_)??void 0,"aria-roledescription":`Textarea`,autocorrect:`off`,autofocus:u(h),"data-disabled":u(_)?``:void 0,"data-readonly":u(v)?``:void 0,disabled:u(_),maxlength:u(y),minlength:u(b),placeholder:u(g),readonly:u(v),spellcheck:`false`,tabindex:`0`,value:u(p),style:s(u(x)?{resize:`none`,overflowY:`hidden`}:void 0),onInput:w},null,46,f))}});export{p as default};
@@ -1 +1 @@
1
- import{useTextareaRootContext as e,useTextareaUi as t}from"./context.js";import{computed as n,createElementBlock as r,createTextVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,toDisplayString as l,unref as u}from"vue";const d=a({name:`TextareaCounter`,__name:`textarea-counter`,setup(a){let{maxlength:d,count:f}=e(`TextareaCounter`),p=t(`counter`),m=n(()=>d.value?`${f.value} / ${d.value}`:`${f.value}`);return(e,t)=>(s(),r(`div`,{class:o(u(p))},[c(e.$slots,`default`,{count:u(f),maxlength:u(d)},()=>[i(l(m.value),1)])],2))}});export{d as default};
1
+ import{useTextareaRootContext as e,useTextareaUi as t}from"./context.js";import{computed as n,createElementBlock as r,createTextVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,toDisplayString as l,unref as u}from"vue";const d=a({name:`TextareaCounter`,__name:`textarea-counter`,setup(a){let{maxlength:d,count:f}=e(`TextareaCounter`),p=t(`counter`),m=n(()=>d.value?`${f.value} / ${d.value}`:`${f.value}`);return(e,t)=>(s(),r(`div`,{"data-soybean-textarea-counter":``,class:o(u(p))},[c(e.$slots,`default`,{count:u(f),maxlength:u(d)},()=>[i(l(m.value),1)])],2))}});export{d as default};
@@ -1 +1 @@
1
- import{isFormControl as e,transformPropsToContext 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 i from"../visually-hidden/visually-hidden-input.js";import{provideTextareaRootContext as a,useTextareaUi as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h}from"vue";const g=[`data-disabled`,`data-readonly`],_=d({name:`TextareaRoot`,__name:`textarea-root`,props:{defaultValue:{},modelValue:{default:void 0},autosize:{type:[Boolean,Object]},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:_}){let v=d,y=_,[b,x]=r(),S=o(`root`),C=n(()=>v.modelValue,e=>{y(`update:modelValue`,e)},v.defaultValue),w=s(()=>e(b.value)),T=s(()=>C.value?.length??0),E=s(()=>{if(v.autosize)return typeof v.autosize==`boolean`?{}:v.autosize}),D=()=>{C.value=``};return a({...t(v,[`id`,`autofocus`,`placeholder`,`disabled`,`readonly`,`maxlength`,`minlength`]),modelValue:C,count:T,autosizeOptions:E}),(e,t)=>(p(),u(`div`,{ref:h(x),class:f(h(S)),role:`group`,"data-disabled":d.disabled?``:void 0,"data-readonly":d.readonly?``:void 0},[m(e.$slots,`default`,{modelValue:h(C),clear:D}),w.value&&d.name?(p(),c(i,{key:0,type:`text`,value:h(C),name:d.name,disabled:d.disabled,readonly:d.readonly,required:d.required},null,8,[`value`,`name`,`disabled`,`readonly`,`required`])):l(`v-if`,!0)],10,g))}});export{_ as default};
1
+ import{isFormControl as e,transformPropsToContext 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 i from"../visually-hidden/visually-hidden-input.js";import{provideTextareaRootContext as a,useTextareaUi as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h}from"vue";const g=[`data-disabled`,`data-readonly`],_=d({name:`TextareaRoot`,__name:`textarea-root`,props:{defaultValue:{},modelValue:{default:void 0},autosize:{type:[Boolean,Object]},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:_}){let v=d,y=_,[b,x]=r(),S=o(`root`),C=n(()=>v.modelValue,e=>{y(`update:modelValue`,e)},v.defaultValue??``),w=s(()=>e(b.value)),T=s(()=>C.value?.length??0),E=s(()=>{if(v.autosize)return typeof v.autosize==`boolean`?{}:v.autosize}),D=()=>{v.disabled||v.readonly||(C.value=``)};return a({...t(v,[`id`,`autofocus`,`placeholder`,`disabled`,`readonly`,`maxlength`,`minlength`,`name`,`required`]),modelValue:C,onClear:D,count:T,autosizeOptions:E}),(e,t)=>(p(),u(`div`,{ref:h(x),"data-soybean-textarea-root":``,class:f(h(S)),role:`group`,"data-disabled":d.disabled?``:void 0,"data-readonly":d.readonly?``:void 0},[m(e.$slots,`default`,{modelValue:h(C),clear:D,count:T.value,maxlength:d.maxlength}),w.value&&d.name?(p(),c(i,{key:0,type:`text`,value:h(C),name:d.name,disabled:d.disabled,readonly:d.readonly,required:d.required},null,8,[`value`,`name`,`disabled`,`readonly`,`required`])):l(`v-if`,!0)],10,g))}});export{_ as default};
@@ -3,8 +3,10 @@ import * as _$vue from "vue";
3
3
 
4
4
  //#region src/components/textarea/textarea-root.vue.d.ts
5
5
  declare var __VLS_1: {
6
- modelValue: string | undefined;
6
+ modelValue: string;
7
7
  clear: () => void;
8
+ count: number;
9
+ maxlength: number | undefined;
8
10
  };
9
11
  type __VLS_Slots = {} & {
10
12
  default?: (props: typeof __VLS_1) => any;
@@ -1,6 +1,8 @@
1
1
  import { UiClass } from "../../types/common.js";
2
2
  import { FormFieldCommonProps } from "../../types/component.js";
3
- import { ComputedRef, HTMLAttributes, ShallowRef, TextareaHTMLAttributes } from "vue";
3
+ import { BaseProps } from "../../types/vue.js";
4
+ import { ButtonProps } from "../button/types.js";
5
+ import { ComputedRef, ShallowRef, TextareaHTMLAttributes } from "vue";
4
6
 
5
7
  //#region src/components/textarea/types.d.ts
6
8
  /**
@@ -34,7 +36,7 @@ interface TextareaBaseProps {
34
36
  /**
35
37
  * Properties for the TextareaRoot component.
36
38
  */
37
- interface TextareaRootProps extends TextareaBaseProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
39
+ interface TextareaRootProps extends TextareaBaseProps, FormFieldCommonProps, BaseProps {
38
40
  /** The default value of the textarea */
39
41
  defaultValue?: string;
40
42
  /** The controlled value of the textarea */
@@ -54,18 +56,106 @@ type TextareaRootEmits = {
54
56
  /**
55
57
  * Properties for the TextareaControl component.
56
58
  */
57
- interface TextareaControlProps extends /** @vue-ignore */TextareaHTMLAttributes {}
59
+ interface TextareaControlProps extends BaseProps<TextareaHTMLAttributes> {}
60
+ /**
61
+ * Properties for the TextareaClear component.
62
+ */
63
+ interface TextareaClearProps extends ButtonProps {}
64
+ /**
65
+ * Events for the TextareaClear component.
66
+ */
67
+ type TextareaClearEmits = {
68
+ /**
69
+ * Emitted when the clear button is clicked.
70
+ */
71
+ clear: [event: PointerEvent];
72
+ };
58
73
  /**
59
74
  * Properties for the TextareaCounter component.
60
75
  */
61
- interface TextareaCounterProps extends /** @vue-ignore */HTMLAttributes {}
76
+ interface TextareaCounterProps extends BaseProps {}
62
77
  /**
63
78
  * Available UI slots for the Textarea component.
64
79
  */
65
- type TextareaUiSlot = 'root' | 'control' | 'counter';
80
+ type TextareaUiSlot = 'root' | 'control' | 'counter' | 'clear';
66
81
  /**
67
82
  * UI class overrides for the Textarea component.
68
83
  */
69
84
  type TextareaUi = UiClass<TextareaUiSlot>;
85
+ /**
86
+ * Slot properties for the TextareaCompact component.
87
+ */
88
+ interface TextareaCompactSlotProps {
89
+ /**
90
+ * Current model value.
91
+ */
92
+ modelValue?: string;
93
+ /**
94
+ * Clear handler.
95
+ */
96
+ clear: () => void;
97
+ /**
98
+ * Current character count.
99
+ */
100
+ count: number;
101
+ /**
102
+ * Current maxlength.
103
+ */
104
+ maxlength?: number;
105
+ }
106
+ /**
107
+ * Properties for the TextareaCompact component.
108
+ */
109
+ interface TextareaCompactProps extends TextareaRootProps {
110
+ /**
111
+ * The function to set the textarea element.
112
+ */
113
+ textareaRef?: (el: HTMLTextAreaElement) => void;
114
+ /**
115
+ * Whether to show the clear trigger.
116
+ *
117
+ * @defaultValue false
118
+ */
119
+ clearable?: boolean;
120
+ /**
121
+ * Whether to show the counter.
122
+ *
123
+ * @defaultValue false
124
+ */
125
+ showCounter?: boolean;
126
+ /**
127
+ * Properties forwarded to the control element.
128
+ */
129
+ controlProps?: TextareaControlProps;
130
+ /**
131
+ * Properties forwarded to the clear element.
132
+ */
133
+ clearProps?: TextareaClearProps;
134
+ /**
135
+ * Properties forwarded to the counter element.
136
+ */
137
+ counterProps?: TextareaCounterProps;
138
+ }
139
+ /**
140
+ * Events for the TextareaCompact component.
141
+ */
142
+ type TextareaCompactEmits = TextareaRootEmits & TextareaClearEmits;
143
+ /**
144
+ * Slots for the TextareaCompact component.
145
+ */
146
+ type TextareaCompactSlots = {
147
+ /**
148
+ * Custom content for the clear slot.
149
+ */
150
+ clear?: (props: TextareaCompactSlotProps) => any;
151
+ /**
152
+ * Custom content for the counter slot.
153
+ */
154
+ counter?: (props: TextareaCompactSlotProps) => any;
155
+ /**
156
+ * Custom content for the footer slot.
157
+ */
158
+ footer?: (props: TextareaCompactSlotProps) => any;
159
+ };
70
160
  //#endregion
71
- export { TextareaControlProps, TextareaCounterProps, TextareaRootEmits, TextareaRootProps, TextareaUi, TextareaUiSlot };
161
+ export { TextareaClearEmits, TextareaClearProps, TextareaCompactEmits, TextareaCompactProps, TextareaCompactSlotProps, TextareaCompactSlots, TextareaControlProps, TextareaCounterProps, TextareaRootEmits, TextareaRootProps, TextareaUi, TextareaUiSlot };
@@ -1,5 +1,7 @@
1
- import { TimeFieldInputProps, TimeFieldRootContext, TimeFieldRootEmits, TimeFieldRootProps, TimeFieldUi, TimeFieldUiSlot } from "./types.js";
2
- import { _default as _default$1 } from "./time-field-root.vue.js";
3
- import { _default } from "./time-field-input.vue.js";
1
+ import { DateFieldInputProps } from "../date-field/types.js";
2
+ import { TimeFieldCompactEmits, TimeFieldCompactProps, TimeFieldRootEmits, TimeFieldRootProps, TimeFieldRootSlotProps, TimeFieldRootSlots, TimeFieldUi, TimeFieldUiSlot } from "./types.js";
3
+ import { _default } from "./time-field-compact.vue.js";
4
+ import { _default as _default$2 } from "./time-field-root.vue.js";
5
+ import { _default as _default$1 } from "./time-field-input.vue.js";
4
6
  import { provideTimeFieldUi } from "./context.js";
5
- export { _default as TimeFieldInput, type TimeFieldInputProps, _default$1 as TimeFieldRoot, type TimeFieldRootContext, type TimeFieldRootEmits, type TimeFieldRootProps, type TimeFieldUi, type TimeFieldUiSlot, provideTimeFieldUi };
7
+ export { _default as TimeFieldCompact, type TimeFieldCompactEmits, type TimeFieldCompactProps, _default$1 as TimeFieldInput, type DateFieldInputProps as TimeFieldInputProps, _default$2 as TimeFieldRoot, type TimeFieldRootEmits, type TimeFieldRootProps, type TimeFieldRootSlotProps, type TimeFieldRootSlots, type TimeFieldUi, type TimeFieldUiSlot, provideTimeFieldUi };
@@ -1 +1 @@
1
- import{provideTimeFieldUi as e}from"./context.js";import t from"./time-field-root.js";import n from"./time-field-input.js";export{n as TimeFieldInput,t as TimeFieldRoot,e as provideTimeFieldUi};
1
+ import{provideTimeFieldUi as e}from"./context.js";import t from"./time-field-input.js";import n from"./time-field-root.js";import r from"./time-field-compact.js";export{r as TimeFieldCompact,t as TimeFieldInput,n as TimeFieldRoot,e as provideTimeFieldUi};
@@ -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"./time-field-input.js";import r from"./time-field-root.js";import{Fragment as i,createBlock as a,createElementBlock as o,createTextVNode as s,defineComponent as c,mergeProps as l,openBlock as u,renderList as d,toDisplayString as f,toHandlers as p,unref as m,withCtx as h}from"vue";const g=c({name:`TimeFieldCompact`,__name:`time-field-compact`,props:{inputProps:{},defaultValue:{},modelValue:{},defaultPlaceholder:{},placeholder:{},granularity:{},maxValue:{},minValue:{},isTimeUnavailable:{type:Function},id:{},hourCycle:{},step:{},hideTimeZone:{type:Boolean},name:{},required:{type:Boolean},dir:{},locale:{},disabled:{type:Boolean},readonly:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`],setup(c,{emit:g}){let _=c,v=g,y=t(_,[`inputProps`]),b=e(v);return(e,t)=>(u(),a(r,l(m(y),p(m(b))),{default:h(e=>[(u(!0),o(i,null,d(e.segments,(e,t)=>(u(),a(n,l({key:`${e.part}-${t}`,part:e.part},{ref_for:!0},c.inputProps),{default:h(()=>[s(f(e.value),1)]),_:2},1040,[`part`]))),128))]),_:1},16))}});export{g as default};
@@ -0,0 +1,15 @@
1
+ import { TimeValue } from "../../date/types.js";
2
+ import { TimeFieldCompactProps } from "./types.js";
3
+ import * as _$vue from "vue";
4
+
5
+ //#region src/components/time-field/time-field-compact.vue.d.ts
6
+ declare const __VLS_export: _$vue.DefineComponent<TimeFieldCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
7
+ "update:modelValue": (time: TimeValue | undefined) => any;
8
+ "update:placeholder": (time: TimeValue) => any;
9
+ }, string, _$vue.PublicProps, Readonly<TimeFieldCompactProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((time: TimeValue | undefined) => any) | undefined;
11
+ "onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ //#endregion
15
+ export { _default };
@@ -1 +1 @@
1
- import{useDateField as e}from"../../date/use-date-field.js";import"../../date/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeFieldRootContext as n,useTimeFieldUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,ref as l,renderSlot as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`TimeFieldInput`,__name:`time-field-input`,props:{part:{},asChild:{type:Boolean},as:{default:`span`}},setup(o){let m=o,h=r(`input`),{disabled:g,readonly:_,placeholder:v,hourCycle:y,step:b,segmentValues:x,formatter:S,focusNext:C,modelValue:w,isInvalid:T,setFocusedElement:E}=n(`TimeFieldInput`),D=l(!0),O=l(!1),k=i(()=>!!g.value),A=i(()=>!!_.value),{attributes:j,handleSegmentClick:M,handleSegmentFocusOut:N,handleSegmentKeydown:P}=e({hasLeftFocus:D,lastKeyZero:O,placeholder:v,hourCycle:y,step:b,segmentValues:x,formatter:S,part:m.part,disabled:k,readonly:A,focusNext:C,modelValue:w}),F=i(()=>k.value||A.value?!1:m.part!==`literal`&&m.part!==`timeZoneName`),I=i(()=>m.part===`literal`?{}:{mousedown:M,keydown:P,focusout:()=>{D.value=!0,N()},focusin:e=>{E(e.target)}});return(e,n)=>(c(),a(f(t),s({as:o.as,"as-child":o.asChild},f(j),{"aria-disabled":k.value?!0:void 0,"aria-invalid":f(T)?!0:void 0,"aria-readonly":A.value||o.part===`timeZoneName`?!0:void 0,class:f(h),contenteditable:F.value,"data-disabled":k.value?``:void 0,"data-invalid":f(T)?``:void 0,"data-readonly":A.value||o.part===`timeZoneName`?``:void 0,"data-segment":o.part,"data-soybean-date-field-segment":o.part,"data-slot":`input`},d(I.value)),{default:p(()=>[u(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`aria-invalid`,`aria-readonly`,`class`,`contenteditable`,`data-disabled`,`data-invalid`,`data-readonly`,`data-segment`,`data-soybean-date-field-segment`]))}});export{m as default};
1
+ import{useDateField as e}from"../../date/use-date-field.js";import"../../date/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeFieldRootContext as n,useTimeFieldUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,ref as l,renderSlot as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`TimeFieldInput`,__name:`time-field-input`,props:{part:{},asChild:{type:Boolean},as:{default:`span`}},setup(o){let m=o,h=r(`input`),{disabled:g,readonly:_,placeholder:v,hourCycle:y,step:b,segmentValues:x,formatter:S,focusNext:C,modelValue:w,isInvalid:T,setFocusedElement:E}=n(`TimeFieldInput`),D=l(!0),{attributes:O,handleSegmentClick:k,handleSegmentFocusOut:A,handleSegmentKeydown:j}=e({hasLeftFocus:D,lastKeyZero:l(!1),placeholder:v,hourCycle:y,step:b,segmentValues:x,formatter:S,part:m.part,disabled:g,readonly:_,focusNext:C,modelValue:w}),M=i(()=>g.value||_.value?!1:m.part!==`literal`&&m.part!==`timeZoneName`),N=i(()=>m.part===`literal`?{}:{mousedown:k,keydown:j,focusout:()=>{D.value=!0,A()},focusin:e=>{E(e.target)}});return(e,n)=>(c(),a(f(t),s(f(O),{as:o.as,"as-child":o.asChild,"data-soybean-time-field-input":``,"data-soybean-date-field-segment":o.part,class:f(h),"aria-disabled":f(g)?!0:void 0,"aria-invalid":f(T)?!0:void 0,"aria-readonly":f(_)||o.part===`timeZoneName`?!0:void 0,contenteditable:M.value,"data-disabled":f(g)?``:void 0,"data-invalid":f(T)?``:void 0,"data-readonly":f(_)||o.part===`timeZoneName`?``:void 0,"data-segment":o.part},d(N.value)),{default:p(()=>[u(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`data-soybean-date-field-segment`,`class`,`aria-disabled`,`aria-invalid`,`aria-readonly`,`contenteditable`,`data-disabled`,`data-invalid`,`data-readonly`,`data-segment`]))}});export{m as default};