@ark-ui/react 0.11.0-beta.0 → 0.11.0-beta.2

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 (541) hide show
  1. package/CHANGELOG.md +15 -2
  2. package/accordion/accordion-content.cjs +2 -1
  3. package/accordion/accordion-content.d.ts +2 -2
  4. package/accordion/accordion-content.mjs +2 -1
  5. package/accordion/accordion-context.d.ts +3 -2
  6. package/accordion/accordion-item-context.d.ts +2 -1
  7. package/accordion/accordion-item-presence.cjs +2 -2
  8. package/accordion/accordion-item-presence.d.ts +1 -1
  9. package/accordion/accordion-item-presence.mjs +1 -1
  10. package/accordion/accordion-item.d.ts +1 -1
  11. package/accordion/accordion-trigger.d.ts +1 -1
  12. package/accordion/accordion.d.ts +3 -3
  13. package/accordion/accordion.stories.d.ts +14 -0
  14. package/accordion/accordion.test.d.ts +1 -0
  15. package/accordion/index.cjs +11 -6
  16. package/accordion/index.d.ts +45 -7
  17. package/accordion/index.mjs +13 -4
  18. package/accordion/use-accordion.cjs +1 -0
  19. package/accordion/use-accordion.d.ts +2 -1
  20. package/accordion/use-accordion.mjs +1 -0
  21. package/avatar/avatar-context.d.ts +3 -2
  22. package/avatar/avatar-fallback.d.ts +2 -2
  23. package/avatar/avatar-image.d.ts +1 -1
  24. package/avatar/avatar.d.ts +3 -3
  25. package/avatar/avatar.stories.d.ts +8 -0
  26. package/avatar/index.cjs +10 -6
  27. package/avatar/index.d.ts +31 -5
  28. package/avatar/index.mjs +11 -3
  29. package/avatar/use-avatar.cjs +1 -0
  30. package/avatar/use-avatar.d.ts +2 -1
  31. package/avatar/use-avatar.mjs +1 -0
  32. package/carousel/carousel-context.d.ts +3 -2
  33. package/carousel/carousel-control.d.ts +1 -1
  34. package/carousel/carousel-indicator-group.d.ts +1 -1
  35. package/carousel/carousel-indicator.d.ts +1 -1
  36. package/carousel/carousel-next-slide-trigger.d.ts +1 -1
  37. package/carousel/carousel-prev-slide-trigger.d.ts +1 -1
  38. package/carousel/carousel-slide-group.d.ts +1 -1
  39. package/carousel/carousel-slide.d.ts +1 -1
  40. package/carousel/carousel-viewport.d.ts +1 -1
  41. package/carousel/carousel.anatomy.d.ts +1 -1
  42. package/carousel/carousel.d.ts +3 -3
  43. package/carousel/carousel.stories.d.ts +7 -0
  44. package/carousel/carousel.test.d.ts +1 -0
  45. package/carousel/index.cjs +12 -2
  46. package/carousel/index.d.ts +77 -11
  47. package/carousel/index.mjs +23 -9
  48. package/carousel/use-carousel.cjs +1 -0
  49. package/carousel/use-carousel.d.ts +2 -1
  50. package/carousel/use-carousel.mjs +1 -0
  51. package/checkbox/checkbox-context.d.ts +3 -2
  52. package/checkbox/checkbox-control.d.ts +1 -1
  53. package/checkbox/checkbox-label.d.ts +2 -2
  54. package/checkbox/checkbox.d.ts +2 -2
  55. package/checkbox/checkbox.stories.d.ts +10 -0
  56. package/checkbox/checkbox.test.d.ts +1 -0
  57. package/checkbox/index.cjs +10 -6
  58. package/checkbox/index.d.ts +42 -6
  59. package/checkbox/index.mjs +11 -3
  60. package/checkbox/use-checkbox.cjs +1 -0
  61. package/checkbox/use-checkbox.d.ts +2 -1
  62. package/checkbox/use-checkbox.mjs +1 -0
  63. package/color-picker/color-picker-area-context.d.ts +2 -1
  64. package/color-picker/color-picker-area-gradient.d.ts +1 -1
  65. package/color-picker/color-picker-area-thumb.d.ts +1 -1
  66. package/color-picker/color-picker-area.d.ts +1 -1
  67. package/color-picker/color-picker-channel-input.d.ts +1 -1
  68. package/color-picker/color-picker-channel-slider-background.d.ts +1 -1
  69. package/color-picker/color-picker-channel-slider-context.d.ts +2 -1
  70. package/color-picker/color-picker-channel-slider-thumb.d.ts +1 -1
  71. package/color-picker/color-picker-channel-slider-track.d.ts +1 -1
  72. package/color-picker/color-picker-content.d.ts +1 -1
  73. package/color-picker/color-picker-context.d.ts +3 -2
  74. package/color-picker/color-picker-eye-dropper-trigger.d.ts +1 -1
  75. package/color-picker/color-picker-swatch-background.d.ts +1 -1
  76. package/color-picker/color-picker-swatch-context.d.ts +2 -1
  77. package/color-picker/color-picker-swatch-group.d.ts +1 -1
  78. package/color-picker/color-picker-swatch.d.ts +1 -1
  79. package/color-picker/color-picker.anatomy.d.ts +1 -1
  80. package/color-picker/color-picker.d.ts +1 -1
  81. package/color-picker/color-picker.stories.d.ts +8 -0
  82. package/color-picker/index.cjs +16 -2
  83. package/color-picker/index.d.ts +86 -17
  84. package/color-picker/index.mjs +31 -13
  85. package/color-picker/use-color-picker.cjs +1 -0
  86. package/color-picker/use-color-picker.d.ts +2 -1
  87. package/color-picker/use-color-picker.mjs +1 -0
  88. package/combobox/combobox-clear-trigger.d.ts +1 -1
  89. package/combobox/combobox-content.cjs +3 -2
  90. package/combobox/combobox-content.d.ts +6 -6
  91. package/combobox/combobox-content.mjs +3 -2
  92. package/combobox/combobox-context.d.ts +3 -2
  93. package/combobox/combobox-control.d.ts +1 -1
  94. package/combobox/combobox-input.d.ts +1 -1
  95. package/combobox/combobox-label.d.ts +1 -1
  96. package/combobox/combobox-option-group-label.cjs +1 -1
  97. package/combobox/combobox-option-group-label.d.ts +5 -5
  98. package/combobox/combobox-option-group-label.mjs +1 -1
  99. package/combobox/combobox-option-group.d.ts +1 -1
  100. package/combobox/combobox-option.cjs +1 -1
  101. package/combobox/combobox-option.d.ts +6 -6
  102. package/combobox/combobox-option.mjs +1 -1
  103. package/combobox/combobox-positioner.d.ts +1 -1
  104. package/combobox/combobox-presence.cjs +2 -2
  105. package/combobox/combobox-presence.d.ts +1 -1
  106. package/combobox/combobox-presence.mjs +1 -1
  107. package/combobox/combobox-trigger.d.ts +1 -1
  108. package/combobox/combobox.d.ts +3 -3
  109. package/combobox/combobox.stories.d.ts +7 -0
  110. package/combobox/combobox.test.d.ts +1 -0
  111. package/combobox/index.cjs +17 -5
  112. package/combobox/index.d.ts +94 -13
  113. package/combobox/index.mjs +27 -11
  114. package/combobox/use-combobox.d.ts +2 -1
  115. package/compose-refs.d.ts +1 -0
  116. package/create-context.d.ts +1 -0
  117. package/create-split-props.test.d.ts +1 -0
  118. package/date-picker/date-picker-cell-context.d.ts +2 -1
  119. package/date-picker/date-picker-clear-trigger.d.ts +1 -1
  120. package/date-picker/date-picker-column-header.d.ts +1 -1
  121. package/date-picker/date-picker-content.d.ts +1 -1
  122. package/date-picker/date-picker-context.d.ts +3 -2
  123. package/date-picker/date-picker-control.d.ts +1 -1
  124. package/date-picker/date-picker-day-cell-context.d.ts +2 -1
  125. package/date-picker/date-picker-day-cell-trigger.d.ts +1 -1
  126. package/date-picker/date-picker-day-cell.d.ts +1 -1
  127. package/date-picker/date-picker-grid.d.ts +1 -1
  128. package/date-picker/date-picker-input.d.ts +1 -1
  129. package/date-picker/date-picker-month-cell-trigger.d.ts +1 -1
  130. package/date-picker/date-picker-month-cell.d.ts +1 -1
  131. package/date-picker/date-picker-month-select.d.ts +1 -1
  132. package/date-picker/date-picker-next-trigger.d.ts +1 -1
  133. package/date-picker/date-picker-positioner.d.ts +1 -1
  134. package/date-picker/date-picker-prev-trigger.d.ts +1 -1
  135. package/date-picker/date-picker-row-group.d.ts +1 -1
  136. package/date-picker/date-picker-row-header.d.ts +1 -1
  137. package/date-picker/date-picker-row.d.ts +1 -1
  138. package/date-picker/date-picker-trigger.d.ts +1 -1
  139. package/date-picker/date-picker-view-trigger.d.ts +1 -1
  140. package/date-picker/date-picker-year-cell-trigger.d.ts +1 -1
  141. package/date-picker/date-picker-year-cell.d.ts +1 -1
  142. package/date-picker/date-picker-year-select.d.ts +1 -1
  143. package/date-picker/date-picker.anatomy.d.ts +3 -3
  144. package/date-picker/date-picker.d.ts +1 -1
  145. package/date-picker/date-picker.stories.d.ts +9 -0
  146. package/date-picker/index.cjs +26 -2
  147. package/date-picker/index.d.ts +146 -27
  148. package/date-picker/index.mjs +51 -23
  149. package/date-picker/use-date-picker.cjs +1 -0
  150. package/date-picker/use-date-picker.d.ts +2 -1
  151. package/date-picker/use-date-picker.mjs +1 -0
  152. package/dialog/dialog-backdrop.d.ts +2 -2
  153. package/dialog/dialog-close-trigger.d.ts +1 -1
  154. package/dialog/dialog-container.d.ts +1 -1
  155. package/dialog/dialog-content.cjs +2 -1
  156. package/dialog/dialog-content.d.ts +2 -2
  157. package/dialog/dialog-content.mjs +2 -1
  158. package/dialog/dialog-context.d.ts +3 -2
  159. package/dialog/dialog-description.d.ts +1 -1
  160. package/dialog/dialog-presence.cjs +2 -2
  161. package/dialog/dialog-presence.d.ts +1 -1
  162. package/dialog/dialog-presence.mjs +1 -1
  163. package/dialog/dialog-title.d.ts +1 -1
  164. package/dialog/dialog-trigger.d.ts +1 -1
  165. package/dialog/dialog.d.ts +1 -1
  166. package/dialog/dialog.stories.d.ts +10 -0
  167. package/dialog/dialog.test.d.ts +1 -0
  168. package/dialog/index.cjs +15 -6
  169. package/dialog/index.d.ts +54 -10
  170. package/dialog/index.mjs +21 -8
  171. package/dialog/use-dialog.cjs +1 -0
  172. package/dialog/use-dialog.d.ts +2 -1
  173. package/dialog/use-dialog.mjs +1 -0
  174. package/editable/editable-area.d.ts +1 -1
  175. package/editable/editable-cancel-trigger.d.ts +1 -1
  176. package/editable/editable-context.d.ts +3 -2
  177. package/editable/editable-control.d.ts +1 -1
  178. package/editable/editable-edit-trigger.d.ts +1 -1
  179. package/editable/editable-input.d.ts +1 -1
  180. package/editable/editable-label.d.ts +1 -1
  181. package/editable/editable-preview.d.ts +2 -2
  182. package/editable/editable-submit-trigger.d.ts +1 -1
  183. package/editable/editable.d.ts +3 -3
  184. package/editable/editable.stories.d.ts +8 -0
  185. package/editable/editable.test.d.ts +1 -0
  186. package/editable/index.cjs +16 -6
  187. package/editable/index.d.ts +81 -11
  188. package/editable/index.mjs +23 -9
  189. package/editable/use-editable.cjs +1 -0
  190. package/editable/use-editable.d.ts +2 -1
  191. package/editable/use-editable.mjs +1 -0
  192. package/environment/environment-context.d.ts +3 -2
  193. package/environment/environment.d.ts +1 -1
  194. package/environment/environment.stories.d.ts +7 -0
  195. package/environment/environment.test.d.ts +1 -0
  196. package/environment/index.cjs +4 -2
  197. package/environment/index.d.ts +8 -2
  198. package/environment/index.mjs +7 -1
  199. package/hover-card/hover-card-arrow-tip.d.ts +1 -1
  200. package/hover-card/hover-card-arrow.d.ts +1 -1
  201. package/hover-card/hover-card-content.cjs +2 -1
  202. package/hover-card/hover-card-content.d.ts +2 -2
  203. package/hover-card/hover-card-content.mjs +2 -1
  204. package/hover-card/hover-card-context.d.ts +3 -2
  205. package/hover-card/hover-card-positioner.d.ts +1 -1
  206. package/hover-card/hover-card-presence.cjs +2 -2
  207. package/hover-card/hover-card-presence.d.ts +1 -1
  208. package/hover-card/hover-card-presence.mjs +1 -1
  209. package/hover-card/hover-card-trigger.d.ts +1 -1
  210. package/hover-card/hover-card.d.ts +1 -1
  211. package/hover-card/hover-card.stories.d.ts +10 -0
  212. package/hover-card/hover-card.test.d.ts +1 -0
  213. package/hover-card/index.cjs +13 -6
  214. package/hover-card/index.d.ts +42 -8
  215. package/hover-card/index.mjs +17 -6
  216. package/hover-card/use-hover-card.cjs +1 -0
  217. package/hover-card/use-hover-card.d.ts +2 -1
  218. package/hover-card/use-hover-card.mjs +1 -0
  219. package/index.cjs +242 -240
  220. package/index.mjs +89 -88
  221. package/menu/index.cjs +19 -5
  222. package/menu/index.d.ts +93 -15
  223. package/menu/index.mjs +31 -13
  224. package/menu/menu-arrow-tip.d.ts +1 -1
  225. package/menu/menu-arrow.d.ts +1 -1
  226. package/menu/menu-content.d.ts +1 -1
  227. package/menu/menu-context-trigger.d.ts +1 -1
  228. package/menu/menu-context.d.ts +2 -1
  229. package/menu/menu-item-group-label.d.ts +1 -1
  230. package/menu/menu-item-group.d.ts +2 -2
  231. package/menu/menu-item.d.ts +2 -2
  232. package/menu/menu-option-item.d.ts +2 -2
  233. package/menu/menu-positioner.d.ts +1 -1
  234. package/menu/menu-separator.d.ts +1 -1
  235. package/menu/menu-trigger-item.d.ts +1 -1
  236. package/menu/menu-trigger.d.ts +1 -1
  237. package/menu/menu.d.ts +1 -1
  238. package/menu/menu.stories.d.ts +11 -0
  239. package/menu/menu.test.d.ts +1 -0
  240. package/menu/use-menu.cjs +1 -0
  241. package/menu/use-menu.mjs +1 -0
  242. package/number-input/index.cjs +14 -6
  243. package/number-input/index.d.ts +59 -9
  244. package/number-input/index.mjs +19 -7
  245. package/number-input/number-input-context.d.ts +3 -2
  246. package/number-input/number-input-control.d.ts +1 -1
  247. package/number-input/number-input-decrement-trigger.d.ts +1 -1
  248. package/number-input/number-input-field.cjs +3 -3
  249. package/number-input/number-input-field.d.ts +3 -3
  250. package/number-input/number-input-field.mjs +3 -3
  251. package/number-input/number-input-increment-trigger.d.ts +1 -1
  252. package/number-input/number-input-label.d.ts +1 -1
  253. package/number-input/number-input-scrubber.d.ts +1 -1
  254. package/number-input/number-input.d.ts +3 -3
  255. package/number-input/number-input.stories.d.ts +7 -0
  256. package/number-input/number-input.test.d.ts +1 -0
  257. package/number-input/use-number-input.cjs +1 -0
  258. package/number-input/use-number-input.d.ts +2 -1
  259. package/number-input/use-number-input.mjs +1 -0
  260. package/package.json +35 -35
  261. package/pagination/index.cjs +10 -2
  262. package/pagination/index.d.ts +67 -9
  263. package/pagination/index.mjs +19 -7
  264. package/pagination/pagination-context.d.ts +3 -2
  265. package/pagination/pagination-ellipsis.d.ts +1 -1
  266. package/pagination/pagination-list-item.d.ts +1 -1
  267. package/pagination/pagination-list.d.ts +1 -1
  268. package/pagination/pagination-next-page-trigger.d.ts +1 -1
  269. package/pagination/pagination-page-trigger.d.ts +1 -1
  270. package/pagination/pagination-prev-page-trigger.d.ts +1 -1
  271. package/pagination/pagination.anatomy.d.ts +1 -1
  272. package/pagination/pagination.d.ts +1 -1
  273. package/pagination/pagination.stories.d.ts +9 -0
  274. package/pagination/pagination.test.d.ts +1 -0
  275. package/pagination/use-pagination.cjs +1 -0
  276. package/pagination/use-pagination.d.ts +2 -1
  277. package/pagination/use-pagination.mjs +1 -0
  278. package/pin-input/index.cjs +12 -7
  279. package/pin-input/index.d.ts +43 -6
  280. package/pin-input/index.mjs +13 -4
  281. package/pin-input/pin-input-context.d.ts +3 -2
  282. package/pin-input/pin-input-control.d.ts +1 -1
  283. package/pin-input/pin-input-field.cjs +3 -3
  284. package/pin-input/pin-input-field.d.ts +3 -3
  285. package/pin-input/pin-input-field.mjs +3 -3
  286. package/pin-input/pin-input-label.d.ts +1 -1
  287. package/pin-input/pin-input.d.ts +3 -3
  288. package/pin-input/pin-input.stories.d.ts +7 -0
  289. package/pin-input/pin-input.test.d.ts +1 -0
  290. package/pin-input/use-pin-input.cjs +1 -0
  291. package/pin-input/use-pin-input.d.ts +2 -1
  292. package/pin-input/use-pin-input.mjs +1 -0
  293. package/popover/index.cjs +17 -6
  294. package/popover/index.d.ts +66 -12
  295. package/popover/index.mjs +25 -10
  296. package/popover/popover-anchor.d.ts +1 -1
  297. package/popover/popover-arrow-tip.d.ts +1 -1
  298. package/popover/popover-arrow.d.ts +1 -1
  299. package/popover/popover-close-trigger.d.ts +1 -1
  300. package/popover/popover-content.cjs +2 -1
  301. package/popover/popover-content.d.ts +2 -2
  302. package/popover/popover-content.mjs +2 -1
  303. package/popover/popover-context.d.ts +3 -2
  304. package/popover/popover-description.d.ts +1 -1
  305. package/popover/popover-positioner.d.ts +1 -1
  306. package/popover/popover-presence.cjs +2 -2
  307. package/popover/popover-presence.d.ts +1 -1
  308. package/popover/popover-presence.mjs +1 -1
  309. package/popover/popover-title.d.ts +1 -1
  310. package/popover/popover-trigger.d.ts +1 -1
  311. package/popover/popover.d.ts +1 -1
  312. package/popover/popover.stories.d.ts +12 -0
  313. package/popover/popover.test.d.ts +1 -0
  314. package/popover/use-popover.cjs +1 -0
  315. package/popover/use-popover.d.ts +2 -1
  316. package/popover/use-popover.mjs +1 -0
  317. package/presence/index.cjs +4 -2
  318. package/presence/index.d.ts +9 -2
  319. package/presence/index.mjs +7 -1
  320. package/presence/presence.d.ts +1 -1
  321. package/presence/presence.stories.d.ts +10 -0
  322. package/presence/presence.test.d.ts +1 -0
  323. package/pressable/index.cjs +4 -2
  324. package/pressable/index.d.ts +30 -2
  325. package/pressable/index.mjs +7 -1
  326. package/pressable/pressable.d.ts +3 -3
  327. package/pressable/pressable.stories.d.ts +7 -0
  328. package/pressable/pressable.test.d.ts +1 -0
  329. package/pressable/use-pressable.cjs +1 -0
  330. package/pressable/use-pressable.d.ts +2 -1
  331. package/pressable/use-pressable.mjs +1 -0
  332. package/radio-group/index.cjs +11 -4
  333. package/radio-group/index.d.ts +64 -9
  334. package/radio-group/index.mjs +17 -6
  335. package/radio-group/radio-context.d.ts +2 -1
  336. package/radio-group/radio-control.d.ts +1 -1
  337. package/radio-group/radio-group-context.d.ts +3 -2
  338. package/radio-group/radio-group-label.d.ts +1 -1
  339. package/radio-group/radio-group.d.ts +3 -3
  340. package/radio-group/radio-group.stories.d.ts +8 -0
  341. package/radio-group/radio-group.test.d.ts +1 -0
  342. package/radio-group/radio-input.d.ts +1 -1
  343. package/radio-group/radio-label.d.ts +2 -2
  344. package/radio-group/radio.d.ts +1 -1
  345. package/radio-group/use-radio-group.cjs +1 -0
  346. package/radio-group/use-radio-group.d.ts +2 -1
  347. package/radio-group/use-radio-group.mjs +1 -0
  348. package/range-slider/index.cjs +15 -5
  349. package/range-slider/index.d.ts +90 -11
  350. package/range-slider/index.mjs +23 -9
  351. package/range-slider/range-slider-context.d.ts +3 -2
  352. package/range-slider/range-slider-control.d.ts +1 -1
  353. package/range-slider/range-slider-label.d.ts +1 -1
  354. package/range-slider/range-slider-marker-group.d.ts +1 -1
  355. package/range-slider/range-slider-marker.d.ts +2 -2
  356. package/range-slider/range-slider-output.d.ts +1 -1
  357. package/range-slider/range-slider-range.d.ts +1 -1
  358. package/range-slider/range-slider-thumb.d.ts +1 -1
  359. package/range-slider/range-slider-track.d.ts +1 -1
  360. package/range-slider/range-slider.d.ts +3 -3
  361. package/range-slider/range-slider.stories.d.ts +8 -0
  362. package/range-slider/range-slider.test.d.ts +1 -0
  363. package/range-slider/use-range-slider.cjs +1 -0
  364. package/range-slider/use-range-slider.d.ts +2 -1
  365. package/range-slider/use-range-slider.mjs +1 -0
  366. package/rating-group/index.cjs +11 -6
  367. package/rating-group/index.d.ts +49 -7
  368. package/rating-group/index.mjs +13 -4
  369. package/rating-group/rating-context.d.ts +3 -2
  370. package/rating-group/rating-group-context.d.ts +3 -2
  371. package/rating-group/rating-group-control.d.ts +1 -1
  372. package/rating-group/rating-group-label.d.ts +1 -1
  373. package/rating-group/rating-group.d.ts +3 -3
  374. package/rating-group/rating-group.stories.d.ts +7 -0
  375. package/rating-group/rating-group.test.d.ts +1 -0
  376. package/rating-group/rating.d.ts +2 -2
  377. package/rating-group/use-rating-group.cjs +1 -0
  378. package/rating-group/use-rating-group.d.ts +2 -1
  379. package/rating-group/use-rating-group.mjs +1 -0
  380. package/run-if-fn.test.d.ts +1 -0
  381. package/segment-group/index.cjs +10 -2
  382. package/segment-group/index.d.ts +70 -10
  383. package/segment-group/index.mjs +19 -7
  384. package/segment-group/segment-context.d.ts +2 -1
  385. package/segment-group/segment-control.d.ts +1 -1
  386. package/segment-group/segment-group-context.d.ts +3 -2
  387. package/segment-group/segment-group-label.d.ts +1 -1
  388. package/segment-group/segment-group.anatomy.d.ts +1 -1
  389. package/segment-group/segment-group.d.ts +3 -3
  390. package/segment-group/segment-group.stories.d.ts +10 -0
  391. package/segment-group/segment-group.test.d.ts +1 -0
  392. package/segment-group/segment-indicator.d.ts +1 -1
  393. package/segment-group/segment-input.d.ts +1 -1
  394. package/segment-group/segment-label.d.ts +2 -2
  395. package/segment-group/segment.d.ts +1 -1
  396. package/segment-group/use-segment-group.cjs +1 -0
  397. package/segment-group/use-segment-group.d.ts +2 -1
  398. package/segment-group/use-segment-group.mjs +1 -0
  399. package/select/index.cjs +14 -5
  400. package/select/index.d.ts +57 -10
  401. package/select/index.mjs +21 -8
  402. package/select/select-content.cjs +3 -2
  403. package/select/select-content.d.ts +6 -6
  404. package/select/select-content.mjs +3 -2
  405. package/select/select-context.d.ts +3 -2
  406. package/select/select-label.d.ts +1 -1
  407. package/select/select-option-group-label.cjs +1 -1
  408. package/select/select-option-group-label.d.ts +5 -5
  409. package/select/select-option-group-label.mjs +1 -1
  410. package/select/select-option-group.d.ts +1 -1
  411. package/select/select-option.cjs +3 -3
  412. package/select/select-option.d.ts +5 -8
  413. package/select/select-option.mjs +3 -3
  414. package/select/select-positioner.d.ts +1 -1
  415. package/select/select-presence.cjs +2 -2
  416. package/select/select-presence.d.ts +1 -1
  417. package/select/select-presence.mjs +1 -1
  418. package/select/select-trigger.d.ts +1 -1
  419. package/select/select.d.ts +1 -1
  420. package/select/select.stories.d.ts +7 -0
  421. package/select/select.test.d.ts +1 -0
  422. package/select/use-select.cjs +1 -0
  423. package/select/use-select.d.ts +2 -1
  424. package/select/use-select.mjs +1 -0
  425. package/setup-test.d.ts +0 -0
  426. package/slider/index.cjs +16 -6
  427. package/slider/index.d.ts +86 -11
  428. package/slider/index.mjs +23 -9
  429. package/slider/slider-context.d.ts +3 -2
  430. package/slider/slider-control.d.ts +1 -1
  431. package/slider/slider-label.d.ts +1 -1
  432. package/slider/slider-marker-group.d.ts +1 -1
  433. package/slider/slider-marker.d.ts +2 -2
  434. package/slider/slider-output.d.ts +1 -1
  435. package/slider/slider-range.d.ts +1 -1
  436. package/slider/slider-thumb.d.ts +1 -1
  437. package/slider/slider-track.d.ts +1 -1
  438. package/slider/slider.d.ts +1 -1
  439. package/slider/slider.stories.d.ts +8 -0
  440. package/slider/slider.test.d.ts +1 -0
  441. package/slider/use-slider.cjs +1 -0
  442. package/slider/use-slider.d.ts +2 -1
  443. package/slider/use-slider.mjs +1 -0
  444. package/splitter/index.cjs +10 -6
  445. package/splitter/index.d.ts +55 -5
  446. package/splitter/index.mjs +11 -3
  447. package/splitter/splitter-context.d.ts +3 -2
  448. package/splitter/splitter-panel.d.ts +1 -1
  449. package/splitter/splitter-resize-trigger.d.ts +1 -1
  450. package/splitter/splitter.d.ts +3 -3
  451. package/splitter/splitter.stories.d.ts +10 -0
  452. package/splitter/splitter.test.d.ts +1 -0
  453. package/splitter/use-splitter.cjs +1 -0
  454. package/splitter/use-splitter.d.ts +2 -1
  455. package/splitter/use-splitter.mjs +1 -0
  456. package/switch/index.cjs +10 -4
  457. package/switch/index.d.ts +55 -7
  458. package/switch/index.mjs +15 -5
  459. package/switch/switch-context.d.ts +3 -2
  460. package/switch/switch-control.d.ts +2 -2
  461. package/switch/switch-input.d.ts +1 -1
  462. package/switch/switch-label.d.ts +2 -2
  463. package/switch/switch-thumb.d.ts +2 -2
  464. package/switch/switch.d.ts +1 -1
  465. package/switch/switch.stories.d.ts +9 -0
  466. package/switch/use-switch.cjs +1 -0
  467. package/switch/use-switch.d.ts +2 -1
  468. package/switch/use-switch.mjs +1 -0
  469. package/tabs/index.cjs +12 -6
  470. package/tabs/index.d.ts +48 -7
  471. package/tabs/index.mjs +15 -5
  472. package/tabs/tab-content.cjs +2 -1
  473. package/tabs/tab-content.d.ts +1 -1
  474. package/tabs/tab-content.mjs +2 -1
  475. package/tabs/tab-indicator.d.ts +1 -1
  476. package/tabs/tab-list.d.ts +1 -1
  477. package/tabs/tab-presence.cjs +2 -2
  478. package/tabs/tab-presence.d.ts +1 -1
  479. package/tabs/tab-presence.mjs +1 -1
  480. package/tabs/tab-trigger.d.ts +1 -1
  481. package/tabs/tabs-context.d.ts +3 -2
  482. package/tabs/tabs.d.ts +3 -3
  483. package/tabs/tabs.stories.d.ts +14 -0
  484. package/tabs/tabs.test.d.ts +1 -0
  485. package/tabs/use-tabs.cjs +1 -0
  486. package/tabs/use-tabs.d.ts +3 -2
  487. package/tabs/use-tabs.mjs +1 -0
  488. package/tags-input/index.cjs +15 -6
  489. package/tags-input/index.d.ts +90 -10
  490. package/tags-input/index.mjs +21 -8
  491. package/tags-input/tag-delete-trigger.d.ts +1 -1
  492. package/tags-input/tag-input.d.ts +1 -1
  493. package/tags-input/tag.d.ts +1 -1
  494. package/tags-input/tags-input-clear-trigger.d.ts +1 -1
  495. package/tags-input/tags-input-context.d.ts +3 -2
  496. package/tags-input/tags-input-control.d.ts +1 -1
  497. package/tags-input/tags-input-field.d.ts +1 -1
  498. package/tags-input/tags-input-label.d.ts +1 -1
  499. package/tags-input/tags-input.d.ts +1 -1
  500. package/tags-input/tags-input.stories.d.ts +8 -0
  501. package/tags-input/tags-input.test.d.ts +1 -0
  502. package/tags-input/use-tags-input.cjs +1 -0
  503. package/tags-input/use-tags-input.d.ts +2 -1
  504. package/tags-input/use-tags-input.mjs +1 -0
  505. package/toast/index.cjs +13 -4
  506. package/toast/index.d.ts +52 -9
  507. package/toast/index.mjs +20 -7
  508. package/toast/toast-close-trigger.d.ts +1 -1
  509. package/toast/toast-description.d.ts +1 -1
  510. package/toast/toast-group.d.ts +1 -1
  511. package/toast/toast-item-context.d.ts +3 -2
  512. package/toast/toast-placements.d.ts +1 -1
  513. package/toast/toast-provider.cjs +1 -0
  514. package/toast/toast-provider.d.ts +2 -2
  515. package/toast/toast-provider.mjs +1 -0
  516. package/toast/toast-title.d.ts +1 -1
  517. package/toast/toast.d.ts +1 -1
  518. package/toast/toast.stories.d.ts +12 -0
  519. package/toast/toast.test.d.ts +1 -0
  520. package/toast/use-toast-item.d.ts +2 -1
  521. package/tooltip/index.cjs +13 -6
  522. package/tooltip/index.d.ts +42 -8
  523. package/tooltip/index.mjs +17 -6
  524. package/tooltip/tooltip-arrow-tip.d.ts +1 -1
  525. package/tooltip/tooltip-arrow.d.ts +1 -1
  526. package/tooltip/tooltip-content.cjs +2 -1
  527. package/tooltip/tooltip-content.d.ts +2 -2
  528. package/tooltip/tooltip-content.mjs +2 -1
  529. package/tooltip/tooltip-context.d.ts +3 -2
  530. package/tooltip/tooltip-positioner.d.ts +1 -1
  531. package/tooltip/tooltip-presence.cjs +2 -2
  532. package/tooltip/tooltip-presence.d.ts +1 -1
  533. package/tooltip/tooltip-presence.mjs +1 -1
  534. package/tooltip/tooltip-trigger.d.ts +1 -1
  535. package/tooltip/tooltip.d.ts +1 -1
  536. package/tooltip/tooltip.stories.d.ts +12 -0
  537. package/tooltip/tooltip.test.d.ts +1 -0
  538. package/tooltip/use-tooltip.cjs +1 -0
  539. package/tooltip/use-tooltip.d.ts +2 -1
  540. package/tooltip/use-tooltip.mjs +1 -0
  541. package/use-latest-ref.d.ts +3 -0
