@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,216 +1,66 @@
1
- import { jsx as i, jsxs as F } from "react/jsx-runtime";
2
- import * as g from "react";
3
- import { createContext as $, useContext as D, useState as B, useRef as T, useEffect as w, forwardRef as G, useMemo as se } from "react";
4
- import { c as x, a as ce } from "../index-BmAFn37q.mjs";
5
- import { u as le, c as R } from "../index-DlIFg0Eu.mjs";
6
- import { c as de } from "../index-DFZozV_h.mjs";
7
- import { c as K, I as ue, R as fe } from "../index-DWlg8lkk.mjs";
8
- import { P as ve } from "../index-BZAtNKwE.mjs";
9
- import { P as C } from "../index-MSR-vgWR.mjs";
10
- import { u as be } from "../index-BlkdpEIe.mjs";
11
- import { u as me } from "../index-BRi38DTc.mjs";
12
- import { ArrowVerticalLeft as pe } from "@spark-ui/icons/ArrowVerticalLeft";
13
- import { ArrowVerticalRight as he } from "@spark-ui/icons/ArrowVerticalRight";
14
- import { B as W } from "../Button-D32Avk2j.mjs";
15
- import { I } from "../Icon-D1RueiPY.mjs";
16
- import { useMergeRefs as O } from "@spark-ui/hooks/use-merge-refs";
17
- import { MoreMenuHorizontal as ge } from "@spark-ui/icons/MoreMenuHorizontal";
18
- import { I as Te } from "../IconButton-BY3gYXtU.mjs";
19
- import { Popover as y } from "../popover/index.mjs";
20
- import { makeVariants as xe } from "@spark-ui/internal-utils";
21
- var z = "Tabs", [we] = de(z, [
22
- K
23
- ]), j = K(), [ye, L] = we(z), q = g.forwardRef(
24
- (e, r) => {
25
- const {
26
- __scopeTabs: c,
27
- value: a,
28
- onValueChange: o,
29
- defaultValue: s,
30
- orientation: n = "horizontal",
31
- dir: d,
32
- activationMode: t = "automatic",
33
- ...v
34
- } = e, u = be(d), [l, f] = le({
35
- prop: a,
36
- onChange: o,
37
- defaultProp: s ?? "",
38
- caller: z
39
- });
40
- return /* @__PURE__ */ i(
41
- ye,
42
- {
43
- scope: c,
44
- baseId: me(),
45
- value: l,
46
- onValueChange: f,
47
- orientation: n,
48
- dir: u,
49
- activationMode: t,
50
- children: /* @__PURE__ */ i(
51
- C.div,
52
- {
53
- dir: u,
54
- "data-orientation": n,
55
- ...v,
56
- ref: r
57
- }
58
- )
59
- }
60
- );
61
- }
62
- );
63
- q.displayName = z;
64
- var H = "TabsList", J = g.forwardRef(
65
- (e, r) => {
66
- const { __scopeTabs: c, loop: a = !0, ...o } = e, s = L(H, c), n = j(c);
67
- return /* @__PURE__ */ i(
68
- fe,
69
- {
70
- asChild: !0,
71
- ...n,
72
- orientation: s.orientation,
73
- dir: s.dir,
74
- loop: a,
75
- children: /* @__PURE__ */ i(
76
- C.div,
77
- {
78
- role: "tablist",
79
- "aria-orientation": s.orientation,
80
- ...o,
81
- ref: r
82
- }
83
- )
84
- }
85
- );
86
- }
87
- );
88
- J.displayName = H;
89
- var Q = "TabsTrigger", U = g.forwardRef(
90
- (e, r) => {
91
- const { __scopeTabs: c, value: a, disabled: o = !1, ...s } = e, n = L(Q, c), d = j(c), t = Z(n.baseId, a), v = ee(n.baseId, a), u = a === n.value;
92
- return /* @__PURE__ */ i(
93
- ue,
94
- {
95
- asChild: !0,
96
- ...d,
97
- focusable: !o,
98
- active: u,
99
- children: /* @__PURE__ */ i(
100
- C.button,
101
- {
102
- type: "button",
103
- role: "tab",
104
- "aria-selected": u,
105
- "aria-controls": v,
106
- "data-state": u ? "active" : "inactive",
107
- "data-disabled": o ? "" : void 0,
108
- disabled: o,
109
- id: t,
110
- ...s,
111
- ref: r,
112
- onMouseDown: R(e.onMouseDown, (l) => {
113
- !o && l.button === 0 && l.ctrlKey === !1 ? n.onValueChange(a) : l.preventDefault();
114
- }),
115
- onKeyDown: R(e.onKeyDown, (l) => {
116
- [" ", "Enter"].includes(l.key) && n.onValueChange(a);
117
- }),
118
- onFocus: R(e.onFocus, () => {
119
- const l = n.activationMode !== "manual";
120
- !u && !o && l && n.onValueChange(a);
121
- })
122
- }
123
- )
124
- }
125
- );
126
- }
127
- );
128
- U.displayName = Q;
129
- var X = "TabsContent", Y = g.forwardRef(
130
- (e, r) => {
131
- const { __scopeTabs: c, value: a, forceMount: o, children: s, ...n } = e, d = L(X, c), t = Z(d.baseId, a), v = ee(d.baseId, a), u = a === d.value, l = g.useRef(u);
132
- return g.useEffect(() => {
133
- const f = requestAnimationFrame(() => l.current = !1);
134
- return () => cancelAnimationFrame(f);
135
- }, []), /* @__PURE__ */ i(ve, { present: o || u, children: ({ present: f }) => /* @__PURE__ */ i(
136
- C.div,
137
- {
138
- "data-state": u ? "active" : "inactive",
139
- "data-orientation": d.orientation,
140
- role: "tabpanel",
141
- "aria-labelledby": t,
142
- hidden: !f,
143
- id: v,
144
- tabIndex: 0,
145
- ...n,
146
- ref: r,
147
- style: {
148
- ...e.style,
149
- animationDuration: l.current ? "0s" : void 0
150
- },
151
- children: f && s
152
- }
153
- ) });
154
- }
155
- );
156
- Y.displayName = X;
157
- function Z(e, r) {
158
- return `${e}-trigger-${r}`;
159
- }
160
- function ee(e, r) {
161
- return `${e}-content-${r}`;
162
- }
163
- var Ce = q, ze = J, Ne = U, Pe = Y;
164
- const te = $({}), M = () => {
165
- const e = D(te);
166
- if (!e)
1
+ import { jsx as n, jsxs as I } from "react/jsx-runtime";
2
+ import { Tabs as T } from "radix-ui";
3
+ import { createContext as E, useContext as A, useState as B, useRef as p, useEffect as g, forwardRef as O, useMemo as G } from "react";
4
+ import { cva as x, cx as J } from "class-variance-authority";
5
+ import { ArrowVerticalLeft as Q } from "@spark-ui/icons/ArrowVerticalLeft";
6
+ import { ArrowVerticalRight as U } from "@spark-ui/icons/ArrowVerticalRight";
7
+ import { B as M } from "../Button-C3C0aixy.mjs";
8
+ import { I as N } from "../Icon-Ck-dhfLd.mjs";
9
+ import { useMergeRefs as j } from "@spark-ui/hooks/use-merge-refs";
10
+ import { MoreMenuHorizontal as X } from "@spark-ui/icons/MoreMenuHorizontal";
11
+ import { I as Y } from "../IconButton-C62-axzv.mjs";
12
+ import { Popover as w } from "../popover/index.mjs";
13
+ import { makeVariants as Z } from "@spark-ui/internal-utils";
14
+ const D = E({}), L = () => {
15
+ const t = A(D);
16
+ if (!t)
167
17
  throw Error("useTabsContext must be used within a TabsContext Provider");
168
- return e;
169
- }, Re = x([
18
+ return t;
19
+ }, _ = x([
170
20
  "flex",
171
21
  "data-[orientation=horizontal]:flex-col",
172
22
  "data-[orientation=vertical]:flex-row",
173
23
  "max-w-full"
174
- ]), re = ({
175
- intent: e = "basic",
24
+ ]), F = ({
25
+ intent: t = "basic",
176
26
  size: r = "md",
177
27
  /**
178
28
  * Default Radix Primitive values
179
29
  * see https://www.radix-ui.com/docs/primitives/components/tabs#root
180
30
  */
181
- asChild: c = !1,
31
+ asChild: s = !1,
182
32
  forceMount: a = !1,
183
33
  orientation: o = "horizontal",
184
- children: s,
185
- className: n,
186
- ref: d,
187
- ...t
188
- }) => /* @__PURE__ */ i(
189
- te.Provider,
34
+ children: i,
35
+ className: l,
36
+ ref: c,
37
+ ...e
38
+ }) => /* @__PURE__ */ n(
39
+ D.Provider,
190
40
  {
191
41
  value: {
192
- intent: e,
42
+ intent: t,
193
43
  size: r,
194
44
  orientation: o,
195
45
  forceMount: a
196
46
  },
197
- children: /* @__PURE__ */ i(
198
- Ce,
47
+ children: /* @__PURE__ */ n(
48
+ T.Root,
199
49
  {
200
- ref: d,
201
- asChild: c,
50
+ ref: c,
51
+ asChild: s,
202
52
  orientation: o,
203
- className: Re({ className: n }),
53
+ className: _({ className: l }),
204
54
  "data-spark-component": "tabs",
205
55
  activationMode: "automatic",
206
- ...t,
207
- children: s
56
+ ...e,
57
+ children: i
208
58
  }
209
59
  )
210
60
  }
211
61
  );
212
- re.displayName = "Tabs";
213
- const Ie = x(["w-full p-lg", "focus-visible:u-outline-inset"], {
62
+ F.displayName = "Tabs";
63
+ const ee = x(["w-full p-lg", "focus-visible:u-outline-inset"], {
214
64
  variants: {
215
65
  forceMount: {
216
66
  true: "data-[state=inactive]:hidden",
@@ -222,28 +72,28 @@ const Ie = x(["w-full p-lg", "focus-visible:u-outline-inset"], {
222
72
  * Default Radix Primitive values
223
73
  * see https://www.radix-ui.com/docs/primitives/components/tabs#content
224
74
  */
225
- children: e,
75
+ children: t,
226
76
  asChild: r = !1,
227
- className: c,
77
+ className: s,
228
78
  ref: a,
229
79
  ...o
230
80
  }) => {
231
- const { forceMount: s } = M();
232
- return /* @__PURE__ */ i(
233
- Pe,
81
+ const { forceMount: i } = L();
82
+ return /* @__PURE__ */ n(
83
+ T.Content,
234
84
  {
235
85
  "data-spark-component": "tabs-content",
236
86
  ref: a,
237
- forceMount: s || o.forceMount,
238
- className: Ie({ className: c, forceMount: s }),
87
+ forceMount: i || o.forceMount,
88
+ className: ee({ className: s, forceMount: i }),
239
89
  asChild: r,
240
90
  ...o,
241
- children: e
91
+ children: t
242
92
  }
243
93
  );
244
94
  };
245
95
  k.displayName = "Tabs.Content";
246
- const Se = x(["relative flex"]), Le = x([
96
+ const te = x(["relative flex"]), re = x([
247
97
  "flex w-full",
248
98
  "data-[orientation=horizontal]:flex-row",
249
99
  "data-[orientation=vertical]:flex-col",
@@ -251,173 +101,173 @@ const Se = x(["relative flex"]), Le = x([
251
101
  "after:flex after:shrink after:grow after:border-outline",
252
102
  "data-[orientation=horizontal]:after:border-b-sm",
253
103
  "data-[orientation=vertical]:after:border-r-sm"
254
- ]), _ = x([
104
+ ]), V = x([
255
105
  "h-auto! flex-none",
256
106
  "border-b-sm border-outline",
257
107
  "outline-hidden",
258
108
  "focus-visible:border-none focus-visible:bg-surface-hovered focus-visible:u-outline-inset!"
259
- ]), Me = (e, r) => {
260
- const [c, a] = B({ width: void 0, height: void 0 }), o = T(null), s = T(r);
261
- return w(() => {
262
- s.current = r;
263
- }, [r]), w(() => {
264
- const n = e && "current" in e ? e.current : e;
265
- if (!(!n || o.current))
266
- return o.current = new ResizeObserver(([d]) => {
267
- const { inlineSize: t, blockSize: v } = d?.borderBoxSize?.[0] ?? {};
268
- s.current?.(d), a({ width: t, height: v });
269
- }), o.current.observe(n), () => {
270
- o.current && o.current.unobserve(n);
109
+ ]), oe = (t, r) => {
110
+ const [s, a] = B({ width: void 0, height: void 0 }), o = p(null), i = p(r);
111
+ return g(() => {
112
+ i.current = r;
113
+ }, [r]), g(() => {
114
+ const l = t && "current" in t ? t.current : t;
115
+ if (!(!l || o.current))
116
+ return o.current = new ResizeObserver(([c]) => {
117
+ const { inlineSize: e, blockSize: m } = c?.borderBoxSize?.[0] ?? {};
118
+ i.current?.(c), a({ width: e, height: m });
119
+ }), o.current.observe(l), () => {
120
+ o.current && o.current.unobserve(l);
271
121
  };
272
- }, [e, o, s]), c;
273
- }, A = ({
122
+ }, [t, o, i]), s;
123
+ }, R = ({
274
124
  /**
275
125
  * Default Radix Primitive values
276
126
  * see https://www.radix-ui.com/docs/primitives/components/tabs#list
277
127
  */
278
- asChild: e = !1,
128
+ asChild: t = !1,
279
129
  loop: r = !1,
280
- children: c,
130
+ children: s,
281
131
  className: a,
282
132
  ref: o,
283
- ...s
133
+ ...i
284
134
  }) => {
285
- const n = T(null), d = T(null), t = o || d, { orientation: v } = M(), { width: u } = Me(n), [l, f] = B({
135
+ const l = p(null), c = p(null), e = o || c, { orientation: m } = L(), { width: z } = oe(l), [d, h] = B({
286
136
  prev: "hidden",
287
137
  next: "hidden"
288
138
  });
289
- w(() => {
290
- typeof t == "function" || !t.current || f(v !== "horizontal" ? { prev: "hidden", next: "hidden" } : {
291
- prev: t.current.scrollWidth > t.current.clientWidth ? "visible" : "hidden",
292
- next: t.current.scrollWidth > t.current.clientWidth ? "visible" : "hidden"
139
+ g(() => {
140
+ typeof e == "function" || !e.current || h(m !== "horizontal" ? { prev: "hidden", next: "hidden" } : {
141
+ prev: e.current.scrollWidth > e.current.clientWidth ? "visible" : "hidden",
142
+ next: e.current.scrollWidth > e.current.clientWidth ? "visible" : "hidden"
293
143
  });
294
- }, [v, t, u]), w(() => {
295
- if (typeof t == "function" || !t.current || l.prev === "hidden" || r)
144
+ }, [m, e, z]), g(() => {
145
+ if (typeof e == "function" || !e.current || d.prev === "hidden" || r)
296
146
  return;
297
- const m = (b) => {
298
- f({
299
- prev: b.scrollLeft > 0 ? "visible" : "disabled",
300
- next: b.scrollLeft + b.clientWidth < b.scrollWidth ? "visible" : "disabled"
147
+ const f = (u) => {
148
+ h({
149
+ prev: u.scrollLeft > 0 ? "visible" : "disabled",
150
+ next: u.scrollLeft + u.clientWidth < u.scrollWidth ? "visible" : "disabled"
301
151
  });
302
- }, h = t.current;
303
- return m(h), h.addEventListener(
152
+ }, v = e.current;
153
+ return f(v), v.addEventListener(
304
154
  "scroll",
305
- ({ target: b }) => m(b)
306
- ), () => h.removeEventListener(
155
+ ({ target: u }) => f(u)
156
+ ), () => v.removeEventListener(
307
157
  "scroll",
308
- ({ target: b }) => m(b)
158
+ ({ target: u }) => f(u)
309
159
  );
310
- }, [t, l.prev, r]);
311
- const N = () => {
312
- if (typeof t == "function" || !t.current)
160
+ }, [e, d.prev, r]);
161
+ const y = () => {
162
+ if (typeof e == "function" || !e.current)
313
163
  return;
314
- const m = r && t.current.scrollLeft <= 0;
315
- t.current.scrollTo({
316
- left: m ? t.current.scrollLeft + t.current.scrollWidth - t.current.clientWidth : t.current.scrollLeft - t.current.clientWidth,
164
+ const f = r && e.current.scrollLeft <= 0;
165
+ e.current.scrollTo({
166
+ left: f ? e.current.scrollLeft + e.current.scrollWidth - e.current.clientWidth : e.current.scrollLeft - e.current.clientWidth,
317
167
  behavior: "smooth"
318
168
  });
319
- }, P = () => {
320
- if (typeof t == "function" || !t.current)
169
+ }, C = () => {
170
+ if (typeof e == "function" || !e.current)
321
171
  return;
322
- const m = r && t.current.scrollLeft + t.current.clientWidth >= t.current.scrollWidth;
323
- t.current.scrollTo({
324
- left: m ? 0 : t.current.scrollLeft + t.current.clientWidth,
172
+ const f = r && e.current.scrollLeft + e.current.clientWidth >= e.current.scrollWidth;
173
+ e.current.scrollTo({
174
+ left: f ? 0 : e.current.scrollLeft + e.current.clientWidth,
325
175
  behavior: "smooth"
326
176
  });
327
177
  };
328
- return /* @__PURE__ */ F("div", { className: Se({ className: a }), ref: n, children: [
329
- l.prev !== "hidden" && /* @__PURE__ */ i(
330
- W,
178
+ return /* @__PURE__ */ I("div", { className: te({ className: a }), ref: l, children: [
179
+ d.prev !== "hidden" && /* @__PURE__ */ n(
180
+ M,
331
181
  {
332
182
  shape: "square",
333
183
  intent: "surface",
334
184
  size: "sm",
335
- className: _(),
336
- onClick: N,
337
- disabled: l.prev === "disabled",
185
+ className: V(),
186
+ onClick: y,
187
+ disabled: d.prev === "disabled",
338
188
  "aria-label": "Scroll left",
339
- children: /* @__PURE__ */ i(I, { children: /* @__PURE__ */ i(pe, {}) })
189
+ children: /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n(Q, {}) })
340
190
  }
341
191
  ),
342
- /* @__PURE__ */ i(
343
- ze,
192
+ /* @__PURE__ */ n(
193
+ T.List,
344
194
  {
345
195
  "data-spark-component": "tabs-list",
346
- ref: t,
347
- className: Le(),
348
- asChild: e,
196
+ ref: e,
197
+ className: re(),
198
+ asChild: t,
349
199
  loop: r,
350
- ...s,
351
- children: c
200
+ ...i,
201
+ children: s
352
202
  }
353
203
  ),
354
- l.next !== "hidden" && /* @__PURE__ */ i(
355
- W,
204
+ d.next !== "hidden" && /* @__PURE__ */ n(
205
+ M,
356
206
  {
357
207
  shape: "square",
358
208
  intent: "surface",
359
209
  size: "sm",
360
- className: _(),
361
- onClick: P,
362
- disabled: l.next === "disabled",
210
+ className: V(),
211
+ onClick: C,
212
+ disabled: d.next === "disabled",
363
213
  "aria-label": "Scroll right",
364
- children: /* @__PURE__ */ i(I, { children: /* @__PURE__ */ i(he, {}) })
214
+ children: /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n(U, {}) })
365
215
  }
366
216
  )
367
217
  ] });
368
218
  };
369
- A.displayName = "Tabs.List";
370
- const S = $(void 0), oe = () => {
371
- const e = D(S);
372
- if (!e)
219
+ R.displayName = "Tabs.List";
220
+ const P = E(void 0), K = () => {
221
+ const t = A(P);
222
+ if (!t)
373
223
  throw new Error("TabsPopover components must be used within TabsPopover");
374
- return e;
375
- }, ae = G(
376
- ({ "aria-label": e, children: r, ...c }, a) => {
377
- const { popoverTriggerRef: o } = oe(), s = O(a, o);
378
- return /* @__PURE__ */ i(y.Trigger, { asChild: !0, ...c, children: /* @__PURE__ */ i(
379
- Te,
224
+ return t;
225
+ }, $ = O(
226
+ ({ "aria-label": t, children: r, ...s }, a) => {
227
+ const { popoverTriggerRef: o } = K(), i = j(a, o);
228
+ return /* @__PURE__ */ n(w.Trigger, { asChild: !0, ...s, children: /* @__PURE__ */ n(
229
+ Y,
380
230
  {
381
- ref: s,
231
+ ref: i,
382
232
  size: "sm",
383
233
  intent: "surfaceInverse",
384
234
  design: "ghost",
385
- "aria-label": e,
235
+ "aria-label": t,
386
236
  tabIndex: -1,
387
- children: /* @__PURE__ */ i(I, { children: r || /* @__PURE__ */ i(ge, {}) })
237
+ children: /* @__PURE__ */ n(N, { children: r || /* @__PURE__ */ n(X, {}) })
388
238
  }
389
239
  ) });
390
240
  }
391
241
  );
392
- ae.displayName = "Popover.Trigger";
393
- const ne = G(
394
- ({ side: e, align: r = "start", className: c, ...a }, o) => {
395
- const { popoverSide: s } = oe(), n = ce("gap-sm flex flex-col", c);
396
- return /* @__PURE__ */ i(
397
- y.Content,
242
+ $.displayName = "Popover.Trigger";
243
+ const q = O(
244
+ ({ side: t, align: r = "start", className: s, ...a }, o) => {
245
+ const { popoverSide: i } = K(), l = J("gap-sm flex flex-col", s);
246
+ return /* @__PURE__ */ n(
247
+ w.Content,
398
248
  {
399
249
  ref: o,
400
250
  ...a,
401
- side: e ?? s,
251
+ side: t ?? i,
402
252
  align: r,
403
- className: n
253
+ className: l
404
254
  }
405
255
  );
406
256
  }
407
257
  );
408
- ne.displayName = "Popover.Content";
409
- const ie = ({ popoverSide: e, popoverTriggerRef: r, children: c }) => {
410
- const a = se(
411
- () => ({ popoverSide: e, popoverTriggerRef: r }),
412
- [e, r]
413
- ), s = Object.assign(((n) => /* @__PURE__ */ i(S.Provider, { value: a, children: /* @__PURE__ */ i(y, { ...n, children: n.children }) })), y, {
414
- Content: ne,
415
- Trigger: ae
258
+ q.displayName = "Popover.Content";
259
+ const H = ({ popoverSide: t, popoverTriggerRef: r, children: s }) => {
260
+ const a = G(
261
+ () => ({ popoverSide: t, popoverTriggerRef: r }),
262
+ [t, r]
263
+ ), i = Object.assign(((l) => /* @__PURE__ */ n(P.Provider, { value: a, children: /* @__PURE__ */ n(w, { ...l, children: l.children }) })), w, {
264
+ Content: q,
265
+ Trigger: $
416
266
  });
417
- return /* @__PURE__ */ i(S.Provider, { value: a, children: c(s) });
267
+ return /* @__PURE__ */ n(P.Provider, { value: a, children: s(i) });
418
268
  };
419
- ie.displayName = "Popover";
420
- const ke = x(
269
+ H.displayName = "Popover";
270
+ const ne = x(
421
271
  [
422
272
  "px-md",
423
273
  "relative flex flex-none items-center",
@@ -439,7 +289,7 @@ const ke = x(
439
289
  * Change the color scheme of the tabs
440
290
  * @default basic
441
291
  */
442
- intent: xe({
292
+ intent: Z({
443
293
  main: ["data-[state=active]:text-main data-[state=active]:after:bg-main"],
444
294
  support: ["data-[state=active]:text-support data-[state=active]:after:bg-support"],
445
295
  basic: ["data-[state=active]:text-basic data-[state=active]:after:bg-basic"]
@@ -475,65 +325,65 @@ const ke = x(
475
325
  orientation: "horizontal"
476
326
  }
477
327
  }
478
- ), V = ({
328
+ ), W = ({
479
329
  /**
480
330
  * Default Radix Primitive values
481
331
  * see https://www.radix-ui.com/docs/primitives/components/tabs#trigger
482
332
  */
483
- asChild: e = !1,
333
+ asChild: t = !1,
484
334
  value: r,
485
- disabled: c = !1,
335
+ disabled: s = !1,
486
336
  children: a,
487
337
  className: o,
488
- ref: s,
489
- onKeyDown: n,
490
- renderMenu: d,
491
- ...t
338
+ ref: i,
339
+ onKeyDown: l,
340
+ renderMenu: c,
341
+ ...e
492
342
  }) => {
493
- const { intent: v, size: u, orientation: l } = M(), f = T(null), N = T(null), P = O(s, N), m = (p) => {
494
- p.key === "F10" && p.shiftKey && d && f.current && (p.preventDefault(), f.current.click()), n?.(p);
495
- }, h = !!d, b = l === "vertical" ? "right" : "bottom", E = /* @__PURE__ */ i(
496
- Ne,
343
+ const { intent: m, size: z, orientation: d } = L(), h = p(null), y = p(null), C = j(i, y), f = (b) => {
344
+ b.key === "F10" && b.shiftKey && c && h.current && (b.preventDefault(), h.current.click()), l?.(b);
345
+ }, v = !!c, u = d === "vertical" ? "right" : "bottom", S = /* @__PURE__ */ n(
346
+ T.Trigger,
497
347
  {
498
348
  "data-spark-component": "tabs-trigger",
499
- ref: P,
500
- className: ke({
501
- intent: v,
502
- size: u,
503
- hasMenu: h,
504
- orientation: l ?? "horizontal",
349
+ ref: C,
350
+ className: ne({
351
+ intent: m,
352
+ size: z,
353
+ hasMenu: v,
354
+ orientation: d ?? "horizontal",
505
355
  className: o
506
356
  }),
507
- asChild: e,
508
- disabled: c,
357
+ asChild: t,
358
+ disabled: s,
509
359
  value: r,
510
- onFocus: ({ target: p }) => p.scrollIntoView({
360
+ onFocus: ({ target: b }) => b.scrollIntoView({
511
361
  behavior: "smooth",
512
362
  block: "nearest",
513
363
  inline: "nearest"
514
364
  }),
515
- onKeyDown: m,
516
- "aria-haspopup": h ? "true" : void 0,
517
- ...t,
365
+ onKeyDown: f,
366
+ "aria-haspopup": v ? "true" : void 0,
367
+ ...e,
518
368
  children: a
519
369
  }
520
370
  );
521
- return h ? /* @__PURE__ */ F("div", { className: l === "vertical" ? "relative w-full" : "relative", children: [
522
- E,
523
- /* @__PURE__ */ i("div", { className: "right-md mr-md pointer-events-auto absolute top-1/2 -translate-y-1/2", children: /* @__PURE__ */ i(ie, { popoverSide: b, popoverTriggerRef: f, children: (p) => d?.({ Popover: p }) }) })
524
- ] }) : E;
371
+ return v ? /* @__PURE__ */ I("div", { className: d === "vertical" ? "relative w-full" : "relative", children: [
372
+ S,
373
+ /* @__PURE__ */ n("div", { className: "right-md mr-md pointer-events-auto absolute top-1/2 -translate-y-1/2", children: /* @__PURE__ */ n(H, { popoverSide: u, popoverTriggerRef: h, children: (b) => c?.({ Popover: b }) }) })
374
+ ] }) : S;
525
375
  };
526
- V.displayName = "Tabs.Trigger";
527
- const Ae = Object.assign(re, {
528
- List: A,
529
- Trigger: V,
376
+ W.displayName = "Tabs.Trigger";
377
+ const ie = Object.assign(F, {
378
+ List: R,
379
+ Trigger: W,
530
380
  Content: k
531
381
  });
532
- Ae.displayName = "Tabs";
533
- A.displayName = "Tabs.List";
534
- V.displayName = "Tabs.Trigger";
382
+ ie.displayName = "Tabs";
383
+ R.displayName = "Tabs.List";
384
+ W.displayName = "Tabs.Trigger";
535
385
  k.displayName = "Tabs.Content";
536
386
  export {
537
- Ae as Tabs
387
+ ie as Tabs
538
388
  };
539
389
  //# sourceMappingURL=index.mjs.map