@spark-ui/components 13.1.2 → 13.1.4

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 (826) hide show
  1. package/dist/Input-N8AWWSmt.d.mts +41 -0
  2. package/dist/Input-N8AWWSmt.d.ts +41 -0
  3. package/dist/InputTrailingIcon-BBp7sE6D.d.mts +20 -0
  4. package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +20 -0
  5. package/dist/LabelRequiredIndicator-DRnCzHMU.d.mts +19 -0
  6. package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +19 -0
  7. package/dist/accordion/index.d.mts +73 -0
  8. package/dist/accordion/index.d.ts +68 -10
  9. package/dist/accordion/index.js +325 -2
  10. package/dist/accordion/index.js.map +1 -1
  11. package/dist/accordion/index.mjs +154 -632
  12. package/dist/accordion/index.mjs.map +1 -1
  13. package/dist/alert-dialog/index.d.mts +159 -0
  14. package/dist/alert-dialog/index.d.ts +147 -26
  15. package/dist/alert-dialog/index.js +405 -35
  16. package/dist/alert-dialog/index.js.map +1 -1
  17. package/dist/alert-dialog/index.mjs +258 -2513
  18. package/dist/alert-dialog/index.mjs.map +1 -1
  19. package/dist/avatar/index.d.mts +66 -0
  20. package/dist/avatar/index.d.ts +59 -8
  21. package/dist/avatar/index.js +1323 -2
  22. package/dist/avatar/index.js.map +1 -1
  23. package/dist/avatar/index.mjs +207 -149
  24. package/dist/avatar/index.mjs.map +1 -1
  25. package/dist/badge/index.d.mts +47 -0
  26. package/dist/badge/index.d.ts +47 -1
  27. package/dist/badge/index.js +122 -2
  28. package/dist/badge/index.js.map +1 -1
  29. package/dist/badge/index.mjs +44 -32
  30. package/dist/badge/index.mjs.map +1 -1
  31. package/dist/breadcrumb/index.d.mts +64 -0
  32. package/dist/breadcrumb/index.d.ts +59 -7
  33. package/dist/breadcrumb/index.js +327 -2
  34. package/dist/breadcrumb/index.js.map +1 -1
  35. package/dist/breadcrumb/index.mjs +146 -106
  36. package/dist/breadcrumb/index.mjs.map +1 -1
  37. package/dist/button/index.d.mts +41 -0
  38. package/dist/button/index.d.ts +41 -1
  39. package/dist/button/index.js +935 -2
  40. package/dist/button/index.js.map +1 -1
  41. package/dist/button/index.mjs +8 -3
  42. package/dist/button/index.mjs.map +1 -1
  43. package/dist/card/index.d.mts +61 -0
  44. package/dist/card/index.d.ts +58 -5
  45. package/dist/card/index.js +502 -2
  46. package/dist/card/index.js.map +1 -1
  47. package/dist/card/index.mjs +178 -125
  48. package/dist/card/index.mjs.map +1 -1
  49. package/dist/carousel/{types.d.ts → index.d.mts} +112 -13
  50. package/dist/carousel/index.d.ts +263 -18
  51. package/dist/carousel/index.js +1882 -2
  52. package/dist/carousel/index.js.map +1 -1
  53. package/dist/carousel/index.mjs +650 -428
  54. package/dist/carousel/index.mjs.map +1 -1
  55. package/dist/checkbox/index.d.mts +120 -0
  56. package/dist/checkbox/index.d.ts +120 -2
  57. package/dist/checkbox/index.js +511 -2
  58. package/dist/checkbox/index.js.map +1 -1
  59. package/dist/checkbox/index.mjs +226 -371
  60. package/dist/checkbox/index.mjs.map +1 -1
  61. package/dist/chip/index.d.mts +97 -0
  62. package/dist/chip/index.d.ts +92 -10
  63. package/dist/chip/index.js +908 -2
  64. package/dist/chip/index.js.map +1 -1
  65. package/dist/chip/index.mjs +322 -390
  66. package/dist/chip/index.mjs.map +1 -1
  67. package/dist/{Button-D32Avk2j.mjs → chunk-2YM6GKWW.mjs} +173 -130
  68. package/dist/chunk-2YM6GKWW.mjs.map +1 -0
  69. package/dist/chunk-6QCEPQ3U.mjs +26 -0
  70. package/dist/chunk-6QCEPQ3U.mjs.map +1 -0
  71. package/dist/chunk-7EWSMIZU.mjs +214 -0
  72. package/dist/chunk-7EWSMIZU.mjs.map +1 -0
  73. package/dist/chunk-DCXWGQVZ.mjs +53 -0
  74. package/dist/chunk-DCXWGQVZ.mjs.map +1 -0
  75. package/dist/{Spinner-CYL5kyzM.mjs → chunk-GAK4SC2F.mjs} +40 -29
  76. package/dist/chunk-GAK4SC2F.mjs.map +1 -0
  77. package/dist/chunk-GPJMLIHC.mjs +308 -0
  78. package/dist/chunk-GPJMLIHC.mjs.map +1 -0
  79. package/dist/chunk-HLXYG643.mjs +52 -0
  80. package/dist/chunk-HLXYG643.mjs.map +1 -0
  81. package/dist/chunk-KEGAAGJW.mjs +36 -0
  82. package/dist/chunk-KEGAAGJW.mjs.map +1 -0
  83. package/dist/{TextLink-3MEVs3No.mjs → chunk-RKPP7ZOK.mjs} +36 -27
  84. package/dist/chunk-RKPP7ZOK.mjs.map +1 -0
  85. package/dist/chunk-UMUMFMFB.mjs +68 -0
  86. package/dist/chunk-UMUMFMFB.mjs.map +1 -0
  87. package/dist/chunk-VBX7BTNU.mjs +614 -0
  88. package/dist/chunk-VBX7BTNU.mjs.map +1 -0
  89. package/dist/{DialogContent.styles-WGWJS9dj.mjs → chunk-XZ47F6TP.mjs} +8 -6
  90. package/dist/chunk-XZ47F6TP.mjs.map +1 -0
  91. package/dist/collapsible/index.d.mts +43 -0
  92. package/dist/collapsible/index.d.ts +40 -4
  93. package/dist/collapsible/index.js +109 -2
  94. package/dist/collapsible/index.js.map +1 -1
  95. package/dist/collapsible/index.mjs +58 -214
  96. package/dist/collapsible/index.mjs.map +1 -1
  97. package/dist/combobox/index.d.mts +287 -0
  98. package/dist/combobox/index.d.ts +271 -19
  99. package/dist/combobox/index.js +2588 -2
  100. package/dist/combobox/index.js.map +1 -1
  101. package/dist/combobox/index.mjs +1017 -623
  102. package/dist/combobox/index.mjs.map +1 -1
  103. package/dist/dialog/index.d.mts +166 -0
  104. package/dist/dialog/index.d.ts +154 -25
  105. package/dist/dialog/index.js +1389 -2
  106. package/dist/dialog/index.js.map +1 -1
  107. package/dist/dialog/index.mjs +258 -163
  108. package/dist/dialog/index.mjs.map +1 -1
  109. package/dist/divider/index.d.mts +61 -0
  110. package/dist/divider/index.d.ts +59 -4
  111. package/dist/divider/index.js +224 -2
  112. package/dist/divider/index.js.map +1 -1
  113. package/dist/divider/index.mjs +100 -97
  114. package/dist/divider/index.mjs.map +1 -1
  115. package/dist/drawer/index.d.mts +152 -0
  116. package/dist/drawer/index.d.ts +141 -24
  117. package/dist/drawer/index.js +1400 -2
  118. package/dist/drawer/index.js.map +1 -1
  119. package/dist/drawer/index.mjs +230 -141
  120. package/dist/drawer/index.mjs.map +1 -1
  121. package/dist/dropdown/index.d.mts +233 -0
  122. package/dist/dropdown/index.d.ts +220 -16
  123. package/dist/dropdown/index.js +2051 -2
  124. package/dist/dropdown/index.js.map +1 -1
  125. package/dist/dropdown/index.mjs +584 -352
  126. package/dist/dropdown/index.mjs.map +1 -1
  127. package/dist/file-upload/index.d.mts +270 -0
  128. package/dist/file-upload/index.d.ts +262 -14
  129. package/dist/file-upload/index.js +2255 -2
  130. package/dist/file-upload/index.js.map +1 -1
  131. package/dist/file-upload/index.mjs +834 -506
  132. package/dist/file-upload/index.mjs.map +1 -1
  133. package/dist/form-field/index.d.mts +186 -0
  134. package/dist/form-field/index.d.ts +176 -21
  135. package/dist/form-field/index.js +553 -2
  136. package/dist/form-field/index.js.map +1 -1
  137. package/dist/form-field/index.mjs +349 -246
  138. package/dist/form-field/index.mjs.map +1 -1
  139. package/dist/icon/index.d.mts +28 -0
  140. package/dist/icon/index.d.ts +28 -1
  141. package/dist/icon/index.js +127 -2
  142. package/dist/icon/index.js.map +1 -1
  143. package/dist/icon/index.mjs +7 -3
  144. package/dist/icon/index.mjs.map +1 -1
  145. package/dist/icon-button/index.d.mts +16 -0
  146. package/dist/icon-button/index.d.ts +16 -1
  147. package/dist/icon-button/index.js +980 -2
  148. package/dist/icon-button/index.js.map +1 -1
  149. package/dist/icon-button/index.mjs +9 -3
  150. package/dist/icon-button/index.mjs.map +1 -1
  151. package/dist/index-Cno_GFuW.d.mts +93 -0
  152. package/dist/index-Cno_GFuW.d.ts +93 -0
  153. package/dist/input/index.d.mts +78 -0
  154. package/dist/input/index.d.ts +72 -15
  155. package/dist/input/index.js +724 -2
  156. package/dist/input/index.js.map +1 -1
  157. package/dist/input/index.mjs +12 -453
  158. package/dist/input/index.mjs.map +1 -1
  159. package/dist/input-otp/{InputOTP.d.ts → index.d.mts} +50 -3
  160. package/dist/input-otp/index.d.ts +128 -10
  161. package/dist/input-otp/index.js +668 -2
  162. package/dist/input-otp/index.js.map +1 -1
  163. package/dist/input-otp/index.mjs +463 -294
  164. package/dist/input-otp/index.mjs.map +1 -1
  165. package/dist/kbd/index.d.mts +9 -0
  166. package/dist/kbd/index.d.ts +9 -1
  167. package/dist/kbd/index.js +47 -2
  168. package/dist/kbd/index.js.map +1 -1
  169. package/dist/kbd/index.mjs +18 -15
  170. package/dist/kbd/index.mjs.map +1 -1
  171. package/dist/label/index.d.mts +11 -0
  172. package/dist/label/index.d.ts +9 -5
  173. package/dist/label/index.js +78 -2
  174. package/dist/label/index.js.map +1 -1
  175. package/dist/label/index.mjs +5 -3
  176. package/dist/label/index.mjs.map +1 -1
  177. package/dist/link-box/index.d.mts +34 -0
  178. package/dist/link-box/index.d.ts +31 -6
  179. package/dist/link-box/index.js +92 -2
  180. package/dist/link-box/index.js.map +1 -1
  181. package/dist/link-box/index.mjs +56 -34
  182. package/dist/link-box/index.mjs.map +1 -1
  183. package/dist/pagination/index.d.mts +143 -0
  184. package/dist/pagination/index.d.ts +135 -10
  185. package/dist/pagination/index.js +1353 -2
  186. package/dist/pagination/index.js.map +1 -1
  187. package/dist/pagination/index.mjs +268 -893
  188. package/dist/pagination/index.mjs.map +1 -1
  189. package/dist/popover/index.d.mts +6 -0
  190. package/dist/popover/index.d.ts +6 -17
  191. package/dist/popover/index.js +1339 -2
  192. package/dist/popover/index.js.map +1 -1
  193. package/dist/popover/index.mjs +11 -1868
  194. package/dist/popover/index.mjs.map +1 -1
  195. package/dist/portal/{Portal.d.ts → index.d.mts} +5 -2
  196. package/dist/portal/index.d.ts +13 -1
  197. package/dist/portal/index.js +37 -2
  198. package/dist/portal/index.js.map +1 -1
  199. package/dist/portal/index.mjs +8 -5
  200. package/dist/portal/index.mjs.map +1 -1
  201. package/dist/progress/index.d.mts +52 -0
  202. package/dist/progress/index.d.ts +48 -9
  203. package/dist/progress/index.js +239 -6
  204. package/dist/progress/index.js.map +1 -1
  205. package/dist/progress/index.mjs +5 -241
  206. package/dist/progress/index.mjs.map +1 -1
  207. package/dist/progress-tracker/index.d.mts +80 -0
  208. package/dist/progress-tracker/index.d.ts +80 -10
  209. package/dist/progress-tracker/index.js +571 -2
  210. package/dist/progress-tracker/index.js.map +1 -1
  211. package/dist/progress-tracker/index.mjs +183 -115
  212. package/dist/progress-tracker/index.mjs.map +1 -1
  213. package/dist/radio-group/index.d.mts +100 -0
  214. package/dist/radio-group/index.d.ts +98 -5
  215. package/dist/radio-group/index.js +318 -2
  216. package/dist/radio-group/index.js.map +1 -1
  217. package/dist/radio-group/index.mjs +174 -332
  218. package/dist/radio-group/index.mjs.map +1 -1
  219. package/dist/rating/index.d.mts +78 -0
  220. package/dist/rating/index.d.ts +78 -1
  221. package/dist/rating/index.js +363 -2
  222. package/dist/rating/index.js.map +1 -1
  223. package/dist/rating/index.mjs +170 -125
  224. package/dist/rating/index.mjs.map +1 -1
  225. package/dist/scrolling-list/index.d.mts +118 -0
  226. package/dist/scrolling-list/index.d.ts +117 -14
  227. package/dist/scrolling-list/index.js +1428 -2
  228. package/dist/scrolling-list/index.js.map +1 -1
  229. package/dist/scrolling-list/index.mjs +325 -358
  230. package/dist/scrolling-list/index.mjs.map +1 -1
  231. package/dist/segmented-gauge/{SegmentedGauge.d.ts → index.d.mts} +43 -4
  232. package/dist/segmented-gauge/index.d.ts +101 -9
  233. package/dist/segmented-gauge/index.js +274 -2
  234. package/dist/segmented-gauge/index.js.map +1 -1
  235. package/dist/segmented-gauge/index.mjs +178 -132
  236. package/dist/segmented-gauge/index.mjs.map +1 -1
  237. package/dist/select/index.d.mts +167 -0
  238. package/dist/select/index.d.ts +158 -12
  239. package/dist/select/index.js +581 -2
  240. package/dist/select/index.js.map +1 -1
  241. package/dist/select/index.mjs +339 -207
  242. package/dist/select/index.mjs.map +1 -1
  243. package/dist/skeleton/index.d.mts +67 -0
  244. package/dist/skeleton/index.d.ts +67 -8
  245. package/dist/skeleton/index.js +206 -2
  246. package/dist/skeleton/index.js.map +1 -1
  247. package/dist/skeleton/index.mjs +96 -64
  248. package/dist/skeleton/index.mjs.map +1 -1
  249. package/dist/slider/index.d.mts +97 -0
  250. package/dist/slider/index.d.ts +97 -8
  251. package/dist/slider/index.js +220 -2
  252. package/dist/slider/index.js.map +1 -1
  253. package/dist/slider/index.mjs +107 -490
  254. package/dist/slider/index.mjs.map +1 -1
  255. package/dist/slot/index.d.mts +16 -0
  256. package/dist/slot/index.d.ts +16 -1
  257. package/dist/slot/index.js +51 -2
  258. package/dist/slot/index.js.map +1 -1
  259. package/dist/slot/index.mjs +9 -5
  260. package/dist/slot/index.mjs.map +1 -1
  261. package/dist/snackbar/index.d.mts +158 -0
  262. package/dist/snackbar/index.d.ts +158 -13
  263. package/dist/snackbar/index.js +1756 -2
  264. package/dist/snackbar/index.js.map +1 -1
  265. package/dist/snackbar/index.mjs +429 -1153
  266. package/dist/snackbar/index.mjs.map +1 -1
  267. package/dist/spinner/index.d.mts +21 -0
  268. package/dist/spinner/index.d.ts +21 -1
  269. package/dist/spinner/index.js +139 -2
  270. package/dist/spinner/index.js.map +1 -1
  271. package/dist/spinner/index.mjs +7 -3
  272. package/dist/spinner/index.mjs.map +1 -1
  273. package/dist/stepper/index.d.mts +81 -0
  274. package/dist/stepper/index.d.ts +81 -9
  275. package/dist/stepper/index.js +1847 -8
  276. package/dist/stepper/index.js.map +1 -1
  277. package/dist/stepper/index.mjs +197 -2325
  278. package/dist/stepper/index.mjs.map +1 -1
  279. package/dist/switch/{SwitchInput.d.ts → index.d.mts} +17 -4
  280. package/dist/switch/index.d.ts +64 -1
  281. package/dist/switch/index.js +327 -2
  282. package/dist/switch/index.js.map +1 -1
  283. package/dist/switch/index.mjs +130 -213
  284. package/dist/switch/index.mjs.map +1 -1
  285. package/dist/tabs/index.d.mts +137 -0
  286. package/dist/tabs/index.d.ts +137 -13
  287. package/dist/tabs/index.js +1830 -2
  288. package/dist/tabs/index.js.map +1 -1
  289. package/dist/tabs/index.mjs +350 -374
  290. package/dist/tabs/index.mjs.map +1 -1
  291. package/dist/tag/index.d.mts +29 -0
  292. package/dist/tag/index.d.ts +29 -1
  293. package/dist/tag/index.js +283 -2
  294. package/dist/tag/index.js.map +1 -1
  295. package/dist/tag/index.mjs +90 -66
  296. package/dist/tag/index.mjs.map +1 -1
  297. package/dist/text-link/index.d.mts +20 -0
  298. package/dist/text-link/index.d.ts +20 -1
  299. package/dist/text-link/index.js +100 -2
  300. package/dist/text-link/index.js.map +1 -1
  301. package/dist/text-link/index.mjs +6 -3
  302. package/dist/text-link/index.mjs.map +1 -1
  303. package/dist/textarea/index.d.mts +57 -0
  304. package/dist/textarea/index.d.ts +53 -10
  305. package/dist/textarea/index.js +797 -2
  306. package/dist/textarea/index.js.map +1 -1
  307. package/dist/textarea/index.mjs +83 -50
  308. package/dist/textarea/index.mjs.map +1 -1
  309. package/dist/toast/index.d.mts +63 -0
  310. package/dist/toast/index.d.ts +53 -10
  311. package/dist/toast/index.js +1454 -2
  312. package/dist/toast/index.js.map +1 -1
  313. package/dist/toast/index.mjs +208 -1016
  314. package/dist/toast/index.mjs.map +1 -1
  315. package/dist/visually-hidden/index.d.mts +16 -0
  316. package/dist/visually-hidden/index.d.ts +16 -1
  317. package/dist/visually-hidden/index.js +67 -2
  318. package/dist/visually-hidden/index.js.map +1 -1
  319. package/dist/visually-hidden/index.mjs +6 -3
  320. package/dist/visually-hidden/index.mjs.map +1 -1
  321. package/package.json +8 -7
  322. package/dist/Button-C3xHNaGl.js +0 -2
  323. package/dist/Button-C3xHNaGl.js.map +0 -1
  324. package/dist/Button-D32Avk2j.mjs.map +0 -1
  325. package/dist/DialogContent.styles-BrhKaHc_.js +0 -2
  326. package/dist/DialogContent.styles-BrhKaHc_.js.map +0 -1
  327. package/dist/DialogContent.styles-WGWJS9dj.mjs.map +0 -1
  328. package/dist/Icon-Bf0XrmiR.js +0 -2
  329. package/dist/Icon-Bf0XrmiR.js.map +0 -1
  330. package/dist/Icon-D1RueiPY.mjs +0 -58
  331. package/dist/Icon-D1RueiPY.mjs.map +0 -1
  332. package/dist/IconButton-BY3gYXtU.mjs +0 -43
  333. package/dist/IconButton-BY3gYXtU.mjs.map +0 -1
  334. package/dist/IconButton-Bf-EDzpI.js +0 -2
  335. package/dist/IconButton-Bf-EDzpI.js.map +0 -1
  336. package/dist/Slot-C98rL4yy.mjs +0 -14
  337. package/dist/Slot-C98rL4yy.mjs.map +0 -1
  338. package/dist/Slot-ghrohQLA.js +0 -2
  339. package/dist/Slot-ghrohQLA.js.map +0 -1
  340. package/dist/Spinner-CYL5kyzM.mjs.map +0 -1
  341. package/dist/Spinner-DK8VEsaR.js +0 -2
  342. package/dist/Spinner-DK8VEsaR.js.map +0 -1
  343. package/dist/TextLink-3MEVs3No.mjs.map +0 -1
  344. package/dist/TextLink-DD0VO37q.js +0 -2
  345. package/dist/TextLink-DD0VO37q.js.map +0 -1
  346. package/dist/VisuallyHidden-AoRh4WRK.js +0 -2
  347. package/dist/VisuallyHidden-AoRh4WRK.js.map +0 -1
  348. package/dist/VisuallyHidden-ByNP7ZUI.mjs +0 -28
  349. package/dist/VisuallyHidden-ByNP7ZUI.mjs.map +0 -1
  350. package/dist/accordion/Accordion.d.ts +0 -27
  351. package/dist/accordion/AccordionItem.d.ts +0 -12
  352. package/dist/accordion/AccordionItemContent.d.ts +0 -12
  353. package/dist/accordion/AccordionItemHeader.d.ts +0 -9
  354. package/dist/accordion/AccordionItemTrigger.d.ts +0 -12
  355. package/dist/accordion/useRenderSlot.d.ts +0 -3
  356. package/dist/alert-dialog/AlertDialog.d.ts +0 -29
  357. package/dist/alert-dialog/AlertDialogAction.d.ts +0 -13
  358. package/dist/alert-dialog/AlertDialogBody.d.ts +0 -12
  359. package/dist/alert-dialog/AlertDialogCancel.d.ts +0 -13
  360. package/dist/alert-dialog/AlertDialogContent.d.ts +0 -9
  361. package/dist/alert-dialog/AlertDialogContext.d.ts +0 -12
  362. package/dist/alert-dialog/AlertDialogDescription.d.ts +0 -9
  363. package/dist/alert-dialog/AlertDialogFooter.d.ts +0 -10
  364. package/dist/alert-dialog/AlertDialogHeader.d.ts +0 -10
  365. package/dist/alert-dialog/AlertDialogOverlay.d.ts +0 -9
  366. package/dist/alert-dialog/AlertDialogPortal.d.ts +0 -7
  367. package/dist/alert-dialog/AlertDialogTitle.d.ts +0 -9
  368. package/dist/alert-dialog/AlertDialogTrigger.d.ts +0 -13
  369. package/dist/alert-dialog/useRenderSlot.d.ts +0 -3
  370. package/dist/avatar/Avatar.d.ts +0 -3
  371. package/dist/avatar/AvatarAction.d.ts +0 -9
  372. package/dist/avatar/AvatarImage.d.ts +0 -7
  373. package/dist/avatar/AvatarOnlineBadge.d.ts +0 -9
  374. package/dist/avatar/AvatarPlaceholder.d.ts +0 -8
  375. package/dist/avatar/AvatarUser.d.ts +0 -7
  376. package/dist/avatar/context.d.ts +0 -5
  377. package/dist/avatar/types.d.ts +0 -24
  378. package/dist/badge/Badge.d.ts +0 -9
  379. package/dist/badge/BadgeItem.d.ts +0 -31
  380. package/dist/badge/BadgeItem.styles.d.ts +0 -7
  381. package/dist/breadcrumb/Breadcrumb.d.ts +0 -10
  382. package/dist/breadcrumb/Breadcrumb.styles.d.ts +0 -0
  383. package/dist/breadcrumb/BreadcrumbCurrentPage.d.ts +0 -11
  384. package/dist/breadcrumb/BreadcrumbItem.d.ts +0 -9
  385. package/dist/breadcrumb/BreadcrumbLink.d.ts +0 -12
  386. package/dist/breadcrumb/BreadcrumbSeparator.d.ts +0 -10
  387. package/dist/button/Button.d.ts +0 -26
  388. package/dist/button/Button.styles.d.ts +0 -10
  389. package/dist/button/variants/contrast.d.ts +0 -45
  390. package/dist/button/variants/filled.d.ts +0 -45
  391. package/dist/button/variants/ghost.d.ts +0 -45
  392. package/dist/button/variants/index.d.ts +0 -5
  393. package/dist/button/variants/outlined.d.ts +0 -45
  394. package/dist/button/variants/tinted.d.ts +0 -45
  395. package/dist/card/Backdrop.d.ts +0 -14
  396. package/dist/card/Card.d.ts +0 -16
  397. package/dist/card/Card.styles.d.ts +0 -7
  398. package/dist/card/Content.d.ts +0 -15
  399. package/dist/card/Content.styles.d.ts +0 -8
  400. package/dist/card/context.d.ts +0 -11
  401. package/dist/card/utils.d.ts +0 -3
  402. package/dist/carousel/Carousel.d.ts +0 -12
  403. package/dist/carousel/CarouselControls.d.ts +0 -9
  404. package/dist/carousel/CarouselNextButton.d.ts +0 -5
  405. package/dist/carousel/CarouselPageIndicator.d.ts +0 -14
  406. package/dist/carousel/CarouselPagePicker.d.ts +0 -14
  407. package/dist/carousel/CarouselPrevButton.d.ts +0 -5
  408. package/dist/carousel/CarouselSlide.d.ts +0 -12
  409. package/dist/carousel/CarouselSlides.d.ts +0 -10
  410. package/dist/carousel/CarouselViewport.d.ts +0 -9
  411. package/dist/carousel/useCarousel.d.ts +0 -2
  412. package/dist/carousel/useCarouselVisibility.d.ts +0 -13
  413. package/dist/carousel/useEvent.d.ts +0 -7
  414. package/dist/carousel/useIsMounted.d.ts +0 -1
  415. package/dist/carousel/useIsVisible.d.ts +0 -6
  416. package/dist/carousel/useResizeObserver.d.ts +0 -2
  417. package/dist/carousel/useScrollEnd.d.ts +0 -3
  418. package/dist/carousel/useSnapPoints.d.ts +0 -10
  419. package/dist/carousel/utils.d.ts +0 -24
  420. package/dist/checkbox/Checkbox.d.ts +0 -10
  421. package/dist/checkbox/CheckboxGroup.d.ts +0 -18
  422. package/dist/checkbox/CheckboxGroup.styles.d.ts +0 -5
  423. package/dist/checkbox/CheckboxGroupContext.d.ts +0 -41
  424. package/dist/checkbox/CheckboxIndicator.d.ts +0 -9
  425. package/dist/checkbox/CheckboxInput.d.ts +0 -47
  426. package/dist/checkbox/CheckboxInput.styles.d.ts +0 -5
  427. package/dist/checkbox/CheckboxLabel.d.ts +0 -12
  428. package/dist/checkbox/CheckboxLabel.styles.d.ts +0 -5
  429. package/dist/chip/Chip.d.ts +0 -34
  430. package/dist/chip/Chip.styles.d.ts +0 -8
  431. package/dist/chip/ChipClearButton.d.ts +0 -10
  432. package/dist/chip/ChipClearButton.styles.d.ts +0 -10
  433. package/dist/chip/ChipContent.d.ts +0 -8
  434. package/dist/chip/ChipIcon.d.ts +0 -8
  435. package/dist/chip/ChipLeadingIcon.d.ts +0 -9
  436. package/dist/chip/ChipTrailingIcon.d.ts +0 -9
  437. package/dist/chip/useChipContext.d.ts +0 -4
  438. package/dist/chip/useChipElement.d.ts +0 -41
  439. package/dist/chip/variants/dashed.d.ts +0 -49
  440. package/dist/chip/variants/index.d.ts +0 -3
  441. package/dist/chip/variants/outlined.d.ts +0 -49
  442. package/dist/chip/variants/tinted.d.ts +0 -49
  443. package/dist/collapsible/Content.d.ts +0 -12
  444. package/dist/collapsible/Root.d.ts +0 -12
  445. package/dist/collapsible/Trigger.d.ts +0 -11
  446. package/dist/collapsible/useRenderSlot.d.ts +0 -3
  447. package/dist/combobox/Combobox.d.ts +0 -6
  448. package/dist/combobox/ComboboxClearButton.d.ts +0 -9
  449. package/dist/combobox/ComboboxContext.d.ts +0 -108
  450. package/dist/combobox/ComboboxDisclosure.d.ts +0 -13
  451. package/dist/combobox/ComboboxEmpty.d.ts +0 -11
  452. package/dist/combobox/ComboboxGroup.d.ts +0 -11
  453. package/dist/combobox/ComboboxInput.d.ts +0 -15
  454. package/dist/combobox/ComboboxItem.d.ts +0 -12
  455. package/dist/combobox/ComboboxItemContext.d.ts +0 -17
  456. package/dist/combobox/ComboboxItemIndicator.d.ts +0 -11
  457. package/dist/combobox/ComboboxItemText.d.ts +0 -10
  458. package/dist/combobox/ComboboxItems.d.ts +0 -11
  459. package/dist/combobox/ComboboxItemsGroupContext.d.ts +0 -8
  460. package/dist/combobox/ComboboxLabel.d.ts +0 -11
  461. package/dist/combobox/ComboboxLeadingIcon.d.ts +0 -7
  462. package/dist/combobox/ComboboxPopover.d.ts +0 -10
  463. package/dist/combobox/ComboboxPortal.d.ts +0 -2
  464. package/dist/combobox/ComboboxSelectedItems.d.ts +0 -4
  465. package/dist/combobox/ComboboxTrigger.d.ts +0 -11
  466. package/dist/combobox/ComboboxTrigger.styles.d.ts +0 -6
  467. package/dist/combobox/tests/test-utils.d.ts +0 -8
  468. package/dist/combobox/types.d.ts +0 -8
  469. package/dist/combobox/useCombobox/multipleSelectionReducer.d.ts +0 -13
  470. package/dist/combobox/useCombobox/singleSelectionReducer.d.ts +0 -8
  471. package/dist/combobox/utils/index.d.ts +0 -14
  472. package/dist/combobox/utils/useWidthIncreaseCallback.d.ts +0 -2
  473. package/dist/composite-Br3kM5N9.mjs +0 -40
  474. package/dist/composite-Br3kM5N9.mjs.map +0 -1
  475. package/dist/composite-fJD9R7R0.js +0 -2
  476. package/dist/composite-fJD9R7R0.js.map +0 -1
  477. package/dist/detectBrowser-Bc7rk5fI.mjs +0 -44
  478. package/dist/detectBrowser-Bc7rk5fI.mjs.map +0 -1
  479. package/dist/detectBrowser-DTbs_30X.js +0 -2
  480. package/dist/detectBrowser-DTbs_30X.js.map +0 -1
  481. package/dist/dialog/Dialog.d.ts +0 -32
  482. package/dist/dialog/DialogBody.d.ts +0 -12
  483. package/dist/dialog/DialogClose.d.ts +0 -9
  484. package/dist/dialog/DialogCloseButton.d.ts +0 -9
  485. package/dist/dialog/DialogContent.d.ts +0 -14
  486. package/dist/dialog/DialogContent.styles.d.ts +0 -6
  487. package/dist/dialog/DialogContext.d.ts +0 -11
  488. package/dist/dialog/DialogDescription.d.ts +0 -9
  489. package/dist/dialog/DialogFooter.d.ts +0 -10
  490. package/dist/dialog/DialogHeader.d.ts +0 -10
  491. package/dist/dialog/DialogOverlay.d.ts +0 -9
  492. package/dist/dialog/DialogPortal.d.ts +0 -7
  493. package/dist/dialog/DialogTitle.d.ts +0 -9
  494. package/dist/dialog/DialogTrigger.d.ts +0 -17
  495. package/dist/divider/Divider.d.ts +0 -30
  496. package/dist/divider/Divider.styles.d.ts +0 -9
  497. package/dist/divider/DividerContent.d.ts +0 -13
  498. package/dist/divider/variants/intents.d.ts +0 -17
  499. package/dist/downshift.esm-Ncwetv0s.mjs +0 -3038
  500. package/dist/downshift.esm-Ncwetv0s.mjs.map +0 -1
  501. package/dist/downshift.esm-PfCOUbxq.js +0 -37
  502. package/dist/downshift.esm-PfCOUbxq.js.map +0 -1
  503. package/dist/drawer/Drawer.d.ts +0 -39
  504. package/dist/drawer/DrawerBody.d.ts +0 -11
  505. package/dist/drawer/DrawerBody.styles.d.ts +0 -5
  506. package/dist/drawer/DrawerClose.d.ts +0 -9
  507. package/dist/drawer/DrawerCloseButton.d.ts +0 -7
  508. package/dist/drawer/DrawerContent.d.ts +0 -10
  509. package/dist/drawer/DrawerContent.styles.d.ts +0 -6
  510. package/dist/drawer/DrawerContext.d.ts +0 -9
  511. package/dist/drawer/DrawerDescription.d.ts +0 -9
  512. package/dist/drawer/DrawerFooter.d.ts +0 -8
  513. package/dist/drawer/DrawerHeader.d.ts +0 -10
  514. package/dist/drawer/DrawerOverlay.d.ts +0 -9
  515. package/dist/drawer/DrawerPortal.d.ts +0 -7
  516. package/dist/drawer/DrawerTitle.d.ts +0 -9
  517. package/dist/drawer/DrawerTrigger.d.ts +0 -13
  518. package/dist/dropdown/Dropdown.d.ts +0 -6
  519. package/dist/dropdown/DropdownContext.d.ts +0 -81
  520. package/dist/dropdown/DropdownDivider.d.ts +0 -10
  521. package/dist/dropdown/DropdownGroup.d.ts +0 -11
  522. package/dist/dropdown/DropdownItem.d.ts +0 -12
  523. package/dist/dropdown/DropdownItemContext.d.ts +0 -17
  524. package/dist/dropdown/DropdownItemIndicator.d.ts +0 -11
  525. package/dist/dropdown/DropdownItemText.d.ts +0 -9
  526. package/dist/dropdown/DropdownItems.d.ts +0 -21
  527. package/dist/dropdown/DropdownItemsGroupContext.d.ts +0 -8
  528. package/dist/dropdown/DropdownLabel.d.ts +0 -11
  529. package/dist/dropdown/DropdownLeadingIcon.d.ts +0 -7
  530. package/dist/dropdown/DropdownPopover.d.ts +0 -6
  531. package/dist/dropdown/DropdownPortal.d.ts +0 -2
  532. package/dist/dropdown/DropdownTrigger.d.ts +0 -12
  533. package/dist/dropdown/DropdownTrigger.styles.d.ts +0 -5
  534. package/dist/dropdown/DropdownValue.d.ts +0 -11
  535. package/dist/dropdown/types.d.ts +0 -8
  536. package/dist/dropdown/useDropdown.d.ts +0 -41
  537. package/dist/dropdown/utils.d.ts +0 -13
  538. package/dist/file-upload/FileUpload.d.ts +0 -130
  539. package/dist/file-upload/FileUploadAcceptedFile.d.ts +0 -25
  540. package/dist/file-upload/FileUploadContext.d.ts +0 -17
  541. package/dist/file-upload/FileUploadDropzone.d.ts +0 -10
  542. package/dist/file-upload/FileUploadItemDeleteTrigger.d.ts +0 -11
  543. package/dist/file-upload/FileUploadPreviewImage.d.ts +0 -17
  544. package/dist/file-upload/FileUploadRejectedFile.d.ts +0 -24
  545. package/dist/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +0 -12
  546. package/dist/file-upload/FileUploadTrigger.d.ts +0 -12
  547. package/dist/file-upload/constants.d.ts +0 -29
  548. package/dist/file-upload/test-utils.d.ts +0 -9
  549. package/dist/file-upload/useFileUploadState.d.ts +0 -88
  550. package/dist/file-upload/utils.d.ts +0 -40
  551. package/dist/floating-ui.utils.dom-CCN4I08l.js +0 -2
  552. package/dist/floating-ui.utils.dom-CCN4I08l.js.map +0 -1
  553. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs +0 -136
  554. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs.map +0 -1
  555. package/dist/form-field/FormField.d.ts +0 -21
  556. package/dist/form-field/FormFieldAlertMessage.d.ts +0 -9
  557. package/dist/form-field/FormFieldCharactersCount.d.ts +0 -26
  558. package/dist/form-field/FormFieldContext.d.ts +0 -49
  559. package/dist/form-field/FormFieldControl.d.ts +0 -12
  560. package/dist/form-field/FormFieldErrorMessage.d.ts +0 -9
  561. package/dist/form-field/FormFieldHelperMessage.d.ts +0 -9
  562. package/dist/form-field/FormFieldLabel.d.ts +0 -13
  563. package/dist/form-field/FormFieldMessage.d.ts +0 -8
  564. package/dist/form-field/FormFieldProvider.d.ts +0 -9
  565. package/dist/form-field/FormFieldRequiredIndicator.d.ts +0 -9
  566. package/dist/form-field/FormFieldStateMessage.d.ts +0 -10
  567. package/dist/form-field/FormFieldSuccessMessage.d.ts +0 -9
  568. package/dist/icon/Icon.d.ts +0 -17
  569. package/dist/icon/Icon.styles.d.ts +0 -6
  570. package/dist/icon-button/IconButton.d.ts +0 -10
  571. package/dist/icon-button/IconButton.styles.d.ts +0 -5
  572. package/dist/index-0KYGKeVg.js +0 -2
  573. package/dist/index-0KYGKeVg.js.map +0 -1
  574. package/dist/index-1WIgmEZh.js +0 -2
  575. package/dist/index-1WIgmEZh.js.map +0 -1
  576. package/dist/index-BRi38DTc.mjs +0 -21
  577. package/dist/index-BRi38DTc.mjs.map +0 -1
  578. package/dist/index-BZAtNKwE.mjs +0 -71
  579. package/dist/index-BZAtNKwE.mjs.map +0 -1
  580. package/dist/index-BZPx6jYI.mjs +0 -9
  581. package/dist/index-BZPx6jYI.mjs.map +0 -1
  582. package/dist/index-BlkdpEIe.mjs +0 -55
  583. package/dist/index-BlkdpEIe.mjs.map +0 -1
  584. package/dist/index-BmAFn37q.mjs +0 -49
  585. package/dist/index-BmAFn37q.mjs.map +0 -1
  586. package/dist/index-C-J_tHdS.js +0 -6
  587. package/dist/index-C-J_tHdS.js.map +0 -1
  588. package/dist/index-C1qb0595.mjs +0 -28
  589. package/dist/index-C1qb0595.mjs.map +0 -1
  590. package/dist/index-C34GgsKQ.mjs +0 -54
  591. package/dist/index-C34GgsKQ.mjs.map +0 -1
  592. package/dist/index-CCKe-Mpx.mjs +0 -7
  593. package/dist/index-CCKe-Mpx.mjs.map +0 -1
  594. package/dist/index-CDBBjNXc.js +0 -2
  595. package/dist/index-CDBBjNXc.js.map +0 -1
  596. package/dist/index-CYjGhVvU.mjs +0 -243
  597. package/dist/index-CYjGhVvU.mjs.map +0 -1
  598. package/dist/index-ChLwd62c.js +0 -2
  599. package/dist/index-ChLwd62c.js.map +0 -1
  600. package/dist/index-Cjj_rUPu.js +0 -2
  601. package/dist/index-Cjj_rUPu.js.map +0 -1
  602. package/dist/index-CyMbLkj0.js +0 -2
  603. package/dist/index-CyMbLkj0.js.map +0 -1
  604. package/dist/index-DFZozV_h.mjs +0 -69
  605. package/dist/index-DFZozV_h.mjs.map +0 -1
  606. package/dist/index-DKuHkHFX.js +0 -2
  607. package/dist/index-DKuHkHFX.js.map +0 -1
  608. package/dist/index-DLHLIYPI.mjs +0 -16
  609. package/dist/index-DLHLIYPI.mjs.map +0 -1
  610. package/dist/index-DO-atGp-.js +0 -2
  611. package/dist/index-DO-atGp-.js.map +0 -1
  612. package/dist/index-DWlg8lkk.mjs +0 -179
  613. package/dist/index-DWlg8lkk.mjs.map +0 -1
  614. package/dist/index-DYxWvftI.js +0 -2
  615. package/dist/index-DYxWvftI.js.map +0 -1
  616. package/dist/index-D_lWkK39.mjs +0 -803
  617. package/dist/index-D_lWkK39.mjs.map +0 -1
  618. package/dist/index-DdkVj7D0.js +0 -18
  619. package/dist/index-DdkVj7D0.js.map +0 -1
  620. package/dist/index-De-6atSi.js +0 -2
  621. package/dist/index-De-6atSi.js.map +0 -1
  622. package/dist/index-DhGWNzsz.mjs +0 -83
  623. package/dist/index-DhGWNzsz.mjs.map +0 -1
  624. package/dist/index-Dkj4QRX8.js +0 -2
  625. package/dist/index-Dkj4QRX8.js.map +0 -1
  626. package/dist/index-DlIFg0Eu.mjs +0 -60
  627. package/dist/index-DlIFg0Eu.mjs.map +0 -1
  628. package/dist/index-DnaHaH_0.js +0 -2
  629. package/dist/index-DnaHaH_0.js.map +0 -1
  630. package/dist/index-MHF2-CYX.js +0 -2
  631. package/dist/index-MHF2-CYX.js.map +0 -1
  632. package/dist/index-MQ0c3ZX_.js +0 -2
  633. package/dist/index-MQ0c3ZX_.js.map +0 -1
  634. package/dist/index-MSR-vgWR.mjs +0 -37
  635. package/dist/index-MSR-vgWR.mjs.map +0 -1
  636. package/dist/index-VL0YEmOW.mjs +0 -125
  637. package/dist/index-VL0YEmOW.mjs.map +0 -1
  638. package/dist/index-tXqxYME3.js +0 -42
  639. package/dist/index-tXqxYME3.js.map +0 -1
  640. package/dist/inertValue-Bif5Sqs6.mjs +0 -522
  641. package/dist/inertValue-Bif5Sqs6.mjs.map +0 -1
  642. package/dist/inertValue-ShwihJSN.js +0 -5
  643. package/dist/inertValue-ShwihJSN.js.map +0 -1
  644. package/dist/input/Input.d.ts +0 -14
  645. package/dist/input/Input.styles.d.ts +0 -11
  646. package/dist/input/InputAddon.d.ts +0 -9
  647. package/dist/input/InputAddon.styles.d.ts +0 -9
  648. package/dist/input/InputClearButton.d.ts +0 -12
  649. package/dist/input/InputGroup.d.ts +0 -17
  650. package/dist/input/InputGroup.styles.d.ts +0 -6
  651. package/dist/input/InputGroupContext.d.ts +0 -14
  652. package/dist/input/InputIcon.d.ts +0 -6
  653. package/dist/input/InputLeadingAddon.d.ts +0 -11
  654. package/dist/input/InputLeadingIcon.d.ts +0 -7
  655. package/dist/input/InputTrailingAddon.d.ts +0 -11
  656. package/dist/input/InputTrailingIcon.d.ts +0 -7
  657. package/dist/input-otp/InputOTP.styles.d.ts +0 -10
  658. package/dist/input-otp/InputOTPContext.d.ts +0 -16
  659. package/dist/input-otp/InputOTPGroup.d.ts +0 -7
  660. package/dist/input-otp/InputOTPSeparator.d.ts +0 -7
  661. package/dist/input-otp/InputOTPSlot.d.ts +0 -12
  662. package/dist/input-otp/useInputOTP.d.ts +0 -45
  663. package/dist/kbd/Kbd.d.ts +0 -5
  664. package/dist/label/Label.d.ts +0 -9
  665. package/dist/label/LabelRequiredIndicator.d.ts +0 -6
  666. package/dist/link-box/LinkBox.d.ts +0 -8
  667. package/dist/link-box/LinkBoxLink.d.ts +0 -8
  668. package/dist/link-box/LinkBoxRaised.d.ts +0 -9
  669. package/dist/pagination/Pagination.d.ts +0 -8
  670. package/dist/pagination/PaginationContext.d.ts +0 -43
  671. package/dist/pagination/PaginationEllipsis.d.ts +0 -9
  672. package/dist/pagination/PaginationFirstPageTrigger.d.ts +0 -16
  673. package/dist/pagination/PaginationItem.d.ts +0 -17
  674. package/dist/pagination/PaginationLastPageTrigger.d.ts +0 -16
  675. package/dist/pagination/PaginationNextTrigger.d.ts +0 -16
  676. package/dist/pagination/PaginationPages.d.ts +0 -16
  677. package/dist/pagination/PaginationPrevTrigger.d.ts +0 -16
  678. package/dist/pagination/utils.d.ts +0 -1
  679. package/dist/popover/Popover.d.ts +0 -9
  680. package/dist/popover/PopoverAnchor.d.ts +0 -9
  681. package/dist/popover/PopoverArrow.d.ts +0 -9
  682. package/dist/popover/PopoverCloseButton.d.ts +0 -10
  683. package/dist/popover/PopoverContent.d.ts +0 -10
  684. package/dist/popover/PopoverContent.styles.d.ts +0 -9
  685. package/dist/popover/PopoverContext.d.ts +0 -15
  686. package/dist/popover/PopoverHeader.d.ts +0 -10
  687. package/dist/popover/PopoverPortal.d.ts +0 -7
  688. package/dist/popover/PopoverTrigger.d.ts +0 -9
  689. package/dist/progress/Progress.d.ts +0 -16
  690. package/dist/progress/ProgressBar.d.ts +0 -6
  691. package/dist/progress/ProgressBar.styles.d.ts +0 -5
  692. package/dist/progress/ProgressContext.d.ts +0 -13
  693. package/dist/progress/ProgressIndicator.d.ts +0 -6
  694. package/dist/progress/ProgressIndicator.styles.d.ts +0 -7
  695. package/dist/progress/ProgressLabel.d.ts +0 -6
  696. package/dist/progress-tracker/ProgressTracker.d.ts +0 -27
  697. package/dist/progress-tracker/ProgressTracker.styles.d.ts +0 -1
  698. package/dist/progress-tracker/ProgressTrackerContext.d.ts +0 -15
  699. package/dist/progress-tracker/ProgressTrackerStep.d.ts +0 -12
  700. package/dist/progress-tracker/ProgressTrackerStep.styles.d.ts +0 -10
  701. package/dist/progress-tracker/ProgressTrackerStepIndicator.d.ts +0 -15
  702. package/dist/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +0 -7
  703. package/dist/progress-tracker/ProgressTrackerStepLabel.d.ts +0 -9
  704. package/dist/radio-group/Radio.d.ts +0 -9
  705. package/dist/radio-group/RadioGroup.d.ts +0 -54
  706. package/dist/radio-group/RadioGroup.styles.d.ts +0 -5
  707. package/dist/radio-group/RadioGroupContext.d.ts +0 -5
  708. package/dist/radio-group/RadioGroupProvider.d.ts +0 -7
  709. package/dist/radio-group/RadioIndicator.d.ts +0 -18
  710. package/dist/radio-group/RadioIndicator.styles.d.ts +0 -5
  711. package/dist/radio-group/RadioInput.d.ts +0 -25
  712. package/dist/radio-group/RadioInput.styles.d.ts +0 -5
  713. package/dist/radio-group/RadioLabel.d.ts +0 -20
  714. package/dist/radio-group/RadioLabel.styles.d.ts +0 -5
  715. package/dist/rating/Rating.d.ts +0 -52
  716. package/dist/rating/RatingStar.d.ts +0 -10
  717. package/dist/rating/RatingStar.styles.d.ts +0 -14
  718. package/dist/rating/types.d.ts +0 -1
  719. package/dist/rating/utils.d.ts +0 -8
  720. package/dist/scrolling-list/ScrollingList.d.ts +0 -57
  721. package/dist/scrolling-list/ScrollingListControls.d.ts +0 -18
  722. package/dist/scrolling-list/ScrollingListItem.d.ts +0 -17
  723. package/dist/scrolling-list/ScrollingListItems.d.ts +0 -11
  724. package/dist/scrolling-list/ScrollingListNextButton.d.ts +0 -5
  725. package/dist/scrolling-list/ScrollingListPrevButton.d.ts +0 -5
  726. package/dist/scrolling-list/ScrollingListSkipButton.d.ts +0 -9
  727. package/dist/scrolling-list/useFocusWithinScroll.d.ts +0 -3
  728. package/dist/segmented-gauge/SegmentedGaugeContext.d.ts +0 -14
  729. package/dist/segmented-gauge/SegmentedGaugeLabel.d.ts +0 -9
  730. package/dist/segmented-gauge/SegmentedGaugeSegment.d.ts +0 -12
  731. package/dist/segmented-gauge/SegmentedGaugeTrack.d.ts +0 -8
  732. package/dist/select/Select.d.ts +0 -6
  733. package/dist/select/SelectContext.d.ts +0 -59
  734. package/dist/select/SelectGroup.d.ts +0 -11
  735. package/dist/select/SelectItem.d.ts +0 -11
  736. package/dist/select/SelectItems.d.ts +0 -10
  737. package/dist/select/SelectItemsGroupContext.d.ts +0 -9
  738. package/dist/select/SelectLabel.d.ts +0 -8
  739. package/dist/select/SelectLeadingIcon.d.ts +0 -7
  740. package/dist/select/SelectPlaceholder.d.ts +0 -10
  741. package/dist/select/SelectTrigger.d.ts +0 -16
  742. package/dist/select/SelectTrigger.styles.d.ts +0 -5
  743. package/dist/select/SelectValue.d.ts +0 -15
  744. package/dist/select/types.d.ts +0 -6
  745. package/dist/select/utils.d.ts +0 -4
  746. package/dist/skeleton/Skeleton.d.ts +0 -17
  747. package/dist/skeleton/Skeleton.styles.d.ts +0 -5
  748. package/dist/skeleton/SkeletonItem.d.ts +0 -31
  749. package/dist/skeleton/SkeletonItem.styles.d.ts +0 -8
  750. package/dist/slider/Slider.d.ts +0 -55
  751. package/dist/slider/Slider.styles.d.ts +0 -1
  752. package/dist/slider/SliderContext.d.ts +0 -4
  753. package/dist/slider/SliderThumb.d.ts +0 -14
  754. package/dist/slider/SliderThumb.styles.d.ts +0 -5
  755. package/dist/slider/SliderTrack.d.ts +0 -14
  756. package/dist/slider/SliderTrack.styles.d.ts +0 -9
  757. package/dist/slot/Slot.d.ts +0 -12
  758. package/dist/snackbar/Snackbar.d.ts +0 -29
  759. package/dist/snackbar/SnackbarItem.d.ts +0 -49
  760. package/dist/snackbar/SnackbarItem.styles.d.ts +0 -10
  761. package/dist/snackbar/SnackbarItemAction.d.ts +0 -10
  762. package/dist/snackbar/SnackbarItemClose.d.ts +0 -9
  763. package/dist/snackbar/SnackbarItemContext.d.ts +0 -8
  764. package/dist/snackbar/SnackbarItemIcon.d.ts +0 -7
  765. package/dist/snackbar/SnackbarRegion.d.ts +0 -30
  766. package/dist/snackbar/SnackbarRegion.styles.d.ts +0 -5
  767. package/dist/snackbar/snackbarVariants.d.ts +0 -82
  768. package/dist/snackbar/useSnackbarGlobalStore.d.ts +0 -18
  769. package/dist/snackbar/useSwipe.d.ts +0 -15
  770. package/dist/spinner/Spinner.d.ts +0 -9
  771. package/dist/spinner/Spinner.styles.d.ts +0 -7
  772. package/dist/stepper/Stepper.d.ts +0 -9
  773. package/dist/stepper/StepperButton.d.ts +0 -14
  774. package/dist/stepper/StepperInput.d.ts +0 -7
  775. package/dist/stepper/types.d.ts +0 -46
  776. package/dist/stepper/useStepper.d.ts +0 -2
  777. package/dist/switch/Switch.d.ts +0 -6
  778. package/dist/switch/SwitchInput.styles.d.ts +0 -16
  779. package/dist/switch/SwitchLabel.d.ts +0 -17
  780. package/dist/switch/SwitchLabel.styles.d.ts +0 -5
  781. package/dist/tabs/Tabs.d.ts +0 -24
  782. package/dist/tabs/TabsContent.d.ts +0 -22
  783. package/dist/tabs/TabsContent.styles.d.ts +0 -3
  784. package/dist/tabs/TabsContext.d.ts +0 -7
  785. package/dist/tabs/TabsList.d.ts +0 -20
  786. package/dist/tabs/TabsList.styles.d.ts +0 -3
  787. package/dist/tabs/TabsPopover.d.ts +0 -29
  788. package/dist/tabs/TabsPopoverAbstraction.d.ts +0 -27
  789. package/dist/tabs/TabsRoot.styles.d.ts +0 -1
  790. package/dist/tabs/TabsTrigger.d.ts +0 -41
  791. package/dist/tabs/TabsTrigger.styles.d.ts +0 -8
  792. package/dist/tabs/useResizeObserver.d.ts +0 -8
  793. package/dist/tag/Tag.d.ts +0 -17
  794. package/dist/tag/Tag.styles.d.ts +0 -8
  795. package/dist/tag/variants/filled.d.ts +0 -41
  796. package/dist/tag/variants/index.d.ts +0 -3
  797. package/dist/tag/variants/outlined.d.ts +0 -37
  798. package/dist/tag/variants/tinted.d.ts +0 -37
  799. package/dist/text-link/TextLink.d.ts +0 -16
  800. package/dist/textarea/Textarea.d.ts +0 -14
  801. package/dist/textarea/TextareaClearButton.d.ts +0 -10
  802. package/dist/textarea/TextareaGroup.d.ts +0 -6
  803. package/dist/textarea/TextareaLeadingIcon.d.ts +0 -7
  804. package/dist/textarea/TextareaTrailingIcon.d.ts +0 -7
  805. package/dist/toast/Toast.d.ts +0 -4
  806. package/dist/toast/Toast.styles.d.ts +0 -10
  807. package/dist/toast/types.d.ts +0 -41
  808. package/dist/toast/useRenderSlot.d.ts +0 -3
  809. package/dist/toast/useToastManager.d.ts +0 -2
  810. package/dist/useCollapsiblePanel-D1dCo0lf.js +0 -4
  811. package/dist/useCollapsiblePanel-D1dCo0lf.js.map +0 -1
  812. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs +0 -287
  813. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs.map +0 -1
  814. package/dist/useFocusWithin-CFNEka2I.js +0 -2
  815. package/dist/useFocusWithin-CFNEka2I.js.map +0 -1
  816. package/dist/useFocusWithin-CoL4390f.mjs +0 -796
  817. package/dist/useFocusWithin-CoL4390f.mjs.map +0 -1
  818. package/dist/useOpenChangeComplete-Dk-u_f2y.js +0 -2
  819. package/dist/useOpenChangeComplete-Dk-u_f2y.js.map +0 -1
  820. package/dist/useOpenChangeComplete-RUbg6RBw.mjs +0 -582
  821. package/dist/useOpenChangeComplete-RUbg6RBw.mjs.map +0 -1
  822. package/dist/useTransitionStatus-CktVVKxz.mjs +0 -46
  823. package/dist/useTransitionStatus-CktVVKxz.mjs.map +0 -1
  824. package/dist/useTransitionStatus-CqbEyvIj.js +0 -2
  825. package/dist/useTransitionStatus-CqbEyvIj.js.map +0 -1
  826. package/dist/visually-hidden/VisuallyHidden.d.ts +0 -12