package/switch/index.d.ts CHANGED
@@ -1,7 +1,55 @@
1
- export { Switch, type SwitchProps } from './switch';
2
- export { useSwitchContext } from './switch-context';
3
- export { SwitchControl, type SwitchControlProps } from './switch-control';
4
- export { SwitchInput, type SwitchInputProps } from './switch-input';
5
- export { SwitchLabel, type SwitchLabelProps } from './switch-label';
6
- export { SwitchThumb, type SwitchThumbProps } from './switch-thumb';
7
- export { switchAnatomy } from './switch.anatomy';
1
+ import { PublicApi } from '@zag-js/switch';
2
+ import { UseSwitchProps } from './use-switch';
3
+ import { Assign } from '../types';
4
+ import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, ReactNode, HTMLAttributes, CSSProperties, RefAttributes, InputHTMLAttributes } from 'react';
5
+ /// <reference types="react" />
6
+ import { type SwitchProps } from './switch';
7
+ import { useSwitchContext } from './switch-context';
8
+ import { SwitchControl, type SwitchControlProps } from './switch-control';
9
+ import { SwitchInput, type SwitchInputProps } from './switch-input';
10
+ import { SwitchLabel, type SwitchLabelProps } from './switch-label';
11
+ import { SwitchThumb, type SwitchThumbProps } from './switch-thumb';
12
+ import { switchAnatomy } from './switch.anatomy';
13
+ declare const Switch: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
14
+ ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
15
+ } & {
16
+ asChild?: boolean | undefined;
17
+ }, "ref">, UseSwitchProps>, "children"> & {
18
+ children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
19
+ element: HTMLAttributes<HTMLElement>;
20
+ style: CSSProperties;
21
+ }>) => ReactNode);
22
+ } & RefAttributes<HTMLLabelElement>> & {
23
+ Root: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
24
+ ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
25
+ } & {
26
+ asChild?: boolean | undefined;
27
+ }, "ref">, UseSwitchProps>, "children"> & {
28
+ children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
29
+ element: HTMLAttributes<HTMLElement>;
30
+ style: CSSProperties;
31
+ }>) => ReactNode);
32
+ } & RefAttributes<HTMLLabelElement>>;
33
+ Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
34
+ ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
35
+ } & {
36
+ asChild?: boolean | undefined;
37
+ }, "ref"> & RefAttributes<HTMLSpanElement>>;
38
+ Input: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
39
+ ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
40
+ } & {
41
+ asChild?: boolean | undefined;
42
+ }, "ref"> & RefAttributes<HTMLInputElement>>;
43
+ Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
44
+ ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
45
+ } & {
46
+ asChild?: boolean | undefined;
47
+ }, "ref"> & RefAttributes<HTMLSpanElement>>;
48
+ Thumb: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
49
+ ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
50
+ } & {
51
+ asChild?: boolean | undefined;
52
+ }, "ref"> & RefAttributes<HTMLSpanElement>>;
53
+ };
54
+ export { Switch, SwitchControl, SwitchInput, SwitchLabel, SwitchThumb, switchAnatomy, useSwitchContext, };
55
+ export type { SwitchControlProps, SwitchInputProps, SwitchLabelProps, SwitchProps, SwitchThumbProps, };
package/switch/index.mjs CHANGED
@@ -1,7 +1,17 @@
1
- export { Switch } from './switch.mjs';
1
+ import { Switch as Switch$1 } from './switch.mjs';
2
2
  export { useSwitchContext } from './switch-context.mjs';
