@ark-ui/react 0.14.0 → 0.15.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 (482) hide show
  1. package/CHANGELOG.md +38 -2
  2. package/accordion/accordion-content.cjs +8 -8
  3. package/accordion/accordion-content.d.ts +7 -10
  4. package/accordion/accordion-content.mjs +8 -8
  5. package/accordion/accordion-item-context.d.ts +3 -5
  6. package/accordion/accordion-item.d.ts +5 -8
  7. package/accordion/accordion-trigger.d.ts +6 -7
  8. package/accordion/accordion.d.ts +5 -11
  9. package/accordion/accordion.stories.d.ts +1 -1
  10. package/accordion/index.d.ts +13 -34
  11. package/accordion/use-accordion.d.ts +2 -2
  12. package/avatar/avatar-fallback.d.ts +6 -7
  13. package/avatar/avatar-image.d.ts +6 -7
  14. package/avatar/avatar.d.ts +5 -9
  15. package/avatar/avatar.test.d.ts +1 -0
  16. package/avatar/index.d.ts +11 -22
  17. package/avatar/use-avatar.d.ts +2 -1
  18. package/carousel/carousel-control.d.ts +6 -7
  19. package/carousel/carousel-indicator-group.d.ts +6 -7
  20. package/carousel/carousel-indicator.d.ts +5 -8
  21. package/carousel/carousel-next-slide-trigger.d.ts +6 -7
  22. package/carousel/carousel-prev-slide-trigger.d.ts +6 -7
  23. package/carousel/carousel-slide-group.d.ts +6 -7
  24. package/carousel/carousel-slide.d.ts +5 -8
  25. package/carousel/carousel-viewport.d.ts +6 -7
  26. package/carousel/carousel.d.ts +6 -9
  27. package/carousel/index.d.ts +24 -47
  28. package/carousel/use-carousel.d.ts +2 -1
  29. package/checkbox/checkbox-control.cjs +3 -6
  30. package/checkbox/checkbox-control.d.ts +6 -7
  31. package/checkbox/checkbox-control.mjs +4 -7
  32. package/checkbox/checkbox-label.d.ts +6 -7
  33. package/checkbox/checkbox.cjs +7 -4
  34. package/checkbox/checkbox.d.ts +4 -8
  35. package/checkbox/checkbox.mjs +8 -5
  36. package/checkbox/checkbox.stories.d.ts +1 -1
  37. package/checkbox/index.d.ts +8 -19
  38. package/checkbox/use-checkbox.d.ts +3 -3
  39. package/color-picker/color-picker-area-gradient.d.ts +6 -7
  40. package/color-picker/color-picker-area-thumb.d.ts +6 -7
  41. package/color-picker/color-picker-area.d.ts +5 -8
  42. package/color-picker/color-picker-channel-input.d.ts +6 -7
  43. package/color-picker/color-picker-channel-slider-background.d.ts +6 -7
  44. package/color-picker/color-picker-channel-slider-thumb.d.ts +6 -7
  45. package/color-picker/color-picker-channel-slider-track.d.ts +5 -8
  46. package/color-picker/color-picker-content.d.ts +6 -7
  47. package/color-picker/color-picker-eye-dropper-trigger.d.ts +6 -7
  48. package/color-picker/color-picker-swatch-background.d.ts +6 -7
  49. package/color-picker/color-picker-swatch-group.d.ts +6 -7
  50. package/color-picker/color-picker-swatch.d.ts +5 -8
  51. package/color-picker/index.d.ts +23 -52
  52. package/color-picker/use-color-picker.cjs +2 -7
  53. package/color-picker/use-color-picker.d.ts +2 -2
  54. package/color-picker/use-color-picker.mjs +3 -8
  55. package/combobox/combobox-clear-trigger.cjs +2 -2
  56. package/combobox/combobox-clear-trigger.d.ts +6 -7
  57. package/combobox/combobox-clear-trigger.mjs +2 -2
  58. package/combobox/combobox-content.cjs +8 -9
  59. package/combobox/combobox-content.d.ts +7 -10
  60. package/combobox/combobox-content.mjs +8 -9
  61. package/combobox/combobox-context.d.ts +3 -2
  62. package/combobox/combobox-control.cjs +2 -2
  63. package/combobox/combobox-control.d.ts +6 -7
  64. package/combobox/combobox-control.mjs +2 -2
  65. package/combobox/combobox-input.cjs +2 -2
  66. package/combobox/combobox-input.d.ts +6 -7
  67. package/combobox/combobox-input.mjs +2 -2
  68. package/combobox/combobox-item-context.cjs +15 -0
  69. package/combobox/combobox-item-context.d.ts +5 -0
  70. package/combobox/combobox-item-context.mjs +10 -0
  71. package/combobox/{combobox-option-group.cjs → combobox-item-group-label.cjs} +6 -6
  72. package/combobox/combobox-item-group-label.d.ts +7 -0
  73. package/combobox/{combobox-option-group.mjs → combobox-item-group-label.mjs} +6 -6
  74. package/combobox/{combobox-option-group-label.cjs → combobox-item-group.cjs} +6 -6
  75. package/combobox/combobox-item-group.d.ts +7 -0
  76. package/combobox/{combobox-option-group-label.mjs → combobox-item-group.mjs} +6 -6
  77. package/combobox/combobox-item-indicator.cjs +23 -0
  78. package/combobox/combobox-item-indicator.d.ts +7 -0
  79. package/combobox/combobox-item-indicator.mjs +19 -0
  80. package/combobox/combobox-item-text.cjs +21 -0
  81. package/combobox/combobox-item-text.d.ts +7 -0
  82. package/combobox/combobox-item-text.mjs +17 -0
  83. package/combobox/combobox-item.cjs +25 -0
  84. package/{select/select-option.d.ts → combobox/combobox-item.d.ts} +5 -5
  85. package/combobox/combobox-item.mjs +21 -0
  86. package/combobox/combobox-label.cjs +2 -2
  87. package/combobox/combobox-label.d.ts +6 -7
  88. package/combobox/combobox-label.mjs +2 -2
  89. package/combobox/combobox-positioner.cjs +2 -2
  90. package/combobox/combobox-positioner.d.ts +6 -7
  91. package/combobox/combobox-positioner.mjs +2 -2
  92. package/combobox/combobox-trigger.cjs +2 -2
  93. package/combobox/combobox-trigger.d.ts +6 -7
  94. package/combobox/combobox-trigger.mjs +2 -2
  95. package/combobox/combobox.cjs +20 -17
  96. package/combobox/combobox.d.ts +9 -13
  97. package/combobox/combobox.mjs +20 -17
  98. package/combobox/combobox.stories.d.ts +1 -0
  99. package/combobox/index.cjs +15 -9
  100. package/combobox/index.d.ts +35 -67
  101. package/combobox/index.mjs +11 -7
  102. package/combobox/use-combobox.cjs +24 -3
  103. package/combobox/use-combobox.d.ts +8 -4
  104. package/combobox/use-combobox.mjs +24 -3
  105. package/create-context.d.ts +3 -2
  106. package/date-picker/date-picker-clear-trigger.d.ts +6 -7
  107. package/date-picker/date-picker-column-header.d.ts +6 -7
  108. package/date-picker/date-picker-content.d.ts +6 -7
  109. package/date-picker/date-picker-control.d.ts +6 -7
  110. package/date-picker/date-picker-day-cell-trigger.d.ts +6 -7
  111. package/date-picker/date-picker-day-cell.d.ts +5 -8
  112. package/date-picker/date-picker-grid.d.ts +5 -8
  113. package/date-picker/date-picker-input.d.ts +6 -7
  114. package/date-picker/date-picker-month-cell-trigger.d.ts +6 -7
  115. package/date-picker/date-picker-month-cell.d.ts +5 -8
  116. package/date-picker/date-picker-month-select.d.ts +6 -7
  117. package/date-picker/date-picker-next-trigger.d.ts +6 -7
  118. package/date-picker/date-picker-positioner.d.ts +6 -7
  119. package/date-picker/date-picker-prev-trigger.d.ts +5 -8
  120. package/date-picker/date-picker-row-group.d.ts +6 -7
  121. package/date-picker/date-picker-row-header.d.ts +6 -7
  122. package/date-picker/date-picker-row.d.ts +6 -7
  123. package/date-picker/date-picker-trigger.d.ts +6 -7
  124. package/date-picker/date-picker-view-trigger.d.ts +5 -8
  125. package/date-picker/date-picker-year-cell-trigger.d.ts +6 -7
  126. package/date-picker/date-picker-year-cell.d.ts +5 -8
  127. package/date-picker/date-picker-year-select.cjs +0 -1
  128. package/date-picker/date-picker-year-select.d.ts +6 -12
  129. package/date-picker/date-picker-year-select.mjs +1 -1
  130. package/date-picker/index.d.ts +56 -111
  131. package/date-picker/use-date-picker.d.ts +2 -1
  132. package/dialog/dialog-backdrop.cjs +14 -8
  133. package/dialog/dialog-backdrop.d.ts +7 -10
  134. package/dialog/dialog-backdrop.mjs +14 -8
  135. package/dialog/dialog-close-trigger.d.ts +6 -7
  136. package/dialog/dialog-container.d.ts +6 -7
  137. package/dialog/dialog-content.cjs +8 -9
  138. package/dialog/dialog-content.d.ts +7 -10
  139. package/dialog/dialog-content.mjs +8 -9
  140. package/dialog/dialog-description.d.ts +6 -7
  141. package/dialog/dialog-title.d.ts +6 -7
  142. package/dialog/dialog-trigger.d.ts +6 -7
  143. package/dialog/index.d.ts +14 -32
  144. package/dialog/use-dialog.d.ts +2 -1
  145. package/editable/editable-area.d.ts +6 -7
  146. package/editable/editable-cancel-trigger.d.ts +6 -7
  147. package/editable/editable-control.d.ts +6 -7
  148. package/editable/editable-edit-trigger.d.ts +6 -7
  149. package/editable/editable-input.d.ts +6 -7
  150. package/editable/editable-label.d.ts +6 -7
  151. package/editable/editable-preview.d.ts +6 -7
  152. package/editable/editable-submit-trigger.d.ts +6 -7
  153. package/editable/editable.d.ts +5 -12
  154. package/editable/index.d.ts +23 -51
  155. package/editable/use-editable.d.ts +3 -3
  156. package/factory.d.ts +4 -1
  157. package/hover-card/hover-card-arrow-tip.d.ts +6 -7
  158. package/hover-card/hover-card-arrow.d.ts +6 -7
  159. package/hover-card/hover-card-content.cjs +8 -9
  160. package/hover-card/hover-card-content.d.ts +7 -10
  161. package/hover-card/hover-card-content.mjs +8 -9
  162. package/hover-card/hover-card-positioner.d.ts +6 -7
  163. package/hover-card/hover-card-trigger.d.ts +6 -7
  164. package/hover-card/hover-card.stories.d.ts +1 -1
  165. package/hover-card/index.d.ts +11 -23
  166. package/hover-card/use-hover-card.d.ts +2 -1
  167. package/index.cjs +38 -19
  168. package/index.d.ts +1 -0
  169. package/index.mjs +18 -7
  170. package/menu/index.d.ts +21 -54
  171. package/menu/menu-arrow-tip.d.ts +6 -7
  172. package/menu/menu-arrow.d.ts +6 -7
  173. package/menu/menu-content.cjs +11 -2
  174. package/menu/menu-content.d.ts +7 -8
  175. package/menu/menu-content.mjs +11 -2
  176. package/menu/menu-context-trigger.d.ts +6 -7
  177. package/menu/menu-context.d.ts +2 -3
  178. package/menu/menu-item-group-label.d.ts +5 -8
  179. package/menu/menu-item-group.d.ts +5 -8
  180. package/menu/menu-item.d.ts +5 -8
  181. package/menu/menu-option-item.d.ts +5 -10
  182. package/menu/menu-positioner.d.ts +6 -7
  183. package/menu/menu-separator.d.ts +6 -7
  184. package/menu/menu-trigger-item.d.ts +6 -7
  185. package/menu/menu-trigger.d.ts +6 -7
  186. package/menu/menu.d.ts +2 -1
  187. package/menu/menu.stories.d.ts +1 -1
  188. package/menu/use-menu.d.ts +2 -1
  189. package/number-input/index.d.ts +18 -41
  190. package/number-input/number-input-control.d.ts +6 -7
  191. package/number-input/number-input-decrement-trigger.d.ts +6 -7
  192. package/number-input/number-input-field.d.ts +6 -7
  193. package/number-input/number-input-increment-trigger.d.ts +6 -7
  194. package/number-input/number-input-label.d.ts +6 -7
  195. package/number-input/number-input-scrubber.d.ts +6 -7
  196. package/number-input/number-input.d.ts +5 -11
  197. package/number-input/number-input.stories.d.ts +2 -0
  198. package/number-input/use-number-input.cjs +2 -7
  199. package/number-input/use-number-input.d.ts +2 -2
  200. package/number-input/use-number-input.mjs +3 -8
  201. package/package.json +56 -49
  202. package/pagination/index.d.ts +16 -39
  203. package/pagination/pagination-ellipsis.d.ts +5 -8
  204. package/pagination/pagination-list-item.d.ts +6 -7
  205. package/pagination/pagination-list.d.ts +6 -7
  206. package/pagination/pagination-next-page-trigger.d.ts +6 -7
  207. package/pagination/pagination-page-trigger.d.ts +5 -8
  208. package/pagination/pagination-prev-page-trigger.d.ts +6 -7
  209. package/pagination/pagination.d.ts +4 -8
  210. package/pagination/use-pagination.d.ts +2 -2
  211. package/pin-input/index.d.ts +11 -30
  212. package/pin-input/pin-input-control.cjs +3 -6
  213. package/pin-input/pin-input-control.d.ts +6 -7
  214. package/pin-input/pin-input-control.mjs +4 -7
  215. package/pin-input/pin-input-field.d.ts +5 -8
  216. package/pin-input/pin-input-label.d.ts +6 -7
  217. package/pin-input/pin-input.cjs +6 -3
  218. package/pin-input/pin-input.d.ts +5 -11
  219. package/pin-input/pin-input.mjs +7 -4
  220. package/pin-input/use-pin-input.d.ts +2 -2
  221. package/popover/index.d.ts +19 -39
  222. package/popover/popover-anchor.d.ts +6 -7
  223. package/popover/popover-arrow-tip.d.ts +6 -7
  224. package/popover/popover-arrow.d.ts +6 -7
  225. package/popover/popover-close-trigger.d.ts +6 -7
  226. package/popover/popover-content.cjs +8 -9
  227. package/popover/popover-content.d.ts +7 -10
  228. package/popover/popover-content.mjs +8 -9
  229. package/popover/popover-description.d.ts +6 -7
  230. package/popover/popover-positioner.d.ts +6 -7
  231. package/popover/popover-title.d.ts +6 -7
  232. package/popover/popover-trigger.d.ts +6 -7
  233. package/popover/use-popover.d.ts +2 -1
  234. package/presence/presence.d.ts +2 -2
  235. package/presence/use-presence.d.ts +2 -1
  236. package/pressable/index.d.ts +4 -24
  237. package/pressable/pressable.d.ts +5 -15
  238. package/pressable/use-pressable.d.ts +2 -1
  239. package/radio-group/index.d.ts +15 -45
  240. package/radio-group/radio-context.d.ts +2 -12
  241. package/radio-group/radio-control.cjs +4 -7
  242. package/radio-group/radio-control.d.ts +6 -7
  243. package/radio-group/radio-control.mjs +5 -8
  244. package/radio-group/radio-group-label.d.ts +6 -7
  245. package/radio-group/radio-group.cjs +0 -1
  246. package/radio-group/radio-group.d.ts +5 -11
  247. package/radio-group/radio-group.mjs +0 -1
  248. package/radio-group/radio-label.d.ts +6 -7
  249. package/radio-group/radio.cjs +12 -4
  250. package/radio-group/radio.d.ts +6 -18
  251. package/radio-group/radio.mjs +13 -5
  252. package/radio-group/use-radio-group.d.ts +2 -2
  253. package/range-slider/index.d.ts +20 -54
  254. package/range-slider/range-slider-control.d.ts +6 -7
  255. package/range-slider/range-slider-label.d.ts +6 -7
  256. package/range-slider/range-slider-marker-group.d.ts +6 -7
  257. package/range-slider/range-slider-marker.d.ts +5 -8
  258. package/range-slider/range-slider-output.d.ts +4 -8
  259. package/range-slider/range-slider-range.d.ts +6 -7
  260. package/range-slider/range-slider-thumb.cjs +5 -5
  261. package/range-slider/range-slider-thumb.d.ts +5 -8
  262. package/range-slider/range-slider-thumb.mjs +5 -5
  263. package/range-slider/range-slider-track.d.ts +6 -7
  264. package/range-slider/range-slider.d.ts +4 -11
  265. package/range-slider/use-range-slider.cjs +3 -1
  266. package/range-slider/use-range-slider.d.ts +2 -2
  267. package/range-slider/use-range-slider.mjs +3 -1
  268. package/rating-group/index.d.ts +10 -31
  269. package/rating-group/rating-group-control.cjs +4 -7
  270. package/rating-group/rating-group-control.d.ts +4 -8
  271. package/rating-group/rating-group-control.mjs +5 -8
  272. package/rating-group/rating-group-label.d.ts +6 -7
  273. package/rating-group/rating-group.cjs +6 -3
  274. package/rating-group/rating-group.d.ts +5 -11
  275. package/rating-group/rating-group.mjs +7 -4
  276. package/rating-group/rating-group.stories.d.ts +1 -1
  277. package/rating-group/rating.d.ts +4 -8
  278. package/rating-group/use-rating-group.d.ts +2 -2
  279. package/run-if-fn.d.ts +0 -1
  280. package/segment-group/index.d.ts +18 -50
  281. package/segment-group/segment-context.d.ts +2 -12
  282. package/segment-group/segment-control.cjs +4 -7
  283. package/segment-group/segment-control.d.ts +6 -7
  284. package/segment-group/segment-control.mjs +5 -8
  285. package/segment-group/segment-group-indicator.d.ts +6 -7
  286. package/segment-group/segment-group-label.d.ts +6 -7
  287. package/segment-group/segment-group.cjs +0 -1
  288. package/segment-group/segment-group.d.ts +5 -11
  289. package/segment-group/segment-group.mjs +0 -1
  290. package/segment-group/segment-label.d.ts +6 -7
  291. package/segment-group/segment.cjs +12 -4
  292. package/segment-group/segment.d.ts +6 -18
  293. package/segment-group/segment.mjs +13 -5
  294. package/segment-group/use-segment-group.d.ts +2 -2
  295. package/select/index.cjs +30 -18
  296. package/select/index.d.ts +44 -46
  297. package/select/index.mjs +19 -9
  298. package/select/select-clear-trigger.cjs +21 -0
  299. package/select/select-clear-trigger.d.ts +7 -0
  300. package/select/select-clear-trigger.mjs +17 -0
  301. package/select/select-content.cjs +8 -9
  302. package/select/select-content.d.ts +7 -10
  303. package/select/select-content.mjs +8 -9
  304. package/select/select-context.d.ts +3 -2
  305. package/select/select-control.cjs +19 -0
  306. package/select/select-control.d.ts +7 -0
  307. package/select/select-control.mjs +15 -0
  308. package/select/select-item-context.cjs +15 -0
  309. package/select/select-item-context.d.ts +5 -0
  310. package/select/select-item-context.mjs +10 -0
  311. package/select/{select-option-group.cjs → select-item-group-label.cjs} +8 -6
  312. package/select/select-item-group-label.d.ts +7 -0
  313. package/select/{select-option-group.mjs → select-item-group-label.mjs} +8 -6
  314. package/select/select-item-group.cjs +21 -0
  315. package/select/select-item-group.d.ts +7 -0
  316. package/select/select-item-group.mjs +17 -0
  317. package/select/{select-option-group-label.cjs → select-item-indicator.cjs} +7 -6
  318. package/select/select-item-indicator.d.ts +7 -0
  319. package/select/select-item-indicator.mjs +19 -0
  320. package/select/select-item-text.cjs +21 -0
  321. package/select/select-item-text.d.ts +7 -0
  322. package/select/select-item-text.mjs +17 -0
  323. package/select/select-item.cjs +25 -0
  324. package/select/select-item.d.ts +11 -0
  325. package/select/select-item.mjs +21 -0
  326. package/select/select-label.cjs +2 -2
  327. package/select/select-label.d.ts +6 -7
  328. package/select/select-label.mjs +2 -2
  329. package/select/select-positioner.cjs +2 -2
  330. package/select/select-positioner.d.ts +6 -7
  331. package/select/select-positioner.mjs +2 -2
  332. package/select/select-trigger.cjs +2 -2
  333. package/select/select-trigger.d.ts +6 -7
  334. package/select/select-trigger.mjs +2 -2
  335. package/select/select-value.cjs +19 -0
  336. package/select/select-value.d.ts +7 -0
  337. package/select/select-value.mjs +15 -0
  338. package/select/select.anatomy.cjs +12 -0
  339. package/select/select.anatomy.d.ts +3 -1
  340. package/select/select.anatomy.mjs +7 -0
  341. package/select/select.cjs +43 -30
  342. package/select/select.d.ts +9 -6
  343. package/select/select.mjs +43 -30
  344. package/select/select.stories.d.ts +3 -0
  345. package/select/use-select.cjs +13 -3
  346. package/select/use-select.d.ts +8 -6
  347. package/select/use-select.mjs +13 -3
  348. package/slider/index.d.ts +18 -45
  349. package/slider/slider-control.d.ts +6 -7
  350. package/slider/slider-label.d.ts +6 -7
  351. package/slider/slider-marker-group.d.ts +6 -7
  352. package/slider/slider-marker.d.ts +5 -8
  353. package/slider/slider-output.d.ts +5 -8
  354. package/slider/slider-range.d.ts +6 -7
  355. package/slider/slider-thumb.cjs +3 -6
  356. package/slider/slider-thumb.d.ts +6 -7
  357. package/slider/slider-thumb.mjs +4 -7
  358. package/slider/slider-track.d.ts +6 -7
  359. package/slider/slider.cjs +7 -4
  360. package/slider/slider.d.ts +4 -8
  361. package/slider/slider.mjs +8 -5
  362. package/slider/use-slider.cjs +2 -7
  363. package/slider/use-slider.d.ts +2 -2
  364. package/slider/use-slider.mjs +3 -8
  365. package/splitter/index.d.ts +10 -39
  366. package/splitter/splitter-panel.d.ts +5 -8
  367. package/splitter/splitter-resize-trigger.d.ts +5 -8
  368. package/splitter/splitter.d.ts +4 -17
  369. package/splitter/splitter.stories.d.ts +1 -1
  370. package/splitter/use-splitter.d.ts +2 -2
  371. package/switch/index.d.ts +12 -25
  372. package/switch/switch-control.cjs +3 -6
  373. package/switch/switch-control.d.ts +6 -7
  374. package/switch/switch-control.mjs +4 -7
  375. package/switch/switch-label.d.ts +6 -7
  376. package/switch/switch-thumb.d.ts +6 -7
  377. package/switch/switch.cjs +4 -2
  378. package/switch/switch.d.ts +4 -9
  379. package/switch/switch.mjs +5 -3
  380. package/switch/switch.stories.d.ts +1 -0
  381. package/switch/switch.test.d.ts +1 -0
  382. package/switch/use-switch.d.ts +3 -3
  383. package/tabs/index.d.ts +15 -35
  384. package/tabs/tab-content.d.ts +6 -7
  385. package/tabs/tab-indicator.d.ts +6 -7
  386. package/tabs/tab-list.d.ts +6 -7
  387. package/tabs/tab-trigger.d.ts +5 -8
  388. package/tabs/tabs.cjs +0 -1
  389. package/tabs/tabs.d.ts +5 -11
  390. package/tabs/tabs.mjs +0 -1
  391. package/tabs/tabs.stories.d.ts +1 -1
  392. package/tabs/use-tabs.d.ts +2 -2
  393. package/tags-input/index.d.ts +17 -44
  394. package/tags-input/tag-delete-trigger.d.ts +5 -8
  395. package/tags-input/tag-input.d.ts +5 -8
  396. package/tags-input/tag.d.ts +5 -8
  397. package/tags-input/tags-input-clear-trigger.d.ts +6 -7
  398. package/tags-input/tags-input-control.cjs +3 -6
  399. package/tags-input/tags-input-control.d.ts +6 -7
  400. package/tags-input/tags-input-control.mjs +4 -7
  401. package/tags-input/tags-input-field.d.ts +6 -7
  402. package/tags-input/tags-input-label.d.ts +6 -7
  403. package/tags-input/tags-input.cjs +7 -4
  404. package/tags-input/tags-input.d.ts +4 -8
  405. package/tags-input/tags-input.mjs +8 -5
  406. package/tags-input/use-tags-input.d.ts +2 -2
  407. package/toast/index.d.ts +13 -30
  408. package/toast/toast-close-trigger.d.ts +6 -7
  409. package/toast/toast-description.d.ts +6 -7
  410. package/toast/toast-group.d.ts +4 -8
  411. package/toast/toast-provider.cjs +0 -1
  412. package/toast/toast-provider.d.ts +3 -4
  413. package/toast/toast-provider.mjs +1 -1
  414. package/toast/toast-title.d.ts +6 -7
  415. package/toast/toast.d.ts +5 -8
  416. package/toast/toast.stories.d.ts +1 -1
  417. package/toggle-group/index.cjs +19 -0
  418. package/toggle-group/index.d.ts +20 -0
  419. package/toggle-group/index.mjs +12 -0
  420. package/toggle-group/toggle-group-context.cjs +15 -0
  421. package/toggle-group/toggle-group-context.d.ts +5 -0
  422. package/toggle-group/toggle-group-context.mjs +10 -0
  423. package/toggle-group/toggle-group.anatomy.cjs +10 -0
  424. package/toggle-group/toggle-group.anatomy.d.ts +2 -0
  425. package/toggle-group/toggle-group.anatomy.mjs +6 -0
  426. package/toggle-group/toggle-group.cjs +35 -0
  427. package/toggle-group/toggle-group.d.ts +7 -0
  428. package/toggle-group/toggle-group.mjs +31 -0
  429. package/toggle-group/toggle-group.stories.d.ts +9 -0
  430. package/toggle-group/toggle-group.test.d.ts +1 -0
  431. package/toggle-group/toggle.cjs +21 -0
  432. package/toggle-group/toggle.d.ts +11 -0
  433. package/toggle-group/toggle.mjs +17 -0
  434. package/toggle-group/use-toggle-group.cjs +49 -0
  435. package/toggle-group/use-toggle-group.d.ts +7 -0
  436. package/toggle-group/use-toggle-group.mjs +26 -0
  437. package/tooltip/index.d.ts +11 -23
  438. package/tooltip/tooltip-arrow-tip.d.ts +6 -7
  439. package/tooltip/tooltip-arrow.d.ts +6 -7
  440. package/tooltip/tooltip-content.cjs +5 -6
  441. package/tooltip/tooltip-content.d.ts +7 -10
  442. package/tooltip/tooltip-content.mjs +5 -6
  443. package/tooltip/tooltip-positioner.d.ts +6 -7
  444. package/tooltip/tooltip-trigger.d.ts +6 -7
  445. package/tooltip/use-tooltip.d.ts +2 -1
  446. package/types.d.ts +1 -0
  447. package/use-event.cjs +23 -0
  448. package/use-event.d.ts +12 -0
  449. package/use-event.mjs +19 -0
  450. package/use-latest-ref.cjs +14 -0
  451. package/use-latest-ref.mjs +10 -0
  452. package/accordion/accordion-item-presence.cjs +0 -16
  453. package/accordion/accordion-item-presence.d.ts +0 -4
  454. package/accordion/accordion-item-presence.mjs +0 -12
  455. package/combobox/combobox-option-group-label.d.ts +0 -10
  456. package/combobox/combobox-option-group.d.ts +0 -10
  457. package/combobox/combobox-option.cjs +0 -27
  458. package/combobox/combobox-option.d.ts +0 -14
  459. package/combobox/combobox-option.mjs +0 -23
  460. package/combobox/combobox-presence.cjs +0 -16
  461. package/combobox/combobox-presence.d.ts +0 -4
  462. package/combobox/combobox-presence.mjs +0 -12
  463. package/dialog/dialog-presence.cjs +0 -16
  464. package/dialog/dialog-presence.d.ts +0 -4
  465. package/dialog/dialog-presence.mjs +0 -12
  466. package/hover-card/hover-card-presence.cjs +0 -16
  467. package/hover-card/hover-card-presence.d.ts +0 -4
  468. package/hover-card/hover-card-presence.mjs +0 -12
  469. package/popover/popover-presence.cjs +0 -16
  470. package/popover/popover-presence.d.ts +0 -4
  471. package/popover/popover-presence.mjs +0 -12
  472. package/select/select-option-group-label.d.ts +0 -13
  473. package/select/select-option-group-label.mjs +0 -18
  474. package/select/select-option-group.d.ts +0 -10
  475. package/select/select-option.cjs +0 -26
  476. package/select/select-option.mjs +0 -22
  477. package/select/select-presence.cjs +0 -16
  478. package/select/select-presence.d.ts +0 -4
  479. package/select/select-presence.mjs +0 -12
  480. package/tooltip/tooltip-presence.cjs +0 -16
  481. package/tooltip/tooltip-presence.d.ts +0 -4
  482. package/tooltip/tooltip-presence.mjs +0 -12
