@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,9 @@
1
+ import { Popover as RadixPopover } from 'radix-ui';
2
+ import { Ref } from 'react';
3
+ export type TriggerProps = RadixPopover.PopoverTriggerProps & {
4
+ ref?: Ref<HTMLButtonElement>;
5
+ };
6
+ export declare const Trigger: {
7
+ ({ asChild, children, ref, ...rest }: TriggerProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -0,0 +1,17 @@
1
+ import { Popover as Root } from './Popover';
2
+ import { Anchor } from './PopoverAnchor';
3
+ import { Arrow } from './PopoverArrow';
4
+ import { CloseButton } from './PopoverCloseButton';
5
+ import { Content } from './PopoverContent';
6
+ import { Header } from './PopoverHeader';
7
+ import { Portal } from './PopoverPortal';
8
+ import { Trigger } from './PopoverTrigger';
9
+ export declare const Popover: typeof Root & {
10
+ Anchor: typeof Anchor;
11
+ Arrow: typeof Arrow;
12
+ CloseButton: typeof CloseButton;
13
+ Content: typeof Content;
14
+ Header: typeof Header;
15
+ Portal: typeof Portal;
16
+ Trigger: typeof Trigger;
17
+ };
@@ -0,0 +1,17 @@
1
+ import { Popover as Root } from './Popover';
2
+ import { Anchor } from './PopoverAnchor';
3
+ import { Arrow } from './PopoverArrow';
4
+ import { CloseButton } from './PopoverCloseButton';
5
+ import { Content } from './PopoverContent';
6
+ import { Header } from './PopoverHeader';
7
+ import { Portal } from './PopoverPortal';
8
+ import { Trigger } from './PopoverTrigger';
9
+ export declare const Popover: typeof Root & {
10
+ Anchor: typeof Anchor;
11
+ Arrow: typeof Arrow;
12
+ CloseButton: typeof CloseButton;
13
+ Content: typeof Content;
14
+ Header: typeof Header;
15
+ Portal: typeof Portal;
16
+ Trigger: typeof Trigger;
17
+ };
@@ -0,0 +1,10 @@
1
+ import { PropsWithChildren, Ref } from 'react';
2
+ interface PortalProps {
3
+ /**
4
+ * An optional different container where the portaled content should be appended.
5
+ */
6
+ container?: HTMLElement | null;
7
+ ref?: Ref<HTMLDivElement>;
8
+ }
9
+ export declare const Portal: (props: PropsWithChildren<PortalProps>) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export { Portal } from './Portal';
@@ -0,0 +1 @@
1
+ export { Portal } from './Portal';
@@ -0,0 +1,24 @@
1
+ import { Progress as BaseProgress } from '@base-ui/react/progress';
2
+ import { ComponentProps, PropsWithChildren, Ref } from 'react';
3
+ import { ProgressIndicatorStylesProps } from './ProgressIndicator';
4
+ export interface ProgressProps extends Omit<ComponentProps<typeof BaseProgress.Root>, 'render'>, Pick<ProgressIndicatorStylesProps, 'intent'> {
5
+ shape?: 'square' | 'rounded';
6
+ /**
7
+ * Callback called when the progress reaches its maximum value and the transition animation completes.
8
+ */
9
+ onComplete?: () => void;
10
+ /**
11
+ * Function that returns a string value that provides a human-readable text alternative for the current value of the progress bar.
12
+ * @deprecated Use `getAriaValueText` instead. This prop is kept for backward compatibility.
13
+ */
14
+ getValueLabel?: (value: number, max: number) => string;
15
+ /**
16
+ * Change the default rendered element for the one passed as a child, merging their props and behavior.
17
+ */
18
+ asChild?: boolean;
19
+ ref?: Ref<HTMLDivElement>;
20
+ }
21
+ export declare const Progress: {
22
+ ({ className, value: valueProp, max, min, shape, intent, onComplete, getValueLabel, getAriaValueText: getAriaValueTextProp, children, ref, ...others }: PropsWithChildren<ProgressProps>): import("react/jsx-runtime").JSX.Element;
23
+ displayName: string;
24
+ };
@@ -0,0 +1,13 @@
1
+ import { ProgressIndicatorStylesProps } from './ProgressIndicator';
2
+ export interface ProgressContextValue {
3
+ value: number | null;
4
+ max: number;
5
+ min: number;
6
+ shape: 'square' | 'rounded';
7
+ intent: ProgressIndicatorStylesProps['intent'];
8
+ onLabelId: (id?: string) => void;
9
+ onComplete?: () => void;
10
+ }
11
+ export declare const ProgressContext: import('react').Context<ProgressContextValue | null>;
12
+ export declare const ID_PREFIX = ":progress";
13
+ export declare const useProgress: () => ProgressContextValue;
@@ -0,0 +1,13 @@
1
+ import { Progress as BaseProgress } from '@base-ui/react/progress';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { ComponentProps, PropsWithChildren } from 'react';
4
+ export declare const progressIndicatorStyles: (props?: ({
5
+ intent?: "main" | "alert" | "support" | "accent" | "success" | "info" | "neutral" | "danger" | null | undefined;
6
+ shape?: "square" | "rounded" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export type ProgressIndicatorStylesProps = VariantProps<typeof progressIndicatorStyles>;
9
+ export type ProgressIndicatorProps = Omit<ComponentProps<typeof BaseProgress.Indicator>, 'render'>;
10
+ export declare const ProgressIndicator: {
11
+ ({ className, style, ref, onTransitionEnd, ...others }: PropsWithChildren<ProgressIndicatorProps>): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
@@ -0,0 +1,7 @@
1
+ import { Progress as BaseProgress } from '@base-ui/react/progress';
2
+ import { ComponentProps } from 'react';
3
+ export type ProgressLabelProps = Omit<ComponentProps<typeof BaseProgress.Label>, 'render'>;
4
+ export declare const ProgressLabel: {
5
+ ({ id: idProp, children, ref: forwardedRef, ...others }: ProgressLabelProps): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { Progress as BaseProgress } from '@base-ui/react/progress';
2
+ import { ComponentProps } from 'react';
3
+ export type ProgressTrackProps = Omit<ComponentProps<typeof BaseProgress.Track>, 'render'>;
4
+ export declare const ProgressTrack: {
5
+ ({ className, ...others }: ProgressTrackProps): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { Progress as BaseProgress } from '@base-ui/react/progress';
2
+ import { ComponentProps, PropsWithChildren } from 'react';
3
+ export type ProgressValueProps = Omit<ComponentProps<typeof BaseProgress.Value>, 'render'>;
4
+ export declare const ProgressValue: {
5
+ ({ className, children, ...others }: PropsWithChildren<ProgressValueProps>): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,13 @@
1
+ import { Progress as Root } from './Progress';
2
+ import { ProgressLabel } from './ProgressLabel';
3
+ import { ProgressTrack } from './ProgressTrack';
4
+ import { ProgressValue } from './ProgressValue';
5
+ export declare const Progress: typeof Root & {
6
+ Label: typeof ProgressLabel;
7
+ Track: typeof ProgressTrack;
8
+ Value: typeof ProgressValue;
9
+ };
10
+ export { type ProgressProps } from './Progress';
11
+ export { type ProgressLabelProps } from './ProgressLabel';
12
+ export { type ProgressTrackProps } from './ProgressTrack';
13
+ export { type ProgressValueProps } from './ProgressValue';
@@ -0,0 +1,13 @@
1
+ import { Progress as Root } from './Progress';
2
+ import { ProgressLabel } from './ProgressLabel';
3
+ import { ProgressTrack } from './ProgressTrack';
4
+ import { ProgressValue } from './ProgressValue';
5
+ export declare const Progress: typeof Root & {
6
+ Label: typeof ProgressLabel;
7
+ Track: typeof ProgressTrack;
8
+ Value: typeof ProgressValue;
9
+ };
10
+ export { type ProgressProps } from './Progress';
11
+ export { type ProgressLabelProps } from './ProgressLabel';
12
+ export { type ProgressTrackProps } from './ProgressTrack';
13
+ export { type ProgressValueProps } from './ProgressValue';
@@ -0,0 +1,27 @@
1
+ import { ComponentPropsWithRef, PropsWithChildren } from 'react';
2
+ import { StepIndicatorVariantProps } from './ProgressTrackerStepIndicator.styles';
3
+ export interface ProgressTrackerProps extends ComponentPropsWithRef<'div'>, Pick<StepIndicatorVariantProps, 'size' | 'intent'> {
4
+ /**
5
+ * The orientation of the progress tracker
6
+ * @default 'horizontal"
7
+ */
8
+ orientation?: 'horizontal' | 'vertical';
9
+ /**
10
+ * The index of the current step.
11
+ * @default 0
12
+ */
13
+ stepIndex?: number;
14
+ /**
15
+ * Event handler called when clicking on a step.
16
+ */
17
+ onStepClick?: (stepIndex: number) => void;
18
+ /**
19
+ * Sets the component as interactive or not.
20
+ * @default false
21
+ */
22
+ readOnly?: boolean;
23
+ }
24
+ export declare const ProgressTracker: {
25
+ ({ stepIndex, onStepClick, readOnly, intent, size, orientation, children, className, ref, ...rest }: PropsWithChildren<ProgressTrackerProps>): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
@@ -0,0 +1 @@
1
+ export declare const progressList: string;
@@ -0,0 +1,15 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ProgressTrackerProps } from './ProgressTracker';
3
+ export type ProgressTrackerContextInterface = Required<Pick<ProgressTrackerProps, 'stepIndex' | 'size' | 'intent' | 'readOnly'>> & Pick<ProgressTrackerProps, 'onStepClick'> & {
4
+ steps: Map<string, string[]>;
5
+ setSteps: Dispatch<SetStateAction<Map<string, string[]>>>;
6
+ };
7
+ export interface ProgressTrackerStepContextInterface {
8
+ index: number;
9
+ state: 'active' | 'complete' | 'incomplete';
10
+ }
11
+ export declare const ProgressTrackerContext: import('react').Context<ProgressTrackerContextInterface>;
12
+ export declare const ProgressTrackerStepContext: import('react').Context<ProgressTrackerStepContextInterface>;
13
+ export declare const useProgressTrackerContext: () => ProgressTrackerContextInterface;
14
+ export declare const useProgressTrackerStepContext: () => ProgressTrackerStepContextInterface;
15
+ export declare const ID_PREFIX = ":progress-tracker";
@@ -0,0 +1,12 @@
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ export type ProgressTrackerStepProps = ComponentPropsWithRef<'li'> & ({
3
+ disabled?: boolean;
4
+ children: ReactNode;
5
+ } | {
6
+ disabled?: boolean;
7
+ 'aria-label': string;
8
+ });
9
+ export declare const ProgressTrackerStep: {
10
+ ({ disabled, children, "aria-label": ariaLabel, className, ref, ...rest }: ProgressTrackerStepProps): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
@@ -0,0 +1,10 @@
1
+ export declare const stepItemVariant: (props?: ({
2
+ size?: "sm" | "md" | "lg" | null | undefined;
3
+ intent?: "support" | "success" | "neutral" | null | undefined;
4
+ disabled?: boolean | null | undefined;
5
+ disabledAfter?: boolean | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export declare const stepButtonVariant: (props?: ({
8
+ size?: "sm" | "md" | "lg" | null | undefined;
9
+ readOnly?: boolean | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,15 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export type ProgressTrackerStepIndicatorProps = ComponentPropsWithoutRef<'span'> & {
3
+ /**
4
+ * The content to be rendered when step status is complete (checkmark icon by default)
5
+ */
6
+ complete?: ReactNode;
7
+ /**
8
+ * The content to be rendered when step status is incomplete (step index by default)
9
+ */
10
+ incomplete?: ReactNode;
11
+ };
12
+ export declare const ProgressTrackerStepIndicator: {
13
+ ({ complete, incomplete, className, }: ProgressTrackerStepIndicatorProps): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
@@ -0,0 +1,7 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const stepIndicatorVariant: (props?: ({
3
+ size?: "sm" | "md" | "lg" | null | undefined;
4
+ intent?: "support" | "success" | "neutral" | null | undefined;
5
+ state?: "active" | "complete" | "incomplete" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export type StepIndicatorVariantProps = VariantProps<typeof stepIndicatorVariant>;
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ type ProgressTrackerStepLabelProps = ComponentPropsWithoutRef<'span'> & {
3
+ children: ReactNode;
4
+ };
5
+ export declare const ProgressTrackerStepLabel: {
6
+ ({ className, children, }: ProgressTrackerStepLabelProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ProgressTracker as Root, ProgressTrackerProps } from './ProgressTracker';
2
+ import { ProgressTrackerStep as Step, ProgressTrackerStepProps } from './ProgressTrackerStep';
3
+ import { ProgressTrackerStepIndicator as StepIndicator, ProgressTrackerStepIndicatorProps } from './ProgressTrackerStepIndicator';
4
+ import { ProgressTrackerStepLabel as StepLabel } from './ProgressTrackerStepLabel';
5
+ export declare const ProgressTracker: typeof Root & {
6
+ Step: typeof Step;
7
+ StepLabel: typeof StepLabel;
8
+ StepIndicator: typeof StepIndicator;
9
+ };
10
+ export type { ProgressTrackerProps, ProgressTrackerStepProps, ProgressTrackerStepIndicatorProps };
@@ -0,0 +1,10 @@
1
+ import { ProgressTracker as Root, ProgressTrackerProps } from './ProgressTracker';
2
+ import { ProgressTrackerStep as Step, ProgressTrackerStepProps } from './ProgressTrackerStep';
3
+ import { ProgressTrackerStepIndicator as StepIndicator, ProgressTrackerStepIndicatorProps } from './ProgressTrackerStepIndicator';
4
+ import { ProgressTrackerStepLabel as StepLabel } from './ProgressTrackerStepLabel';
5
+ export declare const ProgressTracker: typeof Root & {
6
+ Step: typeof Step;
7
+ StepLabel: typeof StepLabel;
8
+ StepIndicator: typeof StepIndicator;
9
+ };
10
+ export type { ProgressTrackerProps, ProgressTrackerStepProps, ProgressTrackerStepIndicatorProps };
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'react';
2
+ import { RadioInputProps } from './RadioInput';
3
+ export type RadioProps = RadioInputProps & {
4
+ ref?: Ref<HTMLButtonElement>;
5
+ };
6
+ export declare const Radio: {
7
+ ({ className, children, id, disabled: disabledProp, ref, ...others }: RadioProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -0,0 +1,54 @@
1
+ import { HTMLAttributes, Ref } from 'react';
2
+ import { RadioGroupVariantsProps } from './RadioGroup.styles';
3
+ import { RadioInputVariantsProps } from './RadioInput.styles';
4
+ export interface RadioGroupProps extends RadioGroupVariantsProps, Pick<RadioInputVariantsProps, 'intent'>, Omit<HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue' | 'dir' | 'onChange'> {
5
+ /**
6
+ * Change the component to the HTML tag or custom component of the only child.
7
+ */
8
+ asChild?: boolean;
9
+ /**
10
+ * The value of the radio item that should be checked when initially rendered. Use when you do not need to control the state of the radio items.
11
+ */
12
+ defaultValue?: string;
13
+ /**
14
+ * The controlled value of the radio item to check. Should be used in conjunction with onValueChange.
15
+ */
16
+ value?: string;
17
+ /**
18
+ * Event handler called when the value changes.
19
+ */
20
+ onValueChange?: (value: string) => void;
21
+ /**
22
+ * When true, prevents the user from interacting with radio items.
23
+ */
24
+ disabled?: boolean;
25
+ /**
26
+ * The name of the group. Submitted with its owning form as part of a name/value pair.
27
+ */
28
+ name?: string;
29
+ /**
30
+ * When true, indicates that the user must check a radio item before the owning form can be submitted.
31
+ */
32
+ required?: boolean;
33
+ /**
34
+ * The orientation of the component.
35
+ */
36
+ orientation?: 'horizontal' | 'vertical';
37
+ /**
38
+ * The reading direction of the radio group.
39
+ */
40
+ dir?: 'ltr' | 'rtl';
41
+ /**
42
+ * When true, keyboard navigation will loop from last item to first, and vice versa.
43
+ */
44
+ loop?: boolean;
45
+ /**
46
+ * When true, the label will be placed on the left side of the Radio
47
+ */
48
+ reverse?: boolean;
49
+ ref?: Ref<HTMLDivElement>;
50
+ }
51
+ export declare const RadioGroup: {
52
+ ({ orientation, loop, intent, disabled, className, required: requiredProp, reverse, ref, ...others }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
53
+ displayName: string;
54
+ };
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const radioGroupStyles: (props?: ({
3
+ orientation?: "horizontal" | "vertical" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export type RadioGroupVariantsProps = VariantProps<typeof radioGroupStyles>;
@@ -0,0 +1,5 @@
1
+ import { RadioGroupProps } from './RadioGroup';
2
+ import { RadioInputProps } from './RadioInput';
3
+ export type RadioGroupContextState = Pick<RadioInputProps, 'intent' | 'disabled'> & Pick<RadioGroupProps, 'reverse'>;
4
+ export declare const RadioGroupContext: import('react').Context<RadioGroupContextState | null>;
5
+ export declare const useRadioGroup: () => RadioGroupContextState;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { RadioGroupProps } from './RadioGroup';
3
+ import { RadioInputProps } from './RadioInput';
4
+ export interface RadioGroupProviderProps extends Pick<RadioInputProps, 'intent' | 'disabled'>, Pick<RadioGroupProps, 'reverse'> {
5
+ children: ReactNode;
6
+ }
7
+ export declare const RadioGroupProvider: ({ intent, disabled, reverse, children, }: RadioGroupProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { Ref } from 'react';
2
+ import { RadioIndicatorStylesProps } from './RadioIndicator.styles';
3
+ export interface RadioIndicatorProps extends RadioIndicatorStylesProps {
4
+ className?: string;
5
+ /**
6
+ * Change the component to the HTML tag or custom component of the only child.
7
+ */
8
+ asChild?: boolean;
9
+ /**
10
+ * Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
11
+ */
12
+ forceMount?: true | undefined;
13
+ ref?: Ref<HTMLSpanElement>;
14
+ }
15
+ export declare const RadioIndicator: {
16
+ ({ intent, className, ref, ...others }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const radioIndicatorStyles: (props?: ({
3
+ intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export type RadioIndicatorStylesProps = VariantProps<typeof radioIndicatorStyles>;
@@ -0,0 +1,25 @@
1
+ import { ButtonHTMLAttributes, Ref } from 'react';
2
+ import { RadioInputVariantsProps } from './RadioInput.styles';
3
+ export interface RadioInputProps extends RadioInputVariantsProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> {
4
+ /**
5
+ * Change the component to the HTML tag or custom component of the only child.
6
+ */
7
+ asChild?: boolean;
8
+ /**
9
+ * The value given as data when submitted with a name.
10
+ */
11
+ value: string;
12
+ /**
13
+ * When true, prevents the user from interacting with the radio item.
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * When true, indicates that the user must check the radio item before the owning form can be submitted.
18
+ */
19
+ required?: boolean;
20
+ ref?: Ref<HTMLButtonElement>;
21
+ }
22
+ export declare const RadioInput: {
23
+ ({ intent: intentProp, className, ref, ...others }: RadioInputProps): import("react/jsx-runtime").JSX.Element;
24
+ displayName: string;
25
+ };
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const radioInputVariants: (props?: ({
3
+ intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export type RadioInputVariantsProps = VariantProps<typeof radioInputVariants>;
@@ -0,0 +1,20 @@
1
+ import { HTMLAttributes, PropsWithChildren } from 'react';
2
+ import { RadioLabelStylesProps } from './RadioLabel.styles';
3
+ export interface RadioLabelProps extends RadioLabelStylesProps, PropsWithChildren<HTMLAttributes<HTMLLabelElement>> {
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 radio item.
14
+ */
15
+ disabled?: boolean;
16
+ }
17
+ export declare const RadioLabel: {
18
+ ({ disabled, ...others }: RadioLabelProps): import("react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ };
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const radioLabelStyles: (props?: ({
3
+ disabled?: boolean | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export type RadioLabelStylesProps = VariantProps<typeof radioLabelStyles>;
@@ -0,0 +1,7 @@
1
+ import { Radio } from './Radio';
2
+ import { RadioGroup as Root } from './RadioGroup';
3
+ export declare const RadioGroup: typeof Root & {
4
+ Radio: typeof Radio;
5
+ };
6
+ export { type RadioGroupProps } from './RadioGroup';
7
+ export { type RadioProps } from './Radio';
@@ -0,0 +1,7 @@
1
+ import { Radio } from './Radio';
2
+ import { RadioGroup as Root } from './RadioGroup';
3
+ export declare const RadioGroup: typeof Root & {
4
+ Radio: typeof Radio;
5
+ };
6
+ export { type RadioGroupProps } from './RadioGroup';
7
+ export { type RadioProps } from './Radio';
@@ -0,0 +1,57 @@
1
+ import { ComponentPropsWithRef, PropsWithChildren } from 'react';
2
+ import { RatingValue } from './types';
3
+ export interface RatingProps extends PropsWithChildren<ComponentPropsWithRef<'div'>> {
4
+ /**
5
+ * Use the `defaultValue` prop to set the default value of the input, on a from 0 to 5.
6
+ *
7
+ * Use this when you want to use it in an uncontrolled manner
8
+ */
9
+ defaultValue?: RatingValue;
10
+ /**
11
+ * The value is the number of the rating selected, on a scale from 0 to 5.
12
+ *
13
+ * Use this when you want to use it in a controlled manner,
14
+ * in conjunction with the `onValueChange` prop
15
+ */
16
+ value?: RatingValue;
17
+ /**
18
+ * Event handler called when the value changes.
19
+ */
20
+ onValueChange?: (value: RatingValue) => void;
21
+ /**
22
+ * Sets the component as interactive or not.
23
+ * @default undefined
24
+ */
25
+ readOnly?: boolean;
26
+ /**
27
+ * When `true`, prevents the user from interacting.
28
+ * @default false
29
+ */
30
+ disabled?: boolean;
31
+ /**
32
+ * When true, indicates that the user must select a rating before form submission.
33
+ * @default false
34
+ */
35
+ required?: boolean;
36
+ /**
37
+ * Name of the underlying hidden input (for form submission).
38
+ * @default undefined
39
+ */
40
+ name?: string;
41
+ /**
42
+ * id of the underlying hidden input.
43
+ * @default undefined
44
+ */
45
+ id?: string;
46
+ /**
47
+ * aria-label of the radiogroup.
48
+ * @default undefined
49
+ */
50
+ 'aria-label'?: string;
51
+ /**
52
+ * Returns the aria-label applied to each radio star.
53
+ * Defaults to `${aria-label} ${index + 1}`.
54
+ */
55
+ getStarLabel?: (index: number) => string;
56
+ }
57
+ export declare const Rating: ({ defaultValue, value: propValue, onValueChange, disabled, readOnly, required: requiredProp, name, id, "aria-label": ariaLabel, getStarLabel, ref, ...rest }: RatingProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { KeyboardEvent, MouseEvent, PropsWithChildren, Ref } from 'react';
2
+ import { RatingStarIconStylesProps, RatingStarstylesProps } from './RatingStar.styles';
3
+ import { StarValue } from './types';
4
+ export interface RatingStarProps extends PropsWithChildren<RatingStarstylesProps>, RatingStarIconStylesProps {
5
+ value: StarValue;
6
+ /** Whether this radio option is selected (for radiogroup pattern). */
7
+ checked?: boolean;
8
+ /** Accessible name for the radio (e.g. "one star", "two stars"). */
9
+ ariaLabel?: string;
10
+ /** Accessible ids used to compose the radio name. */
11
+ ariaLabelledBy?: string;
12
+ /** Tab index for roving tabindex (0 or -1). */
13
+ tabIndex?: number;
14
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
15
+ onKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
16
+ onMouseEnter?: (event: MouseEvent<HTMLDivElement>) => void;
17
+ ref?: Ref<HTMLDivElement>;
18
+ }
19
+ export declare const RatingStar: ({ value, size, disabled, readOnly, checked, ariaLabel, ariaLabelledBy, tabIndex, onClick, onKeyDown, onMouseEnter, children, ref: forwardedRef, }: RatingStarProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ declare const ratingStarStyles: (props?: ({
3
+ disabled?: boolean | null | undefined;
4
+ readOnly?: boolean | null | undefined;
5
+ gap?: "sm" | "md" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare const ratingStarIconStyles: (props?: ({
8
+ size?: "sm" | "md" | "lg" | null | undefined;
9
+ design?: "filled" | "outlined" | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ type RatingStarstylesProps = Omit<VariantProps<typeof ratingStarStyles>, 'gap'>;
12
+ type RatingStarIconStylesProps = Omit<VariantProps<typeof ratingStarIconStyles>, 'design'>;
13
+ export { ratingStarStyles, ratingStarIconStyles };
14
+ export type { RatingStarstylesProps, RatingStarIconStylesProps };
@@ -0,0 +1 @@
1
+ export { Rating, type RatingProps } from './Rating';
@@ -0,0 +1 @@
1
+ export { Rating, type RatingProps } from './Rating';
@@ -0,0 +1,2 @@
1
+ export type RatingValue = 0 | 1 | 2 | 3 | 4 | 5;
2
+ export type StarValue = 0 | 1;
@@ -0,0 +1,7 @@
1
+ import { StarValue } from './types';
2
+ declare function getStarValue({ value, index }: {
3
+ value?: number;
4
+ index: number;
5
+ }): StarValue;
6
+ declare function splitAt<T>(arr: T[], index: number): [T[], T[]];
7
+ export { getStarValue, splitAt };