3
- export { SwitchControl } from './switch-control.mjs';
4
- export { SwitchInput } from './switch-input.mjs';
5
- export { SwitchLabel } from './switch-label.mjs';
6
- export { SwitchThumb } from './switch-thumb.mjs';
3
+ import { SwitchControl } from './switch-control.mjs';
4
+ import { SwitchInput } from './switch-input.mjs';
5
+ import { SwitchLabel } from './switch-label.mjs';
6
+ import { SwitchThumb } from './switch-thumb.mjs';
7
7
  export { anatomy as switchAnatomy } from '@zag-js/switch';
8
+
9
+ const Switch = Object.assign(Switch$1, {
10
+ Root: Switch$1,
11
+ Control: SwitchControl,
12
+ Input: SwitchInput,
13
+ Label: SwitchLabel,
14
+ Thumb: SwitchThumb
15
+ });
16
+
17
+ export { Switch, SwitchControl, SwitchInput, SwitchLabel, SwitchThumb };
@@ -1,5 +1,6 @@
1
- import type { PublicApi } from '@zag-js/switch';
2
- import type { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { PublicApi } from '@zag-js/switch';
2
+ import { Provider, HTMLAttributes, CSSProperties } from 'react';
3
+ /// <reference types="react" />
3
4
  import { type UseSwitchReturn } from './use-switch';
4
5
  export type SwitchContext = UseSwitchReturn;
5
6
  export declare const SwitchProvider: Provider<PublicApi<JSX.IntrinsicElements & {
@@ -1,8 +1,8 @@
1
- import type { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
2
  import { ark } from '../factory';
3
3
  export type SwitchControlProps = ComponentPropsWithoutRef<typeof ark.span>;
4
4
  export declare const SwitchControl: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
- ref?: ((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null | undefined;
5
+ ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
6
6
  } & {
7
7
  asChild?: boolean | undefined;
8
8
  }, "ref"> & RefAttributes<HTMLSpanElement>>;
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
2
  import { ark } from '../factory';
3
3
  export type SwitchInputProps = ComponentPropsWithoutRef<typeof ark.input>;
4
4
  export declare const SwitchInput: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
@@ -1,8 +1,8 @@
1
- import type { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
2
  import { ark } from '../factory';
3
3
  export type SwitchLabelProps = ComponentPropsWithoutRef<typeof ark.span>;
4
4
  export declare const SwitchLabel: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
- ref?: ((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null | undefined;
5
+ ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
6
6
  } & {
7
7
  asChild?: boolean | undefined;
8
8
  }, "ref"> & RefAttributes<HTMLSpanElement>>;
@@ -1,8 +1,8 @@
1
- import type { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
2
  import { ark } from '../factory';
3
3
  export type SwitchThumbProps = ComponentPropsWithoutRef<typeof ark.span>;
4
4
  export declare const SwitchThumb: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
- ref?: ((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null | undefined;
5
+ ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
6
6
  } & {
7
7
  asChild?: boolean | undefined;
8
8
  }, "ref"> & RefAttributes<HTMLSpanElement>>;
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, RefAttributes, ReactNode } from 'react';
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, RefAttributes, ReactNode } from 'react';
2
2
  import { type ComponentPropsWithoutRef } from 'react';
3
3
  import { ark } from '../factory';
4
4
  import type { Assign } from '../types';
@@ -0,0 +1,9 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import type { Meta } from '@storybook/react';
3
+ import { Switch } from './';
4
+ type SwitchType = typeof Switch;
5
+ declare const meta: Meta<SwitchType>;
6
+ export default meta;
7
+ export declare const Basic: () => JSX.Element;
8
+ export declare const Controlled: () => JSX.Element;
9
+ export declare const RenderProp: () => JSX.Element;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6
6
  const react$1 = require('@zag-js/react');
7
7
  const zagSwitch = require('@zag-js/switch');
8
8
  const react = require('react');
9
+ require('../environment/index.cjs');
9
10
  const environmentContext = require('../environment/environment-context.cjs');
10
11
 
11
12
  function _interopNamespaceDefault(e) {
@@ -1,4 +1,5 @@
1
- import type { HTMLAttributes, CSSProperties } from 'react';
1
+ import { HTMLAttributes, CSSProperties } from 'react';
2
+ /// <reference types="react" />
2
3
  import * as zagSwitch from '@zag-js/switch';
3
4
  import { type Optional } from '../types';
4
5
  export type UseSwitchProps = Optional<zagSwitch.Context, 'id'>;
@@ -2,6 +2,7 @@
2
2
  import { useMachine, normalizeProps } from '@zag-js/react';
3
3
  import * as zagSwitch from '@zag-js/switch';
4
4
  import { useId } from 'react';
5
+ import '../environment/index.mjs';
5
6
  import { useEnvironmentContext } from '../environment/environment-context.mjs';
6
7
 
7
8
  const useSwitch = (props) => {
package/tabs/index.cjs CHANGED
@@ -6,19 +6,25 @@ const tabContent = require('./tab-content.cjs');
6
6
  const tabIndicator = require('./tab-indicator.cjs');
7
7
  const tabList = require('./tab-list.cjs');
8
8
  const tabTrigger = require('./tab-trigger.cjs');
9
- const tabs = require('./tabs.cjs');
9
+ const tabs$1 = require('./tabs.cjs');
10
10
  const tabsContext = require('./tabs-context.cjs');
11
- const tabs$1 = require('@zag-js/tabs');
12
-
11
+ const tabs = require('@zag-js/tabs');
13
12
 
13
+ const Tabs = Object.assign(tabs$1.Tabs, {
14
+ Root: tabs$1.Tabs,
15
+ Content: tabContent.TabContent,
16
+ Indicator: tabIndicator.TabIndicator,
17
+ List: tabList.TabList,
18
+ Trigger: tabTrigger.TabTrigger
19
+ });
14
20
 
15
21
  exports.TabContent = tabContent.TabContent;
16
22
  exports.TabIndicator = tabIndicator.TabIndicator;
17
23
  exports.TabList = tabList.TabList;
18
24
  exports.TabTrigger = tabTrigger.TabTrigger;
19
- exports.Tabs = tabs.Tabs;
20
25
  exports.useTabsContext = tabsContext.useTabsContext;
21
26
  Object.defineProperty(exports, 'tabsAnatomy', {
22
- enumerable: true,
23
- get: () => tabs$1.anatomy
27
+ enumerable: true,
28
+ get: () => tabs.anatomy
24
29
  });
30
+ exports.Tabs = Tabs;
package/tabs/index.d.ts CHANGED
@@ -1,7 +1,48 @@
1
- export { TabContent, type TabContentProps } from './tab-content';
2
- export { TabIndicator, type TabIndicatorProps } from './tab-indicator';
3
- export { TabList, type TabListProps } from './tab-list';
4
- export { TabTrigger, type TabTriggerProps } from './tab-trigger';
5
- export { Tabs, type TabsProps } from './tabs';
6
- export { useTabsContext } from './tabs-context';
7
- export { tabsAnatomy } from './tabs.anatomy';
1
+ import { TabPresenceProps } from './tab-presence';
2
+ import { Context, ContentProps, TriggerProps } from '@zag-js/tabs';
3
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, ButtonHTMLAttributes } from 'react';
4
+ /// <reference types="react" />
5
+ import { TabContent, type TabContentProps } from './tab-content';
6
+ import { TabIndicator, type TabIndicatorProps } from './tab-indicator';
7
+ import { TabList, type TabListProps } from './tab-list';
8
+ import { TabTrigger, type TabTriggerProps } from './tab-trigger';
9
+ import { type TabsProps } from './tabs';
10
+ import { useTabsContext } from './tabs-context';
11
+ import { tabsAnatomy } from './tabs.anatomy';
12
+ declare const Tabs: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
14
+ } & {
15
+ asChild?: boolean | undefined;
16
+ }, "ref">, "value" | "getRootNode" | "id" | "ids" | "orientation" | "onFocus" | "onChange" | "defaultValue" | "dir" | "loop" | "translations" | "activationMode" | "onDelete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
17
+ defaultValue?: string | null | undefined;
18
+ } & RefAttributes<HTMLDivElement>> & {
19
+ Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
+ ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
21
+ } & {
22
+ asChild?: boolean | undefined;
23
+ }, "ref">, "value" | "getRootNode" | "id" | "ids" | "orientation" | "onFocus" | "onChange" | "defaultValue" | "dir" | "loop" | "translations" | "activationMode" | "onDelete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
24
+ defaultValue?: string | null | undefined;
25
+ } & RefAttributes<HTMLDivElement>>;
26
+ Content: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
27
+ ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
28
+ } & {
29
+ asChild?: boolean | undefined;
30
+ }, "ref"> & ContentProps & Omit<TabPresenceProps, "children"> & RefAttributes<HTMLDivElement>>;
31
+ Indicator: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
32
+ ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
33
+ } & {
34
+ asChild?: boolean | undefined;
35
+ }, "ref"> & RefAttributes<HTMLDivElement>>;
36
+ List: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
37
+ ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
38
+ } & {
39
+ asChild?: boolean | undefined;
40
+ }, "ref"> & RefAttributes<HTMLDivElement>>;
41
+ Trigger: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
42
+ ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
43
+ } & {
44
+ asChild?: boolean | undefined;
45
+ }, "ref">, keyof TriggerProps> & TriggerProps & RefAttributes<HTMLButtonElement>>;
46
+ };
47
+ export { TabContent, TabIndicator, TabList, TabTrigger, Tabs, tabsAnatomy, useTabsContext };
48
+ export type { TabContentProps, TabIndicatorProps, TabListProps, TabTriggerProps, TabsProps };
package/tabs/index.mjs CHANGED
@@ -1,7 +1,17 @@
1
- export { TabContent } from './tab-content.mjs';
2
- export { TabIndicator } from './tab-indicator.mjs';
3
- export { TabList } from './tab-list.mjs';
4
- export { TabTrigger } from './tab-trigger.mjs';
5
- export { Tabs } from './tabs.mjs';
1
+ import { TabContent } from './tab-content.mjs';
2
+ import { TabIndicator } from './tab-indicator.mjs';
3
+ import { TabList } from './tab-list.mjs';
4
+ import { TabTrigger } from './tab-trigger.mjs';
5
+ import { Tabs as Tabs$1 } from './tabs.mjs';
6
6
  export { useTabsContext } from './tabs-context.mjs';
