@spark-ui/components 13.0.6 → 13.1.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 (827) hide show
  1. package/dist/Button-C3xHNaGl.js +2 -0
  2. package/dist/Button-C3xHNaGl.js.map +1 -0
  3. package/dist/{chunk-2YM6GKWW.mjs → Button-D32Avk2j.mjs} +130 -173
  4. package/dist/Button-D32Avk2j.mjs.map +1 -0
  5. package/dist/DialogContent.styles-BrhKaHc_.js +2 -0
  6. package/dist/DialogContent.styles-BrhKaHc_.js.map +1 -0
  7. package/dist/{chunk-XZ47F6TP.mjs → DialogContent.styles-WGWJS9dj.mjs} +6 -8
  8. package/dist/DialogContent.styles-WGWJS9dj.mjs.map +1 -0
  9. package/dist/Icon-Bf0XrmiR.js +2 -0
  10. package/dist/Icon-Bf0XrmiR.js.map +1 -0
  11. package/dist/Icon-D1RueiPY.mjs +58 -0
  12. package/dist/Icon-D1RueiPY.mjs.map +1 -0
  13. package/dist/IconButton-BY3gYXtU.mjs +43 -0
  14. package/dist/IconButton-BY3gYXtU.mjs.map +1 -0
  15. package/dist/IconButton-Bf-EDzpI.js +2 -0
  16. package/dist/IconButton-Bf-EDzpI.js.map +1 -0
  17. package/dist/Slot-C98rL4yy.mjs +14 -0
  18. package/dist/Slot-C98rL4yy.mjs.map +1 -0
  19. package/dist/Slot-ghrohQLA.js +2 -0
  20. package/dist/Slot-ghrohQLA.js.map +1 -0
  21. package/dist/{chunk-GAK4SC2F.mjs → Spinner-CYL5kyzM.mjs} +29 -40
  22. package/dist/Spinner-CYL5kyzM.mjs.map +1 -0
  23. package/dist/Spinner-DK8VEsaR.js +2 -0
  24. package/dist/Spinner-DK8VEsaR.js.map +1 -0
  25. package/dist/{chunk-RKPP7ZOK.mjs → TextLink-3MEVs3No.mjs} +27 -36
  26. package/dist/TextLink-3MEVs3No.mjs.map +1 -0
  27. package/dist/TextLink-DD0VO37q.js +2 -0
  28. package/dist/TextLink-DD0VO37q.js.map +1 -0
  29. package/dist/VisuallyHidden-AoRh4WRK.js +2 -0
  30. package/dist/VisuallyHidden-AoRh4WRK.js.map +1 -0
  31. package/dist/VisuallyHidden-ByNP7ZUI.mjs +28 -0
  32. package/dist/VisuallyHidden-ByNP7ZUI.mjs.map +1 -0
  33. package/dist/accordion/Accordion.d.ts +27 -0
  34. package/dist/accordion/AccordionItem.d.ts +12 -0
  35. package/dist/accordion/AccordionItemContent.d.ts +12 -0
  36. package/dist/accordion/AccordionItemHeader.d.ts +9 -0
  37. package/dist/accordion/AccordionItemTrigger.d.ts +12 -0
  38. package/dist/accordion/index.d.ts +10 -68
  39. package/dist/accordion/index.js +2 -325
  40. package/dist/accordion/index.js.map +1 -1
  41. package/dist/accordion/index.mjs +632 -154
  42. package/dist/accordion/index.mjs.map +1 -1
  43. package/dist/accordion/useRenderSlot.d.ts +3 -0
  44. package/dist/alert-dialog/AlertDialog.d.ts +29 -0
  45. package/dist/alert-dialog/AlertDialogAction.d.ts +13 -0
  46. package/dist/alert-dialog/AlertDialogBody.d.ts +12 -0
  47. package/dist/alert-dialog/AlertDialogCancel.d.ts +13 -0
  48. package/dist/alert-dialog/AlertDialogContent.d.ts +9 -0
  49. package/dist/alert-dialog/AlertDialogContext.d.ts +12 -0
  50. package/dist/alert-dialog/AlertDialogDescription.d.ts +9 -0
  51. package/dist/alert-dialog/AlertDialogFooter.d.ts +10 -0
  52. package/dist/alert-dialog/AlertDialogHeader.d.ts +10 -0
  53. package/dist/alert-dialog/AlertDialogOverlay.d.ts +9 -0
  54. package/dist/alert-dialog/AlertDialogPortal.d.ts +7 -0
  55. package/dist/alert-dialog/AlertDialogTitle.d.ts +9 -0
  56. package/dist/alert-dialog/AlertDialogTrigger.d.ts +13 -0
  57. package/dist/alert-dialog/index.d.ts +26 -147
  58. package/dist/alert-dialog/index.js +35 -405
  59. package/dist/alert-dialog/index.js.map +1 -1
  60. package/dist/alert-dialog/index.mjs +2513 -258
  61. package/dist/alert-dialog/index.mjs.map +1 -1
  62. package/dist/alert-dialog/useRenderSlot.d.ts +3 -0
  63. package/dist/avatar/Avatar.d.ts +3 -0
  64. package/dist/avatar/AvatarAction.d.ts +9 -0
  65. package/dist/avatar/AvatarImage.d.ts +7 -0
  66. package/dist/avatar/AvatarOnlineBadge.d.ts +9 -0
  67. package/dist/avatar/AvatarPlaceholder.d.ts +8 -0
  68. package/dist/avatar/AvatarUser.d.ts +7 -0
  69. package/dist/avatar/context.d.ts +5 -0
  70. package/dist/avatar/index.d.ts +8 -59
  71. package/dist/avatar/index.js +2 -1323
  72. package/dist/avatar/index.js.map +1 -1
  73. package/dist/avatar/index.mjs +149 -207
  74. package/dist/avatar/index.mjs.map +1 -1
  75. package/dist/avatar/types.d.ts +24 -0
  76. package/dist/badge/Badge.d.ts +9 -0
  77. package/dist/badge/BadgeItem.d.ts +31 -0
  78. package/dist/badge/BadgeItem.styles.d.ts +7 -0
  79. package/dist/badge/index.d.ts +1 -47
  80. package/dist/badge/index.js +2 -122
  81. package/dist/badge/index.js.map +1 -1
  82. package/dist/badge/index.mjs +32 -44
  83. package/dist/badge/index.mjs.map +1 -1
  84. package/dist/breadcrumb/Breadcrumb.d.ts +10 -0
  85. package/dist/breadcrumb/Breadcrumb.styles.d.ts +0 -0
  86. package/dist/breadcrumb/BreadcrumbCurrentPage.d.ts +11 -0
  87. package/dist/breadcrumb/BreadcrumbItem.d.ts +9 -0
  88. package/dist/breadcrumb/BreadcrumbLink.d.ts +12 -0
  89. package/dist/breadcrumb/BreadcrumbSeparator.d.ts +10 -0
  90. package/dist/breadcrumb/index.d.ts +7 -59
  91. package/dist/breadcrumb/index.js +2 -327
  92. package/dist/breadcrumb/index.js.map +1 -1
  93. package/dist/breadcrumb/index.mjs +106 -146
  94. package/dist/breadcrumb/index.mjs.map +1 -1
  95. package/dist/button/Button.d.ts +26 -0
  96. package/dist/button/Button.styles.d.ts +10 -0
  97. package/dist/button/index.d.ts +1 -41
  98. package/dist/button/index.js +2 -935
  99. package/dist/button/index.js.map +1 -1
  100. package/dist/button/index.mjs +3 -8
  101. package/dist/button/index.mjs.map +1 -1
  102. package/dist/button/variants/contrast.d.ts +45 -0
  103. package/dist/button/variants/filled.d.ts +45 -0
  104. package/dist/button/variants/ghost.d.ts +45 -0
  105. package/dist/button/variants/index.d.ts +5 -0
  106. package/dist/button/variants/outlined.d.ts +45 -0
  107. package/dist/button/variants/tinted.d.ts +45 -0
  108. package/dist/card/Backdrop.d.ts +14 -0
  109. package/dist/card/Card.d.ts +16 -0
  110. package/dist/card/Card.styles.d.ts +7 -0
  111. package/dist/card/Content.d.ts +15 -0
  112. package/dist/card/Content.styles.d.ts +8 -0
  113. package/dist/card/context.d.ts +11 -0
  114. package/dist/card/index.d.ts +5 -58
  115. package/dist/card/index.js +2 -502
  116. package/dist/card/index.js.map +1 -1
  117. package/dist/card/index.mjs +125 -178
  118. package/dist/card/index.mjs.map +1 -1
  119. package/dist/card/utils.d.ts +3 -0
  120. package/dist/carousel/Carousel.d.ts +12 -0
  121. package/dist/carousel/CarouselControls.d.ts +9 -0
  122. package/dist/carousel/CarouselNextButton.d.ts +5 -0
  123. package/dist/carousel/CarouselPageIndicator.d.ts +14 -0
  124. package/dist/carousel/CarouselPagePicker.d.ts +14 -0
  125. package/dist/carousel/CarouselPrevButton.d.ts +5 -0
  126. package/dist/carousel/CarouselSlide.d.ts +12 -0
  127. package/dist/carousel/CarouselSlides.d.ts +10 -0
  128. package/dist/carousel/CarouselViewport.d.ts +9 -0
  129. package/dist/carousel/index.d.ts +18 -263
  130. package/dist/carousel/index.js +2 -1882
  131. package/dist/carousel/index.js.map +1 -1
  132. package/dist/carousel/index.mjs +428 -650
  133. package/dist/carousel/index.mjs.map +1 -1
  134. package/dist/carousel/{index.d.mts → types.d.ts} +13 -112
  135. package/dist/carousel/useCarousel.d.ts +2 -0
  136. package/dist/carousel/useCarouselVisibility.d.ts +13 -0
  137. package/dist/carousel/useEvent.d.ts +7 -0
  138. package/dist/carousel/useIsMounted.d.ts +1 -0
  139. package/dist/carousel/useIsVisible.d.ts +6 -0
  140. package/dist/carousel/useResizeObserver.d.ts +2 -0
  141. package/dist/carousel/useScrollEnd.d.ts +3 -0
  142. package/dist/carousel/useSnapPoints.d.ts +10 -0
  143. package/dist/carousel/utils.d.ts +24 -0
  144. package/dist/checkbox/Checkbox.d.ts +10 -0
  145. package/dist/checkbox/CheckboxGroup.d.ts +18 -0
  146. package/dist/checkbox/CheckboxGroup.styles.d.ts +5 -0
  147. package/dist/checkbox/CheckboxGroupContext.d.ts +41 -0
  148. package/dist/checkbox/CheckboxIndicator.d.ts +9 -0
  149. package/dist/checkbox/CheckboxInput.d.ts +47 -0
  150. package/dist/checkbox/CheckboxInput.styles.d.ts +5 -0
  151. package/dist/checkbox/CheckboxLabel.d.ts +12 -0
  152. package/dist/checkbox/CheckboxLabel.styles.d.ts +5 -0
  153. package/dist/checkbox/index.d.ts +2 -120
  154. package/dist/checkbox/index.js +2 -511
  155. package/dist/checkbox/index.js.map +1 -1
  156. package/dist/checkbox/index.mjs +371 -226
  157. package/dist/checkbox/index.mjs.map +1 -1
  158. package/dist/chip/Chip.d.ts +34 -0
  159. package/dist/chip/Chip.styles.d.ts +8 -0
  160. package/dist/chip/ChipClearButton.d.ts +10 -0
  161. package/dist/chip/ChipClearButton.styles.d.ts +10 -0
  162. package/dist/chip/ChipContent.d.ts +8 -0
  163. package/dist/chip/ChipIcon.d.ts +8 -0
  164. package/dist/chip/ChipLeadingIcon.d.ts +9 -0
  165. package/dist/chip/ChipTrailingIcon.d.ts +9 -0
  166. package/dist/chip/index.d.ts +10 -92
  167. package/dist/chip/index.js +2 -908
  168. package/dist/chip/index.js.map +1 -1
  169. package/dist/chip/index.mjs +390 -322
  170. package/dist/chip/index.mjs.map +1 -1
  171. package/dist/chip/useChipContext.d.ts +4 -0
  172. package/dist/chip/useChipElement.d.ts +41 -0
  173. package/dist/chip/variants/dashed.d.ts +49 -0
  174. package/dist/chip/variants/index.d.ts +3 -0
  175. package/dist/chip/variants/outlined.d.ts +49 -0
  176. package/dist/chip/variants/tinted.d.ts +49 -0
  177. package/dist/collapsible/Content.d.ts +12 -0
  178. package/dist/collapsible/Root.d.ts +12 -0
  179. package/dist/collapsible/Trigger.d.ts +11 -0
  180. package/dist/collapsible/index.d.ts +4 -40
  181. package/dist/collapsible/index.js +2 -109
  182. package/dist/collapsible/index.js.map +1 -1
  183. package/dist/collapsible/index.mjs +214 -58
  184. package/dist/collapsible/index.mjs.map +1 -1
  185. package/dist/collapsible/useRenderSlot.d.ts +3 -0
  186. package/dist/combobox/Combobox.d.ts +6 -0
  187. package/dist/combobox/ComboboxClearButton.d.ts +9 -0
  188. package/dist/combobox/ComboboxContext.d.ts +108 -0
  189. package/dist/combobox/ComboboxDisclosure.d.ts +13 -0
  190. package/dist/combobox/ComboboxEmpty.d.ts +11 -0
  191. package/dist/combobox/ComboboxGroup.d.ts +11 -0
  192. package/dist/combobox/ComboboxInput.d.ts +15 -0
  193. package/dist/combobox/ComboboxItem.d.ts +12 -0
  194. package/dist/combobox/ComboboxItemContext.d.ts +17 -0
  195. package/dist/combobox/ComboboxItemIndicator.d.ts +11 -0
  196. package/dist/combobox/ComboboxItemText.d.ts +10 -0
  197. package/dist/combobox/ComboboxItems.d.ts +11 -0
  198. package/dist/combobox/ComboboxItemsGroupContext.d.ts +8 -0
  199. package/dist/combobox/ComboboxLabel.d.ts +11 -0
  200. package/dist/combobox/ComboboxLeadingIcon.d.ts +7 -0
  201. package/dist/combobox/ComboboxPopover.d.ts +10 -0
  202. package/dist/combobox/ComboboxPortal.d.ts +2 -0
  203. package/dist/combobox/ComboboxSelectedItems.d.ts +4 -0
  204. package/dist/combobox/ComboboxTrigger.d.ts +11 -0
  205. package/dist/combobox/ComboboxTrigger.styles.d.ts +6 -0
  206. package/dist/combobox/index.d.ts +19 -271
  207. package/dist/combobox/index.js +2 -2588
  208. package/dist/combobox/index.js.map +1 -1
  209. package/dist/combobox/index.mjs +623 -1017
  210. package/dist/combobox/index.mjs.map +1 -1
  211. package/dist/combobox/tests/test-utils.d.ts +8 -0
  212. package/dist/combobox/types.d.ts +8 -0
  213. package/dist/combobox/useCombobox/multipleSelectionReducer.d.ts +13 -0
  214. package/dist/combobox/useCombobox/singleSelectionReducer.d.ts +8 -0
  215. package/dist/combobox/utils/index.d.ts +14 -0
  216. package/dist/combobox/utils/useWidthIncreaseCallback.d.ts +2 -0
  217. package/dist/composite-Br3kM5N9.mjs +40 -0
  218. package/dist/composite-Br3kM5N9.mjs.map +1 -0
  219. package/dist/composite-fJD9R7R0.js +2 -0
  220. package/dist/composite-fJD9R7R0.js.map +1 -0
  221. package/dist/detectBrowser-Bc7rk5fI.mjs +44 -0
  222. package/dist/detectBrowser-Bc7rk5fI.mjs.map +1 -0
  223. package/dist/detectBrowser-DTbs_30X.js +2 -0
  224. package/dist/detectBrowser-DTbs_30X.js.map +1 -0
  225. package/dist/dialog/Dialog.d.ts +32 -0
  226. package/dist/dialog/DialogBody.d.ts +12 -0
  227. package/dist/dialog/DialogClose.d.ts +9 -0
  228. package/dist/dialog/DialogCloseButton.d.ts +9 -0
  229. package/dist/dialog/DialogContent.d.ts +14 -0
  230. package/dist/dialog/DialogContent.styles.d.ts +6 -0
  231. package/dist/dialog/DialogContext.d.ts +11 -0
  232. package/dist/dialog/DialogDescription.d.ts +9 -0
  233. package/dist/dialog/DialogFooter.d.ts +10 -0
  234. package/dist/dialog/DialogHeader.d.ts +10 -0
  235. package/dist/dialog/DialogOverlay.d.ts +9 -0
  236. package/dist/dialog/DialogPortal.d.ts +7 -0
  237. package/dist/dialog/DialogTitle.d.ts +9 -0
  238. package/dist/dialog/DialogTrigger.d.ts +17 -0
  239. package/dist/dialog/index.d.ts +25 -154
  240. package/dist/dialog/index.js +2 -1389
  241. package/dist/dialog/index.js.map +1 -1
  242. package/dist/dialog/index.mjs +163 -258
  243. package/dist/dialog/index.mjs.map +1 -1
  244. package/dist/divider/Divider.d.ts +30 -0
  245. package/dist/divider/Divider.styles.d.ts +9 -0
  246. package/dist/divider/DividerContent.d.ts +13 -0
  247. package/dist/divider/index.d.ts +4 -59
  248. package/dist/divider/index.js +2 -224
  249. package/dist/divider/index.js.map +1 -1
  250. package/dist/divider/index.mjs +97 -100
  251. package/dist/divider/index.mjs.map +1 -1
  252. package/dist/divider/variants/intents.d.ts +17 -0
  253. package/dist/downshift.esm-Ncwetv0s.mjs +3038 -0
  254. package/dist/downshift.esm-Ncwetv0s.mjs.map +1 -0
  255. package/dist/downshift.esm-PfCOUbxq.js +37 -0
  256. package/dist/downshift.esm-PfCOUbxq.js.map +1 -0
  257. package/dist/drawer/Drawer.d.ts +39 -0
  258. package/dist/drawer/DrawerBody.d.ts +11 -0
  259. package/dist/drawer/DrawerBody.styles.d.ts +5 -0
  260. package/dist/drawer/DrawerClose.d.ts +9 -0
  261. package/dist/drawer/DrawerCloseButton.d.ts +7 -0
  262. package/dist/drawer/DrawerContent.d.ts +10 -0
  263. package/dist/drawer/DrawerContent.styles.d.ts +6 -0
  264. package/dist/drawer/DrawerContext.d.ts +9 -0
  265. package/dist/drawer/DrawerDescription.d.ts +9 -0
  266. package/dist/drawer/DrawerFooter.d.ts +8 -0
  267. package/dist/drawer/DrawerHeader.d.ts +10 -0
  268. package/dist/drawer/DrawerOverlay.d.ts +9 -0
  269. package/dist/drawer/DrawerPortal.d.ts +7 -0
  270. package/dist/drawer/DrawerTitle.d.ts +9 -0
  271. package/dist/drawer/DrawerTrigger.d.ts +13 -0
  272. package/dist/drawer/index.d.ts +24 -141
  273. package/dist/drawer/index.js +2 -1400
  274. package/dist/drawer/index.js.map +1 -1
  275. package/dist/drawer/index.mjs +141 -230
  276. package/dist/drawer/index.mjs.map +1 -1
  277. package/dist/dropdown/Dropdown.d.ts +6 -0
  278. package/dist/dropdown/DropdownContext.d.ts +81 -0
  279. package/dist/dropdown/DropdownDivider.d.ts +10 -0
  280. package/dist/dropdown/DropdownGroup.d.ts +11 -0
  281. package/dist/dropdown/DropdownItem.d.ts +12 -0
  282. package/dist/dropdown/DropdownItemContext.d.ts +17 -0
  283. package/dist/dropdown/DropdownItemIndicator.d.ts +11 -0
  284. package/dist/dropdown/DropdownItemText.d.ts +9 -0
  285. package/dist/dropdown/DropdownItems.d.ts +21 -0
  286. package/dist/dropdown/DropdownItemsGroupContext.d.ts +8 -0
  287. package/dist/dropdown/DropdownLabel.d.ts +11 -0
  288. package/dist/dropdown/DropdownLeadingIcon.d.ts +7 -0
  289. package/dist/dropdown/DropdownPopover.d.ts +6 -0
  290. package/dist/dropdown/DropdownPortal.d.ts +2 -0
  291. package/dist/dropdown/DropdownTrigger.d.ts +12 -0
  292. package/dist/dropdown/DropdownTrigger.styles.d.ts +5 -0
  293. package/dist/dropdown/DropdownValue.d.ts +11 -0
  294. package/dist/dropdown/index.d.ts +16 -220
  295. package/dist/dropdown/index.js +2 -2051
  296. package/dist/dropdown/index.js.map +1 -1
  297. package/dist/dropdown/index.mjs +352 -584
  298. package/dist/dropdown/index.mjs.map +1 -1
  299. package/dist/dropdown/types.d.ts +8 -0
  300. package/dist/dropdown/useDropdown.d.ts +41 -0
  301. package/dist/dropdown/utils.d.ts +13 -0
  302. package/dist/file-upload/FileUpload.d.ts +130 -0
  303. package/dist/file-upload/FileUploadAcceptedFile.d.ts +25 -0
  304. package/dist/file-upload/FileUploadContext.d.ts +17 -0
  305. package/dist/file-upload/FileUploadDropzone.d.ts +10 -0
  306. package/dist/file-upload/FileUploadItemDeleteTrigger.d.ts +11 -0
  307. package/dist/file-upload/FileUploadPreviewImage.d.ts +17 -0
  308. package/dist/file-upload/FileUploadRejectedFile.d.ts +24 -0
  309. package/dist/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +12 -0
  310. package/dist/file-upload/FileUploadTrigger.d.ts +12 -0
  311. package/dist/file-upload/constants.d.ts +29 -0
  312. package/dist/file-upload/index.d.ts +14 -262
  313. package/dist/file-upload/index.js +2 -2255
  314. package/dist/file-upload/index.js.map +1 -1
  315. package/dist/file-upload/index.mjs +506 -834
  316. package/dist/file-upload/index.mjs.map +1 -1
  317. package/dist/file-upload/test-utils.d.ts +9 -0
  318. package/dist/file-upload/useFileUploadState.d.ts +88 -0
  319. package/dist/file-upload/utils.d.ts +40 -0
  320. package/dist/floating-ui.utils.dom-CCN4I08l.js +2 -0
  321. package/dist/floating-ui.utils.dom-CCN4I08l.js.map +1 -0
  322. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs +136 -0
  323. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs.map +1 -0
  324. package/dist/form-field/FormField.d.ts +21 -0
  325. package/dist/form-field/FormFieldAlertMessage.d.ts +9 -0
  326. package/dist/form-field/FormFieldCharactersCount.d.ts +26 -0
  327. package/dist/form-field/FormFieldContext.d.ts +49 -0
  328. package/dist/form-field/FormFieldControl.d.ts +12 -0
  329. package/dist/form-field/FormFieldErrorMessage.d.ts +9 -0
  330. package/dist/form-field/FormFieldHelperMessage.d.ts +9 -0
  331. package/dist/form-field/FormFieldLabel.d.ts +13 -0
  332. package/dist/form-field/FormFieldMessage.d.ts +8 -0
  333. package/dist/form-field/FormFieldProvider.d.ts +9 -0
  334. package/dist/form-field/FormFieldRequiredIndicator.d.ts +9 -0
  335. package/dist/form-field/FormFieldStateMessage.d.ts +10 -0
  336. package/dist/form-field/FormFieldSuccessMessage.d.ts +9 -0
  337. package/dist/form-field/index.d.ts +21 -176
  338. package/dist/form-field/index.js +2 -553
  339. package/dist/form-field/index.js.map +1 -1
  340. package/dist/form-field/index.mjs +246 -349
  341. package/dist/form-field/index.mjs.map +1 -1
  342. package/dist/icon/Icon.d.ts +17 -0
  343. package/dist/icon/Icon.styles.d.ts +6 -0
  344. package/dist/icon/index.d.ts +1 -28
  345. package/dist/icon/index.js +2 -127
  346. package/dist/icon/index.js.map +1 -1
  347. package/dist/icon/index.mjs +3 -7
  348. package/dist/icon/index.mjs.map +1 -1
  349. package/dist/icon-button/IconButton.d.ts +10 -0
  350. package/dist/icon-button/IconButton.styles.d.ts +5 -0
  351. package/dist/icon-button/index.d.ts +1 -16
  352. package/dist/icon-button/index.js +2 -980
  353. package/dist/icon-button/index.js.map +1 -1
  354. package/dist/icon-button/index.mjs +3 -9
  355. package/dist/icon-button/index.mjs.map +1 -1
  356. package/dist/index-0KYGKeVg.js +2 -0
  357. package/dist/index-0KYGKeVg.js.map +1 -0
  358. package/dist/index-1WIgmEZh.js +2 -0
  359. package/dist/index-1WIgmEZh.js.map +1 -0
  360. package/dist/index-BRi38DTc.mjs +21 -0
  361. package/dist/index-BRi38DTc.mjs.map +1 -0
  362. package/dist/index-BZAtNKwE.mjs +71 -0
  363. package/dist/index-BZAtNKwE.mjs.map +1 -0
  364. package/dist/index-BZPx6jYI.mjs +9 -0
  365. package/dist/index-BZPx6jYI.mjs.map +1 -0
  366. package/dist/index-BlkdpEIe.mjs +55 -0
  367. package/dist/index-BlkdpEIe.mjs.map +1 -0
  368. package/dist/index-BmAFn37q.mjs +49 -0
  369. package/dist/index-BmAFn37q.mjs.map +1 -0
  370. package/dist/index-C-J_tHdS.js +6 -0
  371. package/dist/index-C-J_tHdS.js.map +1 -0
  372. package/dist/index-C1qb0595.mjs +28 -0
  373. package/dist/index-C1qb0595.mjs.map +1 -0
  374. package/dist/index-C34GgsKQ.mjs +54 -0
  375. package/dist/index-C34GgsKQ.mjs.map +1 -0
  376. package/dist/index-CCKe-Mpx.mjs +7 -0
  377. package/dist/index-CCKe-Mpx.mjs.map +1 -0
  378. package/dist/index-CDBBjNXc.js +2 -0
  379. package/dist/index-CDBBjNXc.js.map +1 -0
  380. package/dist/index-CYjGhVvU.mjs +243 -0
  381. package/dist/index-CYjGhVvU.mjs.map +1 -0
  382. package/dist/index-ChLwd62c.js +2 -0
  383. package/dist/index-ChLwd62c.js.map +1 -0
  384. package/dist/index-Cjj_rUPu.js +2 -0
  385. package/dist/index-Cjj_rUPu.js.map +1 -0
  386. package/dist/index-CyMbLkj0.js +2 -0
  387. package/dist/index-CyMbLkj0.js.map +1 -0
  388. package/dist/index-DFZozV_h.mjs +69 -0
  389. package/dist/index-DFZozV_h.mjs.map +1 -0
  390. package/dist/index-DKuHkHFX.js +2 -0
  391. package/dist/index-DKuHkHFX.js.map +1 -0
  392. package/dist/index-DLHLIYPI.mjs +16 -0
  393. package/dist/index-DLHLIYPI.mjs.map +1 -0
  394. package/dist/index-DO-atGp-.js +2 -0
  395. package/dist/index-DO-atGp-.js.map +1 -0
  396. package/dist/index-DWlg8lkk.mjs +179 -0
  397. package/dist/index-DWlg8lkk.mjs.map +1 -0
  398. package/dist/index-DYxWvftI.js +2 -0
  399. package/dist/index-DYxWvftI.js.map +1 -0
  400. package/dist/index-D_lWkK39.mjs +803 -0
  401. package/dist/index-D_lWkK39.mjs.map +1 -0
  402. package/dist/index-DdkVj7D0.js +18 -0
  403. package/dist/index-DdkVj7D0.js.map +1 -0
  404. package/dist/index-De-6atSi.js +2 -0
  405. package/dist/index-De-6atSi.js.map +1 -0
  406. package/dist/index-DhGWNzsz.mjs +83 -0
  407. package/dist/index-DhGWNzsz.mjs.map +1 -0
  408. package/dist/index-Dkj4QRX8.js +2 -0
  409. package/dist/index-Dkj4QRX8.js.map +1 -0
  410. package/dist/index-DlIFg0Eu.mjs +60 -0
  411. package/dist/index-DlIFg0Eu.mjs.map +1 -0
  412. package/dist/index-DnaHaH_0.js +2 -0
  413. package/dist/index-DnaHaH_0.js.map +1 -0
  414. package/dist/index-MHF2-CYX.js +2 -0
  415. package/dist/index-MHF2-CYX.js.map +1 -0
  416. package/dist/index-MQ0c3ZX_.js +2 -0
  417. package/dist/index-MQ0c3ZX_.js.map +1 -0
  418. package/dist/index-MSR-vgWR.mjs +37 -0
  419. package/dist/index-MSR-vgWR.mjs.map +1 -0
  420. package/dist/index-VL0YEmOW.mjs +125 -0
  421. package/dist/index-VL0YEmOW.mjs.map +1 -0
  422. package/dist/index-tXqxYME3.js +42 -0
  423. package/dist/index-tXqxYME3.js.map +1 -0
  424. package/dist/inertValue-Bif5Sqs6.mjs +522 -0
  425. package/dist/inertValue-Bif5Sqs6.mjs.map +1 -0
  426. package/dist/inertValue-ShwihJSN.js +5 -0
  427. package/dist/inertValue-ShwihJSN.js.map +1 -0
  428. package/dist/input/Input.d.ts +14 -0
  429. package/dist/input/Input.styles.d.ts +11 -0
  430. package/dist/input/InputAddon.d.ts +9 -0
  431. package/dist/input/InputAddon.styles.d.ts +9 -0
  432. package/dist/input/InputClearButton.d.ts +12 -0
  433. package/dist/input/InputGroup.d.ts +17 -0
  434. package/dist/input/InputGroup.styles.d.ts +6 -0
  435. package/dist/input/InputGroupContext.d.ts +14 -0
  436. package/dist/input/InputIcon.d.ts +6 -0
  437. package/dist/input/InputLeadingAddon.d.ts +11 -0
  438. package/dist/input/InputLeadingIcon.d.ts +7 -0
  439. package/dist/input/InputTrailingAddon.d.ts +11 -0
  440. package/dist/input/InputTrailingIcon.d.ts +7 -0
  441. package/dist/input/index.d.ts +15 -72
  442. package/dist/input/index.js +2 -724
  443. package/dist/input/index.js.map +1 -1
  444. package/dist/input/index.mjs +453 -12
  445. package/dist/input/index.mjs.map +1 -1
  446. package/dist/input-otp/InputOTP.d.ts +85 -0
  447. package/dist/input-otp/InputOTP.styles.d.ts +10 -0
  448. package/dist/input-otp/InputOTPContext.d.ts +16 -0
  449. package/dist/input-otp/InputOTPGroup.d.ts +7 -0
  450. package/dist/input-otp/InputOTPSeparator.d.ts +7 -0
  451. package/dist/input-otp/InputOTPSlot.d.ts +12 -0
  452. package/dist/input-otp/index.d.ts +14 -0
  453. package/dist/input-otp/index.js +2 -0
  454. package/dist/input-otp/index.js.map +1 -0
  455. package/dist/input-otp/index.mjs +390 -0
  456. package/dist/input-otp/index.mjs.map +1 -0
  457. package/dist/input-otp/useInputOTP.d.ts +45 -0
  458. package/dist/kbd/Kbd.d.ts +5 -0
  459. package/dist/kbd/index.d.ts +1 -9
  460. package/dist/kbd/index.js +2 -47
  461. package/dist/kbd/index.js.map +1 -1
  462. package/dist/kbd/index.mjs +15 -18
  463. package/dist/kbd/index.mjs.map +1 -1
  464. package/dist/label/Label.d.ts +9 -0
  465. package/dist/label/LabelRequiredIndicator.d.ts +6 -0
  466. package/dist/label/index.d.ts +5 -9
  467. package/dist/label/index.js +2 -78
  468. package/dist/label/index.js.map +1 -1
  469. package/dist/label/index.mjs +3 -5
  470. package/dist/label/index.mjs.map +1 -1
  471. package/dist/link-box/LinkBox.d.ts +8 -0
  472. package/dist/link-box/LinkBoxLink.d.ts +8 -0
  473. package/dist/link-box/LinkBoxRaised.d.ts +9 -0
  474. package/dist/link-box/index.d.ts +6 -31
  475. package/dist/link-box/index.js +2 -92
  476. package/dist/link-box/index.js.map +1 -1
  477. package/dist/link-box/index.mjs +34 -56
  478. package/dist/link-box/index.mjs.map +1 -1
  479. package/dist/pagination/Pagination.d.ts +8 -0
  480. package/dist/pagination/PaginationContext.d.ts +43 -0
  481. package/dist/pagination/PaginationEllipsis.d.ts +9 -0
  482. package/dist/pagination/PaginationFirstPageTrigger.d.ts +16 -0
  483. package/dist/pagination/PaginationItem.d.ts +17 -0
  484. package/dist/pagination/PaginationLastPageTrigger.d.ts +16 -0
  485. package/dist/pagination/PaginationNextTrigger.d.ts +16 -0
  486. package/dist/pagination/PaginationPages.d.ts +16 -0
  487. package/dist/pagination/PaginationPrevTrigger.d.ts +16 -0
  488. package/dist/pagination/index.d.ts +10 -135
  489. package/dist/pagination/index.js +2 -1353
  490. package/dist/pagination/index.js.map +1 -1
  491. package/dist/pagination/index.mjs +893 -268
  492. package/dist/pagination/index.mjs.map +1 -1
  493. package/dist/pagination/utils.d.ts +1 -0
  494. package/dist/popover/Popover.d.ts +9 -0
  495. package/dist/popover/PopoverAnchor.d.ts +9 -0
  496. package/dist/popover/PopoverArrow.d.ts +9 -0
  497. package/dist/popover/PopoverCloseButton.d.ts +10 -0
  498. package/dist/popover/PopoverContent.d.ts +10 -0
  499. package/dist/popover/PopoverContent.styles.d.ts +9 -0
  500. package/dist/popover/PopoverContext.d.ts +15 -0
  501. package/dist/popover/PopoverHeader.d.ts +10 -0
  502. package/dist/popover/PopoverPortal.d.ts +7 -0
  503. package/dist/popover/PopoverTrigger.d.ts +9 -0
  504. package/dist/popover/index.d.ts +17 -6
  505. package/dist/popover/index.js +2 -1339
  506. package/dist/popover/index.js.map +1 -1
  507. package/dist/popover/index.mjs +1868 -11
  508. package/dist/popover/index.mjs.map +1 -1
  509. package/dist/portal/{index.d.mts → Portal.d.ts} +2 -5
  510. package/dist/portal/index.d.ts +1 -13
  511. package/dist/portal/index.js +2 -37
  512. package/dist/portal/index.js.map +1 -1
  513. package/dist/portal/index.mjs +5 -8
  514. package/dist/portal/index.mjs.map +1 -1
  515. package/dist/progress/Progress.d.ts +16 -0
  516. package/dist/progress/ProgressBar.d.ts +6 -0
  517. package/dist/progress/ProgressBar.styles.d.ts +5 -0
  518. package/dist/progress/ProgressContext.d.ts +13 -0
  519. package/dist/progress/ProgressIndicator.d.ts +6 -0
  520. package/dist/progress/ProgressIndicator.styles.d.ts +7 -0
  521. package/dist/progress/ProgressLabel.d.ts +6 -0
  522. package/dist/progress/index.d.ts +9 -48
  523. package/dist/progress/index.js +6 -239
  524. package/dist/progress/index.js.map +1 -1
  525. package/dist/progress/index.mjs +241 -5
  526. package/dist/progress/index.mjs.map +1 -1
  527. package/dist/progress-tracker/ProgressTracker.d.ts +27 -0
  528. package/dist/progress-tracker/ProgressTracker.styles.d.ts +1 -0
  529. package/dist/progress-tracker/ProgressTrackerContext.d.ts +15 -0
  530. package/dist/progress-tracker/ProgressTrackerStep.d.ts +12 -0
  531. package/dist/progress-tracker/ProgressTrackerStep.styles.d.ts +10 -0
  532. package/dist/progress-tracker/ProgressTrackerStepIndicator.d.ts +15 -0
  533. package/dist/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +7 -0
  534. package/dist/progress-tracker/ProgressTrackerStepLabel.d.ts +9 -0
  535. package/dist/progress-tracker/index.d.ts +10 -80
  536. package/dist/progress-tracker/index.js +2 -571
  537. package/dist/progress-tracker/index.js.map +1 -1
  538. package/dist/progress-tracker/index.mjs +115 -183
  539. package/dist/progress-tracker/index.mjs.map +1 -1
  540. package/dist/radio-group/Radio.d.ts +9 -0
  541. package/dist/radio-group/RadioGroup.d.ts +54 -0
  542. package/dist/radio-group/RadioGroup.styles.d.ts +5 -0
  543. package/dist/radio-group/RadioGroupContext.d.ts +5 -0
  544. package/dist/radio-group/RadioGroupProvider.d.ts +7 -0
  545. package/dist/radio-group/RadioIndicator.d.ts +18 -0
  546. package/dist/radio-group/RadioIndicator.styles.d.ts +5 -0
  547. package/dist/radio-group/RadioInput.d.ts +25 -0
  548. package/dist/radio-group/RadioInput.styles.d.ts +5 -0
  549. package/dist/radio-group/RadioLabel.d.ts +20 -0
  550. package/dist/radio-group/RadioLabel.styles.d.ts +5 -0
  551. package/dist/radio-group/index.d.ts +5 -98
  552. package/dist/radio-group/index.js +2 -318
  553. package/dist/radio-group/index.js.map +1 -1
  554. package/dist/radio-group/index.mjs +332 -174
  555. package/dist/radio-group/index.mjs.map +1 -1
  556. package/dist/rating/Rating.d.ts +52 -0
  557. package/dist/rating/RatingStar.d.ts +10 -0
  558. package/dist/rating/RatingStar.styles.d.ts +14 -0
  559. package/dist/rating/index.d.ts +1 -78
  560. package/dist/rating/index.js +2 -363
  561. package/dist/rating/index.js.map +1 -1
  562. package/dist/rating/index.mjs +125 -170
  563. package/dist/rating/index.mjs.map +1 -1
  564. package/dist/rating/types.d.ts +1 -0
  565. package/dist/rating/utils.d.ts +8 -0
  566. package/dist/scrolling-list/ScrollingList.d.ts +57 -0
  567. package/dist/scrolling-list/ScrollingListControls.d.ts +18 -0
  568. package/dist/scrolling-list/ScrollingListItem.d.ts +17 -0
  569. package/dist/scrolling-list/ScrollingListItems.d.ts +11 -0
  570. package/dist/scrolling-list/ScrollingListNextButton.d.ts +5 -0
  571. package/dist/scrolling-list/ScrollingListPrevButton.d.ts +5 -0
  572. package/dist/scrolling-list/ScrollingListSkipButton.d.ts +9 -0
  573. package/dist/scrolling-list/index.d.ts +14 -117
  574. package/dist/scrolling-list/index.js +2 -1428
  575. package/dist/scrolling-list/index.js.map +1 -1
  576. package/dist/scrolling-list/index.mjs +358 -325
  577. package/dist/scrolling-list/index.mjs.map +1 -1
  578. package/dist/scrolling-list/useFocusWithinScroll.d.ts +3 -0
  579. package/dist/segmented-gauge/{index.d.mts → SegmentedGauge.d.ts} +4 -43
  580. package/dist/segmented-gauge/SegmentedGaugeContext.d.ts +14 -0
  581. package/dist/segmented-gauge/SegmentedGaugeLabel.d.ts +9 -0
  582. package/dist/segmented-gauge/SegmentedGaugeSegment.d.ts +12 -0
  583. package/dist/segmented-gauge/SegmentedGaugeTrack.d.ts +8 -0
  584. package/dist/segmented-gauge/index.d.ts +9 -101
  585. package/dist/segmented-gauge/index.js +2 -274
  586. package/dist/segmented-gauge/index.js.map +1 -1
  587. package/dist/segmented-gauge/index.mjs +132 -178
  588. package/dist/segmented-gauge/index.mjs.map +1 -1
  589. package/dist/select/Select.d.ts +6 -0
  590. package/dist/select/SelectContext.d.ts +59 -0
  591. package/dist/select/SelectGroup.d.ts +11 -0
  592. package/dist/select/SelectItem.d.ts +11 -0
  593. package/dist/select/SelectItems.d.ts +10 -0
  594. package/dist/select/SelectItemsGroupContext.d.ts +9 -0
  595. package/dist/select/SelectLabel.d.ts +8 -0
  596. package/dist/select/SelectLeadingIcon.d.ts +7 -0
  597. package/dist/select/SelectPlaceholder.d.ts +10 -0
  598. package/dist/select/SelectTrigger.d.ts +16 -0
  599. package/dist/select/SelectTrigger.styles.d.ts +5 -0
  600. package/dist/select/SelectValue.d.ts +15 -0
  601. package/dist/select/index.d.ts +12 -158
  602. package/dist/select/index.js +2 -581
  603. package/dist/select/index.js.map +1 -1
  604. package/dist/select/index.mjs +207 -339
  605. package/dist/select/index.mjs.map +1 -1
  606. package/dist/select/types.d.ts +6 -0
  607. package/dist/select/utils.d.ts +4 -0
  608. package/dist/skeleton/Skeleton.d.ts +17 -0
  609. package/dist/skeleton/Skeleton.styles.d.ts +5 -0
  610. package/dist/skeleton/SkeletonItem.d.ts +31 -0
  611. package/dist/skeleton/SkeletonItem.styles.d.ts +8 -0
  612. package/dist/skeleton/index.d.ts +8 -67
  613. package/dist/skeleton/index.js +2 -206
  614. package/dist/skeleton/index.js.map +1 -1
  615. package/dist/skeleton/index.mjs +64 -96
  616. package/dist/skeleton/index.mjs.map +1 -1
  617. package/dist/slider/Slider.d.ts +55 -0
  618. package/dist/slider/Slider.styles.d.ts +1 -0
  619. package/dist/slider/SliderContext.d.ts +4 -0
  620. package/dist/slider/SliderThumb.d.ts +14 -0
  621. package/dist/slider/SliderThumb.styles.d.ts +5 -0
  622. package/dist/slider/SliderTrack.d.ts +14 -0
  623. package/dist/slider/SliderTrack.styles.d.ts +9 -0
  624. package/dist/slider/index.d.ts +8 -97
  625. package/dist/slider/index.js +2 -220
  626. package/dist/slider/index.js.map +1 -1
  627. package/dist/slider/index.mjs +490 -107
  628. package/dist/slider/index.mjs.map +1 -1
  629. package/dist/slot/Slot.d.ts +12 -0
  630. package/dist/slot/index.d.ts +1 -16
  631. package/dist/slot/index.js +2 -51
  632. package/dist/slot/index.js.map +1 -1
  633. package/dist/slot/index.mjs +5 -9
  634. package/dist/slot/index.mjs.map +1 -1
  635. package/dist/snackbar/Snackbar.d.ts +29 -0
  636. package/dist/snackbar/SnackbarItem.d.ts +49 -0
  637. package/dist/snackbar/SnackbarItem.styles.d.ts +10 -0
  638. package/dist/snackbar/SnackbarItemAction.d.ts +10 -0
  639. package/dist/snackbar/SnackbarItemClose.d.ts +9 -0
  640. package/dist/snackbar/SnackbarItemContext.d.ts +8 -0
  641. package/dist/snackbar/SnackbarItemIcon.d.ts +7 -0
  642. package/dist/snackbar/SnackbarRegion.d.ts +30 -0
  643. package/dist/snackbar/SnackbarRegion.styles.d.ts +5 -0
  644. package/dist/snackbar/index.d.ts +13 -158
  645. package/dist/snackbar/index.js +2 -1756
  646. package/dist/snackbar/index.js.map +1 -1
  647. package/dist/snackbar/index.mjs +1153 -429
  648. package/dist/snackbar/index.mjs.map +1 -1
  649. package/dist/snackbar/snackbarVariants.d.ts +82 -0
  650. package/dist/snackbar/useSnackbarGlobalStore.d.ts +18 -0
  651. package/dist/snackbar/useSwipe.d.ts +15 -0
  652. package/dist/spinner/Spinner.d.ts +9 -0
  653. package/dist/spinner/Spinner.styles.d.ts +7 -0
  654. package/dist/spinner/index.d.ts +1 -21
  655. package/dist/spinner/index.js +2 -139
  656. package/dist/spinner/index.js.map +1 -1
  657. package/dist/spinner/index.mjs +3 -7
  658. package/dist/spinner/index.mjs.map +1 -1
  659. package/dist/stepper/Stepper.d.ts +9 -0
  660. package/dist/stepper/StepperButton.d.ts +14 -0
  661. package/dist/stepper/StepperInput.d.ts +7 -0
  662. package/dist/stepper/index.d.ts +9 -81
  663. package/dist/stepper/index.js +8 -1847
  664. package/dist/stepper/index.js.map +1 -1
  665. package/dist/stepper/index.mjs +2325 -197
  666. package/dist/stepper/index.mjs.map +1 -1
  667. package/dist/stepper/types.d.ts +46 -0
  668. package/dist/stepper/useStepper.d.ts +2 -0
  669. package/dist/switch/Switch.d.ts +6 -0
  670. package/dist/switch/{index.d.mts → SwitchInput.d.ts} +4 -17
  671. package/dist/switch/SwitchInput.styles.d.ts +16 -0
  672. package/dist/switch/SwitchLabel.d.ts +17 -0
  673. package/dist/switch/SwitchLabel.styles.d.ts +5 -0
  674. package/dist/switch/index.d.ts +1 -64
  675. package/dist/switch/index.js +2 -327
  676. package/dist/switch/index.js.map +1 -1
  677. package/dist/switch/index.mjs +213 -130
  678. package/dist/switch/index.mjs.map +1 -1
  679. package/dist/tabs/Tabs.d.ts +24 -0
  680. package/dist/tabs/TabsContent.d.ts +22 -0
  681. package/dist/tabs/TabsContent.styles.d.ts +3 -0
  682. package/dist/tabs/TabsContext.d.ts +7 -0
  683. package/dist/tabs/TabsList.d.ts +20 -0
  684. package/dist/tabs/TabsList.styles.d.ts +3 -0
  685. package/dist/tabs/TabsPopover.d.ts +29 -0
  686. package/dist/tabs/TabsPopoverAbstraction.d.ts +27 -0
  687. package/dist/tabs/TabsRoot.styles.d.ts +1 -0
  688. package/dist/tabs/TabsTrigger.d.ts +41 -0
  689. package/dist/tabs/TabsTrigger.styles.d.ts +8 -0
  690. package/dist/tabs/index.d.ts +13 -137
  691. package/dist/tabs/index.js +2 -1830
  692. package/dist/tabs/index.js.map +1 -1
  693. package/dist/tabs/index.mjs +374 -350
  694. package/dist/tabs/index.mjs.map +1 -1
  695. package/dist/tabs/useResizeObserver.d.ts +8 -0
  696. package/dist/tag/Tag.d.ts +17 -0
  697. package/dist/tag/Tag.styles.d.ts +8 -0
  698. package/dist/tag/index.d.ts +1 -29
  699. package/dist/tag/index.js +2 -283
  700. package/dist/tag/index.js.map +1 -1
  701. package/dist/tag/index.mjs +66 -90
  702. package/dist/tag/index.mjs.map +1 -1
  703. package/dist/tag/variants/filled.d.ts +41 -0
  704. package/dist/tag/variants/index.d.ts +3 -0
  705. package/dist/tag/variants/outlined.d.ts +37 -0
  706. package/dist/tag/variants/tinted.d.ts +37 -0
  707. package/dist/text-link/TextLink.d.ts +16 -0
  708. package/dist/text-link/index.d.ts +1 -20
  709. package/dist/text-link/index.js +2 -100
  710. package/dist/text-link/index.js.map +1 -1
  711. package/dist/text-link/index.mjs +3 -6
  712. package/dist/text-link/index.mjs.map +1 -1
  713. package/dist/textarea/Textarea.d.ts +14 -0
  714. package/dist/textarea/TextareaClearButton.d.ts +10 -0
  715. package/dist/textarea/TextareaGroup.d.ts +6 -0
  716. package/dist/textarea/TextareaLeadingIcon.d.ts +7 -0
  717. package/dist/textarea/TextareaTrailingIcon.d.ts +7 -0
  718. package/dist/textarea/index.d.ts +10 -53
  719. package/dist/textarea/index.js +2 -797
  720. package/dist/textarea/index.js.map +1 -1
  721. package/dist/textarea/index.mjs +50 -83
  722. package/dist/textarea/index.mjs.map +1 -1
  723. package/dist/toast/Toast.d.ts +4 -0
  724. package/dist/toast/Toast.styles.d.ts +10 -0
  725. package/dist/toast/index.d.ts +10 -53
  726. package/dist/toast/index.js +2 -1454
  727. package/dist/toast/index.js.map +1 -1
  728. package/dist/toast/index.mjs +1016 -208
  729. package/dist/toast/index.mjs.map +1 -1
  730. package/dist/toast/types.d.ts +41 -0
  731. package/dist/toast/useRenderSlot.d.ts +3 -0
  732. package/dist/toast/useToastManager.d.ts +2 -0
  733. package/dist/useCollapsiblePanel-D1dCo0lf.js +4 -0
  734. package/dist/useCollapsiblePanel-D1dCo0lf.js.map +1 -0
  735. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs +287 -0
  736. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs.map +1 -0
  737. package/dist/useFocusWithin-CFNEka2I.js +2 -0
  738. package/dist/useFocusWithin-CFNEka2I.js.map +1 -0
  739. package/dist/useFocusWithin-CoL4390f.mjs +796 -0
  740. package/dist/useFocusWithin-CoL4390f.mjs.map +1 -0
  741. package/dist/useOpenChangeComplete-Dk-u_f2y.js +2 -0
  742. package/dist/useOpenChangeComplete-Dk-u_f2y.js.map +1 -0
  743. package/dist/useOpenChangeComplete-RUbg6RBw.mjs +582 -0
  744. package/dist/useOpenChangeComplete-RUbg6RBw.mjs.map +1 -0
  745. package/dist/useTransitionStatus-CktVVKxz.mjs +46 -0
  746. package/dist/useTransitionStatus-CktVVKxz.mjs.map +1 -0
  747. package/dist/useTransitionStatus-CqbEyvIj.js +2 -0
  748. package/dist/useTransitionStatus-CqbEyvIj.js.map +1 -0
  749. package/dist/visually-hidden/VisuallyHidden.d.ts +12 -0
  750. package/dist/visually-hidden/index.d.ts +1 -16
  751. package/dist/visually-hidden/index.js +2 -67
  752. package/dist/visually-hidden/index.js.map +1 -1
  753. package/dist/visually-hidden/index.mjs +3 -6
  754. package/dist/visually-hidden/index.mjs.map +1 -1
  755. package/package.json +8 -8
  756. package/dist/Input-N8AWWSmt.d.mts +0 -41
  757. package/dist/Input-N8AWWSmt.d.ts +0 -41
  758. package/dist/InputTrailingIcon-BBp7sE6D.d.mts +0 -20
  759. package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +0 -20
  760. package/dist/LabelRequiredIndicator-DRnCzHMU.d.mts +0 -19
  761. package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +0 -19
  762. package/dist/accordion/index.d.mts +0 -73
  763. package/dist/alert-dialog/index.d.mts +0 -159
  764. package/dist/avatar/index.d.mts +0 -66
  765. package/dist/badge/index.d.mts +0 -47
  766. package/dist/breadcrumb/index.d.mts +0 -64
  767. package/dist/button/index.d.mts +0 -41
  768. package/dist/card/index.d.mts +0 -61
  769. package/dist/checkbox/index.d.mts +0 -120
  770. package/dist/chip/index.d.mts +0 -97
  771. package/dist/chunk-2YM6GKWW.mjs.map +0 -1
  772. package/dist/chunk-6QCEPQ3U.mjs +0 -26
  773. package/dist/chunk-6QCEPQ3U.mjs.map +0 -1
  774. package/dist/chunk-7EWSMIZU.mjs +0 -214
  775. package/dist/chunk-7EWSMIZU.mjs.map +0 -1
  776. package/dist/chunk-DCXWGQVZ.mjs +0 -53
  777. package/dist/chunk-DCXWGQVZ.mjs.map +0 -1
  778. package/dist/chunk-GAK4SC2F.mjs.map +0 -1
  779. package/dist/chunk-GPJMLIHC.mjs +0 -308
  780. package/dist/chunk-GPJMLIHC.mjs.map +0 -1
  781. package/dist/chunk-HLXYG643.mjs +0 -52
  782. package/dist/chunk-HLXYG643.mjs.map +0 -1
  783. package/dist/chunk-KEGAAGJW.mjs +0 -36
  784. package/dist/chunk-KEGAAGJW.mjs.map +0 -1
  785. package/dist/chunk-RKPP7ZOK.mjs.map +0 -1
  786. package/dist/chunk-UMUMFMFB.mjs +0 -68
  787. package/dist/chunk-UMUMFMFB.mjs.map +0 -1
  788. package/dist/chunk-VBX7BTNU.mjs +0 -614
  789. package/dist/chunk-VBX7BTNU.mjs.map +0 -1
  790. package/dist/chunk-XZ47F6TP.mjs.map +0 -1
  791. package/dist/collapsible/index.d.mts +0 -43
  792. package/dist/combobox/index.d.mts +0 -287
  793. package/dist/dialog/index.d.mts +0 -166
  794. package/dist/divider/index.d.mts +0 -61
  795. package/dist/docgen.json +0 -47767
  796. package/dist/drawer/index.d.mts +0 -152
  797. package/dist/dropdown/index.d.mts +0 -233
  798. package/dist/file-upload/index.d.mts +0 -270
  799. package/dist/form-field/index.d.mts +0 -186
  800. package/dist/icon/index.d.mts +0 -28
  801. package/dist/icon-button/index.d.mts +0 -16
  802. package/dist/index-Cno_GFuW.d.mts +0 -93
  803. package/dist/index-Cno_GFuW.d.ts +0 -93
  804. package/dist/input/index.d.mts +0 -78
  805. package/dist/kbd/index.d.mts +0 -9
  806. package/dist/label/index.d.mts +0 -11
  807. package/dist/link-box/index.d.mts +0 -34
  808. package/dist/pagination/index.d.mts +0 -143
  809. package/dist/popover/index.d.mts +0 -6
  810. package/dist/progress/index.d.mts +0 -52
  811. package/dist/progress-tracker/index.d.mts +0 -80
  812. package/dist/radio-group/index.d.mts +0 -100
  813. package/dist/rating/index.d.mts +0 -78
  814. package/dist/scrolling-list/index.d.mts +0 -118
  815. package/dist/select/index.d.mts +0 -167
  816. package/dist/skeleton/index.d.mts +0 -67
  817. package/dist/slider/index.d.mts +0 -97
  818. package/dist/slot/index.d.mts +0 -16
  819. package/dist/snackbar/index.d.mts +0 -158
  820. package/dist/spinner/index.d.mts +0 -21
  821. package/dist/stepper/index.d.mts +0 -81
  822. package/dist/tabs/index.d.mts +0 -137
  823. package/dist/tag/index.d.mts +0 -29
  824. package/dist/text-link/index.d.mts +0 -20
  825. package/dist/textarea/index.d.mts +0 -57
  826. package/dist/toast/index.d.mts +0 -63
  827. package/dist/visually-hidden/index.d.mts +0 -16
