@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,11 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
interface GroupProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
ref?: Ref<HTMLOptGroupElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const Group: {
|
|
8
|
+
({ children, ref: forwardedRef, ...props }: GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
export interface ItemProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
value: string;
|
|
5
|
+
children: string;
|
|
6
|
+
ref?: Ref<HTMLOptionElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare const Item: {
|
|
9
|
+
({ disabled, value, children, ref: forwardedRef }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
2
|
+
export declare const styles: (props?: ({
|
|
3
|
+
state?: "undefined" | "alert" | "error" | "success" | null | undefined;
|
|
4
|
+
disabled?: boolean | null | undefined;
|
|
5
|
+
readOnly?: boolean | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const Items: {
|
|
8
|
+
({ children, className, ref, ...rest }: PropsWithChildren<ComponentPropsWithRef<"select">>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export interface SelectContextState {
|
|
3
|
+
groupLabel: string;
|
|
4
|
+
setGroupLabel: (label: string) => void;
|
|
5
|
+
}
|
|
6
|
+
type SelectContextProps = PropsWithChildren;
|
|
7
|
+
export declare const SelectGroupProvider: ({ children }: SelectContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const useSelectGroupContext: () => SelectContextState;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
export interface PlaceholderProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
children: string;
|
|
5
|
+
ref?: Ref<HTMLOptionElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const Placeholder: {
|
|
8
|
+
({ disabled, children, ref: forwardedRef, }: PlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
interface TriggerProps {
|
|
3
|
+
'aria-label'?: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
ref?: Ref<HTMLDivElement>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* This trigger acts as a fake button for the `select` tag.
|
|
10
|
+
* It is not interactive.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Trigger: {
|
|
13
|
+
({ "aria-label": ariaLabel, children, className, ref: forwardedRef, }: TriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const styles: (props?: ({
|
|
2
|
+
state?: "undefined" | "alert" | "error" | "success" | null | undefined;
|
|
3
|
+
disabled?: boolean | null | undefined;
|
|
4
|
+
readOnly?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
export interface ValueProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Optional placeholder value for the trigger.
|
|
7
|
+
* If not specified, the value inside `Select.Placeholder` item will be used.
|
|
8
|
+
*/
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
ref?: Ref<HTMLSpanElement>;
|
|
11
|
+
}
|
|
12
|
+
export declare const Value: {
|
|
13
|
+
({ children, className, placeholder: customPlaceholder, ref: forwardedRef, }: ValueProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Select as Root } from './Select';
|
|
2
|
+
import { SelectProvider, useSelectContext } from './SelectContext';
|
|
3
|
+
import { Group } from './SelectGroup';
|
|
4
|
+
import { Item } from './SelectItem';
|
|
5
|
+
import { Items } from './SelectItems';
|
|
6
|
+
import { Label } from './SelectLabel';
|
|
7
|
+
import { LeadingIcon } from './SelectLeadingIcon';
|
|
8
|
+
import { Placeholder } from './SelectPlaceholder';
|
|
9
|
+
import { Trigger } from './SelectTrigger';
|
|
10
|
+
import { Value } from './SelectValue';
|
|
11
|
+
export { useSelectContext, SelectProvider };
|
|
12
|
+
export declare const Select: typeof Root & {
|
|
13
|
+
Group: typeof Group;
|
|
14
|
+
Item: typeof Item;
|
|
15
|
+
Items: typeof Items;
|
|
16
|
+
Placeholder: typeof Placeholder;
|
|
17
|
+
Label: typeof Label;
|
|
18
|
+
Trigger: typeof Trigger;
|
|
19
|
+
Value: typeof Value;
|
|
20
|
+
LeadingIcon: typeof LeadingIcon;
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Select as Root } from './Select';
|
|
2
|
+
import { SelectProvider, useSelectContext } from './SelectContext';
|
|
3
|
+
import { Group } from './SelectGroup';
|
|
4
|
+
import { Item } from './SelectItem';
|
|
5
|
+
import { Items } from './SelectItems';
|
|
6
|
+
import { Label } from './SelectLabel';
|
|
7
|
+
import { LeadingIcon } from './SelectLeadingIcon';
|
|
8
|
+
import { Placeholder } from './SelectPlaceholder';
|
|
9
|
+
import { Trigger } from './SelectTrigger';
|
|
10
|
+
import { Value } from './SelectValue';
|
|
11
|
+
export { useSelectContext, SelectProvider };
|
|
12
|
+
export declare const Select: typeof Root & {
|
|
13
|
+
Group: typeof Group;
|
|
14
|
+
Item: typeof Item;
|
|
15
|
+
Items: typeof Items;
|
|
16
|
+
Placeholder: typeof Placeholder;
|
|
17
|
+
Label: typeof Label;
|
|
18
|
+
Trigger: typeof Trigger;
|
|
19
|
+
Value: typeof Value;
|
|
20
|
+
LeadingIcon: typeof LeadingIcon;
|
|
21
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ItemsMap } from './types';
|
|
3
|
+
export declare const findElement: (children: ReactNode) => (name: string) => ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | undefined;
|
|
4
|
+
export declare const getItemsFromChildren: (children: ReactNode) => ItemsMap;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
2
|
+
import { SkeletonStyleProps } from './Skeleton.styles';
|
|
3
|
+
export interface SkeletonProps extends ComponentPropsWithRef<'div'>, SkeletonStyleProps {
|
|
4
|
+
/**
|
|
5
|
+
* Displays an animated light effect.
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
isAnimated?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Adds an accessible fallback label.
|
|
11
|
+
*/
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Skeleton: {
|
|
15
|
+
({ isAnimated, label, className, children, ref: forwardedRef, ...rest }: PropsWithChildren<SkeletonProps>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const skeletonStyles: (props?: ({
|
|
3
|
+
isAnimated?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type SkeletonStyleProps = ExcludeNull<VariantProps<typeof skeletonStyles>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { SkeletonItemStyleProps } from './SkeletonItem.styles';
|
|
3
|
+
interface SkeletonItemProps extends ComponentPropsWithRef<'div'>, SkeletonItemStyleProps {
|
|
4
|
+
}
|
|
5
|
+
export type SkeletonRectangleProps = Omit<SkeletonItemProps, 'shape'> & {
|
|
6
|
+
width?: string | number;
|
|
7
|
+
height?: string | number;
|
|
8
|
+
};
|
|
9
|
+
export type SkeletonCircleProps = Omit<SkeletonItemProps, 'shape'> & {
|
|
10
|
+
size: string | number;
|
|
11
|
+
};
|
|
12
|
+
export type SkeletonLineProps = Omit<SkeletonItemProps, 'shape'> & {
|
|
13
|
+
lines?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the gaps between group items.
|
|
16
|
+
*/
|
|
17
|
+
gap?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
18
|
+
};
|
|
19
|
+
export declare const SkeletonRectangle: {
|
|
20
|
+
({ width, height, ...rest }: SkeletonRectangleProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const SkeletonCircle: {
|
|
24
|
+
({ size, ...rest }: SkeletonCircleProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const SkeletonLine: {
|
|
28
|
+
({ lines, gap: gapProp, className, ...rest }: SkeletonLineProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const skeletonItemStyles: (props?: ({
|
|
3
|
+
shape?: "circle" | "line" | "rectangle" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export declare const skeletonLineStyles: (props?: ({
|
|
6
|
+
gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export type SkeletonItemStyleProps = ExcludeNull<VariantProps<typeof skeletonItemStyles>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Skeleton as Root } from './Skeleton';
|
|
2
|
+
import { SkeletonCircle as Circle, SkeletonLine as Line, SkeletonRectangle as Rectangle } from './SkeletonItem';
|
|
3
|
+
export declare const Skeleton: typeof Root & {
|
|
4
|
+
Circle: typeof Circle;
|
|
5
|
+
Line: typeof Line;
|
|
6
|
+
Rectangle: typeof Rectangle;
|
|
7
|
+
};
|
|
8
|
+
export type { SkeletonProps } from './Skeleton';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Skeleton as Root } from './Skeleton';
|
|
2
|
+
import { SkeletonCircle as Circle, SkeletonLine as Line, SkeletonRectangle as Rectangle } from './SkeletonItem';
|
|
3
|
+
export declare const Skeleton: typeof Root & {
|
|
4
|
+
Circle: typeof Circle;
|
|
5
|
+
Line: typeof Line;
|
|
6
|
+
Rectangle: typeof Rectangle;
|
|
7
|
+
};
|
|
8
|
+
export type { SkeletonProps } from './Skeleton';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Slider as BaseSlider } from '@base-ui/react/slider';
|
|
2
|
+
import { ComponentProps, PropsWithChildren, Ref } from 'react';
|
|
3
|
+
import { SliderRangeVariantsProps } from './SliderTrack.styles';
|
|
4
|
+
export interface SliderProps extends Omit<ComponentProps<typeof BaseSlider.Root>, 'render' | 'orientation' | 'onValueChange' | 'onValueCommitted'>, PropsWithChildren<SliderRangeVariantsProps> {
|
|
5
|
+
/**
|
|
6
|
+
* The value of the slider when initially rendered. Use when you do not need to control the state of the slider.
|
|
7
|
+
*/
|
|
8
|
+
defaultValue?: number;
|
|
9
|
+
/**
|
|
10
|
+
* The controlled value of the slider. Must be used in conjunction with `onValueChange`.
|
|
11
|
+
*/
|
|
12
|
+
value?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Event handler called when the value changes.
|
|
15
|
+
*/
|
|
16
|
+
onValueChange?: (value: number) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Event handler called when the value changes at the end of an interaction. Useful when you only need to capture a final value e.g. to update a backend service.
|
|
19
|
+
*/
|
|
20
|
+
onValueCommit?: (value: number) => void;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the slider. Submitted with its owning form as part of a name/value pair.
|
|
23
|
+
* If wrapped with a FormField with a name, will be inherited from it.
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* When `true`, prevents the user from interacting with the slider.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the slider as interactive or not.
|
|
33
|
+
*/
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The minimum value for the range.
|
|
37
|
+
* @default 0
|
|
38
|
+
*/
|
|
39
|
+
min?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The maximum value for the range.
|
|
42
|
+
* @default 100
|
|
43
|
+
*/
|
|
44
|
+
max?: number;
|
|
45
|
+
/**
|
|
46
|
+
* The stepping interval.
|
|
47
|
+
* @default 1
|
|
48
|
+
*/
|
|
49
|
+
step?: number;
|
|
50
|
+
ref?: Ref<HTMLDivElement>;
|
|
51
|
+
}
|
|
52
|
+
export declare const Slider: {
|
|
53
|
+
({ intent, children, className, ref, value: valueProp, defaultValue: defaultValueProp, disabled: disabledProp, readOnly: readOnlyProp, name: nameProp, onValueChange, onValueCommit, min, max, ...rest }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const rootStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { SliderProps } from './Slider';
|
|
3
|
+
export type SliderContextInterface = Pick<SliderProps, 'intent' | 'min' | 'max'> & {
|
|
4
|
+
fieldLabelId?: string;
|
|
5
|
+
fieldId?: string;
|
|
6
|
+
onLabelId?: (id: string | undefined) => void;
|
|
7
|
+
hasValueInThumb: boolean;
|
|
8
|
+
registerValueInThumb: () => () => void;
|
|
9
|
+
controlRef: RefObject<HTMLElement | null>;
|
|
10
|
+
thumbRef: RefObject<HTMLElement | null>;
|
|
11
|
+
};
|
|
12
|
+
export declare const SliderContext: import('react').Context<SliderContextInterface>;
|
|
13
|
+
export declare const useSliderContext: () => SliderContextInterface;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Slider as BaseSlider } from '@base-ui/react/slider';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type SliderControlProps = Omit<ComponentProps<typeof BaseSlider.Control>, 'render'>;
|
|
4
|
+
export declare const SliderControl: {
|
|
5
|
+
({ className, ref, ...rest }: SliderControlProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Slider as BaseSlider } from '@base-ui/react/slider';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type SliderIndicatorProps = Omit<ComponentProps<typeof BaseSlider.Indicator>, 'render'>;
|
|
4
|
+
export declare const SliderIndicator: {
|
|
5
|
+
({ className, ref, ...rest }: SliderIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
import { LabelProps } from '../label';
|
|
3
|
+
export interface SliderLabelProps extends LabelProps {
|
|
4
|
+
/**
|
|
5
|
+
* Element shown when the input is required inside the label.
|
|
6
|
+
*/
|
|
7
|
+
requiredIndicator?: ReactNode;
|
|
8
|
+
ref?: Ref<HTMLLabelElement>;
|
|
9
|
+
}
|
|
10
|
+
export declare const SliderLabel: {
|
|
11
|
+
({ htmlFor: htmlForProp, id: idProp, className, children, requiredIndicator, asChild, ref, ...others }: SliderLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SliderMaxValueProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: (value: number) => ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const SliderMaxValue: import('react').ForwardRefExoticComponent<SliderMaxValueProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SliderMinValueProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: (value: number) => ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const SliderMinValue: import('react').ForwardRefExoticComponent<SliderMinValueProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Slider as BaseSlider } from '@base-ui/react/slider';
|
|
2
|
+
import { ComponentProps, PropsWithChildren } from 'react';
|
|
3
|
+
export type SliderThumbProps = Omit<ComponentProps<typeof BaseSlider.Thumb>, 'render' | 'index'> & PropsWithChildren;
|
|
4
|
+
export declare const SliderThumb: {
|
|
5
|
+
({ className, ref: forwardedRef, children, ...rest }: SliderThumbProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const thumbVariants: (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 SliderThumbVariantsProps = VariantProps<typeof thumbVariants>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Slider as BaseSlider } from '@base-ui/react/slider';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type SliderTrackProps = Omit<ComponentProps<typeof BaseSlider.Track>, 'render'>;
|
|
4
|
+
export declare const SliderTrack: {
|
|
5
|
+
({ className, ref, ...rest }: SliderTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const trackVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
|
+
export declare const rangeVariants: (props?: ({
|
|
4
|
+
intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export type SliderRangeVariantsProps = VariantProps<typeof rangeVariants>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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, };
|
|
@@ -0,0 +1,20 @@
|
|
|
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, };
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slot';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slot';
|
|
@@ -0,0 +1,29 @@
|
|
|
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;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
};
|