@spark-ui/components 17.2.1-beta.1 → 17.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-group/index.js.map +1 -1
- package/dist/radio-group/index.mjs +129 -123
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/segmented-control/index.js +1 -1
- package/dist/segmented-control/index.js.map +1 -1
- package/dist/segmented-control/index.mjs +128 -116
- package/dist/segmented-control/index.mjs.map +1 -1
- package/package.json +4 -5
- package/dist/accordion/Accordion.d.ts +0 -27
- package/dist/accordion/AccordionItem.d.ts +0 -12
- package/dist/accordion/AccordionItemContent.d.ts +0 -12
- package/dist/accordion/AccordionItemHeader.d.ts +0 -9
- package/dist/accordion/AccordionItemTrigger.d.ts +0 -12
- package/dist/accordion/index.d.mts +0 -15
- package/dist/accordion/index.d.ts +0 -15
- package/dist/accordion/useRenderSlot.d.ts +0 -3
- package/dist/alert-dialog/AlertDialog.d.ts +0 -29
- package/dist/alert-dialog/AlertDialogAction.d.ts +0 -13
- package/dist/alert-dialog/AlertDialogBody.d.ts +0 -12
- package/dist/alert-dialog/AlertDialogCancel.d.ts +0 -13
- package/dist/alert-dialog/AlertDialogContent.d.ts +0 -9
- package/dist/alert-dialog/AlertDialogContext.d.ts +0 -12
- package/dist/alert-dialog/AlertDialogDescription.d.ts +0 -9
- package/dist/alert-dialog/AlertDialogFooter.d.ts +0 -10
- package/dist/alert-dialog/AlertDialogHeader.d.ts +0 -10
- package/dist/alert-dialog/AlertDialogOverlay.d.ts +0 -9
- package/dist/alert-dialog/AlertDialogPortal.d.ts +0 -7
- package/dist/alert-dialog/AlertDialogTitle.d.ts +0 -9
- package/dist/alert-dialog/AlertDialogTrigger.d.ts +0 -13
- package/dist/alert-dialog/index.d.mts +0 -38
- package/dist/alert-dialog/index.d.ts +0 -38
- package/dist/alert-dialog/useRenderSlot.d.ts +0 -3
- package/dist/avatar/Avatar.d.ts +0 -3
- package/dist/avatar/AvatarAction.d.ts +0 -9
- package/dist/avatar/AvatarImage.d.ts +0 -7
- package/dist/avatar/AvatarOnlineBadge.d.ts +0 -9
- package/dist/avatar/AvatarPlaceholder.d.ts +0 -8
- package/dist/avatar/AvatarUser.d.ts +0 -7
- package/dist/avatar/context.d.ts +0 -5
- package/dist/avatar/index.d.mts +0 -15
- package/dist/avatar/index.d.ts +0 -15
- package/dist/avatar/types.d.ts +0 -24
- package/dist/badge/Badge.d.ts +0 -9
- package/dist/badge/BadgeItem.d.ts +0 -31
- package/dist/badge/BadgeItem.styles.d.ts +0 -7
- package/dist/badge/index.d.mts +0 -1
- package/dist/badge/index.d.ts +0 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +0 -10
- package/dist/breadcrumb/Breadcrumb.styles.d.ts +0 -0
- package/dist/breadcrumb/BreadcrumbCurrentPage.d.ts +0 -11
- package/dist/breadcrumb/BreadcrumbItem.d.ts +0 -9
- package/dist/breadcrumb/BreadcrumbLink.d.ts +0 -12
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +0 -10
- package/dist/breadcrumb/index.d.mts +0 -12
- package/dist/breadcrumb/index.d.ts +0 -12
- package/dist/button/Button.d.ts +0 -26
- package/dist/button/Button.styles.d.ts +0 -10
- package/dist/button/index.d.mts +0 -1
- package/dist/button/index.d.ts +0 -1
- package/dist/button/variants/contrast.d.ts +0 -41
- package/dist/button/variants/filled.d.ts +0 -41
- package/dist/button/variants/ghost.d.ts +0 -41
- package/dist/button/variants/index.d.mts +0 -5
- package/dist/button/variants/index.d.ts +0 -5
- package/dist/button/variants/outlined.d.ts +0 -41
- package/dist/button/variants/tinted.d.ts +0 -41
- package/dist/card/Backdrop.d.ts +0 -14
- package/dist/card/Card.d.ts +0 -16
- package/dist/card/Card.styles.d.ts +0 -7
- package/dist/card/Content.d.ts +0 -15
- package/dist/card/Content.styles.d.ts +0 -8
- package/dist/card/context.d.ts +0 -11
- package/dist/card/index.d.mts +0 -8
- package/dist/card/index.d.ts +0 -8
- package/dist/card/utils.d.ts +0 -3
- package/dist/carousel/Carousel.d.ts +0 -12
- package/dist/carousel/CarouselControls.d.ts +0 -9
- package/dist/carousel/CarouselNextButton.d.ts +0 -5
- package/dist/carousel/CarouselPageIndicator.d.ts +0 -14
- package/dist/carousel/CarouselPagePicker.d.ts +0 -14
- package/dist/carousel/CarouselPrevButton.d.ts +0 -5
- package/dist/carousel/CarouselSlide.d.ts +0 -12
- package/dist/carousel/CarouselSlides.d.ts +0 -10
- package/dist/carousel/CarouselViewport.d.ts +0 -9
- package/dist/carousel/index.d.mts +0 -19
- package/dist/carousel/index.d.ts +0 -19
- package/dist/carousel/types.d.ts +0 -165
- package/dist/carousel/useCarousel.d.ts +0 -2
- package/dist/carousel/useCarouselVisibility.d.ts +0 -13
- package/dist/carousel/useEvent.d.ts +0 -7
- package/dist/carousel/useIsMounted.d.ts +0 -1
- package/dist/carousel/useIsVisible.d.ts +0 -6
- package/dist/carousel/useResizeObserver.d.ts +0 -2
- package/dist/carousel/useScrollEnd.d.ts +0 -3
- package/dist/carousel/useSnapPoints.d.ts +0 -10
- package/dist/carousel/utils.d.ts +0 -24
- package/dist/checkbox/Checkbox.d.ts +0 -10
- package/dist/checkbox/CheckboxGroup.d.ts +0 -18
- package/dist/checkbox/CheckboxGroup.styles.d.ts +0 -5
- package/dist/checkbox/CheckboxGroupContext.d.ts +0 -41
- package/dist/checkbox/CheckboxIndicator.d.ts +0 -9
- package/dist/checkbox/CheckboxInput.d.ts +0 -47
- package/dist/checkbox/CheckboxInput.styles.d.ts +0 -5
- package/dist/checkbox/CheckboxLabel.d.ts +0 -12
- package/dist/checkbox/CheckboxLabel.styles.d.ts +0 -5
- package/dist/checkbox/index.d.mts +0 -2
- package/dist/checkbox/index.d.ts +0 -2
- package/dist/chip/Chip.d.ts +0 -34
- package/dist/chip/Chip.styles.d.ts +0 -8
- package/dist/chip/ChipClearButton.d.ts +0 -10
- package/dist/chip/ChipClearButton.styles.d.ts +0 -10
- package/dist/chip/ChipContent.d.ts +0 -8
- package/dist/chip/ChipIcon.d.ts +0 -8
- package/dist/chip/ChipLeadingIcon.d.ts +0 -9
- package/dist/chip/ChipTrailingIcon.d.ts +0 -9
- package/dist/chip/index.d.mts +0 -15
- package/dist/chip/index.d.ts +0 -15
- package/dist/chip/useChipContext.d.ts +0 -4
- package/dist/chip/useChipElement.d.ts +0 -41
- package/dist/chip/variants/dashed.d.ts +0 -45
- package/dist/chip/variants/index.d.mts +0 -3
- package/dist/chip/variants/index.d.ts +0 -3
- package/dist/chip/variants/outlined.d.ts +0 -45
- package/dist/chip/variants/tinted.d.ts +0 -45
- package/dist/circular-meter/CircularMeter.d.ts +0 -34
- package/dist/circular-meter/CircularMeter.styles.d.ts +0 -5
- package/dist/circular-meter/CircularMeterContent.d.ts +0 -6
- package/dist/circular-meter/CircularMeterContext.d.ts +0 -36
- package/dist/circular-meter/CircularMeterLabel.d.ts +0 -7
- package/dist/circular-meter/CircularMeterTrack.d.ts +0 -8
- package/dist/circular-meter/CircularMeterValue.d.ts +0 -7
- package/dist/circular-meter/index.d.mts +0 -16
- package/dist/circular-meter/index.d.ts +0 -16
- package/dist/circular-meter/useIntersectionAnimation.d.ts +0 -26
- package/dist/collapsible/Content.d.ts +0 -12
- package/dist/collapsible/Root.d.ts +0 -12
- package/dist/collapsible/Trigger.d.ts +0 -11
- package/dist/collapsible/index.d.mts +0 -7
- package/dist/collapsible/index.d.ts +0 -7
- package/dist/collapsible/useRenderSlot.d.ts +0 -3
- package/dist/combobox/Combobox.d.ts +0 -6
- package/dist/combobox/ComboboxClearButton.d.ts +0 -9
- package/dist/combobox/ComboboxContext.d.ts +0 -108
- package/dist/combobox/ComboboxDisclosure.d.ts +0 -13
- package/dist/combobox/ComboboxEmpty.d.ts +0 -11
- package/dist/combobox/ComboboxGroup.d.ts +0 -11
- package/dist/combobox/ComboboxInput.d.ts +0 -15
- package/dist/combobox/ComboboxItem.d.ts +0 -12
- package/dist/combobox/ComboboxItemContext.d.ts +0 -17
- package/dist/combobox/ComboboxItemIndicator.d.ts +0 -11
- package/dist/combobox/ComboboxItemText.d.ts +0 -10
- package/dist/combobox/ComboboxItems.d.ts +0 -11
- package/dist/combobox/ComboboxItemsGroupContext.d.ts +0 -8
- package/dist/combobox/ComboboxLabel.d.ts +0 -11
- package/dist/combobox/ComboboxLeadingIcon.d.ts +0 -7
- package/dist/combobox/ComboboxPopover.d.ts +0 -10
- package/dist/combobox/ComboboxPortal.d.ts +0 -2
- package/dist/combobox/ComboboxSelectedItems.d.ts +0 -4
- package/dist/combobox/ComboboxTrigger.d.ts +0 -11
- package/dist/combobox/ComboboxTrigger.styles.d.ts +0 -6
- package/dist/combobox/index.d.mts +0 -35
- package/dist/combobox/index.d.ts +0 -35
- package/dist/combobox/tests/test-utils.d.ts +0 -8
- package/dist/combobox/types.d.ts +0 -8
- package/dist/combobox/useCombobox/multipleSelectionReducer.d.ts +0 -13
- package/dist/combobox/useCombobox/singleSelectionReducer.d.ts +0 -8
- package/dist/combobox/utils/index.d.mts +0 -14
- package/dist/combobox/utils/index.d.ts +0 -14
- package/dist/combobox/utils/useWidthIncreaseCallback.d.ts +0 -2
- package/dist/dialog/Dialog.d.ts +0 -33
- package/dist/dialog/DialogBody.d.ts +0 -12
- package/dist/dialog/DialogClose.d.ts +0 -10
- package/dist/dialog/DialogCloseButton.d.ts +0 -9
- package/dist/dialog/DialogContent.d.ts +0 -14
- package/dist/dialog/DialogContent.styles.d.ts +0 -6
- package/dist/dialog/DialogContext.d.ts +0 -11
- package/dist/dialog/DialogDescription.d.ts +0 -9
- package/dist/dialog/DialogFooter.d.ts +0 -10
- package/dist/dialog/DialogHeader.d.ts +0 -10
- package/dist/dialog/DialogOverlay.d.ts +0 -9
- package/dist/dialog/DialogPortal.d.ts +0 -7
- package/dist/dialog/DialogTitle.d.ts +0 -9
- package/dist/dialog/DialogTrigger.d.ts +0 -13
- package/dist/dialog/index.d.mts +0 -37
- package/dist/dialog/index.d.ts +0 -37
- package/dist/divider/Divider.d.ts +0 -30
- package/dist/divider/Divider.styles.d.ts +0 -9
- package/dist/divider/DividerContent.d.ts +0 -13
- package/dist/divider/index.d.mts +0 -6
- package/dist/divider/index.d.ts +0 -6
- package/dist/divider/variants/intents.d.ts +0 -17
- package/dist/drawer/Drawer.d.ts +0 -32
- package/dist/drawer/DrawerBody.d.ts +0 -11
- package/dist/drawer/DrawerBody.styles.d.ts +0 -5
- package/dist/drawer/DrawerClose.d.ts +0 -13
- package/dist/drawer/DrawerCloseButton.d.ts +0 -7
- package/dist/drawer/DrawerContent.d.ts +0 -10
- package/dist/drawer/DrawerContent.styles.d.ts +0 -6
- package/dist/drawer/DrawerContext.d.ts +0 -9
- package/dist/drawer/DrawerDescription.d.ts +0 -9
- package/dist/drawer/DrawerFooter.d.ts +0 -8
- package/dist/drawer/DrawerHeader.d.ts +0 -10
- package/dist/drawer/DrawerOverlay.d.ts +0 -9
- package/dist/drawer/DrawerPortal.d.ts +0 -7
- package/dist/drawer/DrawerTitle.d.ts +0 -9
- package/dist/drawer/DrawerTrigger.d.ts +0 -13
- package/dist/drawer/index.d.mts +0 -37
- package/dist/drawer/index.d.ts +0 -37
- package/dist/drawer/useRenderSlot.d.ts +0 -3
- package/dist/dropdown/Dropdown.d.ts +0 -6
- package/dist/dropdown/DropdownContext.d.ts +0 -81
- package/dist/dropdown/DropdownDivider.d.ts +0 -10
- package/dist/dropdown/DropdownGroup.d.ts +0 -11
- package/dist/dropdown/DropdownItem.d.ts +0 -12
- package/dist/dropdown/DropdownItemContext.d.ts +0 -17
- package/dist/dropdown/DropdownItemIndicator.d.ts +0 -11
- package/dist/dropdown/DropdownItemText.d.ts +0 -9
- package/dist/dropdown/DropdownItems.d.ts +0 -21
- package/dist/dropdown/DropdownItemsGroupContext.d.ts +0 -8
- package/dist/dropdown/DropdownLabel.d.ts +0 -11
- package/dist/dropdown/DropdownLeadingIcon.d.ts +0 -7
- package/dist/dropdown/DropdownPopover.d.ts +0 -6
- package/dist/dropdown/DropdownPortal.d.ts +0 -2
- package/dist/dropdown/DropdownTrigger.d.ts +0 -12
- package/dist/dropdown/DropdownTrigger.styles.d.ts +0 -5
- package/dist/dropdown/DropdownValue.d.ts +0 -11
- package/dist/dropdown/index.d.mts +0 -29
- package/dist/dropdown/index.d.ts +0 -29
- package/dist/dropdown/types.d.ts +0 -8
- package/dist/dropdown/useDropdown.d.ts +0 -41
- package/dist/dropdown/utils.d.ts +0 -13
- package/dist/file-upload/FileUpload.d.ts +0 -130
- package/dist/file-upload/FileUploadAcceptedFile.d.ts +0 -25
- package/dist/file-upload/FileUploadContext.d.ts +0 -17
- package/dist/file-upload/FileUploadDropzone.d.ts +0 -10
- package/dist/file-upload/FileUploadItemDeleteTrigger.d.ts +0 -11
- package/dist/file-upload/FileUploadPreviewImage.d.ts +0 -17
- package/dist/file-upload/FileUploadRejectedFile.d.ts +0 -24
- package/dist/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +0 -12
- package/dist/file-upload/FileUploadTrigger.d.ts +0 -12
- package/dist/file-upload/constants.d.ts +0 -29
- package/dist/file-upload/index.d.mts +0 -22
- package/dist/file-upload/index.d.ts +0 -22
- package/dist/file-upload/test-utils.d.ts +0 -9
- package/dist/file-upload/useFileUploadState.d.ts +0 -88
- package/dist/file-upload/utils.d.ts +0 -40
- package/dist/form-field/FormField.d.ts +0 -21
- package/dist/form-field/FormFieldAlertMessage.d.ts +0 -9
- package/dist/form-field/FormFieldCharactersCount.d.ts +0 -26
- package/dist/form-field/FormFieldContext.d.ts +0 -49
- package/dist/form-field/FormFieldControl.d.ts +0 -12
- package/dist/form-field/FormFieldErrorMessage.d.ts +0 -9
- package/dist/form-field/FormFieldHelperMessage.d.ts +0 -9
- package/dist/form-field/FormFieldLabel.d.ts +0 -13
- package/dist/form-field/FormFieldMessage.d.ts +0 -8
- package/dist/form-field/FormFieldProvider.d.ts +0 -9
- package/dist/form-field/FormFieldRequiredIndicator.d.ts +0 -9
- package/dist/form-field/FormFieldStateMessage.d.ts +0 -10
- package/dist/form-field/FormFieldSuccessMessage.d.ts +0 -9
- package/dist/form-field/index.d.mts +0 -31
- package/dist/form-field/index.d.ts +0 -31
- package/dist/icon/Icon.d.ts +0 -17
- package/dist/icon/Icon.styles.d.ts +0 -6
- package/dist/icon/index.d.mts +0 -1
- package/dist/icon/index.d.ts +0 -1
- package/dist/icon-button/IconButton.d.ts +0 -10
- package/dist/icon-button/IconButton.styles.d.ts +0 -5
- package/dist/icon-button/index.d.mts +0 -1
- package/dist/icon-button/index.d.ts +0 -1
- package/dist/input/Input.d.ts +0 -14
- package/dist/input/Input.styles.d.ts +0 -11
- package/dist/input/InputAddon.d.ts +0 -9
- package/dist/input/InputAddon.styles.d.ts +0 -9
- package/dist/input/InputClearButton.d.ts +0 -12
- package/dist/input/InputGroup.d.ts +0 -17
- package/dist/input/InputGroup.styles.d.ts +0 -6
- package/dist/input/InputGroupContext.d.ts +0 -14
- package/dist/input/InputIcon.d.ts +0 -6
- package/dist/input/InputLeadingAddon.d.ts +0 -11
- package/dist/input/InputLeadingIcon.d.ts +0 -7
- package/dist/input/InputTrailingAddon.d.ts +0 -11
- package/dist/input/InputTrailingIcon.d.ts +0 -7
- package/dist/input/index.d.mts +0 -21
- package/dist/input/index.d.ts +0 -21
- package/dist/input-otp/InputOTP.d.ts +0 -90
- package/dist/input-otp/InputOTP.styles.d.ts +0 -10
- package/dist/input-otp/InputOTPContext.d.ts +0 -17
- package/dist/input-otp/InputOTPGroup.d.ts +0 -7
- package/dist/input-otp/InputOTPSeparator.d.ts +0 -7
- package/dist/input-otp/InputOTPSlot.d.ts +0 -12
- package/dist/input-otp/index.d.mts +0 -14
- package/dist/input-otp/index.d.ts +0 -14
- package/dist/input-otp/useInputOTP.d.ts +0 -48
- package/dist/kbd/Kbd.d.ts +0 -5
- package/dist/kbd/index.d.mts +0 -1
- package/dist/kbd/index.d.ts +0 -1
- package/dist/label/Label.d.ts +0 -9
- package/dist/label/LabelRequiredIndicator.d.ts +0 -6
- package/dist/label/index.d.mts +0 -7
- package/dist/label/index.d.ts +0 -7
- package/dist/link-box/LinkBox.d.ts +0 -8
- package/dist/link-box/LinkBoxLink.d.ts +0 -8
- package/dist/link-box/LinkBoxRaised.d.ts +0 -9
- package/dist/link-box/index.d.mts +0 -9
- package/dist/link-box/index.d.ts +0 -9
- package/dist/meter/Meter.d.ts +0 -18
- package/dist/meter/MeterContext.d.ts +0 -12
- package/dist/meter/MeterLabel.d.ts +0 -7
- package/dist/meter/MeterTrack.d.ts +0 -7
- package/dist/meter/MeterTrack.styles.d.ts +0 -8
- package/dist/meter/MeterValue.d.ts +0 -9
- package/dist/meter/index.d.mts +0 -13
- package/dist/meter/index.d.ts +0 -13
- package/dist/meter/useIntersectionAnimation.d.ts +0 -26
- package/dist/pagination/Pagination.d.ts +0 -8
- package/dist/pagination/PaginationContext.d.ts +0 -43
- package/dist/pagination/PaginationEllipsis.d.ts +0 -9
- package/dist/pagination/PaginationFirstPageTrigger.d.ts +0 -22
- package/dist/pagination/PaginationItem.d.ts +0 -31
- package/dist/pagination/PaginationLastPageTrigger.d.ts +0 -22
- package/dist/pagination/PaginationNextTrigger.d.ts +0 -22
- package/dist/pagination/PaginationPages.d.ts +0 -16
- package/dist/pagination/PaginationPrevTrigger.d.ts +0 -22
- package/dist/pagination/index.d.mts +0 -18
- package/dist/pagination/index.d.ts +0 -18
- package/dist/pagination/utils.d.ts +0 -1
- package/dist/popover/Popover.d.ts +0 -9
- package/dist/popover/PopoverAnchor.d.ts +0 -9
- package/dist/popover/PopoverArrow.d.ts +0 -9
- package/dist/popover/PopoverCloseButton.d.ts +0 -10
- package/dist/popover/PopoverContent.d.ts +0 -10
- package/dist/popover/PopoverContent.styles.d.ts +0 -9
- package/dist/popover/PopoverContext.d.ts +0 -15
- package/dist/popover/PopoverHeader.d.ts +0 -10
- package/dist/popover/PopoverPortal.d.ts +0 -7
- package/dist/popover/PopoverTrigger.d.ts +0 -9
- package/dist/popover/index.d.mts +0 -17
- package/dist/popover/index.d.ts +0 -17
- package/dist/portal/Portal.d.ts +0 -10
- package/dist/portal/index.d.mts +0 -1
- package/dist/portal/index.d.ts +0 -1
- package/dist/progress/Progress.d.ts +0 -24
- package/dist/progress/ProgressContext.d.ts +0 -13
- package/dist/progress/ProgressIndicator.d.ts +0 -13
- package/dist/progress/ProgressLabel.d.ts +0 -7
- package/dist/progress/ProgressTrack.d.ts +0 -7
- package/dist/progress/ProgressValue.d.ts +0 -7
- package/dist/progress/index.d.mts +0 -13
- package/dist/progress/index.d.ts +0 -13
- package/dist/progress-tracker/ProgressTracker.d.ts +0 -27
- package/dist/progress-tracker/ProgressTracker.styles.d.ts +0 -1
- package/dist/progress-tracker/ProgressTrackerContext.d.ts +0 -15
- package/dist/progress-tracker/ProgressTrackerStep.d.ts +0 -12
- package/dist/progress-tracker/ProgressTrackerStep.styles.d.ts +0 -10
- package/dist/progress-tracker/ProgressTrackerStepIndicator.d.ts +0 -15
- package/dist/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +0 -7
- package/dist/progress-tracker/ProgressTrackerStepLabel.d.ts +0 -9
- package/dist/progress-tracker/index.d.mts +0 -10
- package/dist/progress-tracker/index.d.ts +0 -10
- package/dist/radio-group/Radio.d.ts +0 -9
- package/dist/radio-group/RadioGroup.d.ts +0 -50
- package/dist/radio-group/RadioGroup.styles.d.ts +0 -5
- package/dist/radio-group/RadioGroupContext.d.ts +0 -5
- package/dist/radio-group/RadioGroupProvider.d.ts +0 -7
- package/dist/radio-group/RadioIndicator.d.ts +0 -15
- package/dist/radio-group/RadioIndicator.styles.d.ts +0 -5
- package/dist/radio-group/RadioInput.d.ts +0 -37
- package/dist/radio-group/RadioInput.styles.d.ts +0 -5
- package/dist/radio-group/index.d.mts +0 -7
- package/dist/radio-group/index.d.ts +0 -7
- package/dist/rating/Rating.d.ts +0 -57
- package/dist/rating/RatingStar.d.ts +0 -19
- package/dist/rating/RatingStar.styles.d.ts +0 -14
- package/dist/rating/index.d.mts +0 -1
- package/dist/rating/index.d.ts +0 -1
- package/dist/rating/types.d.ts +0 -2
- package/dist/rating/utils.d.ts +0 -7
- package/dist/rating-display/RatingDisplay.d.ts +0 -31
- package/dist/rating-display/RatingDisplayContext.d.ts +0 -12
- package/dist/rating-display/RatingDisplayCount.d.ts +0 -12
- package/dist/rating-display/RatingDisplayStar.d.ts +0 -16
- package/dist/rating-display/RatingDisplayStars.d.ts +0 -22
- package/dist/rating-display/RatingDisplayValue.d.ts +0 -13
- package/dist/rating-display/index.d.mts +0 -14
- package/dist/rating-display/index.d.ts +0 -14
- package/dist/rating-display/types.d.ts +0 -1
- package/dist/rating-display/utils.d.ts +0 -10
- package/dist/scrolling-list/ScrollingList.d.ts +0 -57
- package/dist/scrolling-list/ScrollingListControls.d.ts +0 -18
- package/dist/scrolling-list/ScrollingListItem.d.ts +0 -17
- package/dist/scrolling-list/ScrollingListItems.d.ts +0 -11
- package/dist/scrolling-list/ScrollingListNextButton.d.ts +0 -5
- package/dist/scrolling-list/ScrollingListPrevButton.d.ts +0 -5
- package/dist/scrolling-list/ScrollingListSkipButton.d.ts +0 -9
- package/dist/scrolling-list/index.d.mts +0 -15
- package/dist/scrolling-list/index.d.ts +0 -15
- package/dist/scrolling-list/useFocusWithinScroll.d.ts +0 -3
- package/dist/segmented-control/SegmentedControl.d.ts +0 -22
- package/dist/segmented-control/SegmentedControl.styles.d.ts +0 -5
- package/dist/segmented-control/SegmentedControlContext.d.ts +0 -7
- package/dist/segmented-control/SegmentedControlIndicator.d.ts +0 -8
- package/dist/segmented-control/SegmentedControlItem.d.ts +0 -18
- package/dist/segmented-control/index.d.mts +0 -10
- package/dist/segmented-control/index.d.ts +0 -10
- package/dist/segmented-gauge/SegmentedGauge.d.ts +0 -66
- package/dist/segmented-gauge/SegmentedGaugeContext.d.ts +0 -14
- package/dist/segmented-gauge/SegmentedGaugeLabel.d.ts +0 -9
- package/dist/segmented-gauge/SegmentedGaugeSegment.d.ts +0 -12
- package/dist/segmented-gauge/SegmentedGaugeTrack.d.ts +0 -8
- package/dist/segmented-gauge/index.d.mts +0 -13
- package/dist/segmented-gauge/index.d.ts +0 -13
- package/dist/select/Select.d.ts +0 -6
- package/dist/select/SelectContext.d.ts +0 -59
- package/dist/select/SelectGroup.d.ts +0 -11
- package/dist/select/SelectItem.d.ts +0 -11
- package/dist/select/SelectItems.d.ts +0 -10
- package/dist/select/SelectItemsGroupContext.d.ts +0 -9
- package/dist/select/SelectLabel.d.ts +0 -8
- package/dist/select/SelectLeadingIcon.d.ts +0 -7
- package/dist/select/SelectPlaceholder.d.ts +0 -10
- package/dist/select/SelectTrigger.d.ts +0 -16
- package/dist/select/SelectTrigger.styles.d.ts +0 -5
- package/dist/select/SelectValue.d.ts +0 -15
- package/dist/select/index.d.mts +0 -21
- package/dist/select/index.d.ts +0 -21
- package/dist/select/types.d.ts +0 -6
- package/dist/select/utils.d.ts +0 -4
- package/dist/skeleton/Skeleton.d.ts +0 -17
- package/dist/skeleton/Skeleton.styles.d.ts +0 -5
- package/dist/skeleton/SkeletonItem.d.ts +0 -31
- package/dist/skeleton/SkeletonItem.styles.d.ts +0 -8
- package/dist/skeleton/index.d.mts +0 -8
- package/dist/skeleton/index.d.ts +0 -8
- package/dist/slider/Slider.d.ts +0 -55
- package/dist/slider/Slider.styles.d.ts +0 -1
- package/dist/slider/SliderContext.d.ts +0 -13
- package/dist/slider/SliderControl.d.ts +0 -7
- package/dist/slider/SliderIndicator.d.ts +0 -7
- package/dist/slider/SliderLabel.d.ts +0 -13
- package/dist/slider/SliderMaxValue.d.ts +0 -6
- package/dist/slider/SliderMinValue.d.ts +0 -6
- package/dist/slider/SliderThumb.d.ts +0 -7
- package/dist/slider/SliderThumb.styles.d.ts +0 -5
- package/dist/slider/SliderThumbContext.d.ts +0 -5
- package/dist/slider/SliderTrack.d.ts +0 -7
- package/dist/slider/SliderTrack.styles.d.ts +0 -6
- package/dist/slider/SliderValue.d.ts +0 -12
- package/dist/slider/index.d.mts +0 -20
- package/dist/slider/index.d.ts +0 -20
- package/dist/slider/useSliderValueBoundaries.d.ts +0 -12
- package/dist/slot/Slot.d.ts +0 -12
- package/dist/slot/index.d.mts +0 -1
- package/dist/slot/index.d.ts +0 -1
- package/dist/snackbar/Snackbar.d.ts +0 -29
- package/dist/snackbar/SnackbarItem.d.ts +0 -49
- package/dist/snackbar/SnackbarItem.styles.d.ts +0 -10
- package/dist/snackbar/SnackbarItemAction.d.ts +0 -10
- package/dist/snackbar/SnackbarItemClose.d.ts +0 -9
- package/dist/snackbar/SnackbarItemContext.d.ts +0 -8
- package/dist/snackbar/SnackbarItemIcon.d.ts +0 -7
- package/dist/snackbar/SnackbarRegion.d.ts +0 -30
- package/dist/snackbar/SnackbarRegion.styles.d.ts +0 -5
- package/dist/snackbar/index.d.mts +0 -13
- package/dist/snackbar/index.d.ts +0 -13
- package/dist/snackbar/snackbarVariants.d.ts +0 -74
- package/dist/snackbar/useSnackbarGlobalStore.d.ts +0 -18
- package/dist/snackbar/useSwipe.d.ts +0 -15
- package/dist/spinner/Spinner.d.ts +0 -9
- package/dist/spinner/Spinner.styles.d.ts +0 -7
- package/dist/spinner/index.d.mts +0 -1
- package/dist/spinner/index.d.ts +0 -1
- package/dist/stepper/Stepper.d.ts +0 -9
- package/dist/stepper/StepperButton.d.ts +0 -14
- package/dist/stepper/StepperInput.d.ts +0 -7
- package/dist/stepper/index.d.mts +0 -9
- package/dist/stepper/index.d.ts +0 -9
- package/dist/stepper/types.d.ts +0 -46
- package/dist/stepper/useStepper.d.ts +0 -2
- package/dist/switch/Switch.d.ts +0 -6
- package/dist/switch/SwitchInput.d.ts +0 -53
- package/dist/switch/SwitchInput.styles.d.ts +0 -16
- package/dist/switch/SwitchLabel.d.ts +0 -17
- package/dist/switch/SwitchLabel.styles.d.ts +0 -5
- package/dist/switch/index.d.mts +0 -1
- package/dist/switch/index.d.ts +0 -1
- package/dist/tabs/Tabs.d.ts +0 -24
- package/dist/tabs/TabsContent.d.ts +0 -22
- package/dist/tabs/TabsContent.styles.d.ts +0 -3
- package/dist/tabs/TabsContext.d.ts +0 -7
- package/dist/tabs/TabsList.d.ts +0 -20
- package/dist/tabs/TabsList.styles.d.ts +0 -3
- package/dist/tabs/TabsPopover.d.ts +0 -29
- package/dist/tabs/TabsPopoverAbstraction.d.ts +0 -27
- package/dist/tabs/TabsRoot.styles.d.ts +0 -1
- package/dist/tabs/TabsTrigger.d.ts +0 -41
- package/dist/tabs/TabsTrigger.styles.d.ts +0 -8
- package/dist/tabs/index.d.mts +0 -13
- package/dist/tabs/index.d.ts +0 -13
- package/dist/tabs/useRenderSlot.d.ts +0 -1
- package/dist/tabs/useResizeObserver.d.ts +0 -8
- package/dist/tag/Tag.d.ts +0 -17
- package/dist/tag/Tag.styles.d.ts +0 -8
- package/dist/tag/index.d.mts +0 -1
- package/dist/tag/index.d.ts +0 -1
- package/dist/tag/variants/filled.d.ts +0 -37
- package/dist/tag/variants/index.d.mts +0 -3
- package/dist/tag/variants/index.d.ts +0 -3
- package/dist/tag/variants/outlined.d.ts +0 -33
- package/dist/tag/variants/tinted.d.ts +0 -33
- package/dist/text-link/TextLink.d.ts +0 -16
- package/dist/text-link/index.d.mts +0 -1
- package/dist/text-link/index.d.ts +0 -1
- package/dist/textarea/Textarea.d.ts +0 -14
- package/dist/textarea/TextareaClearButton.d.ts +0 -10
- package/dist/textarea/TextareaGroup.d.ts +0 -6
- package/dist/textarea/TextareaLeadingIcon.d.ts +0 -7
- package/dist/textarea/TextareaTrailingIcon.d.ts +0 -7
- package/dist/textarea/index.d.mts +0 -14
- package/dist/textarea/index.d.ts +0 -14
- package/dist/toast/Toast.d.ts +0 -4
- package/dist/toast/Toast.styles.d.ts +0 -10
- package/dist/toast/index.d.mts +0 -20
- package/dist/toast/index.d.ts +0 -20
- package/dist/toast/types.d.ts +0 -44
- package/dist/toast/useRenderSlot.d.ts +0 -3
- package/dist/toast/useToastManager.d.ts +0 -2
- package/dist/visually-hidden/VisuallyHidden.d.ts +0 -12
- package/dist/visually-hidden/index.d.mts +0 -1
- package/dist/visually-hidden/index.d.ts +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { RadioIndicatorStylesProps } from './RadioIndicator.styles';
|
|
3
|
-
export interface RadioIndicatorProps extends RadioIndicatorStylesProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
/**
|
|
6
|
-
* Whether to keep the indicator mounted in the DOM when the radio is unchecked.
|
|
7
|
-
* Useful when controlling animation with React animation libraries.
|
|
8
|
-
*/
|
|
9
|
-
keepMounted?: boolean;
|
|
10
|
-
ref?: Ref<HTMLSpanElement>;
|
|
11
|
-
}
|
|
12
|
-
export declare const RadioIndicator: {
|
|
13
|
-
({ intent, className, keepMounted, ref, ...others }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const radioIndicatorStyles: (props?: ({
|
|
3
|
-
intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
|
|
4
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
-
export type RadioIndicatorStylesProps = VariantProps<typeof radioIndicatorStyles>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, Ref } from 'react';
|
|
2
|
-
import { RadioInputVariantsProps } from './RadioInput.styles';
|
|
3
|
-
export interface RadioInputProps extends RadioInputVariantsProps, Omit<HTMLAttributes<HTMLElement>, 'value' | 'onChange'> {
|
|
4
|
-
/**
|
|
5
|
-
* Change the component to the HTML tag or custom component of the only child.
|
|
6
|
-
* Uses Base UI's render prop internally to merge behaviour into the child element.
|
|
7
|
-
*/
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* The value given as data when submitted with a name.
|
|
11
|
-
*/
|
|
12
|
-
value: string;
|
|
13
|
-
/**
|
|
14
|
-
* When true, prevents the user from interacting with the radio item.
|
|
15
|
-
*/
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* When true, indicates that the user must check the radio item before the owning form can be submitted.
|
|
19
|
-
*/
|
|
20
|
-
required?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Ref forwarded to the hidden `<input type="radio">` rendered by Base UI.
|
|
23
|
-
* Useful for programmatic activation (e.g. clicking from an associated label span).
|
|
24
|
-
*/
|
|
25
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
26
|
-
ref?: Ref<HTMLElement>;
|
|
27
|
-
/**
|
|
28
|
-
* When true, the visual radio input (outer ring and inner dot) is visually hidden but remains
|
|
29
|
-
* accessible in the DOM. Useful for custom radio appearances where only the label matters visually.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
hideInput?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare const RadioInput: {
|
|
35
|
-
({ intent: intentProp, className, asChild, children, inputRef, hideInput, ref, ...others }: RadioInputProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
displayName: string;
|
|
37
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const radioInputVariants: (props?: ({
|
|
3
|
-
intent?: "main" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
|
|
4
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
-
export type RadioInputVariantsProps = VariantProps<typeof radioInputVariants>;
|
package/dist/rating/Rating.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
2
|
-
import { RatingValue } from './types';
|
|
3
|
-
export interface RatingProps extends PropsWithChildren<ComponentPropsWithRef<'div'>> {
|
|
4
|
-
/**
|
|
5
|
-
* Use the `defaultValue` prop to set the default value of the input, on a from 0 to 5.
|
|
6
|
-
*
|
|
7
|
-
* Use this when you want to use it in an uncontrolled manner
|
|
8
|
-
*/
|
|
9
|
-
defaultValue?: RatingValue;
|
|
10
|
-
/**
|
|
11
|
-
* The value is the number of the rating selected, on a scale from 0 to 5.
|
|
12
|
-
*
|
|
13
|
-
* Use this when you want to use it in a controlled manner,
|
|
14
|
-
* in conjunction with the `onValueChange` prop
|
|
15
|
-
*/
|
|
16
|
-
value?: RatingValue;
|
|
17
|
-
/**
|
|
18
|
-
* Event handler called when the value changes.
|
|
19
|
-
*/
|
|
20
|
-
onValueChange?: (value: RatingValue) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the component as interactive or not.
|
|
23
|
-
* @default undefined
|
|
24
|
-
*/
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* When `true`, prevents the user from interacting.
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* When true, indicates that the user must select a rating before form submission.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
required?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Name of the underlying hidden input (for form submission).
|
|
38
|
-
* @default undefined
|
|
39
|
-
*/
|
|
40
|
-
name?: string;
|
|
41
|
-
/**
|
|
42
|
-
* id of the underlying hidden input.
|
|
43
|
-
* @default undefined
|
|
44
|
-
*/
|
|
45
|
-
id?: string;
|
|
46
|
-
/**
|
|
47
|
-
* aria-label of the radiogroup.
|
|
48
|
-
* @default undefined
|
|
49
|
-
*/
|
|
50
|
-
'aria-label'?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Returns the aria-label applied to each radio star.
|
|
53
|
-
* Defaults to `${aria-label} ${index + 1}`.
|
|
54
|
-
*/
|
|
55
|
-
getStarLabel?: (index: number) => string;
|
|
56
|
-
}
|
|
57
|
-
export declare const Rating: ({ defaultValue, value: propValue, onValueChange, disabled, readOnly, required: requiredProp, name, id, "aria-label": ariaLabel, getStarLabel, ref, ...rest }: RatingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { KeyboardEvent, MouseEvent, PropsWithChildren, Ref } from 'react';
|
|
2
|
-
import { RatingStarIconStylesProps, RatingStarstylesProps } from './RatingStar.styles';
|
|
3
|
-
import { StarValue } from './types';
|
|
4
|
-
export interface RatingStarProps extends PropsWithChildren<RatingStarstylesProps>, RatingStarIconStylesProps {
|
|
5
|
-
value: StarValue;
|
|
6
|
-
/** Whether this radio option is selected (for radiogroup pattern). */
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
/** Accessible name for the radio (e.g. "one star", "two stars"). */
|
|
9
|
-
ariaLabel?: string;
|
|
10
|
-
/** Accessible ids used to compose the radio name. */
|
|
11
|
-
ariaLabelledBy?: string;
|
|
12
|
-
/** Tab index for roving tabindex (0 or -1). */
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
15
|
-
onKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
16
|
-
onMouseEnter?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
17
|
-
ref?: Ref<HTMLDivElement>;
|
|
18
|
-
}
|
|
19
|
-
export declare const RatingStar: ({ value, size, disabled, readOnly, checked, ariaLabel, ariaLabelledBy, tabIndex, onClick, onKeyDown, onMouseEnter, children, ref: forwardedRef, }: RatingStarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
declare const ratingStarStyles: (props?: ({
|
|
3
|
-
disabled?: boolean | null | undefined;
|
|
4
|
-
readOnly?: boolean | null | undefined;
|
|
5
|
-
gap?: "sm" | "md" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare const ratingStarIconStyles: (props?: ({
|
|
8
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
-
design?: "filled" | "outlined" | null | undefined;
|
|
10
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
-
type RatingStarstylesProps = Omit<VariantProps<typeof ratingStarStyles>, 'gap'>;
|
|
12
|
-
type RatingStarIconStylesProps = Omit<VariantProps<typeof ratingStarIconStyles>, 'design'>;
|
|
13
|
-
export { ratingStarStyles, ratingStarIconStyles };
|
|
14
|
-
export type { RatingStarstylesProps, RatingStarIconStylesProps };
|
package/dist/rating/index.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Rating, type RatingProps } from './Rating';
|
package/dist/rating/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Rating, type RatingProps } from './Rating';
|
package/dist/rating/types.d.ts
DELETED
package/dist/rating/utils.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
2
|
-
import { RatingDisplayStarProps } from './RatingDisplayStar';
|
|
3
|
-
export interface RatingDisplayProps extends PropsWithChildren<ComponentPropsWithRef<'div'>> {
|
|
4
|
-
/**
|
|
5
|
-
* When true, merges props onto the single child element instead of rendering a div.
|
|
6
|
-
* Use to render the root as a link or another custom element.
|
|
7
|
-
*/
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* The rating value to display, on a scale from 0 to 5.
|
|
11
|
-
*/
|
|
12
|
-
value?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Sets the size of the stars.
|
|
15
|
-
* @default 'md'
|
|
16
|
-
*/
|
|
17
|
-
size?: RatingDisplayStarProps['size'];
|
|
18
|
-
/**
|
|
19
|
-
* Optional count value available to `RatingDisplay.Count`.
|
|
20
|
-
*/
|
|
21
|
-
count?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Accessible description of the rating content.
|
|
24
|
-
*/
|
|
25
|
-
'aria-label': string;
|
|
26
|
-
}
|
|
27
|
-
export type RatingDisplayRootProps = RatingDisplayProps;
|
|
28
|
-
export declare const RatingDisplay: {
|
|
29
|
-
({ value, size, count, asChild, ref, children, ...rest }: RatingDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { RatingDisplayStarProps } from './RatingDisplayStar';
|
|
3
|
-
interface RatingDisplayContextValue {
|
|
4
|
-
value: number;
|
|
5
|
-
size: RatingDisplayStarProps['size'];
|
|
6
|
-
count?: number;
|
|
7
|
-
}
|
|
8
|
-
interface RatingDisplayProviderProps extends PropsWithChildren<RatingDisplayContextValue> {
|
|
9
|
-
}
|
|
10
|
-
export declare const RatingDisplayProvider: ({ value, size, count, children, }: RatingDisplayProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const useRatingDisplay: () => RatingDisplayContextValue;
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export interface RatingDisplayCountProps extends Omit<ComponentPropsWithRef<'span'>, 'children'> {
|
|
3
|
-
/**
|
|
4
|
-
* Custom count content.
|
|
5
|
-
* Pass a render function to receive the count value and return the content to render.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode | ((count: number) => ReactNode);
|
|
8
|
-
}
|
|
9
|
-
export declare const RatingDisplayCount: {
|
|
10
|
-
({ className, children, ...rest }: RatingDisplayCountProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { StarValue } from './types';
|
|
3
|
-
declare const ratingDisplayStarStyles: (props?: ({
|
|
4
|
-
gap?: "sm" | "md" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
declare const ratingDisplayStarIconStyles: (props?: ({
|
|
7
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8
|
-
design?: "filled" | "outlined" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
type RatingDisplayStarstylesProps = Omit<VariantProps<typeof ratingDisplayStarStyles>, never>;
|
|
11
|
-
type RatingDisplayStarIconStylesProps = Omit<VariantProps<typeof ratingDisplayStarIconStyles>, 'design'>;
|
|
12
|
-
export interface RatingDisplayStarProps extends RatingDisplayStarstylesProps, RatingDisplayStarIconStylesProps {
|
|
13
|
-
value: StarValue;
|
|
14
|
-
}
|
|
15
|
-
export declare const RatingDisplayStar: ({ value, size }: RatingDisplayStarProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { RatingDisplayStarProps } from './RatingDisplayStar';
|
|
2
|
-
import { StarValue } from './types';
|
|
3
|
-
export interface RatingDisplayStarsProps {
|
|
4
|
-
size?: RatingDisplayStarProps['size'];
|
|
5
|
-
/**
|
|
6
|
-
* Sets the rendering mode for stars.
|
|
7
|
-
* @default 'default'
|
|
8
|
-
*/
|
|
9
|
-
variant?: 'default' | 'single-star';
|
|
10
|
-
/**
|
|
11
|
-
* Custom fill algorithm for each star.
|
|
12
|
-
* By default, stars are rounded to the nearest 0.5.
|
|
13
|
-
*/
|
|
14
|
-
getFillMode?: ({ value, index }: {
|
|
15
|
-
value?: number;
|
|
16
|
-
index: number;
|
|
17
|
-
}) => StarValue;
|
|
18
|
-
}
|
|
19
|
-
export declare const RatingDisplayStars: {
|
|
20
|
-
({ size, variant, getFillMode, }: RatingDisplayStarsProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export interface RatingDisplayValueProps extends Omit<ComponentPropsWithRef<'span'>, 'children'> {
|
|
3
|
-
/**
|
|
4
|
-
* Custom value content.
|
|
5
|
-
* Pass a render function to receive the formatted value (first arg) and raw value (second arg),
|
|
6
|
-
* then return the content to render.
|
|
7
|
-
*/
|
|
8
|
-
children?: ReactNode | ((formattedValue: string, value: number) => ReactNode);
|
|
9
|
-
}
|
|
10
|
-
export declare const RatingDisplayValue: {
|
|
11
|
-
({ className, children, ...rest }: RatingDisplayValueProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RatingDisplay as Root } from './RatingDisplay';
|
|
2
|
-
import { RatingDisplayCount as Count } from './RatingDisplayCount';
|
|
3
|
-
import { RatingDisplayStars as Stars } from './RatingDisplayStars';
|
|
4
|
-
import { RatingDisplayValue as Value } from './RatingDisplayValue';
|
|
5
|
-
export declare const RatingDisplay: typeof Root & {
|
|
6
|
-
Stars: typeof Stars;
|
|
7
|
-
Value: typeof Value;
|
|
8
|
-
Count: typeof Count;
|
|
9
|
-
};
|
|
10
|
-
export { type RatingDisplayProps, type RatingDisplayRootProps } from './RatingDisplay';
|
|
11
|
-
export { type RatingDisplayStarsProps } from './RatingDisplayStars';
|
|
12
|
-
export { type RatingDisplayValueProps } from './RatingDisplayValue';
|
|
13
|
-
export { type RatingDisplayCountProps } from './RatingDisplayCount';
|
|
14
|
-
export type { StarValue } from './types';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RatingDisplay as Root } from './RatingDisplay';
|
|
2
|
-
import { RatingDisplayCount as Count } from './RatingDisplayCount';
|
|
3
|
-
import { RatingDisplayStars as Stars } from './RatingDisplayStars';
|
|
4
|
-
import { RatingDisplayValue as Value } from './RatingDisplayValue';
|
|
5
|
-
export declare const RatingDisplay: typeof Root & {
|
|
6
|
-
Stars: typeof Stars;
|
|
7
|
-
Value: typeof Value;
|
|
8
|
-
Count: typeof Count;
|
|
9
|
-
};
|
|
10
|
-
export { type RatingDisplayProps, type RatingDisplayRootProps } from './RatingDisplay';
|
|
11
|
-
export { type RatingDisplayStarsProps } from './RatingDisplayStars';
|
|
12
|
-
export { type RatingDisplayValueProps } from './RatingDisplayValue';
|
|
13
|
-
export { type RatingDisplayCountProps } from './RatingDisplayCount';
|
|
14
|
-
export type { StarValue } from './types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type StarValue = 0 | 0.5 | 1;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StarValue } from './types';
|
|
2
|
-
declare function getNearestHalfDecimal(num: number): number;
|
|
3
|
-
declare function formatRatingValue(value: number): string;
|
|
4
|
-
declare function getStarValue({ value, index }: {
|
|
5
|
-
value?: number;
|
|
6
|
-
index: number;
|
|
7
|
-
}): StarValue;
|
|
8
|
-
declare function getSingleStarValue(value?: number): StarValue;
|
|
9
|
-
declare function splitAt<T>(arr: T[], index: number): [T[], T[]];
|
|
10
|
-
export { formatRatingValue, getNearestHalfDecimal, getSingleStarValue, getStarValue, splitAt };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ScrollOverflow } from '../../../hooks/src/use-scroll-overflow';
|
|
2
|
-
import { ComponentPropsWithRef, ReactNode, RefObject } from 'react';
|
|
3
|
-
import { SnapCarouselResult } from 'react-snap-carousel';
|
|
4
|
-
type SnapType = 'mandatory' | 'proximity' | 'none';
|
|
5
|
-
type ScrollBehavior = 'smooth' | 'instant';
|
|
6
|
-
type SnapStop = 'normal' | 'always';
|
|
7
|
-
interface Props extends ComponentPropsWithRef<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* CSS scroll snap behavior.
|
|
10
|
-
* - `mandatory` to force snapping on each "page".
|
|
11
|
-
* - `proximity` to force snapping only when scroll position is near the edge of a "page". Behavior can change depending on each browser.
|
|
12
|
-
* - `none` to disabled scroll snapping.
|
|
13
|
-
*/
|
|
14
|
-
snapType?: SnapType;
|
|
15
|
-
/**
|
|
16
|
-
* Defines whether or not the scroll container is allowed to "pass over" possible snap positions.
|
|
17
|
-
*/
|
|
18
|
-
snapStop?: SnapStop;
|
|
19
|
-
scrollBehavior?: ScrollBehavior;
|
|
20
|
-
/**
|
|
21
|
-
* Add a fade effect to indicate content overflow.
|
|
22
|
-
*/
|
|
23
|
-
withFade?: boolean;
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* When `true`, allow previous and next buttons to be used when reaching the edges of the list.
|
|
27
|
-
*/
|
|
28
|
-
loop?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Space (in pixels) between items.
|
|
31
|
-
*/
|
|
32
|
-
gap?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Offset (in pixels) of the left of the optimal viewing region of the list.
|
|
35
|
-
*/
|
|
36
|
-
scrollPadding?: number;
|
|
37
|
-
className?: string;
|
|
38
|
-
}
|
|
39
|
-
interface ScrollingListContextState extends SnapCarouselResult {
|
|
40
|
-
snapType: SnapType;
|
|
41
|
-
snapStop: SnapStop;
|
|
42
|
-
scrollBehavior: ScrollBehavior;
|
|
43
|
-
visibleItemsRange: readonly [number, number];
|
|
44
|
-
loop: boolean;
|
|
45
|
-
gap: number;
|
|
46
|
-
withFade: boolean;
|
|
47
|
-
scrollPadding: number;
|
|
48
|
-
scrollAreaRef: RefObject<HTMLDivElement | null>;
|
|
49
|
-
overflow: ScrollOverflow;
|
|
50
|
-
skipKeyboardNavigation: () => void;
|
|
51
|
-
}
|
|
52
|
-
export declare const ScrollingListContext: import('react').Context<ScrollingListContextState>;
|
|
53
|
-
export declare const ScrollingList: {
|
|
54
|
-
({ snapType, snapStop, scrollBehavior, loop, gap, withFade, scrollPadding, children, className, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
displayName: string;
|
|
56
|
-
};
|
|
57
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
interface ScrollingListControls extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
-
/**
|
|
4
|
-
* Visibility behavior of the control buttons:
|
|
5
|
-
* - `always`: buttons are always visible.
|
|
6
|
-
* - `hover`: buttons only appear on hover.
|
|
7
|
-
*
|
|
8
|
-
* a11y: `hover` is dangerous for accessibility as it disabled controls for touch screen users.
|
|
9
|
-
* When using it, you must provide an alternative control outside of the list to replace them.
|
|
10
|
-
*/
|
|
11
|
-
visibility?: 'hover' | 'always';
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare const ScrollingListControls: {
|
|
15
|
-
({ children, visibility, className, ...rest }: ScrollingListControls): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
export interface ScrollingListItemProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
-
/**
|
|
4
|
-
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
5
|
-
*/
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* DO NOT USE. This prop is automatically managed by the parent ScrollingList.ListItems
|
|
10
|
-
*/
|
|
11
|
-
index?: number;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const ScrollingListItem: {
|
|
15
|
-
({ asChild, children, index, className, ...rest }: ScrollingListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode, Ref } from 'react';
|
|
2
|
-
interface Props extends ComponentPropsWithRef<'div'> {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function mergeRefs<T>(...refs: (Ref<T> | undefined | null)[]): Ref<T>;
|
|
7
|
-
export declare const ScrollingListItems: {
|
|
8
|
-
({ children, ref, className, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
interface Props extends ComponentPropsWithoutRef<'button'> {
|
|
3
|
-
children: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const ScrollingListSkipButton: {
|
|
6
|
-
({ children, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ScrollingList as Root } from './ScrollingList';
|
|
2
|
-
import { ScrollingListControls as Controls } from './ScrollingListControls';
|
|
3
|
-
import { ScrollingListItem as Item } from './ScrollingListItem';
|
|
4
|
-
import { ScrollingListItems as Items } from './ScrollingListItems';
|
|
5
|
-
import { ScrollingListNextButton as NextButton } from './ScrollingListNextButton';
|
|
6
|
-
import { ScrollingListPrevButton as PrevButton } from './ScrollingListPrevButton';
|
|
7
|
-
import { ScrollingListSkipButton as SkipButton } from './ScrollingListSkipButton';
|
|
8
|
-
export declare const ScrollingList: typeof Root & {
|
|
9
|
-
Controls: typeof Controls;
|
|
10
|
-
NextButton: typeof NextButton;
|
|
11
|
-
PrevButton: typeof PrevButton;
|
|
12
|
-
Item: typeof Item;
|
|
13
|
-
Items: typeof Items;
|
|
14
|
-
SkipButton: typeof SkipButton;
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ScrollingList as Root } from './ScrollingList';
|
|
2
|
-
import { ScrollingListControls as Controls } from './ScrollingListControls';
|
|
3
|
-
import { ScrollingListItem as Item } from './ScrollingListItem';
|
|
4
|
-
import { ScrollingListItems as Items } from './ScrollingListItems';
|
|
5
|
-
import { ScrollingListNextButton as NextButton } from './ScrollingListNextButton';
|
|
6
|
-
import { ScrollingListPrevButton as PrevButton } from './ScrollingListPrevButton';
|
|
7
|
-
import { ScrollingListSkipButton as SkipButton } from './ScrollingListSkipButton';
|
|
8
|
-
export declare const ScrollingList: typeof Root & {
|
|
9
|
-
Controls: typeof Controls;
|
|
10
|
-
NextButton: typeof NextButton;
|
|
11
|
-
PrevButton: typeof PrevButton;
|
|
12
|
-
Item: typeof Item;
|
|
13
|
-
Items: typeof Items;
|
|
14
|
-
SkipButton: typeof SkipButton;
|
|
15
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
2
|
-
import { ComponentProps, Ref } from 'react';
|
|
3
|
-
import { SegmentedControlStylesProps } from './SegmentedControl.styles';
|
|
4
|
-
export interface SegmentedControlProps extends Omit<ComponentProps<typeof RadioGroup>, 'value' | 'defaultValue' | 'onValueChange'>, SegmentedControlStylesProps {
|
|
5
|
-
/**
|
|
6
|
-
* The controlled selected value.
|
|
7
|
-
*/
|
|
8
|
-
value?: string;
|
|
9
|
-
/**
|
|
10
|
-
* The uncontrolled default selected value.
|
|
11
|
-
*/
|
|
12
|
-
defaultValue?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Callback fired when the selected value changes.
|
|
15
|
-
*/
|
|
16
|
-
onValueChange?: (value: string) => void;
|
|
17
|
-
ref?: Ref<HTMLDivElement>;
|
|
18
|
-
}
|
|
19
|
-
export declare const SegmentedControl: {
|
|
20
|
-
({ value, defaultValue, onValueChange, className, children, ref, ...rest }: SegmentedControlProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const rootStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
|
-
export declare const itemStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
4
|
-
export declare const indicatorStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
5
|
-
export type SegmentedControlStylesProps = VariantProps<typeof itemStyles>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export interface SegmentedControlContextInterface {
|
|
3
|
-
checkedValue: string | null;
|
|
4
|
-
containerRef: RefObject<HTMLDivElement | null>;
|
|
5
|
-
}
|
|
6
|
-
export declare const SegmentedControlContext: import('react').Context<SegmentedControlContextInterface>;
|
|
7
|
-
export declare const useSegmentedControlContext: () => SegmentedControlContextInterface;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, Ref } from 'react';
|
|
2
|
-
export interface SegmentedControlIndicatorProps extends ComponentProps<'span'> {
|
|
3
|
-
ref?: Ref<HTMLSpanElement>;
|
|
4
|
-
}
|
|
5
|
-
export declare const SegmentedControlIndicator: {
|
|
6
|
-
({ className, ref, ...rest }: SegmentedControlIndicatorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Radio } from '@base-ui/react/radio';
|
|
2
|
-
import { ComponentProps, Ref } from 'react';
|
|
3
|
-
export interface SegmentedControlItemProps extends Omit<ComponentProps<typeof Radio.Root>, 'value'> {
|
|
4
|
-
/**
|
|
5
|
-
* A unique value that identifies this item within the segmented control.
|
|
6
|
-
*/
|
|
7
|
-
value: string;
|
|
8
|
-
/**
|
|
9
|
-
* When true, prevents the user from interacting with this item.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
ref?: Ref<HTMLElement>;
|
|
14
|
-
}
|
|
15
|
-
export declare const SegmentedControlItem: {
|
|
16
|
-
({ value, disabled, children, className, ref, ...rest }: SegmentedControlItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SegmentedControl as Root } from './SegmentedControl';
|
|
2
|
-
import { SegmentedControlIndicator as Indicator } from './SegmentedControlIndicator';
|
|
3
|
-
import { SegmentedControlItem as Item } from './SegmentedControlItem';
|
|
4
|
-
export declare const SegmentedControl: typeof Root & {
|
|
5
|
-
Item: typeof Item;
|
|
6
|
-
Indicator: typeof Indicator;
|
|
7
|
-
};
|
|
8
|
-
export type { SegmentedControlProps } from './SegmentedControl';
|
|
9
|
-
export type { SegmentedControlItemProps } from './SegmentedControlItem';
|
|
10
|
-
export type { SegmentedControlIndicatorProps } from './SegmentedControlIndicator';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SegmentedControl as Root } from './SegmentedControl';
|
|
2
|
-
import { SegmentedControlIndicator as Indicator } from './SegmentedControlIndicator';
|
|
3
|
-
import { SegmentedControlItem as Item } from './SegmentedControlItem';
|
|
4
|
-
export declare const SegmentedControl: typeof Root & {
|
|
5
|
-
Item: typeof Item;
|
|
6
|
-
Indicator: typeof Indicator;
|
|
7
|
-
};
|
|
8
|
-
export type { SegmentedControlProps } from './SegmentedControl';
|
|
9
|
-
export type { SegmentedControlItemProps } from './SegmentedControlItem';
|
|
10
|
-
export type { SegmentedControlIndicatorProps } from './SegmentedControlIndicator';
|