@@ -1,942 +1,317 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useMemo as Nt, useRef as E, useLayoutEffect as xt, useEffect as B, useState as gt, createContext as kt, useId as Ct, useContext as At } from "react";
3
- import { flushSync as J } from "react-dom";
4
- import { a as Lt } from "../index-BmAFn37q.mjs";
5
- import { ArrowDoubleLeft as Rt } from "@spark-ui/icons/ArrowDoubleLeft";
6
- import { I as U } from "../Icon-D1RueiPY.mjs";
7
- import { I as R } from "../IconButton-BY3gYXtU.mjs";
8
- import { B as ct } from "../Button-D32Avk2j.mjs";
9
- import { ArrowDoubleRight as wt } from "@spark-ui/icons/ArrowDoubleRight";
10
- import { ArrowVerticalRight as It } from "@spark-ui/icons/ArrowVerticalRight";
11
- import { ArrowVerticalLeft as _t } from "@spark-ui/icons/ArrowVerticalLeft";
12
- var V = (t, e = []) => ({
13
- parts: (...n) => {
14
- if ($t(e))
15
- return V(t, n);
16
- throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
17
- },
18
- extendWith: (...n) => V(t, [...e, ...n]),
19
- omit: (...n) => V(t, e.filter((a) => !n.includes(a))),
20
- rename: (n) => V(n, e),
21
- keys: () => e,
22
- build: () => [...new Set(e)].reduce(
23
- (n, a) => Object.assign(n, {
24
- [a]: {
25
- selector: [
26
- `&[data-scope="${$(t)}"][data-part="${$(a)}"]`,
27
- `& [data-scope="${$(t)}"][data-part="${$(a)}"]`
28
- ].join(", "),
29
- attrs: { "data-scope": $(t), "data-part": $(a) }
30
- }
31
- }),
32
- {}
33
- )
34
- }), $ = (t) => t.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), $t = (t) => t.length === 0, Pt = (t) => typeof t == "object" && t !== null, M = (t) => t ? "" : void 0, jt = 9, Ot = (t) => Pt(t) && t.nodeType === jt, zt = (t) => Pt(t) && t === t.window;
35
- function Mt(t) {
36
- if (!t) return !1;
37
- const e = t.getRootNode();
38
- return mt(e) === t;
39
- }
40
- function Gt(t) {
41
- return Ot(t) ? t : zt(t) ? t.document : t?.ownerDocument ?? document;
42
- }
43
- function mt(t) {
44
- let e = t.activeElement;
45
- for (; e?.shadowRoot; ) {
46
- const n = e.shadowRoot.activeElement;
47
- if (!n || n === e) break;
48
- e = n;
49
- }
50
- return e;
51
- }
52
- function Vt(t) {
53
- return t == null ? [] : Array.isArray(t) ? t : [t];
54
- }
55
- var lt = (t) => t?.constructor.name === "Array", Ft = (t, e) => {
56
- if (t.length !== e.length) return !1;
57
- for (let n = 0; n < t.length; n++)
58
- if (!H(t[n], e[n])) return !1;
59
- return !0;
60
- }, H = (t, e) => {
61
- if (Object.is(t, e)) return !0;
62
- if (t == null && e != null || t != null && e == null) return !1;
63
- if (typeof t?.isEqual == "function" && typeof e?.isEqual == "function")
64
- return t.isEqual(e);
65
- if (typeof t == "function" && typeof e == "function")
66
- return t.toString() === e.toString();
67
- if (lt(t) && lt(e))
68
- return Ft(Array.from(t), Array.from(e));
69
- if (typeof t != "object" || typeof e != "object") return !1;
70
- const n = Object.keys(e ?? /* @__PURE__ */ Object.create(null)), a = n.length;
71
- for (let r = 0; r < a; r++)
72
- if (!Reflect.has(t, n[r])) return !1;
73
- for (let r = 0; r < a; r++) {
74
- const i = n[r];
75
- if (!H(t[i], e[i])) return !1;
76
- }
77
- return !0;
78
- }, Dt = (t) => t != null && typeof t == "object", X = (t) => typeof t == "number" && !Number.isNaN(t), q = (t) => typeof t == "string", F = (t) => typeof t == "function", qt = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Bt = (t) => Object.prototype.toString.call(t), yt = Function.prototype.toString, Wt = yt.call(Object), Ut = (t) => {
79
- if (!Dt(t) || Bt(t) != "[object Object]" || Xt(t)) return !1;
80
- const e = Object.getPrototypeOf(t);
81
- if (e === null) return !0;
82
- const n = qt(e, "constructor") && e.constructor;
83
- return typeof n == "function" && n instanceof n && yt.call(n) == Wt;
84
- }, Zt = (t) => typeof t == "object" && t !== null && "$$typeof" in t && "props" in t, Kt = (t) => typeof t == "object" && t !== null && "__v_isVNode" in t, Xt = (t) => Zt(t) || Kt(t), Jt = (t) => t(), Ht = (...t) => (...e) => {
85
- t.forEach(function(n) {
86
- n?.(...e);
87
- });
88
- };
89
- function ht(t) {
90
- if (!Ut(t) || t === void 0) return t;
91
- const e = Reflect.ownKeys(t).filter((a) => typeof a == "string"), n = {};
92
- for (const a of e) {
93
- const r = t[a];
94
- r !== void 0 && (n[a] = ht(r));
95
- }
96
- return n;
97
- }
98
- function ut(...t) {
99
- const e = t.length === 1 ? t[0] : t[1];
100
- (t.length === 2 ? t[0] : !0) && process.env.NODE_ENV !== "production" && console.warn(e);
101
- }
102
- function Qt(t, e) {
103
- if (t == null) throw new Error(e());
104
- }
105
- var Yt = (...t) => t.map((e) => e?.trim?.()).filter(Boolean).join(" "), te = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g, dt = (t) => {
106
- const e = {};
107
- let n;
108
- for (; n = te.exec(t); )
109
- e[n[1]] = n[2];
110
- return e;
111
- }, ee = (t, e) => {
112
- if (q(t)) {
113
- if (q(e)) return `${t};${e}`;
114
- t = dt(t);
115
- } else q(e) && (e = dt(e));
116
- return Object.assign({}, t ?? {}, e ?? {});
117
- };
118
- function O(...t) {
119
- let e = {};
120
- for (let n of t) {
121
- if (!n) continue;
122
- for (let r in e) {
123
- if (r.startsWith("on") && typeof e[r] == "function" && typeof n[r] == "function") {
124
- e[r] = Ht(n[r], e[r]);
125
- continue;
126
- }
127
- if (r === "className" || r === "class") {
128
- e[r] = Yt(e[r], n[r]);
129
- continue;
130
- }
131
- if (r === "style") {
132
- e[r] = ee(e[r], n[r]);
133
- continue;
134
- }
135
- e[r] = n[r] !== void 0 ? n[r] : e[r];
136
- }
137
- for (let r in n)
138
- e[r] === void 0 && (e[r] = n[r]);
139
- const a = Object.getOwnPropertySymbols(n);
140
- for (let r of a)
141
- e[r] = n[r];
142
- }
143
- return e;
144
- }
145
- function pt(t, e, n) {
146
- let a = [], r;
147
- return (i) => {
148
- const s = t(i);
149
- return (s.length !== a.length || s.some((u, f) => !H(a[f], u))) && (a = s, r = e(s, i)), r;
150
- };
151
- }
152
- var j = /* @__PURE__ */ ((t) => (t.NotStarted = "Not Started", t.Started = "Started", t.Stopped = "Stopped", t))(j || {}), Z = "__init__";
153
- function ne(t) {
154
- const e = () => t.getRootNode?.() ?? document, n = () => Gt(e());
155
- return {
156
- ...t,
157
- getRootNode: e,
158
- getDoc: n,
159
- getWin: () => n().defaultView ?? window,
160
- getActiveElement: () => mt(e()),
161
- isActiveElement: Mt,
162
- getById: (s) => e().getElementById(s)
163
- };
164
- }
165
- function re(t) {
166
- return new Proxy({}, {
167
- get(e, n) {
168
- return n === "style" ? (a) => t({ style: a }).style : t;
169
- }
170
- });
171
- }
172
- var Q = () => (t) => Array.from(new Set(t)), ae = V("pagination").parts(
173
- "root",
174
- "item",
175
- "ellipsis",
176
- "firstTrigger",
177
- "prevTrigger",
178
- "nextTrigger",
179
- "lastTrigger"
180
- ), _ = ae.build(), ie = (t) => t.ids?.root ?? `pagination:${t.id}`, oe = (t) => t.ids?.firstTrigger ?? `pagination:${t.id}:first`, se = (t) => t.ids?.prevTrigger ?? `pagination:${t.id}:prev`, ge = (t) => t.ids?.nextTrigger ?? `pagination:${t.id}:next`, ce = (t) => t.ids?.lastTrigger ?? `pagination:${t.id}:last`, le = (t, e) => t.ids?.ellipsis?.(e) ?? `pagination:${t.id}:ellipsis:${e}`, ue = (t, e) => t.ids?.item?.(e) ?? `pagination:${t.id}:item:${e}`, A = (t, e) => {
181
- let n = e - t + 1;
182
- return Array.from({ length: n }, (a, r) => r + t);
183
- }, de = (t) => t.map((e) => X(e) ? { type: "page", value: e } : { type: "ellipsis" }), G = "ellipsis", pe = (t) => {
184
- const { page: e, totalPages: n, siblingCount: a, boundaryCount: r = 1 } = t;
185
- if (n <= 0) return [];
186
- if (n === 1) return [1];
187
- const i = 1, s = n, c = Math.max(e - a, i), u = Math.min(e + a, s), f = Math.min(a * 2 + 3 + r * 2, n);
188
- if (n <= f)
189
- return A(i, s);
190
- const P = f - 1 - r, g = c > i + r + 1 && Math.abs(c - i) > r + 1, m = u < s - r - 1 && Math.abs(s - u) > r + 1;
191
- let l = [];
192
- if (!g && m) {
193
- const y = A(1, P);
194
- l.push(...y, G), l.push(...A(s - r + 1, s));
195
- } else if (g && !m) {
196
- l.push(...A(i, i + r - 1)), l.push(G);
197
- const y = A(s - P + 1, s);
198
- l.push(...y);
199
- } else if (g && m) {
200
- l.push(...A(i, i + r - 1)), l.push(G);
201
- const y = A(c, u);
202
- l.push(...y), l.push(G), l.push(...A(s - r + 1, s));
203
- } else
204
- l.push(...A(i, s));
205
- for (let y = 0; y < l.length; y++)
206
- if (l[y] === G) {
207
- const k = X(l[y - 1]) ? l[y - 1] : 0;
208
- (X(l[y + 1]) ? l[y + 1] : n + 1) - k === 2 && (l[y] = k + 1);
209
- }
210
- return l;
211
- }, fe = (t) => de(pe(t));
212
- function Pe(t, e) {
213
- const { send: n, scope: a, prop: r, computed: i, context: s } = t, c = i("totalPages"), u = s.get("page"), f = s.get("pageSize"), P = r("translations"), g = r("count"), m = r("getPageUrl"), l = r("type"), y = i("previousPage"), k = i("nextPage"), T = i("pageRange"), S = u === 1, I = u === c, D = fe({
214
- page: u,
215
- totalPages: c,
216
- siblingCount: r("siblingCount"),
217
- boundaryCount: r("boundaryCount")
218
- });
219
- return {
220
- count: g,
221
- page: u,
222
- pageSize: f,
223
- totalPages: c,
224
- pages: D,
225
- previousPage: y,
226
- nextPage: k,
227
- pageRange: T,
228
- slice(N) {
229
- return N.slice(T.start, T.end);
230
- },
231
- setPageSize(N) {
232
- n({ type: "SET_PAGE_SIZE", size: N });
233
- },
234
- setPage(N) {
235
- n({ type: "SET_PAGE", page: N });
236
- },
237
- goToNextPage() {
238
- n({ type: "NEXT_PAGE" });
239
- },
240
- goToPrevPage() {
241
- n({ type: "PREVIOUS_PAGE" });
242
- },
243
- goToFirstPage() {
244
- n({ type: "FIRST_PAGE" });
245
- },
246
- goToLastPage() {
247
- n({ type: "LAST_PAGE" });
248
- },
249
- getRootProps() {
250
- return e.element({
251
- id: ie(a),
252
- ..._.root.attrs,
253
- dir: r("dir"),
254
- "aria-label": P.rootLabel
255
- });
256
- },
257
- getEllipsisProps(N) {
258
- return e.element({
259
- id: le(a, N.index),
260
- ..._.ellipsis.attrs,
261
- dir: r("dir")
262
- });
263
- },
264
- getItemProps(N) {
265
- const C = N.value, b = C === u;
266
- return e.element({
267
- id: ue(a, C),
268
- ..._.item.attrs,
269
- dir: r("dir"),
270
- "data-index": C,
271
- "data-selected": M(b),
272
- "aria-current": b ? "page" : void 0,
273
- "aria-label": P.itemLabel?.({ page: C, totalPages: c }),
274
- onClick() {
275
- n({ type: "SET_PAGE", page: C });
276
- },
277
- ...l === "button" && { type: "button" },
278
- ...l === "link" && m && {
279
- href: m({ page: C, pageSize: f })
280
- }
281
- });
282
- },
283
- getPrevTriggerProps() {
284
- return e.element({
285
- id: se(a),
286
- ..._.prevTrigger.attrs,
287
- dir: r("dir"),
288
- "data-disabled": M(S),
289
- "aria-label": P.prevTriggerLabel,
290
- onClick() {
291
- n({ type: "PREVIOUS_PAGE" });
292
- },
293
- ...l === "button" && { disabled: S, type: "button" },
294
- ...l === "link" && m && y && {
295
- href: m({ page: y, pageSize: f })
296
- }
297
- });
298
- },
299
- getFirstTriggerProps() {
300
- return e.element({
301
- id: oe(a),
302
- ..._.firstTrigger.attrs,
303
- dir: r("dir"),
304
- "data-disabled": M(S),
305
- "aria-label": P.firstTriggerLabel,
306
- onClick() {
307
- n({ type: "FIRST_PAGE" });
308
- },
309
- ...l === "button" && { disabled: S, type: "button" },
310
- ...l === "link" && m && {
311
- href: m({ page: 1, pageSize: f })
312
- }
313
- });
314
- },
315
- getNextTriggerProps() {
316
- return e.element({
317
- id: ge(a),
318
- ..._.nextTrigger.attrs,
319
- dir: r("dir"),
320
- "data-disabled": M(I),
321
- "aria-label": P.nextTriggerLabel,
322
- onClick() {
323
- n({ type: "NEXT_PAGE" });
324
- },
325
- ...l === "button" && { disabled: I, type: "button" },
326
- ...l === "link" && m && k && {
327
- href: m({ page: k, pageSize: f })
328
- }
329
- });
330
- },
331
- getLastTriggerProps() {
332
- return e.element({
333
- id: ce(a),
334
- ..._.lastTrigger.attrs,
335
- dir: r("dir"),
336
- "data-disabled": M(I),
337
- "aria-label": P.lastTriggerLabel,
338
- onClick() {
339
- n({ type: "LAST_PAGE" });
340
- },
341
- ...l === "button" && { disabled: I, type: "button" },
342
- ...l === "link" && m && {
343
- href: m({ page: c, pageSize: f })
344
- }
345
- });
346
- }
347
- };
348
- }
349
- var me = {
350
- props({ props: t }) {
351
- return {
352
- defaultPageSize: 10,
353
- siblingCount: 1,
354
- boundaryCount: 1,
355
- defaultPage: 1,
356
- type: "button",
357
- count: 1,
358
- ...t,
359
- translations: {
360
- rootLabel: "pagination",
361
- firstTriggerLabel: "first page",
362
- prevTriggerLabel: "previous page",
363
- nextTriggerLabel: "next page",
364
- lastTriggerLabel: "last page",
365
- itemLabel({ page: e, totalPages: n }) {
366
- return `${n > 1 && e === n ? "last page, " : ""}page ${e}`;
367
- },
368
- ...t.translations
369
- }
370
- };
371
- },
372
- initialState() {
373
- return "idle";
374
- },
375
- context({ prop: t, bindable: e, getContext: n }) {
376
- return {
377
- page: e(() => ({
378
- value: t("page"),
379
- defaultValue: t("defaultPage"),
380
- onChange(a) {
381
- const r = n();
382
- t("onPageChange")?.({ page: a, pageSize: r.get("pageSize") });
383
- }
384
- })),
385
- pageSize: e(() => ({
386
- value: t("pageSize"),
387
- defaultValue: t("defaultPageSize"),
388
- onChange(a) {
389
- t("onPageSizeChange")?.({ pageSize: a });
390
- }
391
- }))
392
- };
393
- },
394
- watch({ track: t, context: e, action: n }) {
395
- t([() => e.get("pageSize")], () => {
396
- n(["setPageIfNeeded"]);
397
- });
398
- },
399
- computed: {
400
- totalPages: pt(
401
- ({ prop: t, context: e }) => [e.get("pageSize"), t("count")],
402
- ([t, e]) => Math.ceil(e / t)
403
- ),
404
- pageRange: pt(
405
- ({ context: t, prop: e }) => [t.get("page"), t.get("pageSize"), e("count")],
406
- ([t, e, n]) => {
407
- const a = (t - 1) * e;
408
- return { start: a, end: Math.min(a + e, n) };
409
- }
410
- ),
411
- previousPage: ({ context: t }) => t.get("page") === 1 ? null : t.get("page") - 1,
412
- nextPage: ({ context: t, computed: e }) => t.get("page") === e("totalPages") ? null : t.get("page") + 1,
413
- isValidPage: ({ context: t, computed: e }) => t.get("page") >= 1 && t.get("page") <= e("totalPages")
414
- },
415
- on: {
416
- SET_PAGE: {
417
- guard: "isValidPage",
418
- actions: ["setPage"]
419
- },
420
- SET_PAGE_SIZE: {
421
- actions: ["setPageSize"]
422
- },
423
- FIRST_PAGE: {
424
- actions: ["goToFirstPage"]
425
- },
426
- LAST_PAGE: {
427
- actions: ["goToLastPage"]
428
- },
429
- PREVIOUS_PAGE: {
430
- guard: "canGoToPrevPage",
431
- actions: ["goToPrevPage"]
432
- },
433
- NEXT_PAGE: {
434
- guard: "canGoToNextPage",
435
- actions: ["goToNextPage"]
436
- }
437
- },
438
- states: {
439
- idle: {}
440
- },
441
- implementations: {
442
- guards: {
443
- isValidPage: ({ event: t, computed: e }) => t.page >= 1 && t.page <= e("totalPages"),
444
- isValidCount: ({ context: t, event: e }) => t.get("page") > e.count,
445
- canGoToNextPage: ({ context: t, computed: e }) => t.get("page") < e("totalPages"),
446
- canGoToPrevPage: ({ context: t }) => t.get("page") > 1
447
- },
448
- actions: {
449
- setPage({ context: t, event: e, computed: n }) {
450
- const a = K(e.page, n("totalPages"));
451
- t.set("page", a);
452
- },
453
- setPageSize({ context: t, event: e }) {
454
- t.set("pageSize", e.size);
455
- },
456
- goToFirstPage({ context: t }) {
457
- t.set("page", 1);
458
- },
459
- goToLastPage({ context: t, computed: e }) {
460
- t.set("page", e("totalPages"));
461
- },
462
- goToPrevPage({ context: t, computed: e }) {
463
- t.set("page", (n) => K(n - 1, e("totalPages")));
464
- },
465
- goToNextPage({ context: t, computed: e }) {
466
- t.set("page", (n) => K(n + 1, e("totalPages")));
467
- },
468
- setPageIfNeeded({ context: t, computed: e }) {
469
- e("isValidPage") || t.set("page", 1);
470
- }
471
- }
472
- }
473
- }, K = (t, e) => Math.min(Math.max(t, 1), e);
474
- Q()([
475
- "boundaryCount",
476
- "count",
477
- "dir",
478
- "getRootNode",
479
- "id",
480
- "ids",
481
- "onPageChange",
482
- "onPageSizeChange",
483
- "page",
484
- "defaultPage",
485
- "pageSize",
486
- "defaultPageSize",
487
- "siblingCount",
488
- "translations",
489
- "type",
490
- "getPageUrl"
491
- ]);
492
- Q()(["value", "type"]);
493
- Q()(["index"]);
494
- var vt = typeof globalThis.document < "u" ? xt : B;
495
- function W(t) {
496
- const e = t().value ?? t().defaultValue, n = t().isEqual ?? Object.is, [a] = gt(e), [r, i] = gt(a), s = t().value !== void 0, c = E(r);
497
- c.current = s ? t().value : r;
498
- const u = E(c.current);
499
- vt(() => {
500
- u.current = c.current;
501
- }, [r, t().value]);
502
- const f = (g) => {
503
- const m = u.current, l = F(g) ? g(m) : g;
504
- t().debug && console.log(`[bindable > ${t().debug}] setValue`, { next: l, prev: m }), s || i(l), n(l, m) || t().onChange?.(l, m);
505
- };
506
- function P() {
507
- return s ? t().value : r;
1
+ import {
2
+ IconButton
3
+ } from "../chunk-DCXWGQVZ.mjs";
4
+ import {
5
+ Icon
6
+ } from "../chunk-UMUMFMFB.mjs";
7
+ import {
8
+ Button
9
+ } from "../chunk-2YM6GKWW.mjs";
10
+ import "../chunk-GAK4SC2F.mjs";
11
+ import "../chunk-KEGAAGJW.mjs";
12
+ import "../chunk-6QCEPQ3U.mjs";
13
+
14
+ // src/pagination/PaginationContext.tsx
15
+ import * as pagination from "@zag-js/pagination";
16
+ import { normalizeProps, useMachine } from "@zag-js/react";
17
+ import { createContext, useContext, useId } from "react";
18
+
19
+ // src/pagination/utils.ts
20
+ function sliceArrayWithIndex(arr, index, length) {
21
+ const relativeElements = (length - 1) / 2;
22
+ let start = Math.max(0, index - relativeElements);
23
+ let end = Math.min(arr.length, index + relativeElements + 1);
24
+ if (end - start < length) {
25
+ start = Math.max(0, Math.min(start, arr.length - length));
26
+ end = Math.min(arr.length, start + length);
508
27
  }
509
- return {
510
- initial: a,
511
- ref: c,
512
- get: P,
513
- set(g) {
514
- (t().sync ? J : Jt)(() => f(g));
515
- },
516
- invoke(g, m) {
517
- t().onChange?.(g, m);
518
- },
519
- hash(g) {
520
- return t().hash?.(g) ?? String(g);
521
- }
522
- };
523
- }
524
- W.cleanup = (t) => {
525
- B(() => t, []);
526
- };
527
- W.ref = (t) => {
528
- const e = E(t);
529
- return {
530
- get: () => e.current,
531
- set: (n) => {
532
- e.current = n;
533
- }
534
- };
535
- };
536
- function ye(t) {
537
- const e = E(t);
538
- return {
539
- get(n) {
540
- return e.current[n];
541
- },
542
- set(n, a) {
543
- e.current[n] = a;
544
- }
545
- };
546
- }
547
- var he = (t, e) => {
548
- const n = E(!1), a = E(!1);
549
- B(() => {
550
- if (n.current && a.current) return e();
551
- a.current = !0;
552
- }, [...(t ?? []).map((r) => typeof r == "function" ? r() : r)]), B(() => (n.current = !0, () => {
553
- n.current = !1;
554
- }), []);
555
- };
556
- function ve(t, e = {}) {
557
- const n = Nt(() => {
558
- const { id: o, ids: d, getRootNode: v } = e;
559
- return ne({ id: o, ids: d, getRootNode: v });
560
- }, [e]), a = (...o) => {
561
- t.debug && console.log(...o);
562
- }, r = t.props?.({ props: ht(e), scope: n }) ?? e, i = be(r), s = t.context?.({
563
- prop: i,
564
- bindable: W,
565
- scope: n,
566
- flush: ft,
567
- getContext() {
568
- return u;
569
- },
570
- getComputed() {
571
- return C;
572
- },
573
- getRefs() {
574
- return k;
575
- },
576
- getEvent() {
577
- return l();
578
- }
579
- }), c = bt(s), u = {
580
- get(o) {
581
- return c.current?.[o].ref.current;
582
- },
583
- set(o, d) {
584
- c.current?.[o].set(d);
585
- },
586
- initial(o) {
587
- return c.current?.[o].initial;
588
- },
589
- hash(o) {
590
- const d = c.current?.[o].get();
591
- return c.current?.[o].hash(d);
592
- }
593
- }, f = E(/* @__PURE__ */ new Map()), P = E(null), g = E(null), m = E({ type: "" }), l = () => ({
594
- ...m.current,
595
- current() {
596
- return m.current;
597
- },
598
- previous() {
599
- return g.current;
600
- }
601
- }), y = () => ({
602
- ...b,
603
- matches(...o) {
604
- return o.includes(b.ref.current);
605
- },
606
- hasTag(o) {
607
- return !!t.states[b.ref.current]?.tags?.includes(o);
608
- }
609
- }), k = ye(t.refs?.({ prop: i, context: u }) ?? {}), T = () => ({
610
- state: y(),
611
- context: u,
612
- event: l(),
613
- prop: i,
614
- send: st,
615
- action: S,
616
- guard: I,
617
- track: he,
618
- refs: k,
619
- computed: C,
620
- flush: ft,
621
- scope: n,
622
- choose: N
623
- }), S = (o) => {
624
- const d = F(o) ? o(T()) : o;
625
- if (!d) return;
626
- const v = d.map((h) => {
627
- const x = t.implementations?.actions?.[h];
628
- return x || ut(`[zag-js] No implementation found for action "${JSON.stringify(h)}"`), x;
629
- });
630
- for (const h of v)
631
- h?.(T());
632
- }, I = (o) => F(o) ? o(T()) : t.implementations?.guards?.[o](T()), D = (o) => {
633
- const d = F(o) ? o(T()) : o;
634
- if (!d) return;
635
- const v = d.map((x) => {
636
- const L = t.implementations?.effects?.[x];
637
- return L || ut(`[zag-js] No implementation found for effect "${JSON.stringify(x)}"`), L;
638
- }), h = [];
639
- for (const x of v) {
640
- const L = x?.(T());
641
- L && h.push(L);
642
- }
643
- return () => h.forEach((x) => x?.());
644
- }, N = (o) => Vt(o).find((d) => {
645
- let v = !d.guard;
646
- return q(d.guard) ? v = !!I(d.guard) : F(d.guard) && (v = d.guard(T())), v;
647
- }), C = (o) => {
648
- Qt(t.computed, () => "[zag-js] No computed object found on machine");
649
- const d = t.computed[o];
650
- return d({
651
- context: u,
652
- event: l(),
653
- prop: i,
654
- refs: k,
655
- scope: n,
656
- computed: C
657
- });
658
- }, b = W(() => ({
659
- defaultValue: t.initialState({ prop: i }),
660
- onChange(o, d) {
661
- d && (f.current.get(d)?.(), f.current.delete(d)), d && S(t.states[d]?.exit), S(P.current?.actions);
662
- const v = D(t.states[o]?.effects);
663
- if (v && f.current.set(o, v), d === Z) {
664
- S(t.entry);
665
- const h = D(t.effects);
666
- h && f.current.set(Z, h);
667
- }
668
- S(t.states[o]?.entry);
669
- }
670
- })), ot = E(void 0), z = E(j.NotStarted);
671
- vt(() => {
672
- queueMicrotask(() => {
673
- const v = z.current === j.Started;
674
- z.current = j.Started, a(v ? "rehydrating..." : "initializing...");
675
- const h = ot.current ?? b.initial;
676
- b.invoke(h, v ? b.get() : Z);
677
- });
678
- const o = f.current, d = b.ref.current;
679
- return () => {
680
- a("unmounting..."), ot.current = d, z.current = j.Stopped, o.forEach((v) => v?.()), f.current = /* @__PURE__ */ new Map(), P.current = null, queueMicrotask(() => {
681
- S(t.exit);
682
- });
683
- };
684
- }, []);
685
- const St = () => "ref" in b ? b.ref.current : b.get(), st = (o) => {
686
- queueMicrotask(() => {
687
- if (z.current !== j.Started) return;
688
- g.current = m.current, m.current = o;
689
- let d = St();
690
- const v = (
691
- // @ts-ignore
692
- t.states[d].on?.[o.type] ?? // @ts-ignore
693
- t.on?.[o.type]
694
- ), h = N(v);
695
- if (!h) return;
696
- P.current = h;
697
- const x = h.target ?? d;
698
- a("transition", o.type, h.target || d, `(${h.actions})`);
699
- const L = x !== d;
700
- L ? J(() => b.set(x)) : h.reenter && !L ? b.invoke(d, d) : S(h.actions ?? []);
701
- });
702
- };
703
- return t.watch?.(T()), {
704
- state: y(),
705
- send: st,
706
- context: u,
707
- prop: i,
708
- scope: n,
709
- refs: k,
710
- computed: C,
711
- event: l(),
712
- getStatus: () => z.current
713
- };
714
- }
715
- function bt(t) {
716
- const e = E(t);
717
- return e.current = t, e;
718
- }
719
- function be(t) {
720
- const e = bt(t);
721
- return function(a) {
722
- return e.current[a];
723
- };
724
- }
725
- function ft(t) {
726
- queueMicrotask(() => {
727
- J(() => t());
728
- });
28
+ return arr.slice(start, end);
729
29
  }
730
- var Te = re((t) => t);
731
- function Ee(t, e, n) {
732
- const a = (n - 1) / 2;
733
- let r = Math.max(0, e - a), i = Math.min(t.length, e + a + 1);
734
- return i - r < n && (r = Math.max(0, Math.min(r, t.length - n)), i = Math.min(t.length, r + n)), t.slice(r, i);
735
- }
736
- const Tt = kt(null), Se = ({
737
- children: t,
738
- count: e,
739
- visiblePageItems: n = 7,
740
- pageSize: a,
741
- page: r,
742
- onPageChange: i,
743
- noEllipsis: s,
744
- type: c = "link"
30
+
31
+ // src/pagination/PaginationContext.tsx
32
+ import { jsx } from "react/jsx-runtime";
33
+ var PaginationContext = createContext(null);
34
+ var PaginationProvider = ({
35
+ children,
36
+ count,
37
+ visiblePageItems = 7,
38
+ pageSize,
39
+ page,
40
+ onPageChange,
41
+ noEllipsis,
42
+ type = "link"
745
43
  }) => {
746
- const u = s ? 1 / 0 : Math.max(0, Math.floor((n - 5) / 2)), f = Ct(), P = ve(me, {
747
- id: f,
748
- count: e,
749
- siblingCount: u,
750
- pageSize: a,
751
- page: r,
752
- onPageChange: i,
753
- type: c
754
- }), g = Pe(P, Te), m = s ? Ee(g.pages, g.page - 1, n) : g.pages;
755
- return /* @__PURE__ */ p(
756
- Tt.Provider,
44
+ const siblingCount = noEllipsis ? Infinity : Math.max(0, Math.floor((visiblePageItems - 5) / 2));
45
+ const id = useId();
46
+ const service = useMachine(pagination.machine, {
47
+ id,
48
+ count,
49
+ siblingCount,
50
+ pageSize,
51
+ page,
52
+ onPageChange,
53
+ type
54
+ });
55
+ const api = pagination.connect(service, normalizeProps);
56
+ const pages = noEllipsis ? sliceArrayWithIndex(api.pages, api.page - 1, visiblePageItems) : api.pages;
57
+ return /* @__PURE__ */ jsx(
58
+ PaginationContext.Provider,
757
59
  {
758
60
  value: {
759
- type: c,
61
+ type,
760
62
  pagination: {
761
- ...g,
762
- pages: m,
63
+ ...api,
64
+ pages,
763
65
  // Extending ZagJS anatomy
764
- getFirstPageTriggerProps: () => ({
765
- ...g.getPrevTriggerProps(),
766
- id: `${g.getRootProps().id}:first`,
767
- "data-part": "first-page-trigger",
768
- onClick: g.goToFirstPage
769
- }),
770
- getLastPageTriggerProps: () => ({
771
- ...g.getNextTriggerProps(),
772
- id: `${g.getRootProps().id}:last`,
773
- "data-part": "last-page-trigger",
774
- onClick: g.goToLastPage
775
- })
66
+ getFirstPageTriggerProps: () => {
67
+ return {
68
+ ...api.getPrevTriggerProps(),
69
+ id: `${api.getRootProps().id}:first`,
70
+ "data-part": "first-page-trigger",
71
+ onClick: api.goToFirstPage
72
+ };
73
+ },
74
+ getLastPageTriggerProps: () => {
75
+ return {
76
+ ...api.getNextTriggerProps(),
77
+ id: `${api.getRootProps().id}:last`,
78
+ "data-part": "last-page-trigger",
79
+ onClick: api.goToLastPage
80
+ };
81
+ }
776
82
  }
777
83
  },
778
- children: t
84
+ children
779
85
  }
780
86
  );
781
- }, w = () => {
782
- const t = At(Tt);
783
- if (!t)
87
+ };
88
+ var usePagination = () => {
89
+ const context = useContext(PaginationContext);
90
+ if (!context) {
784
91
  throw Error("usePagination must be used within a Pagination provider");
785
- return t;
786
- }, Et = ({
787
- children: t,
788
- visiblePageItems: e = 5,
789
- type: n = "link",
790
- noEllipsis: a = !1,
791
- className: r,
792
- ...i
793
- }) => /* @__PURE__ */ p(
794
- Se,
795
- {
796
- visiblePageItems: e,
797
- noEllipsis: a,
798
- type: n,
799
- ...i,
800
- children: /* @__PURE__ */ p(Ne, { className: r, children: t })
801
92
  }
802
- ), Ne = ({
803
- children: t,
804
- className: e
93
+ return context;
94
+ };
95
+
96
+ // src/pagination/Pagination.tsx
97
+ import { jsx as jsx2 } from "react/jsx-runtime";
98
+ var Pagination = ({
99
+ children,
100
+ visiblePageItems = 5,
101
+ type = "link",
102
+ noEllipsis = false,
103
+ className,
104
+ ...rest
105
+ }) => {
106
+ return /* @__PURE__ */ jsx2(
107
+ PaginationProvider,
108
+ {
109
+ visiblePageItems,
110
+ noEllipsis,
111
+ type,
112
+ ...rest,
113
+ children: /* @__PURE__ */ jsx2(PaginationWrapper, { className, children })
114
+ }
115
+ );
116
+ };
117
+ var PaginationWrapper = ({
118
+ children,
119
+ className
805
120
  }) => {
806
- const { pagination: n } = w(), a = n.getRootProps();
807
- return /* @__PURE__ */ p("nav", { "data-spark-component": "pagination", ...a, className: e, children: /* @__PURE__ */ p("ul", { className: "gap-md flex flex-wrap", children: t }) });
121
+ const { pagination: pagination2 } = usePagination();
122
+ const props = pagination2.getRootProps();
123
+ return /* @__PURE__ */ jsx2("nav", { "data-spark-component": "pagination", ...props, className, children: /* @__PURE__ */ jsx2("ul", { className: "gap-md flex flex-wrap", children }) });
808
124
  };
809
- Et.displayName = "Pagination";
810
- const Y = ({ children: t, index: e, className: n, ref: a, ...r }) => {
811
- const { pagination: i } = w(), s = i.getEllipsisProps({ index: e }), c = {
812
- className: Lt("flex size-sz-44 items-center justify-center", n),
813
- ...r
814
- }, u = O(s, c);
815
- return /* @__PURE__ */ p("li", { children: /* @__PURE__ */ p("span", { "data-spark-component": "pagination-ellipsis", ref: a, ...u, children: t || "…" }) });
125
+ Pagination.displayName = "Pagination";
126
+
127
+ // src/pagination/PaginationEllipsis.tsx
128
+ import { mergeProps } from "@zag-js/react";
129
+ import { cx } from "class-variance-authority";
130
+ import { jsx as jsx3 } from "react/jsx-runtime";
131
+ var Ellipsis = ({ children, index, className, ref, ...rest }) => {
132
+ const { pagination: pagination2 } = usePagination();
133
+ const apiProps = pagination2.getEllipsisProps({ index });
134
+ const localProps = {
135
+ className: cx("flex size-sz-44 items-center justify-center", className),
136
+ ...rest
137
+ };
138
+ const mergedProps = mergeProps(apiProps, localProps);
139
+ return /* @__PURE__ */ jsx3("li", { children: /* @__PURE__ */ jsx3("span", { "data-spark-component": "pagination-ellipsis", ref, ...mergedProps, children: children || "\u2026" }) });
816
140
  };
817
- Y.displayName = "Pagination.Ellipsis";
818
- const tt = ({
819
- children: t,
820
- className: e,
821
- href: n,
822
- ref: a,
823
- ...r
141
+ Ellipsis.displayName = "Pagination.Ellipsis";
142
+
143
+ // src/pagination/PaginationFirstPageTrigger.tsx
144
+ import { ArrowDoubleLeft } from "@spark-ui/icons/ArrowDoubleLeft";
145
+ import { mergeProps as mergeProps2 } from "@zag-js/react";
146
+ import { jsx as jsx4 } from "react/jsx-runtime";
147
+ var FirstPageTrigger = ({
148
+ children,
149
+ className,
150
+ href,
151
+ ref,
152
+ ...props
824
153
  }) => {
825
- const { pagination: i, type: s } = w(), c = i.getFirstPageTriggerProps(), u = s === "link" && c["data-disabled"] === "", f = {
154
+ const { pagination: pagination2, type } = usePagination();
155
+ const apiProps = pagination2.getFirstPageTriggerProps();
156
+ const shouldDisableLink = type === "link" && apiProps["data-disabled"] === "";
157
+ const localProps = {
826
158
  "data-spark-component": "pagination-first-page-trigger",
827
159
  intent: "support",
828
160
  design: "contrast",
829
- ...r,
830
- className: e,
831
- ...u && {
832
- disabled: !0,
161
+ ...props,
162
+ className,
163
+ ...shouldDisableLink && {
164
+ disabled: true,
833
165
  role: "link",
834
- "aria-disabled": !0
166
+ "aria-disabled": true
835
167
  }
836
- }, P = O(
837
- c,
838
- f
839
- ), g = t || /* @__PURE__ */ p(U, { children: /* @__PURE__ */ p(Rt, {}) });
840
- return /* @__PURE__ */ p("li", { children: n ? /* @__PURE__ */ p(R, { ref: a, ...P, asChild: !0, children: /* @__PURE__ */ p("a", { href: u ? void 0 : n, children: g }) }) : /* @__PURE__ */ p(R, { ref: a, ...P, children: g }) });
168
+ };
169
+ const mergedProps = mergeProps2(
170
+ apiProps,
171
+ localProps
172
+ );
173
+ const content = children || /* @__PURE__ */ jsx4(Icon, { children: /* @__PURE__ */ jsx4(ArrowDoubleLeft, {}) });
174
+ return /* @__PURE__ */ jsx4("li", { children: href ? /* @__PURE__ */ jsx4(IconButton, { ref, ...mergedProps, asChild: true, children: /* @__PURE__ */ jsx4("a", { href: shouldDisableLink ? void 0 : href, children: content }) }) : /* @__PURE__ */ jsx4(IconButton, { ref, ...mergedProps, children: content }) });
841
175
  };
842
- tt.displayName = "Pagination.FirstPageTrigger";
843
- const et = ({ children: t, value: e, className: n, href: a, ref: r, ...i }) => {
844
- const { pagination: s } = w(), c = s.getItemProps({ type: "page", value: e }), u = {
176
+ FirstPageTrigger.displayName = "Pagination.FirstPageTrigger";
177
+
178
+ // src/pagination/PaginationItem.tsx
179
+ import { mergeProps as mergeProps3 } from "@zag-js/react";
180
+ import { jsx as jsx5 } from "react/jsx-runtime";
181
+ var Item = ({ children, value, className, href, ref, ...props }) => {
182
+ const { pagination: pagination2 } = usePagination();
183
+ const apiProps = pagination2.getItemProps({ type: "page", value });
184
+ const localProps = {
845
185
  "data-spark-component": "pagination-item",
846
186
  intent: "support",
847
- design: c["aria-current"] === "page" ? "filled" : "contrast",
848
- className: n,
849
- ...i
850
- }, f = O(c, u);
851
- return /* @__PURE__ */ p("li", { children: a ? /* @__PURE__ */ p(ct, { ref: r, ...f, asChild: !0, children: /* @__PURE__ */ p("a", { href: a, children: t || e }) }) : /* @__PURE__ */ p(ct, { ref: r, ...f, children: t || e }) });
187
+ design: apiProps["aria-current"] === "page" ? "filled" : "contrast",
188
+ className,
189
+ ...props
190
+ };
191
+ const mergedProps = mergeProps3(apiProps, localProps);
192
+ return /* @__PURE__ */ jsx5("li", { children: href ? /* @__PURE__ */ jsx5(Button, { ref, ...mergedProps, asChild: true, children: /* @__PURE__ */ jsx5("a", { href, children: children || value }) }) : /* @__PURE__ */ jsx5(Button, { ref, ...mergedProps, children: children || value }) });
852
193
  };
853
- et.displayName = "Pagination.Item";
854
- const nt = ({
855
- children: t,
856
- className: e,
857
- href: n,
858
- ref: a,
859
- ...r
194
+ Item.displayName = "Pagination.Item";
195
+
196
+ // src/pagination/PaginationLastPageTrigger.tsx
197
+ import { ArrowDoubleRight } from "@spark-ui/icons/ArrowDoubleRight";
198
+ import { mergeProps as mergeProps4 } from "@zag-js/react";
199
+ import { jsx as jsx6 } from "react/jsx-runtime";
200
+ var LastPageTrigger = ({
201
+ children,
202
+ className,
203
+ href,
204
+ ref,
205
+ ...props
860
206
  }) => {
861
- const { pagination: i, type: s } = w(), c = i.getLastPageTriggerProps(), u = s === "link" && c["data-disabled"] === "", f = {
207
+ const { pagination: pagination2, type } = usePagination();
208
+ const apiProps = pagination2.getLastPageTriggerProps();
209
+ const shouldDisableLink = type === "link" && apiProps["data-disabled"] === "";
210
+ const localProps = {
862
211
  "data-spark-component": "pagination-last-page-trigger",
863
212
  intent: "support",
864
213
  design: "contrast",
865
- ...r,
866
- className: e,
867
- ...u && {
868
- disabled: !0,
214
+ ...props,
215
+ className,
216
+ ...shouldDisableLink && {
217
+ disabled: true,
869
218
  role: "link",
870
- "aria-disabled": !0
219
+ "aria-disabled": true
871
220
  }
872
- }, P = O(
873
- c,
874
- f
875
- ), g = t || /* @__PURE__ */ p(U, { children: /* @__PURE__ */ p(wt, {}) });
876
- return /* @__PURE__ */ p("li", { children: n ? /* @__PURE__ */ p(R, { ref: a, ...P, asChild: !0, children: /* @__PURE__ */ p("a", { href: u ? void 0 : n, children: g }) }) : /* @__PURE__ */ p(R, { ref: a, ...P, children: g }) });
221
+ };
222
+ const mergedProps = mergeProps4(
223
+ apiProps,
224
+ localProps
225
+ );
226
+ const content = children || /* @__PURE__ */ jsx6(Icon, { children: /* @__PURE__ */ jsx6(ArrowDoubleRight, {}) });
227
+ return /* @__PURE__ */ jsx6("li", { children: href ? /* @__PURE__ */ jsx6(IconButton, { ref, ...mergedProps, asChild: true, children: /* @__PURE__ */ jsx6("a", { href: shouldDisableLink ? void 0 : href, children: content }) }) : /* @__PURE__ */ jsx6(IconButton, { ref, ...mergedProps, children: content }) });
877
228
  };
878
- nt.displayName = "Pagination.LastPageTrigger";
879
- const rt = ({ children: t, className: e, href: n, ref: a, ...r }) => {
880
- const { pagination: i, type: s } = w(), c = i.getNextTriggerProps(), u = s === "link" && c["data-disabled"] === "", f = {
229
+ LastPageTrigger.displayName = "Pagination.LastPageTrigger";
230
+
231
+ // src/pagination/PaginationNextTrigger.tsx
232
+ import { ArrowVerticalRight } from "@spark-ui/icons/ArrowVerticalRight";
233
+ import { mergeProps as mergeProps5 } from "@zag-js/react";
234
+ import { jsx as jsx7 } from "react/jsx-runtime";
235
+ var NextTrigger = ({ children, className, href, ref, ...props }) => {
236
+ const { pagination: pagination2, type } = usePagination();
237
+ const apiProps = pagination2.getNextTriggerProps();
238
+ const shouldDisableLink = type === "link" && apiProps["data-disabled"] === "";
239
+ const localProps = {
881
240
  "data-spark-component": "pagination-next-trigger",
882
241
  intent: "support",
883
242
  design: "contrast",
884
- ...r,
885
- className: e,
886
- ...u && {
887
- disabled: !0,
243
+ ...props,
244
+ className,
245
+ ...shouldDisableLink && {
246
+ disabled: true,
888
247
  role: "link",
889
- "aria-disabled": !0
248
+ "aria-disabled": true
890
249
  }
891
- }, P = O(
892
- c,
893
- f
894
- ), g = t || /* @__PURE__ */ p(U, { children: /* @__PURE__ */ p(It, {}) });
895
- return /* @__PURE__ */ p("li", { children: n ? /* @__PURE__ */ p(R, { ref: a, ...P, asChild: !0, children: /* @__PURE__ */ p("a", { href: u ? void 0 : n, children: g }) }) : /* @__PURE__ */ p(R, { ref: a, ...P, children: g }) });
250
+ };
251
+ const mergedProps = mergeProps5(
252
+ apiProps,
253
+ localProps
254
+ );
255
+ const content = children || /* @__PURE__ */ jsx7(Icon, { children: /* @__PURE__ */ jsx7(ArrowVerticalRight, {}) });
256
+ return /* @__PURE__ */ jsx7("li", { children: href ? /* @__PURE__ */ jsx7(IconButton, { ref, ...mergedProps, asChild: true, children: /* @__PURE__ */ jsx7("a", { href: shouldDisableLink ? void 0 : href, children: content }) }) : /* @__PURE__ */ jsx7(IconButton, { ref, ...mergedProps, children: content }) });
896
257
  };
897
- rt.displayName = "Pagination.NextTrigger";
898
- const at = ({ children: t }) => {
899
- const { pagination: e } = w();
900
- return t(e);
258
+ NextTrigger.displayName = "Pagination.NextTrigger";
259
+
260
+ // src/pagination/PaginationPages.tsx
261
+ var Pages = ({ children }) => {
262
+ const { pagination: pagination2 } = usePagination();
263
+ return children(pagination2);
901
264
  };
902
- at.displayName = "Pagination.Pages";
903
- const it = ({ children: t, className: e, href: n, ref: a, ...r }) => {
904
- const { pagination: i, type: s } = w(), c = i.getPrevTriggerProps(), u = s === "link" && c["data-disabled"] === "", f = {
265
+ Pages.displayName = "Pagination.Pages";
266
+
267
+ // src/pagination/PaginationPrevTrigger.tsx
268
+ import { ArrowVerticalLeft } from "@spark-ui/icons/ArrowVerticalLeft";
269
+ import { mergeProps as mergeProps6 } from "@zag-js/react";
270
+ import { jsx as jsx8 } from "react/jsx-runtime";
271
+ var PrevTrigger = ({ children, className, href, ref, ...props }) => {
272
+ const { pagination: pagination2, type } = usePagination();
273
+ const apiProps = pagination2.getPrevTriggerProps();
274
+ const shouldDisableLink = type === "link" && apiProps["data-disabled"] === "";
275
+ const localProps = {
905
276
  "data-spark-component": "pagination-prev-trigger",
906
277
  intent: "support",
907
278
  design: "contrast",
908
- ...r,
909
- className: e,
910
- ...u && {
911
- disabled: !0,
279
+ ...props,
280
+ className,
281
+ ...shouldDisableLink && {
282
+ disabled: true,
912
283
  role: "link",
913
- "aria-disabled": !0
284
+ "aria-disabled": true
914
285
  }
915
- }, P = O(
916
- c,
917
- f
918
- ), g = t || /* @__PURE__ */ p(U, { children: /* @__PURE__ */ p(_t, {}) });
919
- return /* @__PURE__ */ p("li", { children: n ? /* @__PURE__ */ p(R, { ref: a, ...P, asChild: !0, children: /* @__PURE__ */ p("a", { href: u ? void 0 : n, children: g }) }) : /* @__PURE__ */ p(R, { ref: a, ...P, children: g }) });
286
+ };
287
+ const mergedProps = mergeProps6(
288
+ apiProps,
289
+ localProps
290
+ );
291
+ const content = children || /* @__PURE__ */ jsx8(Icon, { children: /* @__PURE__ */ jsx8(ArrowVerticalLeft, {}) });
292
+ return /* @__PURE__ */ jsx8("li", { children: href ? /* @__PURE__ */ jsx8(IconButton, { ref, ...mergedProps, asChild: true, children: /* @__PURE__ */ jsx8("a", { href: shouldDisableLink ? void 0 : href, children: content }) }) : /* @__PURE__ */ jsx8(IconButton, { ref, ...mergedProps, children: content }) });
920
293
  };
921
- it.displayName = "Pagination.PrevTrigger";
922
- const xe = Object.assign(Et, {
923
- PrevTrigger: it,
924
- NextTrigger: rt,
925
- Pages: at,
926
- Item: et,
927
- Ellipsis: Y,
928
- FirstPageTrigger: tt,
929
- LastPageTrigger: nt
294
+ PrevTrigger.displayName = "Pagination.PrevTrigger";
295
+
296
+ // src/pagination/index.ts
297
+ var Pagination2 = Object.assign(Pagination, {
298
+ PrevTrigger,
299
+ NextTrigger,
300
+ Pages,
301
+ Item,
302
+ Ellipsis,
303
+ FirstPageTrigger,
304
+ LastPageTrigger
930
305
  });
931
- xe.displayName = "Pagination";
932
- it.displayName = "Pagination.PrevTrigger";
933
- rt.displayName = "Pagination.NextTrigger";
934
- at.displayName = "Pagination.Pages";
935
- et.displayName = "Pagination.Item";
936
- Y.displayName = "Pagination.Ellipsis";
937
- tt.displayName = "Pagination.FirstPageTrigger";
938
- nt.displayName = "Pagination.LastPageTrigger";
306
+ Pagination2.displayName = "Pagination";
307
+ PrevTrigger.displayName = "Pagination.PrevTrigger";
308
+ NextTrigger.displayName = "Pagination.NextTrigger";
309
+ Pages.displayName = "Pagination.Pages";
310
+ Item.displayName = "Pagination.Item";
311
+ Ellipsis.displayName = "Pagination.Ellipsis";
312
+ FirstPageTrigger.displayName = "Pagination.FirstPageTrigger";
313
+ LastPageTrigger.displayName = "Pagination.LastPageTrigger";
939
314
  export {
940
- xe as Pagination
315
+ Pagination2 as Pagination
941
316
  };
942
- //# sourceMappingURL=index.mjs.map
317
+ //# sourceMappingURL=index.mjs.map