@@ -1,317 +1,942 @@
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);
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;
27
49
  }
28
- return arr.slice(start, end);
50
+ return e;
29
51
  }
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"
43
- }) => {
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
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;
508
+ }
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());
54
728
  });
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,
729
+ }
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"
745
+ }) => {
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,
59
757
  {
60
758
  value: {
61
- type,
759
+ type: c,
62
760
  pagination: {
63
- ...api,
64
- pages,
761
+ ...g,
762
+ pages: m,
65
763
  // Extending ZagJS anatomy
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
- }
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
+ })
82
776
  }
83
777
  },
84
- children
778
+ children: t
85
779
  }
86
780
  );
87
- };
88
- var usePagination = () => {
89
- const context = useContext(PaginationContext);
90
- if (!context) {
781
+ }, w = () => {
782
+ const t = At(Tt);
783
+ if (!t)
91
784
  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 })
92
801
  }
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
802
+ ), Ne = ({
803
+ children: t,
804
+ className: e
120
805
  }) => {
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 }) });
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 }) });
124
808
  };
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" }) });
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 || "…" }) });
140
816
  };
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
817
+ Y.displayName = "Pagination.Ellipsis";
818
+ const tt = ({
819
+ children: t,
820
+ className: e,
821
+ href: n,
822
+ ref: a,
823
+ ...r
153
824
  }) => {
154
- const { pagination: pagination2, type } = usePagination();
155
- const apiProps = pagination2.getFirstPageTriggerProps();
156
- const shouldDisableLink = type === "link" && apiProps["data-disabled"] === "";
157
- const localProps = {
825
+ const { pagination: i, type: s } = w(), c = i.getFirstPageTriggerProps(), u = s === "link" && c["data-disabled"] === "", f = {
158
826
  "data-spark-component": "pagination-first-page-trigger",
159
827
  intent: "support",
160
828
  design: "contrast",
161
- ...props,
162
- className,
163
- ...shouldDisableLink && {
164
- disabled: true,
829
+ ...r,
830
+ className: e,
831
+ ...u && {
832
+ disabled: !0,
165
833
  role: "link",
166
- "aria-disabled": true
834
+ "aria-disabled": !0
167
835
  }
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 }) });
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 }) });
175
841
  };
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 = {
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 = {
185
845
  "data-spark-component": "pagination-item",
186
846
  intent: "support",
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 }) });
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 }) });
193
852
  };
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
853
+ et.displayName = "Pagination.Item";
854
+ const nt = ({
855
+ children: t,
856
+ className: e,
857
+ href: n,
858
+ ref: a,
859
+ ...r
206
860
  }) => {
207
- const { pagination: pagination2, type } = usePagination();
208
- const apiProps = pagination2.getLastPageTriggerProps();
209
- const shouldDisableLink = type === "link" && apiProps["data-disabled"] === "";
210
- const localProps = {
861
+ const { pagination: i, type: s } = w(), c = i.getLastPageTriggerProps(), u = s === "link" && c["data-disabled"] === "", f = {
211
862
  "data-spark-component": "pagination-last-page-trigger",
212
863
  intent: "support",
213
864
  design: "contrast",
214
- ...props,
215
- className,
216
- ...shouldDisableLink && {
217
- disabled: true,
865
+ ...r,
866
+ className: e,
867
+ ...u && {
868
+ disabled: !0,
218
869
  role: "link",
219
- "aria-disabled": true
870
+ "aria-disabled": !0
220
871
  }
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 }) });
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 }) });
228
877
  };
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 = {
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 = {
240
881
  "data-spark-component": "pagination-next-trigger",
241
882
  intent: "support",
242
883
  design: "contrast",
243
- ...props,
244
- className,
245
- ...shouldDisableLink && {
246
- disabled: true,
884
+ ...r,
885
+ className: e,
886
+ ...u && {
887
+ disabled: !0,
247
888
  role: "link",
248
- "aria-disabled": true
889
+ "aria-disabled": !0
249
890
  }
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 }) });
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 }) });
257
896
  };
258
- NextTrigger.displayName = "Pagination.NextTrigger";
259
-
260
- // src/pagination/PaginationPages.tsx
261
- var Pages = ({ children }) => {
262
- const { pagination: pagination2 } = usePagination();
263
- return children(pagination2);
897
+ rt.displayName = "Pagination.NextTrigger";
898
+ const at = ({ children: t }) => {
899
+ const { pagination: e } = w();
900
+ return t(e);
264
901
  };
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 = {
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 = {
276
905
  "data-spark-component": "pagination-prev-trigger",
277
906
  intent: "support",
278
907
  design: "contrast",
279
- ...props,
280
- className,
281
- ...shouldDisableLink && {
282
- disabled: true,
908
+ ...r,
909
+ className: e,
910
+ ...u && {
911
+ disabled: !0,
283
912
  role: "link",
284
- "aria-disabled": true
913
+ "aria-disabled": !0
285
914
  }
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 }) });
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 }) });
293
920
  };
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
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
305
930
  });
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";
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";
314
939
  export {
315
- Pagination2 as Pagination
940
+ xe as Pagination
316
941
  };
317
- //# sourceMappingURL=index.mjs.map
942
+ //# sourceMappingURL=index.mjs.map