@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,8 @@
|
|
|
1
|
+
import { QueuedToast, ToastState } from '@react-stately/toast';
|
|
2
|
+
import { SnackbarItemValue } from './SnackbarItem';
|
|
3
|
+
export interface SnackbarItemState<T = SnackbarItemValue> {
|
|
4
|
+
toast: QueuedToast<T>;
|
|
5
|
+
state: ToastState<T>;
|
|
6
|
+
}
|
|
7
|
+
export declare const SnackbarItemContext: import('react').Context<SnackbarItemState<SnackbarItemValue>>;
|
|
8
|
+
export declare const useSnackbarItemContext: () => SnackbarItemState<SnackbarItemValue>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IconProps } from '../icon';
|
|
3
|
+
export type SnackbarItemIconProps = IconProps;
|
|
4
|
+
export declare const SnackbarItemIcon: {
|
|
5
|
+
({ children, className, ...rest }: SnackbarItemIconProps): ReactElement;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AriaToastRegionProps } from '@react-aria/toast';
|
|
2
|
+
import { ComponentPropsWithRef, ReactElement } from 'react';
|
|
3
|
+
import { SnackbarItem, SnackbarItemProps } from './SnackbarItem';
|
|
4
|
+
import { SnackbarItemState } from './SnackbarItemContext';
|
|
5
|
+
import { SnackbarRegionVariantProps } from './SnackbarRegion.styles';
|
|
6
|
+
export interface SnackbarRegionProps extends ComponentPropsWithRef<'div'>, AriaToastRegionProps, SnackbarRegionVariantProps, Pick<SnackbarItemState, 'state'> {
|
|
7
|
+
/**
|
|
8
|
+
* An accessibility label for the snackbar region.
|
|
9
|
+
* @default 'Notifications'
|
|
10
|
+
*/
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Identifies the element (or elements) that labels the current element.
|
|
14
|
+
*/
|
|
15
|
+
'aria-labelledby'?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Identifies the element (or elements) that describes the object.
|
|
18
|
+
*/
|
|
19
|
+
'aria-describedby'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Identifies the element (or elements) that provide a detailed, extended description for the object.
|
|
22
|
+
*/
|
|
23
|
+
'aria-details'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The component/template used to display each snackbar from the queue
|
|
26
|
+
* @default 'Snackbar.Item'
|
|
27
|
+
*/
|
|
28
|
+
children?: ReactElement<SnackbarItemProps, typeof SnackbarItem>;
|
|
29
|
+
}
|
|
30
|
+
export declare const SnackbarRegion: ({ children, state, position, className, ref: forwardedRef, ...rest }: SnackbarRegionProps) => ReactElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const snackbarRegionVariant: (props?: ({
|
|
3
|
+
position?: "bottom" | "top" | "top-right" | "top-left" | "bottom-right" | "bottom-left" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type SnackbarRegionVariantProps = VariantProps<typeof snackbarRegionVariant>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { addSnackbar, AddSnackbarArgs, clearSnackbarQueue, Snackbar as Root, SnackbarProps } from './Snackbar';
|
|
2
|
+
import { SnackbarItem as Item, SnackbarItemProps } from './SnackbarItem';
|
|
3
|
+
import { SnackbarItemAction as ItemAction, SnackbarItemActionProps } from './SnackbarItemAction';
|
|
4
|
+
import { SnackbarItemClose as ItemClose, SnackbarItemCloseProps } from './SnackbarItemClose';
|
|
5
|
+
import { SnackbarItemIcon as ItemIcon, SnackbarItemIconProps } from './SnackbarItemIcon';
|
|
6
|
+
export declare const Snackbar: typeof Root & {
|
|
7
|
+
Item: typeof Item;
|
|
8
|
+
ItemAction: typeof ItemAction;
|
|
9
|
+
ItemClose: typeof ItemClose;
|
|
10
|
+
ItemIcon: typeof ItemIcon;
|
|
11
|
+
};
|
|
12
|
+
export type { SnackbarProps, SnackbarItemProps, SnackbarItemActionProps, SnackbarItemCloseProps, SnackbarItemIconProps, AddSnackbarArgs, };
|
|
13
|
+
export { addSnackbar, clearSnackbarQueue };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { addSnackbar, AddSnackbarArgs, clearSnackbarQueue, Snackbar as Root, SnackbarProps } from './Snackbar';
|
|
2
|
+
import { SnackbarItem as Item, SnackbarItemProps } from './SnackbarItem';
|
|
3
|
+
import { SnackbarItemAction as ItemAction, SnackbarItemActionProps } from './SnackbarItemAction';
|
|
4
|
+
import { SnackbarItemClose as ItemClose, SnackbarItemCloseProps } from './SnackbarItemClose';
|
|
5
|
+
import { SnackbarItemIcon as ItemIcon, SnackbarItemIconProps } from './SnackbarItemIcon';
|
|
6
|
+
export declare const Snackbar: typeof Root & {
|
|
7
|
+
Item: typeof Item;
|
|
8
|
+
ItemAction: typeof ItemAction;
|
|
9
|
+
ItemClose: typeof ItemClose;
|
|
10
|
+
ItemIcon: typeof ItemIcon;
|
|
11
|
+
};
|
|
12
|
+
export type { SnackbarProps, SnackbarItemProps, SnackbarItemActionProps, SnackbarItemCloseProps, SnackbarItemIconProps, AddSnackbarArgs, };
|
|
13
|
+
export { addSnackbar, clearSnackbarQueue };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const filledVariants: readonly [{
|
|
2
|
+
readonly design: "filled";
|
|
3
|
+
readonly intent: "success";
|
|
4
|
+
readonly class: readonly ["bg-success text-on-success"];
|
|
5
|
+
}, {
|
|
6
|
+
readonly design: "filled";
|
|
7
|
+
readonly intent: "alert";
|
|
8
|
+
readonly class: readonly ["bg-alert text-on-alert"];
|
|
9
|
+
}, {
|
|
10
|
+
readonly design: "filled";
|
|
11
|
+
readonly intent: "error";
|
|
12
|
+
readonly class: readonly ["bg-error text-on-error"];
|
|
13
|
+
}, {
|
|
14
|
+
readonly design: "filled";
|
|
15
|
+
readonly intent: "info";
|
|
16
|
+
readonly class: readonly ["bg-info text-on-info"];
|
|
17
|
+
}, {
|
|
18
|
+
readonly design: "filled";
|
|
19
|
+
readonly intent: "neutral";
|
|
20
|
+
readonly class: readonly ["bg-neutral text-on-neutral"];
|
|
21
|
+
}, {
|
|
22
|
+
readonly design: "filled";
|
|
23
|
+
readonly intent: "main";
|
|
24
|
+
readonly class: readonly ["bg-main text-on-main"];
|
|
25
|
+
}, {
|
|
26
|
+
readonly design: "filled";
|
|
27
|
+
readonly intent: "support";
|
|
28
|
+
readonly class: readonly ["bg-support text-on-support"];
|
|
29
|
+
}, {
|
|
30
|
+
readonly design: "filled";
|
|
31
|
+
readonly intent: "accent";
|
|
32
|
+
readonly class: readonly ["bg-accent text-on-accent"];
|
|
33
|
+
}, {
|
|
34
|
+
readonly design: "filled";
|
|
35
|
+
readonly intent: "inverse";
|
|
36
|
+
readonly class: readonly ["bg-surface-inverse text-on-surface-inverse"];
|
|
37
|
+
}];
|
|
38
|
+
export declare const tintedVariants: readonly [{
|
|
39
|
+
readonly design: "tinted";
|
|
40
|
+
readonly intent: "success";
|
|
41
|
+
readonly class: readonly ["bg-success-container text-on-success-container"];
|
|
42
|
+
}, {
|
|
43
|
+
readonly design: "tinted";
|
|
44
|
+
readonly intent: "alert";
|
|
45
|
+
readonly class: readonly ["bg-alert-container text-on-alert-container"];
|
|
46
|
+
}, {
|
|
47
|
+
readonly design: "tinted";
|
|
48
|
+
readonly intent: "error";
|
|
49
|
+
readonly class: readonly ["bg-error-container text-on-error-container"];
|
|
50
|
+
}, {
|
|
51
|
+
readonly design: "tinted";
|
|
52
|
+
readonly intent: "info";
|
|
53
|
+
readonly class: readonly ["bg-info-container text-on-info-container"];
|
|
54
|
+
}, {
|
|
55
|
+
readonly design: "tinted";
|
|
56
|
+
readonly intent: "neutral";
|
|
57
|
+
readonly class: readonly ["bg-neutral-container text-on-neutral-container"];
|
|
58
|
+
}, {
|
|
59
|
+
readonly design: "tinted";
|
|
60
|
+
readonly intent: "main";
|
|
61
|
+
readonly class: readonly ["bg-main-container text-on-main-container"];
|
|
62
|
+
}, {
|
|
63
|
+
readonly design: "tinted";
|
|
64
|
+
readonly intent: "support";
|
|
65
|
+
readonly class: readonly ["bg-support-container text-on-support-container"];
|
|
66
|
+
}, {
|
|
67
|
+
readonly design: "tinted";
|
|
68
|
+
readonly intent: "accent";
|
|
69
|
+
readonly class: readonly ["bg-accent-container text-on-accent-container"];
|
|
70
|
+
}, {
|
|
71
|
+
readonly design: "tinted";
|
|
72
|
+
readonly intent: "inverse";
|
|
73
|
+
readonly class: readonly ["bg-surface-inverse text-on-surface-inverse"];
|
|
74
|
+
}];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
interface UseSnackbarGlobalStoreArgs<T> {
|
|
3
|
+
providers: Set<T>;
|
|
4
|
+
subscriptions: Set<() => void>;
|
|
5
|
+
}
|
|
6
|
+
interface UseSnackbarGlobalStoreReturn<T> {
|
|
7
|
+
provider: T;
|
|
8
|
+
addProvider: (ref: T) => void;
|
|
9
|
+
deleteProvider: (ref: T) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* This hook is a basic abstraction of useSyncExternalStore hook which allows us
|
|
13
|
+
* to consume data from an external data store.
|
|
14
|
+
*
|
|
15
|
+
* Cf. https://react.dev/reference/react/useSyncExternalStore#subscribing-to-an-external-store
|
|
16
|
+
*/
|
|
17
|
+
export declare const useSnackbarGlobalStore: <T = RefObject<HTMLDivElement | null>>({ providers, subscriptions, }: UseSnackbarGlobalStoreArgs<T>) => UseSnackbarGlobalStoreReturn<T>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
interface SwipeArgs<T> {
|
|
3
|
+
swipeRef: RefObject<T | null>;
|
|
4
|
+
onSwipeStart?: ({ state, direction }: SwipeReturn) => void;
|
|
5
|
+
onSwipeMove?: ({ state, direction }: SwipeReturn) => void;
|
|
6
|
+
onSwipeCancel?: ({ state, direction }: SwipeReturn) => void;
|
|
7
|
+
onSwipeEnd?: ({ state, direction }: SwipeReturn) => void;
|
|
8
|
+
threshold?: number;
|
|
9
|
+
}
|
|
10
|
+
interface SwipeReturn {
|
|
11
|
+
state?: 'start' | 'move' | 'cancel' | 'end';
|
|
12
|
+
direction?: 'up' | 'down' | 'right' | 'left' | null;
|
|
13
|
+
}
|
|
14
|
+
export declare const useSwipe: <T extends HTMLElement>({ swipeRef, onSwipeStart, onSwipeMove, onSwipeCancel, onSwipeEnd, threshold, }: SwipeArgs<T>) => SwipeReturn;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
2
|
+
import { SpinnerStylesProps } from './Spinner.styles';
|
|
3
|
+
export interface SpinnerProps extends ComponentPropsWithRef<'div'>, SpinnerStylesProps {
|
|
4
|
+
/**
|
|
5
|
+
* Use `label` prop for accessibility, it is important to add a fallback loading text. This text will be visible to screen readers.
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Spinner: ({ className, size, intent, label, isBackgroundVisible, ref, ...others }: PropsWithChildren<SpinnerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const spinnerStyles: (props?: ({
|
|
3
|
+
size?: "current" | "sm" | "md" | "full" | null | undefined;
|
|
4
|
+
intent?: "main" | "current" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
|
|
5
|
+
isBackgroundVisible?: boolean | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type SpinnerStylesProps = VariantProps<typeof spinnerStyles>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropsWithChildren, RefObject } from 'react';
|
|
2
|
+
import { StepperProps, UseStepperReturn } from './types';
|
|
3
|
+
export declare const Stepper: {
|
|
4
|
+
({ children, formatOptions, minValue, maxValue, ref: forwardedRef, ...stepperProps }: PropsWithChildren<StepperProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const useStepperContext: () => Omit<UseStepperReturn, "groupProps"> & {
|
|
8
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { StepperButtonProps } from './types';
|
|
3
|
+
export declare const StepperIncrementButton: {
|
|
4
|
+
({ children, design, intent, className, ref: forwardedRef, ...rest }: PropsWithChildren<StepperButtonProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const StepperDecrementButton: {
|
|
10
|
+
({ children, design, intent, className, ref: forwardedRef, ...rest }: PropsWithChildren<StepperButtonProps>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
} & {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Stepper as Root } from './Stepper';
|
|
2
|
+
import { StepperDecrementButton as DecrementButton, StepperIncrementButton as IncrementButton } from './StepperButton';
|
|
3
|
+
import { StepperInput as Input } from './StepperInput';
|
|
4
|
+
export declare const Stepper: typeof Root & {
|
|
5
|
+
IncrementButton: typeof IncrementButton;
|
|
6
|
+
DecrementButton: typeof DecrementButton;
|
|
7
|
+
Input: typeof Input;
|
|
8
|
+
};
|
|
9
|
+
export type { StepperProps, StepperButtonProps, StepperInputProps } from './types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Stepper as Root } from './Stepper';
|
|
2
|
+
import { StepperDecrementButton as DecrementButton, StepperIncrementButton as IncrementButton } from './StepperButton';
|
|
3
|
+
import { StepperInput as Input } from './StepperInput';
|
|
4
|
+
export declare const Stepper: typeof Root & {
|
|
5
|
+
IncrementButton: typeof IncrementButton;
|
|
6
|
+
DecrementButton: typeof DecrementButton;
|
|
7
|
+
Input: typeof Input;
|
|
8
|
+
};
|
|
9
|
+
export type { StepperProps, StepperButtonProps, StepperInputProps } from './types';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AriaButtonOptions } from '@react-aria/button';
|
|
2
|
+
import { NumberFieldAria } from '@react-aria/numberfield';
|
|
3
|
+
import { NumberFieldStateOptions } from '@react-stately/numberfield';
|
|
4
|
+
import { AriaNumberFieldProps } from '@react-types/numberfield';
|
|
5
|
+
import { Ref, RefObject } from 'react';
|
|
6
|
+
import { IconButtonProps } from '../icon-button';
|
|
7
|
+
import { InputGroupProps, InputProps } from '../input';
|
|
8
|
+
/**
|
|
9
|
+
* As we're using React Spectrum library to build this component, we also want
|
|
10
|
+
* to build our typing uppon theirs.
|
|
11
|
+
* Still, we have to adapt it to avoid exposing useless props.
|
|
12
|
+
*/
|
|
13
|
+
export type StepperButtonProps = Omit<IconButtonProps, 'shape' | 'size' | 'disabled' | 'asChild' | 'isLoading' | 'loadingLabel'> & Omit<AriaButtonOptions<'button'>, 'elementType' | 'href' | 'target' | 'isDisabled' | 'excludeFromTabOrder' | 'aria-label' | 'preventFocusOnPress'> & {
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
ref?: Ref<HTMLButtonElement>;
|
|
16
|
+
};
|
|
17
|
+
type SpectrumNumberFieldPropsFilter = 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'validationState' | 'validationBehavior' | 'validate' | 'label' | 'description' | 'errorMessage' | 'isWheelDisabled' | 'id' | 'onCopy' | 'onCut' | 'onPaste' | 'onCompositionStart' | 'onCompositionEnd' | 'onCompositionUpdate' | 'onSelect' | 'onBeforeInput' | 'onInput';
|
|
18
|
+
export interface UseStepperArgs extends Omit<Omit<NumberFieldStateOptions, 'locale'> & Omit<AriaNumberFieldProps, 'incrementAriaLabel' | 'decrementAriaLabel'>, SpectrumNumberFieldPropsFilter> {
|
|
19
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the component as interactive or not.
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the component as editable or not.
|
|
26
|
+
*/
|
|
27
|
+
readOnly?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the component as mandatory for form validation.
|
|
30
|
+
*/
|
|
31
|
+
required?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt) language code for the locale.
|
|
34
|
+
* @default 'fr'
|
|
35
|
+
*/
|
|
36
|
+
locale?: string;
|
|
37
|
+
}
|
|
38
|
+
export type UseStepperReturn = Pick<NumberFieldAria, 'groupProps' | 'inputProps' | 'incrementButtonProps' | 'decrementButtonProps'>;
|
|
39
|
+
export type StepperProps = Omit<Omit<UseStepperArgs, 'inputRef' | 'aria-label'> & Omit<InputGroupProps, 'onClear'>, 'onChange'> & {
|
|
40
|
+
onValueChange?: (e: number) => void;
|
|
41
|
+
ref?: Ref<HTMLDivElement>;
|
|
42
|
+
};
|
|
43
|
+
export type StepperInputProps = Omit<InputProps, 'asChild'> & {
|
|
44
|
+
ref?: Ref<HTMLInputElement>;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SwitchInputProps } from './SwitchInput';
|
|
2
|
+
export type SwitchProps = SwitchInputProps;
|
|
3
|
+
export declare const Switch: {
|
|
4
|
+
({ size, children, className, id, disabled, reverse, ref, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Switch as BaseSwitch } from '@base-ui/react/switch';
|
|
2
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
3
|
+
import { StylesProps } from './SwitchInput.styles';
|
|
4
|
+
export interface SwitchInputProps extends StylesProps, Omit<ComponentPropsWithRef<typeof BaseSwitch.Root>, 'value' | 'render' | 'onCheckedChange'> {
|
|
5
|
+
/**
|
|
6
|
+
* The state of the switch when it is initially rendered. Use when you do not need to control its state.
|
|
7
|
+
*/
|
|
8
|
+
defaultChecked?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The controlled state of the switch. Must be used in conjunction with `onCheckedChange`.
|
|
11
|
+
*/
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Event handler called when the state of the switch changes.
|
|
15
|
+
*/
|
|
16
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
17
|
+
/**
|
|
18
|
+
* When `true`, prevents the user from interacting with the switch.
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* When true, indicates that the user must check the switch before the owning form can be submitted.
|
|
23
|
+
*/
|
|
24
|
+
required?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the switch. Submitted with its owning form as part of a name/value pair.
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The value given as data when submitted with a name.
|
|
31
|
+
*/
|
|
32
|
+
value?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Icon shown inside the thumb of the Switch whenever it is checked
|
|
35
|
+
*/
|
|
36
|
+
checkedIcon?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Icon shown inside the thumb of the Switch whenever it is unchecked
|
|
39
|
+
*/
|
|
40
|
+
uncheckedIcon?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* When true, the label will be placed on the left side of the Switch
|
|
43
|
+
*/
|
|
44
|
+
reverse?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
47
|
+
*/
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare const SwitchInput: {
|
|
51
|
+
({ checked, checkedIcon, defaultChecked, intent: intentProp, uncheckedIcon, size, onCheckedChange, className, required, ref, asChild, ...rest }: SwitchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const styles: (props?: ({
|
|
3
|
+
size?: "sm" | "md" | null | undefined;
|
|
4
|
+
intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export type StylesProps = VariantProps<typeof styles>;
|
|
7
|
+
export declare const thumbWrapperStyles: (props?: ({
|
|
8
|
+
checked?: boolean | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export declare const thumbStyles: (props?: ({
|
|
11
|
+
size?: "sm" | "md" | null | undefined;
|
|
12
|
+
checked?: boolean | null | undefined;
|
|
13
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
+
export declare const thumbCheckSVGStyles: (props?: ({
|
|
15
|
+
size?: "sm" | "md" | null | undefined;
|
|
16
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LabelProps } from '../label';
|
|
2
|
+
import { LabelStylesProps } from './SwitchLabel.styles';
|
|
3
|
+
export interface SwitchLabelProps extends LabelStylesProps, LabelProps {
|
|
4
|
+
/**
|
|
5
|
+
* Change the component to the HTML tag or custom component of the only child.
|
|
6
|
+
*/
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The id of the element the label is associated with.
|
|
10
|
+
*/
|
|
11
|
+
htmlFor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* When true, prevents the user from interacting with the switch item.
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const SwitchLabel: ({ className, disabled, ...others }: SwitchLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const labelStyles: (props?: ({
|
|
3
|
+
disabled?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type LabelStylesProps = VariantProps<typeof labelStyles>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Switch';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Switch';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tabs as BaseTabs } from '@base-ui/react/tabs';
|
|
2
|
+
import { ComponentProps, PropsWithChildren, Ref } from 'react';
|
|
3
|
+
import { TabsTriggerVariantsProps } from './TabsTrigger.styles';
|
|
4
|
+
export interface TabsProps extends Omit<ComponentProps<typeof BaseTabs.Root>, 'render'>, PropsWithChildren<Omit<TabsTriggerVariantsProps, 'orientation'>> {
|
|
5
|
+
/**
|
|
6
|
+
* Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to keep inactive tabs content in the DOM.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
forceMount?: boolean;
|
|
15
|
+
ref?: Ref<HTMLDivElement>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
20
|
+
export type TabsRootProps = TabsProps;
|
|
21
|
+
export declare const Tabs: {
|
|
22
|
+
({ intent, size, asChild, forceMount, orientation, children, className, ref, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Tabs as BaseTabs } from '@base-ui/react/tabs';
|
|
2
|
+
import { ComponentProps, PropsWithChildren, Ref } from 'react';
|
|
3
|
+
export interface TabsContentProps extends PropsWithChildren<Omit<ComponentProps<typeof BaseTabs.Panel>, 'keepMounted' | 'render'>> {
|
|
4
|
+
/**
|
|
5
|
+
* A unique value that associates the content with a trigger.
|
|
6
|
+
*/
|
|
7
|
+
value: string;
|
|
8
|
+
/**
|
|
9
|
+
* Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
|
|
15
|
+
*/
|
|
16
|
+
forceMount?: true;
|
|
17
|
+
ref?: Ref<HTMLDivElement>;
|
|
18
|
+
}
|
|
19
|
+
export declare const TabsContent: {
|
|
20
|
+
({ children, asChild, className, ref, forceMount, ...rest }: TabsContentProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TabsTriggerVariantsProps } from './TabsTrigger.styles';
|
|
2
|
+
export type TabsContextInterface = TabsTriggerVariantsProps & {
|
|
3
|
+
orientation?: 'horizontal' | 'vertical';
|
|
4
|
+
forceMount?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const TabsContext: import('react').Context<TabsContextInterface>;
|
|
7
|
+
export declare const useTabsContext: () => TabsContextInterface;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Tabs as BaseTabs } from '@base-ui/react/tabs';
|
|
2
|
+
import { ComponentProps, ReactElement, Ref } from 'react';
|
|
3
|
+
export interface TabsListProps extends Omit<ComponentProps<typeof BaseTabs.List>, 'render' | 'loopFocus'> {
|
|
4
|
+
/**
|
|
5
|
+
* Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* When true, keyboard navigation will loop from last tab to first, and vice versa.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
loop?: boolean;
|
|
14
|
+
children: ReactElement[] | ReactElement;
|
|
15
|
+
ref?: Ref<HTMLDivElement>;
|
|
16
|
+
}
|
|
17
|
+
export declare const TabsList: {
|
|
18
|
+
({ asChild, loop, children, className, ref, ...rest }: TabsListProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const wrapperStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
|
+
export declare const listStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
|
+
export declare const navigationArrowStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
export interface TabsPopoverProps {
|
|
3
|
+
/**
|
|
4
|
+
* The tab value this popover is associated with (automatically set by Tabs.Trigger)
|
|
5
|
+
*/
|
|
6
|
+
tabValue?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether this tab is currently active (automatically set by Tabs.Trigger)
|
|
9
|
+
*/
|
|
10
|
+
isTabActive?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the popover is open
|
|
13
|
+
*/
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Callback when popover open state changes
|
|
17
|
+
*/
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
/**
|
|
20
|
+
* The popover content - typically a Popover or other overlay component
|
|
21
|
+
*/
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Additional className for positioning
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
ref?: Ref<HTMLDivElement>;
|
|
28
|
+
}
|
|
29
|
+
export declare const TabsPopover: import('react').ForwardRefExoticComponent<Omit<TabsPopoverProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentType, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Popover as SparkPopover } from '../popover';
|
|
3
|
+
import { PopoverProps } from '../popover/Popover';
|
|
4
|
+
import { ContentProps as PopoverContentProps } from '../popover/PopoverContent';
|
|
5
|
+
import { TriggerProps as PopoverTriggerProps } from '../popover/PopoverTrigger';
|
|
6
|
+
interface TabsPopoverTriggerProps extends Omit<PopoverTriggerProps, 'asChild' | 'children'> {
|
|
7
|
+
'aria-label': string;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const TabsPopoverTrigger: import('react').ForwardRefExoticComponent<Omit<TabsPopoverTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const TabsPopoverContent: import('react').ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export type TabsPopoverTriggerComponent = typeof TabsPopoverTrigger;
|
|
13
|
+
export type TabsPopoverContentComponent = typeof TabsPopoverContent;
|
|
14
|
+
export type ConfiguredPopoverComponent = ComponentType<PopoverProps> & Omit<typeof SparkPopover, 'Content' | 'Trigger'> & {
|
|
15
|
+
Content: TabsPopoverContentComponent;
|
|
16
|
+
Trigger: TabsPopoverTriggerComponent;
|
|
17
|
+
};
|
|
18
|
+
interface PopoverAbstractionProps {
|
|
19
|
+
popoverSide: 'right' | 'bottom';
|
|
20
|
+
popoverTriggerRef: RefObject<HTMLButtonElement | null>;
|
|
21
|
+
children: (Popover: ConfiguredPopoverComponent) => ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const Popover: {
|
|
24
|
+
({ popoverSide, popoverTriggerRef, children }: PopoverAbstractionProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const rootStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Tabs as BaseTabs } from '@base-ui/react/tabs';
|
|
2
|
+
import { ComponentProps, ReactNode, Ref } from 'react';
|
|
3
|
+
import { ConfiguredPopoverComponent } from './TabsPopoverAbstraction';
|
|
4
|
+
export interface TabsTriggerProps extends Omit<ComponentProps<typeof BaseTabs.Tab>, 'render'> {
|
|
5
|
+
/**
|
|
6
|
+
* A unique value that associates the trigger with a content.
|
|
7
|
+
*/
|
|
8
|
+
value: string;
|
|
9
|
+
/**
|
|
10
|
+
* Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* When true, prevents the user from interacting with the tab.
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Function that receives a pre-configured Popover component and returns the popover structure.
|
|
21
|
+
* @example
|
|
22
|
+
* renderMenu={({ Popover }) => (
|
|
23
|
+
* <Popover>
|
|
24
|
+
* <Popover.Trigger aria-label="Options">
|
|
25
|
+
* <CustomIcon />
|
|
26
|
+
* </Popover.Trigger>
|
|
27
|
+
* <Popover.Content>
|
|
28
|
+
* <Button>Action</Button>
|
|
29
|
+
* </Popover.Content>
|
|
30
|
+
* </Popover>
|
|
31
|
+
* )}
|
|
32
|
+
*/
|
|
33
|
+
renderMenu?: (props: {
|
|
34
|
+
Popover: ConfiguredPopoverComponent;
|
|
35
|
+
}) => ReactNode;
|
|
36
|
+
ref?: Ref<HTMLButtonElement>;
|
|
37
|
+
}
|
|
38
|
+
export declare const TabsTrigger: {
|
|
39
|
+
({ asChild, value, disabled, children, className, ref, onKeyDown, renderMenu, ...rest }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|