@ark-ui/react 1.3.0 → 2.0.1

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 (508) hide show
  1. package/CHANGELOG.md +58 -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-root.cjs +38 -0
  10. package/accordion/accordion-root.d.ts +9 -0
  11. package/accordion/accordion-root.mjs +34 -0
  12. package/accordion/accordion.cjs +11 -33
  13. package/accordion/accordion.d.ts +6 -9
  14. package/accordion/accordion.mjs +5 -35
  15. package/accordion/index.cjs +5 -10
  16. package/accordion/index.d.ts +4 -12
  17. package/accordion/index.mjs +7 -16
  18. package/accordion/use-accordion.cjs +1 -2
  19. package/accordion/use-accordion.mjs +1 -2
  20. package/avatar/avatar-root.cjs +27 -0
  21. package/avatar/avatar-root.d.ts +8 -0
  22. package/avatar/avatar-root.mjs +23 -0
  23. package/avatar/avatar.cjs +7 -21
  24. package/avatar/avatar.d.ts +4 -8
  25. package/avatar/avatar.mjs +3 -23
  26. package/avatar/index.cjs +5 -8
  27. package/avatar/index.d.ts +4 -10
  28. package/avatar/index.mjs +5 -12
  29. package/avatar/use-avatar.cjs +1 -2
  30. package/avatar/use-avatar.mjs +1 -2
  31. package/carousel/carousel-root.cjs +40 -0
  32. package/carousel/carousel-root.d.ts +9 -0
  33. package/carousel/carousel-root.mjs +36 -0
  34. package/carousel/carousel.cjs +19 -34
  35. package/carousel/carousel.d.ts +10 -9
  36. package/carousel/carousel.mjs +9 -36
  37. package/carousel/index.cjs +5 -14
  38. package/carousel/index.d.ts +4 -16
  39. package/carousel/index.mjs +11 -24
  40. package/carousel/use-carousel.cjs +1 -2
  41. package/carousel/use-carousel.mjs +1 -2
  42. package/checkbox/checkbox-root.cjs +41 -0
  43. package/checkbox/checkbox-root.d.ts +9 -0
  44. package/checkbox/checkbox-root.mjs +37 -0
  45. package/checkbox/checkbox.cjs +9 -35
  46. package/checkbox/checkbox.d.ts +5 -9
  47. package/checkbox/checkbox.mjs +4 -37
  48. package/checkbox/index.cjs +5 -9
  49. package/checkbox/index.d.ts +5 -12
  50. package/checkbox/index.mjs +6 -14
  51. package/checkbox/use-checkbox.cjs +1 -2
  52. package/checkbox/use-checkbox.mjs +1 -2
  53. package/color-picker/color-picker-content.cjs +1 -2
  54. package/color-picker/color-picker-content.mjs +1 -2
  55. package/color-picker/color-picker-positioner.cjs +1 -2
  56. package/color-picker/color-picker-positioner.mjs +1 -2
  57. package/color-picker/color-picker-root.cjs +55 -0
  58. package/color-picker/color-picker-root.d.ts +10 -0
  59. package/color-picker/color-picker-root.mjs +51 -0
  60. package/color-picker/color-picker.cjs +47 -50
  61. package/color-picker/color-picker.d.ts +24 -10
  62. package/color-picker/color-picker.mjs +23 -52
  63. package/color-picker/index.cjs +5 -28
  64. package/color-picker/index.d.ts +4 -30
  65. package/color-picker/index.mjs +25 -52
  66. package/color-picker/use-color-picker.cjs +1 -2
  67. package/color-picker/use-color-picker.mjs +1 -2
  68. package/combobox/combobox-content.cjs +1 -2
  69. package/combobox/combobox-content.mjs +1 -2
  70. package/combobox/combobox-positioner.cjs +1 -2
  71. package/combobox/combobox-positioner.mjs +1 -2
  72. package/combobox/combobox-root.cjs +70 -0
  73. package/combobox/combobox-root.d.ts +13 -0
  74. package/combobox/combobox-root.mjs +66 -0
  75. package/combobox/combobox.cjs +27 -65
  76. package/combobox/combobox.d.ts +14 -13
  77. package/combobox/combobox.mjs +13 -67
  78. package/combobox/index.cjs +5 -18
  79. package/combobox/index.d.ts +4 -20
  80. package/combobox/index.mjs +15 -32
  81. package/combobox/use-combobox.cjs +1 -2
  82. package/combobox/use-combobox.mjs +1 -2
  83. package/date-picker/date-picker-content.cjs +1 -2
  84. package/date-picker/date-picker-content.mjs +1 -2
  85. package/date-picker/date-picker-positioner.cjs +1 -2
  86. package/date-picker/date-picker-positioner.mjs +1 -2
  87. package/date-picker/date-picker-root.cjs +65 -0
  88. package/date-picker/date-picker-root.d.ts +10 -0
  89. package/date-picker/date-picker-root.mjs +61 -0
  90. package/date-picker/date-picker.cjs +47 -60
  91. package/date-picker/date-picker.d.ts +24 -10
  92. package/date-picker/date-picker.mjs +23 -62
  93. package/date-picker/index.cjs +5 -28
  94. package/date-picker/index.d.ts +4 -30
  95. package/date-picker/index.mjs +25 -52
  96. package/date-picker/use-date-picker.cjs +1 -2
  97. package/date-picker/use-date-picker.mjs +1 -2
  98. package/dialog/dialog-backdrop.cjs +1 -2
  99. package/dialog/dialog-backdrop.mjs +1 -2
  100. package/dialog/dialog-content.cjs +1 -2
  101. package/dialog/dialog-content.mjs +1 -2
  102. package/dialog/dialog-positioner.cjs +1 -2
  103. package/dialog/dialog-positioner.mjs +1 -2
  104. package/dialog/dialog-root.cjs +25 -0
  105. package/dialog/dialog-root.d.ts +8 -0
  106. package/dialog/dialog-root.mjs +21 -0
  107. package/dialog/dialog-trigger.cjs +1 -2
  108. package/dialog/dialog-trigger.mjs +1 -2
  109. package/dialog/dialog.cjs +17 -20
  110. package/dialog/dialog.d.ts +9 -8
  111. package/dialog/dialog.mjs +8 -22
  112. package/dialog/index.cjs +5 -13
  113. package/dialog/index.d.ts +4 -16
  114. package/dialog/index.mjs +10 -22
  115. package/dialog/use-dialog.cjs +1 -2
  116. package/dialog/use-dialog.mjs +1 -2
  117. package/editable/editable-root.cjs +55 -0
  118. package/editable/editable-root.d.ts +9 -0
  119. package/editable/editable-root.mjs +51 -0
  120. package/editable/editable.cjs +19 -49
  121. package/editable/editable.d.ts +10 -9
  122. package/editable/editable.mjs +9 -51
  123. package/editable/index.cjs +5 -14
  124. package/editable/index.d.ts +4 -16
  125. package/editable/index.mjs +11 -24
  126. package/editable/use-editable.cjs +1 -2
  127. package/editable/use-editable.mjs +1 -2
  128. package/environment/index.cjs +2 -5
  129. package/environment/index.d.ts +1 -5
  130. package/environment/index.mjs +1 -8
  131. package/file-upload/file-upload-root.cjs +46 -0
  132. package/file-upload/file-upload-root.d.ts +9 -0
  133. package/file-upload/file-upload-root.mjs +42 -0
  134. package/file-upload/file-upload.cjs +23 -40
  135. package/file-upload/file-upload.d.ts +12 -9
  136. package/file-upload/file-upload.mjs +11 -42
  137. package/file-upload/index.cjs +6 -16
  138. package/file-upload/index.d.ts +5 -19
  139. package/file-upload/index.mjs +13 -28
  140. package/file-upload/use-file-upload.cjs +1 -2
  141. package/file-upload/use-file-upload.mjs +1 -2
  142. package/hover-card/hover-card-content.cjs +1 -2
  143. package/hover-card/hover-card-content.mjs +1 -2
  144. package/hover-card/hover-card-positioner.cjs +1 -2
  145. package/hover-card/hover-card-positioner.mjs +1 -2
  146. package/hover-card/hover-card-root.cjs +24 -0
  147. package/hover-card/hover-card-root.d.ts +8 -0
  148. package/hover-card/hover-card-root.mjs +20 -0
  149. package/hover-card/hover-card.cjs +13 -19
  150. package/hover-card/hover-card.d.ts +7 -8
  151. package/hover-card/hover-card.mjs +6 -21
  152. package/hover-card/index.cjs +5 -11
  153. package/hover-card/index.d.ts +5 -15
  154. package/hover-card/index.mjs +8 -18
  155. package/hover-card/use-hover-card.cjs +1 -2
  156. package/hover-card/use-hover-card.mjs +1 -2
  157. package/index.cjs +238 -148
  158. package/index.d.ts +1 -0
  159. package/index.mjs +148 -73
  160. package/menu/index.cjs +5 -18
  161. package/menu/index.d.ts +4 -21
  162. package/menu/index.mjs +15 -32
  163. package/menu/menu-content.cjs +1 -2
  164. package/menu/menu-content.mjs +1 -2
  165. package/menu/menu-positioner.cjs +1 -2
  166. package/menu/menu-positioner.mjs +1 -2
  167. package/menu/menu-root.cjs +58 -0
  168. package/menu/menu-root.d.ts +8 -0
  169. package/menu/menu-root.mjs +54 -0
  170. package/menu/menu-trigger.cjs +1 -2
  171. package/menu/menu-trigger.mjs +1 -2
  172. package/menu/menu.cjs +27 -53
  173. package/menu/menu.d.ts +14 -8
  174. package/menu/menu.mjs +13 -55
  175. package/menu/use-menu.cjs +1 -2
  176. package/menu/use-menu.mjs +1 -2
  177. package/number-input/index.cjs +5 -12
  178. package/number-input/index.d.ts +4 -14
  179. package/number-input/index.mjs +9 -20
  180. package/number-input/number-input-root.cjs +52 -0
  181. package/number-input/number-input-root.d.ts +9 -0
  182. package/number-input/number-input-root.mjs +48 -0
  183. package/number-input/number-input.cjs +15 -46
  184. package/number-input/number-input.d.ts +8 -9
  185. package/number-input/number-input.mjs +7 -48
  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 -10
  190. package/pagination/index.d.ts +4 -12
  191. package/pagination/index.mjs +7 -16
  192. package/pagination/pagination-root.cjs +40 -0
  193. package/pagination/pagination-root.d.ts +9 -0
  194. package/pagination/pagination-root.mjs +36 -0
  195. package/pagination/pagination.cjs +11 -34
  196. package/pagination/pagination.d.ts +6 -9
  197. package/pagination/pagination.mjs +5 -36
  198. package/pagination/use-pagination.cjs +1 -2
  199. package/pagination/use-pagination.mjs +1 -2
  200. package/pin-input/index.cjs +5 -9
  201. package/pin-input/index.d.ts +4 -11
  202. package/pin-input/index.mjs +6 -14
  203. package/pin-input/pin-input-root.cjs +48 -0
  204. package/pin-input/pin-input-root.d.ts +8 -0
  205. package/pin-input/pin-input-root.mjs +44 -0
  206. package/pin-input/pin-input.cjs +9 -42
  207. package/pin-input/pin-input.d.ts +5 -8
  208. package/pin-input/pin-input.mjs +4 -44
  209. package/pin-input/use-pin-input.cjs +1 -2
  210. package/pin-input/use-pin-input.mjs +1 -2
  211. package/popover/index.cjs +5 -16
  212. package/popover/index.d.ts +4 -19
  213. package/popover/index.mjs +13 -28
  214. package/popover/popover-content.cjs +1 -2
  215. package/popover/popover-content.mjs +1 -2
  216. package/popover/popover-positioner.cjs +1 -2
  217. package/popover/popover-positioner.mjs +1 -2
  218. package/popover/popover-root.cjs +24 -0
  219. package/popover/popover-root.d.ts +8 -0
  220. package/popover/popover-root.mjs +20 -0
  221. package/popover/popover-trigger.cjs +1 -2
  222. package/popover/popover-trigger.mjs +1 -2
  223. package/popover/popover.cjs +23 -19
  224. package/popover/popover.d.ts +12 -8
  225. package/popover/popover.mjs +11 -21
  226. package/popover/use-popover.cjs +1 -2
  227. package/popover/use-popover.mjs +1 -2
  228. package/portal.cjs +1 -2
  229. package/portal.mjs +1 -2
  230. package/presence/index.cjs +2 -5
  231. package/presence/index.d.ts +1 -6
  232. package/presence/index.mjs +1 -8
  233. package/progress/index.cjs +7 -16
  234. package/progress/index.d.ts +5 -27
  235. package/progress/index.mjs +11 -24
  236. package/progress/progress-root.cjs +34 -0
  237. package/progress/progress-root.d.ts +9 -0
  238. package/progress/progress-root.mjs +30 -0
  239. package/progress/progress-view.cjs +20 -0
  240. package/progress/progress-view.d.ts +8 -0
  241. package/progress/progress-view.mjs +16 -0
  242. package/progress/progress.cjs +19 -28
  243. package/progress/progress.d.ts +10 -9
  244. package/progress/progress.mjs +9 -30
  245. package/progress/use-progress.cjs +0 -1
  246. package/progress/use-progress.mjs +0 -1
  247. package/radio-group/index.cjs +6 -11
  248. package/radio-group/index.d.ts +5 -14
  249. package/radio-group/index.mjs +8 -18
  250. package/radio-group/radio-group-root.cjs +34 -0
  251. package/radio-group/radio-group-root.d.ts +8 -0
  252. package/radio-group/radio-group-root.mjs +30 -0
  253. package/radio-group/radio-group.cjs +13 -28
  254. package/radio-group/radio-group.d.ts +7 -8
  255. package/radio-group/radio-group.mjs +6 -30
  256. package/radio-group/use-radio-group.cjs +1 -2
  257. package/radio-group/use-radio-group.mjs +1 -2
  258. package/rating-group/index.cjs +5 -9
  259. package/rating-group/index.d.ts +4 -11
  260. package/rating-group/index.mjs +6 -14
  261. package/rating-group/rating-group-root.cjs +39 -0
  262. package/rating-group/rating-group-root.d.ts +8 -0
  263. package/rating-group/rating-group-root.mjs +35 -0
  264. package/rating-group/rating-group.cjs +9 -33
  265. package/rating-group/rating-group.d.ts +5 -8
  266. package/rating-group/rating-group.mjs +4 -35
  267. package/rating-group/use-rating-group.cjs +1 -2
  268. package/rating-group/use-rating-group.mjs +1 -2
  269. package/segment-group/index.cjs +5 -11
  270. package/segment-group/index.d.ts +4 -13
  271. package/segment-group/index.mjs +8 -18
  272. package/segment-group/segment-group-root.cjs +39 -0
  273. package/segment-group/segment-group-root.d.ts +8 -0
  274. package/segment-group/segment-group-root.mjs +35 -0
  275. package/segment-group/segment-group.cjs +13 -33
  276. package/segment-group/segment-group.d.ts +7 -8
  277. package/segment-group/segment-group.mjs +6 -35
  278. package/segment-group/use-segment-group.cjs +1 -2
  279. package/segment-group/use-segment-group.mjs +1 -2
  280. package/select/index.cjs +5 -19
  281. package/select/index.d.ts +4 -21
  282. package/select/index.mjs +16 -34
  283. package/select/select-content.cjs +1 -2
  284. package/select/select-content.mjs +1 -2
  285. package/select/select-positioner.cjs +1 -2
  286. package/select/select-positioner.mjs +1 -2
  287. package/select/select-root.cjs +61 -0
  288. package/select/select-root.d.ts +13 -0
  289. package/select/select-root.mjs +57 -0
  290. package/select/select.cjs +29 -56
  291. package/select/select.d.ts +15 -13
  292. package/select/select.mjs +14 -58
  293. package/select/use-select.cjs +1 -2
  294. package/select/use-select.mjs +1 -2
  295. package/slider/index.cjs +5 -14
  296. package/slider/index.d.ts +4 -16
  297. package/slider/index.mjs +11 -24
  298. package/slider/slider-root.cjs +51 -0
  299. package/slider/slider-root.d.ts +9 -0
  300. package/slider/slider-root.mjs +47 -0
  301. package/slider/slider.cjs +19 -45
  302. package/slider/slider.d.ts +10 -9
  303. package/slider/slider.mjs +9 -47
  304. package/slider/use-slider.cjs +1 -2
  305. package/slider/use-slider.mjs +1 -2
  306. package/splitter/index.cjs +5 -8
  307. package/splitter/index.d.ts +4 -10
  308. package/splitter/index.mjs +5 -12
  309. package/splitter/splitter-root.cjs +38 -0
  310. package/splitter/splitter-root.d.ts +9 -0
  311. package/splitter/splitter-root.mjs +34 -0
  312. package/splitter/splitter.cjs +7 -32
  313. package/splitter/splitter.d.ts +4 -9
  314. package/splitter/splitter.mjs +3 -34
  315. package/splitter/use-splitter.cjs +1 -2
  316. package/splitter/use-splitter.mjs +1 -2
  317. package/switch/index.cjs +5 -9
  318. package/switch/index.d.ts +4 -11
  319. package/switch/index.mjs +6 -14
  320. package/switch/switch-root.cjs +39 -0
  321. package/switch/switch-root.d.ts +9 -0
  322. package/switch/switch-root.mjs +35 -0
  323. package/switch/switch.cjs +9 -33
  324. package/switch/switch.d.ts +5 -9
  325. package/switch/switch.mjs +4 -35
  326. package/switch/use-switch.cjs +1 -2
  327. package/switch/use-switch.mjs +1 -2
  328. package/tabs/index.cjs +5 -10
  329. package/tabs/index.d.ts +4 -12
  330. package/tabs/index.mjs +7 -16
  331. package/tabs/tab-content.cjs +2 -3
  332. package/tabs/tab-content.mjs +2 -3
  333. package/tabs/tabs-root.cjs +38 -0
  334. package/tabs/tabs-root.d.ts +9 -0
  335. package/tabs/tabs-root.mjs +34 -0
  336. package/tabs/tabs.cjs +11 -33
  337. package/tabs/tabs.d.ts +6 -9
  338. package/tabs/tabs.mjs +5 -35
  339. package/tabs/use-tabs.cjs +1 -2
  340. package/tabs/use-tabs.mjs +1 -2
  341. package/tags-input/index.cjs +7 -14
  342. package/tags-input/index.d.ts +5 -16
  343. package/tags-input/index.mjs +12 -24
  344. package/tags-input/tags-input-item-preview.cjs +23 -0
  345. package/tags-input/tags-input-item-preview.d.ts +6 -0
  346. package/tags-input/tags-input-item-preview.mjs +19 -0
  347. package/tags-input/tags-input-root.cjs +59 -0
  348. package/tags-input/tags-input-root.d.ts +9 -0
  349. package/tags-input/tags-input-root.mjs +55 -0
  350. package/tags-input/tags-input.cjs +21 -53
  351. package/tags-input/tags-input.d.ts +11 -9
  352. package/tags-input/tags-input.mjs +10 -55
  353. package/tags-input/use-tags-input.cjs +1 -2
  354. package/tags-input/use-tags-input.mjs +1 -2
  355. package/toast/create-toaster.cjs +1 -2
  356. package/toast/create-toaster.mjs +1 -2
  357. package/toast/index.cjs +5 -10
  358. package/toast/index.d.ts +4 -12
  359. package/toast/index.mjs +7 -16
  360. package/toast/toast-root.cjs +19 -0
  361. package/toast/toast-root.d.ts +6 -0
  362. package/toast/toast-root.mjs +15 -0
  363. package/toast/toast.cjs +11 -13
  364. package/toast/toast.d.ts +6 -6
  365. package/toast/toast.mjs +5 -15
  366. package/toggle-group/index.cjs +5 -7
  367. package/toggle-group/index.d.ts +4 -9
  368. package/toggle-group/index.mjs +4 -10
  369. package/toggle-group/toggle-group-root.cjs +35 -0
  370. package/toggle-group/toggle-group-root.d.ts +8 -0
  371. package/toggle-group/toggle-group-root.mjs +31 -0
  372. package/toggle-group/toggle-group.cjs +5 -29
  373. package/toggle-group/toggle-group.d.ts +3 -8
  374. package/toggle-group/toggle-group.mjs +2 -31
  375. package/toggle-group/use-toggle-group.cjs +1 -2
  376. package/toggle-group/use-toggle-group.mjs +1 -2
  377. package/tooltip/index.cjs +5 -11
  378. package/tooltip/index.d.ts +4 -14
  379. package/tooltip/index.mjs +8 -18
  380. package/tooltip/tooltip-content.cjs +1 -2
  381. package/tooltip/tooltip-content.mjs +1 -2
  382. package/tooltip/tooltip-positioner.cjs +1 -2
  383. package/tooltip/tooltip-positioner.mjs +1 -2
  384. package/tooltip/tooltip-root.cjs +24 -0
  385. package/tooltip/tooltip-root.d.ts +8 -0
  386. package/tooltip/tooltip-root.mjs +20 -0
  387. package/tooltip/tooltip.cjs +13 -19
  388. package/tooltip/tooltip.d.ts +7 -8
  389. package/tooltip/tooltip.mjs +6 -21
  390. package/tooltip/use-tooltip.cjs +1 -2
  391. package/tooltip/use-tooltip.mjs +1 -2
  392. package/tree-view/index.cjs +33 -0
  393. package/tree-view/index.d.ts +16 -0
  394. package/tree-view/index.mjs +14 -0
  395. package/tree-view/tree-view-branch-content.cjs +27 -0
  396. package/tree-view/tree-view-branch-content.d.ts +8 -0
  397. package/tree-view/tree-view-branch-content.mjs +23 -0
  398. package/tree-view/tree-view-branch-control.cjs +27 -0
  399. package/tree-view/tree-view-branch-control.d.ts +8 -0
  400. package/tree-view/tree-view-branch-control.mjs +23 -0
  401. package/tree-view/tree-view-branch-indicator.cjs +32 -0
  402. package/tree-view/tree-view-branch-indicator.d.ts +8 -0
  403. package/tree-view/tree-view-branch-indicator.mjs +28 -0
  404. package/tree-view/tree-view-branch-text.cjs +27 -0
  405. package/tree-view/tree-view-branch-text.d.ts +8 -0
  406. package/tree-view/tree-view-branch-text.mjs +23 -0
  407. package/tree-view/tree-view-branch-trigger.cjs +27 -0
  408. package/tree-view/tree-view-branch-trigger.d.ts +8 -0
  409. package/tree-view/tree-view-branch-trigger.mjs +23 -0
  410. package/tree-view/tree-view-branch.cjs +28 -0
  411. package/tree-view/tree-view-branch.d.ts +9 -0
  412. package/tree-view/tree-view-branch.mjs +24 -0
  413. package/tree-view/tree-view-context.cjs +15 -0
  414. package/tree-view/tree-view-context.d.ts +22 -0
  415. package/tree-view/tree-view-context.mjs +10 -0
  416. package/tree-view/tree-view-item-text.cjs +30 -0
  417. package/tree-view/tree-view-item-text.d.ts +8 -0
  418. package/tree-view/tree-view-item-text.mjs +26 -0
  419. package/tree-view/tree-view-item.cjs +28 -0
  420. package/tree-view/tree-view-item.d.ts +9 -0
  421. package/tree-view/tree-view-item.mjs +24 -0
  422. package/tree-view/tree-view-label.cjs +19 -0
  423. package/tree-view/tree-view-label.d.ts +6 -0
  424. package/tree-view/tree-view-label.mjs +15 -0
  425. package/tree-view/tree-view-root.cjs +40 -0
  426. package/tree-view/tree-view-root.d.ts +9 -0
  427. package/tree-view/tree-view-root.mjs +36 -0
  428. package/tree-view/tree-view-tree.cjs +19 -0
  429. package/tree-view/tree-view-tree.d.ts +6 -0
  430. package/tree-view/tree-view-tree.mjs +15 -0
  431. package/tree-view/tree-view.cjs +29 -0
  432. package/tree-view/tree-view.d.ts +12 -0
  433. package/tree-view/tree-view.mjs +11 -0
  434. package/tree-view/use-tree-view.cjs +49 -0
  435. package/tree-view/use-tree-view.d.ts +12 -0
  436. package/tree-view/use-tree-view.mjs +26 -0
  437. package/accordion/accordion.test.d.ts +0 -1
  438. package/accordion/stories/accordion.stories.d.ts +0 -13
  439. package/avatar/avatar.test.d.ts +0 -1
  440. package/avatar/stories/avatar.stories.d.ts +0 -8
  441. package/carousel/carousel.test.d.ts +0 -1
  442. package/carousel/stories/carousel.stories.d.ts +0 -9
  443. package/checkbox/checkbox.test.d.ts +0 -1
  444. package/checkbox/stories/checkbox.stories.d.ts +0 -10
  445. package/color-picker/color-picker.test.d.ts +0 -1
  446. package/color-picker/stories/color-picker.stories.d.ts +0 -8
  447. package/combobox/combobox.test.d.ts +0 -1
  448. package/combobox/stories/combobox.stories.d.ts +0 -8
  449. package/date-picker/date-picker.test.d.ts +0 -1
  450. package/date-picker/stories/date-picker.stories.d.ts +0 -8
  451. package/date-picker/stories/date-range-picker.stories.d.ts +0 -8
  452. package/dialog/dialog.test.d.ts +0 -1
  453. package/dialog/stories/dialog.stories.d.ts +0 -10
  454. package/editable/editable.test.d.ts +0 -1
  455. package/editable/stories/editable.stories.d.ts +0 -8
  456. package/environment/environment.test.d.ts +0 -1
  457. package/environment/stories/environment.stories.d.ts +0 -7
  458. package/factory.test.d.ts +0 -1
  459. package/file-upload/file-upload.test.d.ts +0 -1
  460. package/file-upload/stories/file-upload.stories.d.ts +0 -7
  461. package/hover-card/hover-card.test.d.ts +0 -1
  462. package/hover-card/stories/hover-card.stories.d.ts +0 -10
  463. package/menu/menu.test.d.ts +0 -1
  464. package/menu/stories/context-menu.stories.d.ts +0 -7
  465. package/menu/stories/menu.stories.d.ts +0 -11
  466. package/menu/stories/nested-menu.stories.d.ts +0 -8
  467. package/number-input/number-input.test.d.ts +0 -1
  468. package/number-input/stories/number-input.stories.d.ts +0 -15
  469. package/pagination/pagination.test.d.ts +0 -1
  470. package/pagination/stories/pagination.stories.d.ts +0 -9
  471. package/pin-input/pin-input.test.d.ts +0 -1
  472. package/pin-input/stories/pin-input.stories.d.ts +0 -12
  473. package/popover/popover.test.d.ts +0 -1
  474. package/popover/stories/popover.stories.d.ts +0 -15
  475. package/presence/presence.test.d.ts +0 -1
  476. package/presence/stories/presence.stories.d.ts +0 -10
  477. package/progress/progress-indicator.cjs +0 -22
  478. package/progress/progress-indicator.d.ts +0 -8
  479. package/progress/progress-indicator.mjs +0 -18
  480. package/progress/progress.test.d.ts +0 -1
  481. package/progress/stories/circular-progress.stories.d.ts +0 -11
  482. package/progress/stories/linear-progress.stories.d.ts +0 -12
  483. package/radio-group/radio-group.test.d.ts +0 -1
  484. package/radio-group/stories/radio-group.stories.d.ts +0 -10
  485. package/rating-group/rating-group.test.d.ts +0 -1
  486. package/rating-group/stories/rating-group.stories.d.ts +0 -13
  487. package/segment-group/segment-group.test.d.ts +0 -1
  488. package/segment-group/stories/segment-group.stories.d.ts +0 -10
  489. package/select/select.test.d.ts +0 -1
  490. package/select/stories/select.stories.d.ts +0 -11
  491. package/setup-test.d.ts +0 -3
  492. package/slider/slider.test.d.ts +0 -1
  493. package/slider/stories/range-slider.stories.d.ts +0 -14
  494. package/slider/stories/slider.stories.d.ts +0 -14
  495. package/splitter/splitter.test.d.ts +0 -1
  496. package/splitter/stories/splitter.stories.d.ts +0 -10
  497. package/switch/stories/switch.stories.d.ts +0 -11
  498. package/switch/switch.test.d.ts +0 -1
  499. package/tabs/stories/tabs.stories.d.ts +0 -14
  500. package/tabs/tabs.test.d.ts +0 -1
  501. package/tags-input/stories/tags-input.stories.d.ts +0 -14
  502. package/tags-input/tags-input.test.d.ts +0 -1
  503. package/toast/stories/toast.stories.d.ts +0 -9
  504. package/toast/toast.test.d.ts +0 -2
  505. package/toggle-group/stories/toggle-group.stories.d.ts +0 -9
  506. package/toggle-group/toggle-group.test.d.ts +0 -1
  507. package/tooltip/stories/tooltip.stories.d.ts +0 -12
  508. package/tooltip/tooltip.test.d.ts +0 -1
