@ark-ui/react 1.3.0 → 2.0.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 (458) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +1 -0
  3. package/accordion/accordion-item-content.cjs +1 -2
  4. package/accordion/accordion-item-content.mjs +1 -2
  5. package/accordion/accordion-item-trigger.cjs +1 -2
  6. package/accordion/accordion-item-trigger.mjs +1 -2
  7. package/accordion/accordion-item.cjs +3 -4
  8. package/accordion/accordion-item.mjs +3 -4
  9. package/accordion/{accordion.cjs → accordion-root.cjs} +5 -6
  10. package/accordion/{accordion.d.ts → accordion-root.d.ts} +2 -2
  11. package/accordion/{accordion.mjs → accordion-root.mjs} +5 -6
  12. package/accordion/index.cjs +5 -4
  13. package/accordion/index.d.ts +5 -5
  14. package/accordion/index.mjs +5 -5
  15. package/accordion/stories/accordion.stories.d.ts +1 -3
  16. package/accordion/stories/icons.d.ts +3 -0
  17. package/accordion/tests/basic.d.ts +3 -0
  18. package/accordion/use-accordion.cjs +1 -2
  19. package/accordion/use-accordion.mjs +1 -2
  20. package/avatar/{avatar.cjs → avatar-root.cjs} +3 -3
  21. package/avatar/{avatar.d.ts → avatar-root.d.ts} +2 -2
  22. package/avatar/{avatar.mjs → avatar-root.mjs} +3 -3
  23. package/avatar/index.cjs +5 -4
  24. package/avatar/index.d.ts +5 -5
  25. package/avatar/index.mjs +5 -5
  26. package/avatar/stories/avatar.stories.d.ts +1 -3
  27. package/avatar/tests/basic.d.ts +3 -0
  28. package/avatar/use-avatar.cjs +1 -2
  29. package/avatar/use-avatar.mjs +1 -2
  30. package/carousel/{carousel.cjs → carousel-root.cjs} +3 -3
  31. package/carousel/{carousel.d.ts → carousel-root.d.ts} +2 -2
  32. package/carousel/{carousel.mjs → carousel-root.mjs} +3 -3
  33. package/carousel/index.cjs +5 -4
  34. package/carousel/index.d.ts +5 -5
  35. package/carousel/index.mjs +5 -5
  36. package/carousel/stories/carousel.stories.d.ts +1 -3
  37. package/carousel/tests/basic.d.ts +3 -0
  38. package/carousel/use-carousel.cjs +1 -2
  39. package/carousel/use-carousel.mjs +1 -2
  40. package/checkbox/{checkbox.cjs → checkbox-root.cjs} +3 -3
  41. package/checkbox/{checkbox.d.ts → checkbox-root.d.ts} +2 -2
  42. package/checkbox/{checkbox.mjs → checkbox-root.mjs} +3 -3
  43. package/checkbox/index.cjs +5 -4
  44. package/checkbox/index.d.ts +6 -6
  45. package/checkbox/index.mjs +5 -5
  46. package/checkbox/stories/checkbox.stories.d.ts +1 -3
  47. package/checkbox/tests/basic.d.ts +3 -0
  48. package/checkbox/tests/controlled.d.ts +3 -0
  49. package/checkbox/use-checkbox.cjs +1 -2
  50. package/checkbox/use-checkbox.mjs +1 -2
  51. package/color-picker/color-picker-content.cjs +1 -2
  52. package/color-picker/color-picker-content.mjs +1 -2
  53. package/color-picker/color-picker-positioner.cjs +1 -2
  54. package/color-picker/color-picker-positioner.mjs +1 -2
  55. package/color-picker/{color-picker.cjs → color-picker-root.cjs} +6 -7
  56. package/color-picker/{color-picker.d.ts → color-picker-root.d.ts} +2 -2
  57. package/color-picker/{color-picker.mjs → color-picker-root.mjs} +6 -7
  58. package/color-picker/index.cjs +5 -4
  59. package/color-picker/index.d.ts +5 -5
  60. package/color-picker/index.mjs +5 -5
  61. package/color-picker/stories/color-picker.stories.d.ts +1 -3
  62. package/color-picker/tests/basic.d.ts +3 -0
  63. package/color-picker/use-color-picker.cjs +1 -2
  64. package/color-picker/use-color-picker.mjs +1 -2
  65. package/combobox/combobox-content.cjs +1 -2
  66. package/combobox/combobox-content.mjs +1 -2
  67. package/combobox/combobox-positioner.cjs +1 -2
  68. package/combobox/combobox-positioner.mjs +1 -2
  69. package/combobox/{combobox.cjs → combobox-root.cjs} +5 -6
  70. package/combobox/{combobox.d.ts → combobox-root.d.ts} +3 -3
  71. package/combobox/{combobox.mjs → combobox-root.mjs} +5 -6
  72. package/combobox/index.cjs +5 -4
  73. package/combobox/index.d.ts +4 -4
  74. package/combobox/index.mjs +5 -5
  75. package/combobox/stories/combobox.stories.d.ts +1 -3
  76. package/combobox/tests/basic.d.ts +10 -0
  77. package/combobox/use-combobox.cjs +1 -2
  78. package/combobox/use-combobox.mjs +1 -2
  79. package/date-picker/date-picker-content.cjs +1 -2
  80. package/date-picker/date-picker-content.mjs +1 -2
  81. package/date-picker/date-picker-positioner.cjs +1 -2
  82. package/date-picker/date-picker-positioner.mjs +1 -2
  83. package/date-picker/{date-picker.cjs → date-picker-root.cjs} +6 -7
  84. package/date-picker/{date-picker.d.ts → date-picker-root.d.ts} +2 -2
  85. package/date-picker/{date-picker.mjs → date-picker-root.mjs} +6 -7
  86. package/date-picker/index.cjs +5 -4
  87. package/date-picker/index.d.ts +5 -5
  88. package/date-picker/index.mjs +5 -5
  89. package/date-picker/stories/date-picker.stories.d.ts +1 -3
  90. package/date-picker/stories/date-range-picker.stories.d.ts +1 -3
  91. package/date-picker/tests/basic.d.ts +3 -0
  92. package/date-picker/use-date-picker.cjs +1 -2
  93. package/date-picker/use-date-picker.mjs +1 -2
  94. package/dialog/dialog-backdrop.cjs +1 -2
  95. package/dialog/dialog-backdrop.mjs +1 -2
  96. package/dialog/dialog-content.cjs +1 -2
  97. package/dialog/dialog-content.mjs +1 -2
  98. package/dialog/dialog-positioner.cjs +1 -2
  99. package/dialog/dialog-positioner.mjs +1 -2
  100. package/dialog/{dialog.cjs → dialog-root.cjs} +5 -6
  101. package/dialog/{dialog.d.ts → dialog-root.d.ts} +2 -2
  102. package/dialog/{dialog.mjs → dialog-root.mjs} +5 -6
  103. package/dialog/dialog-trigger.cjs +1 -2
  104. package/dialog/dialog-trigger.mjs +1 -2
  105. package/dialog/index.cjs +5 -4
  106. package/dialog/index.d.ts +5 -5
  107. package/dialog/index.mjs +5 -5
  108. package/dialog/stories/dialog.stories.d.ts +1 -3
  109. package/dialog/tests/basic.d.ts +3 -0
  110. package/dialog/use-dialog.cjs +1 -2
  111. package/dialog/use-dialog.mjs +1 -2
  112. package/editable/{editable.cjs → editable-root.cjs} +3 -3
  113. package/editable/{editable.d.ts → editable-root.d.ts} +2 -2
  114. package/editable/{editable.mjs → editable-root.mjs} +3 -3
  115. package/editable/index.cjs +5 -4
  116. package/editable/index.d.ts +5 -5
  117. package/editable/index.mjs +5 -5
  118. package/editable/stories/editable.stories.d.ts +1 -3
  119. package/editable/tests/basic.d.ts +3 -0
  120. package/editable/tests/controlled.d.ts +3 -0
  121. package/editable/use-editable.cjs +1 -2
  122. package/editable/use-editable.mjs +1 -2
  123. package/environment/index.cjs +2 -4
  124. package/environment/index.d.ts +1 -5
  125. package/environment/index.mjs +1 -7
  126. package/environment/stories/environment.stories.d.ts +1 -3
  127. package/file-upload/{file-upload.cjs → file-upload-root.cjs} +3 -3
  128. package/file-upload/{file-upload.d.ts → file-upload-root.d.ts} +2 -2
  129. package/file-upload/{file-upload.mjs → file-upload-root.mjs} +3 -3
  130. package/file-upload/index.cjs +5 -4
  131. package/file-upload/index.d.ts +5 -5
  132. package/file-upload/index.mjs +5 -5
  133. package/file-upload/stories/file-upload.stories.d.ts +1 -3
  134. package/file-upload/stories/icons.d.ts +3 -0
  135. package/file-upload/tests/basic.d.ts +3 -0
  136. package/file-upload/use-file-upload.cjs +1 -2
  137. package/file-upload/use-file-upload.mjs +1 -2
  138. package/hover-card/hover-card-content.cjs +1 -2
  139. package/hover-card/hover-card-content.mjs +1 -2
  140. package/hover-card/hover-card-positioner.cjs +1 -2
  141. package/hover-card/hover-card-positioner.mjs +1 -2
  142. package/hover-card/{hover-card.cjs → hover-card-root.cjs} +4 -5
  143. package/hover-card/{hover-card.d.ts → hover-card-root.d.ts} +2 -2
  144. package/hover-card/{hover-card.mjs → hover-card-root.mjs} +4 -5
  145. package/hover-card/index.cjs +5 -4
  146. package/hover-card/index.d.ts +6 -6
  147. package/hover-card/index.mjs +5 -5
  148. package/hover-card/stories/hover-card.stories.d.ts +1 -3
  149. package/hover-card/tests/basic.d.ts +3 -0
  150. package/hover-card/use-hover-card.cjs +1 -2
  151. package/hover-card/use-hover-card.mjs +1 -2
  152. package/index.cjs +144 -58
  153. package/index.d.ts +1 -0
  154. package/index.mjs +51 -8
  155. package/menu/index.cjs +5 -4
  156. package/menu/index.d.ts +5 -5
  157. package/menu/index.mjs +5 -5
  158. package/menu/menu-content.cjs +1 -2
  159. package/menu/menu-content.mjs +1 -2
  160. package/menu/menu-positioner.cjs +1 -2
  161. package/menu/menu-positioner.mjs +1 -2
  162. package/menu/{menu.cjs → menu-root.cjs} +5 -6
  163. package/menu/{menu.d.ts → menu-root.d.ts} +2 -2
  164. package/menu/{menu.mjs → menu-root.mjs} +5 -6
  165. package/menu/menu-trigger.cjs +1 -2
  166. package/menu/menu-trigger.mjs +1 -2
  167. package/menu/stories/context-menu.stories.d.ts +1 -3
  168. package/menu/stories/menu.stories.d.ts +1 -3
  169. package/menu/stories/nested-menu.stories.d.ts +1 -3
  170. package/menu/tests/basic.d.ts +3 -0
  171. package/menu/tests/context-menu.d.ts +2 -0
  172. package/menu/tests/menu-item-group.d.ts +2 -0
  173. package/menu/tests/nested-menu.d.ts +2 -0
  174. package/menu/tests/option-groups.d.ts +2 -0
  175. package/menu/tests/render-prop.d.ts +2 -0
  176. package/menu/use-menu.cjs +1 -2
  177. package/menu/use-menu.mjs +1 -2
  178. package/number-input/index.cjs +5 -4
  179. package/number-input/index.d.ts +5 -5
  180. package/number-input/index.mjs +5 -5
  181. package/number-input/{number-input.cjs → number-input-root.cjs} +3 -3
  182. package/number-input/{number-input.d.ts → number-input-root.d.ts} +2 -2
  183. package/number-input/{number-input.mjs → number-input-root.mjs} +3 -3
  184. package/number-input/stories/number-input.stories.d.ts +1 -3
  185. package/number-input/tests/basic.d.ts +3 -0
  186. package/number-input/use-number-input.cjs +1 -2
  187. package/number-input/use-number-input.mjs +1 -2
  188. package/package.json +60 -54
  189. package/pagination/index.cjs +5 -4
  190. package/pagination/index.d.ts +5 -5
  191. package/pagination/index.mjs +5 -5
  192. package/pagination/{pagination.cjs → pagination-root.cjs} +3 -3
  193. package/pagination/{pagination.d.ts → pagination-root.d.ts} +2 -2
  194. package/pagination/{pagination.mjs → pagination-root.mjs} +3 -3
  195. package/pagination/stories/pagination.stories.d.ts +1 -3
  196. package/pagination/tests/basic.d.ts +3 -0
  197. package/pagination/use-pagination.cjs +1 -2
  198. package/pagination/use-pagination.mjs +1 -2
  199. package/pin-input/index.cjs +5 -4
  200. package/pin-input/index.d.ts +5 -5
  201. package/pin-input/index.mjs +5 -5
  202. package/pin-input/{pin-input.cjs → pin-input-root.cjs} +3 -3
  203. package/pin-input/{pin-input.d.ts → pin-input-root.d.ts} +2 -2
  204. package/pin-input/{pin-input.mjs → pin-input-root.mjs} +3 -3
  205. package/pin-input/stories/pin-input.stories.d.ts +1 -3
  206. package/pin-input/tests/basic.d.ts +3 -0
  207. package/pin-input/use-pin-input.cjs +1 -2
  208. package/pin-input/use-pin-input.mjs +1 -2
  209. package/popover/index.cjs +5 -4
  210. package/popover/index.d.ts +5 -5
  211. package/popover/index.mjs +5 -5
  212. package/popover/popover-content.cjs +1 -2
  213. package/popover/popover-content.mjs +1 -2
  214. package/popover/popover-positioner.cjs +1 -2
  215. package/popover/popover-positioner.mjs +1 -2
  216. package/popover/{popover.cjs → popover-root.cjs} +4 -5
  217. package/popover/{popover.d.ts → popover-root.d.ts} +2 -2
  218. package/popover/{popover.mjs → popover-root.mjs} +4 -5
  219. package/popover/popover-trigger.cjs +1 -2
  220. package/popover/popover-trigger.mjs +1 -2
  221. package/popover/stories/popover.stories.d.ts +1 -3
  222. package/popover/tests/basic.d.ts +3 -0
  223. package/popover/tests/controlled.d.ts +3 -0
  224. package/popover/use-popover.cjs +1 -2
  225. package/popover/use-popover.mjs +1 -2
  226. package/portal.cjs +1 -2
  227. package/portal.mjs +1 -2
  228. package/presence/index.cjs +2 -4
  229. package/presence/index.d.ts +1 -6
  230. package/presence/index.mjs +1 -7
  231. package/presence/stories/presence.stories.d.ts +1 -3
  232. package/progress/index.cjs +8 -7
  233. package/progress/index.d.ts +7 -7
  234. package/progress/index.mjs +7 -7
  235. package/progress/{progress.cjs → progress-root.cjs} +4 -4
  236. package/progress/{progress.d.ts → progress-root.d.ts} +2 -2
  237. package/progress/{progress.mjs → progress-root.mjs} +4 -4
  238. package/progress/progress-view.cjs +20 -0
  239. package/progress/progress-view.d.ts +8 -0
  240. package/progress/progress-view.mjs +16 -0
  241. package/progress/stories/circular-progress.stories.d.ts +1 -3
  242. package/progress/stories/linear-progress.stories.d.ts +1 -3
  243. package/progress/tests/basic.d.ts +3 -0
  244. package/progress/use-progress.cjs +0 -1
  245. package/progress/use-progress.mjs +0 -1
  246. package/radio-group/index.cjs +5 -4
  247. package/radio-group/index.d.ts +5 -5
  248. package/radio-group/index.mjs +5 -5
  249. package/radio-group/{radio-group.cjs → radio-group-root.cjs} +3 -3
  250. package/radio-group/{radio-group.d.ts → radio-group-root.d.ts} +2 -2
  251. package/radio-group/{radio-group.mjs → radio-group-root.mjs} +3 -3
  252. package/radio-group/stories/radio-group.stories.d.ts +1 -3
  253. package/radio-group/tests/basic.d.ts +3 -0
  254. package/radio-group/use-radio-group.cjs +1 -2
  255. package/radio-group/use-radio-group.mjs +1 -2
  256. package/rating-group/index.cjs +5 -4
  257. package/rating-group/index.d.ts +5 -5
  258. package/rating-group/index.mjs +5 -5
  259. package/rating-group/{rating-group.cjs → rating-group-root.cjs} +3 -3
  260. package/rating-group/{rating-group.d.ts → rating-group-root.d.ts} +2 -2
  261. package/rating-group/{rating-group.mjs → rating-group-root.mjs} +3 -3
  262. package/rating-group/stories/rating-group.stories.d.ts +1 -3
  263. package/rating-group/tests/basic.d.ts +3 -0
  264. package/rating-group/use-rating-group.cjs +1 -2
  265. package/rating-group/use-rating-group.mjs +1 -2
  266. package/segment-group/index.cjs +5 -4
  267. package/segment-group/index.d.ts +5 -5
  268. package/segment-group/index.mjs +5 -5
  269. package/segment-group/{segment-group.cjs → segment-group-root.cjs} +3 -3
  270. package/segment-group/{segment-group.d.ts → segment-group-root.d.ts} +2 -2
  271. package/segment-group/{segment-group.mjs → segment-group-root.mjs} +3 -3
  272. package/segment-group/stories/segment-group.stories.d.ts +1 -3
  273. package/segment-group/tests/basic.d.ts +3 -0
  274. package/segment-group/use-segment-group.cjs +1 -2
  275. package/segment-group/use-segment-group.mjs +1 -2
  276. package/select/index.cjs +5 -4
  277. package/select/index.d.ts +4 -4
  278. package/select/index.mjs +5 -5
  279. package/select/select-content.cjs +1 -2
  280. package/select/select-content.mjs +1 -2
  281. package/select/select-positioner.cjs +1 -2
  282. package/select/select-positioner.mjs +1 -2
  283. package/select/{select.cjs → select-root.cjs} +5 -6
  284. package/select/{select.d.ts → select-root.d.ts} +3 -3
  285. package/select/{select.mjs → select-root.mjs} +5 -6
  286. package/select/stories/icons.d.ts +4 -0
  287. package/select/stories/select.stories.d.ts +1 -3
  288. package/select/tests/basic.d.ts +10 -0
  289. package/select/use-select.cjs +1 -2
  290. package/select/use-select.mjs +1 -2
  291. package/slider/index.cjs +5 -4
  292. package/slider/index.d.ts +5 -5
  293. package/slider/index.mjs +5 -5
  294. package/slider/{slider.cjs → slider-root.cjs} +3 -3
  295. package/slider/{slider.d.ts → slider-root.d.ts} +2 -2
  296. package/slider/{slider.mjs → slider-root.mjs} +3 -3
  297. package/slider/stories/range-slider.stories.d.ts +1 -3
  298. package/slider/stories/slider.stories.d.ts +1 -3
  299. package/slider/tests/basic.d.ts +3 -0
  300. package/slider/use-slider.cjs +1 -2
  301. package/slider/use-slider.mjs +1 -2
  302. package/splitter/index.cjs +5 -4
  303. package/splitter/index.d.ts +5 -5
  304. package/splitter/index.mjs +5 -5
  305. package/splitter/{splitter.cjs → splitter-root.cjs} +3 -3
  306. package/splitter/{splitter.d.ts → splitter-root.d.ts} +2 -2
  307. package/splitter/{splitter.mjs → splitter-root.mjs} +3 -3
  308. package/splitter/stories/splitter.stories.d.ts +1 -3
  309. package/splitter/tests/basic.d.ts +3 -0
  310. package/splitter/use-splitter.cjs +1 -2
  311. package/splitter/use-splitter.mjs +1 -2
  312. package/switch/index.cjs +5 -4
  313. package/switch/index.d.ts +5 -5
  314. package/switch/index.mjs +5 -5
  315. package/switch/stories/switch.stories.d.ts +1 -3
  316. package/switch/{switch.cjs → switch-root.cjs} +3 -3
  317. package/switch/{switch.d.ts → switch-root.d.ts} +2 -2
  318. package/switch/{switch.mjs → switch-root.mjs} +3 -3
  319. package/switch/tests/basic.d.ts +3 -0
  320. package/switch/use-switch.cjs +1 -2
  321. package/switch/use-switch.mjs +1 -2
  322. package/tabs/index.cjs +5 -4
  323. package/tabs/index.d.ts +5 -5
  324. package/tabs/index.mjs +5 -5
  325. package/tabs/stories/tabs.stories.d.ts +1 -3
  326. package/tabs/tab-content.cjs +2 -3
  327. package/tabs/tab-content.mjs +2 -3
  328. package/tabs/{tabs.cjs → tabs-root.cjs} +5 -6
  329. package/tabs/{tabs.d.ts → tabs-root.d.ts} +2 -2
  330. package/tabs/{tabs.mjs → tabs-root.mjs} +5 -6
  331. package/tabs/tests/basic.d.ts +3 -0
  332. package/tabs/use-tabs.cjs +1 -2
  333. package/tabs/use-tabs.mjs +1 -2
  334. package/tags-input/index.cjs +8 -4
  335. package/tags-input/index.d.ts +7 -5
  336. package/tags-input/index.mjs +7 -5
  337. package/tags-input/stories/tags-input.stories.d.ts +1 -3
  338. package/tags-input/tags-input-item-preview.cjs +23 -0
  339. package/tags-input/tags-input-item-preview.d.ts +6 -0
  340. package/tags-input/tags-input-item-preview.mjs +19 -0
  341. package/tags-input/{tags-input.cjs → tags-input-root.cjs} +3 -3
  342. package/tags-input/{tags-input.d.ts → tags-input-root.d.ts} +2 -2
  343. package/tags-input/{tags-input.mjs → tags-input-root.mjs} +3 -3
  344. package/tags-input/tests/basic.d.ts +3 -0
  345. package/tags-input/use-tags-input.cjs +1 -2
  346. package/tags-input/use-tags-input.mjs +1 -2
  347. package/toast/create-toaster.cjs +1 -2
  348. package/toast/create-toaster.mjs +1 -2
  349. package/toast/index.cjs +5 -4
  350. package/toast/index.d.ts +5 -5
  351. package/toast/index.mjs +5 -5
  352. package/toast/stories/toast.stories.d.ts +1 -3
  353. package/toast/{toast.cjs → toast-root.cjs} +3 -3
  354. package/toast/toast-root.d.ts +6 -0
  355. package/toast/{toast.mjs → toast-root.mjs} +3 -3
  356. package/toggle-group/index.cjs +5 -4
  357. package/toggle-group/index.d.ts +5 -5
  358. package/toggle-group/index.mjs +5 -5
  359. package/toggle-group/stories/toggle-group.stories.d.ts +1 -3
  360. package/toggle-group/tests/basic.d.ts +3 -0
  361. package/toggle-group/{toggle-group.cjs → toggle-group-root.cjs} +3 -3
  362. package/toggle-group/{toggle-group.d.ts → toggle-group-root.d.ts} +2 -2
  363. package/toggle-group/{toggle-group.mjs → toggle-group-root.mjs} +3 -3
  364. package/toggle-group/use-toggle-group.cjs +1 -2
  365. package/toggle-group/use-toggle-group.mjs +1 -2
  366. package/tooltip/index.cjs +5 -4
  367. package/tooltip/index.d.ts +5 -5
  368. package/tooltip/index.mjs +5 -5
  369. package/tooltip/stories/tooltip.stories.d.ts +1 -3
  370. package/tooltip/tests/basic.d.ts +3 -0
  371. package/tooltip/tests/tooltip.test.d.ts +1 -0
  372. package/tooltip/tooltip-content.cjs +1 -2
  373. package/tooltip/tooltip-content.mjs +1 -2
  374. package/tooltip/tooltip-positioner.cjs +1 -2
  375. package/tooltip/tooltip-positioner.mjs +1 -2
  376. package/tooltip/{tooltip.cjs → tooltip-root.cjs} +4 -5
  377. package/tooltip/{tooltip.d.ts → tooltip-root.d.ts} +2 -2
  378. package/tooltip/{tooltip.mjs → tooltip-root.mjs} +4 -5
  379. package/tooltip/use-tooltip.cjs +1 -2
  380. package/tooltip/use-tooltip.mjs +1 -2
  381. package/tree-view/index.cjs +45 -0
  382. package/tree-view/index.d.ts +30 -0
  383. package/tree-view/index.mjs +29 -0
  384. package/tree-view/stories/tree-view.stories.d.ts +5 -0
  385. package/tree-view/tests/basic.d.ts +3 -0
  386. package/tree-view/tests/tree-view.test.d.ts +1 -0
  387. package/tree-view/tree-view-branch-content.cjs +27 -0
  388. package/tree-view/tree-view-branch-content.d.ts +8 -0
  389. package/tree-view/tree-view-branch-content.mjs +23 -0
  390. package/tree-view/tree-view-branch-control.cjs +27 -0
  391. package/tree-view/tree-view-branch-control.d.ts +8 -0
  392. package/tree-view/tree-view-branch-control.mjs +23 -0
  393. package/tree-view/tree-view-branch-indicator.cjs +32 -0
  394. package/tree-view/tree-view-branch-indicator.d.ts +8 -0
  395. package/tree-view/tree-view-branch-indicator.mjs +28 -0
  396. package/tree-view/tree-view-branch-text.cjs +27 -0
  397. package/tree-view/tree-view-branch-text.d.ts +8 -0
  398. package/tree-view/tree-view-branch-text.mjs +23 -0
  399. package/tree-view/tree-view-branch-trigger.cjs +27 -0
  400. package/tree-view/tree-view-branch-trigger.d.ts +8 -0
  401. package/tree-view/tree-view-branch-trigger.mjs +23 -0
  402. package/tree-view/tree-view-branch.cjs +28 -0
  403. package/tree-view/tree-view-branch.d.ts +9 -0
  404. package/tree-view/tree-view-branch.mjs +24 -0
  405. package/tree-view/tree-view-context.cjs +15 -0
  406. package/tree-view/tree-view-context.d.ts +22 -0
  407. package/tree-view/tree-view-context.mjs +10 -0
  408. package/tree-view/tree-view-item-text.cjs +30 -0
  409. package/tree-view/tree-view-item-text.d.ts +8 -0
  410. package/tree-view/tree-view-item-text.mjs +26 -0
  411. package/tree-view/tree-view-item.cjs +28 -0
  412. package/tree-view/tree-view-item.d.ts +9 -0
  413. package/tree-view/tree-view-item.mjs +24 -0
  414. package/tree-view/tree-view-label.cjs +19 -0
  415. package/tree-view/tree-view-label.d.ts +6 -0
  416. package/tree-view/tree-view-label.mjs +15 -0
  417. package/tree-view/tree-view-root.cjs +40 -0
  418. package/tree-view/tree-view-root.d.ts +9 -0
  419. package/tree-view/tree-view-root.mjs +36 -0
  420. package/tree-view/tree-view-tree.cjs +19 -0
  421. package/tree-view/tree-view-tree.d.ts +6 -0
  422. package/tree-view/tree-view-tree.mjs +15 -0
  423. package/tree-view/use-tree-view.cjs +49 -0
  424. package/tree-view/use-tree-view.d.ts +12 -0
  425. package/tree-view/use-tree-view.mjs +26 -0
  426. package/progress/progress-indicator.cjs +0 -22
  427. package/progress/progress-indicator.d.ts +0 -8
  428. package/progress/progress-indicator.mjs +0 -18
  429. package/toast/toast.d.ts +0 -6
  430. /package/accordion/{accordion.test.d.ts → tests/accordion.test.d.ts} +0 -0
  431. /package/avatar/{avatar.test.d.ts → tests/avatar.test.d.ts} +0 -0
  432. /package/carousel/{carousel.test.d.ts → tests/carousel.test.d.ts} +0 -0
  433. /package/checkbox/{checkbox.test.d.ts → tests/checkbox.test.d.ts} +0 -0
  434. /package/color-picker/{color-picker.test.d.ts → tests/color-picker.test.d.ts} +0 -0
  435. /package/combobox/{combobox.test.d.ts → tests/combobox.test.d.ts} +0 -0
  436. /package/date-picker/{date-picker.test.d.ts → tests/date-picker.test.d.ts} +0 -0
  437. /package/dialog/{dialog.test.d.ts → tests/dialog.test.d.ts} +0 -0
  438. /package/editable/{editable.test.d.ts → tests/editable.test.d.ts} +0 -0
  439. /package/file-upload/{file-upload.test.d.ts → tests/file-upload.test.d.ts} +0 -0
  440. /package/hover-card/{hover-card.test.d.ts → tests/hover-card.test.d.ts} +0 -0
  441. /package/menu/{menu.test.d.ts → tests/menu.test.d.ts} +0 -0
  442. /package/number-input/{number-input.test.d.ts → tests/number-input.test.d.ts} +0 -0
  443. /package/pagination/{pagination.test.d.ts → tests/pagination.test.d.ts} +0 -0
  444. /package/pin-input/{pin-input.test.d.ts → tests/pin-input.test.d.ts} +0 -0
  445. /package/popover/{popover.test.d.ts → tests/popover.test.d.ts} +0 -0
  446. /package/progress/{progress.test.d.ts → tests/progress.test.d.ts} +0 -0
  447. /package/radio-group/{radio-group.test.d.ts → tests/radio-group.test.d.ts} +0 -0
  448. /package/rating-group/{rating-group.test.d.ts → tests/rating-group.test.d.ts} +0 -0
  449. /package/segment-group/{segment-group.test.d.ts → tests/segment-group.test.d.ts} +0 -0
  450. /package/select/{select.test.d.ts → tests/select.test.d.ts} +0 -0
  451. /package/slider/{slider.test.d.ts → tests/slider.test.d.ts} +0 -0
  452. /package/splitter/{splitter.test.d.ts → tests/splitter.test.d.ts} +0 -0
  453. /package/switch/{switch.test.d.ts → tests/switch.test.d.ts} +0 -0
  454. /package/tabs/{tabs.test.d.ts → tests/tabs.test.d.ts} +0 -0
  455. /package/tags-input/{tags-input.test.d.ts → tests/tags-input.test.d.ts} +0 -0
  456. /package/toast/{toast.test.d.ts → tests/basic.d.ts} +0 -0
  457. /package/{toggle-group/toggle-group.test.d.ts → toast/tests/toast.test.d.ts} +0 -0
  458. /package/{tooltip/tooltip.test.d.ts → toggle-group/tests/toggle-group.test.d.ts} +0 -0
