@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 { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
export type ChipIconProps = ComponentPropsWithoutRef<'span'> & {
|
|
3
|
+
ref?: Ref<HTMLSpanElement>;
|
|
4
|
+
};
|
|
5
|
+
export declare const ChipIcon: {
|
|
6
|
+
({ children, className, ref: forwardedRef }: ChipIconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import { ChipIconProps } from './ChipIcon';
|
|
3
|
+
export type ChipLeadingIconProps = ChipIconProps & {
|
|
4
|
+
ref?: Ref<HTMLSpanElement>;
|
|
5
|
+
};
|
|
6
|
+
export declare const ChipLeadingIcon: {
|
|
7
|
+
({ className, ref: forwardedRef, ...props }: ChipLeadingIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import { ChipIconProps } from './ChipIcon';
|
|
3
|
+
export type ChipTrailingIconProps = ChipIconProps & {
|
|
4
|
+
ref?: Ref<HTMLSpanElement>;
|
|
5
|
+
};
|
|
6
|
+
export declare const ChipTrailingIcon: {
|
|
7
|
+
({ className, ref: forwardedRef, ...props }: ChipTrailingIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Chip as Root } from './Chip';
|
|
2
|
+
import { ChipClearButton } from './ChipClearButton';
|
|
3
|
+
import { ChipContent } from './ChipContent';
|
|
4
|
+
import { ChipLeadingIcon } from './ChipLeadingIcon';
|
|
5
|
+
import { ChipTrailingIcon } from './ChipTrailingIcon';
|
|
6
|
+
export declare const Chip: typeof Root & {
|
|
7
|
+
Content: typeof ChipContent;
|
|
8
|
+
LeadingIcon: typeof ChipLeadingIcon;
|
|
9
|
+
TrailingIcon: typeof ChipTrailingIcon;
|
|
10
|
+
ClearButton: typeof ChipClearButton;
|
|
11
|
+
};
|
|
12
|
+
export { type ChipClearButtonProps } from './ChipClearButton';
|
|
13
|
+
export { type ChipContentProps } from './ChipContent';
|
|
14
|
+
export { type ChipLeadingIconProps } from './ChipLeadingIcon';
|
|
15
|
+
export { type ChipTrailingIconProps } from './ChipTrailingIcon';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Chip as Root } from './Chip';
|
|
2
|
+
import { ChipClearButton } from './ChipClearButton';
|
|
3
|
+
import { ChipContent } from './ChipContent';
|
|
4
|
+
import { ChipLeadingIcon } from './ChipLeadingIcon';
|
|
5
|
+
import { ChipTrailingIcon } from './ChipTrailingIcon';
|
|
6
|
+
export declare const Chip: typeof Root & {
|
|
7
|
+
Content: typeof ChipContent;
|
|
8
|
+
LeadingIcon: typeof ChipLeadingIcon;
|
|
9
|
+
TrailingIcon: typeof ChipTrailingIcon;
|
|
10
|
+
ClearButton: typeof ChipClearButton;
|
|
11
|
+
};
|
|
12
|
+
export { type ChipClearButtonProps } from './ChipClearButton';
|
|
13
|
+
export { type ChipContentProps } from './ChipContent';
|
|
14
|
+
export { type ChipLeadingIconProps } from './ChipLeadingIcon';
|
|
15
|
+
export { type ChipTrailingIconProps } from './ChipTrailingIcon';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ElementType, ForwardRefExoticComponent, HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
interface ReturnedValue {
|
|
3
|
+
Element: ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
} & RefAttributes<HTMLElement>> | ElementType;
|
|
6
|
+
chipProps: {
|
|
7
|
+
type: 'button';
|
|
8
|
+
'aria-pressed'?: boolean;
|
|
9
|
+
'data-state'?: 'on' | 'off';
|
|
10
|
+
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
onKeyDown?: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
} | {
|
|
15
|
+
'aria-disabled'?: boolean;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
onKeyDown?: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
18
|
+
};
|
|
19
|
+
compoundElements: {
|
|
20
|
+
leadingIcon: ReactNode;
|
|
21
|
+
trailingIcon: ReactNode;
|
|
22
|
+
content: ReactNode;
|
|
23
|
+
clearButton: ReactNode;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare const useChipElement: ({ onClick, asChild, pressed, defaultPressed, disabled, value, defaultValue, children, onClear, }: {
|
|
27
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>, args: {
|
|
28
|
+
pressed: boolean;
|
|
29
|
+
value?: string | number | readonly string[];
|
|
30
|
+
}) => void;
|
|
31
|
+
onKeyDown?: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
pressed?: boolean;
|
|
34
|
+
defaultPressed?: boolean;
|
|
35
|
+
value?: string | number | readonly string[];
|
|
36
|
+
defaultValue?: string | number | readonly string[];
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
onClear?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
40
|
+
}) => ReturnedValue;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const dashedVariants: readonly [{
|
|
2
|
+
readonly intent: "main";
|
|
3
|
+
readonly design: "dashed";
|
|
4
|
+
readonly class: string[];
|
|
5
|
+
}, {
|
|
6
|
+
readonly intent: "support";
|
|
7
|
+
readonly design: "dashed";
|
|
8
|
+
readonly class: string[];
|
|
9
|
+
}, {
|
|
10
|
+
readonly intent: "accent";
|
|
11
|
+
readonly design: "dashed";
|
|
12
|
+
readonly class: string[];
|
|
13
|
+
}, {
|
|
14
|
+
readonly intent: "success";
|
|
15
|
+
readonly design: "dashed";
|
|
16
|
+
readonly class: string[];
|
|
17
|
+
}, {
|
|
18
|
+
readonly intent: "alert";
|
|
19
|
+
readonly design: "dashed";
|
|
20
|
+
readonly class: string[];
|
|
21
|
+
}, {
|
|
22
|
+
readonly intent: "danger";
|
|
23
|
+
readonly design: "dashed";
|
|
24
|
+
readonly class: string[];
|
|
25
|
+
}, {
|
|
26
|
+
readonly intent: "info";
|
|
27
|
+
readonly design: "dashed";
|
|
28
|
+
readonly class: string[];
|
|
29
|
+
}, {
|
|
30
|
+
readonly intent: "neutral";
|
|
31
|
+
readonly design: "dashed";
|
|
32
|
+
readonly class: string[];
|
|
33
|
+
}, {
|
|
34
|
+
readonly intent: "surface";
|
|
35
|
+
readonly design: "dashed";
|
|
36
|
+
readonly class: string[];
|
|
37
|
+
}, {
|
|
38
|
+
readonly design: "dashed";
|
|
39
|
+
readonly hasClearButton: false;
|
|
40
|
+
readonly class: string[];
|
|
41
|
+
}, {
|
|
42
|
+
readonly design: "dashed";
|
|
43
|
+
readonly hasClearButton: true;
|
|
44
|
+
readonly class: string[];
|
|
45
|
+
}];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const outlinedVariants: readonly [{
|
|
2
|
+
readonly design: "outlined";
|
|
3
|
+
readonly intent: "main";
|
|
4
|
+
readonly class: string[];
|
|
5
|
+
}, {
|
|
6
|
+
readonly design: "outlined";
|
|
7
|
+
readonly intent: "support";
|
|
8
|
+
readonly class: string[];
|
|
9
|
+
}, {
|
|
10
|
+
readonly intent: "accent";
|
|
11
|
+
readonly design: "outlined";
|
|
12
|
+
readonly class: string[];
|
|
13
|
+
}, {
|
|
14
|
+
readonly design: "outlined";
|
|
15
|
+
readonly intent: "success";
|
|
16
|
+
readonly class: string[];
|
|
17
|
+
}, {
|
|
18
|
+
readonly intent: "alert";
|
|
19
|
+
readonly design: "outlined";
|
|
20
|
+
readonly class: string[];
|
|
21
|
+
}, {
|
|
22
|
+
readonly design: "outlined";
|
|
23
|
+
readonly intent: "danger";
|
|
24
|
+
readonly class: string[];
|
|
25
|
+
}, {
|
|
26
|
+
readonly design: "outlined";
|
|
27
|
+
readonly intent: "info";
|
|
28
|
+
readonly class: string[];
|
|
29
|
+
}, {
|
|
30
|
+
readonly design: "outlined";
|
|
31
|
+
readonly intent: "neutral";
|
|
32
|
+
readonly class: string[];
|
|
33
|
+
}, {
|
|
34
|
+
readonly design: "outlined";
|
|
35
|
+
readonly intent: "surface";
|
|
36
|
+
readonly class: string[];
|
|
37
|
+
}, {
|
|
38
|
+
readonly design: "outlined";
|
|
39
|
+
readonly hasClearButton: false;
|
|
40
|
+
readonly class: string[];
|
|
41
|
+
}, {
|
|
42
|
+
readonly design: "outlined";
|
|
43
|
+
readonly hasClearButton: true;
|
|
44
|
+
readonly class: string[];
|
|
45
|
+
}];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const tintedVariants: readonly [{
|
|
2
|
+
readonly intent: "main";
|
|
3
|
+
readonly design: "tinted";
|
|
4
|
+
readonly class: string[];
|
|
5
|
+
}, {
|
|
6
|
+
readonly intent: "support";
|
|
7
|
+
readonly design: "tinted";
|
|
8
|
+
readonly class: string[];
|
|
9
|
+
}, {
|
|
10
|
+
readonly intent: "accent";
|
|
11
|
+
readonly design: "tinted";
|
|
12
|
+
readonly class: string[];
|
|
13
|
+
}, {
|
|
14
|
+
readonly intent: "success";
|
|
15
|
+
readonly design: "tinted";
|
|
16
|
+
readonly class: string[];
|
|
17
|
+
}, {
|
|
18
|
+
readonly intent: "alert";
|
|
19
|
+
readonly design: "tinted";
|
|
20
|
+
readonly class: string[];
|
|
21
|
+
}, {
|
|
22
|
+
readonly intent: "danger";
|
|
23
|
+
readonly design: "tinted";
|
|
24
|
+
readonly class: string[];
|
|
25
|
+
}, {
|
|
26
|
+
readonly intent: "info";
|
|
27
|
+
readonly design: "tinted";
|
|
28
|
+
readonly class: string[];
|
|
29
|
+
}, {
|
|
30
|
+
readonly intent: "neutral";
|
|
31
|
+
readonly design: "tinted";
|
|
32
|
+
readonly class: string[];
|
|
33
|
+
}, {
|
|
34
|
+
readonly intent: "surface";
|
|
35
|
+
readonly design: "tinted";
|
|
36
|
+
readonly class: string[];
|
|
37
|
+
}, {
|
|
38
|
+
readonly design: "tinted";
|
|
39
|
+
readonly hasClearButton: false;
|
|
40
|
+
readonly class: string[];
|
|
41
|
+
}, {
|
|
42
|
+
readonly design: "tinted";
|
|
43
|
+
readonly hasClearButton: true;
|
|
44
|
+
readonly class: string[];
|
|
45
|
+
}];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Meter as BaseMeter } from '@base-ui/react/meter';
|
|
2
|
+
import { ComponentProps, PropsWithChildren, Ref } from 'react';
|
|
3
|
+
import { MeterIndicatorStylesProps } from '../meter/MeterTrack.styles';
|
|
4
|
+
import { CircularMeterStylesProps } from './CircularMeter.styles';
|
|
5
|
+
export type CircularMeterSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
export interface CircularMeterProps extends Omit<ComponentProps<typeof BaseMeter.Root>, 'render'>, Pick<MeterIndicatorStylesProps, 'intent'>, CircularMeterStylesProps {
|
|
7
|
+
/**
|
|
8
|
+
* Size of the circle.
|
|
9
|
+
*
|
|
10
|
+
* - `sm`: 24px diameter, 4px stroke width
|
|
11
|
+
* - `md`: 64px diameter, 8px stroke width
|
|
12
|
+
* - `lg`: 96px diameter, 8px stroke width
|
|
13
|
+
* - `xl`: 128px diameter, 8px stroke width
|
|
14
|
+
*
|
|
15
|
+
* Defaults to `md`.
|
|
16
|
+
*/
|
|
17
|
+
size?: CircularMeterSize;
|
|
18
|
+
/**
|
|
19
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
20
|
+
*/
|
|
21
|
+
asChild?: boolean;
|
|
22
|
+
ref?: Ref<HTMLDivElement>;
|
|
23
|
+
/**
|
|
24
|
+
* Orientation of the circular meter.
|
|
25
|
+
*
|
|
26
|
+
* - `vertical`: Elements are stacked vertically (default)
|
|
27
|
+
* - `horizontal`: Elements are arranged horizontally
|
|
28
|
+
*/
|
|
29
|
+
orientation?: 'vertical' | 'horizontal';
|
|
30
|
+
}
|
|
31
|
+
export declare const CircularMeter: {
|
|
32
|
+
({ className, value, max, min, size: sizeProp, intent, orientation, children, ref, ...others }: PropsWithChildren<CircularMeterProps>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const circularMeterStyles: (props?: ({
|
|
3
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type CircularMeterStylesProps = VariantProps<typeof circularMeterStyles>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithChildren } from 'react';
|
|
2
|
+
export type CircularMeterContentProps = ComponentProps<'div'> & PropsWithChildren;
|
|
3
|
+
export declare const CircularMeterContent: {
|
|
4
|
+
({ className, children, ...others }: CircularMeterContentProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MeterIndicatorStylesProps } from '../meter/MeterTrack.styles';
|
|
2
|
+
import { CircularMeterSize } from './CircularMeter';
|
|
3
|
+
export interface CircularMeterContextValue {
|
|
4
|
+
value: number;
|
|
5
|
+
max: number;
|
|
6
|
+
min: number;
|
|
7
|
+
intent: MeterIndicatorStylesProps['intent'];
|
|
8
|
+
onLabelId: (id?: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Size variant of the circular meter.
|
|
11
|
+
*/
|
|
12
|
+
sizeProp: CircularMeterSize;
|
|
13
|
+
/**
|
|
14
|
+
* Orientation of the circular meter.
|
|
15
|
+
*/
|
|
16
|
+
orientation: 'vertical' | 'horizontal';
|
|
17
|
+
/**
|
|
18
|
+
* Diameter of the SVG circle in pixels.
|
|
19
|
+
*/
|
|
20
|
+
size: number;
|
|
21
|
+
/**
|
|
22
|
+
* Radius of the SVG circle in pixels.
|
|
23
|
+
*/
|
|
24
|
+
radius: number;
|
|
25
|
+
/**
|
|
26
|
+
* Circumference of the SVG circle in pixels.
|
|
27
|
+
*/
|
|
28
|
+
circumference: number;
|
|
29
|
+
/**
|
|
30
|
+
* Stroke width of the SVG circle in pixels.
|
|
31
|
+
*/
|
|
32
|
+
strokeWidth: number;
|
|
33
|
+
}
|
|
34
|
+
export declare const CircularMeterContext: import('react').Context<CircularMeterContextValue | null>;
|
|
35
|
+
export declare const ID_PREFIX = ":circular-meter";
|
|
36
|
+
export declare const useCircularMeter: () => CircularMeterContextValue;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meter as BaseMeter } from '@base-ui/react/meter';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type CircularMeterLabelProps = Omit<ComponentProps<typeof BaseMeter.Label>, 'render'>;
|
|
4
|
+
export declare const CircularMeterLabel: {
|
|
5
|
+
({ id: idProp, children, className, ref: forwardedRef, ...others }: CircularMeterLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meter as BaseMeter } from '@base-ui/react/meter';
|
|
2
|
+
import { ComponentProps, PropsWithChildren } from 'react';
|
|
3
|
+
export declare const useCircularMeterTrack: () => boolean;
|
|
4
|
+
export type CircularMeterTrackProps = Omit<ComponentProps<typeof BaseMeter.Track>, 'render'> & PropsWithChildren;
|
|
5
|
+
export declare const CircularMeterTrack: {
|
|
6
|
+
({ className, children, ...others }: CircularMeterTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meter as BaseMeter } from '@base-ui/react/meter';
|
|
2
|
+
import { ComponentProps, PropsWithChildren } from 'react';
|
|
3
|
+
export type CircularMeterValueProps = Omit<ComponentProps<typeof BaseMeter.Value>, 'render'>;
|
|
4
|
+
export declare const CircularMeterValue: {
|
|
5
|
+
({ className, children, ...others }: PropsWithChildren<CircularMeterValueProps>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CircularMeter as Root } from './CircularMeter';
|
|
2
|
+
import { CircularMeterContent } from './CircularMeterContent';
|
|
3
|
+
import { CircularMeterLabel } from './CircularMeterLabel';
|
|
4
|
+
import { CircularMeterTrack } from './CircularMeterTrack';
|
|
5
|
+
import { CircularMeterValue } from './CircularMeterValue';
|
|
6
|
+
export declare const CircularMeter: typeof Root & {
|
|
7
|
+
Content: typeof CircularMeterContent;
|
|
8
|
+
Label: typeof CircularMeterLabel;
|
|
9
|
+
Track: typeof CircularMeterTrack;
|
|
10
|
+
Value: typeof CircularMeterValue;
|
|
11
|
+
};
|
|
12
|
+
export { type CircularMeterProps } from './CircularMeter';
|
|
13
|
+
export { type CircularMeterContentProps } from './CircularMeterContent';
|
|
14
|
+
export { type CircularMeterLabelProps } from './CircularMeterLabel';
|
|
15
|
+
export { type CircularMeterTrackProps } from './CircularMeterTrack';
|
|
16
|
+
export { type CircularMeterValueProps } from './CircularMeterValue';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CircularMeter as Root } from './CircularMeter';
|
|
2
|
+
import { CircularMeterContent } from './CircularMeterContent';
|
|
3
|
+
import { CircularMeterLabel } from './CircularMeterLabel';
|
|
4
|
+
import { CircularMeterTrack } from './CircularMeterTrack';
|
|
5
|
+
import { CircularMeterValue } from './CircularMeterValue';
|
|
6
|
+
export declare const CircularMeter: typeof Root & {
|
|
7
|
+
Content: typeof CircularMeterContent;
|
|
8
|
+
Label: typeof CircularMeterLabel;
|
|
9
|
+
Track: typeof CircularMeterTrack;
|
|
10
|
+
Value: typeof CircularMeterValue;
|
|
11
|
+
};
|
|
12
|
+
export { type CircularMeterProps } from './CircularMeter';
|
|
13
|
+
export { type CircularMeterContentProps } from './CircularMeterContent';
|
|
14
|
+
export { type CircularMeterLabelProps } from './CircularMeterLabel';
|
|
15
|
+
export { type CircularMeterTrackProps } from './CircularMeterTrack';
|
|
16
|
+
export { type CircularMeterValueProps } from './CircularMeterValue';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export interface UseIntersectionAnimationOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The threshold at which the callback should be triggered.
|
|
5
|
+
* A value of 0 means as soon as any part of the element is visible.
|
|
6
|
+
* A value of 1 means the entire element must be visible.
|
|
7
|
+
* @default 0.1
|
|
8
|
+
*/
|
|
9
|
+
threshold?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The root margin for the Intersection Observer.
|
|
12
|
+
* This can be used to trigger the animation before the element enters the viewport.
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
rootMargin?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hook to trigger an animation callback when an element enters the viewport.
|
|
19
|
+
* The callback is only triggered once, when the element first becomes visible.
|
|
20
|
+
*
|
|
21
|
+
* @param elementRef - Reference to the element to observe
|
|
22
|
+
* @param onIntersect - Callback to execute when the element enters the viewport
|
|
23
|
+
* @param options - Configuration options for the Intersection Observer
|
|
24
|
+
* @returns Whether the animation has been triggered
|
|
25
|
+
*/
|
|
26
|
+
export declare function useIntersectionAnimation(elementRef: RefObject<Element | null>, onIntersect: () => void, options?: UseIntersectionAnimationOptions): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Collapsible } from '@base-ui/react/collapsible';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export interface ContentProps extends ComponentProps<typeof Collapsible.Panel> {
|
|
4
|
+
/**
|
|
5
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
6
|
+
*/
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Content: {
|
|
10
|
+
({ asChild, className, children, hiddenUntilFound, ...props }: ContentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Collapsible } from '@base-ui/react/collapsible';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export interface RootProps extends ComponentProps<typeof Collapsible.Root> {
|
|
4
|
+
/**
|
|
5
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
6
|
+
*/
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Root: {
|
|
10
|
+
({ asChild, children, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export interface TriggerProps extends ComponentProps<'button'> {
|
|
3
|
+
/**
|
|
4
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
5
|
+
*/
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Trigger: {
|
|
9
|
+
({ asChild, children, ...props }: TriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
export interface ClearButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
3
|
+
'aria-label': string;
|
|
4
|
+
ref?: Ref<HTMLButtonElement>;
|
|
5
|
+
}
|
|
6
|
+
export declare const ClearButton: {
|
|
7
|
+
({ className, tabIndex, onClick, ref, ...others }: ClearButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Dispatch, PropsWithChildren, RefObject, SetStateAction } from 'react';
|
|
2
|
+
import { ComboboxItem, DownshiftState, ItemsMap } from './types';
|
|
3
|
+
export interface ComboboxContextState extends DownshiftState {
|
|
4
|
+
itemsMap: ItemsMap;
|
|
5
|
+
filteredItemsMap: ItemsMap;
|
|
6
|
+
highlightedItem: ComboboxItem | undefined;
|
|
7
|
+
hasPopover: boolean;
|
|
8
|
+
areSelectedItemsInTrigger: boolean;
|
|
9
|
+
multiple: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
wrap?: boolean;
|
|
13
|
+
state?: 'error' | 'alert' | 'success';
|
|
14
|
+
lastInteractionType: 'mouse' | 'keyboard';
|
|
15
|
+
setHasPopover: Dispatch<SetStateAction<boolean>>;
|
|
16
|
+
setAreSelectedItemsInTrigger: Dispatch<SetStateAction<boolean>>;
|
|
17
|
+
setLastInteractionType: (type: 'mouse' | 'keyboard') => void;
|
|
18
|
+
setOnInputValueChange: Dispatch<SetStateAction<((v: string) => void) | null>>;
|
|
19
|
+
innerInputRef: RefObject<HTMLInputElement | null>;
|
|
20
|
+
triggerAreaRef: RefObject<HTMLDivElement | null>;
|
|
21
|
+
isLoading?: boolean;
|
|
22
|
+
isTyping?: boolean;
|
|
23
|
+
setIsTyping: Dispatch<SetStateAction<boolean>>;
|
|
24
|
+
}
|
|
25
|
+
export type ComboboxContextCommonProps = PropsWithChildren<{
|
|
26
|
+
/**
|
|
27
|
+
* The controlled open state of the select. Must be used in conjunction with `onOpenChange`.
|
|
28
|
+
*/
|
|
29
|
+
open?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Event handler called when the open state of the select changes.
|
|
32
|
+
*/
|
|
33
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
34
|
+
/**
|
|
35
|
+
* The open state of the select when it is initially rendered. Use when you do not need to control its open state.
|
|
36
|
+
*/
|
|
37
|
+
defaultOpen?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Use `state` prop to assign a specific state to the combobox, choosing from: `error`, `alert` and `success`. By doing so, the outline styles will be updated.
|
|
40
|
+
*/
|
|
41
|
+
state?: 'error' | 'alert' | 'success';
|
|
42
|
+
/**
|
|
43
|
+
* When true, prevents the user from interacting with the combobox.
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the combobox as interactive or not.
|
|
48
|
+
*/
|
|
49
|
+
readOnly?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* When true, the items will be filtered depending on the value of the input (not case-sensitive).
|
|
52
|
+
*/
|
|
53
|
+
filtering?: 'none' | 'auto' | 'strict';
|
|
54
|
+
/**
|
|
55
|
+
* By default, the combobox will clear or restore the input value to the selected item value on blur.
|
|
56
|
+
*/
|
|
57
|
+
allowCustomValue?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* In multiple selection, many selected items might be displayed. Be default, the combobox trigger will expand vertically to display them all.
|
|
60
|
+
* If you wish to keep every item on a single line, disabled this property.
|
|
61
|
+
*/
|
|
62
|
+
wrap?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Display a spinner to indicate to the user that the combobox is loading results for .
|
|
65
|
+
*/
|
|
66
|
+
isLoading?: boolean;
|
|
67
|
+
}>;
|
|
68
|
+
interface ComboboxPropsSingle {
|
|
69
|
+
/**
|
|
70
|
+
* Prop 'multiple' indicating whether multiple values are allowed.
|
|
71
|
+
*/
|
|
72
|
+
multiple?: false;
|
|
73
|
+
/**
|
|
74
|
+
* The value of the select when initially rendered. Use when you do not need to control the state of the select.
|
|
75
|
+
*/
|
|
76
|
+
defaultValue?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The controlled value of the select. Should be used in conjunction with `onValueChange`.
|
|
79
|
+
*/
|
|
80
|
+
value?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Event handler called when the value changes.
|
|
83
|
+
*/
|
|
84
|
+
onValueChange?: (value: string) => void;
|
|
85
|
+
}
|
|
86
|
+
interface ComboboxPropsMultiple {
|
|
87
|
+
/**
|
|
88
|
+
* Prop 'multiple' indicating whether multiple values are allowed.
|
|
89
|
+
*/
|
|
90
|
+
multiple: true;
|
|
91
|
+
/**
|
|
92
|
+
* The value of the select when initially rendered. Use when you do not need to control the state of the select.
|
|
93
|
+
*/
|
|
94
|
+
defaultValue?: string[];
|
|
95
|
+
/**
|
|
96
|
+
* The controlled value of the select. Should be used in conjunction with `onValueChange`.
|
|
97
|
+
*/
|
|
98
|
+
value?: string[];
|
|
99
|
+
/**
|
|
100
|
+
* Event handler called when the value changes.
|
|
101
|
+
*/
|
|
102
|
+
onValueChange?: (value: string[]) => void;
|
|
103
|
+
}
|
|
104
|
+
export type ComboboxContextProps = ComboboxContextCommonProps & (ComboboxPropsSingle | ComboboxPropsMultiple);
|
|
105
|
+
export declare const ID_PREFIX = ":combobox";
|
|
106
|
+
export declare const ComboboxProvider: ({ children, state: stateProp, allowCustomValue, filtering, disabled: disabledProp, multiple, readOnly: readOnlyProp, wrap, value: controlledValue, defaultValue, onValueChange, open: controlledOpen, defaultOpen, onOpenChange, isLoading, }: ComboboxContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
export declare const useComboboxContext: () => ComboboxContextState;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentProps, Ref } from 'react';
|
|
2
|
+
import { IconButton } from '../icon-button';
|
|
3
|
+
interface DisclosureProps extends Omit<ComponentProps<typeof IconButton>, 'aria-label'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
closedLabel: string;
|
|
6
|
+
openedLabel: string;
|
|
7
|
+
ref?: Ref<HTMLButtonElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare const Disclosure: {
|
|
10
|
+
({ className, closedLabel, openedLabel, intent, design, size, ref: forwardedRef, ...props }: DisclosureProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
interface EmptyProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
ref?: Ref<HTMLDivElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const Empty: {
|
|
8
|
+
({ className, children, ref: forwardedRef }: EmptyProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|