@spark-ui/components 17.2.2 → 17.2.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (528) hide show
  1. package/dist/carousel/index.js.map +1 -1
  2. package/dist/carousel/index.mjs.map +1 -1
  3. package/dist/checkbox/index.js.map +1 -1
  4. package/dist/checkbox/index.mjs.map +1 -1
  5. package/dist/src/accordion/Accordion.d.ts +27 -0
  6. package/dist/src/accordion/AccordionItem.d.ts +12 -0
  7. package/dist/src/accordion/AccordionItemContent.d.ts +12 -0
  8. package/dist/src/accordion/AccordionItemHeader.d.ts +9 -0
  9. package/dist/src/accordion/AccordionItemTrigger.d.ts +12 -0
  10. package/dist/src/accordion/index.d.mts +15 -0
  11. package/dist/src/accordion/index.d.ts +15 -0
  12. package/dist/src/accordion/useRenderSlot.d.ts +3 -0
  13. package/dist/src/alert-dialog/AlertDialog.d.ts +29 -0
  14. package/dist/src/alert-dialog/AlertDialogAction.d.ts +13 -0
  15. package/dist/src/alert-dialog/AlertDialogBody.d.ts +12 -0
  16. package/dist/src/alert-dialog/AlertDialogCancel.d.ts +13 -0
  17. package/dist/src/alert-dialog/AlertDialogContent.d.ts +9 -0
  18. package/dist/src/alert-dialog/AlertDialogContext.d.ts +12 -0
  19. package/dist/src/alert-dialog/AlertDialogDescription.d.ts +9 -0
  20. package/dist/src/alert-dialog/AlertDialogFooter.d.ts +10 -0
  21. package/dist/src/alert-dialog/AlertDialogHeader.d.ts +10 -0
  22. package/dist/src/alert-dialog/AlertDialogOverlay.d.ts +9 -0
  23. package/dist/src/alert-dialog/AlertDialogPortal.d.ts +7 -0
  24. package/dist/src/alert-dialog/AlertDialogTitle.d.ts +9 -0
  25. package/dist/src/alert-dialog/AlertDialogTrigger.d.ts +13 -0
  26. package/dist/src/alert-dialog/index.d.mts +38 -0
  27. package/dist/src/alert-dialog/index.d.ts +38 -0
  28. package/dist/src/alert-dialog/useRenderSlot.d.ts +3 -0
  29. package/dist/src/avatar/Avatar.d.ts +3 -0
  30. package/dist/src/avatar/AvatarAction.d.ts +9 -0
  31. package/dist/src/avatar/AvatarImage.d.ts +7 -0
  32. package/dist/src/avatar/AvatarOnlineBadge.d.ts +9 -0
  33. package/dist/src/avatar/AvatarPlaceholder.d.ts +8 -0
  34. package/dist/src/avatar/AvatarUser.d.ts +7 -0
  35. package/dist/src/avatar/context.d.ts +5 -0
  36. package/dist/src/avatar/index.d.mts +15 -0
  37. package/dist/src/avatar/index.d.ts +15 -0
  38. package/dist/src/avatar/types.d.ts +24 -0
  39. package/dist/src/badge/Badge.d.ts +9 -0
  40. package/dist/src/badge/BadgeItem.d.ts +31 -0
  41. package/dist/src/badge/BadgeItem.styles.d.ts +7 -0
  42. package/dist/src/badge/index.d.mts +1 -0
  43. package/dist/src/badge/index.d.ts +1 -0
  44. package/dist/src/breadcrumb/Breadcrumb.d.ts +10 -0
  45. package/dist/src/breadcrumb/Breadcrumb.styles.d.ts +0 -0
  46. package/dist/src/breadcrumb/BreadcrumbCurrentPage.d.ts +11 -0
  47. package/dist/src/breadcrumb/BreadcrumbItem.d.ts +9 -0
  48. package/dist/src/breadcrumb/BreadcrumbLink.d.ts +12 -0
  49. package/dist/src/breadcrumb/BreadcrumbSeparator.d.ts +10 -0
  50. package/dist/src/breadcrumb/index.d.mts +12 -0
  51. package/dist/src/breadcrumb/index.d.ts +12 -0
  52. package/dist/src/button/Button.d.ts +26 -0
  53. package/dist/src/button/Button.styles.d.ts +10 -0
  54. package/dist/src/button/index.d.mts +1 -0
  55. package/dist/src/button/index.d.ts +1 -0
  56. package/dist/src/button/variants/contrast.d.ts +41 -0
  57. package/dist/src/button/variants/filled.d.ts +41 -0
  58. package/dist/src/button/variants/ghost.d.ts +41 -0
  59. package/dist/src/button/variants/index.d.mts +5 -0
  60. package/dist/src/button/variants/index.d.ts +5 -0
  61. package/dist/src/button/variants/outlined.d.ts +41 -0
  62. package/dist/src/button/variants/tinted.d.ts +41 -0
  63. package/dist/src/card/Backdrop.d.ts +14 -0
  64. package/dist/src/card/Card.d.ts +16 -0
  65. package/dist/src/card/Card.styles.d.ts +7 -0
  66. package/dist/src/card/Content.d.ts +15 -0
  67. package/dist/src/card/Content.styles.d.ts +8 -0
  68. package/dist/src/card/context.d.ts +11 -0
  69. package/dist/src/card/index.d.mts +8 -0
  70. package/dist/src/card/index.d.ts +8 -0
  71. package/dist/src/card/utils.d.ts +3 -0
  72. package/dist/src/carousel/Carousel.d.ts +12 -0
  73. package/dist/src/carousel/CarouselControls.d.ts +9 -0
  74. package/dist/src/carousel/CarouselNextButton.d.ts +5 -0
  75. package/dist/src/carousel/CarouselPageIndicator.d.ts +14 -0
  76. package/dist/src/carousel/CarouselPagePicker.d.ts +14 -0
  77. package/dist/src/carousel/CarouselPrevButton.d.ts +5 -0
  78. package/dist/src/carousel/CarouselSlide.d.ts +12 -0
  79. package/dist/src/carousel/CarouselSlides.d.ts +10 -0
  80. package/dist/src/carousel/CarouselViewport.d.ts +9 -0
  81. package/dist/src/carousel/index.d.mts +19 -0
  82. package/dist/src/carousel/index.d.ts +19 -0
  83. package/dist/src/carousel/types.d.ts +165 -0
  84. package/dist/src/carousel/useCarousel.d.ts +2 -0
  85. package/dist/src/carousel/useCarouselVisibility.d.ts +13 -0
  86. package/dist/src/carousel/useEvent.d.ts +7 -0
  87. package/dist/src/carousel/useIsMounted.d.ts +1 -0
  88. package/dist/src/carousel/useIsVisible.d.ts +6 -0
  89. package/dist/src/carousel/useResizeObserver.d.ts +2 -0
  90. package/dist/src/carousel/useScrollEnd.d.ts +3 -0
  91. package/dist/src/carousel/useSnapPoints.d.ts +10 -0
  92. package/dist/src/carousel/utils.d.ts +24 -0
  93. package/dist/src/checkbox/Checkbox.d.ts +10 -0
  94. package/dist/src/checkbox/CheckboxGroup.d.ts +18 -0
  95. package/dist/src/checkbox/CheckboxGroup.styles.d.ts +5 -0
  96. package/dist/src/checkbox/CheckboxGroupContext.d.ts +41 -0
  97. package/dist/src/checkbox/CheckboxIndicator.d.ts +9 -0
  98. package/dist/src/checkbox/CheckboxInput.d.ts +47 -0
  99. package/dist/src/checkbox/CheckboxInput.styles.d.ts +5 -0
  100. package/dist/src/checkbox/CheckboxLabel.d.ts +12 -0
  101. package/dist/src/checkbox/CheckboxLabel.styles.d.ts +5 -0
  102. package/dist/src/checkbox/index.d.mts +2 -0
  103. package/dist/src/checkbox/index.d.ts +2 -0
  104. package/dist/src/chip/Chip.d.ts +34 -0
  105. package/dist/src/chip/Chip.styles.d.ts +8 -0
  106. package/dist/src/chip/ChipClearButton.d.ts +10 -0
  107. package/dist/src/chip/ChipClearButton.styles.d.ts +10 -0
  108. package/dist/src/chip/ChipContent.d.ts +8 -0
  109. package/dist/src/chip/ChipIcon.d.ts +8 -0
  110. package/dist/src/chip/ChipLeadingIcon.d.ts +9 -0
  111. package/dist/src/chip/ChipTrailingIcon.d.ts +9 -0
  112. package/dist/src/chip/index.d.mts +15 -0
  113. package/dist/src/chip/index.d.ts +15 -0
  114. package/dist/src/chip/useChipContext.d.ts +4 -0
  115. package/dist/src/chip/useChipElement.d.ts +41 -0
  116. package/dist/src/chip/variants/dashed.d.ts +45 -0
  117. package/dist/src/chip/variants/index.d.mts +3 -0
  118. package/dist/src/chip/variants/index.d.ts +3 -0
  119. package/dist/src/chip/variants/outlined.d.ts +45 -0
  120. package/dist/src/chip/variants/tinted.d.ts +45 -0
  121. package/dist/src/circular-meter/CircularMeter.d.ts +34 -0
  122. package/dist/src/circular-meter/CircularMeter.styles.d.ts +5 -0
  123. package/dist/src/circular-meter/CircularMeterContent.d.ts +6 -0
  124. package/dist/src/circular-meter/CircularMeterContext.d.ts +36 -0
  125. package/dist/src/circular-meter/CircularMeterLabel.d.ts +7 -0
  126. package/dist/src/circular-meter/CircularMeterTrack.d.ts +8 -0
  127. package/dist/src/circular-meter/CircularMeterValue.d.ts +7 -0
  128. package/dist/src/circular-meter/index.d.mts +16 -0
  129. package/dist/src/circular-meter/index.d.ts +16 -0
  130. package/dist/src/circular-meter/useIntersectionAnimation.d.ts +26 -0
  131. package/dist/src/collapsible/Content.d.ts +12 -0
  132. package/dist/src/collapsible/Root.d.ts +12 -0
  133. package/dist/src/collapsible/Trigger.d.ts +11 -0
  134. package/dist/src/collapsible/index.d.mts +7 -0
  135. package/dist/src/collapsible/index.d.ts +7 -0
  136. package/dist/src/collapsible/useRenderSlot.d.ts +3 -0
  137. package/dist/src/combobox/Combobox.d.ts +6 -0
  138. package/dist/src/combobox/ComboboxClearButton.d.ts +9 -0
  139. package/dist/src/combobox/ComboboxContext.d.ts +108 -0
  140. package/dist/src/combobox/ComboboxDisclosure.d.ts +13 -0
  141. package/dist/src/combobox/ComboboxEmpty.d.ts +11 -0
  142. package/dist/src/combobox/ComboboxGroup.d.ts +11 -0
  143. package/dist/src/combobox/ComboboxInput.d.ts +15 -0
  144. package/dist/src/combobox/ComboboxItem.d.ts +12 -0
  145. package/dist/src/combobox/ComboboxItemContext.d.ts +17 -0
  146. package/dist/src/combobox/ComboboxItemIndicator.d.ts +11 -0
  147. package/dist/src/combobox/ComboboxItemText.d.ts +10 -0
  148. package/dist/src/combobox/ComboboxItems.d.ts +11 -0
  149. package/dist/src/combobox/ComboboxItemsGroupContext.d.ts +8 -0
  150. package/dist/src/combobox/ComboboxLabel.d.ts +11 -0
  151. package/dist/src/combobox/ComboboxLeadingIcon.d.ts +7 -0
  152. package/dist/src/combobox/ComboboxPopover.d.ts +10 -0
  153. package/dist/src/combobox/ComboboxPortal.d.ts +2 -0
  154. package/dist/src/combobox/ComboboxSelectedItems.d.ts +4 -0
  155. package/dist/src/combobox/ComboboxTrigger.d.ts +11 -0
  156. package/dist/src/combobox/ComboboxTrigger.styles.d.ts +6 -0
  157. package/dist/src/combobox/index.d.mts +35 -0
  158. package/dist/src/combobox/index.d.ts +35 -0
  159. package/dist/src/combobox/tests/test-utils.d.ts +8 -0
  160. package/dist/src/combobox/types.d.ts +8 -0
  161. package/dist/src/combobox/useCombobox/multipleSelectionReducer.d.ts +13 -0
  162. package/dist/src/combobox/useCombobox/singleSelectionReducer.d.ts +8 -0
  163. package/dist/src/combobox/utils/index.d.mts +14 -0
  164. package/dist/src/combobox/utils/index.d.ts +14 -0
  165. package/dist/src/combobox/utils/useWidthIncreaseCallback.d.ts +2 -0
  166. package/dist/src/dialog/Dialog.d.ts +33 -0
  167. package/dist/src/dialog/DialogBody.d.ts +12 -0
  168. package/dist/src/dialog/DialogClose.d.ts +10 -0
  169. package/dist/src/dialog/DialogCloseButton.d.ts +9 -0
  170. package/dist/src/dialog/DialogContent.d.ts +14 -0
  171. package/dist/src/dialog/DialogContent.styles.d.ts +6 -0
  172. package/dist/src/dialog/DialogContext.d.ts +11 -0
  173. package/dist/src/dialog/DialogDescription.d.ts +9 -0
  174. package/dist/src/dialog/DialogFooter.d.ts +10 -0
  175. package/dist/src/dialog/DialogHeader.d.ts +10 -0
  176. package/dist/src/dialog/DialogOverlay.d.ts +9 -0
  177. package/dist/src/dialog/DialogPortal.d.ts +7 -0
  178. package/dist/src/dialog/DialogTitle.d.ts +9 -0
  179. package/dist/src/dialog/DialogTrigger.d.ts +13 -0
  180. package/dist/src/dialog/index.d.mts +37 -0
  181. package/dist/src/dialog/index.d.ts +37 -0
  182. package/dist/src/divider/Divider.d.ts +30 -0
  183. package/dist/src/divider/Divider.styles.d.ts +9 -0
  184. package/dist/src/divider/DividerContent.d.ts +13 -0
  185. package/dist/src/divider/index.d.mts +6 -0
  186. package/dist/src/divider/index.d.ts +6 -0
  187. package/dist/src/divider/variants/intents.d.ts +17 -0
  188. package/dist/src/drawer/Drawer.d.ts +32 -0
  189. package/dist/src/drawer/DrawerBody.d.ts +11 -0
  190. package/dist/src/drawer/DrawerBody.styles.d.ts +5 -0
  191. package/dist/src/drawer/DrawerClose.d.ts +13 -0
  192. package/dist/src/drawer/DrawerCloseButton.d.ts +7 -0
  193. package/dist/src/drawer/DrawerContent.d.ts +10 -0
  194. package/dist/src/drawer/DrawerContent.styles.d.ts +6 -0
  195. package/dist/src/drawer/DrawerContext.d.ts +9 -0
  196. package/dist/src/drawer/DrawerDescription.d.ts +9 -0
  197. package/dist/src/drawer/DrawerFooter.d.ts +8 -0
  198. package/dist/src/drawer/DrawerHeader.d.ts +10 -0
  199. package/dist/src/drawer/DrawerOverlay.d.ts +9 -0
  200. package/dist/src/drawer/DrawerPortal.d.ts +7 -0
  201. package/dist/src/drawer/DrawerTitle.d.ts +9 -0
  202. package/dist/src/drawer/DrawerTrigger.d.ts +13 -0
  203. package/dist/src/drawer/index.d.mts +37 -0
  204. package/dist/src/drawer/index.d.ts +37 -0
  205. package/dist/src/drawer/useRenderSlot.d.ts +3 -0
  206. package/dist/src/dropdown/Dropdown.d.ts +6 -0
  207. package/dist/src/dropdown/DropdownContext.d.ts +81 -0
  208. package/dist/src/dropdown/DropdownDivider.d.ts +10 -0
  209. package/dist/src/dropdown/DropdownGroup.d.ts +11 -0
  210. package/dist/src/dropdown/DropdownItem.d.ts +12 -0
  211. package/dist/src/dropdown/DropdownItemContext.d.ts +17 -0
  212. package/dist/src/dropdown/DropdownItemIndicator.d.ts +11 -0
  213. package/dist/src/dropdown/DropdownItemText.d.ts +9 -0
  214. package/dist/src/dropdown/DropdownItems.d.ts +21 -0
  215. package/dist/src/dropdown/DropdownItemsGroupContext.d.ts +8 -0
  216. package/dist/src/dropdown/DropdownLabel.d.ts +11 -0
  217. package/dist/src/dropdown/DropdownLeadingIcon.d.ts +7 -0
  218. package/dist/src/dropdown/DropdownPopover.d.ts +6 -0
  219. package/dist/src/dropdown/DropdownPortal.d.ts +2 -0
  220. package/dist/src/dropdown/DropdownTrigger.d.ts +12 -0
  221. package/dist/src/dropdown/DropdownTrigger.styles.d.ts +5 -0
  222. package/dist/src/dropdown/DropdownValue.d.ts +11 -0
  223. package/dist/src/dropdown/index.d.mts +29 -0
  224. package/dist/src/dropdown/index.d.ts +29 -0
  225. package/dist/src/dropdown/types.d.ts +8 -0
  226. package/dist/src/dropdown/useDropdown.d.ts +41 -0
  227. package/dist/src/dropdown/utils.d.ts +13 -0
  228. package/dist/src/file-upload/FileUpload.d.ts +130 -0
  229. package/dist/src/file-upload/FileUploadAcceptedFile.d.ts +25 -0
  230. package/dist/src/file-upload/FileUploadContext.d.ts +17 -0
  231. package/dist/src/file-upload/FileUploadDropzone.d.ts +10 -0
  232. package/dist/src/file-upload/FileUploadItemDeleteTrigger.d.ts +11 -0
  233. package/dist/src/file-upload/FileUploadPreviewImage.d.ts +17 -0
  234. package/dist/src/file-upload/FileUploadRejectedFile.d.ts +24 -0
  235. package/dist/src/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +12 -0
  236. package/dist/src/file-upload/FileUploadTrigger.d.ts +12 -0
  237. package/dist/src/file-upload/constants.d.ts +29 -0
  238. package/dist/src/file-upload/index.d.mts +22 -0
  239. package/dist/src/file-upload/index.d.ts +22 -0
  240. package/dist/src/file-upload/test-utils.d.ts +9 -0
  241. package/dist/src/file-upload/useFileUploadState.d.ts +88 -0
  242. package/dist/src/file-upload/utils.d.ts +40 -0
  243. package/dist/src/form-field/FormField.d.ts +21 -0
  244. package/dist/src/form-field/FormFieldAlertMessage.d.ts +9 -0
  245. package/dist/src/form-field/FormFieldCharactersCount.d.ts +26 -0
  246. package/dist/src/form-field/FormFieldContext.d.ts +49 -0
  247. package/dist/src/form-field/FormFieldControl.d.ts +12 -0
  248. package/dist/src/form-field/FormFieldErrorMessage.d.ts +9 -0
  249. package/dist/src/form-field/FormFieldHelperMessage.d.ts +9 -0
  250. package/dist/src/form-field/FormFieldLabel.d.ts +13 -0
  251. package/dist/src/form-field/FormFieldMessage.d.ts +8 -0
  252. package/dist/src/form-field/FormFieldProvider.d.ts +9 -0
  253. package/dist/src/form-field/FormFieldRequiredIndicator.d.ts +9 -0
  254. package/dist/src/form-field/FormFieldStateMessage.d.ts +10 -0
  255. package/dist/src/form-field/FormFieldSuccessMessage.d.ts +9 -0
  256. package/dist/src/form-field/index.d.mts +31 -0
  257. package/dist/src/form-field/index.d.ts +31 -0
  258. package/dist/src/icon/Icon.d.ts +17 -0
  259. package/dist/src/icon/Icon.styles.d.ts +6 -0
  260. package/dist/src/icon/index.d.mts +1 -0
  261. package/dist/src/icon/index.d.ts +1 -0
  262. package/dist/src/icon-button/IconButton.d.ts +10 -0
  263. package/dist/src/icon-button/IconButton.styles.d.ts +5 -0
  264. package/dist/src/icon-button/index.d.mts +1 -0
  265. package/dist/src/icon-button/index.d.ts +1 -0
  266. package/dist/src/input/Input.d.ts +14 -0
  267. package/dist/src/input/Input.styles.d.ts +11 -0
  268. package/dist/src/input/InputAddon.d.ts +9 -0
  269. package/dist/src/input/InputAddon.styles.d.ts +9 -0
  270. package/dist/src/input/InputClearButton.d.ts +12 -0
  271. package/dist/src/input/InputGroup.d.ts +17 -0
  272. package/dist/src/input/InputGroup.styles.d.ts +6 -0
  273. package/dist/src/input/InputGroupContext.d.ts +14 -0
  274. package/dist/src/input/InputIcon.d.ts +6 -0
  275. package/dist/src/input/InputLeadingAddon.d.ts +11 -0
  276. package/dist/src/input/InputLeadingIcon.d.ts +7 -0
  277. package/dist/src/input/InputTrailingAddon.d.ts +11 -0
  278. package/dist/src/input/InputTrailingIcon.d.ts +7 -0
  279. package/dist/src/input/index.d.mts +21 -0
  280. package/dist/src/input/index.d.ts +21 -0
  281. package/dist/src/input-otp/InputOTP.d.ts +90 -0
  282. package/dist/src/input-otp/InputOTP.styles.d.ts +10 -0
  283. package/dist/src/input-otp/InputOTPContext.d.ts +17 -0
  284. package/dist/src/input-otp/InputOTPGroup.d.ts +7 -0
  285. package/dist/src/input-otp/InputOTPSeparator.d.ts +7 -0
  286. package/dist/src/input-otp/InputOTPSlot.d.ts +12 -0
  287. package/dist/src/input-otp/index.d.mts +14 -0
  288. package/dist/src/input-otp/index.d.ts +14 -0
  289. package/dist/src/input-otp/useInputOTP.d.ts +48 -0
  290. package/dist/src/kbd/Kbd.d.ts +5 -0
  291. package/dist/src/kbd/index.d.mts +1 -0
  292. package/dist/src/kbd/index.d.ts +1 -0
  293. package/dist/src/label/Label.d.ts +9 -0
  294. package/dist/src/label/LabelRequiredIndicator.d.ts +6 -0
  295. package/dist/src/label/index.d.mts +7 -0
  296. package/dist/src/label/index.d.ts +7 -0
  297. package/dist/src/link-box/LinkBox.d.ts +8 -0
  298. package/dist/src/link-box/LinkBoxLink.d.ts +8 -0
  299. package/dist/src/link-box/LinkBoxRaised.d.ts +9 -0
  300. package/dist/src/link-box/index.d.mts +9 -0
  301. package/dist/src/link-box/index.d.ts +9 -0
  302. package/dist/src/meter/Meter.d.ts +18 -0
  303. package/dist/src/meter/MeterContext.d.ts +12 -0
  304. package/dist/src/meter/MeterLabel.d.ts +7 -0
  305. package/dist/src/meter/MeterTrack.d.ts +7 -0
  306. package/dist/src/meter/MeterTrack.styles.d.ts +8 -0
  307. package/dist/src/meter/MeterValue.d.ts +9 -0
  308. package/dist/src/meter/index.d.mts +13 -0
  309. package/dist/src/meter/index.d.ts +13 -0
  310. package/dist/src/meter/useIntersectionAnimation.d.ts +26 -0
  311. package/dist/src/pagination/Pagination.d.ts +8 -0
  312. package/dist/src/pagination/PaginationContext.d.ts +43 -0
  313. package/dist/src/pagination/PaginationEllipsis.d.ts +9 -0
  314. package/dist/src/pagination/PaginationFirstPageTrigger.d.ts +22 -0
  315. package/dist/src/pagination/PaginationItem.d.ts +31 -0
  316. package/dist/src/pagination/PaginationLastPageTrigger.d.ts +22 -0
  317. package/dist/src/pagination/PaginationNextTrigger.d.ts +22 -0
  318. package/dist/src/pagination/PaginationPages.d.ts +16 -0
  319. package/dist/src/pagination/PaginationPrevTrigger.d.ts +22 -0
  320. package/dist/src/pagination/index.d.mts +18 -0
  321. package/dist/src/pagination/index.d.ts +18 -0
  322. package/dist/src/pagination/utils.d.ts +1 -0
  323. package/dist/src/popover/Popover.d.ts +9 -0
  324. package/dist/src/popover/PopoverAnchor.d.ts +9 -0
  325. package/dist/src/popover/PopoverArrow.d.ts +9 -0
  326. package/dist/src/popover/PopoverCloseButton.d.ts +10 -0
  327. package/dist/src/popover/PopoverContent.d.ts +10 -0
  328. package/dist/src/popover/PopoverContent.styles.d.ts +9 -0
  329. package/dist/src/popover/PopoverContext.d.ts +15 -0
  330. package/dist/src/popover/PopoverHeader.d.ts +10 -0
  331. package/dist/src/popover/PopoverPortal.d.ts +7 -0
  332. package/dist/src/popover/PopoverTrigger.d.ts +9 -0
  333. package/dist/src/popover/index.d.mts +17 -0
  334. package/dist/src/popover/index.d.ts +17 -0
  335. package/dist/src/portal/Portal.d.ts +10 -0
  336. package/dist/src/portal/index.d.mts +1 -0
  337. package/dist/src/portal/index.d.ts +1 -0
  338. package/dist/src/progress/Progress.d.ts +24 -0
  339. package/dist/src/progress/ProgressContext.d.ts +13 -0
  340. package/dist/src/progress/ProgressIndicator.d.ts +13 -0
  341. package/dist/src/progress/ProgressLabel.d.ts +7 -0
  342. package/dist/src/progress/ProgressTrack.d.ts +7 -0
  343. package/dist/src/progress/ProgressValue.d.ts +7 -0
  344. package/dist/src/progress/index.d.mts +13 -0
  345. package/dist/src/progress/index.d.ts +13 -0
  346. package/dist/src/progress-tracker/ProgressTracker.d.ts +27 -0
  347. package/dist/src/progress-tracker/ProgressTracker.styles.d.ts +1 -0
  348. package/dist/src/progress-tracker/ProgressTrackerContext.d.ts +15 -0
  349. package/dist/src/progress-tracker/ProgressTrackerStep.d.ts +12 -0
  350. package/dist/src/progress-tracker/ProgressTrackerStep.styles.d.ts +10 -0
  351. package/dist/src/progress-tracker/ProgressTrackerStepIndicator.d.ts +15 -0
  352. package/dist/src/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +7 -0
  353. package/dist/src/progress-tracker/ProgressTrackerStepLabel.d.ts +9 -0
  354. package/dist/src/progress-tracker/index.d.mts +10 -0
  355. package/dist/src/progress-tracker/index.d.ts +10 -0
  356. package/dist/src/radio-group/Radio.d.ts +9 -0
  357. package/dist/src/radio-group/RadioGroup.d.ts +54 -0
  358. package/dist/src/radio-group/RadioGroup.styles.d.ts +5 -0
  359. package/dist/src/radio-group/RadioGroupContext.d.ts +5 -0
  360. package/dist/src/radio-group/RadioGroupProvider.d.ts +7 -0
  361. package/dist/src/radio-group/RadioIndicator.d.ts +18 -0
  362. package/dist/src/radio-group/RadioIndicator.styles.d.ts +5 -0
  363. package/dist/src/radio-group/RadioInput.d.ts +25 -0
  364. package/dist/src/radio-group/RadioInput.styles.d.ts +5 -0
  365. package/dist/src/radio-group/RadioLabel.d.ts +20 -0
  366. package/dist/src/radio-group/RadioLabel.styles.d.ts +5 -0
  367. package/dist/src/radio-group/index.d.mts +7 -0
  368. package/dist/src/radio-group/index.d.ts +7 -0
  369. package/dist/src/rating/Rating.d.ts +57 -0
  370. package/dist/src/rating/RatingStar.d.ts +19 -0
  371. package/dist/src/rating/RatingStar.styles.d.ts +14 -0
  372. package/dist/src/rating/index.d.mts +1 -0
  373. package/dist/src/rating/index.d.ts +1 -0
  374. package/dist/src/rating/types.d.ts +2 -0
  375. package/dist/src/rating/utils.d.ts +7 -0
  376. package/dist/src/rating-display/RatingDisplay.d.ts +31 -0
  377. package/dist/src/rating-display/RatingDisplayContext.d.ts +12 -0
  378. package/dist/src/rating-display/RatingDisplayCount.d.ts +12 -0
  379. package/dist/src/rating-display/RatingDisplayStar.d.ts +16 -0
  380. package/dist/src/rating-display/RatingDisplayStars.d.ts +22 -0
  381. package/dist/src/rating-display/RatingDisplayValue.d.ts +13 -0
  382. package/dist/src/rating-display/index.d.mts +14 -0
  383. package/dist/src/rating-display/index.d.ts +14 -0
  384. package/dist/src/rating-display/types.d.ts +1 -0
  385. package/dist/src/rating-display/utils.d.ts +10 -0
  386. package/dist/src/scrolling-list/ScrollingList.d.ts +57 -0
  387. package/dist/src/scrolling-list/ScrollingListControls.d.ts +18 -0
  388. package/dist/src/scrolling-list/ScrollingListItem.d.ts +17 -0
  389. package/dist/src/scrolling-list/ScrollingListItems.d.ts +11 -0
  390. package/dist/src/scrolling-list/ScrollingListNextButton.d.ts +5 -0
  391. package/dist/src/scrolling-list/ScrollingListPrevButton.d.ts +5 -0
  392. package/dist/src/scrolling-list/ScrollingListSkipButton.d.ts +9 -0
  393. package/dist/src/scrolling-list/index.d.mts +15 -0
  394. package/dist/src/scrolling-list/index.d.ts +15 -0
  395. package/dist/src/scrolling-list/useFocusWithinScroll.d.ts +3 -0
  396. package/dist/src/segmented-control/SegmentedControl.d.ts +22 -0
  397. package/dist/src/segmented-control/SegmentedControl.styles.d.ts +5 -0
  398. package/dist/src/segmented-control/SegmentedControlContext.d.ts +7 -0
  399. package/dist/src/segmented-control/SegmentedControlIndicator.d.ts +8 -0
  400. package/dist/src/segmented-control/SegmentedControlItem.d.ts +18 -0
  401. package/dist/src/segmented-control/index.d.mts +10 -0
  402. package/dist/src/segmented-control/index.d.ts +10 -0
  403. package/dist/src/segmented-gauge/SegmentedGauge.d.ts +66 -0
  404. package/dist/src/segmented-gauge/SegmentedGaugeContext.d.ts +14 -0
  405. package/dist/src/segmented-gauge/SegmentedGaugeLabel.d.ts +9 -0
  406. package/dist/src/segmented-gauge/SegmentedGaugeSegment.d.ts +12 -0
  407. package/dist/src/segmented-gauge/SegmentedGaugeTrack.d.ts +8 -0
  408. package/dist/src/segmented-gauge/index.d.mts +13 -0
  409. package/dist/src/segmented-gauge/index.d.ts +13 -0
  410. package/dist/src/select/Select.d.ts +6 -0
  411. package/dist/src/select/SelectContext.d.ts +59 -0
  412. package/dist/src/select/SelectGroup.d.ts +11 -0
  413. package/dist/src/select/SelectItem.d.ts +11 -0
  414. package/dist/src/select/SelectItems.d.ts +10 -0
  415. package/dist/src/select/SelectItemsGroupContext.d.ts +9 -0
  416. package/dist/src/select/SelectLabel.d.ts +8 -0
  417. package/dist/src/select/SelectLeadingIcon.d.ts +7 -0
  418. package/dist/src/select/SelectPlaceholder.d.ts +10 -0
  419. package/dist/src/select/SelectTrigger.d.ts +16 -0
  420. package/dist/src/select/SelectTrigger.styles.d.ts +5 -0
  421. package/dist/src/select/SelectValue.d.ts +15 -0
  422. package/dist/src/select/index.d.mts +21 -0
  423. package/dist/src/select/index.d.ts +21 -0
  424. package/dist/src/select/types.d.ts +6 -0
  425. package/dist/src/select/utils.d.ts +4 -0
  426. package/dist/src/skeleton/Skeleton.d.ts +17 -0
  427. package/dist/src/skeleton/Skeleton.styles.d.ts +5 -0
  428. package/dist/src/skeleton/SkeletonItem.d.ts +31 -0
  429. package/dist/src/skeleton/SkeletonItem.styles.d.ts +8 -0
  430. package/dist/src/skeleton/index.d.mts +8 -0
  431. package/dist/src/skeleton/index.d.ts +8 -0
  432. package/dist/src/slider/Slider.d.ts +55 -0
  433. package/dist/src/slider/Slider.styles.d.ts +1 -0
  434. package/dist/src/slider/SliderContext.d.ts +13 -0
  435. package/dist/src/slider/SliderControl.d.ts +7 -0
  436. package/dist/src/slider/SliderIndicator.d.ts +7 -0
  437. package/dist/src/slider/SliderLabel.d.ts +13 -0
  438. package/dist/src/slider/SliderMaxValue.d.ts +6 -0
  439. package/dist/src/slider/SliderMinValue.d.ts +6 -0
  440. package/dist/src/slider/SliderThumb.d.ts +7 -0
  441. package/dist/src/slider/SliderThumb.styles.d.ts +5 -0
  442. package/dist/src/slider/SliderThumbContext.d.ts +5 -0
  443. package/dist/src/slider/SliderTrack.d.ts +7 -0
  444. package/dist/src/slider/SliderTrack.styles.d.ts +6 -0
  445. package/dist/src/slider/SliderValue.d.ts +12 -0
  446. package/dist/src/slider/index.d.mts +20 -0
  447. package/dist/src/slider/index.d.ts +20 -0
  448. package/dist/src/slider/useSliderValueBoundaries.d.ts +12 -0
  449. package/dist/src/slot/Slot.d.ts +12 -0
  450. package/dist/src/slot/index.d.mts +1 -0
  451. package/dist/src/slot/index.d.ts +1 -0
  452. package/dist/src/snackbar/Snackbar.d.ts +29 -0
  453. package/dist/src/snackbar/SnackbarItem.d.ts +49 -0
  454. package/dist/src/snackbar/SnackbarItem.styles.d.ts +10 -0
  455. package/dist/src/snackbar/SnackbarItemAction.d.ts +10 -0
  456. package/dist/src/snackbar/SnackbarItemClose.d.ts +9 -0
  457. package/dist/src/snackbar/SnackbarItemContext.d.ts +8 -0
  458. package/dist/src/snackbar/SnackbarItemIcon.d.ts +7 -0
  459. package/dist/src/snackbar/SnackbarRegion.d.ts +30 -0
  460. package/dist/src/snackbar/SnackbarRegion.styles.d.ts +5 -0
  461. package/dist/src/snackbar/index.d.mts +13 -0
  462. package/dist/src/snackbar/index.d.ts +13 -0
  463. package/dist/src/snackbar/snackbarVariants.d.ts +74 -0
  464. package/dist/src/snackbar/useSnackbarGlobalStore.d.ts +18 -0
  465. package/dist/src/snackbar/useSwipe.d.ts +15 -0
  466. package/dist/src/spinner/Spinner.d.ts +9 -0
  467. package/dist/src/spinner/Spinner.styles.d.ts +7 -0
  468. package/dist/src/spinner/index.d.mts +1 -0
  469. package/dist/src/spinner/index.d.ts +1 -0
  470. package/dist/src/stepper/Stepper.d.ts +9 -0
  471. package/dist/src/stepper/StepperButton.d.ts +14 -0
  472. package/dist/src/stepper/StepperInput.d.ts +7 -0
  473. package/dist/src/stepper/index.d.mts +9 -0
  474. package/dist/src/stepper/index.d.ts +9 -0
  475. package/dist/src/stepper/types.d.ts +46 -0
  476. package/dist/src/stepper/useStepper.d.ts +2 -0
  477. package/dist/src/switch/Switch.d.ts +6 -0
  478. package/dist/src/switch/SwitchInput.d.ts +53 -0
  479. package/dist/src/switch/SwitchInput.styles.d.ts +16 -0
  480. package/dist/src/switch/SwitchLabel.d.ts +17 -0
  481. package/dist/src/switch/SwitchLabel.styles.d.ts +5 -0
  482. package/dist/src/switch/index.d.mts +1 -0
  483. package/dist/src/switch/index.d.ts +1 -0
  484. package/dist/src/tabs/Tabs.d.ts +24 -0
  485. package/dist/src/tabs/TabsContent.d.ts +22 -0
  486. package/dist/src/tabs/TabsContent.styles.d.ts +3 -0
  487. package/dist/src/tabs/TabsContext.d.ts +7 -0
  488. package/dist/src/tabs/TabsList.d.ts +20 -0
  489. package/dist/src/tabs/TabsList.styles.d.ts +3 -0
  490. package/dist/src/tabs/TabsPopover.d.ts +29 -0
  491. package/dist/src/tabs/TabsPopoverAbstraction.d.ts +27 -0
  492. package/dist/src/tabs/TabsRoot.styles.d.ts +1 -0
  493. package/dist/src/tabs/TabsTrigger.d.ts +41 -0
  494. package/dist/src/tabs/TabsTrigger.styles.d.ts +8 -0
  495. package/dist/src/tabs/index.d.mts +13 -0
  496. package/dist/src/tabs/index.d.ts +13 -0
  497. package/dist/src/tabs/useRenderSlot.d.ts +1 -0
  498. package/dist/src/tabs/useResizeObserver.d.ts +8 -0
  499. package/dist/src/tag/Tag.d.ts +17 -0
  500. package/dist/src/tag/Tag.styles.d.ts +8 -0
  501. package/dist/src/tag/index.d.mts +1 -0
  502. package/dist/src/tag/index.d.ts +1 -0
  503. package/dist/src/tag/variants/filled.d.ts +37 -0
  504. package/dist/src/tag/variants/index.d.mts +3 -0
  505. package/dist/src/tag/variants/index.d.ts +3 -0
  506. package/dist/src/tag/variants/outlined.d.ts +33 -0
  507. package/dist/src/tag/variants/tinted.d.ts +33 -0
  508. package/dist/src/text-link/TextLink.d.ts +16 -0
  509. package/dist/src/text-link/index.d.mts +1 -0
  510. package/dist/src/text-link/index.d.ts +1 -0
  511. package/dist/src/textarea/Textarea.d.ts +14 -0
  512. package/dist/src/textarea/TextareaClearButton.d.ts +10 -0
  513. package/dist/src/textarea/TextareaGroup.d.ts +6 -0
  514. package/dist/src/textarea/TextareaLeadingIcon.d.ts +7 -0
  515. package/dist/src/textarea/TextareaTrailingIcon.d.ts +7 -0
  516. package/dist/src/textarea/index.d.mts +14 -0
  517. package/dist/src/textarea/index.d.ts +14 -0
  518. package/dist/src/toast/Toast.d.ts +4 -0
  519. package/dist/src/toast/Toast.styles.d.ts +10 -0
  520. package/dist/src/toast/index.d.mts +20 -0
  521. package/dist/src/toast/index.d.ts +20 -0
  522. package/dist/src/toast/types.d.ts +44 -0
  523. package/dist/src/toast/useRenderSlot.d.ts +3 -0
  524. package/dist/src/toast/useToastManager.d.ts +2 -0
  525. package/dist/src/visually-hidden/VisuallyHidden.d.ts +12 -0
  526. package/dist/src/visually-hidden/index.d.mts +1 -0
  527. package/dist/src/visually-hidden/index.d.ts +1 -0
  528. package/package.json +7 -7