@@ -1,56 +1,37 @@
1
1
  import { UseTagsInputProps } from './use-tags-input';
2
+ import { HTMLArkProps } from '..';
2
3
  import { Assign } from '../types';
3
- import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, ReactNode, RefAttributes, ButtonHTMLAttributes, HTMLAttributes, LabelHTMLAttributes } from 'react';
4
+ import { ForwardRefExoticComponent, ReactNode, RefAttributes, DetailedHTMLProps, ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
4
5
  /// <reference types="react" />
5
6
  import { Tag, type TagProps } from './tag';
6
7
  import { TagDeleteTrigger, type TagDeleteTriggerProps } from './tag-delete-trigger';
7
8
  import { TagInput, type TagInputProps } from './tag-input';
8
9
  import { type TagsInputProps } from './tags-input';
9
10
  import { TagsInputClearTrigger, type TagsInputClearTriggerProps } from './tags-input-clear-trigger';
10
- import { useTagsInputContext } from './tags-input-context';
11
+ import { useTagsInputContext, type TagsInputContext } from './tags-input-context';
11
12
  import { TagsInputControl, type TagsInputControlProps } from './tags-input-control';
12
13
  import { TagsInputInput, type TagsInputInputProps } from './tags-input-field';
13
14
  import { TagsInputLabel, type TagsInputLabelProps } from './tags-input-label';
14
15
  import { tagsInputAnatomy } from './tags-input.anatomy';
15
- declare const TagsInput: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
16
- ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
17
- } & {
18
- asChild?: boolean | undefined;
19
- }, "ref">, UseTagsInputProps>, "children"> & {
16
+ declare const TagsInput: ForwardRefExoticComponent<Omit<Assign<HTMLArkProps<"input">, UseTagsInputProps>, "children"> & {
20
17
  children?: ReactNode | ((pages: UseTagsInputProps) => ReactNode);
21
18
  } & RefAttributes<HTMLInputElement>> & {
22
- Root: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
23
- ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
24
- } & {
25
- asChild?: boolean | undefined;
26
- }, "ref">, UseTagsInputProps>, "children"> & {
19
+ Root: ForwardRefExoticComponent<Omit<Assign<HTMLArkProps<"input">, UseTagsInputProps>, "children"> & {
27
20
  children?: ReactNode | ((pages: UseTagsInputProps) => ReactNode);
28
21
  } & RefAttributes<HTMLInputElement>>;
29
- ClearTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
30
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
31
- } & {
32
- asChild?: boolean | undefined;
33
- }, "ref"> & RefAttributes<HTMLButtonElement>>;
34
- Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
35
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
36
- } & {
22
+ ClearTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
37
23
  asChild?: boolean | undefined;
38
- }, "ref"> & RefAttributes<HTMLDivElement>>;
39
- Input: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
40
- ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
41
- } & {
24
+ } & RefAttributes<HTMLButtonElement>>;
25
+ Control: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
42
26
  asChild?: boolean | undefined;