@@ -1,23 +1,19 @@
1
- 'use client';
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
4
 
6
- const checkbox = require('./checkbox.cjs');
7
5
  const checkboxContext = require('./checkbox-context.cjs');
8
6
  const checkboxControl = require('./checkbox-control.cjs');
9
7
  const checkboxIndicator = require('./checkbox-indicator.cjs');
10
8
  const checkboxLabel = require('./checkbox-label.cjs');
9
+ const checkboxRoot = require('./checkbox-root.cjs');
10
+ const checkbox = require('./checkbox.cjs');
11
+
11
12
 
12
- const Checkbox = Object.assign(checkbox.Checkbox, {
13
- Root: checkbox.Checkbox,
14
- Control: checkboxControl.CheckboxControl,
15
- Label: checkboxLabel.CheckboxLabel,
16
- Indicator: checkboxIndicator.CheckboxIndicator
17
- });
18
13
 
19
14
  exports.useCheckboxContext = checkboxContext.useCheckboxContext;
20
15
  exports.CheckboxControl = checkboxControl.CheckboxControl;
21
16
  exports.CheckboxIndicator = checkboxIndicator.CheckboxIndicator;
22
17
  exports.CheckboxLabel = checkboxLabel.CheckboxLabel;
23
- exports.Checkbox = Checkbox;
18
+ exports.CheckboxRoot = checkboxRoot.CheckboxRoot;
19
+ exports.Checkbox = checkbox;
@@ -1,16 +1,9 @@
1
- import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
- /// <reference types="react" />
3
- import type { CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState } from '@zag-js/checkbox';
4
- import { type CheckboxProps } from './checkbox';
1
+ import type { CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState as CheckboxState } from '@zag-js/checkbox';
5
2
  import { useCheckboxContext, type CheckboxContext } from './checkbox-context';
