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

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 (530) hide show
  1. package/dist/radio-group/index.js +1 -1
  2. package/dist/radio-group/index.js.map +1 -1
  3. package/dist/radio-group/index.mjs +129 -123
  4. package/dist/radio-group/index.mjs.map +1 -1
  5. package/dist/segmented-control/index.js +1 -1
  6. package/dist/segmented-control/index.js.map +1 -1
  7. package/dist/segmented-control/index.mjs +128 -116
  8. package/dist/segmented-control/index.mjs.map +1 -1
  9. package/package.json +4 -5
  10. package/dist/accordion/Accordion.d.ts +0 -27
  11. package/dist/accordion/AccordionItem.d.ts +0 -12
  12. package/dist/accordion/AccordionItemContent.d.ts +0 -12
  13. package/dist/accordion/AccordionItemHeader.d.ts +0 -9
  14. package/dist/accordion/AccordionItemTrigger.d.ts +0 -12
  15. package/dist/accordion/index.d.mts +0 -15
  16. package/dist/accordion/index.d.ts +0 -15
  17. package/dist/accordion/useRenderSlot.d.ts +0 -3
  18. package/dist/alert-dialog/AlertDialog.d.ts +0 -29
  19. package/dist/alert-dialog/AlertDialogAction.d.ts +0 -13
  20. package/dist/alert-dialog/AlertDialogBody.d.ts +0 -12
  21. package/dist/alert-dialog/AlertDialogCancel.d.ts +0 -13
  22. package/dist/alert-dialog/AlertDialogContent.d.ts +0 -9
  23. package/dist/alert-dialog/AlertDialogContext.d.ts +0 -12
  24. package/dist/alert-dialog/AlertDialogDescription.d.ts +0 -9
  25. package/dist/alert-dialog/AlertDialogFooter.d.ts +0 -10
  26. package/dist/alert-dialog/AlertDialogHeader.d.ts +0 -10
  27. package/dist/alert-dialog/AlertDialogOverlay.d.ts +0 -9
  28. package/dist/alert-dialog/AlertDialogPortal.d.ts +0 -7
  29. package/dist/alert-dialog/AlertDialogTitle.d.ts +0 -9
  30. package/dist/alert-dialog/AlertDialogTrigger.d.ts +0 -13
  31. package/dist/alert-dialog/index.d.mts +0 -38
  32. package/dist/alert-dialog/index.d.ts +0 -38
  33. package/dist/alert-dialog/useRenderSlot.d.ts +0 -3
  34. package/dist/avatar/Avatar.d.ts +0 -3
  35. package/dist/avatar/AvatarAction.d.ts +0 -9
  36. package/dist/avatar/AvatarImage.d.ts +0 -7
  37. package/dist/avatar/AvatarOnlineBadge.d.ts +0 -9
  38. package/dist/avatar/AvatarPlaceholder.d.ts +0 -8
  39. package/dist/avatar/AvatarUser.d.ts +0 -7
  40. package/dist/avatar/context.d.ts +0 -5
  41. package/dist/avatar/index.d.mts +0 -15
  42. package/dist/avatar/index.d.ts +0 -15
  43. package/dist/avatar/types.d.ts +0 -24
  44. package/dist/badge/Badge.d.ts +0 -9
  45. package/dist/badge/BadgeItem.d.ts +0 -31
  46. package/dist/badge/BadgeItem.styles.d.ts +0 -7
  47. package/dist/badge/index.d.mts +0 -1
  48. package/dist/badge/index.d.ts +0 -1
  49. package/dist/breadcrumb/Breadcrumb.d.ts +0 -10
  50. package/dist/breadcrumb/Breadcrumb.styles.d.ts +0 -0
  51. package/dist/breadcrumb/BreadcrumbCurrentPage.d.ts +0 -11
  52. package/dist/breadcrumb/BreadcrumbItem.d.ts +0 -9
  53. package/dist/breadcrumb/BreadcrumbLink.d.ts +0 -12
  54. package/dist/breadcrumb/BreadcrumbSeparator.d.ts +0 -10
  55. package/dist/breadcrumb/index.d.mts +0 -12
  56. package/dist/breadcrumb/index.d.ts +0 -12
  57. package/dist/button/Button.d.ts +0 -26
  58. package/dist/button/Button.styles.d.ts +0 -10
  59. package/dist/button/index.d.mts +0 -1
  60. package/dist/button/index.d.ts +0 -1
  61. package/dist/button/variants/contrast.d.ts +0 -41
  62. package/dist/button/variants/filled.d.ts +0 -41
  63. package/dist/button/variants/ghost.d.ts +0 -41
  64. package/dist/button/variants/index.d.mts +0 -5
  65. package/dist/button/variants/index.d.ts +0 -5
  66. package/dist/button/variants/outlined.d.ts +0 -41
  67. package/dist/button/variants/tinted.d.ts +0 -41
  68. package/dist/card/Backdrop.d.ts +0 -14
  69. package/dist/card/Card.d.ts +0 -16
  70. package/dist/card/Card.styles.d.ts +0 -7
  71. package/dist/card/Content.d.ts +0 -15
  72. package/dist/card/Content.styles.d.ts +0 -8
  73. package/dist/card/context.d.ts +0 -11
  74. package/dist/card/index.d.mts +0 -8
  75. package/dist/card/index.d.ts +0 -8
  76. package/dist/card/utils.d.ts +0 -3
  77. package/dist/carousel/Carousel.d.ts +0 -12
  78. package/dist/carousel/CarouselControls.d.ts +0 -9
  79. package/dist/carousel/CarouselNextButton.d.ts +0 -5
  80. package/dist/carousel/CarouselPageIndicator.d.ts +0 -14
  81. package/dist/carousel/CarouselPagePicker.d.ts +0 -14
  82. package/dist/carousel/CarouselPrevButton.d.ts +0 -5
  83. package/dist/carousel/CarouselSlide.d.ts +0 -12
  84. package/dist/carousel/CarouselSlides.d.ts +0 -10
  85. package/dist/carousel/CarouselViewport.d.ts +0 -9
  86. package/dist/carousel/index.d.mts +0 -19
  87. package/dist/carousel/index.d.ts +0 -19
  88. package/dist/carousel/types.d.ts +0 -165
  89. package/dist/carousel/useCarousel.d.ts +0 -2
  90. package/dist/carousel/useCarouselVisibility.d.ts +0 -13
  91. package/dist/carousel/useEvent.d.ts +0 -7
  92. package/dist/carousel/useIsMounted.d.ts +0 -1
  93. package/dist/carousel/useIsVisible.d.ts +0 -6
  94. package/dist/carousel/useResizeObserver.d.ts +0 -2
  95. package/dist/carousel/useScrollEnd.d.ts +0 -3
  96. package/dist/carousel/useSnapPoints.d.ts +0 -10
  97. package/dist/carousel/utils.d.ts +0 -24
  98. package/dist/checkbox/Checkbox.d.ts +0 -10
  99. package/dist/checkbox/CheckboxGroup.d.ts +0 -18
  100. package/dist/checkbox/CheckboxGroup.styles.d.ts +0 -5
  101. package/dist/checkbox/CheckboxGroupContext.d.ts +0 -41
  102. package/dist/checkbox/CheckboxIndicator.d.ts +0 -9
  103. package/dist/checkbox/CheckboxInput.d.ts +0 -47
  104. package/dist/checkbox/CheckboxInput.styles.d.ts +0 -5
  105. package/dist/checkbox/CheckboxLabel.d.ts +0 -12
  106. package/dist/checkbox/CheckboxLabel.styles.d.ts +0 -5
  107. package/dist/checkbox/index.d.mts +0 -2
  108. package/dist/checkbox/index.d.ts +0 -2
  109. package/dist/chip/Chip.d.ts +0 -34
  110. package/dist/chip/Chip.styles.d.ts +0 -8
  111. package/dist/chip/ChipClearButton.d.ts +0 -10
  112. package/dist/chip/ChipClearButton.styles.d.ts +0 -10
  113. package/dist/chip/ChipContent.d.ts +0 -8
  114. package/dist/chip/ChipIcon.d.ts +0 -8
  115. package/dist/chip/ChipLeadingIcon.d.ts +0 -9
  116. package/dist/chip/ChipTrailingIcon.d.ts +0 -9
  117. package/dist/chip/index.d.mts +0 -15
  118. package/dist/chip/index.d.ts +0 -15
  119. package/dist/chip/useChipContext.d.ts +0 -4
  120. package/dist/chip/useChipElement.d.ts +0 -41
  121. package/dist/chip/variants/dashed.d.ts +0 -45
  122. package/dist/chip/variants/index.d.mts +0 -3
  123. package/dist/chip/variants/index.d.ts +0 -3
  124. package/dist/chip/variants/outlined.d.ts +0 -45
  125. package/dist/chip/variants/tinted.d.ts +0 -45
  126. package/dist/circular-meter/CircularMeter.d.ts +0 -34
  127. package/dist/circular-meter/CircularMeter.styles.d.ts +0 -5
  128. package/dist/circular-meter/CircularMeterContent.d.ts +0 -6
  129. package/dist/circular-meter/CircularMeterContext.d.ts +0 -36
  130. package/dist/circular-meter/CircularMeterLabel.d.ts +0 -7
  131. package/dist/circular-meter/CircularMeterTrack.d.ts +0 -8
  132. package/dist/circular-meter/CircularMeterValue.d.ts +0 -7
  133. package/dist/circular-meter/index.d.mts +0 -16
  134. package/dist/circular-meter/index.d.ts +0 -16
  135. package/dist/circular-meter/useIntersectionAnimation.d.ts +0 -26
  136. package/dist/collapsible/Content.d.ts +0 -12
  137. package/dist/collapsible/Root.d.ts +0 -12
  138. package/dist/collapsible/Trigger.d.ts +0 -11
  139. package/dist/collapsible/index.d.mts +0 -7
  140. package/dist/collapsible/index.d.ts +0 -7
  141. package/dist/collapsible/useRenderSlot.d.ts +0 -3
  142. package/dist/combobox/Combobox.d.ts +0 -6
  143. package/dist/combobox/ComboboxClearButton.d.ts +0 -9
  144. package/dist/combobox/ComboboxContext.d.ts +0 -108
  145. package/dist/combobox/ComboboxDisclosure.d.ts +0 -13
  146. package/dist/combobox/ComboboxEmpty.d.ts +0 -11
  147. package/dist/combobox/ComboboxGroup.d.ts +0 -11
  148. package/dist/combobox/ComboboxInput.d.ts +0 -15
  149. package/dist/combobox/ComboboxItem.d.ts +0 -12
  150. package/dist/combobox/ComboboxItemContext.d.ts +0 -17
  151. package/dist/combobox/ComboboxItemIndicator.d.ts +0 -11
  152. package/dist/combobox/ComboboxItemText.d.ts +0 -10
  153. package/dist/combobox/ComboboxItems.d.ts +0 -11
  154. package/dist/combobox/ComboboxItemsGroupContext.d.ts +0 -8
  155. package/dist/combobox/ComboboxLabel.d.ts +0 -11
  156. package/dist/combobox/ComboboxLeadingIcon.d.ts +0 -7
  157. package/dist/combobox/ComboboxPopover.d.ts +0 -10
  158. package/dist/combobox/ComboboxPortal.d.ts +0 -2
  159. package/dist/combobox/ComboboxSelectedItems.d.ts +0 -4
  160. package/dist/combobox/ComboboxTrigger.d.ts +0 -11
  161. package/dist/combobox/ComboboxTrigger.styles.d.ts +0 -6
  162. package/dist/combobox/index.d.mts +0 -35
  163. package/dist/combobox/index.d.ts +0 -35
  164. package/dist/combobox/tests/test-utils.d.ts +0 -8
  165. package/dist/combobox/types.d.ts +0 -8
  166. package/dist/combobox/useCombobox/multipleSelectionReducer.d.ts +0 -13
  167. package/dist/combobox/useCombobox/singleSelectionReducer.d.ts +0 -8
  168. package/dist/combobox/utils/index.d.mts +0 -14
  169. package/dist/combobox/utils/index.d.ts +0 -14
  170. package/dist/combobox/utils/useWidthIncreaseCallback.d.ts +0 -2
  171. package/dist/dialog/Dialog.d.ts +0 -33
  172. package/dist/dialog/DialogBody.d.ts +0 -12
  173. package/dist/dialog/DialogClose.d.ts +0 -10
  174. package/dist/dialog/DialogCloseButton.d.ts +0 -9
  175. package/dist/dialog/DialogContent.d.ts +0 -14
  176. package/dist/dialog/DialogContent.styles.d.ts +0 -6
  177. package/dist/dialog/DialogContext.d.ts +0 -11
  178. package/dist/dialog/DialogDescription.d.ts +0 -9
  179. package/dist/dialog/DialogFooter.d.ts +0 -10
  180. package/dist/dialog/DialogHeader.d.ts +0 -10
  181. package/dist/dialog/DialogOverlay.d.ts +0 -9
  182. package/dist/dialog/DialogPortal.d.ts +0 -7
  183. package/dist/dialog/DialogTitle.d.ts +0 -9
  184. package/dist/dialog/DialogTrigger.d.ts +0 -13
  185. package/dist/dialog/index.d.mts +0 -37
  186. package/dist/dialog/index.d.ts +0 -37
  187. package/dist/divider/Divider.d.ts +0 -30
  188. package/dist/divider/Divider.styles.d.ts +0 -9
  189. package/dist/divider/DividerContent.d.ts +0 -13
  190. package/dist/divider/index.d.mts +0 -6
  191. package/dist/divider/index.d.ts +0 -6
  192. package/dist/divider/variants/intents.d.ts +0 -17
  193. package/dist/drawer/Drawer.d.ts +0 -32
  194. package/dist/drawer/DrawerBody.d.ts +0 -11
  195. package/dist/drawer/DrawerBody.styles.d.ts +0 -5
  196. package/dist/drawer/DrawerClose.d.ts +0 -13
  197. package/dist/drawer/DrawerCloseButton.d.ts +0 -7
  198. package/dist/drawer/DrawerContent.d.ts +0 -10
  199. package/dist/drawer/DrawerContent.styles.d.ts +0 -6
  200. package/dist/drawer/DrawerContext.d.ts +0 -9
  201. package/dist/drawer/DrawerDescription.d.ts +0 -9
  202. package/dist/drawer/DrawerFooter.d.ts +0 -8
  203. package/dist/drawer/DrawerHeader.d.ts +0 -10
  204. package/dist/drawer/DrawerOverlay.d.ts +0 -9
  205. package/dist/drawer/DrawerPortal.d.ts +0 -7
  206. package/dist/drawer/DrawerTitle.d.ts +0 -9
  207. package/dist/drawer/DrawerTrigger.d.ts +0 -13
  208. package/dist/drawer/index.d.mts +0 -37
  209. package/dist/drawer/index.d.ts +0 -37
  210. package/dist/drawer/useRenderSlot.d.ts +0 -3
  211. package/dist/dropdown/Dropdown.d.ts +0 -6
  212. package/dist/dropdown/DropdownContext.d.ts +0 -81
  213. package/dist/dropdown/DropdownDivider.d.ts +0 -10
  214. package/dist/dropdown/DropdownGroup.d.ts +0 -11
  215. package/dist/dropdown/DropdownItem.d.ts +0 -12
  216. package/dist/dropdown/DropdownItemContext.d.ts +0 -17
  217. package/dist/dropdown/DropdownItemIndicator.d.ts +0 -11
  218. package/dist/dropdown/DropdownItemText.d.ts +0 -9
  219. package/dist/dropdown/DropdownItems.d.ts +0 -21
  220. package/dist/dropdown/DropdownItemsGroupContext.d.ts +0 -8
  221. package/dist/dropdown/DropdownLabel.d.ts +0 -11
  222. package/dist/dropdown/DropdownLeadingIcon.d.ts +0 -7
  223. package/dist/dropdown/DropdownPopover.d.ts +0 -6
  224. package/dist/dropdown/DropdownPortal.d.ts +0 -2
  225. package/dist/dropdown/DropdownTrigger.d.ts +0 -12
  226. package/dist/dropdown/DropdownTrigger.styles.d.ts +0 -5
  227. package/dist/dropdown/DropdownValue.d.ts +0 -11
  228. package/dist/dropdown/index.d.mts +0 -29
  229. package/dist/dropdown/index.d.ts +0 -29
  230. package/dist/dropdown/types.d.ts +0 -8
  231. package/dist/dropdown/useDropdown.d.ts +0 -41
  232. package/dist/dropdown/utils.d.ts +0 -13
  233. package/dist/file-upload/FileUpload.d.ts +0 -130
  234. package/dist/file-upload/FileUploadAcceptedFile.d.ts +0 -25
  235. package/dist/file-upload/FileUploadContext.d.ts +0 -17
  236. package/dist/file-upload/FileUploadDropzone.d.ts +0 -10
  237. package/dist/file-upload/FileUploadItemDeleteTrigger.d.ts +0 -11
  238. package/dist/file-upload/FileUploadPreviewImage.d.ts +0 -17
  239. package/dist/file-upload/FileUploadRejectedFile.d.ts +0 -24
  240. package/dist/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +0 -12
  241. package/dist/file-upload/FileUploadTrigger.d.ts +0 -12
  242. package/dist/file-upload/constants.d.ts +0 -29
  243. package/dist/file-upload/index.d.mts +0 -22
  244. package/dist/file-upload/index.d.ts +0 -22
  245. package/dist/file-upload/test-utils.d.ts +0 -9
  246. package/dist/file-upload/useFileUploadState.d.ts +0 -88
  247. package/dist/file-upload/utils.d.ts +0 -40
  248. package/dist/form-field/FormField.d.ts +0 -21
  249. package/dist/form-field/FormFieldAlertMessage.d.ts +0 -9
  250. package/dist/form-field/FormFieldCharactersCount.d.ts +0 -26
  251. package/dist/form-field/FormFieldContext.d.ts +0 -49
  252. package/dist/form-field/FormFieldControl.d.ts +0 -12
  253. package/dist/form-field/FormFieldErrorMessage.d.ts +0 -9
  254. package/dist/form-field/FormFieldHelperMessage.d.ts +0 -9
  255. package/dist/form-field/FormFieldLabel.d.ts +0 -13
  256. package/dist/form-field/FormFieldMessage.d.ts +0 -8
  257. package/dist/form-field/FormFieldProvider.d.ts +0 -9
  258. package/dist/form-field/FormFieldRequiredIndicator.d.ts +0 -9
  259. package/dist/form-field/FormFieldStateMessage.d.ts +0 -10
  260. package/dist/form-field/FormFieldSuccessMessage.d.ts +0 -9
  261. package/dist/form-field/index.d.mts +0 -31
  262. package/dist/form-field/index.d.ts +0 -31
  263. package/dist/icon/Icon.d.ts +0 -17
  264. package/dist/icon/Icon.styles.d.ts +0 -6
  265. package/dist/icon/index.d.mts +0 -1
  266. package/dist/icon/index.d.ts +0 -1
  267. package/dist/icon-button/IconButton.d.ts +0 -10
  268. package/dist/icon-button/IconButton.styles.d.ts +0 -5
  269. package/dist/icon-button/index.d.mts +0 -1
  270. package/dist/icon-button/index.d.ts +0 -1
  271. package/dist/input/Input.d.ts +0 -14
  272. package/dist/input/Input.styles.d.ts +0 -11
  273. package/dist/input/InputAddon.d.ts +0 -9
  274. package/dist/input/InputAddon.styles.d.ts +0 -9
  275. package/dist/input/InputClearButton.d.ts +0 -12
  276. package/dist/input/InputGroup.d.ts +0 -17
  277. package/dist/input/InputGroup.styles.d.ts +0 -6
  278. package/dist/input/InputGroupContext.d.ts +0 -14
  279. package/dist/input/InputIcon.d.ts +0 -6
  280. package/dist/input/InputLeadingAddon.d.ts +0 -11
  281. package/dist/input/InputLeadingIcon.d.ts +0 -7
  282. package/dist/input/InputTrailingAddon.d.ts +0 -11
  283. package/dist/input/InputTrailingIcon.d.ts +0 -7
  284. package/dist/input/index.d.mts +0 -21
  285. package/dist/input/index.d.ts +0 -21
  286. package/dist/input-otp/InputOTP.d.ts +0 -90
  287. package/dist/input-otp/InputOTP.styles.d.ts +0 -10
  288. package/dist/input-otp/InputOTPContext.d.ts +0 -17
  289. package/dist/input-otp/InputOTPGroup.d.ts +0 -7
  290. package/dist/input-otp/InputOTPSeparator.d.ts +0 -7
  291. package/dist/input-otp/InputOTPSlot.d.ts +0 -12
  292. package/dist/input-otp/index.d.mts +0 -14
  293. package/dist/input-otp/index.d.ts +0 -14
  294. package/dist/input-otp/useInputOTP.d.ts +0 -48
  295. package/dist/kbd/Kbd.d.ts +0 -5
  296. package/dist/kbd/index.d.mts +0 -1
  297. package/dist/kbd/index.d.ts +0 -1
  298. package/dist/label/Label.d.ts +0 -9
  299. package/dist/label/LabelRequiredIndicator.d.ts +0 -6
  300. package/dist/label/index.d.mts +0 -7
  301. package/dist/label/index.d.ts +0 -7
  302. package/dist/link-box/LinkBox.d.ts +0 -8
  303. package/dist/link-box/LinkBoxLink.d.ts +0 -8
  304. package/dist/link-box/LinkBoxRaised.d.ts +0 -9
  305. package/dist/link-box/index.d.mts +0 -9
  306. package/dist/link-box/index.d.ts +0 -9
  307. package/dist/meter/Meter.d.ts +0 -18
  308. package/dist/meter/MeterContext.d.ts +0 -12
  309. package/dist/meter/MeterLabel.d.ts +0 -7
  310. package/dist/meter/MeterTrack.d.ts +0 -7
  311. package/dist/meter/MeterTrack.styles.d.ts +0 -8
  312. package/dist/meter/MeterValue.d.ts +0 -9
  313. package/dist/meter/index.d.mts +0 -13
  314. package/dist/meter/index.d.ts +0 -13
  315. package/dist/meter/useIntersectionAnimation.d.ts +0 -26
  316. package/dist/pagination/Pagination.d.ts +0 -8
  317. package/dist/pagination/PaginationContext.d.ts +0 -43
  318. package/dist/pagination/PaginationEllipsis.d.ts +0 -9
  319. package/dist/pagination/PaginationFirstPageTrigger.d.ts +0 -22
  320. package/dist/pagination/PaginationItem.d.ts +0 -31
  321. package/dist/pagination/PaginationLastPageTrigger.d.ts +0 -22
  322. package/dist/pagination/PaginationNextTrigger.d.ts +0 -22
  323. package/dist/pagination/PaginationPages.d.ts +0 -16
  324. package/dist/pagination/PaginationPrevTrigger.d.ts +0 -22
  325. package/dist/pagination/index.d.mts +0 -18
  326. package/dist/pagination/index.d.ts +0 -18
  327. package/dist/pagination/utils.d.ts +0 -1
  328. package/dist/popover/Popover.d.ts +0 -9
  329. package/dist/popover/PopoverAnchor.d.ts +0 -9
  330. package/dist/popover/PopoverArrow.d.ts +0 -9
  331. package/dist/popover/PopoverCloseButton.d.ts +0 -10
  332. package/dist/popover/PopoverContent.d.ts +0 -10
  333. package/dist/popover/PopoverContent.styles.d.ts +0 -9
  334. package/dist/popover/PopoverContext.d.ts +0 -15
  335. package/dist/popover/PopoverHeader.d.ts +0 -10
  336. package/dist/popover/PopoverPortal.d.ts +0 -7
  337. package/dist/popover/PopoverTrigger.d.ts +0 -9
  338. package/dist/popover/index.d.mts +0 -17
  339. package/dist/popover/index.d.ts +0 -17
  340. package/dist/portal/Portal.d.ts +0 -10
  341. package/dist/portal/index.d.mts +0 -1
  342. package/dist/portal/index.d.ts +0 -1
  343. package/dist/progress/Progress.d.ts +0 -24
  344. package/dist/progress/ProgressContext.d.ts +0 -13
  345. package/dist/progress/ProgressIndicator.d.ts +0 -13
  346. package/dist/progress/ProgressLabel.d.ts +0 -7
  347. package/dist/progress/ProgressTrack.d.ts +0 -7
  348. package/dist/progress/ProgressValue.d.ts +0 -7
  349. package/dist/progress/index.d.mts +0 -13
  350. package/dist/progress/index.d.ts +0 -13
  351. package/dist/progress-tracker/ProgressTracker.d.ts +0 -27
  352. package/dist/progress-tracker/ProgressTracker.styles.d.ts +0 -1
  353. package/dist/progress-tracker/ProgressTrackerContext.d.ts +0 -15
  354. package/dist/progress-tracker/ProgressTrackerStep.d.ts +0 -12
  355. package/dist/progress-tracker/ProgressTrackerStep.styles.d.ts +0 -10
  356. package/dist/progress-tracker/ProgressTrackerStepIndicator.d.ts +0 -15
  357. package/dist/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +0 -7
  358. package/dist/progress-tracker/ProgressTrackerStepLabel.d.ts +0 -9
  359. package/dist/progress-tracker/index.d.mts +0 -10
  360. package/dist/progress-tracker/index.d.ts +0 -10
  361. package/dist/radio-group/Radio.d.ts +0 -9
  362. package/dist/radio-group/RadioGroup.d.ts +0 -50
  363. package/dist/radio-group/RadioGroup.styles.d.ts +0 -5
  364. package/dist/radio-group/RadioGroupContext.d.ts +0 -5
  365. package/dist/radio-group/RadioGroupProvider.d.ts +0 -7
  366. package/dist/radio-group/RadioIndicator.d.ts +0 -15
  367. package/dist/radio-group/RadioIndicator.styles.d.ts +0 -5
  368. package/dist/radio-group/RadioInput.d.ts +0 -37
  369. package/dist/radio-group/RadioInput.styles.d.ts +0 -5
  370. package/dist/radio-group/index.d.mts +0 -7
  371. package/dist/radio-group/index.d.ts +0 -7
  372. package/dist/rating/Rating.d.ts +0 -57
  373. package/dist/rating/RatingStar.d.ts +0 -19
  374. package/dist/rating/RatingStar.styles.d.ts +0 -14
  375. package/dist/rating/index.d.mts +0 -1
  376. package/dist/rating/index.d.ts +0 -1
  377. package/dist/rating/types.d.ts +0 -2
  378. package/dist/rating/utils.d.ts +0 -7
  379. package/dist/rating-display/RatingDisplay.d.ts +0 -31
  380. package/dist/rating-display/RatingDisplayContext.d.ts +0 -12
  381. package/dist/rating-display/RatingDisplayCount.d.ts +0 -12
  382. package/dist/rating-display/RatingDisplayStar.d.ts +0 -16
  383. package/dist/rating-display/RatingDisplayStars.d.ts +0 -22
  384. package/dist/rating-display/RatingDisplayValue.d.ts +0 -13
  385. package/dist/rating-display/index.d.mts +0 -14
  386. package/dist/rating-display/index.d.ts +0 -14
  387. package/dist/rating-display/types.d.ts +0 -1
  388. package/dist/rating-display/utils.d.ts +0 -10
  389. package/dist/scrolling-list/ScrollingList.d.ts +0 -57
  390. package/dist/scrolling-list/ScrollingListControls.d.ts +0 -18
  391. package/dist/scrolling-list/ScrollingListItem.d.ts +0 -17
  392. package/dist/scrolling-list/ScrollingListItems.d.ts +0 -11
  393. package/dist/scrolling-list/ScrollingListNextButton.d.ts +0 -5
  394. package/dist/scrolling-list/ScrollingListPrevButton.d.ts +0 -5
  395. package/dist/scrolling-list/ScrollingListSkipButton.d.ts +0 -9
  396. package/dist/scrolling-list/index.d.mts +0 -15
  397. package/dist/scrolling-list/index.d.ts +0 -15
  398. package/dist/scrolling-list/useFocusWithinScroll.d.ts +0 -3
  399. package/dist/segmented-control/SegmentedControl.d.ts +0 -22
  400. package/dist/segmented-control/SegmentedControl.styles.d.ts +0 -5
  401. package/dist/segmented-control/SegmentedControlContext.d.ts +0 -7
  402. package/dist/segmented-control/SegmentedControlIndicator.d.ts +0 -8
  403. package/dist/segmented-control/SegmentedControlItem.d.ts +0 -18
  404. package/dist/segmented-control/index.d.mts +0 -10
  405. package/dist/segmented-control/index.d.ts +0 -10
  406. package/dist/segmented-gauge/SegmentedGauge.d.ts +0 -66
  407. package/dist/segmented-gauge/SegmentedGaugeContext.d.ts +0 -14
  408. package/dist/segmented-gauge/SegmentedGaugeLabel.d.ts +0 -9
  409. package/dist/segmented-gauge/SegmentedGaugeSegment.d.ts +0 -12
  410. package/dist/segmented-gauge/SegmentedGaugeTrack.d.ts +0 -8
  411. package/dist/segmented-gauge/index.d.mts +0 -13
  412. package/dist/segmented-gauge/index.d.ts +0 -13
  413. package/dist/select/Select.d.ts +0 -6
  414. package/dist/select/SelectContext.d.ts +0 -59
  415. package/dist/select/SelectGroup.d.ts +0 -11
  416. package/dist/select/SelectItem.d.ts +0 -11
  417. package/dist/select/SelectItems.d.ts +0 -10
  418. package/dist/select/SelectItemsGroupContext.d.ts +0 -9
  419. package/dist/select/SelectLabel.d.ts +0 -8
  420. package/dist/select/SelectLeadingIcon.d.ts +0 -7
  421. package/dist/select/SelectPlaceholder.d.ts +0 -10
  422. package/dist/select/SelectTrigger.d.ts +0 -16
  423. package/dist/select/SelectTrigger.styles.d.ts +0 -5
  424. package/dist/select/SelectValue.d.ts +0 -15
  425. package/dist/select/index.d.mts +0 -21
  426. package/dist/select/index.d.ts +0 -21
  427. package/dist/select/types.d.ts +0 -6
  428. package/dist/select/utils.d.ts +0 -4
  429. package/dist/skeleton/Skeleton.d.ts +0 -17
  430. package/dist/skeleton/Skeleton.styles.d.ts +0 -5
  431. package/dist/skeleton/SkeletonItem.d.ts +0 -31
  432. package/dist/skeleton/SkeletonItem.styles.d.ts +0 -8
  433. package/dist/skeleton/index.d.mts +0 -8
  434. package/dist/skeleton/index.d.ts +0 -8
  435. package/dist/slider/Slider.d.ts +0 -55
  436. package/dist/slider/Slider.styles.d.ts +0 -1
  437. package/dist/slider/SliderContext.d.ts +0 -13
  438. package/dist/slider/SliderControl.d.ts +0 -7
  439. package/dist/slider/SliderIndicator.d.ts +0 -7
  440. package/dist/slider/SliderLabel.d.ts +0 -13
  441. package/dist/slider/SliderMaxValue.d.ts +0 -6
  442. package/dist/slider/SliderMinValue.d.ts +0 -6
  443. package/dist/slider/SliderThumb.d.ts +0 -7
  444. package/dist/slider/SliderThumb.styles.d.ts +0 -5
  445. package/dist/slider/SliderThumbContext.d.ts +0 -5
  446. package/dist/slider/SliderTrack.d.ts +0 -7
  447. package/dist/slider/SliderTrack.styles.d.ts +0 -6
  448. package/dist/slider/SliderValue.d.ts +0 -12
  449. package/dist/slider/index.d.mts +0 -20
  450. package/dist/slider/index.d.ts +0 -20
  451. package/dist/slider/useSliderValueBoundaries.d.ts +0 -12
  452. package/dist/slot/Slot.d.ts +0 -12
  453. package/dist/slot/index.d.mts +0 -1
  454. package/dist/slot/index.d.ts +0 -1
  455. package/dist/snackbar/Snackbar.d.ts +0 -29
  456. package/dist/snackbar/SnackbarItem.d.ts +0 -49
  457. package/dist/snackbar/SnackbarItem.styles.d.ts +0 -10
  458. package/dist/snackbar/SnackbarItemAction.d.ts +0 -10
  459. package/dist/snackbar/SnackbarItemClose.d.ts +0 -9
  460. package/dist/snackbar/SnackbarItemContext.d.ts +0 -8
  461. package/dist/snackbar/SnackbarItemIcon.d.ts +0 -7
  462. package/dist/snackbar/SnackbarRegion.d.ts +0 -30
  463. package/dist/snackbar/SnackbarRegion.styles.d.ts +0 -5
  464. package/dist/snackbar/index.d.mts +0 -13
  465. package/dist/snackbar/index.d.ts +0 -13
  466. package/dist/snackbar/snackbarVariants.d.ts +0 -74
  467. package/dist/snackbar/useSnackbarGlobalStore.d.ts +0 -18
  468. package/dist/snackbar/useSwipe.d.ts +0 -15
  469. package/dist/spinner/Spinner.d.ts +0 -9
  470. package/dist/spinner/Spinner.styles.d.ts +0 -7
  471. package/dist/spinner/index.d.mts +0 -1
  472. package/dist/spinner/index.d.ts +0 -1
  473. package/dist/stepper/Stepper.d.ts +0 -9
  474. package/dist/stepper/StepperButton.d.ts +0 -14
  475. package/dist/stepper/StepperInput.d.ts +0 -7
  476. package/dist/stepper/index.d.mts +0 -9
  477. package/dist/stepper/index.d.ts +0 -9
  478. package/dist/stepper/types.d.ts +0 -46
  479. package/dist/stepper/useStepper.d.ts +0 -2
  480. package/dist/switch/Switch.d.ts +0 -6
  481. package/dist/switch/SwitchInput.d.ts +0 -53
  482. package/dist/switch/SwitchInput.styles.d.ts +0 -16
  483. package/dist/switch/SwitchLabel.d.ts +0 -17
  484. package/dist/switch/SwitchLabel.styles.d.ts +0 -5
  485. package/dist/switch/index.d.mts +0 -1
  486. package/dist/switch/index.d.ts +0 -1
  487. package/dist/tabs/Tabs.d.ts +0 -24
  488. package/dist/tabs/TabsContent.d.ts +0 -22
  489. package/dist/tabs/TabsContent.styles.d.ts +0 -3
  490. package/dist/tabs/TabsContext.d.ts +0 -7
  491. package/dist/tabs/TabsList.d.ts +0 -20
  492. package/dist/tabs/TabsList.styles.d.ts +0 -3
  493. package/dist/tabs/TabsPopover.d.ts +0 -29
  494. package/dist/tabs/TabsPopoverAbstraction.d.ts +0 -27
  495. package/dist/tabs/TabsRoot.styles.d.ts +0 -1
  496. package/dist/tabs/TabsTrigger.d.ts +0 -41
  497. package/dist/tabs/TabsTrigger.styles.d.ts +0 -8
  498. package/dist/tabs/index.d.mts +0 -13
  499. package/dist/tabs/index.d.ts +0 -13
  500. package/dist/tabs/useRenderSlot.d.ts +0 -1
  501. package/dist/tabs/useResizeObserver.d.ts +0 -8
  502. package/dist/tag/Tag.d.ts +0 -17
  503. package/dist/tag/Tag.styles.d.ts +0 -8
  504. package/dist/tag/index.d.mts +0 -1
  505. package/dist/tag/index.d.ts +0 -1
  506. package/dist/tag/variants/filled.d.ts +0 -37
  507. package/dist/tag/variants/index.d.mts +0 -3
  508. package/dist/tag/variants/index.d.ts +0 -3
  509. package/dist/tag/variants/outlined.d.ts +0 -33
  510. package/dist/tag/variants/tinted.d.ts +0 -33
  511. package/dist/text-link/TextLink.d.ts +0 -16
  512. package/dist/text-link/index.d.mts +0 -1
  513. package/dist/text-link/index.d.ts +0 -1
  514. package/dist/textarea/Textarea.d.ts +0 -14
  515. package/dist/textarea/TextareaClearButton.d.ts +0 -10
  516. package/dist/textarea/TextareaGroup.d.ts +0 -6
  517. package/dist/textarea/TextareaLeadingIcon.d.ts +0 -7
  518. package/dist/textarea/TextareaTrailingIcon.d.ts +0 -7
  519. package/dist/textarea/index.d.mts +0 -14
  520. package/dist/textarea/index.d.ts +0 -14
  521. package/dist/toast/Toast.d.ts +0 -4
  522. package/dist/toast/Toast.styles.d.ts +0 -10
  523. package/dist/toast/index.d.mts +0 -20
  524. package/dist/toast/index.d.ts +0 -20
  525. package/dist/toast/types.d.ts +0 -44
  526. package/dist/toast/useRenderSlot.d.ts +0 -3
  527. package/dist/toast/useToastManager.d.ts +0 -2
  528. package/dist/visually-hidden/VisuallyHidden.d.ts +0 -12
  529. package/dist/visually-hidden/index.d.mts +0 -1
  530. package/dist/visually-hidden/index.d.ts +0 -1