43
- }, "ref"> & RefAttributes<HTMLInputElement>>;
44
- Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
45
- ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
46
- } & {
27
+ } & RefAttributes<HTMLDivElement>>;
28
+ Input: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
47
29
  asChild?: boolean | undefined;
48
- }, "ref"> & RefAttributes<HTMLLabelElement>>;
49
- Tag: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
50
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
51
- } & {
30
+ } & RefAttributes<HTMLInputElement>>;
31
+ Label: ForwardRefExoticComponent<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
52
32
  asChild?: boolean | undefined;
53
- }, "ref">, keyof {
33
+ } & RefAttributes<HTMLLabelElement>>;
34
+ Tag: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, keyof {
54
35
  index: string | number;
55
36
  value: string;
56
37
  disabled?: boolean | undefined;
@@ -59,11 +40,7 @@ declare const TagsInput: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<Detaile
59
40
  value: string;
60
41
  disabled?: boolean | undefined;
61
42
  } & RefAttributes<HTMLDivElement>>;
62
- TagInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
63
- ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
64
- } & {
65
- asChild?: boolean | undefined;
66
- }, "ref">, keyof {
43
+ TagInput: ForwardRefExoticComponent<Omit<HTMLArkProps<"input">, keyof {
67
44
  index: string | number;
68
45
  value: string;
69
46
  disabled?: boolean | undefined;
@@ -72,11 +49,7 @@ declare const TagsInput: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<Detaile
72
49
  value: string;
73
50
  disabled?: boolean | undefined;
74
51
  } & RefAttributes<HTMLInputElement>>;
75
- TagDeleteTrigger: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
76
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
77
- } & {
78
- asChild?: boolean | undefined;
79
- }, "ref">, keyof {
52
+ TagDeleteTrigger: ForwardRefExoticComponent<Omit<HTMLArkProps<"button">, keyof {
80
53
  index: string | number;
81
54
  value: string;
82
55
  disabled?: boolean | undefined;
@@ -87,4 +60,4 @@ declare const TagsInput: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<Detaile
87
60
  } & RefAttributes<HTMLButtonElement>>;
88
61
  };