6
3
  import { CheckboxControl, type CheckboxControlProps } from './checkbox-control';
7
4
  import { CheckboxIndicator, type CheckboxIndicatorProps } from './checkbox-indicator';
8
5
  import { CheckboxLabel, type CheckboxLabelProps } from './checkbox-label';
9
- declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>> & {
10
- Root: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>>;
11
- Control: ForwardRefExoticComponent<CheckboxControlProps & RefAttributes<HTMLDivElement>>;
12
- Label: ForwardRefExoticComponent<CheckboxLabelProps & RefAttributes<HTMLSpanElement>>;
13
- Indicator: ForwardRefExoticComponent<CheckboxIndicatorProps & RefAttributes<HTMLDivElement>>;
14
- };
15
- export { Checkbox, CheckboxControl, CheckboxIndicator, CheckboxLabel, useCheckboxContext };
16
- export type { CheckboxCheckedChangeDetails, CheckboxContext, CheckboxControlProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxProps, CheckedState, };
6
+ import { CheckboxRoot, type CheckboxRootProps } from './checkbox-root';
7
+ export * as Checkbox from './checkbox';
8
+ export { CheckboxControl, CheckboxIndicator, CheckboxLabel, CheckboxRoot, useCheckboxContext };
9
+ export type { CheckboxCheckedChangeDetails, CheckboxContext, CheckboxControlProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxRootProps, CheckboxState, };
@@ -1,15 +1,7 @@
1
- 'use client';
2
- import { Checkbox as Checkbox$1 } from './checkbox.mjs';
3
1
  export { useCheckboxContext } from './checkbox-context.mjs';