7
7
  export { anatomy as tabsAnatomy } from '@zag-js/tabs';
8
+
9
+ const Tabs = Object.assign(Tabs$1, {
10
+ Root: Tabs$1,
11
+ Content: TabContent,
12
+ Indicator: TabIndicator,
13
+ List: TabList,
14
+ Trigger: TabTrigger
15
+ });
16
+
17
+ export { TabContent, TabIndicator, TabList, TabTrigger, Tabs };
@@ -9,9 +9,10 @@ require('@zag-js/tabs');
9
9
  const react = require('react');
10
10
  const createSplitProps = require('../create-split-props.cjs');
11
11
  const factory = require('../factory.cjs');
12
- const splitPresenceProps = require('../presence/split-presence-props.cjs');
12
+ require('../presence/index.cjs');
13
13
  const tabPresence = require('./tab-presence.cjs');
14
14
  const tabsContext = require('./tabs-context.cjs');
15
+ const splitPresenceProps = require('../presence/split-presence-props.cjs');
15
16
 
16
17
  const TabContent = react.forwardRef((props, ref) => {
17
18
  const [presenceProps, tabContentProps] = splitPresenceProps.splitPresenceProps(props);
@@ -1,5 +1,5 @@
1
1
  import { type ContentProps } from '@zag-js/tabs';
2
- import type { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
3
3
  import { ark } from '../factory';
4
4
  import { type TabPresenceProps } from './tab-presence';
5
5
  export type TabContentProps = InnerTabContentProps & Omit<TabPresenceProps, 'children'>;
@@ -5,9 +5,10 @@ import '@zag-js/tabs';
5
5
  import { forwardRef } from 'react';
6
6
  import { createSplitProps } from '../create-split-props.mjs';
7
7
  import { ark } from '../factory.mjs';
8
- import { splitPresenceProps } from '../presence/split-presence-props.mjs';
8
+ import '../presence/index.mjs';
9
9
  import { TabPresence } from './tab-presence.mjs';
10
10
  import { useTabsContext } from './tabs-context.mjs';
11
+ import { splitPresenceProps } from '../presence/split-presence-props.mjs';
11
12
 
12
13
  const TabContent = forwardRef((props, ref) => {
13
14
  const [presenceProps, tabContentProps] = splitPresenceProps(props);
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
2
  import { ark } from '../factory';
3
3
  export type TabIndicatorProps = ComponentPropsWithoutRef<typeof ark.div>;
4
4
  export declare const TabIndicator: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
2
  import { ark } from '../factory';
3
3
  export type TabListProps = ComponentPropsWithoutRef<typeof ark.div>;
4
4
  export declare const TabList: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -5,13 +5,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
6
  const jsxRuntime = require('react/jsx-runtime');
7
7
  require('@zag-js/tabs');
8
- const presence = require('../presence/presence.cjs');
8
+ const index = require('../presence/index.cjs');
9
9
  const tabsContext = require('./tabs-context.cjs');
10
10
 
11
11
  const TabPresence = (props) => {
12
12
  const { present, ...rest } = props;
13
13
  const { value } = tabsContext.useTabsContext();
14
- return /* @__PURE__ */ jsxRuntime.jsx(presence.Presence, { present: present !== void 0 ? present : value === props.value, ...rest });
14
+ return /* @__PURE__ */ jsxRuntime.jsx(index.Presence, { present: present !== void 0 ? present : value === props.value, ...rest });
15
15
  };
16
16
 
17
17
  exports.TabPresence = TabPresence;
@@ -1,4 +1,4 @@
1
- import type { JSX } from 'react/jsx-runtime';
1
+ import { JSX } from 'react/jsx-runtime';
2
2
  import { type ContentProps } from '@zag-js/tabs';
3
3
  import { type PresenceProps } from '../presence';
4
4
  export type TabPresenceProps = PresenceProps & ContentProps;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import '@zag-js/tabs';
4
- import { Presence } from '../presence/presence.mjs';
4
+ import { Presence } from '../presence/index.mjs';
5
5
  import { useTabsContext } from './tabs-context.mjs';
6
6
 
7
7
  const TabPresence = (props) => {
@@ -1,5 +1,5 @@
1
1
  import type { TriggerProps } from '@zag-js/tabs';
2
- import type { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
2
+ import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
3
3
  import { ark } from '../factory';
4
4
  import { type Assign } from '../types';
5
5
  export type TabTriggerProps = Assign<ComponentPropsWithoutRef<typeof ark.button>, TriggerProps>;
@@ -1,5 +1,6 @@
1
- import type { PublicApi } from '@zag-js/tabs';
2
- import type { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { PublicApi } from '@zag-js/tabs';
2
+ import { Provider, HTMLAttributes, CSSProperties } from 'react';
3
+ /// <reference types="react" />
3
4
  import { type UseTabsReturn } from './use-tabs';
4
5
  export type TabsContext = UseTabsReturn;
5
6
  export declare const TabsProvider: Provider<PublicApi<JSX.IntrinsicElements & {
package/tabs/tabs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Context } from '@zag-js/tabs';
2
- import type { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import { Context } from '@zag-js/tabs';
2
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
3
3
  import { ark } from '../factory';
4
4
  import { type Assign } from '../types';
5
5
  import { type UseTabsProps } from './use-tabs';
@@ -8,6 +8,6 @@ export declare const Tabs: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
9
9
  } & {
10
10
  asChild?: boolean | undefined;
11
- }, "ref">, "value" | "id" | "orientation" | "onFocus" | "onChange" | "defaultValue" | "dir" | "loop" | "getRootNode" | "ids" | "translations" | "activationMode" | "onDelete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
11
+ }, "ref">, "value" | "getRootNode" | "id" | "ids" | "orientation" | "onFocus" | "onChange" | "defaultValue" | "dir" | "loop" | "translations" | "activationMode" | "onDelete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
12
12
  defaultValue?: string | null | undefined;
13
13
  } & RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import type { Meta } from '@storybook/react';
3
+ import { Tabs } from '.';
4
+ type TabsType = typeof Tabs;
5
+ declare const meta: Meta<TabsType>;
6
+ export default meta;
7
+ export declare const Basic: () => JSX.Element;
8
+ export declare const InitialTab: () => JSX.Element;
9
+ export declare const Indicator: () => JSX.Element;
10
+ export declare const LazyMount: () => JSX.Element;
11
+ export declare const DisabledTab: () => JSX.Element;
12
+ export declare const Controlled: () => JSX.Element;
13
+ export declare const Vertical: () => JSX.Element;
14
+ export declare const Manual: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
package/tabs/use-tabs.cjs CHANGED
@@ -6,6 +6,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6
6
  const react$1 = require('@zag-js/react');
7
7
  const tabs = require('@zag-js/tabs');
8
8
  const react = require('react');
9
+ require('../environment/index.cjs');
9
10
  const environmentContext = require('../environment/environment-context.cjs');
10
11
 
11
12
  const useTabs = (props) => {
@@ -1,5 +1,6 @@
1
- import type { HTMLAttributes, CSSProperties } from 'react';
2
- import type { PublicApi, type Context } from '@zag-js/tabs';
1
+ import { HTMLAttributes, CSSProperties } from 'react';
2
+ /// <reference types="react" />
3
+ import { PublicApi, type Context } from '@zag-js/tabs';
3
4
  import { type Optional } from '../types';
4
5
  export type UseTabsProps = Optional<Context, 'id'> & {
5
6
  defaultValue?: Context['value'];
package/tabs/use-tabs.mjs CHANGED
@@ -2,6 +2,7 @@
2
2
  import { useMachine, normalizeProps } from '@zag-js/react';
3
3
  import { machine, connect } from '@zag-js/tabs';
4
4
  import { useId } from 'react';
5
+ import '../environment/index.mjs';
5
6
  import { useEnvironmentContext } from '../environment/environment-context.mjs';
6
7
 
7
8
  const useTabs = (props) => {
@@ -5,26 +5,35 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
  const tag = require('./tag.cjs');
6
6
  const tagDeleteTrigger = require('./tag-delete-trigger.cjs');
7
7
  const tagInput = require('./tag-input.cjs');
8
- const tagsInput = require('./tags-input.cjs');
8
+ const tagsInput$1 = require('./tags-input.cjs');
9
9
  const tagsInputClearTrigger = require('./tags-input-clear-trigger.cjs');
10
10
  const tagsInputContext = require('./tags-input-context.cjs');
11
11
  const tagsInputControl = require('./tags-input-control.cjs');
12
12
  const tagsInputField = require('./tags-input-field.cjs');
13
13
  const tagsInputLabel = require('./tags-input-label.cjs');
14
- const tagsInput$1 = require('@zag-js/tags-input');
15
-
14
+ const tagsInput = require('@zag-js/tags-input');
16
15
 
16
+ const TagsInput = Object.assign(tagsInput$1.TagsInput, {
17
+ Root: tagsInput$1.TagsInput,
18
+ ClearTrigger: tagsInputClearTrigger.TagsInputClearTrigger,
19
+ Control: tagsInputControl.TagsInputControl,
20
+ Field: tagsInputField.TagsInputField,
21
+ Label: tagsInputLabel.TagsInputLabel,
22
+ Tag: tag.Tag,
23
+ TagInput: tagInput.TagInput,
24
+ TagDeleteTrigger: tagDeleteTrigger.TagDeleteTrigger
25
+ });
17
26
 
18
27
  exports.Tag = tag.Tag;
19
28
  exports.TagDeleteTrigger = tagDeleteTrigger.TagDeleteTrigger;
20
29
  exports.TagInput = tagInput.TagInput;
21
- exports.TagsInput = tagsInput.TagsInput;
22
30
  exports.TagsInputClearTrigger = tagsInputClearTrigger.TagsInputClearTrigger;
23
31
  exports.useTagsInputContext = tagsInputContext.useTagsInputContext;
24
32
  exports.TagsInputControl = tagsInputControl.TagsInputControl;
25
33
  exports.TagsInputField = tagsInputField.TagsInputField;
26
34
  exports.TagsInputLabel = tagsInputLabel.TagsInputLabel;
27
35
  Object.defineProperty(exports, 'tagsInputAnatomy', {
28
- enumerable: true,
29
- get: () => tagsInput$1.anatomy
36
+ enumerable: true,
37
+ get: () => tagsInput.anatomy
30
38
  });
39
+ exports.TagsInput = TagsInput;
@@ -1,10 +1,90 @@
1
- export { Tag, type TagProps } from './tag';
2
- export { TagDeleteTrigger, type TagDeleteTriggerProps } from './tag-delete-trigger';
3
- export { TagInput, type TagInputProps } from './tag-input';
4
- export { TagsInput, type TagsInputProps } from './tags-input';
5
- export { TagsInputClearTrigger, type TagsInputClearTriggerProps } from './tags-input-clear-trigger';
6
- export { useTagsInputContext } from './tags-input-context';
7
- export { TagsInputControl, type TagsInputControlProps } from './tags-input-control';
8
- export { TagsInputField, type TagsInputFieldProps } from './tags-input-field';
9
- export { TagsInputLabel, type TagsInputLabelProps } from './tags-input-label';
10
- export { tagsInputAnatomy } from './tags-input.anatomy';
1
+ import { UseTagsInputProps } from './use-tags-input';
2
+ import { Assign } from '../types';
3
+ import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, ReactNode, RefAttributes, ButtonHTMLAttributes, HTMLAttributes, LabelHTMLAttributes } from 'react';
4
+ /// <reference types="react" />
5
+ import { Tag, type TagProps } from './tag';
6
+ import { TagDeleteTrigger, type TagDeleteTriggerProps } from './tag-delete-trigger';
7
+ import { TagInput, type TagInputProps } from './tag-input';
8
+ import { type TagsInputProps } from './tags-input';
9
+ import { TagsInputClearTrigger, type TagsInputClearTriggerProps } from './tags-input-clear-trigger';
10
+ import { useTagsInputContext } from './tags-input-context';
11
+ import { TagsInputControl, type TagsInputControlProps } from './tags-input-control';
12
+ import { TagsInputField, type TagsInputFieldProps } from './tags-input-field';
13
+ import { TagsInputLabel, type TagsInputLabelProps } from './tags-input-label';
14
+ 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"> & {
20
+ children: ReactNode | ((pages: UseTagsInputProps) => ReactNode);
21
+ } & 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"> & {
27
+ children: ReactNode | ((pages: UseTagsInputProps) => ReactNode);
28
+ } & 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
+ } & {
37
+ asChild?: boolean | undefined;
38
+ }, "ref"> & RefAttributes<HTMLDivElement>>;
39
+ Field: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
40
+ ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
41
+ } & {
42
+ 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
+ } & {
47
+ 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
+ } & {
52
+ asChild?: boolean | undefined;
53
+ }, "ref">, keyof {
54
+ index: string | number;
55
+ value: string;
56
+ disabled?: boolean | undefined;
57
+ }> & {
58
+ index: string | number;
59
+ value: string;
60
+ disabled?: boolean | undefined;
61
+ } & 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 {
67
+ index: string | number;
68
+ value: string;
69
+ disabled?: boolean | undefined;
70
+ }> & {
71
+ index: string | number;
72
+ value: string;
73
+ disabled?: boolean | undefined;
74
+ } & 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 {
80
+ index: string | number;
81
+ value: string;
82
+ disabled?: boolean | undefined;
83
+ }> & {
84
+ index: string | number;
85
+ value: string;
86
+ disabled?: boolean | undefined;
87
+ } & RefAttributes<HTMLButtonElement>>;
88
+ };
89
+ export { Tag, TagDeleteTrigger, TagInput, TagsInput, TagsInputClearTrigger, TagsInputControl, TagsInputField, TagsInputLabel, tagsInputAnatomy, useTagsInputContext, };
90
+ export type { TagDeleteTriggerProps, TagInputProps, TagProps, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputFieldProps, TagsInputLabelProps, TagsInputProps, };