@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.
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/src/accordion/Accordion.d.ts +27 -0
- package/dist/src/accordion/AccordionItem.d.ts +12 -0
- package/dist/src/accordion/AccordionItemContent.d.ts +12 -0
- package/dist/src/accordion/AccordionItemHeader.d.ts +9 -0
- package/dist/src/accordion/AccordionItemTrigger.d.ts +12 -0
- package/dist/src/accordion/index.d.mts +15 -0
- package/dist/src/accordion/index.d.ts +15 -0
- package/dist/src/accordion/useRenderSlot.d.ts +3 -0
- package/dist/src/alert-dialog/AlertDialog.d.ts +29 -0
- package/dist/src/alert-dialog/AlertDialogAction.d.ts +13 -0
- package/dist/src/alert-dialog/AlertDialogBody.d.ts +12 -0
- package/dist/src/alert-dialog/AlertDialogCancel.d.ts +13 -0
- package/dist/src/alert-dialog/AlertDialogContent.d.ts +9 -0
- package/dist/src/alert-dialog/AlertDialogContext.d.ts +12 -0
- package/dist/src/alert-dialog/AlertDialogDescription.d.ts +9 -0
- package/dist/src/alert-dialog/AlertDialogFooter.d.ts +10 -0
- package/dist/src/alert-dialog/AlertDialogHeader.d.ts +10 -0
- package/dist/src/alert-dialog/AlertDialogOverlay.d.ts +9 -0
- package/dist/src/alert-dialog/AlertDialogPortal.d.ts +7 -0
- package/dist/src/alert-dialog/AlertDialogTitle.d.ts +9 -0
- package/dist/src/alert-dialog/AlertDialogTrigger.d.ts +13 -0
- package/dist/src/alert-dialog/index.d.mts +38 -0
- package/dist/src/alert-dialog/index.d.ts +38 -0
- package/dist/src/alert-dialog/useRenderSlot.d.ts +3 -0
- package/dist/src/avatar/Avatar.d.ts +3 -0
- package/dist/src/avatar/AvatarAction.d.ts +9 -0
- package/dist/src/avatar/AvatarImage.d.ts +7 -0
- package/dist/src/avatar/AvatarOnlineBadge.d.ts +9 -0
- package/dist/src/avatar/AvatarPlaceholder.d.ts +8 -0
- package/dist/src/avatar/AvatarUser.d.ts +7 -0
- package/dist/src/avatar/context.d.ts +5 -0
- package/dist/src/avatar/index.d.mts +15 -0
- package/dist/src/avatar/index.d.ts +15 -0
- package/dist/src/avatar/types.d.ts +24 -0
- package/dist/src/badge/Badge.d.ts +9 -0
- package/dist/src/badge/BadgeItem.d.ts +31 -0
- package/dist/src/badge/BadgeItem.styles.d.ts +7 -0
- package/dist/src/badge/index.d.mts +1 -0
- package/dist/src/badge/index.d.ts +1 -0
- package/dist/src/breadcrumb/Breadcrumb.d.ts +10 -0
- package/dist/src/breadcrumb/Breadcrumb.styles.d.ts +0 -0
- package/dist/src/breadcrumb/BreadcrumbCurrentPage.d.ts +11 -0
- package/dist/src/breadcrumb/BreadcrumbItem.d.ts +9 -0
- package/dist/src/breadcrumb/BreadcrumbLink.d.ts +12 -0
- package/dist/src/breadcrumb/BreadcrumbSeparator.d.ts +10 -0
- package/dist/src/breadcrumb/index.d.mts +12 -0
- package/dist/src/breadcrumb/index.d.ts +12 -0
- package/dist/src/button/Button.d.ts +26 -0
- package/dist/src/button/Button.styles.d.ts +10 -0
- package/dist/src/button/index.d.mts +1 -0
- package/dist/src/button/index.d.ts +1 -0
- package/dist/src/button/variants/contrast.d.ts +41 -0
- package/dist/src/button/variants/filled.d.ts +41 -0
- package/dist/src/button/variants/ghost.d.ts +41 -0
- package/dist/src/button/variants/index.d.mts +5 -0
- package/dist/src/button/variants/index.d.ts +5 -0
- package/dist/src/button/variants/outlined.d.ts +41 -0
- package/dist/src/button/variants/tinted.d.ts +41 -0
- package/dist/src/card/Backdrop.d.ts +14 -0
- package/dist/src/card/Card.d.ts +16 -0
- package/dist/src/card/Card.styles.d.ts +7 -0
- package/dist/src/card/Content.d.ts +15 -0
- package/dist/src/card/Content.styles.d.ts +8 -0
- package/dist/src/card/context.d.ts +11 -0
- package/dist/src/card/index.d.mts +8 -0
- package/dist/src/card/index.d.ts +8 -0
- package/dist/src/card/utils.d.ts +3 -0
- package/dist/src/carousel/Carousel.d.ts +12 -0
- package/dist/src/carousel/CarouselControls.d.ts +9 -0
- package/dist/src/carousel/CarouselNextButton.d.ts +5 -0
- package/dist/src/carousel/CarouselPageIndicator.d.ts +14 -0
- package/dist/src/carousel/CarouselPagePicker.d.ts +14 -0
- package/dist/src/carousel/CarouselPrevButton.d.ts +5 -0
- package/dist/src/carousel/CarouselSlide.d.ts +12 -0
- package/dist/src/carousel/CarouselSlides.d.ts +10 -0
- package/dist/src/carousel/CarouselViewport.d.ts +9 -0
- package/dist/src/carousel/index.d.mts +19 -0
- package/dist/src/carousel/index.d.ts +19 -0
- package/dist/src/carousel/types.d.ts +165 -0
- package/dist/src/carousel/useCarousel.d.ts +2 -0
- package/dist/src/carousel/useCarouselVisibility.d.ts +13 -0
- package/dist/src/carousel/useEvent.d.ts +7 -0
- package/dist/src/carousel/useIsMounted.d.ts +1 -0
- package/dist/src/carousel/useIsVisible.d.ts +6 -0
- package/dist/src/carousel/useResizeObserver.d.ts +2 -0
- package/dist/src/carousel/useScrollEnd.d.ts +3 -0
- package/dist/src/carousel/useSnapPoints.d.ts +10 -0
- package/dist/src/carousel/utils.d.ts +24 -0
- package/dist/src/checkbox/Checkbox.d.ts +10 -0
- package/dist/src/checkbox/CheckboxGroup.d.ts +18 -0
- package/dist/src/checkbox/CheckboxGroup.styles.d.ts +5 -0
- package/dist/src/checkbox/CheckboxGroupContext.d.ts +41 -0
- package/dist/src/checkbox/CheckboxIndicator.d.ts +9 -0
- package/dist/src/checkbox/CheckboxInput.d.ts +47 -0
- package/dist/src/checkbox/CheckboxInput.styles.d.ts +5 -0
- package/dist/src/checkbox/CheckboxLabel.d.ts +12 -0
- package/dist/src/checkbox/CheckboxLabel.styles.d.ts +5 -0
- package/dist/src/checkbox/index.d.mts +2 -0
- package/dist/src/checkbox/index.d.ts +2 -0
- package/dist/src/chip/Chip.d.ts +34 -0
- package/dist/src/chip/Chip.styles.d.ts +8 -0
- package/dist/src/chip/ChipClearButton.d.ts +10 -0
- package/dist/src/chip/ChipClearButton.styles.d.ts +10 -0
- package/dist/src/chip/ChipContent.d.ts +8 -0
- package/dist/src/chip/ChipIcon.d.ts +8 -0
- package/dist/src/chip/ChipLeadingIcon.d.ts +9 -0
- package/dist/src/chip/ChipTrailingIcon.d.ts +9 -0
- package/dist/src/chip/index.d.mts +15 -0
- package/dist/src/chip/index.d.ts +15 -0
- package/dist/src/chip/useChipContext.d.ts +4 -0
- package/dist/src/chip/useChipElement.d.ts +41 -0
- package/dist/src/chip/variants/dashed.d.ts +45 -0
- package/dist/src/chip/variants/index.d.mts +3 -0
- package/dist/src/chip/variants/index.d.ts +3 -0
- package/dist/src/chip/variants/outlined.d.ts +45 -0
- package/dist/src/chip/variants/tinted.d.ts +45 -0
- package/dist/src/circular-meter/CircularMeter.d.ts +34 -0
- package/dist/src/circular-meter/CircularMeter.styles.d.ts +5 -0
- package/dist/src/circular-meter/CircularMeterContent.d.ts +6 -0
- package/dist/src/circular-meter/CircularMeterContext.d.ts +36 -0
- package/dist/src/circular-meter/CircularMeterLabel.d.ts +7 -0
- package/dist/src/circular-meter/CircularMeterTrack.d.ts +8 -0
- package/dist/src/circular-meter/CircularMeterValue.d.ts +7 -0
- package/dist/src/circular-meter/index.d.mts +16 -0
- package/dist/src/circular-meter/index.d.ts +16 -0
- package/dist/src/circular-meter/useIntersectionAnimation.d.ts +26 -0
- package/dist/src/collapsible/Content.d.ts +12 -0
- package/dist/src/collapsible/Root.d.ts +12 -0
- package/dist/src/collapsible/Trigger.d.ts +11 -0
- package/dist/src/collapsible/index.d.mts +7 -0
- package/dist/src/collapsible/index.d.ts +7 -0
- package/dist/src/collapsible/useRenderSlot.d.ts +3 -0
- package/dist/src/combobox/Combobox.d.ts +6 -0
- package/dist/src/combobox/ComboboxClearButton.d.ts +9 -0
- package/dist/src/combobox/ComboboxContext.d.ts +108 -0
- package/dist/src/combobox/ComboboxDisclosure.d.ts +13 -0
- package/dist/src/combobox/ComboboxEmpty.d.ts +11 -0
- package/dist/src/combobox/ComboboxGroup.d.ts +11 -0
- package/dist/src/combobox/ComboboxInput.d.ts +15 -0
- package/dist/src/combobox/ComboboxItem.d.ts +12 -0
- package/dist/src/combobox/ComboboxItemContext.d.ts +17 -0
- package/dist/src/combobox/ComboboxItemIndicator.d.ts +11 -0
- package/dist/src/combobox/ComboboxItemText.d.ts +10 -0
- package/dist/src/combobox/ComboboxItems.d.ts +11 -0
- package/dist/src/combobox/ComboboxItemsGroupContext.d.ts +8 -0
- package/dist/src/combobox/ComboboxLabel.d.ts +11 -0
- package/dist/src/combobox/ComboboxLeadingIcon.d.ts +7 -0
- package/dist/src/combobox/ComboboxPopover.d.ts +10 -0
- package/dist/src/combobox/ComboboxPortal.d.ts +2 -0
- package/dist/src/combobox/ComboboxSelectedItems.d.ts +4 -0
- package/dist/src/combobox/ComboboxTrigger.d.ts +11 -0
- package/dist/src/combobox/ComboboxTrigger.styles.d.ts +6 -0
- package/dist/src/combobox/index.d.mts +35 -0
- package/dist/src/combobox/index.d.ts +35 -0
- package/dist/src/combobox/tests/test-utils.d.ts +8 -0
- package/dist/src/combobox/types.d.ts +8 -0
- package/dist/src/combobox/useCombobox/multipleSelectionReducer.d.ts +13 -0
- package/dist/src/combobox/useCombobox/singleSelectionReducer.d.ts +8 -0
- package/dist/src/combobox/utils/index.d.mts +14 -0
- package/dist/src/combobox/utils/index.d.ts +14 -0
- package/dist/src/combobox/utils/useWidthIncreaseCallback.d.ts +2 -0
- package/dist/src/dialog/Dialog.d.ts +33 -0
- package/dist/src/dialog/DialogBody.d.ts +12 -0
- package/dist/src/dialog/DialogClose.d.ts +10 -0
- package/dist/src/dialog/DialogCloseButton.d.ts +9 -0
- package/dist/src/dialog/DialogContent.d.ts +14 -0
- package/dist/src/dialog/DialogContent.styles.d.ts +6 -0
- package/dist/src/dialog/DialogContext.d.ts +11 -0
- package/dist/src/dialog/DialogDescription.d.ts +9 -0
- package/dist/src/dialog/DialogFooter.d.ts +10 -0
- package/dist/src/dialog/DialogHeader.d.ts +10 -0
- package/dist/src/dialog/DialogOverlay.d.ts +9 -0
- package/dist/src/dialog/DialogPortal.d.ts +7 -0
- package/dist/src/dialog/DialogTitle.d.ts +9 -0
- package/dist/src/dialog/DialogTrigger.d.ts +13 -0
- package/dist/src/dialog/index.d.mts +37 -0
- package/dist/src/dialog/index.d.ts +37 -0
- package/dist/src/divider/Divider.d.ts +30 -0
- package/dist/src/divider/Divider.styles.d.ts +9 -0
- package/dist/src/divider/DividerContent.d.ts +13 -0
- package/dist/src/divider/index.d.mts +6 -0
- package/dist/src/divider/index.d.ts +6 -0
- package/dist/src/divider/variants/intents.d.ts +17 -0
- package/dist/src/drawer/Drawer.d.ts +32 -0
- package/dist/src/drawer/DrawerBody.d.ts +11 -0
- package/dist/src/drawer/DrawerBody.styles.d.ts +5 -0
- package/dist/src/drawer/DrawerClose.d.ts +13 -0
- package/dist/src/drawer/DrawerCloseButton.d.ts +7 -0
- package/dist/src/drawer/DrawerContent.d.ts +10 -0
- package/dist/src/drawer/DrawerContent.styles.d.ts +6 -0
- package/dist/src/drawer/DrawerContext.d.ts +9 -0
- package/dist/src/drawer/DrawerDescription.d.ts +9 -0
- package/dist/src/drawer/DrawerFooter.d.ts +8 -0
- package/dist/src/drawer/DrawerHeader.d.ts +10 -0
- package/dist/src/drawer/DrawerOverlay.d.ts +9 -0
- package/dist/src/drawer/DrawerPortal.d.ts +7 -0
- package/dist/src/drawer/DrawerTitle.d.ts +9 -0
- package/dist/src/drawer/DrawerTrigger.d.ts +13 -0
- package/dist/src/drawer/index.d.mts +37 -0
- package/dist/src/drawer/index.d.ts +37 -0
- package/dist/src/drawer/useRenderSlot.d.ts +3 -0
- package/dist/src/dropdown/Dropdown.d.ts +6 -0
- package/dist/src/dropdown/DropdownContext.d.ts +81 -0
- package/dist/src/dropdown/DropdownDivider.d.ts +10 -0
- package/dist/src/dropdown/DropdownGroup.d.ts +11 -0
- package/dist/src/dropdown/DropdownItem.d.ts +12 -0
- package/dist/src/dropdown/DropdownItemContext.d.ts +17 -0
- package/dist/src/dropdown/DropdownItemIndicator.d.ts +11 -0
- package/dist/src/dropdown/DropdownItemText.d.ts +9 -0
- package/dist/src/dropdown/DropdownItems.d.ts +21 -0
- package/dist/src/dropdown/DropdownItemsGroupContext.d.ts +8 -0
- package/dist/src/dropdown/DropdownLabel.d.ts +11 -0
- package/dist/src/dropdown/DropdownLeadingIcon.d.ts +7 -0
- package/dist/src/dropdown/DropdownPopover.d.ts +6 -0
- package/dist/src/dropdown/DropdownPortal.d.ts +2 -0
- package/dist/src/dropdown/DropdownTrigger.d.ts +12 -0
- package/dist/src/dropdown/DropdownTrigger.styles.d.ts +5 -0
- package/dist/src/dropdown/DropdownValue.d.ts +11 -0
- package/dist/src/dropdown/index.d.mts +29 -0
- package/dist/src/dropdown/index.d.ts +29 -0
- package/dist/src/dropdown/types.d.ts +8 -0
- package/dist/src/dropdown/useDropdown.d.ts +41 -0
- package/dist/src/dropdown/utils.d.ts +13 -0
- package/dist/src/file-upload/FileUpload.d.ts +130 -0
- package/dist/src/file-upload/FileUploadAcceptedFile.d.ts +25 -0
- package/dist/src/file-upload/FileUploadContext.d.ts +17 -0
- package/dist/src/file-upload/FileUploadDropzone.d.ts +10 -0
- package/dist/src/file-upload/FileUploadItemDeleteTrigger.d.ts +11 -0
- package/dist/src/file-upload/FileUploadPreviewImage.d.ts +17 -0
- package/dist/src/file-upload/FileUploadRejectedFile.d.ts +24 -0
- package/dist/src/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +12 -0
- package/dist/src/file-upload/FileUploadTrigger.d.ts +12 -0
- package/dist/src/file-upload/constants.d.ts +29 -0
- package/dist/src/file-upload/index.d.mts +22 -0
- package/dist/src/file-upload/index.d.ts +22 -0
- package/dist/src/file-upload/test-utils.d.ts +9 -0
- package/dist/src/file-upload/useFileUploadState.d.ts +88 -0
- package/dist/src/file-upload/utils.d.ts +40 -0
- package/dist/src/form-field/FormField.d.ts +21 -0
- package/dist/src/form-field/FormFieldAlertMessage.d.ts +9 -0
- package/dist/src/form-field/FormFieldCharactersCount.d.ts +26 -0
- package/dist/src/form-field/FormFieldContext.d.ts +49 -0
- package/dist/src/form-field/FormFieldControl.d.ts +12 -0
- package/dist/src/form-field/FormFieldErrorMessage.d.ts +9 -0
- package/dist/src/form-field/FormFieldHelperMessage.d.ts +9 -0
- package/dist/src/form-field/FormFieldLabel.d.ts +13 -0
- package/dist/src/form-field/FormFieldMessage.d.ts +8 -0
- package/dist/src/form-field/FormFieldProvider.d.ts +9 -0
- package/dist/src/form-field/FormFieldRequiredIndicator.d.ts +9 -0
- package/dist/src/form-field/FormFieldStateMessage.d.ts +10 -0
- package/dist/src/form-field/FormFieldSuccessMessage.d.ts +9 -0
- package/dist/src/form-field/index.d.mts +31 -0
- package/dist/src/form-field/index.d.ts +31 -0
- package/dist/src/icon/Icon.d.ts +17 -0
- package/dist/src/icon/Icon.styles.d.ts +6 -0
- package/dist/src/icon/index.d.mts +1 -0
- package/dist/src/icon/index.d.ts +1 -0
- package/dist/src/icon-button/IconButton.d.ts +10 -0
- package/dist/src/icon-button/IconButton.styles.d.ts +5 -0
- package/dist/src/icon-button/index.d.mts +1 -0
- package/dist/src/icon-button/index.d.ts +1 -0
- package/dist/src/input/Input.d.ts +14 -0
- package/dist/src/input/Input.styles.d.ts +11 -0
- package/dist/src/input/InputAddon.d.ts +9 -0
- package/dist/src/input/InputAddon.styles.d.ts +9 -0
- package/dist/src/input/InputClearButton.d.ts +12 -0
- package/dist/src/input/InputGroup.d.ts +17 -0
- package/dist/src/input/InputGroup.styles.d.ts +6 -0
- package/dist/src/input/InputGroupContext.d.ts +14 -0
- package/dist/src/input/InputIcon.d.ts +6 -0
- package/dist/src/input/InputLeadingAddon.d.ts +11 -0
- package/dist/src/input/InputLeadingIcon.d.ts +7 -0
- package/dist/src/input/InputTrailingAddon.d.ts +11 -0
- package/dist/src/input/InputTrailingIcon.d.ts +7 -0
- package/dist/src/input/index.d.mts +21 -0
- package/dist/src/input/index.d.ts +21 -0
- package/dist/src/input-otp/InputOTP.d.ts +90 -0
- package/dist/src/input-otp/InputOTP.styles.d.ts +10 -0
- package/dist/src/input-otp/InputOTPContext.d.ts +17 -0
- package/dist/src/input-otp/InputOTPGroup.d.ts +7 -0
- package/dist/src/input-otp/InputOTPSeparator.d.ts +7 -0
- package/dist/src/input-otp/InputOTPSlot.d.ts +12 -0
- package/dist/src/input-otp/index.d.mts +14 -0
- package/dist/src/input-otp/index.d.ts +14 -0
- package/dist/src/input-otp/useInputOTP.d.ts +48 -0
- package/dist/src/kbd/Kbd.d.ts +5 -0
- package/dist/src/kbd/index.d.mts +1 -0
- package/dist/src/kbd/index.d.ts +1 -0
- package/dist/src/label/Label.d.ts +9 -0
- package/dist/src/label/LabelRequiredIndicator.d.ts +6 -0
- package/dist/src/label/index.d.mts +7 -0
- package/dist/src/label/index.d.ts +7 -0
- package/dist/src/link-box/LinkBox.d.ts +8 -0
- package/dist/src/link-box/LinkBoxLink.d.ts +8 -0
- package/dist/src/link-box/LinkBoxRaised.d.ts +9 -0
- package/dist/src/link-box/index.d.mts +9 -0
- package/dist/src/link-box/index.d.ts +9 -0
- package/dist/src/meter/Meter.d.ts +18 -0
- package/dist/src/meter/MeterContext.d.ts +12 -0
- package/dist/src/meter/MeterLabel.d.ts +7 -0
- package/dist/src/meter/MeterTrack.d.ts +7 -0
- package/dist/src/meter/MeterTrack.styles.d.ts +8 -0
- package/dist/src/meter/MeterValue.d.ts +9 -0
- package/dist/src/meter/index.d.mts +13 -0
- package/dist/src/meter/index.d.ts +13 -0
- package/dist/src/meter/useIntersectionAnimation.d.ts +26 -0
- package/dist/src/pagination/Pagination.d.ts +8 -0
- package/dist/src/pagination/PaginationContext.d.ts +43 -0
- package/dist/src/pagination/PaginationEllipsis.d.ts +9 -0
- package/dist/src/pagination/PaginationFirstPageTrigger.d.ts +22 -0
- package/dist/src/pagination/PaginationItem.d.ts +31 -0
- package/dist/src/pagination/PaginationLastPageTrigger.d.ts +22 -0
- package/dist/src/pagination/PaginationNextTrigger.d.ts +22 -0
- package/dist/src/pagination/PaginationPages.d.ts +16 -0
- package/dist/src/pagination/PaginationPrevTrigger.d.ts +22 -0
- package/dist/src/pagination/index.d.mts +18 -0
- package/dist/src/pagination/index.d.ts +18 -0
- package/dist/src/pagination/utils.d.ts +1 -0
- package/dist/src/popover/Popover.d.ts +9 -0
- package/dist/src/popover/PopoverAnchor.d.ts +9 -0
- package/dist/src/popover/PopoverArrow.d.ts +9 -0
- package/dist/src/popover/PopoverCloseButton.d.ts +10 -0
- package/dist/src/popover/PopoverContent.d.ts +10 -0
- package/dist/src/popover/PopoverContent.styles.d.ts +9 -0
- package/dist/src/popover/PopoverContext.d.ts +15 -0
- package/dist/src/popover/PopoverHeader.d.ts +10 -0
- package/dist/src/popover/PopoverPortal.d.ts +7 -0
- package/dist/src/popover/PopoverTrigger.d.ts +9 -0
- package/dist/src/popover/index.d.mts +17 -0
- package/dist/src/popover/index.d.ts +17 -0
- package/dist/src/portal/Portal.d.ts +10 -0
- package/dist/src/portal/index.d.mts +1 -0
- package/dist/src/portal/index.d.ts +1 -0
- package/dist/src/progress/Progress.d.ts +24 -0
- package/dist/src/progress/ProgressContext.d.ts +13 -0
- package/dist/src/progress/ProgressIndicator.d.ts +13 -0
- package/dist/src/progress/ProgressLabel.d.ts +7 -0
- package/dist/src/progress/ProgressTrack.d.ts +7 -0
- package/dist/src/progress/ProgressValue.d.ts +7 -0
- package/dist/src/progress/index.d.mts +13 -0
- package/dist/src/progress/index.d.ts +13 -0
- package/dist/src/progress-tracker/ProgressTracker.d.ts +27 -0
- package/dist/src/progress-tracker/ProgressTracker.styles.d.ts +1 -0
- package/dist/src/progress-tracker/ProgressTrackerContext.d.ts +15 -0
- package/dist/src/progress-tracker/ProgressTrackerStep.d.ts +12 -0
- package/dist/src/progress-tracker/ProgressTrackerStep.styles.d.ts +10 -0
- package/dist/src/progress-tracker/ProgressTrackerStepIndicator.d.ts +15 -0
- package/dist/src/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +7 -0
- package/dist/src/progress-tracker/ProgressTrackerStepLabel.d.ts +9 -0
- package/dist/src/progress-tracker/index.d.mts +10 -0
- package/dist/src/progress-tracker/index.d.ts +10 -0
- package/dist/src/radio-group/Radio.d.ts +9 -0
- package/dist/src/radio-group/RadioGroup.d.ts +54 -0
- package/dist/src/radio-group/RadioGroup.styles.d.ts +5 -0
- package/dist/src/radio-group/RadioGroupContext.d.ts +5 -0
- package/dist/src/radio-group/RadioGroupProvider.d.ts +7 -0
- package/dist/src/radio-group/RadioIndicator.d.ts +18 -0
- package/dist/src/radio-group/RadioIndicator.styles.d.ts +5 -0
- package/dist/src/radio-group/RadioInput.d.ts +25 -0
- package/dist/src/radio-group/RadioInput.styles.d.ts +5 -0
- package/dist/src/radio-group/RadioLabel.d.ts +20 -0
- package/dist/src/radio-group/RadioLabel.styles.d.ts +5 -0
- package/dist/src/radio-group/index.d.mts +7 -0
- package/dist/src/radio-group/index.d.ts +7 -0
- package/dist/src/rating/Rating.d.ts +57 -0
- package/dist/src/rating/RatingStar.d.ts +19 -0
- package/dist/src/rating/RatingStar.styles.d.ts +14 -0
- package/dist/src/rating/index.d.mts +1 -0
- package/dist/src/rating/index.d.ts +1 -0
- package/dist/src/rating/types.d.ts +2 -0
- package/dist/src/rating/utils.d.ts +7 -0
- package/dist/src/rating-display/RatingDisplay.d.ts +31 -0
- package/dist/src/rating-display/RatingDisplayContext.d.ts +12 -0
- package/dist/src/rating-display/RatingDisplayCount.d.ts +12 -0
- package/dist/src/rating-display/RatingDisplayStar.d.ts +16 -0
- package/dist/src/rating-display/RatingDisplayStars.d.ts +22 -0
- package/dist/src/rating-display/RatingDisplayValue.d.ts +13 -0
- package/dist/src/rating-display/index.d.mts +14 -0
- package/dist/src/rating-display/index.d.ts +14 -0
- package/dist/src/rating-display/types.d.ts +1 -0
- package/dist/src/rating-display/utils.d.ts +10 -0
- package/dist/src/scrolling-list/ScrollingList.d.ts +57 -0
- package/dist/src/scrolling-list/ScrollingListControls.d.ts +18 -0
- package/dist/src/scrolling-list/ScrollingListItem.d.ts +17 -0
- package/dist/src/scrolling-list/ScrollingListItems.d.ts +11 -0
- package/dist/src/scrolling-list/ScrollingListNextButton.d.ts +5 -0
- package/dist/src/scrolling-list/ScrollingListPrevButton.d.ts +5 -0
- package/dist/src/scrolling-list/ScrollingListSkipButton.d.ts +9 -0
- package/dist/src/scrolling-list/index.d.mts +15 -0
- package/dist/src/scrolling-list/index.d.ts +15 -0
- package/dist/src/scrolling-list/useFocusWithinScroll.d.ts +3 -0
- package/dist/src/segmented-control/SegmentedControl.d.ts +22 -0
- package/dist/src/segmented-control/SegmentedControl.styles.d.ts +5 -0
- package/dist/src/segmented-control/SegmentedControlContext.d.ts +7 -0
- package/dist/src/segmented-control/SegmentedControlIndicator.d.ts +8 -0
- package/dist/src/segmented-control/SegmentedControlItem.d.ts +18 -0
- package/dist/src/segmented-control/index.d.mts +10 -0
- package/dist/src/segmented-control/index.d.ts +10 -0
- package/dist/src/segmented-gauge/SegmentedGauge.d.ts +66 -0
- package/dist/src/segmented-gauge/SegmentedGaugeContext.d.ts +14 -0
- package/dist/src/segmented-gauge/SegmentedGaugeLabel.d.ts +9 -0
- package/dist/src/segmented-gauge/SegmentedGaugeSegment.d.ts +12 -0
- package/dist/src/segmented-gauge/SegmentedGaugeTrack.d.ts +8 -0
- package/dist/src/segmented-gauge/index.d.mts +13 -0
- package/dist/src/segmented-gauge/index.d.ts +13 -0
- package/dist/src/select/Select.d.ts +6 -0
- package/dist/src/select/SelectContext.d.ts +59 -0
- package/dist/src/select/SelectGroup.d.ts +11 -0
- package/dist/src/select/SelectItem.d.ts +11 -0
- package/dist/src/select/SelectItems.d.ts +10 -0
- package/dist/src/select/SelectItemsGroupContext.d.ts +9 -0
- package/dist/src/select/SelectLabel.d.ts +8 -0
- package/dist/src/select/SelectLeadingIcon.d.ts +7 -0
- package/dist/src/select/SelectPlaceholder.d.ts +10 -0
- package/dist/src/select/SelectTrigger.d.ts +16 -0
- package/dist/src/select/SelectTrigger.styles.d.ts +5 -0
- package/dist/src/select/SelectValue.d.ts +15 -0
- package/dist/src/select/index.d.mts +21 -0
- package/dist/src/select/index.d.ts +21 -0
- package/dist/src/select/types.d.ts +6 -0
- package/dist/src/select/utils.d.ts +4 -0
- package/dist/src/skeleton/Skeleton.d.ts +17 -0
- package/dist/src/skeleton/Skeleton.styles.d.ts +5 -0
- package/dist/src/skeleton/SkeletonItem.d.ts +31 -0
- package/dist/src/skeleton/SkeletonItem.styles.d.ts +8 -0
- package/dist/src/skeleton/index.d.mts +8 -0
- package/dist/src/skeleton/index.d.ts +8 -0
- package/dist/src/slider/Slider.d.ts +55 -0
- package/dist/src/slider/Slider.styles.d.ts +1 -0
- package/dist/src/slider/SliderContext.d.ts +13 -0
- package/dist/src/slider/SliderControl.d.ts +7 -0
- package/dist/src/slider/SliderIndicator.d.ts +7 -0
- package/dist/src/slider/SliderLabel.d.ts +13 -0
- package/dist/src/slider/SliderMaxValue.d.ts +6 -0
- package/dist/src/slider/SliderMinValue.d.ts +6 -0
- package/dist/src/slider/SliderThumb.d.ts +7 -0
- package/dist/src/slider/SliderThumb.styles.d.ts +5 -0
- package/dist/src/slider/SliderThumbContext.d.ts +5 -0
- package/dist/src/slider/SliderTrack.d.ts +7 -0
- package/dist/src/slider/SliderTrack.styles.d.ts +6 -0
- package/dist/src/slider/SliderValue.d.ts +12 -0
- package/dist/src/slider/index.d.mts +20 -0
- package/dist/src/slider/index.d.ts +20 -0
- package/dist/src/slider/useSliderValueBoundaries.d.ts +12 -0
- package/dist/src/slot/Slot.d.ts +12 -0
- package/dist/src/slot/index.d.mts +1 -0
- package/dist/src/slot/index.d.ts +1 -0
- package/dist/src/snackbar/Snackbar.d.ts +29 -0
- package/dist/src/snackbar/SnackbarItem.d.ts +49 -0
- package/dist/src/snackbar/SnackbarItem.styles.d.ts +10 -0
- package/dist/src/snackbar/SnackbarItemAction.d.ts +10 -0
- package/dist/src/snackbar/SnackbarItemClose.d.ts +9 -0
- package/dist/src/snackbar/SnackbarItemContext.d.ts +8 -0
- package/dist/src/snackbar/SnackbarItemIcon.d.ts +7 -0
- package/dist/src/snackbar/SnackbarRegion.d.ts +30 -0
- package/dist/src/snackbar/SnackbarRegion.styles.d.ts +5 -0
- package/dist/src/snackbar/index.d.mts +13 -0
- package/dist/src/snackbar/index.d.ts +13 -0
- package/dist/src/snackbar/snackbarVariants.d.ts +74 -0
- package/dist/src/snackbar/useSnackbarGlobalStore.d.ts +18 -0
- package/dist/src/snackbar/useSwipe.d.ts +15 -0
- package/dist/src/spinner/Spinner.d.ts +9 -0
- package/dist/src/spinner/Spinner.styles.d.ts +7 -0
- package/dist/src/spinner/index.d.mts +1 -0
- package/dist/src/spinner/index.d.ts +1 -0
- package/dist/src/stepper/Stepper.d.ts +9 -0
- package/dist/src/stepper/StepperButton.d.ts +14 -0
- package/dist/src/stepper/StepperInput.d.ts +7 -0
- package/dist/src/stepper/index.d.mts +9 -0
- package/dist/src/stepper/index.d.ts +9 -0
- package/dist/src/stepper/types.d.ts +46 -0
- package/dist/src/stepper/useStepper.d.ts +2 -0
- package/dist/src/switch/Switch.d.ts +6 -0
- package/dist/src/switch/SwitchInput.d.ts +53 -0
- package/dist/src/switch/SwitchInput.styles.d.ts +16 -0
- package/dist/src/switch/SwitchLabel.d.ts +17 -0
- package/dist/src/switch/SwitchLabel.styles.d.ts +5 -0
- package/dist/src/switch/index.d.mts +1 -0
- package/dist/src/switch/index.d.ts +1 -0
- package/dist/src/tabs/Tabs.d.ts +24 -0
- package/dist/src/tabs/TabsContent.d.ts +22 -0
- package/dist/src/tabs/TabsContent.styles.d.ts +3 -0
- package/dist/src/tabs/TabsContext.d.ts +7 -0
- package/dist/src/tabs/TabsList.d.ts +20 -0
- package/dist/src/tabs/TabsList.styles.d.ts +3 -0
- package/dist/src/tabs/TabsPopover.d.ts +29 -0
- package/dist/src/tabs/TabsPopoverAbstraction.d.ts +27 -0
- package/dist/src/tabs/TabsRoot.styles.d.ts +1 -0
- package/dist/src/tabs/TabsTrigger.d.ts +41 -0
- package/dist/src/tabs/TabsTrigger.styles.d.ts +8 -0
- package/dist/src/tabs/index.d.mts +13 -0
- package/dist/src/tabs/index.d.ts +13 -0
- package/dist/src/tabs/useRenderSlot.d.ts +1 -0
- package/dist/src/tabs/useResizeObserver.d.ts +8 -0
- package/dist/src/tag/Tag.d.ts +17 -0
- package/dist/src/tag/Tag.styles.d.ts +8 -0
- package/dist/src/tag/index.d.mts +1 -0
- package/dist/src/tag/index.d.ts +1 -0
- package/dist/src/tag/variants/filled.d.ts +37 -0
- package/dist/src/tag/variants/index.d.mts +3 -0
- package/dist/src/tag/variants/index.d.ts +3 -0
- package/dist/src/tag/variants/outlined.d.ts +33 -0
- package/dist/src/tag/variants/tinted.d.ts +33 -0
- package/dist/src/text-link/TextLink.d.ts +16 -0
- package/dist/src/text-link/index.d.mts +1 -0
- package/dist/src/text-link/index.d.ts +1 -0
- package/dist/src/textarea/Textarea.d.ts +14 -0
- package/dist/src/textarea/TextareaClearButton.d.ts +10 -0
- package/dist/src/textarea/TextareaGroup.d.ts +6 -0
- package/dist/src/textarea/TextareaLeadingIcon.d.ts +7 -0
- package/dist/src/textarea/TextareaTrailingIcon.d.ts +7 -0
- package/dist/src/textarea/index.d.mts +14 -0
- package/dist/src/textarea/index.d.ts +14 -0
- package/dist/src/toast/Toast.d.ts +4 -0
- package/dist/src/toast/Toast.styles.d.ts +10 -0
- package/dist/src/toast/index.d.mts +20 -0
- package/dist/src/toast/index.d.ts +20 -0
- package/dist/src/toast/types.d.ts +44 -0
- package/dist/src/toast/useRenderSlot.d.ts +3 -0
- package/dist/src/toast/useToastManager.d.ts +2 -0
- package/dist/src/visually-hidden/VisuallyHidden.d.ts +12 -0
- package/dist/src/visually-hidden/index.d.mts +1 -0
- package/dist/src/visually-hidden/index.d.ts +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { CarouselAPI, UseCarouselProps } from './types';
|
|
3
|
+
interface Props extends UseCarouselProps, ComponentProps<'div'> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Carousel: {
|
|
8
|
+
({ className, snapType, snapStop, scrollBehavior, slidesPerMove, pagePickerInset, slidesPerPage, loop, children, gap, defaultPage, page, onPageChange, maxDots, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const useCarouselContext: () => CarouselAPI;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
interface ControlsProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const CarouselControls: {
|
|
6
|
+
({ children, className, ...props }: ControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
'aria-label': string;
|
|
5
|
+
index: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
unstyled?: boolean;
|
|
8
|
+
intent?: 'support' | 'surface';
|
|
9
|
+
}
|
|
10
|
+
export declare const CarouselPageIndicator: {
|
|
11
|
+
({ children, unstyled, index, "aria-label": ariaLabel, className, intent, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CarouselAPI } from './types';
|
|
3
|
+
interface RenderProps extends CarouselAPI {
|
|
4
|
+
pages: number[];
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
children: (renderProps: RenderProps) => ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const CarouselPagePicker: {
|
|
11
|
+
({ children, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
export interface CarouselSlideProps extends ComponentProps<'div'> {
|
|
3
|
+
isSnapPoint?: boolean;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
index?: number;
|
|
6
|
+
totalSlides?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const CarouselSlide: {
|
|
10
|
+
({ children, index, totalSlides, className, ...props }: CarouselSlideProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
interface Props extends ComponentProps<'div'> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const CarouselSlides: {
|
|
7
|
+
({ children, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Carousel as Root } from './Carousel';
|
|
2
|
+
import { CarouselControls as Controls } from './CarouselControls';
|
|
3
|
+
import { CarouselNextButton as NextButton } from './CarouselNextButton';
|
|
4
|
+
import { CarouselPageIndicator as PageIndicator } from './CarouselPageIndicator';
|
|
5
|
+
import { CarouselPagePicker as PagePicker } from './CarouselPagePicker';
|
|
6
|
+
import { CarouselPrevButton as PrevButton } from './CarouselPrevButton';
|
|
7
|
+
import { CarouselSlide as Slide } from './CarouselSlide';
|
|
8
|
+
import { CarouselSlides as Slides } from './CarouselSlides';
|
|
9
|
+
import { CarouselViewport as Viewport } from './CarouselViewport';
|
|
10
|
+
export declare const Carousel: typeof Root & {
|
|
11
|
+
Controls: typeof Controls;
|
|
12
|
+
NextButton: typeof NextButton;
|
|
13
|
+
PrevButton: typeof PrevButton;
|
|
14
|
+
Slide: typeof Slide;
|
|
15
|
+
Slides: typeof Slides;
|
|
16
|
+
Viewport: typeof Viewport;
|
|
17
|
+
PagePicker: typeof PagePicker;
|
|
18
|
+
PageIndicator: typeof PageIndicator;
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Carousel as Root } from './Carousel';
|
|
2
|
+
import { CarouselControls as Controls } from './CarouselControls';
|
|
3
|
+
import { CarouselNextButton as NextButton } from './CarouselNextButton';
|
|
4
|
+
import { CarouselPageIndicator as PageIndicator } from './CarouselPageIndicator';
|
|
5
|
+
import { CarouselPagePicker as PagePicker } from './CarouselPagePicker';
|
|
6
|
+
import { CarouselPrevButton as PrevButton } from './CarouselPrevButton';
|
|
7
|
+
import { CarouselSlide as Slide } from './CarouselSlide';
|
|
8
|
+
import { CarouselSlides as Slides } from './CarouselSlides';
|
|
9
|
+
import { CarouselViewport as Viewport } from './CarouselViewport';
|
|
10
|
+
export declare const Carousel: typeof Root & {
|
|
11
|
+
Controls: typeof Controls;
|
|
12
|
+
NextButton: typeof NextButton;
|
|
13
|
+
PrevButton: typeof PrevButton;
|
|
14
|
+
Slide: typeof Slide;
|
|
15
|
+
Slides: typeof Slides;
|
|
16
|
+
Viewport: typeof Viewport;
|
|
17
|
+
PagePicker: typeof PagePicker;
|
|
18
|
+
PageIndicator: typeof PageIndicator;
|
|
19
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { CSSProperties, KeyboardEvent, Ref, RefObject } from 'react';
|
|
2
|
+
export declare const DATA_SCOPE: "carousel";
|
|
3
|
+
export declare const DIRECTION: "ltr";
|
|
4
|
+
export interface UseCarouselProps {
|
|
5
|
+
/**
|
|
6
|
+
* Opens the carousel on a predefined page index.
|
|
7
|
+
*/
|
|
8
|
+
defaultPage?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Active page of the carousel.
|
|
11
|
+
* Use it to control the carousel with your own state.
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Space (in pixels) between slides.
|
|
16
|
+
*/
|
|
17
|
+
gap?: number;
|
|
18
|
+
/**
|
|
19
|
+
* CSS scroll snap behavior.
|
|
20
|
+
* - `mandatory` to force snapping on each "page".
|
|
21
|
+
* - `proximity` to force snapping only when scroll position is near the edge of a "page". Behavior can change depending on each browser.
|
|
22
|
+
*/
|
|
23
|
+
snapType?: 'proximity' | 'mandatory';
|
|
24
|
+
/**
|
|
25
|
+
* Defines whether or not the scroll container is allowed to "pass over" possible snap positions.
|
|
26
|
+
*/
|
|
27
|
+
snapStop?: 'always' | 'normal';
|
|
28
|
+
/**
|
|
29
|
+
* Offset (in pixels) of the left of the optimal viewing region of the list.
|
|
30
|
+
*/
|
|
31
|
+
scrollPadding?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Number of slides to display in the carousel viewport.
|
|
34
|
+
*/
|
|
35
|
+
slidesPerPage?: number;
|
|
36
|
+
/**
|
|
37
|
+
* By default, the carousel scroll N slides per move, N being the number of slides in the carousel viewport.
|
|
38
|
+
* Use this prop if you prefer to scroll by a smaller amount of slides each time.
|
|
39
|
+
*/
|
|
40
|
+
slidesPerMove?: number | 'auto';
|
|
41
|
+
/**
|
|
42
|
+
* When `true`, allow previous and next buttons to be used when reaching the edges of the carousel.
|
|
43
|
+
*/
|
|
44
|
+
loop?: boolean;
|
|
45
|
+
scrollBehavior?: 'instant' | 'smooth';
|
|
46
|
+
onPageChange?: (pageIndex: number) => void;
|
|
47
|
+
pagePickerInset?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum number of dots to display in the page picker.
|
|
50
|
+
*/
|
|
51
|
+
maxDots?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface ComputedRootProps {
|
|
54
|
+
id: string;
|
|
55
|
+
role: 'region';
|
|
56
|
+
'aria-roledescription': 'carousel';
|
|
57
|
+
'data-scope': typeof DATA_SCOPE;
|
|
58
|
+
'data-part': 'root';
|
|
59
|
+
'data-orientation': 'horizontal';
|
|
60
|
+
dir: typeof DIRECTION;
|
|
61
|
+
style: CSSProperties & {
|
|
62
|
+
'--slides-per-page': number;
|
|
63
|
+
'--slide-spacing': string;
|
|
64
|
+
'--slide-item-size': string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface ComputedControlProps {
|
|
68
|
+
'data-scope': typeof DATA_SCOPE;
|
|
69
|
+
'data-part': 'control';
|
|
70
|
+
'data-orientation': 'horizontal';
|
|
71
|
+
}
|
|
72
|
+
export interface ComputedTriggerProps<T extends 'prev-trigger' | 'next-trigger'> {
|
|
73
|
+
id: string;
|
|
74
|
+
'aria-controls': string;
|
|
75
|
+
'data-scope': typeof DATA_SCOPE;
|
|
76
|
+
'data-part': T;
|
|
77
|
+
'data-orientation': 'horizontal';
|
|
78
|
+
type: 'button';
|
|
79
|
+
dir: typeof DIRECTION;
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
onClick: () => void;
|
|
82
|
+
}
|
|
83
|
+
export interface ComputedSlideGroupProps {
|
|
84
|
+
id: string;
|
|
85
|
+
'aria-live': 'polite' | 'off';
|
|
86
|
+
'data-scope': typeof DATA_SCOPE;
|
|
87
|
+
'data-part': 'item-group';
|
|
88
|
+
'data-orientation': 'horizontal';
|
|
89
|
+
dir: typeof DIRECTION;
|
|
90
|
+
tabIndex: 0;
|
|
91
|
+
style: CSSProperties;
|
|
92
|
+
ref: Ref<HTMLDivElement | null>;
|
|
93
|
+
}
|
|
94
|
+
export interface ComputedSlideProps {
|
|
95
|
+
id: string;
|
|
96
|
+
role: 'group';
|
|
97
|
+
'aria-roledescription': 'slide';
|
|
98
|
+
'data-scope': typeof DATA_SCOPE;
|
|
99
|
+
'data-part': 'item';
|
|
100
|
+
'data-index': number;
|
|
101
|
+
'data-orientation': 'horizontal';
|
|
102
|
+
dir: typeof DIRECTION;
|
|
103
|
+
style: CSSProperties;
|
|
104
|
+
}
|
|
105
|
+
export interface ComputedIndicatorGroupProps {
|
|
106
|
+
role: 'radiogroup';
|
|
107
|
+
id: string;
|
|
108
|
+
'data-scope': typeof DATA_SCOPE;
|
|
109
|
+
'data-part': 'indicator-group';
|
|
110
|
+
'data-orientation': 'horizontal';
|
|
111
|
+
dir: typeof DIRECTION;
|
|
112
|
+
}
|
|
113
|
+
export interface ComputedIndicatorProps {
|
|
114
|
+
role: 'radio';
|
|
115
|
+
id: string;
|
|
116
|
+
'aria-checked': boolean;
|
|
117
|
+
'data-scope': typeof DATA_SCOPE;
|
|
118
|
+
'data-part': 'indicator';
|
|
119
|
+
'data-orientation': 'horizontal';
|
|
120
|
+
'data-index': number;
|
|
121
|
+
'data-state': 'active' | 'edge' | 'hidden' | 'idle';
|
|
122
|
+
tabIndex: 0 | -1;
|
|
123
|
+
onClick: () => void;
|
|
124
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
125
|
+
}
|
|
126
|
+
interface AnatomyPropsSetters {
|
|
127
|
+
getRootProps: () => ComputedRootProps;
|
|
128
|
+
getControlProps: () => ComputedControlProps;
|
|
129
|
+
getPrevTriggerProps: () => ComputedTriggerProps<'prev-trigger'>;
|
|
130
|
+
getNextTriggerProps: () => ComputedTriggerProps<'next-trigger'>;
|
|
131
|
+
getSlidesContainerProps: () => ComputedSlideGroupProps;
|
|
132
|
+
getSlideProps: (props: {
|
|
133
|
+
index: number;
|
|
134
|
+
totalSlides: number;
|
|
135
|
+
}) => ComputedSlideProps;
|
|
136
|
+
getIndicatorGroupProps: () => ComputedIndicatorGroupProps;
|
|
137
|
+
getIndicatorProps: (props: {
|
|
138
|
+
index: number;
|
|
139
|
+
}) => ComputedIndicatorProps;
|
|
140
|
+
}
|
|
141
|
+
export interface CarouselAPI extends AnatomyPropsSetters {
|
|
142
|
+
ref: RefObject<HTMLElement | null>;
|
|
143
|
+
pageIndicatorsRefs: RefObject<(HTMLElement | null)[] | null>;
|
|
144
|
+
gap: number;
|
|
145
|
+
page: number;
|
|
146
|
+
pageSnapPoints: number[];
|
|
147
|
+
pagePickerInset: boolean;
|
|
148
|
+
canScrollNext: boolean;
|
|
149
|
+
canScrollPrev: boolean;
|
|
150
|
+
scrollTo: (pageIndex: number, behavior: 'instant' | 'smooth') => void;
|
|
151
|
+
scrollPrev: () => void;
|
|
152
|
+
scrollNext: () => void;
|
|
153
|
+
loop: boolean;
|
|
154
|
+
scrollPadding: number;
|
|
155
|
+
slidesPerPage: number;
|
|
156
|
+
slidesPerMove: number | 'auto';
|
|
157
|
+
snapType: UseCarouselProps['snapType'];
|
|
158
|
+
snapStop: UseCarouselProps['snapStop'];
|
|
159
|
+
scrollBehavior: UseCarouselProps['scrollBehavior'];
|
|
160
|
+
maxDots: number;
|
|
161
|
+
registerSlide: (element: HTMLElement | null, callback: (isVisible: boolean) => void) => void;
|
|
162
|
+
unregisterSlide: (element: HTMLElement | null) => void;
|
|
163
|
+
isSlideVisible: (element: HTMLElement | null) => boolean;
|
|
164
|
+
}
|
|
165
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CarouselAPI, UseCarouselProps } from './types';
|
|
2
|
+
export declare const useCarousel: ({ defaultPage, gap, snapType, snapStop, scrollPadding, slidesPerPage, slidesPerMove, scrollBehavior, loop, pagePickerInset, maxDots, page: controlledPage, onPageChange: onPageChangeProp, }: UseCarouselProps) => CarouselAPI;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to manage slide visibility using a centralized IntersectionObserver.
|
|
4
|
+
* This optimizes performance by using a single observer per carousel instead of one per slide.
|
|
5
|
+
*
|
|
6
|
+
* @param carouselRef - Reference to the carousel container element
|
|
7
|
+
* @returns Object with functions to register/unregister slides and check visibility
|
|
8
|
+
*/
|
|
9
|
+
export declare function useCarouselVisibility(carouselRef: RefObject<HTMLDivElement | null>): {
|
|
10
|
+
registerSlide: (element: HTMLElement | null, callback: (isVisible: boolean) => void) => void;
|
|
11
|
+
unregisterSlide: (element: HTMLElement | null) => void;
|
|
12
|
+
isSlideVisible: (element: HTMLElement | null) => boolean;
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type AnyFunction = (...args: any[]) => any;
|
|
2
|
+
/**
|
|
3
|
+
* Directly from this gist: https://gist.github.com/diegohaz/695097a06f038a707c3a1b11e4e40195
|
|
4
|
+
* Until React releases a native `useEvent` hook.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useEvent<T extends AnyFunction>(callback?: T): T;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsMounted: () => import('react').RefObject<boolean>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to track slide visibility using the centralized IntersectionObserver.
|
|
4
|
+
* This optimizes performance by using a single observer per carousel instead of one per slide.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useIsVisible(elementRef: RefObject<HTMLElement | null>, _parentRef: RefObject<HTMLElement | null>): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Get the scroll value of each slides that serves as the start of a page
|
|
4
|
+
* The array is updated when resize event are caught in the carousel.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useSnapPoints<T extends HTMLDivElement | null>(initialSnapPoints: number[] | undefined, { carouselRef, slidesPerMove, slidesPerPage, }: {
|
|
7
|
+
carouselRef: RefObject<T>;
|
|
8
|
+
slidesPerMove: 'auto' | number;
|
|
9
|
+
slidesPerPage: number;
|
|
10
|
+
}): readonly [number[], import('react').Dispatch<import('react').SetStateAction<number[]>>];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare function getSlideElements(container: HTMLDivElement | null): Element[];
|
|
2
|
+
export declare function isSnapPoint(slideIndex: number, { container, slidesPerMove, slidesPerPage, }: {
|
|
3
|
+
container: HTMLDivElement | null;
|
|
4
|
+
slidesPerMove: number | 'auto';
|
|
5
|
+
slidesPerPage: number;
|
|
6
|
+
}): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Get the scroll value of each slides that serves as the start of a page
|
|
9
|
+
* @returns number[] (ex for a 400px carousel with no gap: [400, 800, 1200])
|
|
10
|
+
*/
|
|
11
|
+
export declare function getSnapPositions({ container, slidesPerMove, slidesPerPage, }: {
|
|
12
|
+
container: HTMLDivElement | null;
|
|
13
|
+
slidesPerMove: number | 'auto';
|
|
14
|
+
slidesPerPage: number;
|
|
15
|
+
}): number[];
|
|
16
|
+
/**
|
|
17
|
+
* Calculate the state of a dot indicator of a carousel depending on the current page and the total number of pages.
|
|
18
|
+
*/
|
|
19
|
+
export declare function computeDotState({ dotIndex, pageState, totalPages, maxDots, }: {
|
|
20
|
+
dotIndex: number;
|
|
21
|
+
pageState: number;
|
|
22
|
+
totalPages: number;
|
|
23
|
+
maxDots?: number;
|
|
24
|
+
}): 'active' | 'edge' | 'idle' | 'hidden';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import { CheckboxGroupContextState } from './CheckboxGroupContext';
|
|
3
|
+
import { CheckboxInputProps } from './CheckboxInput';
|
|
4
|
+
export type CheckboxProps = CheckboxInputProps & Pick<CheckboxGroupContextState, 'reverse'> & {
|
|
5
|
+
ref?: Ref<HTMLButtonElement>;
|
|
6
|
+
};
|
|
7
|
+
export declare const Checkbox: {
|
|
8
|
+
({ id: idProp, className, intent: intentProp, checked: checkedProp, value, disabled, reverse, onCheckedChange, children, ref: forwardedRef, ...others }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
import { CheckboxGroupStylesProps } from './CheckboxGroup.styles';
|
|
3
|
+
import { CheckboxGroupContextState } from './CheckboxGroupContext';
|
|
4
|
+
export interface CheckboxGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'value' | 'defaultValue' | 'onChange'>, CheckboxGroupStylesProps, Pick<CheckboxGroupContextState, 'intent' | 'name' | 'value' | 'reverse'> {
|
|
5
|
+
/**
|
|
6
|
+
* The initial value of the checkbox group
|
|
7
|
+
*/
|
|
8
|
+
defaultValue?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* The callback fired when any children Checkbox is checked or unchecked
|
|
11
|
+
*/
|
|
12
|
+
onCheckedChange?: (value: string[]) => void;
|
|
13
|
+
ref?: Ref<HTMLDivElement>;
|
|
14
|
+
}
|
|
15
|
+
export declare const CheckboxGroup: {
|
|
16
|
+
({ name: nameProp, value: valueProp, defaultValue, className, intent, orientation, onCheckedChange: onCheckedChangeProp, reverse, children, ref, ...others }: CheckboxGroupProps): 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 checkboxGroupStyles: (props?: ({
|
|
3
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type CheckboxGroupStylesProps = VariantProps<typeof checkboxGroupStyles>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CheckboxInputStylesProps } from './CheckboxInput.styles';
|
|
2
|
+
export interface CheckboxGroupContextState extends Pick<CheckboxInputStylesProps, 'intent'> {
|
|
3
|
+
/**
|
|
4
|
+
* The id of the checkbox group.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* The name of the group. Submitted with its owning form as part of a name/value pair.
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The value of the checkbox group.
|
|
13
|
+
*/
|
|
14
|
+
value?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* A set of ids separated by a space used to describe the input component given by a set of messages.
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The validation state of the checkbox group.
|
|
21
|
+
*/
|
|
22
|
+
state?: 'error' | 'success' | 'alert';
|
|
23
|
+
/**
|
|
24
|
+
* If true, the checkbox group will be invalid.
|
|
25
|
+
*/
|
|
26
|
+
isInvalid?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If true, the checkbox group will be required.
|
|
29
|
+
*/
|
|
30
|
+
isRequired?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Callback used to update or notify the value of the checkbox group.
|
|
33
|
+
*/
|
|
34
|
+
onCheckedChange?: (checked: boolean, changed: string) => void;
|
|
35
|
+
/**
|
|
36
|
+
* When true, the label will be placed on the left side of the Checkbox
|
|
37
|
+
*/
|
|
38
|
+
reverse?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare const CheckboxGroupContext: import('react').Context<Partial<CheckboxGroupContextState>>;
|
|
41
|
+
export declare const useCheckboxGroup: () => Partial<CheckboxGroupContextState>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Checkbox } from 'radix-ui';
|
|
2
|
+
import { Ref } from 'react';
|
|
3
|
+
export type CheckboxIndicatorProps = Checkbox.CheckboxIndicatorProps & {
|
|
4
|
+
ref?: Ref<HTMLSpanElement>;
|
|
5
|
+
};
|
|
6
|
+
export declare const CheckboxIndicator: {
|
|
7
|
+
(props: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode, Ref } from 'react';
|
|
2
|
+
import { CheckboxInputStylesProps } from './CheckboxInput.styles';
|
|
3
|
+
type CheckedStatus = boolean | 'indeterminate';
|
|
4
|
+
export interface CheckboxInputProps extends CheckboxInputStylesProps, Omit<ComponentPropsWithoutRef<'button'>, 'onChange' | 'value' | 'checked' | 'defaultChecked'> {
|
|
5
|
+
/**
|
|
6
|
+
* The checked icon to use.
|
|
7
|
+
*/
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The indeterminate icon to use.
|
|
11
|
+
*/
|
|
12
|
+
indeterminateIcon?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
|
|
15
|
+
*/
|
|
16
|
+
defaultChecked?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The controlled checked state of the checkbox. Must be used in conjunction with onCheckedChange.
|
|
19
|
+
*/
|
|
20
|
+
checked?: CheckedStatus;
|
|
21
|
+
/**
|
|
22
|
+
* When true, prevents the user from interacting with the checkbox.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* When true, indicates that the user must check the checkbox before the owning form can be submitted.
|
|
27
|
+
*/
|
|
28
|
+
required?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the checkbox. Submitted with its owning form as part of a name/value pair.
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The value given as data when submitted with a name.
|
|
35
|
+
*/
|
|
36
|
+
value?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Event handler called when the checked state of the checkbox changes.
|
|
39
|
+
*/
|
|
40
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
41
|
+
ref?: Ref<HTMLButtonElement>;
|
|
42
|
+
}
|
|
43
|
+
export declare const CheckboxInput: {
|
|
44
|
+
({ className, icon, indeterminateIcon, intent, checked, ref, ...others }: CheckboxInputProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const checkboxInputStyles: (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 CheckboxInputStylesProps = VariantProps<typeof checkboxInputStyles>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LabelProps } from '../label';
|
|
2
|
+
import { LabelStylesProps } from './CheckboxLabel.styles';
|
|
3
|
+
export interface CheckboxLabelProps extends LabelProps, LabelStylesProps {
|
|
4
|
+
/**
|
|
5
|
+
* When true, prevents the user from interacting with the checkbox item.
|
|
6
|
+
*/
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const CheckboxLabel: {
|
|
10
|
+
({ disabled, ...others }: CheckboxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const labelStyles: (props?: ({
|
|
3
|
+
disabled?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type LabelStylesProps = VariantProps<typeof labelStyles>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, MouseEvent, Ref } from 'react';
|
|
2
|
+
import { ChipStylesProps } from './Chip.styles';
|
|
3
|
+
type ChipPrimitiveProps = Omit<ComponentPropsWithoutRef<'button'>, 'onClick' | 'disabled' | 'type'>;
|
|
4
|
+
export interface ChipProps extends ChipPrimitiveProps, Omit<ChipStylesProps, 'hasClearButton'> {
|
|
5
|
+
/**
|
|
6
|
+
* Configures a toggleButton aria-pressed initial value
|
|
7
|
+
*/
|
|
8
|
+
defaultPressed?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Configures a toggleButton aria-pressed value
|
|
11
|
+
*/
|
|
12
|
+
pressed?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Change the component to the HTML tag or custom component of the only child.
|
|
15
|
+
*/
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Event handler fired each clicking event
|
|
19
|
+
*/
|
|
20
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>, args: {
|
|
21
|
+
pressed: boolean;
|
|
22
|
+
value?: number | string | readonly string[];
|
|
23
|
+
}) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Clear chip handler
|
|
26
|
+
*/
|
|
27
|
+
onClear?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
28
|
+
ref?: Ref<HTMLButtonElement | HTMLDivElement>;
|
|
29
|
+
}
|
|
30
|
+
export declare const Chip: {
|
|
31
|
+
({ design, disabled, children, intent, defaultPressed, pressed, asChild, className, onClick, onClear, ref: forwardedRef, ...otherProps }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const chipStyles: (props?: ({
|
|
3
|
+
design?: "outlined" | "dashed" | "tinted" | null | undefined;
|
|
4
|
+
intent?: "main" | "alert" | "support" | "accent" | "success" | "info" | "neutral" | "danger" | "surface" | null | undefined;
|
|
5
|
+
disabled?: boolean | null | undefined;
|
|
6
|
+
hasClearButton?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export type ChipStylesProps = VariantProps<typeof chipStyles>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
import { ChipClearButtonStylesProps } from './ChipClearButton.styles';
|
|
3
|
+
export interface ChipClearButtonProps extends ComponentPropsWithoutRef<'span'>, ChipClearButtonStylesProps {
|
|
4
|
+
label: string;
|
|
5
|
+
ref?: Ref<HTMLSpanElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const ChipClearButton: {
|
|
8
|
+
({ children, tabIndex, label, ref: forwardedRef, }: ChipClearButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const chipClearButtonWrapperStyles: (props?: ({
|
|
3
|
+
disabled?: boolean | null | undefined;
|
|
4
|
+
isBordered?: boolean | null | undefined;
|
|
5
|
+
design?: "outlined" | "dashed" | "tinted" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const chipClearButtonStyles: (props?: ({
|
|
8
|
+
disabled?: boolean | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export type ChipClearButtonStylesProps = VariantProps<typeof chipClearButtonWrapperStyles>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
export type ChipContentProps = ComponentPropsWithoutRef<'span'> & {
|
|
3
|
+
ref?: Ref<HTMLSpanElement>;
|
|
4
|
+
};
|
|
5
|
+
export declare const ChipContent: {
|
|
6
|
+
({ children, className, ref: forwardedRef }: ChipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|