@@ -0,0 +1,8 @@
1
+ import { QueuedToast, ToastState } from '@react-stately/toast';
2
+ import { SnackbarItemValue } from './SnackbarItem';
3
+ export interface SnackbarItemState<T = SnackbarItemValue> {
4
+ toast: QueuedToast<T>;
5
+ state: ToastState<T>;
6
+ }
7
+ export declare const SnackbarItemContext: import('react').Context<SnackbarItemState<SnackbarItemValue>>;
8
+ export declare const useSnackbarItemContext: () => SnackbarItemState<SnackbarItemValue>;
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ import { IconProps } from '../icon';
3
+ export type SnackbarItemIconProps = IconProps;
4
+ export declare const SnackbarItemIcon: {
5
+ ({ children, className, ...rest }: SnackbarItemIconProps): ReactElement;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,30 @@
1
+ import { AriaToastRegionProps } from '@react-aria/toast';
2
+ import { ComponentPropsWithRef, ReactElement } from 'react';
3
+ import { SnackbarItem, SnackbarItemProps } from './SnackbarItem';
4
+ import { SnackbarItemState } from './SnackbarItemContext';
5
+ import { SnackbarRegionVariantProps } from './SnackbarRegion.styles';
6
+ export interface SnackbarRegionProps extends ComponentPropsWithRef<'div'>, AriaToastRegionProps, SnackbarRegionVariantProps, Pick<SnackbarItemState, 'state'> {
7
+ /**
8
+ * An accessibility label for the snackbar region.
9
+ * @default 'Notifications'
10
+ */
11
+ 'aria-label'?: string;
12
+ /**
13
+ * Identifies the element (or elements) that labels the current element.
14
+ */
15
+ 'aria-labelledby'?: string;
16
+ /**
17
+ * Identifies the element (or elements) that describes the object.
18
+ */
19
+ 'aria-describedby'?: string;
20
+ /**
21
+ * Identifies the element (or elements) that provide a detailed, extended description for the object.
22
+ */
23
+ 'aria-details'?: string;
24
+ /**
25
+ * The component/template used to display each snackbar from the queue
26
+ * @default 'Snackbar.Item'
27
+ */
28
+ children?: ReactElement<SnackbarItemProps, typeof SnackbarItem>;
29
+ }
30
+ export declare const SnackbarRegion: ({ children, state, position, className, ref: forwardedRef, ...rest }: SnackbarRegionProps) => ReactElement;
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const snackbarRegionVariant: (props?: ({
3
+ position?: "bottom" | "top" | "top-right" | "top-left" | "bottom-right" | "bottom-left" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export type SnackbarRegionVariantProps = VariantProps<typeof snackbarRegionVariant>;
@@ -0,0 +1,13 @@
1
+ import { addSnackbar, AddSnackbarArgs, clearSnackbarQueue, Snackbar as Root, SnackbarProps } from './Snackbar';
2
+ import { SnackbarItem as Item, SnackbarItemProps } from './SnackbarItem';
3
+ import { SnackbarItemAction as ItemAction, SnackbarItemActionProps } from './SnackbarItemAction';
4
+ import { SnackbarItemClose as ItemClose, SnackbarItemCloseProps } from './SnackbarItemClose';
5
+ import { SnackbarItemIcon as ItemIcon, SnackbarItemIconProps } from './SnackbarItemIcon';
6
+ export declare const Snackbar: typeof Root & {
7
+ Item: typeof Item;
8
+ ItemAction: typeof ItemAction;
9
+ ItemClose: typeof ItemClose;
10
+ ItemIcon: typeof ItemIcon;
11
+ };
12
+ export type { SnackbarProps, SnackbarItemProps, SnackbarItemActionProps, SnackbarItemCloseProps, SnackbarItemIconProps, AddSnackbarArgs, };
13
+ export { addSnackbar, clearSnackbarQueue };
@@ -0,0 +1,13 @@
1
+ import { addSnackbar, AddSnackbarArgs, clearSnackbarQueue, Snackbar as Root, SnackbarProps } from './Snackbar';
2
+ import { SnackbarItem as Item, SnackbarItemProps } from './SnackbarItem';
3
+ import { SnackbarItemAction as ItemAction, SnackbarItemActionProps } from './SnackbarItemAction';
4
+ import { SnackbarItemClose as ItemClose, SnackbarItemCloseProps } from './SnackbarItemClose';
5
+ import { SnackbarItemIcon as ItemIcon, SnackbarItemIconProps } from './SnackbarItemIcon';
6
+ export declare const Snackbar: typeof Root & {
7
+ Item: typeof Item;
8
+ ItemAction: typeof ItemAction;
9
+ ItemClose: typeof ItemClose;
10
+ ItemIcon: typeof ItemIcon;
11
+ };
12
+ export type { SnackbarProps, SnackbarItemProps, SnackbarItemActionProps, SnackbarItemCloseProps, SnackbarItemIconProps, AddSnackbarArgs, };
13
+ export { addSnackbar, clearSnackbarQueue };
@@ -0,0 +1,74 @@
1
+ export declare const filledVariants: readonly [{
2
+ readonly design: "filled";
3
+ readonly intent: "success";
4
+ readonly class: readonly ["bg-success text-on-success"];
5
+ }, {
6
+ readonly design: "filled";
7
+ readonly intent: "alert";
8
+ readonly class: readonly ["bg-alert text-on-alert"];
9
+ }, {
10
+ readonly design: "filled";
11
+ readonly intent: "error";
12
+ readonly class: readonly ["bg-error text-on-error"];
13
+ }, {
14
+ readonly design: "filled";
15
+ readonly intent: "info";
16
+ readonly class: readonly ["bg-info text-on-info"];
17
+ }, {
18
+ readonly design: "filled";
19
+ readonly intent: "neutral";
20
+ readonly class: readonly ["bg-neutral text-on-neutral"];
21
+ }, {
22
+ readonly design: "filled";
23
+ readonly intent: "main";
24
+ readonly class: readonly ["bg-main text-on-main"];
25
+ }, {
26
+ readonly design: "filled";
27
+ readonly intent: "support";
28
+ readonly class: readonly ["bg-support text-on-support"];
29
+ }, {
30
+ readonly design: "filled";
31
+ readonly intent: "accent";
32
+ readonly class: readonly ["bg-accent text-on-accent"];
33
+ }, {
34
+ readonly design: "filled";
35
+ readonly intent: "inverse";
36
+ readonly class: readonly ["bg-surface-inverse text-on-surface-inverse"];
37
+ }];
38
+ export declare const tintedVariants: readonly [{
39
+ readonly design: "tinted";
40
+ readonly intent: "success";
41
+ readonly class: readonly ["bg-success-container text-on-success-container"];
42
+ }, {
43
+ readonly design: "tinted";
44
+ readonly intent: "alert";
45
+ readonly class: readonly ["bg-alert-container text-on-alert-container"];
46
+ }, {
47
+ readonly design: "tinted";
48
+ readonly intent: "error";
49
+ readonly class: readonly ["bg-error-container text-on-error-container"];
50
+ }, {
51
+ readonly design: "tinted";
52
+ readonly intent: "info";
53
+ readonly class: readonly ["bg-info-container text-on-info-container"];
54
+ }, {
55
+ readonly design: "tinted";
56
+ readonly intent: "neutral";
57
+ readonly class: readonly ["bg-neutral-container text-on-neutral-container"];
58
+ }, {
59
+ readonly design: "tinted";
60
+ readonly intent: "main";
61
+ readonly class: readonly ["bg-main-container text-on-main-container"];
62
+ }, {
63
+ readonly design: "tinted";
64
+ readonly intent: "support";
65
+ readonly class: readonly ["bg-support-container text-on-support-container"];
66
+ }, {
67
+ readonly design: "tinted";
68
+ readonly intent: "accent";
69
+ readonly class: readonly ["bg-accent-container text-on-accent-container"];
70
+ }, {
71
+ readonly design: "tinted";
72
+ readonly intent: "inverse";
73
+ readonly class: readonly ["bg-surface-inverse text-on-surface-inverse"];
74
+ }];
@@ -0,0 +1,18 @@
1
+ import { RefObject } from 'react';
2
+ interface UseSnackbarGlobalStoreArgs<T> {
3
+ providers: Set<T>;
4
+ subscriptions: Set<() => void>;
5
+ }
6
+ interface UseSnackbarGlobalStoreReturn<T> {
7
+ provider: T;
8
+ addProvider: (ref: T) => void;
9
+ deleteProvider: (ref: T) => void;
10
+ }
11
+ /**
12
+ * This hook is a basic abstraction of useSyncExternalStore hook which allows us
13
+ * to consume data from an external data store.
14
+ *
15
+ * Cf. https://react.dev/reference/react/useSyncExternalStore#subscribing-to-an-external-store
16
+ */
17
+ export declare const useSnackbarGlobalStore: <T = RefObject<HTMLDivElement | null>>({ providers, subscriptions, }: UseSnackbarGlobalStoreArgs<T>) => UseSnackbarGlobalStoreReturn<T>;
18
+ export {};
@@ -0,0 +1,15 @@
1
+ import { RefObject } from 'react';
2
+ interface SwipeArgs<T> {
3
+ swipeRef: RefObject<T | null>;
4
+ onSwipeStart?: ({ state, direction }: SwipeReturn) => void;
5
+ onSwipeMove?: ({ state, direction }: SwipeReturn) => void;
6
+ onSwipeCancel?: ({ state, direction }: SwipeReturn) => void;
7
+ onSwipeEnd?: ({ state, direction }: SwipeReturn) => void;
8
+ threshold?: number;
9
+ }
10
+ interface SwipeReturn {
11
+ state?: 'start' | 'move' | 'cancel' | 'end';
12
+ direction?: 'up' | 'down' | 'right' | 'left' | null;
13
+ }
14
+ export declare const useSwipe: <T extends HTMLElement>({ swipeRef, onSwipeStart, onSwipeMove, onSwipeCancel, onSwipeEnd, threshold, }: SwipeArgs<T>) => SwipeReturn;
15
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithRef, PropsWithChildren } from 'react';
2
+ import { SpinnerStylesProps } from './Spinner.styles';
3
+ export interface SpinnerProps extends ComponentPropsWithRef<'div'>, SpinnerStylesProps {
4
+ /**
5
+ * Use `label` prop for accessibility, it is important to add a fallback loading text. This text will be visible to screen readers.
6
+ */
7
+ label?: string;
8
+ }
9
+ export declare const Spinner: ({ className, size, intent, label, isBackgroundVisible, ref, ...others }: PropsWithChildren<SpinnerProps>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const spinnerStyles: (props?: ({
3
+ size?: "current" | "sm" | "md" | "full" | null | undefined;
4
+ intent?: "main" | "current" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
5
+ isBackgroundVisible?: boolean | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export type SpinnerStylesProps = VariantProps<typeof spinnerStyles>;
@@ -0,0 +1 @@
1
+ export * from './Spinner';
@@ -0,0 +1 @@
1
+ export * from './Spinner';
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren, RefObject } from 'react';
2
+ import { StepperProps, UseStepperReturn } from './types';
3
+ export declare const Stepper: {
4
+ ({ children, formatOptions, minValue, maxValue, ref: forwardedRef, ...stepperProps }: PropsWithChildren<StepperProps>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export declare const useStepperContext: () => Omit<UseStepperReturn, "groupProps"> & {
8
+ inputRef: RefObject<HTMLInputElement | null>;
9
+ };
@@ -0,0 +1,14 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { StepperButtonProps } from './types';
3
+ export declare const StepperIncrementButton: {
4
+ ({ children, design, intent, className, ref: forwardedRef, ...rest }: PropsWithChildren<StepperButtonProps>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ } & {
7
+ id: string;
8
+ };
9
+ export declare const StepperDecrementButton: {
10
+ ({ children, design, intent, className, ref: forwardedRef, ...rest }: PropsWithChildren<StepperButtonProps>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ } & {
13
+ id: string;
14
+ };
@@ -0,0 +1,7 @@
1
+ import { StepperInputProps } from './types';
2
+ export declare const StepperInput: {
3
+ ({ ref: forwardedRef, ...props }: StepperInputProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ } & {
6
+ id: string;
7
+ };
@@ -0,0 +1,9 @@
1
+ import { Stepper as Root } from './Stepper';
2
+ import { StepperDecrementButton as DecrementButton, StepperIncrementButton as IncrementButton } from './StepperButton';
3
+ import { StepperInput as Input } from './StepperInput';
4
+ export declare const Stepper: typeof Root & {
5
+ IncrementButton: typeof IncrementButton;
6
+ DecrementButton: typeof DecrementButton;
7
+ Input: typeof Input;
8
+ };
9
+ export type { StepperProps, StepperButtonProps, StepperInputProps } from './types';
@@ -0,0 +1,9 @@
1
+ import { Stepper as Root } from './Stepper';
2
+ import { StepperDecrementButton as DecrementButton, StepperIncrementButton as IncrementButton } from './StepperButton';
3
+ import { StepperInput as Input } from './StepperInput';
4
+ export declare const Stepper: typeof Root & {
5
+ IncrementButton: typeof IncrementButton;
6
+ DecrementButton: typeof DecrementButton;
7
+ Input: typeof Input;
8
+ };
9
+ export type { StepperProps, StepperButtonProps, StepperInputProps } from './types';
@@ -0,0 +1,46 @@
1
+ import { AriaButtonOptions } from '@react-aria/button';
2
+ import { NumberFieldAria } from '@react-aria/numberfield';
3
+ import { NumberFieldStateOptions } from '@react-stately/numberfield';
4
+ import { AriaNumberFieldProps } from '@react-types/numberfield';
5
+ import { Ref, RefObject } from 'react';
6
+ import { IconButtonProps } from '../icon-button';
7
+ import { InputGroupProps, InputProps } from '../input';
8
+ /**
9
+ * As we're using React Spectrum library to build this component, we also want
10
+ * to build our typing uppon theirs.
11
+ * Still, we have to adapt it to avoid exposing useless props.
12
+ */
13
+ export type StepperButtonProps = Omit<IconButtonProps, 'shape' | 'size' | 'disabled' | 'asChild' | 'isLoading' | 'loadingLabel'> & Omit<AriaButtonOptions<'button'>, 'elementType' | 'href' | 'target' | 'isDisabled' | 'excludeFromTabOrder' | 'aria-label' | 'preventFocusOnPress'> & {
14
+ disabled?: boolean;
15
+ ref?: Ref<HTMLButtonElement>;
16
+ };
17
+ type SpectrumNumberFieldPropsFilter = 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'validationState' | 'validationBehavior' | 'validate' | 'label' | 'description' | 'errorMessage' | 'isWheelDisabled' | 'id' | 'onCopy' | 'onCut' | 'onPaste' | 'onCompositionStart' | 'onCompositionEnd' | 'onCompositionUpdate' | 'onSelect' | 'onBeforeInput' | 'onInput';
18
+ export interface UseStepperArgs extends Omit<Omit<NumberFieldStateOptions, 'locale'> & Omit<AriaNumberFieldProps, 'incrementAriaLabel' | 'decrementAriaLabel'>, SpectrumNumberFieldPropsFilter> {
19
+ inputRef: RefObject<HTMLInputElement | null>;
20
+ /**
21
+ * Sets the component as interactive or not.
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * Sets the component as editable or not.
26
+ */
27
+ readOnly?: boolean;
28
+ /**
29
+ * Sets the component as mandatory for form validation.
30
+ */
31
+ required?: boolean;
32
+ /**
33
+ * The [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt) language code for the locale.
34
+ * @default 'fr'
35
+ */
36
+ locale?: string;
37
+ }
38
+ export type UseStepperReturn = Pick<NumberFieldAria, 'groupProps' | 'inputProps' | 'incrementButtonProps' | 'decrementButtonProps'>;
39
+ export type StepperProps = Omit<Omit<UseStepperArgs, 'inputRef' | 'aria-label'> & Omit<InputGroupProps, 'onClear'>, 'onChange'> & {
40
+ onValueChange?: (e: number) => void;
41
+ ref?: Ref<HTMLDivElement>;
42
+ };
43
+ export type StepperInputProps = Omit<InputProps, 'asChild'> & {
44
+ ref?: Ref<HTMLInputElement>;
45
+ };
46
+ export {};
@@ -0,0 +1,2 @@
1
+ import { UseStepperArgs, UseStepperReturn } from './types';
2
+ export declare const useStepper: ({ inputRef, locale, ...rest }: UseStepperArgs) => UseStepperReturn;
@@ -0,0 +1,6 @@
1
+ import { SwitchInputProps } from './SwitchInput';
2
+ export type SwitchProps = SwitchInputProps;
3
+ export declare const Switch: {
4
+ ({ size, children, className, id, disabled, reverse, ref, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,53 @@
1
+ import { Switch as BaseSwitch } from '@base-ui/react/switch';
2
+ import { ComponentPropsWithRef, ReactNode } from 'react';
3
+ import { StylesProps } from './SwitchInput.styles';
4
+ export interface SwitchInputProps extends StylesProps, Omit<ComponentPropsWithRef<typeof BaseSwitch.Root>, 'value' | 'render' | 'onCheckedChange'> {
5
+ /**
6
+ * The state of the switch when it is initially rendered. Use when you do not need to control its state.
7
+ */
8
+ defaultChecked?: boolean;
9
+ /**
10
+ * The controlled state of the switch. Must be used in conjunction with `onCheckedChange`.
11
+ */
12
+ checked?: boolean;
13
+ /**
14
+ * Event handler called when the state of the switch changes.
15
+ */
16
+ onCheckedChange?: (checked: boolean) => void;
17
+ /**
18
+ * When `true`, prevents the user from interacting with the switch.
19
+ */
20
+ disabled?: boolean;
21
+ /**
22
+ * When true, indicates that the user must check the switch before the owning form can be submitted.
23
+ */
24
+ required?: boolean;
25
+ /**
26
+ * The name of the switch. Submitted with its owning form as part of a name/value pair.
27
+ */
28
+ name?: string;
29
+ /**
30
+ * The value given as data when submitted with a name.
31
+ */
32
+ value?: string;
33
+ /**
34
+ * Icon shown inside the thumb of the Switch whenever it is checked
35
+ */
36
+ checkedIcon?: ReactNode;
37
+ /**
38
+ * Icon shown inside the thumb of the Switch whenever it is unchecked
39
+ */
40
+ uncheckedIcon?: ReactNode;
41
+ /**
42
+ * When true, the label will be placed on the left side of the Switch
43
+ */
44
+ reverse?: boolean;
45
+ /**
46
+ * Change the default rendered element for the one passed as a child, merging their props and behavior.
47
+ */
48
+ asChild?: boolean;
49
+ }
50
+ export declare const SwitchInput: {
51
+ ({ checked, checkedIcon, defaultChecked, intent: intentProp, uncheckedIcon, size, onCheckedChange, className, required, ref, asChild, ...rest }: SwitchInputProps): import("react/jsx-runtime").JSX.Element;
52
+ displayName: string;
53
+ };
@@ -0,0 +1,16 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const styles: (props?: ({
3
+ size?: "sm" | "md" | null | undefined;
4
+ intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export type StylesProps = VariantProps<typeof styles>;
7
+ export declare const thumbWrapperStyles: (props?: ({
8
+ checked?: boolean | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
+ export declare const thumbStyles: (props?: ({
11
+ size?: "sm" | "md" | null | undefined;
12
+ checked?: boolean | null | undefined;
13
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
+ export declare const thumbCheckSVGStyles: (props?: ({
15
+ size?: "sm" | "md" | null | undefined;
16
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,17 @@
1
+ import { LabelProps } from '../label';
2
+ import { LabelStylesProps } from './SwitchLabel.styles';
3
+ export interface SwitchLabelProps extends LabelStylesProps, LabelProps {
4
+ /**
5
+ * Change the component to the HTML tag or custom component of the only child.
6
+ */
7
+ asChild?: boolean;
8
+ /**
9
+ * The id of the element the label is associated with.
10
+ */
11
+ htmlFor?: string;
12
+ /**
13
+ * When true, prevents the user from interacting with the switch item.
14
+ */
15
+ disabled?: boolean;
16
+ }
17
+ export declare const SwitchLabel: ({ className, disabled, ...others }: SwitchLabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const labelStyles: (props?: ({
3
+ disabled?: boolean | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export type LabelStylesProps = VariantProps<typeof labelStyles>;
@@ -0,0 +1 @@
1
+ export * from './Switch';
@@ -0,0 +1 @@
1
+ export * from './Switch';
@@ -0,0 +1,24 @@
1
+ import { Tabs as BaseTabs } from '@base-ui/react/tabs';
2
+ import { ComponentProps, PropsWithChildren, Ref } from 'react';
3
+ import { TabsTriggerVariantsProps } from './TabsTrigger.styles';
4
+ export interface TabsProps extends Omit<ComponentProps<typeof BaseTabs.Root>, 'render'>, PropsWithChildren<Omit<TabsTriggerVariantsProps, 'orientation'>> {
5
+ /**
6
+ * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
7
+ * @default false
8
+ */
9
+ asChild?: boolean;
10
+ /**
11
+ * Whether to keep inactive tabs content in the DOM.
12
+ * @default false
13
+ */
14
+ forceMount?: boolean;
15
+ ref?: Ref<HTMLDivElement>;
16
+ }
17
+ /**
18
+ * @deprecated
19
+ */
20
+ export type TabsRootProps = TabsProps;
21
+ export declare const Tabs: {
22
+ ({ intent, size, asChild, forceMount, orientation, children, className, ref, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
23
+ displayName: string;
24
+ };
@@ -0,0 +1,22 @@
1
+ import { Tabs as BaseTabs } from '@base-ui/react/tabs';
2
+ import { ComponentProps, PropsWithChildren, Ref } from 'react';
3
+ export interface TabsContentProps extends PropsWithChildren<Omit<ComponentProps<typeof BaseTabs.Panel>, 'keepMounted' | 'render'>> {
4
+ /**
5
+ * A unique value that associates the content with a trigger.
6
+ */
7
+ value: string;
8
+ /**
9
+ * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
10
+ * @default false
11
+ */
12
+ asChild?: boolean;
13
+ /**
14
+ * Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
15
+ */
16
+ forceMount?: true;
17
+ ref?: Ref<HTMLDivElement>;
18
+ }
19
+ export declare const TabsContent: {
20
+ ({ children, asChild, className, ref, forceMount, ...rest }: TabsContentProps): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
@@ -0,0 +1,3 @@
1
+ export declare const contentStyles: (props?: ({
2
+ forceMount?: boolean | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,7 @@
1
+ import { TabsTriggerVariantsProps } from './TabsTrigger.styles';
2
+ export type TabsContextInterface = TabsTriggerVariantsProps & {
3
+ orientation?: 'horizontal' | 'vertical';
4
+ forceMount?: boolean;
5
+ };
6
+ export declare const TabsContext: import('react').Context<TabsContextInterface>;
7
+ export declare const useTabsContext: () => TabsContextInterface;
@@ -0,0 +1,20 @@
1
+ import { Tabs as BaseTabs } from '@base-ui/react/tabs';
2
+ import { ComponentProps, ReactElement, Ref } from 'react';
3
+ export interface TabsListProps extends Omit<ComponentProps<typeof BaseTabs.List>, 'render' | 'loopFocus'> {
4
+ /**
5
+ * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
6
+ * @default false
7
+ */
8
+ asChild?: boolean;
9
+ /**
10
+ * When true, keyboard navigation will loop from last tab to first, and vice versa.
11
+ * @default false
12
+ */
13
+ loop?: boolean;
14
+ children: ReactElement[] | ReactElement;
15
+ ref?: Ref<HTMLDivElement>;
16
+ }
17
+ export declare const TabsList: {
18
+ ({ asChild, loop, children, className, ref, ...rest }: TabsListProps): import("react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ };
@@ -0,0 +1,3 @@
1
+ export declare const wrapperStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
2
+ export declare const listStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
3
+ export declare const navigationArrowStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
@@ -0,0 +1,29 @@
1
+ import { ReactNode, Ref } from 'react';
2
+ export interface TabsPopoverProps {
3
+ /**
4
+ * The tab value this popover is associated with (automatically set by Tabs.Trigger)
5
+ */
6
+ tabValue?: string;
7
+ /**
8
+ * Whether this tab is currently active (automatically set by Tabs.Trigger)
9
+ */
10
+ isTabActive?: boolean;
11
+ /**
12
+ * Whether the popover is open
13
+ */
14
+ open?: boolean;
15
+ /**
16
+ * Callback when popover open state changes
17
+ */
18
+ onOpenChange?: (open: boolean) => void;
19
+ /**
20
+ * The popover content - typically a Popover or other overlay component
21
+ */
22
+ children: ReactNode;
23
+ /**
24
+ * Additional className for positioning
25
+ */
26
+ className?: string;
27
+ ref?: Ref<HTMLDivElement>;
28
+ }
29
+ export declare const TabsPopover: import('react').ForwardRefExoticComponent<Omit<TabsPopoverProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,27 @@
1
+ import { ComponentType, ReactNode, RefObject } from 'react';
2
+ import { Popover as SparkPopover } from '../popover';
3
+ import { PopoverProps } from '../popover/Popover';
4
+ import { ContentProps as PopoverContentProps } from '../popover/PopoverContent';
5
+ import { TriggerProps as PopoverTriggerProps } from '../popover/PopoverTrigger';
6
+ interface TabsPopoverTriggerProps extends Omit<PopoverTriggerProps, 'asChild' | 'children'> {
7
+ 'aria-label': string;
8
+ children?: ReactNode;
9
+ }
10
+ declare const TabsPopoverTrigger: import('react').ForwardRefExoticComponent<Omit<TabsPopoverTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
11
+ declare const TabsPopoverContent: import('react').ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
12
+ export type TabsPopoverTriggerComponent = typeof TabsPopoverTrigger;
13
+ export type TabsPopoverContentComponent = typeof TabsPopoverContent;
14
+ export type ConfiguredPopoverComponent = ComponentType<PopoverProps> & Omit<typeof SparkPopover, 'Content' | 'Trigger'> & {
15
+ Content: TabsPopoverContentComponent;
16
+ Trigger: TabsPopoverTriggerComponent;
17
+ };
18
+ interface PopoverAbstractionProps {
19
+ popoverSide: 'right' | 'bottom';
20
+ popoverTriggerRef: RefObject<HTMLButtonElement | null>;
21
+ children: (Popover: ConfiguredPopoverComponent) => ReactNode;
22
+ }
23
+ export declare const Popover: {
24
+ ({ popoverSide, popoverTriggerRef, children }: PopoverAbstractionProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
27
+ export {};
@@ -0,0 +1 @@
1
+ export declare const rootStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
@@ -0,0 +1,41 @@
1
+ import { Tabs as BaseTabs } from '@base-ui/react/tabs';
2
+ import { ComponentProps, ReactNode, Ref } from 'react';
3
+ import { ConfiguredPopoverComponent } from './TabsPopoverAbstraction';
4
+ export interface TabsTriggerProps extends Omit<ComponentProps<typeof BaseTabs.Tab>, 'render'> {
5
+ /**
6
+ * A unique value that associates the trigger with a content.
7
+ */
8
+ value: string;
9
+ /**
10
+ * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
11
+ * @default false
12
+ */
13
+ asChild?: boolean;
14
+ /**
15
+ * When true, prevents the user from interacting with the tab.
16
+ * @default false
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Function that receives a pre-configured Popover component and returns the popover structure.
21
+ * @example
22
+ * renderMenu={({ Popover }) => (
23
+ * <Popover>
24
+ * <Popover.Trigger aria-label="Options">
25
+ * <CustomIcon />
26
+ * </Popover.Trigger>
27
+ * <Popover.Content>
28
+ * <Button>Action</Button>
29
+ * </Popover.Content>
30
+ * </Popover>
31
+ * )}
32
+ */
33
+ renderMenu?: (props: {
34
+ Popover: ConfiguredPopoverComponent;
35
+ }) => ReactNode;
36
+ ref?: Ref<HTMLButtonElement>;
37
+ }
38
+ export declare const TabsTrigger: {
39
+ ({ asChild, value, disabled, children, className, ref, onKeyDown, renderMenu, ...rest }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
40
+ displayName: string;
41
+ };