@spark-ui/components 14.0.0-beta.1 → 14.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 (382) hide show
  1. package/dist/Button-B6rA3-e5.js +2 -0
  2. package/dist/{Button-C3xHNaGl.js.map → Button-B6rA3-e5.js.map} +1 -1
  3. package/dist/{Button-D32Avk2j.mjs → Button-C3C0aixy.mjs} +4 -4
  4. package/dist/{Button-D32Avk2j.mjs.map → Button-C3C0aixy.mjs.map} +1 -1
  5. package/dist/DialogContent.styles-BSfXHt21.mjs +61 -0
  6. package/dist/DialogContent.styles-BSfXHt21.mjs.map +1 -0
  7. package/dist/DialogContent.styles-bBs6l8Cy.js +2 -0
  8. package/dist/DialogContent.styles-bBs6l8Cy.js.map +1 -0
  9. package/dist/Icon-CF0W0LKr.js +2 -0
  10. package/dist/{Icon-Bf0XrmiR.js.map → Icon-CF0W0LKr.js.map} +1 -1
  11. package/dist/{Icon-D1RueiPY.mjs → Icon-Ck-dhfLd.mjs} +6 -6
  12. package/dist/{Icon-D1RueiPY.mjs.map → Icon-Ck-dhfLd.mjs.map} +1 -1
  13. package/dist/{IconButton-BY3gYXtU.mjs → IconButton-C62-axzv.mjs} +6 -6
  14. package/dist/{IconButton-BY3gYXtU.mjs.map → IconButton-C62-axzv.mjs.map} +1 -1
  15. package/dist/IconButton-D3g86WpZ.js +2 -0
  16. package/dist/{IconButton-Bf-EDzpI.js.map → IconButton-D3g86WpZ.js.map} +1 -1
  17. package/dist/Slot-D2Bbf8Gw.mjs +14 -0
  18. package/dist/{Slot-C98rL4yy.mjs.map → Slot-D2Bbf8Gw.mjs.map} +1 -1
  19. package/dist/Slot-DQ8z2zsy.js +2 -0
  20. package/dist/{Slot-ghrohQLA.js.map → Slot-DQ8z2zsy.js.map} +1 -1
  21. package/dist/Spinner-_Kffli3B.js +2 -0
  22. package/dist/{Spinner-DK8VEsaR.js.map → Spinner-_Kffli3B.js.map} +1 -1
  23. package/dist/{Spinner-CYL5kyzM.mjs → Spinner-jF3-zoh_.mjs} +3 -3
  24. package/dist/{Spinner-CYL5kyzM.mjs.map → Spinner-jF3-zoh_.mjs.map} +1 -1
  25. package/dist/{TextLink-3MEVs3No.mjs → TextLink-BuzFRWO6.mjs} +3 -3
  26. package/dist/{TextLink-3MEVs3No.mjs.map → TextLink-BuzFRWO6.mjs.map} +1 -1
  27. package/dist/TextLink-C3xDLsbC.js +2 -0
  28. package/dist/{TextLink-DD0VO37q.js.map → TextLink-C3xDLsbC.js.map} +1 -1
  29. package/dist/{VisuallyHidden-AoRh4WRK.js → VisuallyHidden-CB6Nx76j.js} +2 -2
  30. package/dist/{VisuallyHidden-AoRh4WRK.js.map → VisuallyHidden-CB6Nx76j.js.map} +1 -1
  31. package/dist/{VisuallyHidden-ByNP7ZUI.mjs → VisuallyHidden-KH1biLx-.mjs} +2 -2
  32. package/dist/{VisuallyHidden-ByNP7ZUI.mjs.map → VisuallyHidden-KH1biLx-.mjs.map} +1 -1
  33. package/dist/accordion/index.d.mts +15 -0
  34. package/dist/accordion/index.js +1 -1
  35. package/dist/accordion/index.js.map +1 -1
  36. package/dist/accordion/index.mjs +90 -608
  37. package/dist/accordion/index.mjs.map +1 -1
  38. package/dist/alert-dialog/AlertDialogPortal.d.ts +1 -1
  39. package/dist/alert-dialog/index.d.mts +38 -0
  40. package/dist/alert-dialog/index.js +1 -34
  41. package/dist/alert-dialog/index.js.map +1 -1
  42. package/dist/alert-dialog/index.mjs +139 -2475
  43. package/dist/alert-dialog/index.mjs.map +1 -1
  44. package/dist/avatar/index.d.mts +15 -0
  45. package/dist/avatar/index.js +1 -1
  46. package/dist/avatar/index.js.map +1 -1
  47. package/dist/avatar/index.mjs +4 -4
  48. package/dist/badge/index.d.mts +1 -0
  49. package/dist/badge/index.js +1 -1
  50. package/dist/badge/index.js.map +1 -1
  51. package/dist/badge/index.mjs +6 -6
  52. package/dist/breadcrumb/index.d.mts +12 -0
  53. package/dist/breadcrumb/index.js +1 -1
  54. package/dist/breadcrumb/index.js.map +1 -1
  55. package/dist/breadcrumb/index.mjs +21 -21
  56. package/dist/button/Button.d.ts +1 -1
  57. package/dist/button/index.d.mts +1 -0
  58. package/dist/button/index.js +1 -1
  59. package/dist/button/index.mjs +1 -1
  60. package/dist/button/variants/index.d.mts +5 -0
  61. package/dist/card/index.d.mts +8 -0
  62. package/dist/card/index.js +1 -1
  63. package/dist/card/index.js.map +1 -1
  64. package/dist/card/index.mjs +2 -2
  65. package/dist/carousel/index.d.mts +19 -0
  66. package/dist/carousel/index.js +1 -1
  67. package/dist/carousel/index.js.map +1 -1
  68. package/dist/carousel/index.mjs +3 -3
  69. package/dist/checkbox/index.d.mts +2 -0
  70. package/dist/checkbox/index.js +1 -1
  71. package/dist/checkbox/index.js.map +1 -1
  72. package/dist/checkbox/index.mjs +128 -364
  73. package/dist/checkbox/index.mjs.map +1 -1
  74. package/dist/chip/index.d.mts +15 -0
  75. package/dist/chip/index.js +1 -1
  76. package/dist/chip/index.js.map +1 -1
  77. package/dist/chip/index.mjs +196 -370
  78. package/dist/chip/index.mjs.map +1 -1
  79. package/dist/chip/variants/index.d.mts +3 -0
  80. package/dist/collapsible/index.d.mts +7 -0
  81. package/dist/collapsible/index.js +1 -1
  82. package/dist/collapsible/index.js.map +1 -1
  83. package/dist/collapsible/index.mjs +38 -213
  84. package/dist/collapsible/index.mjs.map +1 -1
  85. package/dist/combobox/index.d.mts +35 -0
  86. package/dist/combobox/index.js +1 -1
  87. package/dist/combobox/index.js.map +1 -1
  88. package/dist/combobox/index.mjs +7 -7
  89. package/dist/combobox/utils/index.d.mts +14 -0
  90. package/dist/dialog/Dialog.d.ts +13 -13
  91. package/dist/dialog/DialogClose.d.ts +9 -8
  92. package/dist/dialog/DialogContent.d.ts +4 -4
  93. package/dist/dialog/DialogDescription.d.ts +3 -3
  94. package/dist/dialog/DialogOverlay.d.ts +5 -5
  95. package/dist/dialog/DialogPortal.d.ts +4 -4
  96. package/dist/dialog/DialogTitle.d.ts +3 -3
  97. package/dist/dialog/DialogTrigger.d.ts +5 -9
  98. package/dist/dialog/index.d.mts +37 -0
  99. package/dist/dialog/index.js +1 -1
  100. package/dist/dialog/index.js.map +1 -1
  101. package/dist/dialog/index.mjs +149 -159
  102. package/dist/dialog/index.mjs.map +1 -1
  103. package/dist/divider/index.d.mts +6 -0
  104. package/dist/divider/index.js +1 -1
  105. package/dist/divider/index.js.map +1 -1
  106. package/dist/divider/index.mjs +58 -76
  107. package/dist/divider/index.mjs.map +1 -1
  108. package/dist/drawer/Drawer.d.ts +12 -19
  109. package/dist/drawer/DrawerClose.d.ts +9 -5
  110. package/dist/drawer/DrawerContent.d.ts +5 -5
  111. package/dist/drawer/DrawerDescription.d.ts +4 -4
  112. package/dist/drawer/DrawerOverlay.d.ts +5 -5
  113. package/dist/drawer/DrawerPortal.d.ts +4 -4
  114. package/dist/drawer/DrawerTitle.d.ts +5 -5
  115. package/dist/drawer/DrawerTrigger.d.ts +5 -5
  116. package/dist/drawer/index.d.mts +37 -0
  117. package/dist/drawer/index.d.ts +2 -0
  118. package/dist/drawer/index.js +1 -1
  119. package/dist/drawer/index.js.map +1 -1
  120. package/dist/drawer/index.mjs +143 -114
  121. package/dist/drawer/index.mjs.map +1 -1
  122. package/dist/drawer/useRenderSlot.d.ts +3 -0
  123. package/dist/dropdown/index.d.mts +29 -0
  124. package/dist/dropdown/index.js +1 -1
  125. package/dist/dropdown/index.js.map +1 -1
  126. package/dist/dropdown/index.mjs +5 -5
  127. package/dist/file-upload/index.d.mts +22 -0
  128. package/dist/file-upload/index.js +1 -1
  129. package/dist/file-upload/index.js.map +1 -1
  130. package/dist/file-upload/index.mjs +6 -6
  131. package/dist/form-field/index.d.mts +31 -0
  132. package/dist/form-field/index.js +1 -1
  133. package/dist/form-field/index.js.map +1 -1
  134. package/dist/form-field/index.mjs +47 -47
  135. package/dist/icon/index.d.mts +1 -0
  136. package/dist/icon/index.js +1 -1
  137. package/dist/icon/index.mjs +1 -1
  138. package/dist/icon-button/index.d.mts +1 -0
  139. package/dist/icon-button/index.js +1 -1
  140. package/dist/icon-button/index.mjs +1 -1
  141. package/dist/input/index.d.mts +21 -0
  142. package/dist/input/index.js +1 -1
  143. package/dist/input/index.js.map +1 -1
  144. package/dist/input/index.mjs +4 -4
  145. package/dist/input-otp/index.d.mts +14 -0
  146. package/dist/input-otp/index.js +1 -1
  147. package/dist/input-otp/index.js.map +1 -1
  148. package/dist/input-otp/index.mjs +139 -137
  149. package/dist/input-otp/index.mjs.map +1 -1
  150. package/dist/kbd/index.d.mts +1 -0
  151. package/dist/label/index.d.mts +7 -0
  152. package/dist/label/index.js +1 -1
  153. package/dist/label/index.js.map +1 -1
  154. package/dist/label/index.mjs +37 -2
  155. package/dist/label/index.mjs.map +1 -1
  156. package/dist/link-box/index.d.mts +9 -0
  157. package/dist/link-box/index.js +1 -1
  158. package/dist/link-box/index.js.map +1 -1
  159. package/dist/link-box/index.mjs +7 -7
  160. package/dist/pagination/index.d.mts +18 -0
  161. package/dist/pagination/index.js +1 -1
  162. package/dist/pagination/index.js.map +1 -1
  163. package/dist/pagination/index.mjs +126 -844
  164. package/dist/pagination/index.mjs.map +1 -1
  165. package/dist/popover/index.d.mts +17 -0
  166. package/dist/popover/index.js +1 -1
  167. package/dist/popover/index.js.map +1 -1
  168. package/dist/popover/index.mjs +119 -1748
  169. package/dist/popover/index.mjs.map +1 -1
  170. package/dist/portal/index.d.mts +1 -0
  171. package/dist/portal/index.js +1 -1
  172. package/dist/portal/index.js.map +1 -1
  173. package/dist/portal/index.mjs +3 -3
  174. package/dist/portal/index.mjs.map +1 -1
  175. package/dist/progress/index.d.mts +13 -0
  176. package/dist/progress/index.js +1 -6
  177. package/dist/progress/index.js.map +1 -1
  178. package/dist/progress/index.mjs +87 -162
  179. package/dist/progress/index.mjs.map +1 -1
  180. package/dist/progress-tracker/index.d.mts +10 -0
  181. package/dist/progress-tracker/index.js +1 -1
  182. package/dist/progress-tracker/index.js.map +1 -1
  183. package/dist/progress-tracker/index.mjs +14 -14
  184. package/dist/radio-group/index.d.mts +7 -0
  185. package/dist/radio-group/index.js +1 -1
  186. package/dist/radio-group/index.js.map +1 -1
  187. package/dist/radio-group/index.mjs +85 -312
  188. package/dist/radio-group/index.mjs.map +1 -1
  189. package/dist/rating/index.d.mts +1 -0
  190. package/dist/rating/index.js +1 -1
  191. package/dist/rating/index.js.map +1 -1
  192. package/dist/rating/index.mjs +11 -11
  193. package/dist/scrolling-list/index.d.mts +15 -0
  194. package/dist/scrolling-list/index.js +1 -1
  195. package/dist/scrolling-list/index.js.map +1 -1
  196. package/dist/scrolling-list/index.mjs +168 -333
  197. package/dist/scrolling-list/index.mjs.map +1 -1
  198. package/dist/segmented-gauge/index.d.mts +13 -0
  199. package/dist/segmented-gauge/index.js +1 -1
  200. package/dist/segmented-gauge/index.js.map +1 -1
  201. package/dist/segmented-gauge/index.mjs +1 -1
  202. package/dist/select/index.d.mts +21 -0
  203. package/dist/select/index.js +1 -1
  204. package/dist/select/index.js.map +1 -1
  205. package/dist/select/index.mjs +21 -21
  206. package/dist/skeleton/index.d.mts +8 -0
  207. package/dist/skeleton/index.js +1 -1
  208. package/dist/skeleton/index.js.map +1 -1
  209. package/dist/skeleton/index.mjs +2 -2
  210. package/dist/slider/Slider.d.ts +6 -1
  211. package/dist/slider/SliderContext.d.ts +4 -1
  212. package/dist/slider/index.d.mts +8 -0
  213. package/dist/slider/index.js +1 -1
  214. package/dist/slider/index.js.map +1 -1
  215. package/dist/slider/index.mjs +96 -496
  216. package/dist/slider/index.mjs.map +1 -1
  217. package/dist/slot/index.d.mts +1 -0
  218. package/dist/slot/index.js +1 -1
  219. package/dist/slot/index.mjs +1 -1
  220. package/dist/snackbar/index.d.mts +13 -0
  221. package/dist/snackbar/index.js +1 -1
  222. package/dist/snackbar/index.js.map +1 -1
  223. package/dist/snackbar/index.mjs +189 -1105
  224. package/dist/snackbar/index.mjs.map +1 -1
  225. package/dist/spinner/index.d.mts +1 -0
  226. package/dist/spinner/index.js +1 -1
  227. package/dist/spinner/index.mjs +1 -1
  228. package/dist/stepper/index.d.mts +9 -0
  229. package/dist/stepper/index.js +1 -7
  230. package/dist/stepper/index.js.map +1 -1
  231. package/dist/stepper/index.mjs +137 -2317
  232. package/dist/stepper/index.mjs.map +1 -1
  233. package/dist/switch/index.d.mts +1 -0
  234. package/dist/switch/index.js +1 -1
  235. package/dist/switch/index.js.map +1 -1
  236. package/dist/switch/index.mjs +85 -208
  237. package/dist/switch/index.mjs.map +1 -1
  238. package/dist/tabs/index.d.mts +13 -0
  239. package/dist/tabs/index.js +1 -1
  240. package/dist/tabs/index.js.map +1 -1
  241. package/dist/tabs/index.mjs +179 -329
  242. package/dist/tabs/index.mjs.map +1 -1
  243. package/dist/tag/index.d.mts +1 -0
  244. package/dist/tag/index.js +1 -1
  245. package/dist/tag/index.js.map +1 -1
  246. package/dist/tag/index.mjs +2 -2
  247. package/dist/tag/variants/index.d.mts +3 -0
  248. package/dist/text-link/index.d.mts +1 -0
  249. package/dist/text-link/index.js +1 -1
  250. package/dist/text-link/index.mjs +1 -1
  251. package/dist/textarea/index.d.mts +14 -0
  252. package/dist/textarea/index.js +1 -1
  253. package/dist/textarea/index.js.map +1 -1
  254. package/dist/textarea/index.mjs +6 -6
  255. package/dist/toast/index.d.mts +20 -0
  256. package/dist/toast/index.js +1 -1
  257. package/dist/toast/index.js.map +1 -1
  258. package/dist/toast/index.mjs +146 -1008
  259. package/dist/toast/index.mjs.map +1 -1
  260. package/dist/useRenderSlot-DATwjgpo.js +2 -0
  261. package/dist/useRenderSlot-DATwjgpo.js.map +1 -0
  262. package/dist/useRenderSlot-LwWj8QbC.mjs +10 -0
  263. package/dist/useRenderSlot-LwWj8QbC.mjs.map +1 -0
  264. package/dist/visually-hidden/index.d.mts +1 -0
  265. package/dist/visually-hidden/index.js +1 -1
  266. package/dist/visually-hidden/index.mjs +1 -1
  267. package/package.json +7 -6
  268. package/dist/Button-C3xHNaGl.js +0 -2
  269. package/dist/DialogContent.styles-BrhKaHc_.js +0 -2
  270. package/dist/DialogContent.styles-BrhKaHc_.js.map +0 -1
  271. package/dist/DialogContent.styles-WGWJS9dj.mjs +0 -48
  272. package/dist/DialogContent.styles-WGWJS9dj.mjs.map +0 -1
  273. package/dist/Icon-Bf0XrmiR.js +0 -2
  274. package/dist/IconButton-Bf-EDzpI.js +0 -2
  275. package/dist/Slot-C98rL4yy.mjs +0 -14
  276. package/dist/Slot-ghrohQLA.js +0 -2
  277. package/dist/Spinner-DK8VEsaR.js +0 -2
  278. package/dist/TextLink-DD0VO37q.js +0 -2
  279. package/dist/composite-Br3kM5N9.mjs +0 -40
  280. package/dist/composite-Br3kM5N9.mjs.map +0 -1
  281. package/dist/composite-fJD9R7R0.js +0 -2
  282. package/dist/composite-fJD9R7R0.js.map +0 -1
  283. package/dist/detectBrowser-Bc7rk5fI.mjs +0 -44
  284. package/dist/detectBrowser-Bc7rk5fI.mjs.map +0 -1
  285. package/dist/detectBrowser-DTbs_30X.js +0 -2
  286. package/dist/detectBrowser-DTbs_30X.js.map +0 -1
  287. package/dist/downshift.esm-Ncwetv0s.mjs +0 -3038
  288. package/dist/downshift.esm-Ncwetv0s.mjs.map +0 -1
  289. package/dist/downshift.esm-PfCOUbxq.js +0 -37
  290. package/dist/downshift.esm-PfCOUbxq.js.map +0 -1
  291. package/dist/floating-ui.utils.dom-CCN4I08l.js +0 -2
  292. package/dist/floating-ui.utils.dom-CCN4I08l.js.map +0 -1
  293. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs +0 -136
  294. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs.map +0 -1
  295. package/dist/index-0KYGKeVg.js +0 -2
  296. package/dist/index-0KYGKeVg.js.map +0 -1
  297. package/dist/index-1WIgmEZh.js +0 -2
  298. package/dist/index-1WIgmEZh.js.map +0 -1
  299. package/dist/index-BRi38DTc.mjs +0 -21
  300. package/dist/index-BRi38DTc.mjs.map +0 -1
  301. package/dist/index-BZAtNKwE.mjs +0 -71
  302. package/dist/index-BZAtNKwE.mjs.map +0 -1
  303. package/dist/index-BZPx6jYI.mjs +0 -9
  304. package/dist/index-BZPx6jYI.mjs.map +0 -1
  305. package/dist/index-BlkdpEIe.mjs +0 -55
  306. package/dist/index-BlkdpEIe.mjs.map +0 -1
  307. package/dist/index-BmAFn37q.mjs +0 -49
  308. package/dist/index-BmAFn37q.mjs.map +0 -1
  309. package/dist/index-C-J_tHdS.js +0 -6
  310. package/dist/index-C-J_tHdS.js.map +0 -1
  311. package/dist/index-C1qb0595.mjs +0 -28
  312. package/dist/index-C1qb0595.mjs.map +0 -1
  313. package/dist/index-C34GgsKQ.mjs +0 -54
  314. package/dist/index-C34GgsKQ.mjs.map +0 -1
  315. package/dist/index-CCKe-Mpx.mjs +0 -7
  316. package/dist/index-CCKe-Mpx.mjs.map +0 -1
  317. package/dist/index-CDBBjNXc.js +0 -2
  318. package/dist/index-CDBBjNXc.js.map +0 -1
  319. package/dist/index-CYjGhVvU.mjs +0 -243
  320. package/dist/index-CYjGhVvU.mjs.map +0 -1
  321. package/dist/index-ChLwd62c.js +0 -2
  322. package/dist/index-ChLwd62c.js.map +0 -1
  323. package/dist/index-Cjj_rUPu.js +0 -2
  324. package/dist/index-Cjj_rUPu.js.map +0 -1
  325. package/dist/index-CyMbLkj0.js +0 -2
  326. package/dist/index-CyMbLkj0.js.map +0 -1
  327. package/dist/index-DFZozV_h.mjs +0 -69
  328. package/dist/index-DFZozV_h.mjs.map +0 -1
  329. package/dist/index-DKuHkHFX.js +0 -2
  330. package/dist/index-DKuHkHFX.js.map +0 -1
  331. package/dist/index-DLHLIYPI.mjs +0 -16
  332. package/dist/index-DLHLIYPI.mjs.map +0 -1
  333. package/dist/index-DO-atGp-.js +0 -2
  334. package/dist/index-DO-atGp-.js.map +0 -1
  335. package/dist/index-DWlg8lkk.mjs +0 -179
  336. package/dist/index-DWlg8lkk.mjs.map +0 -1
  337. package/dist/index-DYxWvftI.js +0 -2
  338. package/dist/index-DYxWvftI.js.map +0 -1
  339. package/dist/index-D_lWkK39.mjs +0 -803
  340. package/dist/index-D_lWkK39.mjs.map +0 -1
  341. package/dist/index-DdkVj7D0.js +0 -18
  342. package/dist/index-DdkVj7D0.js.map +0 -1
  343. package/dist/index-De-6atSi.js +0 -2
  344. package/dist/index-De-6atSi.js.map +0 -1
  345. package/dist/index-DhGWNzsz.mjs +0 -83
  346. package/dist/index-DhGWNzsz.mjs.map +0 -1
  347. package/dist/index-Dkj4QRX8.js +0 -2
  348. package/dist/index-Dkj4QRX8.js.map +0 -1
  349. package/dist/index-DlIFg0Eu.mjs +0 -60
  350. package/dist/index-DlIFg0Eu.mjs.map +0 -1
  351. package/dist/index-DnaHaH_0.js +0 -2
  352. package/dist/index-DnaHaH_0.js.map +0 -1
  353. package/dist/index-MHF2-CYX.js +0 -2
  354. package/dist/index-MHF2-CYX.js.map +0 -1
  355. package/dist/index-MQ0c3ZX_.js +0 -2
  356. package/dist/index-MQ0c3ZX_.js.map +0 -1
  357. package/dist/index-MSR-vgWR.mjs +0 -37
  358. package/dist/index-MSR-vgWR.mjs.map +0 -1
  359. package/dist/index-VL0YEmOW.mjs +0 -125
  360. package/dist/index-VL0YEmOW.mjs.map +0 -1
  361. package/dist/index-tXqxYME3.js +0 -42
  362. package/dist/index-tXqxYME3.js.map +0 -1
  363. package/dist/inertValue-Bif5Sqs6.mjs +0 -522
  364. package/dist/inertValue-Bif5Sqs6.mjs.map +0 -1
  365. package/dist/inertValue-ShwihJSN.js +0 -5
  366. package/dist/inertValue-ShwihJSN.js.map +0 -1
  367. package/dist/useCollapsiblePanel-D1dCo0lf.js +0 -4
  368. package/dist/useCollapsiblePanel-D1dCo0lf.js.map +0 -1
  369. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs +0 -287
  370. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs.map +0 -1
  371. package/dist/useFocusWithin-CFNEka2I.js +0 -2
  372. package/dist/useFocusWithin-CFNEka2I.js.map +0 -1
  373. package/dist/useFocusWithin-CoL4390f.mjs +0 -796
  374. package/dist/useFocusWithin-CoL4390f.mjs.map +0 -1
  375. package/dist/useOpenChangeComplete-Dk-u_f2y.js +0 -2
  376. package/dist/useOpenChangeComplete-Dk-u_f2y.js.map +0 -1
  377. package/dist/useOpenChangeComplete-RUbg6RBw.mjs +0 -582
  378. package/dist/useOpenChangeComplete-RUbg6RBw.mjs.map +0 -1
  379. package/dist/useTransitionStatus-CktVVKxz.mjs +0 -46
  380. package/dist/useTransitionStatus-CktVVKxz.mjs.map +0 -1
  381. package/dist/useTransitionStatus-CqbEyvIj.js +0 -2
  382. package/dist/useTransitionStatus-CqbEyvIj.js.map +0 -1