89
62
  export { Tag, TagDeleteTrigger, TagInput, TagsInput, TagsInputClearTrigger, TagsInputControl, TagsInputInput, TagsInputLabel, tagsInputAnatomy, useTagsInputContext, };
90
- export type { TagDeleteTriggerProps, TagInputProps, TagProps, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputInputProps, TagsInputLabelProps, TagsInputProps, };
63
+ export type { TagDeleteTriggerProps, TagInputProps, TagProps, TagsInputClearTriggerProps, TagsInputContext, TagsInputControlProps, TagsInputInputProps, TagsInputLabelProps, TagsInputProps, };
@@ -1,15 +1,12 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
3
4
  import { type Assign } from '../types';
4
5
  type _TagProps = {
5
6
  index: string | number;
6
7
  value: string;
7
8
  disabled?: boolean;
8
9
  };
9
- export type TagDeleteTriggerProps = Assign<ComponentPropsWithoutRef<typeof ark.button>, _TagProps>;
10
- export declare const TagDeleteTrigger: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
11
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
12
- } & {
13
- asChild?: boolean | undefined;
14
- }, "ref">, keyof _TagProps> & _TagProps & RefAttributes<HTMLButtonElement>>;
10
+ export type TagDeleteTriggerProps = Assign<HTMLArkProps<'button'>, _TagProps>;
11
+ export declare const TagDeleteTrigger: ForwardRefExoticComponent<Omit<HTMLArkProps<"button">, keyof _TagProps> & _TagProps & RefAttributes<HTMLButtonElement>>;
15
12
  export {};