@@ -1,16 +1,16 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  /// <reference types="react" />
3
3
  import type { FocusChangeDetails as NumberInputFocusChangeDetails, ValueChangeDetails as NumberInputValueChangeDetails, ValueInvalidDetails as NumberInputValueInvalidDetails } from '@zag-js/number-input';
4
- import { type NumberInputProps } from './number-input';
5
4
  import { useNumberInputContext, type NumberInputContext } from './number-input-context';
6
5
  import { NumberInputControl, type NumberInputControlProps } from './number-input-control';
7
6
  import { NumberInputDecrementTrigger, type NumberInputDecrementTriggerProps } from './number-input-decrement-trigger';
8
7
  import { NumberInputIncrementTrigger, type NumberInputIncrementTriggerProps } from './number-input-increment-trigger';
9
8
  import { NumberInputInput, type NumberInputInputProps } from './number-input-input';
10
9
  import { NumberInputLabel, type NumberInputLabelProps } from './number-input-label';
10
+ import { NumberInputRoot, type NumberInputRootProps } from './number-input-root';
11
11
  import { NumberInputScrubber, type NumberInputScrubberProps } from './number-input-scrubber';
12
- declare const NumberInput: ForwardRefExoticComponent<NumberInputProps & RefAttributes<HTMLDivElement>> & {
13
- Root: ForwardRefExoticComponent<NumberInputProps & RefAttributes<HTMLDivElement>>;
12
+ export declare const NumberInput: {
13
+ Root: ForwardRefExoticComponent<NumberInputRootProps & RefAttributes<HTMLDivElement>>;
14
14
  Control: ForwardRefExoticComponent<NumberInputControlProps & RefAttributes<HTMLDivElement>>;
15
15
  DecrementTrigger: ForwardRefExoticComponent<NumberInputDecrementTriggerProps & RefAttributes<HTMLButtonElement>>;
16
16
  Input: ForwardRefExoticComponent<NumberInputInputProps & RefAttributes<HTMLInputElement>>;
@@ -18,5 +18,5 @@ declare const NumberInput: ForwardRefExoticComponent<NumberInputProps & RefAttri
18
18
  Label: ForwardRefExoticComponent<NumberInputLabelProps & RefAttributes<HTMLLabelElement>>;
19
19
  Scrubber: ForwardRefExoticComponent<NumberInputScrubberProps & RefAttributes<HTMLDivElement>>;
20
20
  };
21
- export { NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputScrubber, useNumberInputContext, };
22
- export type { NumberInputContext, NumberInputControlProps, NumberInputDecrementTriggerProps, NumberInputFocusChangeDetails, NumberInputIncrementTriggerProps, NumberInputInputProps, NumberInputLabelProps, NumberInputProps, NumberInputScrubberProps, NumberInputValueChangeDetails, NumberInputValueInvalidDetails, };
21
+ export { NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputRoot, NumberInputScrubber, useNumberInputContext, };
22
+ export type { NumberInputContext, NumberInputControlProps, NumberInputDecrementTriggerProps, NumberInputFocusChangeDetails, NumberInputIncrementTriggerProps, NumberInputInputProps, NumberInputLabelProps, NumberInputRootProps, NumberInputScrubberProps, NumberInputValueChangeDetails, NumberInputValueInvalidDetails, };
@@ -1,21 +1,21 @@
1
1
  'use client';
2
- import { NumberInput as NumberInput$1 } from './number-input.mjs';
3
2
  export { useNumberInputContext } from './number-input-context.mjs';
4
3
  import { NumberInputControl } from './number-input-control.mjs';
5
4
  import { NumberInputDecrementTrigger } from './number-input-decrement-trigger.mjs';
6
5
  import { NumberInputIncrementTrigger } from './number-input-increment-trigger.mjs';
7
6
  import { NumberInputInput } from './number-input-input.mjs';
8
7
  import { NumberInputLabel } from './number-input-label.mjs';
8
+ import { NumberInputRoot } from './number-input-root.mjs';
9
9
  import { NumberInputScrubber } from './number-input-scrubber.mjs';
10
10
 
11
- const NumberInput = Object.assign(NumberInput$1, {
12
- Root: NumberInput$1,
11
+ const NumberInput = {
12
+ Root: NumberInputRoot,
13
13
  Control: NumberInputControl,
14
14
  DecrementTrigger: NumberInputDecrementTrigger,
15
15
  Input: NumberInputInput,
16
16
  IncrementTrigger: NumberInputIncrementTrigger,
17
17
  Label: NumberInputLabel,
18
18
  Scrubber: NumberInputScrubber
19
- });
19
+ };
20
20
 
21
- export { NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputScrubber };
21
+ export { NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputRoot, NumberInputScrubber };
@@ -12,7 +12,7 @@ const runIfFn = require('../run-if-fn.cjs');
12
12
  const numberInputContext = require('./number-input-context.cjs');
13
13
  const useNumberInput = require('./use-number-input.cjs');
14
14
 
15
- const NumberInput = react.forwardRef((props, ref) => {
15
+ const NumberInputRoot = react.forwardRef((props, ref) => {
16
16
  const [useNumberInputProps, { children, ...localProps }] = createSplitProps.createSplitProps()(props, [
17
17
  "allowMouseWheel",
18
18
  "allowOverflow",
@@ -47,6 +47,6 @@ const NumberInput = react.forwardRef((props, ref) => {
47
47
  const view = runIfFn.runIfFn(children, api);
48
48
  return /* @__PURE__ */ jsxRuntime.jsx(numberInputContext.NumberInputProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }) });
49
49
  });
50
- NumberInput.displayName = "NumberInput";
50
+ NumberInputRoot.displayName = "NumberInputRoot";
51
51
 
52
- exports.NumberInput = NumberInput;
52
+ exports.NumberInputRoot = NumberInputRoot;
@@ -2,8 +2,8 @@ import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react'
2
2
  import { type HTMLArkProps } from '../factory';
3
3
  import { type Assign } from '../types';
4
4
  import { type UseNumberInputProps, type UseNumberInputReturn } from './use-number-input';
5
- export interface NumberInputProps extends Assign<Assign<HTMLArkProps<'div'>, {
5
+ export interface NumberInputRootProps extends Assign<Assign<HTMLArkProps<'div'>, {
6
6
  children?: ReactNode | ((api: UseNumberInputReturn) => ReactNode);
7
7
  }>, UseNumberInputProps> {
8
8
  }
9
- export declare const NumberInput: ForwardRefExoticComponent<NumberInputProps & RefAttributes<HTMLDivElement>>;
9
+ export declare const NumberInputRoot: ForwardRefExoticComponent<NumberInputRootProps & RefAttributes<HTMLDivElement>>;
@@ -8,7 +8,7 @@ import { runIfFn } from '../run-if-fn.mjs';
8
8
  import { NumberInputProvider } from './number-input-context.mjs';
9
9
  import { useNumberInput } from './use-number-input.mjs';
10
10
 
11
- const NumberInput = forwardRef((props, ref) => {
11
+ const NumberInputRoot = forwardRef((props, ref) => {
12
12
  const [useNumberInputProps, { children, ...localProps }] = createSplitProps()(props, [
13
13
  "allowMouseWheel",
14
14
  "allowOverflow",
@@ -43,6 +43,6 @@ const NumberInput = forwardRef((props, ref) => {
43
43
  const view = runIfFn(children, api);
44
44
  return /* @__PURE__ */ jsx(NumberInputProvider, { value: api, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }) });
45
45
  });
46
- NumberInput.displayName = "NumberInput";
46
+ NumberInputRoot.displayName = "NumberInputRoot";
47
47
 
48
- export { NumberInput };
48
+ export { NumberInputRoot };
@@ -1,8 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { NumberInput } from '../';
4
- type NumberInputType = typeof NumberInput.Root;
5
- declare const meta: Meta<NumberInputType>;
3
+ declare const meta: Meta;
6
4
  export default meta;
7
5
  export declare const Basic: () => JSX.Element;
8
6
  export declare const MinMax: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { type NumberInputRootProps } from '../';
3
+ export declare const ComponentUnderTest: (props: NumberInputRootProps) => JSX.Element;
@@ -6,9 +6,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6
6
  const numberInput = require('@zag-js/number-input');
7
7
  const react$1 = require('@zag-js/react');
8
8
  const react = require('react');
9
- require('../environment/index.cjs');
10
- const useEvent = require('../use-event.cjs');
11
9
  const environmentContext = require('../environment/environment-context.cjs');
10
+ const useEvent = require('../use-event.cjs');
12
11
 
13
12
  function _interopNamespaceDefault(e) {
14
13
  const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
@@ -2,9 +2,8 @@
2
2
  import * as numberInput from '@zag-js/number-input';
3
3
  import { useMachine, normalizeProps } from '@zag-js/react';
4
4
  import { useId } from 'react';
5
- import '../environment/index.mjs';
6
- import { useEvent } from '../use-event.mjs';
7
5
  import { useEnvironmentContext } from '../environment/environment-context.mjs';
6
+ import { useEvent } from '../use-event.mjs';
8
7
 
9
8
  const useNumberInput = (props = {}) => {
10
9
  const initialContext = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark-ui/react",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
5
5
  "keywords": [
6
6
  "accordion",
@@ -33,7 +33,8 @@
33
33
  "tags input",
34
34
  "toast",
35
35
  "toggle group",
36
- "tooltip"
36
+ "tooltip",
37
+ "tree view"
37
38
  ],
38
39
  "homepage": "https://ark-ui.com",
39
40
  "license": "MIT",
@@ -61,80 +62,80 @@
61
62
  "release-it": "release-it --config ../../../release-it.json"
62
63
  },
63
64
  "dependencies": {
64
- "@ark-ui/anatomy": "1.3.0",
65
- "@zag-js/accordion": "0.32.1",
66
- "@zag-js/avatar": "0.32.1",
67
- "@zag-js/carousel": "0.32.1",
68
- "@zag-js/checkbox": "0.32.1",
69
- "@zag-js/color-picker": "0.32.1",
70
- "@zag-js/color-utils": "0.32.1",
71
- "@zag-js/combobox": "0.32.1",
72
- "@zag-js/core": "0.32.1",
73
- "@zag-js/date-picker": "0.32.1",
74
- "@zag-js/date-utils": "0.32.1",
75
- "@zag-js/dialog": "0.32.1",
76
- "@zag-js/editable": "0.32.1",
77
- "@zag-js/file-upload": "0.32.1",
78
- "@zag-js/hover-card": "0.32.1",
79
- "@zag-js/menu": "0.32.1",
80
- "@zag-js/number-input": "0.32.1",
81
- "@zag-js/pagination": "0.32.1",
82
- "@zag-js/pin-input": "0.32.1",
83
- "@zag-js/popover": "0.32.1",
84
- "@zag-js/presence": "0.32.1",
85
- "@zag-js/progress": "0.32.1",
86
- "@zag-js/radio-group": "0.32.1",
87
- "@zag-js/rating-group": "0.32.1",
88
- "@zag-js/react": "0.32.1",
89
- "@zag-js/select": "0.32.1",
90
- "@zag-js/slider": "0.32.1",
91
- "@zag-js/splitter": "0.32.1",
92
- "@zag-js/switch": "0.32.1",
93
- "@zag-js/tabs": "0.32.1",
94
- "@zag-js/tags-input": "0.32.1",
95
- "@zag-js/toast": "0.32.1",
96
- "@zag-js/toggle-group": "0.32.1",
97
- "@zag-js/tooltip": "0.32.1",
98
- "@zag-js/types": "0.32.1"
65
+ "@ark-ui/anatomy": "2.1.0",
66
+ "@zag-js/accordion": "0.34.0",
67
+ "@zag-js/avatar": "0.34.0",
68
+ "@zag-js/carousel": "0.34.0",
69
+ "@zag-js/checkbox": "0.34.0",
70
+ "@zag-js/color-picker": "0.34.0",
71
+ "@zag-js/color-utils": "0.34.0",
72
+ "@zag-js/combobox": "0.34.0",
73
+ "@zag-js/core": "0.34.0",
74
+ "@zag-js/date-picker": "0.34.0",
75
+ "@zag-js/date-utils": "0.34.0",
76
+ "@zag-js/dialog": "0.34.0",
77
+ "@zag-js/editable": "0.34.0",
78
+ "@zag-js/file-upload": "0.34.0",
79
+ "@zag-js/hover-card": "0.34.0",
80
+ "@zag-js/menu": "0.34.0",
81
+ "@zag-js/number-input": "0.34.0",
82
+ "@zag-js/pagination": "0.34.0",
83
+ "@zag-js/pin-input": "0.34.0",
84
+ "@zag-js/popover": "0.34.0",
85
+ "@zag-js/presence": "0.34.0",
86
+ "@zag-js/progress": "0.34.0",
87
+ "@zag-js/radio-group": "0.34.0",
88
+ "@zag-js/rating-group": "0.34.0",
89
+ "@zag-js/react": "0.34.0",
90
+ "@zag-js/select": "0.34.0",
91
+ "@zag-js/slider": "0.34.0",
92
+ "@zag-js/splitter": "0.34.0",
93
+ "@zag-js/switch": "0.34.0",
94
+ "@zag-js/tabs": "0.34.0",
95
+ "@zag-js/tags-input": "0.34.0",
96
+ "@zag-js/toast": "0.34.0",
97
+ "@zag-js/toggle-group": "0.34.0",
98
+ "@zag-js/tooltip": "0.34.0",
99
+ "@zag-js/tree-view": "0.34.0",
100
+ "@zag-js/types": "0.34.0"
99
101
  },
100
102
  "devDependencies": {
101
103
  "@release-it/keep-a-changelog": "5.0.0",
102
- "@storybook/addon-a11y": "7.6.8",
103
- "@storybook/addon-essentials": "7.6.8",
104
- "@storybook/addons": "7.6.8",
105
- "@storybook/react": "7.6.8",
106
- "@storybook/react-vite": "7.6.8",
104
+ "@storybook/addon-a11y": "7.6.10",
105
+ "@storybook/addon-essentials": "7.6.10",
106
+ "@storybook/addons": "7.6.10",
107
+ "@storybook/react": "7.6.10",
108
+ "@storybook/react-vite": "7.6.10",
107
109
  "@testing-library/dom": "9.3.4",
108
- "@testing-library/jest-dom": "6.2.0",
110
+ "@testing-library/jest-dom": "6.3.0",
109
111
  "@testing-library/react": "14.1.2",
110
112
  "@testing-library/user-event": "14.5.2",
111
113
  "@types/jsdom": "21.1.6",
112
- "@types/react": "18.2.47",
114
+ "@types/react": "18.2.48",
113
115
  "@types/react-dom": "18.2.18",
114
116
  "@types/testing-library__jest-dom": "5.14.9",
115
- "@typescript-eslint/eslint-plugin": "6.18.1",
116
- "@typescript-eslint/parser": "6.18.1",
117
+ "@typescript-eslint/eslint-plugin": "6.20.0",
118
+ "@typescript-eslint/parser": "6.20.0",
117
119
  "@vitejs/plugin-react": "4.2.1",
118
- "@vitest/coverage-v8": "0.34.6",
120
+ "@vitest/coverage-v8": "1.2.2",
119
121
  "eslint": "8.56.0",
120
122
  "eslint-plugin-jest-dom": "5.1.0",
121
123
  "eslint-plugin-react": "7.33.2",
122
124
  "eslint-plugin-react-hooks": "4.6.0",
123
125
  "eslint-plugin-testing-library": "6.2.0",
124
126
  "globby": "14.0.0",
125
- "jsdom": "23.0.1",
126
- "lucide-react": "0.309.0",
127
+ "jsdom": "24.0.0",
127
128
  "react": "18.2.0",
128
129
  "react-dom": "18.2.0",
129
130
  "react-frame-component": "5.2.6",
130
131
  "react-hook-form": "7.49.3",
131
- "release-it": "17.0.1",
132
+ "release-it": "17.0.3",
132
133
  "resize-observer-polyfill": "1.5.1",
133
- "storybook": "7.6.8",
134
+ "storybook": "7.6.10",
134
135
  "typescript": "5.3.3",
135
- "vite": "5.0.11",
136
- "vite-plugin-dts": "3.7.0",
137
- "vitest": "0.34.6"
136
+ "vite": "5.0.12",
137
+ "vite-plugin-dts": "3.7.2",
138
+ "vitest": "1.2.2"
138
139
  },
139
140
  "peerDependencies": {
140
141
  "react": ">=18.0.0",
@@ -307,6 +308,11 @@
307
308
  "import": "./tooltip/index.mjs",
308
309
  "require": "./tooltip/index.cjs"
309
310
  },
311
+ "./tree-view": {
312
+ "types": "./tree-view/index.d.ts",
313
+ "import": "./tree-view/index.mjs",
314
+ "require": "./tree-view/index.cjs"
315
+ },
310
316
  "./factory": {
311
317
  "types": "./factory.d.ts",
312
318
  "import": "./factory.mjs",
@@ -3,24 +3,25 @@
3
3
 
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
- const pagination = require('./pagination.cjs');
7
6
  const paginationContext = require('./pagination-context.cjs');
8
7
  const paginationEllipsis = require('./pagination-ellipsis.cjs');
9
8
  const paginationItem = require('./pagination-item.cjs');
10
9
  const paginationNextTrigger = require('./pagination-next-trigger.cjs');
11
10
  const paginationPrevTrigger = require('./pagination-prev-trigger.cjs');
11
+ const paginationRoot = require('./pagination-root.cjs');
12
12
 
13
- const Pagination = Object.assign(pagination.Pagination, {
14
- Root: pagination.Pagination,
13
+ const Pagination = {
14
+ Root: paginationRoot.PaginationRoot,
15
15
  Ellipsis: paginationEllipsis.PaginationEllipsis,
16
16
  Item: paginationItem.PaginationItem,
17
17
  NextTrigger: paginationNextTrigger.PaginationNextTrigger,
18
18
  PrevTrigger: paginationPrevTrigger.PaginationPrevTrigger
19
- });
19
+ };
20
20
 
21
21
  exports.usePaginationContext = paginationContext.usePaginationContext;
22
22
  exports.PaginationEllipsis = paginationEllipsis.PaginationEllipsis;
23
23
  exports.PaginationItem = paginationItem.PaginationItem;
24
24
  exports.PaginationNextTrigger = paginationNextTrigger.PaginationNextTrigger;
25
25
  exports.PaginationPrevTrigger = paginationPrevTrigger.PaginationPrevTrigger;
26
+ exports.PaginationRoot = paginationRoot.PaginationRoot;
26
27
  exports.Pagination = Pagination;
@@ -1,18 +1,18 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  /// <reference types="react" />
3
3
  import type { ItemLabelDetails as PaginationItemLabelDetails, PageChangeDetails as PaginationPageChangeDetails } from '@zag-js/pagination';
4
- import { type PaginationProps } from './pagination';
5
4
  import { usePaginationContext, type PaginationContext } from './pagination-context';
6
5
  import { PaginationEllipsis, type PaginationEllipsisProps } from './pagination-ellipsis';
7
6
  import { PaginationItem, type PaginationItemProps } from './pagination-item';
8
7
  import { PaginationNextTrigger, type PaginationNextTriggerProps } from './pagination-next-trigger';
9
8
  import { PaginationPrevTrigger, type PaginationPrevTriggerProps } from './pagination-prev-trigger';
10
- declare const Pagination: ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>> & {
11
- Root: ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
9
+ import { PaginationRoot, type PaginationRootProps } from './pagination-root';
10
+ export declare const Pagination: {
11
+ Root: ForwardRefExoticComponent<PaginationRootProps & RefAttributes<HTMLElement>>;
12
12
  Ellipsis: ForwardRefExoticComponent<PaginationEllipsisProps & RefAttributes<HTMLDivElement>>;
13
13
  Item: ForwardRefExoticComponent<PaginationItemProps & RefAttributes<HTMLButtonElement>>;
14
14
  NextTrigger: ForwardRefExoticComponent<PaginationNextTriggerProps & RefAttributes<HTMLButtonElement>>;
15
15
  PrevTrigger: ForwardRefExoticComponent<PaginationPrevTriggerProps & RefAttributes<HTMLButtonElement>>;
16
16
  };
17
- export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, usePaginationContext, };
18
- export type { PaginationContext, PaginationEllipsisProps, PaginationItemLabelDetails, PaginationItemProps, PaginationNextTriggerProps, PaginationPageChangeDetails, PaginationPrevTriggerProps, PaginationProps, };
17
+ export { PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, PaginationRoot, usePaginationContext, };
18
+ export type { PaginationContext, PaginationEllipsisProps, PaginationItemLabelDetails, PaginationItemProps, PaginationNextTriggerProps, PaginationPageChangeDetails, PaginationPrevTriggerProps, PaginationRootProps, };
@@ -1,17 +1,17 @@
1
1
  'use client';
2
- import { Pagination as Pagination$1 } from './pagination.mjs';
3
2
  export { usePaginationContext } from './pagination-context.mjs';
4
3
  import { PaginationEllipsis } from './pagination-ellipsis.mjs';
5
4
  import { PaginationItem } from './pagination-item.mjs';
6
5
  import { PaginationNextTrigger } from './pagination-next-trigger.mjs';
7
6
  import { PaginationPrevTrigger } from './pagination-prev-trigger.mjs';
7
+ import { PaginationRoot } from './pagination-root.mjs';
8
8
 
9
- const Pagination = Object.assign(Pagination$1, {
10
- Root: Pagination$1,
9
+ const Pagination = {
10
+ Root: PaginationRoot,
11
11
  Ellipsis: PaginationEllipsis,
12
12
  Item: PaginationItem,
13
13
  NextTrigger: PaginationNextTrigger,
14
14
  PrevTrigger: PaginationPrevTrigger
15
- });
15
+ };
16
16
 
17
- export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger };
17
+ export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, PaginationRoot };
@@ -12,7 +12,7 @@ const runIfFn = require('../run-if-fn.cjs');
12
12
  const paginationContext = require('./pagination-context.cjs');
13
13
  const usePagination = require('./use-pagination.cjs');
14
14
 
15
- const Pagination = react.forwardRef((props, ref) => {
15
+ const PaginationRoot = react.forwardRef((props, ref) => {
16
16
  const [paginationProps, { children, ...localProps }] = createSplitProps.createSplitProps()(
17
17
  props,
18
18
  [
@@ -35,6 +35,6 @@ const Pagination = react.forwardRef((props, ref) => {
35
35
  const view = runIfFn.runIfFn(children, api);
36
36
  return /* @__PURE__ */ jsxRuntime.jsx(paginationContext.PaginationProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.nav, { ...mergedProps, ref, children: view }) });
37
37
  });
38
- Pagination.displayName = "Pagination";
38
+ PaginationRoot.displayName = "PaginationRoot";
39
39
 
40
- exports.Pagination = Pagination;
40
+ exports.PaginationRoot = PaginationRoot;
@@ -2,8 +2,8 @@ import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react'
2
2
  import { type HTMLArkProps } from '../factory';
3
3
  import { type Assign } from '../types';
4
4
  import { type UsePaginationProps, type UsePaginationReturn } from './use-pagination';
5
- export interface PaginationProps extends Assign<Assign<HTMLArkProps<'nav'>, {
5
+ export interface PaginationRootProps extends Assign<Assign<HTMLArkProps<'nav'>, {
6
6
  children?: ReactNode | ((api: UsePaginationReturn) => ReactNode);
7
7
  }>, UsePaginationProps> {
8
8
  }
9
- export declare const Pagination: ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
9
+ export declare const PaginationRoot: ForwardRefExoticComponent<PaginationRootProps & RefAttributes<HTMLElement>>;
@@ -8,7 +8,7 @@ import { runIfFn } from '../run-if-fn.mjs';
8
8
  import { PaginationProvider } from './pagination-context.mjs';
9
9
  import { usePagination } from './use-pagination.mjs';
10
10
 
11
- const Pagination = forwardRef((props, ref) => {
11
+ const PaginationRoot = forwardRef((props, ref) => {
12
12
  const [paginationProps, { children, ...localProps }] = createSplitProps()(
13
13
  props,
14
14
  [
@@ -31,6 +31,6 @@ const Pagination = forwardRef((props, ref) => {
31
31
  const view = runIfFn(children, api);
32
32
  return /* @__PURE__ */ jsx(PaginationProvider, { value: api, children: /* @__PURE__ */ jsx(ark.nav, { ...mergedProps, ref, children: view }) });
33
33
  });
34
- Pagination.displayName = "Pagination";
34
+ PaginationRoot.displayName = "PaginationRoot";
35
35
 
36
- export { Pagination };
36
+ export { PaginationRoot };
@@ -1,8 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { Pagination } from '../';
4
- type PaginationType = typeof Pagination;
5
- declare const meta: Meta<PaginationType>;
3
+ declare const meta: Meta;
6
4
  export default meta;
7
5
  export declare const Basic: () => JSX.Element;
8
6
  export declare const Controlled: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { type PaginationRootProps } from '../';
3
+ export declare const ComponentUnderTest: (props: PaginationRootProps) => JSX.Element;
@@ -6,9 +6,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6
6
  const pagination = require('@zag-js/pagination');
7
7
  const react$1 = require('@zag-js/react');
8
8
  const react = require('react');
9
- require('../environment/index.cjs');
10
- const useEvent = require('../use-event.cjs');
11
9
  const environmentContext = require('../environment/environment-context.cjs');
10
+ const useEvent = require('../use-event.cjs');
12
11
 
13
12
  function _interopNamespaceDefault(e) {
14
13
  const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
@@ -2,9 +2,8 @@
2
2
  import * as pagination from '@zag-js/pagination';
3
3
  import { useMachine, normalizeProps } from '@zag-js/react';
4
4
  import { useId } from 'react';
5
- import '../environment/index.mjs';
6
- import { useEvent } from '../use-event.mjs';
7
5
  import { useEnvironmentContext } from '../environment/environment-context.mjs';
6
+ import { useEvent } from '../use-event.mjs';
8
7
 
9
8
  const usePagination = (props) => {
10
9
  const initialContext = {
@@ -3,21 +3,22 @@
3
3
 
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
- const pinInput = require('./pin-input.cjs');
7
6
  const pinInputContext = require('./pin-input-context.cjs');
8
7
  const pinInputControl = require('./pin-input-control.cjs');
9
8
  const pinInputInput = require('./pin-input-input.cjs');
10
9
  const pinInputLabel = require('./pin-input-label.cjs');
10
+ const pinInputRoot = require('./pin-input-root.cjs');
11
11
 
12
- const PinInput = Object.assign(pinInput.PinInput, {
13
- Root: pinInput.PinInput,
12
+ const PinInput = {
13
+ Root: pinInputRoot.PinInputRoot,
14
14
  Control: pinInputControl.PinInputControl,
15
15
  Input: pinInputInput.PinInputInput,
16
16
  Label: pinInputLabel.PinInputLabel
17
- });
17
+ };
18
18
 
19
19
  exports.usePinInputContext = pinInputContext.usePinInputContext;
20
20
  exports.PinInputControl = pinInputControl.PinInputControl;
21
21
  exports.PinInputInput = pinInputInput.PinInputInput;
22
22
  exports.PinInputLabel = pinInputLabel.PinInputLabel;
23
+ exports.PinInputRoot = pinInputRoot.PinInputRoot;
23
24
  exports.PinInput = PinInput;
@@ -1,16 +1,16 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  /// <reference types="react" />
3
3
  import type { ValueChangeDetails as PinInputValueChangeDetails, ValueInvalidDetails as PinInputValueInvalidDetails } from '@zag-js/pin-input';
4
- import { type PinInputProps } from './pin-input';
5
4
  import { usePinInputContext, type PinInputContext } from './pin-input-context';
6
5
  import { PinInputControl, type PinInputControlProps } from './pin-input-control';
7
6
  import { PinInputInput, type PinInputInputProps } from './pin-input-input';
8
7
  import { PinInputLabel, type PinInputLabelProps } from './pin-input-label';
9
- declare const PinInput: ForwardRefExoticComponent<PinInputProps & RefAttributes<HTMLDivElement>> & {
10
- Root: ForwardRefExoticComponent<PinInputProps & RefAttributes<HTMLDivElement>>;
8
+ import { PinInputRoot, type PinInputRootProps } from './pin-input-root';
9
+ export declare const PinInput: {
10
+ Root: ForwardRefExoticComponent<PinInputRootProps & RefAttributes<HTMLDivElement>>;
11
11
  Control: ForwardRefExoticComponent<PinInputControlProps & RefAttributes<HTMLDivElement>>;
12
12
  Input: ForwardRefExoticComponent<PinInputInputProps & RefAttributes<HTMLInputElement>>;
13
13
  Label: ForwardRefExoticComponent<PinInputLabelProps & RefAttributes<HTMLLabelElement>>;
14
14
  };
15
- export { PinInput, PinInputControl, PinInputInput, PinInputLabel, usePinInputContext };
16
- export type { PinInputContext, PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps, PinInputValueChangeDetails, PinInputValueInvalidDetails, };
15
+ export { PinInputControl, PinInputInput, PinInputLabel, PinInputRoot, usePinInputContext };
16
+ export type { PinInputContext, PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputRootProps, PinInputValueChangeDetails, PinInputValueInvalidDetails, };
@@ -1,15 +1,15 @@
1
1
  'use client';
2
- import { PinInput as PinInput$1 } from './pin-input.mjs';
3
2
  export { usePinInputContext } from './pin-input-context.mjs';
4
3
  import { PinInputControl } from './pin-input-control.mjs';
5
4
  import { PinInputInput } from './pin-input-input.mjs';
6
5
  import { PinInputLabel } from './pin-input-label.mjs';
6
+ import { PinInputRoot } from './pin-input-root.mjs';
7
7
 
8
- const PinInput = Object.assign(PinInput$1, {
9
- Root: PinInput$1,
8
+ const PinInput = {
9
+ Root: PinInputRoot,
10
10
  Control: PinInputControl,
11
11
  Input: PinInputInput,
12
12
  Label: PinInputLabel
13
- });
13
+ };
14
14
 
15
- export { PinInput, PinInputControl, PinInputInput, PinInputLabel };
15
+ export { PinInput, PinInputControl, PinInputInput, PinInputLabel, PinInputRoot };
@@ -11,7 +11,7 @@ const factory = require('../factory.cjs');
11
11
  const pinInputContext = require('./pin-input-context.cjs');
12
12
  const usePinInput = require('./use-pin-input.cjs');
13
13
 
14
- const PinInput = react.forwardRef((props, ref) => {
14
+ const PinInputRoot = react.forwardRef((props, ref) => {
15
15
  const [usePinInputProps, localProps] = createSplitProps.createSplitProps()(props, [
16
16
  "autoFocus",
17
17
  "blurOnComplete",
@@ -43,6 +43,6 @@ const PinInput = react.forwardRef((props, ref) => {
43
43
  /* @__PURE__ */ jsxRuntime.jsx("input", { ...api.hiddenInputProps })
44
44
  ] });
45
45
  });
46
- PinInput.displayName = "PinInput";
46
+ PinInputRoot.displayName = "PinInputRoot";
47
47
 
48
- exports.PinInput = PinInput;
48
+ exports.PinInputRoot = PinInputRoot;
@@ -3,6 +3,6 @@ import { ForwardRefExoticComponent, RefAttributes } from 'react';
3
3
  import { type HTMLArkProps } from '../factory';
4
4
  import { type Assign } from '../types';
5
5
  import { type UsePinInputProps } from './use-pin-input';
6
- export interface PinInputProps extends Assign<HTMLArkProps<'div'>, UsePinInputProps> {
6
+ export interface PinInputRootProps extends Assign<HTMLArkProps<'div'>, UsePinInputProps> {
7
7
  }
8
- export declare const PinInput: ForwardRefExoticComponent<PinInputProps & RefAttributes<HTMLDivElement>>;
8
+ export declare const PinInputRoot: ForwardRefExoticComponent<PinInputRootProps & RefAttributes<HTMLDivElement>>;
@@ -7,7 +7,7 @@ import { ark } from '../factory.mjs';
7
7
  import { PinInputProvider } from './pin-input-context.mjs';
8
8
  import { usePinInput } from './use-pin-input.mjs';
9
9
 
10
- const PinInput = forwardRef((props, ref) => {
10
+ const PinInputRoot = forwardRef((props, ref) => {
11
11
  const [usePinInputProps, localProps] = createSplitProps()(props, [
12
12
  "autoFocus",
13
13
  "blurOnComplete",
@@ -39,6 +39,6 @@ const PinInput = forwardRef((props, ref) => {
39
39
  /* @__PURE__ */ jsx("input", { ...api.hiddenInputProps })
40
40
  ] });
41
41
  });
42
- PinInput.displayName = "PinInput";
42
+ PinInputRoot.displayName = "PinInputRoot";
43
43
 
44
- export { PinInput };
44
+ export { PinInputRoot };
@@ -1,8 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { PinInput } from '../';
4
- type PinInputType = typeof PinInput;
5
- declare const meta: Meta<PinInputType>;
3
+ declare const meta: Meta;
6
4
  export default meta;
7
5
  export declare const Basic: () => JSX.Element;
8
6
  export declare const InitialValue: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { type PinInputRootProps } from '../';
3
+ export declare const ComponentUnderTest: (props: PinInputRootProps) => JSX.Element;