@@ -1,582 +0,0 @@
1
- import * as a from "react";
2
- import { createElement as x } from "react";
3
- import { i as te } from "./floating-ui.utils.dom-uiDUZc_y.mjs";
4
- import * as R from "react-dom";
5
- const v = {};
6
- function g(e, t) {
7
- const n = a.useRef(v);
8
- return n.current === v && (n.current = e(t)), n;
9
- }
10
- const N = a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], ne = (
11
- // React 17 doesn't have useInsertionEffect.
12
- N && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
13
- N !== a.useLayoutEffect ? N : (e) => e()
14
- );
15
- function k(e) {
16
- const t = g(re).current;
17
- return t.next = e, ne(t.effect), t.trampoline;
18
- }
19
- function re() {
20
- const e = {
21
- next: void 0,
22
- callback: se,
23
- trampoline: (...t) => e.callback?.(...t),
24
- effect: () => {
25
- e.callback = e.next;
26
- }
27
- };
28
- return e;
29
- }
30
- function se() {
31
- if (process.env.NODE_ENV !== "production")
32
- throw new Error("Base UI: Cannot call an event handler while rendering.");
33
- }
34
- const oe = () => {
35
- }, V = typeof document < "u" ? a.useLayoutEffect : oe;
36
- function K(e, ...t) {
37
- const n = new URL(`https://base-ui.com/production-error/${e}`);
38
- return t.forEach((s) => n.searchParams.append("args[]", s)), `Base UI error #${e}; visit ${n} for the full message.`;
39
- }
40
- function B(e, t, n, s) {
41
- const r = g(L).current;
42
- return ie(r, e, t, n, s) && q(r, [e, t, n, s]), r.callback;
43
- }
44
- function ce(e) {
45
- const t = g(L).current;
46
- return ae(t, e) && q(t, e), t.callback;
47
- }
48
- function L() {
49
- return {
50
- callback: null,
51
- cleanup: null,
52
- refs: []
53
- };
54
- }
55
- function ie(e, t, n, s, r) {
56
- return e.refs[0] !== t || e.refs[1] !== n || e.refs[2] !== s || e.refs[3] !== r;
57
- }
58
- function ae(e, t) {
59
- return e.refs.length !== t.length || e.refs.some((n, s) => n !== t[s]);
60
- }
61
- function q(e, t) {
62
- if (e.refs = t, t.every((n) => n == null)) {
63
- e.callback = null;
64
- return;
65
- }
66
- e.callback = (n) => {
67
- if (e.cleanup && (e.cleanup(), e.cleanup = null), n != null) {
68
- const s = Array(t.length).fill(null);
69
- for (let r = 0; r < t.length; r += 1) {
70
- const o = t[r];
71
- if (o != null)
72
- switch (typeof o) {
73
- case "function": {
74
- const c = o(n);
75
- typeof c == "function" && (s[r] = c);
76
- break;
77
- }
78
- case "object": {
79
- o.current = n;
80
- break;
81
- }
82
- }
83
- }
84
- e.cleanup = () => {
85
- for (let r = 0; r < t.length; r += 1) {
86
- const o = t[r];
87
- if (o != null)
88
- switch (typeof o) {
89
- case "function": {
90
- const c = s[r];
91
- typeof c == "function" ? c() : o(null);
92
- break;
93
- }
94
- case "object": {
95
- o.current = null;
96
- break;
97
- }
98
- }
99
- }
100
- };
101
- }
102
- };
103
- }
104
- const ue = parseInt(a.version, 10);
105
- function le(e) {
106
- return ue >= e;
107
- }
108
- function U(e) {
109
- if (!/* @__PURE__ */ a.isValidElement(e))
110
- return null;
111
- const t = e, n = t.props;
112
- return (le(19) ? n?.ref : t.ref) ?? null;
113
- }
114
- function A(e, t) {
115
- if (e && !t)
116
- return e;
117
- if (!e && t)
118
- return t;
119
- if (e || t)
120
- return {
121
- ...e,
122
- ...t
123
- };
124
- }
125
- function fe(e, t) {
126
- const n = {};
127
- for (const s in e) {
128
- const r = e[s];
129
- if (t?.hasOwnProperty(s)) {
130
- const o = t[s](r);
131
- o != null && Object.assign(n, o);
132
- continue;
133
- }
134
- r === !0 ? n[`data-${s.toLowerCase()}`] = "" : r && (n[`data-${s.toLowerCase()}`] = r.toString());
135
- }
136
- return n;
137
- }
138
- function de(e, t) {
139
- return typeof e == "function" ? e(t) : e;
140
- }
141
- function pe(e, t) {
142
- return typeof e == "function" ? e(t) : e;
143
- }
144
- const b = {};
145
- function $(e, t, n, s, r) {
146
- let o = {
147
- ...w(e, b)
148
- };
149
- return t && (o = C(o, t)), n && (o = C(o, n)), s && (o = C(o, s)), o;
150
- }
151
- function he(e) {
152
- if (e.length === 0)
153
- return b;
154
- if (e.length === 1)
155
- return w(e[0], b);
156
- let t = {
157
- ...w(e[0], b)
158
- };
159
- for (let n = 1; n < e.length; n += 1)
160
- t = C(t, e[n]);
161
- return t;
162
- }
163
- function C(e, t) {
164
- return j(t) ? t(e) : me(e, t);
165
- }
166
- function me(e, t) {
167
- if (!t)
168
- return e;
169
- for (const n in t) {
170
- const s = t[n];
171
- switch (n) {
172
- case "style": {
173
- e[n] = A(e.style, s);
174
- break;
175
- }
176
- case "className": {
177
- e[n] = W(e.className, s);
178
- break;
179
- }
180
- default:
181
- be(n, s) ? e[n] = ge(e[n], s) : e[n] = s;
182
- }
183
- }
184
- return e;
185
- }
186
- function be(e, t) {
187
- const n = e.charCodeAt(0), s = e.charCodeAt(1), r = e.charCodeAt(2);
188
- return n === 111 && s === 110 && r >= 65 && r <= 90 && (typeof t == "function" || typeof t > "u");
189
- }
190
- function j(e) {
191
- return typeof e == "function";
192
- }
193
- function w(e, t) {
194
- return j(e) ? e(t) : e ?? b;
195
- }
196
- function ge(e, t) {
197
- return t ? e ? (n) => {
198
- if (Ee(n)) {
199
- const r = n;
200
- D(r);
201
- const o = t(r);
202
- return r.baseUIHandlerPrevented || e?.(r), o;
203
- }
204
- const s = t(n);
205
- return e?.(n), s;
206
- } : t : e;
207
- }
208
- function D(e) {
209
- return e.preventBaseUIHandler = () => {
210
- e.baseUIHandlerPrevented = !0;
211
- }, e;
212
- }
213
- function W(e, t) {
214
- return t ? e ? t + " " + e : t : e;
215
- }
216
- function Ee(e) {
217
- return e != null && typeof e == "object" && "nativeEvent" in e;
218
- }
219
- function Ke() {
220
- }
221
- const m = Object.freeze({});
222
- function Le(e, t, n = {}) {
223
- const s = t.render, r = ye(t, n);
224
- if (n.enabled === !1)
225
- return null;
226
- const o = n.state ?? m;
227
- return Ie(e, s, r, o);
228
- }
229
- function ye(e, t = {}) {
230
- const {
231
- className: n,
232
- style: s,
233
- render: r
234
- } = e, {
235
- state: o = m,
236
- ref: c,
237
- props: u,
238
- stateAttributesMapping: p,
239
- enabled: l = !0
240
- } = t, h = l ? de(n, o) : void 0, E = l ? pe(s, o) : void 0, f = l ? fe(o, p) : m, d = l ? A(f, Array.isArray(u) ? he(u) : u) ?? m : m;
241
- return typeof document < "u" && (l ? Array.isArray(c) ? d.ref = ce([d.ref, U(r), ...c]) : d.ref = B(d.ref, U(r), c) : B(null, null)), l ? (h !== void 0 && (d.className = W(d.className, h)), E !== void 0 && (d.style = A(d.style, E)), d) : m;
242
- }
243
- function Ie(e, t, n, s) {
244
- if (t) {
245
- if (typeof t == "function")
246
- return t(n, s);
247
- const r = $(n, t.props);
248
- return r.ref = n.ref, /* @__PURE__ */ a.cloneElement(t, r);
249
- }
250
- if (e && typeof e == "string")
251
- return Ce(e, n);
252
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: Render element or function are not defined." : K(8));
253
- }
254
- function Ce(e, t) {
255
- return e === "button" ? /* @__PURE__ */ x("button", {
256
- type: "button",
257
- ...t,
258
- key: t.key
259
- }) : e === "img" ? /* @__PURE__ */ x("img", {
260
- alt: "",
261
- ...t,
262
- key: t.key
263
- }) : /* @__PURE__ */ a.createElement(e, t);
264
- }
265
- const qe = "none", $e = "trigger-press", je = "trigger-hover", We = "outside-press", Ge = "close-press", He = "focus-out", Ye = "escape-key", ze = "imperative-action";
266
- function Je(e, t, n, s) {
267
- let r = !1, o = !1;
268
- const c = m;
269
- return {
270
- reason: e,
271
- event: t ?? new Event("base-ui"),
272
- cancel() {
273
- r = !0;
274
- },
275
- allowPropagation() {
276
- o = !0;
277
- },
278
- get isCanceled() {
279
- return r;
280
- },
281
- get isPropagationAllowed() {
282
- return o;
283
- },
284
- trigger: n,
285
- ...c
286
- };
287
- }
288
- const ke = {
289
- ...a
290
- };
291
- let M = 0;
292
- function Ne(e, t = "mui") {
293
- const [n, s] = a.useState(e), r = e || n;
294
- return a.useEffect(() => {
295
- n == null && (M += 1, s(`${t}-${M}`));
296
- }, [n, t]), r;
297
- }
298
- const T = ke.useId;
299
- function Ze(e, t) {
300
- if (T !== void 0) {
301
- const n = T();
302
- return e ?? (t ? `${t}-${n}` : n);
303
- }
304
- return Ne(e, t);
305
- }
306
- const Ae = [];
307
- function we(e) {
308
- a.useEffect(e, Ae);
309
- }
310
- const y = null;
311
- let _ = globalThis.requestAnimationFrame;
312
- class De {
313
- /* This implementation uses an array as a backing data-structure for frame callbacks.
314
- * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
315
- * never calls the native `cancelAnimationFrame` if there are no frames left. This can
316
- * be much more efficient if there is a call pattern that alterns as
317
- * "request-cancel-request-cancel-…".
318
- * But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
319
- * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
320
- callbacks = [];
321
- callbacksCount = 0;
322
- nextId = 1;
323
- startId = 1;
324
- isScheduled = !1;
325
- tick = (t) => {
326
- this.isScheduled = !1;
327
- const n = this.callbacks, s = this.callbacksCount;
328
- if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, s > 0)
329
- for (let r = 0; r < n.length; r += 1)
330
- n[r]?.(t);
331
- };
332
- request(t) {
333
- const n = this.nextId;
334
- this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
335
- const s = process.env.NODE_ENV === "test" && _ !== requestAnimationFrame && (_ = requestAnimationFrame, !0);
336
- return (!this.isScheduled || s) && (requestAnimationFrame(this.tick), this.isScheduled = !0), n;
337
- }
338
- cancel(t) {
339
- const n = t - this.startId;
340
- n < 0 || n >= this.callbacks.length || (this.callbacks[n] = null, this.callbacksCount -= 1);
341
- }
342
- }
343
- const I = new De();
344
- class O {
345
- static create() {
346
- return new O();
347
- }
348
- static request(t) {
349
- return I.request(t);
350
- }
351
- static cancel(t) {
352
- return I.cancel(t);
353
- }
354
- currentId = y;
355
- /**
356
- * Executes `fn` after `delay`, clearing any previously scheduled call.
357
- */
358
- request(t) {
359
- this.cancel(), this.currentId = I.request(() => {
360
- this.currentId = y, t();
361
- });
362
- }
363
- cancel = () => {
364
- this.currentId !== y && (I.cancel(this.currentId), this.currentId = y);
365
- };
366
- disposeEffect = () => this.cancel;
367
- }
368
- function Pe() {
369
- const e = g(O.create).current;
370
- return we(e.disposeEffect), e;
371
- }
372
- function Oe(e) {
373
- return e == null ? e : "current" in e ? e.current : e;
374
- }
375
- function Se(e, t = !1, n = !0) {
376
- const s = Pe();
377
- return k((r, o = null) => {
378
- s.cancel();
379
- const c = Oe(e);
380
- c != null && (typeof c.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED ? r() : s.request(() => {
381
- function u() {
382
- c && Promise.all(c.getAnimations().map((p) => p.finished)).then(() => {
383
- o != null && o.aborted || R.flushSync(r);
384
- }).catch(() => {
385
- if (n) {
386
- if (o != null && o.aborted)
387
- return;
388
- R.flushSync(r);
389
- } else c.getAnimations().length > 0 && c.getAnimations().some((p) => p.pending || p.playState !== "finished") && u();
390
- });
391
- }
392
- t ? s.request(u) : u();
393
- }));
394
- });
395
- }
396
- let G = /* @__PURE__ */ (function(e) {
397
- return e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e;
398
- })({});
399
- const xe = {
400
- [G.startingStyle]: ""
401
- }, Re = {
402
- [G.endingStyle]: ""
403
- }, Qe = {
404
- transitionStatus(e) {
405
- return e === "starting" ? xe : e === "ending" ? Re : null;
406
- }
407
- };
408
- let P;
409
- process.env.NODE_ENV !== "production" && (P = /* @__PURE__ */ new Set());
410
- function F(...e) {
411
- if (process.env.NODE_ENV !== "production") {
412
- const t = e.join(" ");
413
- P.has(t) || (P.add(t), console.error(`Base UI: ${t}`));
414
- }
415
- }
416
- const H = /* @__PURE__ */ a.createContext(void 0);
417
- process.env.NODE_ENV !== "production" && (H.displayName = "CompositeRootContext");
418
- function ve(e = !1) {
419
- const t = a.useContext(H);
420
- if (t === void 0 && !e)
421
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : K(16));
422
- return t;
423
- }
424
- function Be(e) {
425
- const {
426
- focusableWhenDisabled: t,
427
- disabled: n,
428
- composite: s = !1,
429
- tabIndex: r = 0,
430
- isNativeButton: o
431
- } = e, c = s && t !== !1, u = s && t === !1;
432
- return {
433
- props: a.useMemo(() => {
434
- const l = {
435
- // allow Tabbing away from focusableWhenDisabled elements
436
- onKeyDown(h) {
437
- n && t && h.key !== "Tab" && h.preventDefault();
438
- }
439
- };
440
- return s || (l.tabIndex = r, !o && n && (l.tabIndex = t ? r : -1)), (o && (t || c) || !o && n) && (l["aria-disabled"] = n), o && (!t || u) && (l.disabled = n), l;
441
- }, [s, n, t, c, u, o, r])
442
- };
443
- }
444
- function Xe(e = {}) {
445
- const {
446
- disabled: t = !1,
447
- focusableWhenDisabled: n,
448
- tabIndex: s = 0,
449
- native: r = !0
450
- } = e, o = a.useRef(null), c = ve(!0) !== void 0, u = k(() => {
451
- const f = o.current;
452
- return !!(f?.tagName === "A" && f?.href);
453
- }), {
454
- props: p
455
- } = Be({
456
- focusableWhenDisabled: n,
457
- disabled: t,
458
- composite: c,
459
- tabIndex: s,
460
- isNativeButton: r
461
- });
462
- process.env.NODE_ENV !== "production" && a.useEffect(() => {
463
- if (!o.current)
464
- return;
465
- const f = o.current.tagName === "BUTTON";
466
- r ? f || F("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`.") : f && F("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.");
467
- }, [r]);
468
- const l = a.useCallback(() => {
469
- const f = o.current;
470
- Ue(f) && c && t && p.disabled === void 0 && f.disabled && (f.disabled = !1);
471
- }, [t, p.disabled, c]);
472
- V(l, [l]);
473
- const h = a.useCallback((f = {}) => {
474
- const {
475
- onClick: d,
476
- onMouseDown: Y,
477
- onKeyUp: z,
478
- onKeyDown: J,
479
- onPointerDown: Z,
480
- ...Q
481
- } = f;
482
- return $({
483
- type: r ? "button" : void 0,
484
- onClick(i) {
485
- if (t) {
486
- i.preventDefault();
487
- return;
488
- }
489
- d?.(i);
490
- },
491
- onMouseDown(i) {
492
- t || Y?.(i);
493
- },
494
- onKeyDown(i) {
495
- if (t || (D(i), J?.(i)), i.baseUIHandlerPrevented)
496
- return;
497
- const X = i.target === i.currentTarget && !r && !u() && !t, S = i.key === "Enter", ee = i.key === " ";
498
- X && ((ee || S) && i.preventDefault(), S && d?.(i));
499
- },
500
- onKeyUp(i) {
501
- t || (D(i), z?.(i)), !i.baseUIHandlerPrevented && i.target === i.currentTarget && !r && !t && i.key === " " && d?.(i);
502
- },
503
- onPointerDown(i) {
504
- if (t) {
505
- i.preventDefault();
506
- return;
507
- }
508
- Z?.(i);
509
- }
510
- }, r ? void 0 : {
511
- role: "button"
512
- }, p, Q);
513
- }, [t, p, r, u]), E = k((f) => {
514
- o.current = f, l();
515
- });
516
- return {
517
- getButtonProps: h,
518
- buttonRef: E
519
- };
520
- }
521
- function Ue(e) {
522
- return te(e) && e.tagName === "BUTTON";
523
- }
524
- function Me(e) {
525
- const t = g(Te, e).current;
526
- return t.next = e, V(t.effect), t;
527
- }
528
- function Te(e) {
529
- const t = {
530
- current: e,
531
- next: e,
532
- effect: () => {
533
- t.current = t.next;
534
- }
535
- };
536
- return t;
537
- }
538
- function et(e) {
539
- const {
540
- enabled: t = !0,
541
- open: n,
542
- ref: s,
543
- onComplete: r
544
- } = e, o = Me(n), c = k(r), u = Se(s, n);
545
- a.useEffect(() => {
546
- t && u(() => {
547
- n === o.current && c();
548
- });
549
- }, [t, n, c, u, o]);
550
- }
551
- export {
552
- O as A,
553
- m as E,
554
- Ke as N,
555
- G as T,
556
- V as a,
557
- Se as b,
558
- k as c,
559
- Je as d,
560
- Pe as e,
561
- K as f,
562
- B as g,
563
- we as h,
564
- Qe as i,
565
- Le as j,
566
- Xe as k,
567
- et as l,
568
- g as m,
569
- qe as n,
570
- He as o,
571
- le as p,
572
- Me as q,
573
- Oe as r,
574
- je as s,
575
- $e as t,
576
- Ze as u,
577
- We as v,
578
- Ye as w,
579
- ze as x,
580
- Ge as y
581
- };
582
- //# sourceMappingURL=useOpenChangeComplete-RUbg6RBw.mjs.map