@@ -1,15 +1,12 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
3
4
  import { type Assign } from '../types';
4
5
  type _TagProps = {
5
6
  index: string | number;
6
7
  value: string;
7
8
  disabled?: boolean;
8
9
  };
9
- export type TagInputProps = Assign<ComponentPropsWithoutRef<typeof ark.input>, _TagProps>;
10
- export declare const TagInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
11
- ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
12
- } & {
13
- asChild?: boolean | undefined;
14
- }, "ref">, keyof _TagProps> & _TagProps & RefAttributes<HTMLInputElement>>;
10
+ export type TagInputProps = Assign<HTMLArkProps<'input'>, _TagProps>;
11
+ export declare const TagInput: ForwardRefExoticComponent<Omit<HTMLArkProps<"input">, keyof _TagProps> & _TagProps & RefAttributes<HTMLInputElement>>;
15
12
  export {};
@@ -1,15 +1,12 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
3
4
  import { type Assign } from '../types';
4
5
  type _TagProps = {
5
6
  index: string | number;
6
7
  value: string;
7
8
  disabled?: boolean;
8
9
  };
9
- export type TagProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, _TagProps>;
10
- export declare const Tag: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
12
- } & {
13
- asChild?: boolean | undefined;
14
- }, "ref">, keyof _TagProps> & _TagProps & RefAttributes<HTMLDivElement>>;
10
+ export type TagProps = Assign<HTMLArkProps<'div'>, _TagProps>;
11
+ export declare const Tag: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, keyof _TagProps> & _TagProps & RefAttributes<HTMLDivElement>>;
15
12
  export {};