4
- import { CheckboxControl } from './checkbox-control.mjs';
5
- import { CheckboxIndicator } from './checkbox-indicator.mjs';
6
- import { CheckboxLabel } from './checkbox-label.mjs';
7
-
8
- const Checkbox = Object.assign(Checkbox$1, {
9
- Root: Checkbox$1,
10
- Control: CheckboxControl,
11
- Label: CheckboxLabel,
12
- Indicator: CheckboxIndicator
13
- });
14
-
15
- export { Checkbox, CheckboxControl, CheckboxIndicator, CheckboxLabel };
2
+ export { CheckboxControl } from './checkbox-control.mjs';
3
+ export { CheckboxIndicator } from './checkbox-indicator.mjs';
4
+ export { CheckboxLabel } from './checkbox-label.mjs';
5
+ export { CheckboxRoot } from './checkbox-root.mjs';
6
+ import * as checkbox from './checkbox.mjs';
7
+ export { checkbox as Checkbox };
@@ -6,9 +6,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6
6
  const checkbox = require('@zag-js/checkbox');
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 checkbox from '@zag-js/checkbox';
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 useCheckbox = (props = {}) => {
10
9
  const initialContext = {
@@ -7,9 +7,8 @@ const jsxRuntime = require('react/jsx-runtime');
7
7
  const react$1 = require('@zag-js/react');
8
8
  const react = require('react');
9
9
  const factory = require('../factory.cjs');
10
- require('../presence/index.cjs');
11
- const colorPickerContext = require('./color-picker-context.cjs');
12
10
  const presenceContext = require('../presence/presence-context.cjs');
11
+ const colorPickerContext = require('./color-picker-context.cjs');
13
12
 
14
13
  const ColorPickerContent = react.forwardRef(
15
14
  (props, ref) => {
@@ -3,9 +3,8 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { mergeProps } from '@zag-js/react';
4
4
  import { forwardRef } from 'react';
5
5
  import { ark } from '../factory.mjs';
6
- import '../presence/index.mjs';
7
- import { useColorPickerContext } from './color-picker-context.mjs';
8
6
  import { usePresenceContext } from '../presence/presence-context.mjs';
7
+ import { useColorPickerContext } from './color-picker-context.mjs';
9
8
 
10
9
  const ColorPickerContent = forwardRef(
11
10
  (props, ref) => {
@@ -7,9 +7,8 @@ const jsxRuntime = require('react/jsx-runtime');
7
7
  const react$1 = require('@zag-js/react');
8
8
  const react = require('react');
9
9
  const factory = require('../factory.cjs');
10
- require('../presence/index.cjs');
11
- const colorPickerContext = require('./color-picker-context.cjs');
12
10
  const presenceContext = require('../presence/presence-context.cjs');
11
+ const colorPickerContext = require('./color-picker-context.cjs');
13
12
 
14
13
  const ColorPickerPositioner = react.forwardRef(
15
14
  (props, ref) => {
@@ -3,9 +3,8 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { mergeProps } from '@zag-js/react';
4
4
  import { forwardRef } from 'react';
5
5
  import { ark } from '../factory.mjs';
6
- import '../presence/index.mjs';
7
- import { useColorPickerContext } from './color-picker-context.mjs';
8
6
  import { usePresenceContext } from '../presence/presence-context.mjs';
7
+ import { useColorPickerContext } from './color-picker-context.mjs';
9
8
 
10
9
  const ColorPickerPositioner = forwardRef(
11
10
  (props, ref) => {
@@ -0,0 +1,55 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const react$1 = require('@zag-js/react');
8
+ const react = require('react');
9
+ const createSplitProps = require('../create-split-props.cjs');
10
+ const factory = require('../factory.cjs');
11
+ const presenceContext = require('../presence/presence-context.cjs');
12
+ const splitPresenceProps = require('../presence/split-presence-props.cjs');
13
+ const usePresence = require('../presence/use-presence.cjs');
14
+ const runIfFn = require('../run-if-fn.cjs');
15
+ const colorPickerContext = require('./color-picker-context.cjs');
16
+ const useColorPicker = require('./use-color-picker.cjs');
17
+
18
+ const ColorPickerRoot = react.forwardRef((props, ref) => {
19
+ const [presenceProps, colorPickerProps] = splitPresenceProps.splitPresenceProps(props);
20
+ const [useColorPickerProps, { children, ...localProps }] = createSplitProps.createSplitProps()(colorPickerProps, [
21
+ "closeOnSelect",
22
+ "defaultValue",
23
+ "dir",
24
+ "disabled",
25
+ "format",
26
+ "getRootNode",
27
+ "id",
28
+ "ids",
29
+ "initialFocusEl",
30
+ "name",
31
+ "name",
32
+ "onFocusOutside",
33
+ "onFormatChange",
34
+ "onInteractOutside",
35
+ "onOpenChange",
36
+ "onPointerDownOutside",
37
+ "onValueChange",
38
+ "onValueChangeEnd",
39
+ "open",
40
+ "positioning",
41
+ "readOnly",
42
+ "value"
43
+ ]);
44
+ const api = useColorPicker.useColorPicker(useColorPickerProps);
45
+ const presenceApi = usePresence.usePresence(react$1.mergeProps({ present: api.isOpen }, presenceProps));
46
+ const view = runIfFn.runIfFn(children, api);
47
+ const mergedProps = react$1.mergeProps(api.rootProps, localProps);
48
+ return /* @__PURE__ */ jsxRuntime.jsx(colorPickerContext.ColorPickerProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsxs(presenceContext.PresenceProvider, { value: presenceApi, children: [
49
+ /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }),
50
+ /* @__PURE__ */ jsxRuntime.jsx("input", { ...api.hiddenInputProps })
51
+ ] }) });
52
+ });
53
+ ColorPickerRoot.displayName = "ColorPickerRoot";
54
+
55
+ exports.ColorPickerRoot = ColorPickerRoot;
@@ -0,0 +1,10 @@
1
+ import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react';
2
+ import { type HTMLArkProps } from '../factory';
3
+ import { type UsePresenceProps } from '../presence';
4
+ import { type Assign } from '../types';
5
+ import { type UseColorPickerProps, type UseColorPickerReturn } from './use-color-picker';
6
+ export interface ColorPickerRootProps extends Assign<Assign<HTMLArkProps<'div'>, {
7
+ children?: ReactNode | ((api: UseColorPickerReturn) => ReactNode);
8
+ }>, UseColorPickerProps>, UsePresenceProps {
9
+ }
10
+ export declare const ColorPickerRoot: ForwardRefExoticComponent<ColorPickerRootProps & RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,51 @@
1
+ 'use client';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { mergeProps } from '@zag-js/react';
4
+ import { forwardRef } from 'react';
5
+ import { createSplitProps } from '../create-split-props.mjs';
6
+ import { ark } from '../factory.mjs';
7
+ import { PresenceProvider } from '../presence/presence-context.mjs';
8
+ import { splitPresenceProps } from '../presence/split-presence-props.mjs';
9
+ import { usePresence } from '../presence/use-presence.mjs';
10
+ import { runIfFn } from '../run-if-fn.mjs';
11
+ import { ColorPickerProvider } from './color-picker-context.mjs';
12
+ import { useColorPicker } from './use-color-picker.mjs';
13
+
14
+ const ColorPickerRoot = forwardRef((props, ref) => {
15
+ const [presenceProps, colorPickerProps] = splitPresenceProps(props);
16
+ const [useColorPickerProps, { children, ...localProps }] = createSplitProps()(colorPickerProps, [
17
+ "closeOnSelect",
18
+ "defaultValue",
19
+ "dir",
20
+ "disabled",
21
+ "format",
22
+ "getRootNode",
23
+ "id",
24
+ "ids",
25
+ "initialFocusEl",
26
+ "name",
27
+ "name",
28
+ "onFocusOutside",
29
+ "onFormatChange",
30
+ "onInteractOutside",
31
+ "onOpenChange",
32
+ "onPointerDownOutside",
33
+ "onValueChange",
34
+ "onValueChangeEnd",
35
+ "open",
36
+ "positioning",
37
+ "readOnly",
38
+ "value"
39
+ ]);
40
+ const api = useColorPicker(useColorPickerProps);
41
+ const presenceApi = usePresence(mergeProps({ present: api.isOpen }, presenceProps));
42
+ const view = runIfFn(children, api);
43
+ const mergedProps = mergeProps(api.rootProps, localProps);
44
+ return /* @__PURE__ */ jsx(ColorPickerProvider, { value: api, children: /* @__PURE__ */ jsxs(PresenceProvider, { value: presenceApi, children: [
45
+ /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }),
46
+ /* @__PURE__ */ jsx("input", { ...api.hiddenInputProps })
47
+ ] }) });
48
+ });
49
+ ColorPickerRoot.displayName = "ColorPickerRoot";
50
+
51
+ export { ColorPickerRoot };
@@ -1,56 +1,53 @@
1
- 'use client';
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
4
 
6
- const jsxRuntime = require('react/jsx-runtime');
7
- const react$1 = require('@zag-js/react');
8
- const react = require('react');
9
- const createSplitProps = require('../create-split-props.cjs');
10
- const factory = require('../factory.cjs');
11
- require('../presence/index.cjs');
12
- const runIfFn = require('../run-if-fn.cjs');
13
- const colorPickerContext = require('./color-picker-context.cjs');
14
- const useColorPicker = require('./use-color-picker.cjs');
15
- const splitPresenceProps = require('../presence/split-presence-props.cjs');
16
- const usePresence = require('../presence/use-presence.cjs');
17
- const presenceContext = require('../presence/presence-context.cjs');
5
+ const colorPickerArea = require('./color-picker-area.cjs');
6
+ const colorPickerAreaBackground = require('./color-picker-area-background.cjs');
7
+ const colorPickerAreaThumb = require('./color-picker-area-thumb.cjs');
8
+ const colorPickerChannelInput = require('./color-picker-channel-input.cjs');
9
+ const colorPickerChannelSlider = require('./color-picker-channel-slider.cjs');
10
+ const colorPickerChannelSliderThumb = require('./color-picker-channel-slider-thumb.cjs');
11
+ const colorPickerChannelSliderTrack = require('./color-picker-channel-slider-track.cjs');
12
+ const colorPickerContent = require('./color-picker-content.cjs');
13
+ const colorPickerControl = require('./color-picker-control.cjs');
14
+ const colorPickerEyeDropperTrigger = require('./color-picker-eye-dropper-trigger.cjs');
15
+ const colorPickerFormatSelect = require('./color-picker-format-select.cjs');
16
+ const colorPickerFormatTrigger = require('./color-picker-format-trigger.cjs');
17
+ const colorPickerLabel = require('./color-picker-label.cjs');
18
+ const colorPickerPositioner = require('./color-picker-positioner.cjs');
19
+ const colorPickerRoot = require('./color-picker-root.cjs');
20
+ const colorPickerSwatch = require('./color-picker-swatch.cjs');
21
+ const colorPickerSwatchGroup = require('./color-picker-swatch-group.cjs');
22
+ const colorPickerSwatchIndicator = require('./color-picker-swatch-indicator.cjs');
23
+ const colorPickerSwatchTrigger = require('./color-picker-swatch-trigger.cjs');
24
+ const colorPickerTransparencyGrid = require('./color-picker-transparency-grid.cjs');
25
+ const colorPickerTrigger = require('./color-picker-trigger.cjs');
26
+ const colorPickerValueText = require('./color-picker-value-text.cjs');
27
+ const colorPickerView = require('./color-picker-view.cjs');
18
28
 
19
- const ColorPicker = react.forwardRef((props, ref) => {
20
- const [presenceProps, colorPickerProps] = splitPresenceProps.splitPresenceProps(props);
21
- const [useColorPickerProps, { children, ...localProps }] = createSplitProps.createSplitProps()(colorPickerProps, [
22
- "closeOnSelect",
23
- "defaultValue",
24
- "dir",
25
- "disabled",
26
- "format",
27
- "getRootNode",
28
- "id",
29
- "ids",
30
- "initialFocusEl",
31
- "name",
32
- "name",
33
- "onFocusOutside",
34
- "onFormatChange",
35
- "onInteractOutside",
36
- "onOpenChange",
37
- "onPointerDownOutside",
38
- "onValueChange",
39
- "onValueChangeEnd",
40
- "open",
41
- "positioning",
42
- "readOnly",
43
- "value"
44
- ]);
45
- const api = useColorPicker.useColorPicker(useColorPickerProps);
46
- const presenceApi = usePresence.usePresence(react$1.mergeProps({ present: api.isOpen }, presenceProps));
47
- const view = runIfFn.runIfFn(children, api);
48
- const mergedProps = react$1.mergeProps(api.rootProps, localProps);
49
- return /* @__PURE__ */ jsxRuntime.jsx(colorPickerContext.ColorPickerProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsxs(presenceContext.PresenceProvider, { value: presenceApi, children: [
50
- /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }),
51
- /* @__PURE__ */ jsxRuntime.jsx("input", { ...api.hiddenInputProps })
52
- ] }) });
53
- });
54
- ColorPicker.displayName = "ColorPicker";
55
29
 
56
- exports.ColorPicker = ColorPicker;
30
+
31
+ exports.Area = colorPickerArea.ColorPickerArea;
32
+ exports.AreaBackground = colorPickerAreaBackground.ColorPickerAreaBackground;
33
+ exports.AreaThumb = colorPickerAreaThumb.ColorPickerAreaThumb;
34
+ exports.ChannelInput = colorPickerChannelInput.ColorPickerChannelInput;
35
+ exports.ChannelSlider = colorPickerChannelSlider.ColorPickerChannelSlider;
36
+ exports.ChannelSliderThumb = colorPickerChannelSliderThumb.ColorPickerChannelSliderThumb;
37
+ exports.ChannelSliderTrack = colorPickerChannelSliderTrack.ColorPickerChannelSliderTrack;
38
+ exports.Content = colorPickerContent.ColorPickerContent;
39
+ exports.Control = colorPickerControl.ColorPickerControl;
40
+ exports.EyeDropperTrigger = colorPickerEyeDropperTrigger.ColorPickerEyeDropperTrigger;
41
+ exports.FormatSelect = colorPickerFormatSelect.ColorPickerFormatSelect;
42
+ exports.FormatTrigger = colorPickerFormatTrigger.ColorPickerFormatTrigger;
43
+ exports.Label = colorPickerLabel.ColorPickerLabel;
44
+ exports.Positioner = colorPickerPositioner.ColorPickerPositioner;
45
+ exports.Root = colorPickerRoot.ColorPickerRoot;
46
+ exports.Swatch = colorPickerSwatch.ColorPickerSwatch;
47
+ exports.SwatchGroup = colorPickerSwatchGroup.ColorPickerSwatchGroup;
48
+ exports.SwatchIndicator = colorPickerSwatchIndicator.ColorPickerSwatchIndicator;
49
+ exports.SwatchTrigger = colorPickerSwatchTrigger.ColorPickerSwatchTrigger;
50
+ exports.TransparencyGrid = colorPickerTransparencyGrid.ColorPickerTransparencyGrid;
51
+ exports.Trigger = colorPickerTrigger.ColorPickerTrigger;
52
+ exports.ValueText = colorPickerValueText.ColorPickerValueText;
53
+ exports.View = colorPickerView.ColorPickerView;
@@ -1,10 +1,24 @@
1
- import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react';
2
- import { type HTMLArkProps } from '../factory';
3
- import { type UsePresenceProps } from '../presence';
4
- import { type Assign } from '../types';
5
- import { type UseColorPickerProps, type UseColorPickerReturn } from './use-color-picker';
6
- export interface ColorPickerProps extends Assign<Assign<HTMLArkProps<'div'>, {
7
- children?: ReactNode | ((api: UseColorPickerReturn) => ReactNode);
8
- }>, UseColorPickerProps>, UsePresenceProps {
9
- }
10
- export declare const ColorPicker: ForwardRefExoticComponent<ColorPickerProps & RefAttributes<HTMLDivElement>>;
1
+ import { ColorPickerArea as Area } from './color-picker-area';
2
+ import { ColorPickerAreaBackground as AreaBackground } from './color-picker-area-background';
3
+ import { ColorPickerAreaThumb as AreaThumb } from './color-picker-area-thumb';
4
+ import { ColorPickerChannelInput as ChannelInput } from './color-picker-channel-input';
5
+ import { ColorPickerChannelSlider as ChannelSlider } from './color-picker-channel-slider';
6
+ import { ColorPickerChannelSliderThumb as ChannelSliderThumb } from './color-picker-channel-slider-thumb';
7
+ import { ColorPickerChannelSliderTrack as ChannelSliderTrack } from './color-picker-channel-slider-track';
8
+ import { ColorPickerContent as Content } from './color-picker-content';
9
+ import { ColorPickerControl as Control } from './color-picker-control';
10
+ import { ColorPickerEyeDropperTrigger as EyeDropperTrigger } from './color-picker-eye-dropper-trigger';
11
+ import { ColorPickerFormatSelect as FormatSelect } from './color-picker-format-select';
12
+ import { ColorPickerFormatTrigger as FormatTrigger } from './color-picker-format-trigger';
13
+ import { ColorPickerLabel as Label } from './color-picker-label';
14
+ import { ColorPickerPositioner as Positioner } from './color-picker-positioner';
15
+ import { ColorPickerRoot as Root } from './color-picker-root';
16
+ import { ColorPickerSwatch as Swatch } from './color-picker-swatch';
17
+ import { ColorPickerSwatchGroup as SwatchGroup } from './color-picker-swatch-group';
18
+ import { ColorPickerSwatchIndicator as SwatchIndicator } from './color-picker-swatch-indicator';
19
+ import { ColorPickerSwatchTrigger as SwatchTrigger } from './color-picker-swatch-trigger';
20
+ import { ColorPickerTransparencyGrid as TransparencyGrid } from './color-picker-transparency-grid';
21
+ import { ColorPickerTrigger as Trigger } from './color-picker-trigger';
22
+ import { ColorPickerValueText as ValueText } from './color-picker-value-text';
23
+ import { ColorPickerView as View } from './color-picker-view';
24
+ export { Area, AreaBackground, AreaThumb, ChannelInput, ChannelSlider, ChannelSliderThumb, ChannelSliderTrack, Content, Control, EyeDropperTrigger, FormatSelect, FormatTrigger, Label, Positioner, Root, Swatch, SwatchGroup, SwatchIndicator, SwatchTrigger, TransparencyGrid, Trigger, ValueText, View, };
@@ -1,52 +1,23 @@
1
- 'use client';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { mergeProps } from '@zag-js/react';
4
- import { forwardRef } from 'react';
5
- import { createSplitProps } from '../create-split-props.mjs';
6
- import { ark } from '../factory.mjs';
7
- import '../presence/index.mjs';
8
- import { runIfFn } from '../run-if-fn.mjs';
9
- import { ColorPickerProvider } from './color-picker-context.mjs';
10
- import { useColorPicker } from './use-color-picker.mjs';
11
- import { splitPresenceProps } from '../presence/split-presence-props.mjs';
12
- import { usePresence } from '../presence/use-presence.mjs';
13
- import { PresenceProvider } from '../presence/presence-context.mjs';
14
-
15
- const ColorPicker = forwardRef((props, ref) => {
16
- const [presenceProps, colorPickerProps] = splitPresenceProps(props);
17
- const [useColorPickerProps, { children, ...localProps }] = createSplitProps()(colorPickerProps, [
18
- "closeOnSelect",
19
- "defaultValue",
20
- "dir",
21
- "disabled",
22
- "format",
23
- "getRootNode",
24
- "id",
25
- "ids",
26
- "initialFocusEl",
27
- "name",
28
- "name",
29
- "onFocusOutside",
30
- "onFormatChange",
31
- "onInteractOutside",
32
- "onOpenChange",
33
- "onPointerDownOutside",
34
- "onValueChange",
35
- "onValueChangeEnd",
36
- "open",
37
- "positioning",
38
- "readOnly",
39
- "value"
40
- ]);
41
- const api = useColorPicker(useColorPickerProps);
42
- const presenceApi = usePresence(mergeProps({ present: api.isOpen }, presenceProps));
43
- const view = runIfFn(children, api);
44
- const mergedProps = mergeProps(api.rootProps, localProps);
45
- return /* @__PURE__ */ jsx(ColorPickerProvider, { value: api, children: /* @__PURE__ */ jsxs(PresenceProvider, { value: presenceApi, children: [
46
- /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }),
47
- /* @__PURE__ */ jsx("input", { ...api.hiddenInputProps })
48
- ] }) });
49
- });
50
- ColorPicker.displayName = "ColorPicker";
51
-
52
- export { ColorPicker };
1
+ export { ColorPickerArea as Area } from './color-picker-area.mjs';
2
+ export { ColorPickerAreaBackground as AreaBackground } from './color-picker-area-background.mjs';
3
+ export { ColorPickerAreaThumb as AreaThumb } from './color-picker-area-thumb.mjs';
4
+ export { ColorPickerChannelInput as ChannelInput } from './color-picker-channel-input.mjs';
5
+ export { ColorPickerChannelSlider as ChannelSlider } from './color-picker-channel-slider.mjs';
6
+ export { ColorPickerChannelSliderThumb as ChannelSliderThumb } from './color-picker-channel-slider-thumb.mjs';
7
+ export { ColorPickerChannelSliderTrack as ChannelSliderTrack } from './color-picker-channel-slider-track.mjs';
8
+ export { ColorPickerContent as Content } from './color-picker-content.mjs';
9
+ export { ColorPickerControl as Control } from './color-picker-control.mjs';
10
+ export { ColorPickerEyeDropperTrigger as EyeDropperTrigger } from './color-picker-eye-dropper-trigger.mjs';
11
+ export { ColorPickerFormatSelect as FormatSelect } from './color-picker-format-select.mjs';
12
+ export { ColorPickerFormatTrigger as FormatTrigger } from './color-picker-format-trigger.mjs';
13
+ export { ColorPickerLabel as Label } from './color-picker-label.mjs';
14
+ export { ColorPickerPositioner as Positioner } from './color-picker-positioner.mjs';
15
+ export { ColorPickerRoot as Root } from './color-picker-root.mjs';
16
+ export { ColorPickerSwatch as Swatch } from './color-picker-swatch.mjs';
17
+ export { ColorPickerSwatchGroup as SwatchGroup } from './color-picker-swatch-group.mjs';
18
+ export { ColorPickerSwatchIndicator as SwatchIndicator } from './color-picker-swatch-indicator.mjs';
19
+ export { ColorPickerSwatchTrigger as SwatchTrigger } from './color-picker-swatch-trigger.mjs';
20
+ export { ColorPickerTransparencyGrid as TransparencyGrid } from './color-picker-transparency-grid.mjs';
21
+ export { ColorPickerTrigger as Trigger } from './color-picker-trigger.mjs';
22
+ export { ColorPickerValueText as ValueText } from './color-picker-value-text.mjs';
23
+ export { ColorPickerView as View } from './color-picker-view.mjs';
@@ -1,9 +1,7 @@
1
- 'use client';
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
4
 