@@ -1,12 +0,0 @@
1
- import { Slider as BaseSlider } from '@base-ui/react/slider';
2
- import { ReactNode, ComponentProps } from 'react';
3
- export type SliderValueProps = Omit<ComponentProps<typeof BaseSlider.Value>, 'render' | 'children'> & {
4
- children?: ReactNode | ((formatted: string, value: number) => ReactNode);
5
- };
6
- /**
7
- * Normalizes Base UI's (formattedValues, values) to single (formatted, value) for the render prop.
8
- */
9
- export declare const SliderValue: {
10
- ({ className, children, ref, ...rest }: SliderValueProps): import("react/jsx-runtime").JSX.Element;
11
- displayName: string;
12
- };
@@ -1,20 +0,0 @@
1
- import { Slider as Root, SliderProps } from './Slider';
2
- import { SliderControl as Control, SliderControlProps } from './SliderControl';
3
- import { SliderIndicator as Indicator, SliderIndicatorProps } from './SliderIndicator';
4
- import { SliderLabel as Label, SliderLabelProps } from './SliderLabel';
5
- import { SliderMaxValue as MaxValue, SliderMaxValueProps } from './SliderMaxValue';
6
- import { SliderMinValue as MinValue, SliderMinValueProps } from './SliderMinValue';
7
- import { SliderThumb as Thumb, SliderThumbProps } from './SliderThumb';
8
- import { SliderTrack as Track, SliderTrackProps } from './SliderTrack';
9
- import { SliderValue as Value, SliderValueProps } from './SliderValue';
10
- export declare const Slider: typeof Root & {
11
- Control: typeof Control;
12
- Indicator: typeof Indicator;
13
- Label: typeof Label;
14
- MaxValue: typeof MaxValue;
15
- MinValue: typeof MinValue;
16
- Thumb: typeof Thumb;
17
- Track: typeof Track;
18
- Value: typeof Value;
19
- };
20
- export type { SliderProps, SliderControlProps, SliderIndicatorProps, SliderLabelProps, SliderMaxValueProps, SliderMinValueProps, SliderThumbProps, SliderTrackProps, SliderValueProps, };
@@ -1,20 +0,0 @@
1
- import { Slider as Root, SliderProps } from './Slider';
2
- import { SliderControl as Control, SliderControlProps } from './SliderControl';
3
- import { SliderIndicator as Indicator, SliderIndicatorProps } from './SliderIndicator';
4
- import { SliderLabel as Label, SliderLabelProps } from './SliderLabel';
5
- import { SliderMaxValue as MaxValue, SliderMaxValueProps } from './SliderMaxValue';
6
- import { SliderMinValue as MinValue, SliderMinValueProps } from './SliderMinValue';
7
- import { SliderThumb as Thumb, SliderThumbProps } from './SliderThumb';
8
- import { SliderTrack as Track, SliderTrackProps } from './SliderTrack';
9
- import { SliderValue as Value, SliderValueProps } from './SliderValue';
10
- export declare const Slider: typeof Root & {
11
- Control: typeof Control;
12
- Indicator: typeof Indicator;
13
- Label: typeof Label;
14
- MaxValue: typeof MaxValue;
15
- MinValue: typeof MinValue;
16
- Thumb: typeof Thumb;
17
- Track: typeof Track;
18
- Value: typeof Value;
19
- };
20
- export type { SliderProps, SliderControlProps, SliderIndicatorProps, SliderLabelProps, SliderMaxValueProps, SliderMinValueProps, SliderThumbProps, SliderTrackProps, SliderValueProps, };
@@ -1,12 +0,0 @@
1
- import { RefObject } from 'react';
2
- /**
3
- * Computes the translateX (in pixels) to apply to the value element so it stays
4
- * within the horizontal bounds of the slider control when displayed inside the thumb.
5
- *
6
- * @param controlRef - Ref to the slider control (track container)
7
- * @param thumbRef - Ref to the thumb element
8
- * @param valueRef - Ref to the value label element
9
- * @param value - Current slider value (0–100 or min–max), used to re-run when thumb moves
10
- * @returns translateX in pixels (positive = right, negative = left), or 0 if refs are missing
11
- */
12
- export declare function useSliderValueBoundaries(controlRef: RefObject<HTMLElement | null>, thumbRef: RefObject<HTMLElement | null>, valueRef: RefObject<HTMLElement | null>, value: number): number;
@@ -1,12 +0,0 @@
1
- import { Slot as RadixSlot } from 'radix-ui';
2
- import { HTMLAttributes, PropsWithChildren, ReactNode, Ref } from 'react';
3
- export declare const Slottable: typeof RadixSlot.Slottable;
4
- export type SlotProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
5
- ref?: Ref<HTMLElement>;
6
- };
7
- export declare const Slot: ({ ref, ...props }: SlotProps) => import("react/jsx-runtime").JSX.Element;
8
- /**
9
- * When using Radix `Slot` component, it will consider its first child to merge its props with.
10
- * In some cases, you might need to wrap the top child with additional markup without breaking this behaviour.
11
- */
12
- export declare const wrapPolymorphicSlot: (asChild: boolean | undefined, children: ReactNode, callback: (children: ReactNode) => ReactNode) => ReactNode;
@@ -1 +0,0 @@
1
- export * from './Slot';
@@ -1 +0,0 @@
1
- export * from './Slot';
@@ -1,29 +0,0 @@
1
- import { ToastOptions as SnackBarItemOptions } from '@react-stately/toast';
2
- import { ReactElement, Ref } from 'react';
3
- import { SnackbarItemValue } from './SnackbarItem';
4
- import { SnackbarRegionProps } from './SnackbarRegion';
5
- export declare const clearSnackbarQueue: () => void;
6
- export type SnackbarProps = Omit<SnackbarRegionProps, 'state'> & {
7
- ref?: Ref<HTMLDivElement>;
8
- };
9
- export declare const Snackbar: {
10
- ({ ref: forwardedRef, ...props }: SnackbarProps): ReactElement | null;
11
- displayName: string;
12
- };
13
- export interface AddSnackbarArgs extends SnackbarItemValue, Omit<SnackBarItemOptions, 'timeout'> {
14
- /**
15
- * Handler that is called when the snackbar is closed, either by the user
16
- * or after a timeout.
17
- */
18
- onClose?: () => void;
19
- /**
20
- * A timeout to automatically close the snackbar after, in milliseconds.
21
- * @default 5000
22
- */
23
- timeout?: number | null;
24
- /**
25
- * The priority of the snackbar relative to other snackbars. Larger numbers indicate higher priority.
26
- */
27
- priority?: number;
28
- }
29
- export declare const addSnackbar: ({ onClose, timeout, priority, ...content }: AddSnackbarArgs) => void;
@@ -1,49 +0,0 @@
1
- import { ComponentPropsWithRef, PropsWithChildren, ReactNode } from 'react';
2
- import { SnackbarItemVariantContentProps, SnackbarItemVariantProps } from './SnackbarItem.styles';
3
- export interface SnackbarItemValue extends SnackbarItemVariantProps {
4
- /**
5
- * Icon that will be prepended before snackbar message
6
- */
7
- icon?: ReactNode;
8
- message: ReactNode;
9
- /**
10
- * If `true` snackbar will display a close button
11
- * @default false
12
- */
13
- isClosable?: boolean;
14
- /**
15
- * A label for the action button within the toast.
16
- */
17
- actionLabel?: string;
18
- /**
19
- * Handler that is called when the action button is pressed.
20
- */
21
- onAction?: () => void;
22
- /**
23
- * If `true` the action button will be displayed on a new line.
24
- * @default false
25
- */
26
- actionOnNewline?: boolean;
27
- }
28
- export interface SnackbarItemProps extends ComponentPropsWithRef<'div'>, SnackbarItemVariantProps, SnackbarItemVariantContentProps {
29
- /**
30
- * Defines a string value that labels the current element.
31
- */
32
- 'aria-label'?: string;
33
- /**
34
- * Identifies the element (or elements) that labels the current element.
35
- */
36
- 'aria-labelledby'?: string;
37
- /**
38
- * Identifies the element (or elements) that describes the object.
39
- */
40
- 'aria-describedby'?: string;
41
- /**
42
- * Identifies the element (or elements) that provide a detailed, extended description for the object.
43
- */
44
- 'aria-details'?: string;
45
- }
46
- export declare const SnackbarItem: {
47
- ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-details": ariaDetails, design: designProp, intent: intentProp, actionOnNewline: actionOnNewlineProp, className, children, ref: forwardedRef, ...rest }: PropsWithChildren<SnackbarItemProps>): import("react/jsx-runtime").JSX.Element;
48
- displayName: string;
49
- };
@@ -1,10 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- export declare const snackbarItemVariant: (props?: ({
3
- design?: "filled" | "tinted" | null | undefined;
4
- intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | "inverse" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- export declare const snackbarItemVariantContent: (props?: ({
7
- actionOnNewline?: boolean | null | undefined;
8
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
- export type SnackbarItemVariantProps = VariantProps<typeof snackbarItemVariant>;
10
- export type SnackbarItemVariantContentProps = VariantProps<typeof snackbarItemVariantContent>;
@@ -1,10 +0,0 @@
1
- import { Ref } from 'react';
2
- import { ButtonProps } from '../button';
3
- import { SnackbarItemVariantProps } from './SnackbarItem.styles';
4
- export type SnackbarItemActionProps = Omit<ButtonProps, 'size' | 'shape' | 'intent'> & SnackbarItemVariantProps & {
5
- ref?: Ref<HTMLButtonElement>;
6
- };
7
- export declare const SnackbarItemAction: {
8
- ({ design: designProp, intent: intentProp, onClick, children, className, ref, ...rest }: SnackbarItemActionProps): import("react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
@@ -1,9 +0,0 @@
1
- import { ComponentPropsWithRef } from 'react';
2
- import { IconButtonProps } from '../icon-button';
3
- import { SnackbarItemVariantProps } from './SnackbarItem.styles';
4
- export interface SnackbarItemCloseProps extends Omit<ComponentPropsWithRef<'button'>, 'aria-label' | 'disabled'>, Pick<IconButtonProps, 'aria-label'>, SnackbarItemVariantProps {
5
- }
6
- export declare const SnackbarItemClose: {
7
- ({ design: designProp, intent: intentProp, "aria-label": ariaLabel, onClick, className, ref, ...rest }: SnackbarItemCloseProps): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
@@ -1,8 +0,0 @@
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>;
@@ -1,7 +0,0 @@
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
- };
@@ -1,30 +0,0 @@
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;
@@ -1,5 +0,0 @@
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>;
@@ -1,13 +0,0 @@
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 };
@@ -1,13 +0,0 @@
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 };
@@ -1,74 +0,0 @@
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
- }];
@@ -1,18 +0,0 @@
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 {};
@@ -1,15 +0,0 @@
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 {};
@@ -1,9 +0,0 @@
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;
@@ -1,7 +0,0 @@
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>;
@@ -1 +0,0 @@
1
- export * from './Spinner';
@@ -1 +0,0 @@
1
- export * from './Spinner';
@@ -1,9 +0,0 @@
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
- };
@@ -1,14 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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';
@@ -1,9 +0,0 @@
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';
@@ -1,46 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- import { UseStepperArgs, UseStepperReturn } from './types';
2
- export declare const useStepper: ({ inputRef, locale, ...rest }: UseStepperArgs) => UseStepperReturn;
@@ -1,6 +0,0 @@
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
- };
@@ -1,53 +0,0 @@
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
- };
@@ -1,16 +0,0 @@
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;
@@ -1,17 +0,0 @@
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;