@@ -1,8 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
3
- export type TagsInputClearTriggerProps = ComponentPropsWithoutRef<typeof ark.button>;
4
- export declare const TagsInputClearTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
6
- } & {
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export type TagsInputClearTriggerProps = HTMLArkProps<'button'>;
5
+ export declare const TagsInputClearTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
7
6
  asChild?: boolean | undefined;
8
- }, "ref"> & RefAttributes<HTMLButtonElement>>;
7
+ } & RefAttributes<HTMLButtonElement>>;
@@ -10,12 +10,9 @@ const factory = require('../factory.cjs');
10
10
  const tagsInputContext = require('./tags-input-context.cjs');
11
11
 
12
12
  const TagsInputControl = react.forwardRef((props, ref) => {
13
- const { controlProps, hiddenInputProps } = tagsInputContext.useTagsInputContext();
14
- const mergedProps = react$1.mergeProps(controlProps, props);
15
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
16
- /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: props.children }),
17
- /* @__PURE__ */ jsxRuntime.jsx("input", { ...hiddenInputProps })
18
- ] });
13
+ const api = tagsInputContext.useTagsInputContext();
14
+ const mergedProps = react$1.mergeProps(api.controlProps, props);
15
+ return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
19
16
  });
20
17
  TagsInputControl.displayName = "TagsInputControl";
21
18
 
@@ -1,8 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
3
- export type TagsInputControlProps = ComponentPropsWithoutRef<typeof ark.div>;
4
- export declare const TagsInputControl: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
6
- } & {
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export type TagsInputControlProps = HTMLArkProps<'div'>;
5
+ export declare const TagsInputControl: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
6
  asChild?: boolean | undefined;
8
- }, "ref"> & RefAttributes<HTMLDivElement>>;
7
+ } & RefAttributes<HTMLDivElement>>;
@@ -1,17 +1,14 @@
1
1
  'use client';
2
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { jsx } from 'react/jsx-runtime';
3
3
  import { mergeProps } from '@zag-js/react';
4
4
  import { forwardRef } from 'react';
5
5
  import { ark } from '../factory.mjs';
6
6
  import { useTagsInputContext } from './tags-input-context.mjs';
7
7
 
8
8
  const TagsInputControl = forwardRef((props, ref) => {
9
- const { controlProps, hiddenInputProps } = useTagsInputContext();
10
- const mergedProps = mergeProps(controlProps, props);
11
- return /* @__PURE__ */ jsxs(Fragment, { children: [
12
- /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: props.children }),
13
- /* @__PURE__ */ jsx("input", { ...hiddenInputProps })
14
- ] });
9
+ const api = useTagsInputContext();
10
+ const mergedProps = mergeProps(api.controlProps, props);
11
+ return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
15
12
  });
16
13
  TagsInputControl.displayName = "TagsInputControl";
17
14
 
@@ -1,8 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
3
- export type TagsInputInputProps = ComponentPropsWithoutRef<typeof ark.input>;
4
- export declare const TagsInputInput: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
5
- ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
6
- } & {
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export type TagsInputInputProps = HTMLArkProps<'input'>;
5
+ export declare const TagsInputInput: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
7
6
  asChild?: boolean | undefined;
8
- }, "ref"> & RefAttributes<HTMLInputElement>>;
7
+ } & RefAttributes<HTMLInputElement>>;
@@ -1,8 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
3
- export type TagsInputLabelProps = ComponentPropsWithoutRef<typeof ark.label>;
4
- export declare const TagsInputLabel: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
5
- ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
6
- } & {
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export type TagsInputLabelProps = HTMLArkProps<'label'>;
5
+ export declare const TagsInputLabel: ForwardRefExoticComponent<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
7
6
  asChild?: boolean | undefined;
8
- }, "ref"> & RefAttributes<HTMLLabelElement>>;
7
+ } & RefAttributes<HTMLLabelElement>>;
@@ -46,10 +46,13 @@ const TagsInput = react.forwardRef((props, ref) => {
46
46
  "value"
47
47
  ]
48
48
  );
49
- const tagsInput = useTagsInput.useTagsInput(useTagsInputProps);
50
- const mergedProps = react$1.mergeProps(tagsInput.rootProps, inputProps);
51
- const view = runIfFn.runIfFn(children, tagsInput);
52
- return /* @__PURE__ */ jsxRuntime.jsx(tagsInputContext.TagsInputProvider, { value: tagsInput, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }) });
49
+ const api = useTagsInput.useTagsInput(useTagsInputProps);
50
+ const mergedProps = react$1.mergeProps(api.rootProps, inputProps);
51
+ const view = runIfFn.runIfFn(children, api);
52
+ return /* @__PURE__ */ jsxRuntime.jsxs(tagsInputContext.TagsInputProvider, { value: api, children: [
53
+ /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }),
54
+ /* @__PURE__ */ jsxRuntime.jsx("input", { ...api.hiddenInputProps })
55
+ ] });
53
56
  });