6
- const colorPicker = require('./color-picker.cjs');
7
5
  const colorPickerArea = require('./color-picker-area.cjs');
8
6
  const colorPickerAreaBackground = require('./color-picker-area-background.cjs');
9
7
  const colorPickerAreaContext = require('./color-picker-area-context.cjs');
@@ -21,6 +19,7 @@ const colorPickerFormatSelect = require('./color-picker-format-select.cjs');
21
19
  const colorPickerFormatTrigger = require('./color-picker-format-trigger.cjs');
22
20
  const colorPickerLabel = require('./color-picker-label.cjs');
23
21
  const colorPickerPositioner = require('./color-picker-positioner.cjs');
22
+ const colorPickerRoot = require('./color-picker-root.cjs');
24
23
  const colorPickerSwatch = require('./color-picker-swatch.cjs');
25
24
  const colorPickerSwatchGroup = require('./color-picker-swatch-group.cjs');
26
25
  const colorPickerSwatchIndicator = require('./color-picker-swatch-indicator.cjs');
@@ -29,32 +28,9 @@ const colorPickerTransparencyGrid = require('./color-picker-transparency-grid.cj
29
28
  const colorPickerTrigger = require('./color-picker-trigger.cjs');
30
29
  const colorPickerValueText = require('./color-picker-value-text.cjs');
31
30
  const colorPickerView = require('./color-picker-view.cjs');
31
+ const colorPicker = require('./color-picker.cjs');
32
+
32
33
 
33
- const ColorPicker = Object.assign(colorPicker.ColorPicker, {
34
- Root: colorPicker.ColorPicker,
35
- Area: colorPickerArea.ColorPickerArea,
36
- AreaBackground: colorPickerAreaBackground.ColorPickerAreaBackground,
37
- AreaThumb: colorPickerAreaThumb.ColorPickerAreaThumb,
38
- ChannelInput: colorPickerChannelInput.ColorPickerChannelInput,
39
- ChannelSlider: colorPickerChannelSlider.ColorPickerChannelSlider,
40
- ChannelSliderThumb: colorPickerChannelSliderThumb.ColorPickerChannelSliderThumb,
41
- ChannelSliderTrack: colorPickerChannelSliderTrack.ColorPickerChannelSliderTrack,
42
- Content: colorPickerContent.ColorPickerContent,
43
- Control: colorPickerControl.ColorPickerControl,
44
- EyeDropperTrigger: colorPickerEyeDropperTrigger.ColorPickerEyeDropperTrigger,
45
- FormatTrigger: colorPickerFormatTrigger.ColorPickerFormatTrigger,
46
- FormatSelect: colorPickerFormatSelect.ColorPickerFormatSelect,
47
- Label: colorPickerLabel.ColorPickerLabel,
48
- Positioner: colorPickerPositioner.ColorPickerPositioner,
49
- Swatch: colorPickerSwatch.ColorPickerSwatch,
50
- SwatchGroup: colorPickerSwatchGroup.ColorPickerSwatchGroup,
51
- SwatchIndicator: colorPickerSwatchIndicator.ColorPickerSwatchIndicator,
52
- SwatchTrigger: colorPickerSwatchTrigger.ColorPickerSwatchTrigger,
53
- TransparencyGrid: colorPickerTransparencyGrid.ColorPickerTransparencyGrid,
54
- Trigger: colorPickerTrigger.ColorPickerTrigger,
55
- ValueText: colorPickerValueText.ColorPickerValueText,
56
- View: colorPickerView.ColorPickerView
57
- });
58
34
 
59
35
  exports.ColorPickerArea = colorPickerArea.ColorPickerArea;
60
36
  exports.ColorPickerAreaBackground = colorPickerAreaBackground.ColorPickerAreaBackground;
@@ -73,6 +49,7 @@ exports.ColorPickerFormatSelect = colorPickerFormatSelect.ColorPickerFormatSelec
73
49
  exports.ColorPickerFormatTrigger = colorPickerFormatTrigger.ColorPickerFormatTrigger;
74
50
  exports.ColorPickerLabel = colorPickerLabel.ColorPickerLabel;
75
51
  exports.ColorPickerPositioner = colorPickerPositioner.ColorPickerPositioner;
52
+ exports.ColorPickerRoot = colorPickerRoot.ColorPickerRoot;
76
53
  exports.ColorPickerSwatch = colorPickerSwatch.ColorPickerSwatch;
77
54
  exports.ColorPickerSwatchGroup = colorPickerSwatchGroup.ColorPickerSwatchGroup;
78
55
  exports.ColorPickerSwatchIndicator = colorPickerSwatchIndicator.ColorPickerSwatchIndicator;
@@ -81,4 +58,4 @@ exports.ColorPickerTransparencyGrid = colorPickerTransparencyGrid.ColorPickerTra
81
58
  exports.ColorPickerTrigger = colorPickerTrigger.ColorPickerTrigger;
82
59
  exports.ColorPickerValueText = colorPickerValueText.ColorPickerValueText;
83
60
  exports.ColorPickerView = colorPickerView.ColorPickerView;
84
- exports.ColorPicker = ColorPicker;
61
+ exports.ColorPicker = colorPicker;
@@ -1,7 +1,4 @@
1
- import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
- /// <reference types="react" />
3
1
  import type { ColorFormat, FormatChangeDetails as ColorPickerFormatChangeDetails, OpenChangeDetails as ColorPickerOpenChangeDetails, ValueChangeDetails as ColorPickerValueChangeDetails } from '@zag-js/color-picker';
4
- import { type ColorPickerProps } from './color-picker';
5
2
  import { ColorPickerArea, type ColorPickerAreaProps } from './color-picker-area';
6
3
  import { ColorPickerAreaBackground, type ColorPickerAreaBackgroundProps } from './color-picker-area-background';
7
4
  import { useColorPickerAreaContext, type ColorPickerAreaContext } from './color-picker-area-context';
@@ -19,6 +16,7 @@ import { ColorPickerFormatSelect, type ColorPickerFormatSelectProps } from './co
19
16
  import { ColorPickerFormatTrigger, type ColorPickerFormatTriggerProps } from './color-picker-format-trigger';
20
17
  import { ColorPickerLabel, type ColorPickerLabelProps } from './color-picker-label';
21
18
  import { ColorPickerPositioner, type ColorPickerPositionerProps } from './color-picker-positioner';
19
+ import { ColorPickerRoot, type ColorPickerRootProps } from './color-picker-root';
22
20
  import { ColorPickerSwatch, type ColorPickerSwatchProps } from './color-picker-swatch';
23
21
  import { ColorPickerSwatchGroup, type ColorPickerSwatchGroupProps } from './color-picker-swatch-group';
24
22
  import { ColorPickerSwatchIndicator, type ColorPickerSwatchIndicatorProps } from './color-picker-swatch-indicator';
@@ -27,30 +25,6 @@ import { ColorPickerTransparencyGrid, type ColorPickerTransparencyGridProps } fr
27
25
  import { ColorPickerTrigger, type ColorPickerTriggerProps } from './color-picker-trigger';
28
26
  import { ColorPickerValueText, type ColorPickerValueTextProps } from './color-picker-value-text';
29
27
  import { ColorPickerView, type ColorPickerViewProps } from './color-picker-view';
30
- declare const ColorPicker: ForwardRefExoticComponent<ColorPickerProps & RefAttributes<HTMLDivElement>> & {
31
- Root: ForwardRefExoticComponent<ColorPickerProps & RefAttributes<HTMLDivElement>>;
32
- Area: ForwardRefExoticComponent<ColorPickerAreaProps & RefAttributes<HTMLDivElement>>;
33
- AreaBackground: ForwardRefExoticComponent<ColorPickerAreaBackgroundProps & RefAttributes<HTMLDivElement>>;
34
- AreaThumb: ForwardRefExoticComponent<ColorPickerAreaThumbProps & RefAttributes<HTMLDivElement>>;
35
- ChannelInput: ForwardRefExoticComponent<ColorPickerChannelInputProps & RefAttributes<HTMLInputElement>>;
36
- ChannelSlider: ForwardRefExoticComponent<ColorPickerChannelSliderProps & RefAttributes<HTMLDivElement>>;
37
- ChannelSliderThumb: ForwardRefExoticComponent<ColorPickerChannelSliderThumbProps & RefAttributes<HTMLDivElement>>;
38
- ChannelSliderTrack: ForwardRefExoticComponent<ColorPickerChannelSliderTrackProps & RefAttributes<HTMLDivElement>>;
39
- Content: ForwardRefExoticComponent<ColorPickerContentProps & RefAttributes<HTMLDivElement>>;
40
- Control: ForwardRefExoticComponent<ColorPickerControlProps & RefAttributes<HTMLDivElement>>;
41
- EyeDropperTrigger: ForwardRefExoticComponent<ColorPickerEyeDropperTriggerProps & RefAttributes<HTMLButtonElement>>;
42
- FormatTrigger: ForwardRefExoticComponent<ColorPickerFormatTriggerProps & RefAttributes<HTMLButtonElement>>;
43
- FormatSelect: ForwardRefExoticComponent<ColorPickerFormatSelectProps & RefAttributes<HTMLSelectElement>>;
44
- Label: ForwardRefExoticComponent<ColorPickerLabelProps & RefAttributes<HTMLLabelElement>>;
45
- Positioner: ForwardRefExoticComponent<ColorPickerPositionerProps & RefAttributes<HTMLDivElement>>;
46
- Swatch: ForwardRefExoticComponent<ColorPickerSwatchProps & RefAttributes<HTMLDivElement>>;
47
- SwatchGroup: ForwardRefExoticComponent<ColorPickerSwatchGroupProps & RefAttributes<HTMLDivElement>>;
48
- SwatchIndicator: ForwardRefExoticComponent<ColorPickerSwatchIndicatorProps & RefAttributes<HTMLDivElement>>;
49
- SwatchTrigger: ForwardRefExoticComponent<ColorPickerSwatchTriggerProps & RefAttributes<HTMLButtonElement>>;
50
- TransparencyGrid: ForwardRefExoticComponent<ColorPickerTransparencyGridProps & RefAttributes<HTMLDivElement>>;
51
- Trigger: ForwardRefExoticComponent<ColorPickerTriggerProps & RefAttributes<HTMLButtonElement>>;
52
- ValueText: ForwardRefExoticComponent<ColorPickerValueTextProps & RefAttributes<HTMLDivElement>>;
53
- View: ForwardRefExoticComponent<ColorPickerViewProps & RefAttributes<HTMLDivElement>>;
54
- };
55
- export { ColorPicker, ColorPickerArea, ColorPickerAreaBackground, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSlider, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerContent, ColorPickerControl, ColorPickerEyeDropperTrigger, ColorPickerFormatSelect, ColorPickerFormatTrigger, ColorPickerLabel, ColorPickerPositioner, ColorPickerSwatch, ColorPickerSwatchGroup, ColorPickerSwatchIndicator, ColorPickerSwatchTrigger, ColorPickerTransparencyGrid, ColorPickerTrigger, ColorPickerValueText, ColorPickerView, useColorPickerAreaContext, useColorPickerChannelSliderContext, useColorPickerContext, };
56
- export type { ColorFormat, ColorPickerAreaBackgroundProps, ColorPickerAreaContext, ColorPickerAreaProps, ColorPickerAreaThumbProps, ColorPickerChannelInputProps, ColorPickerChannelSliderContext, ColorPickerChannelSliderProps, ColorPickerChannelSliderThumbProps, ColorPickerChannelSliderTrackProps, ColorPickerContentProps, ColorPickerContext, ColorPickerControlProps, ColorPickerEyeDropperTriggerProps, ColorPickerFormatChangeDetails, ColorPickerFormatSelectProps, ColorPickerFormatTriggerProps, ColorPickerLabelProps, ColorPickerOpenChangeDetails, ColorPickerPositionerProps, ColorPickerProps, ColorPickerSwatchGroupProps, ColorPickerSwatchIndicatorProps, ColorPickerSwatchProps, ColorPickerSwatchTriggerProps, ColorPickerTransparencyGridProps, ColorPickerTriggerProps, ColorPickerValueChangeDetails, ColorPickerValueTextProps, ColorPickerViewProps, };
28
+ export * as ColorPicker from './color-picker';
29
+ export { ColorPickerArea, ColorPickerAreaBackground, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSlider, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerContent, ColorPickerControl, ColorPickerEyeDropperTrigger, ColorPickerFormatSelect, ColorPickerFormatTrigger, ColorPickerLabel, ColorPickerPositioner, ColorPickerRoot, ColorPickerSwatch, ColorPickerSwatchGroup, ColorPickerSwatchIndicator, ColorPickerSwatchTrigger, ColorPickerTransparencyGrid, ColorPickerTrigger, ColorPickerValueText, ColorPickerView, useColorPickerAreaContext, useColorPickerChannelSliderContext, useColorPickerContext, };
30
+ export type { ColorFormat, ColorPickerAreaBackgroundProps, ColorPickerAreaContext, ColorPickerAreaProps, ColorPickerAreaThumbProps, ColorPickerChannelInputProps, ColorPickerChannelSliderContext, ColorPickerChannelSliderProps, ColorPickerChannelSliderThumbProps, ColorPickerChannelSliderTrackProps, ColorPickerContentProps, ColorPickerContext, ColorPickerControlProps, ColorPickerEyeDropperTriggerProps, ColorPickerFormatChangeDetails, ColorPickerFormatSelectProps, ColorPickerFormatTriggerProps, ColorPickerLabelProps, ColorPickerOpenChangeDetails, ColorPickerPositionerProps, ColorPickerRootProps, ColorPickerSwatchGroupProps, ColorPickerSwatchIndicatorProps, ColorPickerSwatchProps, ColorPickerSwatchTriggerProps, ColorPickerTransparencyGridProps, ColorPickerTriggerProps, ColorPickerValueChangeDetails, ColorPickerValueTextProps, ColorPickerViewProps, };