54
57
  TagsInput.displayName = "TagsInput";
55
58
 
@@ -1,14 +1,10 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
- import { ark } from '../factory';
1
+ import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react';
2
+ import { type HTMLArkProps } from '../factory';
3
3
  import { type Assign } from '../types';
4
4
  import { type UseTagsInputProps } from './use-tags-input';
5
- export type TagsInputProps = Assign<Assign<ComponentPropsWithoutRef<typeof ark.input>, UseTagsInputProps>, {
5
+ export type TagsInputProps = Assign<Assign<HTMLArkProps<'input'>, UseTagsInputProps>, {
6
6
  children?: ReactNode | ((pages: UseTagsInputProps) => ReactNode);
7
7
  }>;
8
- export declare const TagsInput: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
9
- ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
10
- } & {
11
- asChild?: boolean | undefined;
12
- }, "ref">, UseTagsInputProps>, "children"> & {
8
+ export declare const TagsInput: ForwardRefExoticComponent<Omit<Assign<HTMLArkProps<"input">, UseTagsInputProps>, "children"> & {
13
9
  children?: ReactNode | ((pages: UseTagsInputProps) => ReactNode);
14
10
  } & RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx } from 'react/jsx-runtime';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { mergeProps } from '@zag-js/react';
4
4
  import { forwardRef } from 'react';
5
5
  import { createSplitProps } from '../create-split-props.mjs';
@@ -42,10 +42,13 @@ const TagsInput = forwardRef((props, ref) => {
42
42
  "value"
43
43
  ]
44
44
  );
45
- const tagsInput = useTagsInput(useTagsInputProps);
46
- const mergedProps = mergeProps(tagsInput.rootProps, inputProps);
47
- const view = runIfFn(children, tagsInput);
48
- return /* @__PURE__ */ jsx(TagsInputProvider, { value: tagsInput, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }) });
45
+ const api = useTagsInput(useTagsInputProps);
46
+ const mergedProps = mergeProps(api.rootProps, inputProps);
47
+ const view = runIfFn(children, api);
48
+ return /* @__PURE__ */ jsxs(TagsInputProvider, { value: api, children: [
49
+ /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }),
50
+ /* @__PURE__ */ jsx("input", { ...api.hiddenInputProps })
51
+ ] });
49
52
  });
50
53
  TagsInput.displayName = "TagsInput";
51
54
 
@@ -1,7 +1,7 @@
1
1
  import * as tagsInput from '@zag-js/tags-input';
2
2
  import { type Optional } from '../types';
3
- export type UseTagsInputProps = Optional<tagsInput.Context, 'id'> & {
3
+ export interface UseTagsInputProps extends Optional<tagsInput.Context, 'id'> {
4
4
  defaultValue?: tagsInput.Context['value'];
5
- };
5
+ }
6
6
  export type UseTagsInputReturn = tagsInput.Api;
7
7
  export declare const useTagsInput: (props: UseTagsInputProps) => UseTagsInputReturn;
package/toast/index.d.ts CHANGED
@@ -1,52 +1,35 @@
1
1
  import { Placement, Service } from '@zag-js/toast';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
  import { UseToastItemProps } from './use-toast-item';
4
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
4
+ import { HTMLArkProps } from '..';
5
+ import { ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, HTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
5
6
  /// <reference types="react" />
6
7
  import { Toast as ToastRoot, type ToastProps } from './toast';
7
8
  import { ToastCloseTrigger, type ToastCloseTriggerProps } from './toast-close-trigger';
8
9
  import { ToastDescription, type ToastDescriptionProps } from './toast-description';
9
10
  import { ToastGroup, type ToastGroupProps } from './toast-group';
10
- import { useToastItemContext } from './toast-item-context';
11
+ import { useToastItemContext, type ToastItemContext } from './toast-item-context';
11
12
  import { ToastPlacements, type ToastPlacementsProps } from './toast-placements';
12
13
  import { ToastProvider, useToast, type ToastProviderProps } from './toast-provider';
13
14
  import { ToastTitle, type ToastTitleProps } from './toast-title';
14
15
  import { toastAnatomy } from './toast.anatomy';
15
- declare const Toast: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
17
- } & {
18
- asChild?: boolean | undefined;
19
- }, "ref">, "toast"> & UseToastItemProps & RefAttributes<HTMLDivElement>> & {
16
+ declare const Toast: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "toast"> & UseToastItemProps & RefAttributes<HTMLDivElement>> & {
20
17
  Provider: (props: ToastProviderProps) => JSX.Element;
21
- Title: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
22
- ref?: ((instance: HTMLHeadingElement | null) => void) | RefObject<HTMLHeadingElement> | null | undefined;
23
- } & {
18
+ Title: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
24
19
  asChild?: boolean | undefined;
25
- }, "ref"> & RefAttributes<HTMLHeadingElement>>;
26
- Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
27
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
28
- } & {
20
+ } & RefAttributes<HTMLHeadingElement>>;
21
+ Root: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "toast"> & UseToastItemProps & RefAttributes<HTMLDivElement>>;
22
+ Description: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
29
23
  asChild?: boolean | undefined;
30
- }, "ref">, "toast"> & UseToastItemProps & RefAttributes<HTMLDivElement>>;
31
- Description: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
32
- ref?: ((instance: HTMLParagraphElement | null) => void) | RefObject<HTMLParagraphElement> | null | undefined;
33
- } & {
24
+ } & RefAttributes<HTMLParagraphElement>>;
25
+ CloseTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
34
26
  asChild?: boolean | undefined;
35
- }, "ref"> & RefAttributes<HTMLParagraphElement>>;
36
- CloseTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
37
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
38
- } & {
39
- asChild?: boolean | undefined;
40
- }, "ref"> & RefAttributes<HTMLButtonElement>>;
27
+ } & RefAttributes<HTMLButtonElement>>;
41
28
  Placements: (props: ToastPlacementsProps) => JSX.Element;
42
- Group: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
43
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
44
- } & {
45
- asChild?: boolean | undefined;
46
- }, "ref">, "children" | "placement"> & {
29
+ Group: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "children" | "placement"> & {
47
30
  placement: Placement;
48
31
  children?: ReactNode | ((toasts: Service[]) => ReactNode);
49
32
  } & RefAttributes<HTMLDivElement>>;
50
33
  };
51
34
  export { Toast, ToastCloseTrigger, ToastDescription, ToastGroup, ToastPlacements, ToastProvider, ToastRoot, ToastTitle, toastAnatomy, useToast, useToastItemContext, };
52
- export type { ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastPlacementsProps, ToastProps, ToastProviderProps, ToastTitleProps, };
35
+ export type { ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastItemContext, ToastPlacementsProps, ToastProps, ToastProviderProps, ToastTitleProps, };
@@ -1,8 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
3
- export type ToastCloseTriggerProps = ComponentPropsWithoutRef<typeof ark.button>;
4
- export declare const ToastCloseTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
6
- } & {
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export type ToastCloseTriggerProps = HTMLArkProps<'button'>;
5
+ export declare const ToastCloseTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
7
6
  asChild?: boolean | undefined;
8
- }, "ref"> & RefAttributes<HTMLButtonElement>>;
7
+ } & RefAttributes<HTMLButtonElement>>;
@@ -1,8 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
3
- export type ToastDescriptionProps = ComponentPropsWithoutRef<typeof ark.p>;
4
- export declare const ToastDescription: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
5
- ref?: ((instance: HTMLParagraphElement | null) => void) | RefObject<HTMLParagraphElement> | null | undefined;
6
- } & {
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export type ToastDescriptionProps = HTMLArkProps<'p'>;
5
+ export declare const ToastDescription: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
7
6
  asChild?: boolean | undefined;
8
- }, "ref"> & RefAttributes<HTMLParagraphElement>>;
7
+ } & RefAttributes<HTMLParagraphElement>>;
@@ -1,16 +1,12 @@
1
1
  import { type Placement, type Service } from '@zag-js/toast';
2
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef, type ReactNode } from 'react';
3
- import { ark } from '../factory';
2
+ import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react';
3
+ import { type HTMLArkProps } from '../factory';
4
4
  import { type Assign } from '../types';
5
- export type ToastGroupProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, {
5
+ export type ToastGroupProps = Assign<HTMLArkProps<'div'>, {
6
6
  placement: Placement;
7
7
  children?: ReactNode | ((toasts: Service[]) => ReactNode);
8
8
  }>;
9
- export declare const ToastGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
11
- } & {
12
- asChild?: boolean | undefined;
13
- }, "ref">, "children" | "placement"> & {
9
+ export declare const ToastGroup: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "children" | "placement"> & {
14
10
  placement: Placement;
15
11
  children?: ReactNode | ((toasts: Service[]) => ReactNode);
16
12
  } & RefAttributes<HTMLDivElement>>;
@@ -40,6 +40,5 @@ const ToastProvider = (props) => {
40
40
  return /* @__PURE__ */ jsxRuntime.jsx(ToastContextProvider, { value: api, children });
41
41
  };
42
42
 
43
- exports.ToastContextProvider = ToastContextProvider;
44
43
  exports.ToastProvider = ToastProvider;
45
44
  exports.useToast = useToast;
@@ -1,11 +1,10 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import { PropTypes } from '@zag-js/types';
3
3
  import * as toast from '@zag-js/toast';
4
- import { Provider, type PropsWithChildren } from 'react';
4
+ import { type PropsWithChildren } from 'react';
5
5
  import { type Optional } from '../types';
6
6
  type GroupPublicContext = Parameters<(typeof toast)['group']['machine']>[0];
7
- export type ToastContext = ReturnType<(typeof toast)['group']['connect']>;
8
- export declare const ToastContextProvider: Provider<toast.GroupApi<PropTypes>>, useToast: () => toast.GroupApi<PropTypes>;
7
+ declare const useToast: () => toast.GroupApi<PropTypes>;
9
8
  export type ToastProviderProps = PropsWithChildren & Optional<GroupPublicContext, 'id'>;
10
9
  export declare const ToastProvider: (props: ToastProviderProps) => JSX.Element;
11
- export {};
10
+ export { useToast };
@@ -17,4 +17,4 @@ const ToastProvider = (props) => {
17
17
  return /* @__PURE__ */ jsx(ToastContextProvider, { value: api, children });
18
18
  };
19
19
 
20
- export { ToastContextProvider, ToastProvider, useToast };
20
+ export { ToastProvider, useToast };
@@ -1,8 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
3
- export type ToastTitleProps = ComponentPropsWithoutRef<typeof ark.h3>;
4
- export declare const ToastTitle: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
5
- ref?: ((instance: HTMLHeadingElement | null) => void) | RefObject<HTMLHeadingElement> | null | undefined;
6
- } & {
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export type ToastTitleProps = HTMLArkProps<'h3'>;
5
+ export declare const ToastTitle: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
7
6
  asChild?: boolean | undefined;
8
- }, "ref"> & RefAttributes<HTMLHeadingElement>>;
7
+ } & RefAttributes<HTMLHeadingElement>>;
package/toast/toast.d.ts CHANGED
@@ -1,10 +1,7 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
- import { ark } from '../factory';
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
3
4
  import { type Assign } from '../types';
4
5
  import { type UseToastItemProps } from './use-toast-item';
5
- export type ToastProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, UseToastItemProps>;
6
- export declare const Toast: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
- ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
8
- } & {
9
- asChild?: boolean | undefined;
10
- }, "ref">, "toast"> & UseToastItemProps & RefAttributes<HTMLDivElement>>;
6
+ export type ToastProps = Assign<HTMLArkProps<'div'>, UseToastItemProps>;
7
+ export declare const Toast: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "toast"> & UseToastItemProps & RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { Toast, type ToastProviderProps } from '.';
3
+ import { Toast, type ToastProviderProps } from './';
4
4
  type ToastType = typeof Toast;
5
5
  declare const meta: Meta<ToastType>;
6
6
  export default meta;
@@ -0,0 +1,19 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const toggle = require('./toggle.cjs');
7
+ const toggleGroup = require('./toggle-group.cjs');
8
+ const toggleGroupContext = require('./toggle-group-context.cjs');
9
+ const toggleGroup_anatomy = require('./toggle-group.anatomy.cjs');
10
+
11
+ const ToggleGroup = Object.assign(toggleGroup.ToggleGroup, {
12
+ Root: toggleGroup.ToggleGroup,
13
+ Toggle: toggle.Toggle
14
+ });
15
+
16
+ exports.Toggle = toggle.Toggle;
17
+ exports.useToggleGroupContext = toggleGroupContext.useToggleGroupContext;
18
+ exports.toggleGroupAnatomy = toggleGroup_anatomy.toggleGroupAnatomy;
19
+ exports.ToggleGroup = ToggleGroup;
@@ -0,0 +1,20 @@
1
+ import { UseToggleGroupProps } from './use-toggle-group';
2
+ import { HTMLArkProps } from '..';
3
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
4
+ /// <reference types="react" />
5
+ import { Toggle, type ToggleProps } from './toggle';
6
+ import { type ToggleGroupProps } from './toggle-group';
7
+ import { useToggleGroupContext, type ToggleGroupContext } from './toggle-group-context';
8
+ import { toggleGroupAnatomy } from './toggle-group.anatomy';
9
+ declare const ToggleGroup: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, keyof UseToggleGroupProps> & UseToggleGroupProps & RefAttributes<HTMLDivElement>> & {
10
+ Root: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, keyof UseToggleGroupProps> & UseToggleGroupProps & RefAttributes<HTMLDivElement>>;
11
+ Toggle: ForwardRefExoticComponent<Omit<HTMLArkProps<"button">, keyof {
12
+ value: string;
13
+ disabled?: boolean | undefined;
14
+ }> & {
15
+ value: string;
16
+ disabled?: boolean | undefined;
17
+ } & RefAttributes<HTMLButtonElement>>;
18
+ };
19
+ export { Toggle, ToggleGroup, toggleGroupAnatomy, useToggleGroupContext };
20
+ export type { ToggleGroupContext, ToggleGroupProps, ToggleProps };