@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,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper function to simulate file upload in tests.
|
|
3
|
-
* Use this instead of userEvent.upload for file inputs, as userEvent.upload
|
|
4
|
-
* doesn't work correctly in this test environment.
|
|
5
|
-
*
|
|
6
|
-
* @param input - The file input element
|
|
7
|
-
* @param files - Single file or array of files to upload
|
|
8
|
-
*/
|
|
9
|
-
export declare const uploadFiles: (input: HTMLInputElement, files: File | File[]) => void;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { FILE_UPLOAD_ERRORS } from './constants';
|
|
2
|
-
export type FileUploadFileError = typeof FILE_UPLOAD_ERRORS.TOO_MANY_FILES | typeof FILE_UPLOAD_ERRORS.FILE_INVALID_TYPE | typeof FILE_UPLOAD_ERRORS.FILE_TOO_LARGE | typeof FILE_UPLOAD_ERRORS.FILE_TOO_SMALL | typeof FILE_UPLOAD_ERRORS.FILE_INVALID | typeof FILE_UPLOAD_ERRORS.FILE_EXISTS;
|
|
3
|
-
export interface RejectedFile {
|
|
4
|
-
file: File;
|
|
5
|
-
errors: FileUploadFileError[];
|
|
6
|
-
}
|
|
7
|
-
export interface FileAcceptDetails {
|
|
8
|
-
files: File[];
|
|
9
|
-
}
|
|
10
|
-
export interface FileRejectDetails {
|
|
11
|
-
files: RejectedFile[];
|
|
12
|
-
}
|
|
13
|
-
export interface FileChangeDetails {
|
|
14
|
-
acceptedFiles: File[];
|
|
15
|
-
rejectedFiles: RejectedFile[];
|
|
16
|
-
}
|
|
17
|
-
export interface UseFileUploadStateProps {
|
|
18
|
-
/**
|
|
19
|
-
* Initial files to display when the component mounts (uncontrolled mode)
|
|
20
|
-
*/
|
|
21
|
-
defaultValue?: File[];
|
|
22
|
-
/**
|
|
23
|
-
* Controlled files value (controlled mode)
|
|
24
|
-
* When provided, the component becomes controlled
|
|
25
|
-
*/
|
|
26
|
-
value?: File[];
|
|
27
|
-
/**
|
|
28
|
-
* Callback when files are accepted
|
|
29
|
-
*/
|
|
30
|
-
onFileAccept?: (details: FileAcceptDetails) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Callback when files are rejected
|
|
33
|
-
*/
|
|
34
|
-
onFileReject?: (details: FileRejectDetails) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Callback when files change (both accepted and rejected)
|
|
37
|
-
* For controlled mode, use this to update the value prop by extracting details.acceptedFiles
|
|
38
|
-
*/
|
|
39
|
-
onFileChange?: (details: FileChangeDetails) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Whether multiple files can be selected
|
|
42
|
-
* @default true
|
|
43
|
-
*/
|
|
44
|
-
multiple?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Comma-separated list of accepted file types
|
|
47
|
-
*/
|
|
48
|
-
accept?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Maximum number of files that can be uploaded
|
|
51
|
-
*/
|
|
52
|
-
maxFiles?: number;
|
|
53
|
-
/**
|
|
54
|
-
* Maximum file size in bytes
|
|
55
|
-
*/
|
|
56
|
-
maxFileSize?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Minimum file size in bytes
|
|
59
|
-
*/
|
|
60
|
-
minFileSize?: number;
|
|
61
|
-
/**
|
|
62
|
-
* When `true`, prevents the user from interacting with the file upload
|
|
63
|
-
*/
|
|
64
|
-
disabled?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* When `true`, sets the file upload to read-only mode
|
|
67
|
-
*/
|
|
68
|
-
readOnly?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* The [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt) language code for the locale.
|
|
71
|
-
* Used for formatting file sizes and error messages.
|
|
72
|
-
*/
|
|
73
|
-
locale?: string;
|
|
74
|
-
}
|
|
75
|
-
export interface UseFileUploadStateReturn {
|
|
76
|
-
files: File[];
|
|
77
|
-
rejectedFiles: RejectedFile[];
|
|
78
|
-
addFiles: (files: File[]) => void;
|
|
79
|
-
removeFile: (index: number) => void;
|
|
80
|
-
removeRejectedFile: (index: number) => void;
|
|
81
|
-
clearFiles: () => void;
|
|
82
|
-
clearRejectedFiles: () => void;
|
|
83
|
-
maxFilesReached: boolean;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Hook that manages file upload state, validation, and file operations
|
|
87
|
-
*/
|
|
88
|
-
export declare function useFileUploadState({ defaultValue, value: controlledValue, onFileAccept, onFileReject, onFileChange, multiple, accept, maxFiles, maxFileSize, minFileSize, disabled, readOnly, locale, }: UseFileUploadStateProps): UseFileUploadStateReturn;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ReactElement, RefObject } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Validates if a file matches the accept patterns
|
|
4
|
-
* Supports MIME types (e.g., "image/*", "image/png", "application/pdf")
|
|
5
|
-
* and file extensions (e.g., ".pdf", ".doc", ".jpg")
|
|
6
|
-
*/
|
|
7
|
-
export declare function validateFileAccept(file: File, accept: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Validates if a file size is within the allowed range
|
|
10
|
-
* @param file - The file to validate
|
|
11
|
-
* @param minFileSize - Minimum file size in bytes
|
|
12
|
-
* @param maxFileSize - Maximum file size in bytes
|
|
13
|
-
* @param locale - Locale code for error messages. Defaults to browser locale or 'en'
|
|
14
|
-
* @returns Object with validation result and error message if invalid
|
|
15
|
-
*/
|
|
16
|
-
export declare function validateFileSize(file: File, minFileSize?: number, maxFileSize?: number, locale?: string): {
|
|
17
|
-
valid: boolean;
|
|
18
|
-
error?: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Formats file size in bytes to human-readable format
|
|
22
|
-
* @param bytes - File size in bytes
|
|
23
|
-
* @param locale - Locale code (e.g., 'en', 'fr'). Defaults to browser locale or 'en'
|
|
24
|
-
* @returns Formatted file size string with appropriate unit
|
|
25
|
-
*/
|
|
26
|
-
export declare function formatFileSize(bytes: number, locale?: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* Returns the appropriate icon component based on the file type
|
|
29
|
-
* @param file - The file to get the icon for
|
|
30
|
-
* @returns React element representing the icon component
|
|
31
|
-
*/
|
|
32
|
-
export declare function getFileIcon(file: File): ReactElement;
|
|
33
|
-
/**
|
|
34
|
-
* Finds the first focusable element from a list of candidates
|
|
35
|
-
* Falls back to inputRef if no other element is focusable
|
|
36
|
-
* @param candidates - Array of candidate elements to check
|
|
37
|
-
* @param inputRef - Input element to use as last resort
|
|
38
|
-
* @returns The first focusable element, or null if none found
|
|
39
|
-
*/
|
|
40
|
-
export declare function findFocusableElement(candidates: (HTMLElement | null)[], inputRef: RefObject<HTMLInputElement | null>): HTMLElement | null;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
-
import { FormFieldContextState } from './FormFieldContext';
|
|
3
|
-
export interface FormFieldProps extends ComponentPropsWithoutRef<'div'>, Pick<FormFieldContextState, 'name' | 'state' | 'isRequired'> {
|
|
4
|
-
/**
|
|
5
|
-
* Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
6
|
-
*/
|
|
7
|
-
asChild?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* When `true`, prevents the user from interacting.
|
|
10
|
-
*/
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Sets the component as interactive or not.
|
|
14
|
-
*/
|
|
15
|
-
readOnly?: boolean;
|
|
16
|
-
ref?: Ref<HTMLDivElement>;
|
|
17
|
-
}
|
|
18
|
-
export declare const FormField: {
|
|
19
|
-
({ className, disabled, readOnly, name, state, isRequired, asChild, ref, ...others }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { FormFieldStateMessageProps } from './FormFieldStateMessage';
|
|
3
|
-
export type FormFieldAlertMessageProps = Omit<FormFieldStateMessageProps, 'state'> & {
|
|
4
|
-
ref?: Ref<HTMLSpanElement>;
|
|
5
|
-
};
|
|
6
|
-
export declare const FormFieldAlertMessage: {
|
|
7
|
-
({ ref, ...props }: FormFieldAlertMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
-
export type FormFieldCharactersCountProps = ComponentPropsWithoutRef<'span'> & {
|
|
3
|
-
/**
|
|
4
|
-
* This description is for the screen reader, read when the input is focused.
|
|
5
|
-
*/
|
|
6
|
-
description?: string;
|
|
7
|
-
/**
|
|
8
|
-
* The live announcement is for the screen read after a delay once the input value changes.
|
|
9
|
-
*/
|
|
10
|
-
liveAnnouncement?: ({ remainingChars }: {
|
|
11
|
-
remainingChars: number;
|
|
12
|
-
}) => string;
|
|
13
|
-
/**
|
|
14
|
-
* Current value for the input this component belongs to.
|
|
15
|
-
*/
|
|
16
|
-
value?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Maximum numeric value to be displayed.
|
|
19
|
-
*/
|
|
20
|
-
maxLength: number;
|
|
21
|
-
ref?: Ref<HTMLSpanElement>;
|
|
22
|
-
};
|
|
23
|
-
export declare const FormFieldCharactersCount: {
|
|
24
|
-
({ className, value, maxLength, description, liveAnnouncement, ref, ...others }: FormFieldCharactersCountProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
displayName: string;
|
|
26
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface FormFieldContextState {
|
|
2
|
-
/**
|
|
3
|
-
* Generated id for the input component.
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
6
|
-
/**
|
|
7
|
-
* Generated id for the label component.
|
|
8
|
-
*/
|
|
9
|
-
labelId?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the input. Submitted with its owning form as part of a name/value pair.
|
|
12
|
-
*/
|
|
13
|
-
name?: string;
|
|
14
|
-
/**
|
|
15
|
-
* A set of ids separated by a space used to describe the input component given by a set of messages.
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Disables the field and its associated input
|
|
20
|
-
*/
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Marks the field and its associated input as read only
|
|
24
|
-
*/
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* The validation state of the input.
|
|
28
|
-
*/
|
|
29
|
-
state?: 'error' | 'success' | 'alert';
|
|
30
|
-
/**
|
|
31
|
-
* If true, the form field will be invalid.
|
|
32
|
-
*/
|
|
33
|
-
isInvalid?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If true, the form field will be required.
|
|
36
|
-
*/
|
|
37
|
-
isRequired?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Callback used to store a descriptive message.
|
|
40
|
-
*/
|
|
41
|
-
onMessageIdAdd: (id: string) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Callback used to remove a descriptive message.
|
|
44
|
-
*/
|
|
45
|
-
onMessageIdRemove: (id: string) => void;
|
|
46
|
-
}
|
|
47
|
-
export declare const FormFieldContext: import('react').Context<FormFieldContextState | null>;
|
|
48
|
-
export declare const ID_PREFIX = ":form-field";
|
|
49
|
-
export declare const useFormField: () => FormFieldContextState;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FormFieldContextState } from './FormFieldContext';
|
|
3
|
-
type State = Partial<Pick<FormFieldContextState, 'id' | 'name' | 'description' | 'labelId' | 'disabled' | 'readOnly' | 'state' | 'isInvalid' | 'isRequired'>>;
|
|
4
|
-
export interface FormFieldControlProps {
|
|
5
|
-
children: (state: State) => ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const useFormFieldControl: () => State;
|
|
8
|
-
export declare const FormFieldControl: {
|
|
9
|
-
({ children }: FormFieldControlProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { FormFieldStateMessageProps } from './FormFieldStateMessage';
|
|
3
|
-
export type FormFieldErrorMessageProps = Omit<FormFieldStateMessageProps, 'state'> & {
|
|
4
|
-
ref?: Ref<HTMLSpanElement>;
|
|
5
|
-
};
|
|
6
|
-
export declare const FormFieldErrorMessage: {
|
|
7
|
-
({ ref, ...props }: FormFieldErrorMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { FormFieldMessageProps } from './FormFieldMessage';
|
|
3
|
-
export type FormFieldHelperMessageProps = FormFieldMessageProps & {
|
|
4
|
-
ref?: Ref<HTMLSpanElement>;
|
|
5
|
-
};
|
|
6
|
-
export declare const FormFieldHelperMessage: {
|
|
7
|
-
({ className, ref, ...others }: FormFieldHelperMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode, Ref } from 'react';
|
|
2
|
-
import { LabelProps } from '../label';
|
|
3
|
-
export interface FormFieldLabelProps extends LabelProps {
|
|
4
|
-
/**
|
|
5
|
-
* Element shown when the input is required inside the label.
|
|
6
|
-
*/
|
|
7
|
-
requiredIndicator?: ReactNode;
|
|
8
|
-
ref?: Ref<HTMLLabelElement>;
|
|
9
|
-
}
|
|
10
|
-
export declare const FormFieldLabel: {
|
|
11
|
-
({ htmlFor: htmlForProp, className, children, requiredIndicator, asChild, ref, ...others }: FormFieldLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
-
export type FormFieldMessageProps = ComponentPropsWithoutRef<'span'> & {
|
|
3
|
-
ref?: Ref<HTMLSpanElement>;
|
|
4
|
-
};
|
|
5
|
-
export declare const FormFieldMessage: {
|
|
6
|
-
({ id: idProp, className, ref, ...others }: FormFieldMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FormFieldContextState } from './FormFieldContext';
|
|
3
|
-
export interface FormFieldProviderProps extends Pick<FormFieldContextState, 'id' | 'name' | 'disabled' | 'readOnly' | 'state' | 'isRequired'> {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const FormFieldProvider: {
|
|
7
|
-
({ id, name, disabled, readOnly, state, isRequired, children, }: FormFieldProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { LabelRequiredIndicatorProps } from '../label';
|
|
3
|
-
export type FormFieldRequiredIndicatorProps = LabelRequiredIndicatorProps & {
|
|
4
|
-
ref?: Ref<HTMLSpanElement>;
|
|
5
|
-
};
|
|
6
|
-
export declare const FormFieldRequiredIndicator: {
|
|
7
|
-
({ className, ref, ...props }: FormFieldRequiredIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { FormFieldMessageProps } from './FormFieldMessage';
|
|
3
|
-
export interface FormFieldStateMessageProps extends FormFieldMessageProps {
|
|
4
|
-
state: 'error' | 'alert' | 'success';
|
|
5
|
-
ref?: Ref<HTMLSpanElement>;
|
|
6
|
-
}
|
|
7
|
-
export declare const FormFieldStateMessage: {
|
|
8
|
-
({ className, state, children, ref, ...others }: FormFieldStateMessageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { FormFieldStateMessageProps } from './FormFieldStateMessage';
|
|
3
|
-
export type FormFieldSuccessMessageProps = Omit<FormFieldStateMessageProps, 'state'> & {
|
|
4
|
-
ref?: Ref<HTMLSpanElement>;
|
|
5
|
-
};
|
|
6
|
-
export declare const FormFieldSuccessMessage: {
|
|
7
|
-
({ ref, ...props }: FormFieldSuccessMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FormField as Root } from './FormField';
|
|
2
|
-
import { FormFieldAlertMessage } from './FormFieldAlertMessage';
|
|
3
|
-
import { FormFieldCharactersCount } from './FormFieldCharactersCount';
|
|
4
|
-
import { FormFieldControl } from './FormFieldControl';
|
|
5
|
-
import { FormFieldErrorMessage } from './FormFieldErrorMessage';
|
|
6
|
-
import { FormFieldHelperMessage } from './FormFieldHelperMessage';
|
|
7
|
-
import { FormFieldLabel } from './FormFieldLabel';
|
|
8
|
-
import { FormFieldRequiredIndicator } from './FormFieldRequiredIndicator';
|
|
9
|
-
import { FormFieldStateMessage } from './FormFieldStateMessage';
|
|
10
|
-
import { FormFieldSuccessMessage } from './FormFieldSuccessMessage';
|
|
11
|
-
export declare const FormField: typeof Root & {
|
|
12
|
-
Label: typeof FormFieldLabel;
|
|
13
|
-
Control: typeof FormFieldControl;
|
|
14
|
-
StateMessage: typeof FormFieldStateMessage;
|
|
15
|
-
SuccessMessage: typeof FormFieldSuccessMessage;
|
|
16
|
-
AlertMessage: typeof FormFieldAlertMessage;
|
|
17
|
-
ErrorMessage: typeof FormFieldErrorMessage;
|
|
18
|
-
HelperMessage: typeof FormFieldHelperMessage;
|
|
19
|
-
RequiredIndicator: typeof FormFieldRequiredIndicator;
|
|
20
|
-
CharactersCount: typeof FormFieldCharactersCount;
|
|
21
|
-
};
|
|
22
|
-
export { type FormFieldProps } from './FormField';
|
|
23
|
-
export { type FormFieldStateMessageProps } from './FormFieldStateMessage';
|
|
24
|
-
export { type FormFieldControl, useFormFieldControl } from './FormFieldControl';
|
|
25
|
-
export { type FormFieldHelperMessageProps } from './FormFieldHelperMessage';
|
|
26
|
-
export { type FormFieldSuccessMessageProps } from './FormFieldSuccessMessage';
|
|
27
|
-
export { type FormFieldAlertMessageProps } from './FormFieldAlertMessage';
|
|
28
|
-
export { type FormFieldErrorMessageProps } from './FormFieldErrorMessage';
|
|
29
|
-
export { type FormFieldLabelProps } from './FormFieldLabel';
|
|
30
|
-
export { type FormFieldRequiredIndicatorProps } from './FormFieldRequiredIndicator';
|
|
31
|
-
export { type FormFieldCharactersCountProps } from './FormFieldCharactersCount';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FormField as Root } from './FormField';
|
|
2
|
-
import { FormFieldAlertMessage } from './FormFieldAlertMessage';
|
|
3
|
-
import { FormFieldCharactersCount } from './FormFieldCharactersCount';
|
|
4
|
-
import { FormFieldControl } from './FormFieldControl';
|
|
5
|
-
import { FormFieldErrorMessage } from './FormFieldErrorMessage';
|
|
6
|
-
import { FormFieldHelperMessage } from './FormFieldHelperMessage';
|
|
7
|
-
import { FormFieldLabel } from './FormFieldLabel';
|
|
8
|
-
import { FormFieldRequiredIndicator } from './FormFieldRequiredIndicator';
|
|
9
|
-
import { FormFieldStateMessage } from './FormFieldStateMessage';
|
|
10
|
-
import { FormFieldSuccessMessage } from './FormFieldSuccessMessage';
|
|
11
|
-
export declare const FormField: typeof Root & {
|
|
12
|
-
Label: typeof FormFieldLabel;
|
|
13
|
-
Control: typeof FormFieldControl;
|
|
14
|
-
StateMessage: typeof FormFieldStateMessage;
|
|
15
|
-
SuccessMessage: typeof FormFieldSuccessMessage;
|
|
16
|
-
AlertMessage: typeof FormFieldAlertMessage;
|
|
17
|
-
ErrorMessage: typeof FormFieldErrorMessage;
|
|
18
|
-
HelperMessage: typeof FormFieldHelperMessage;
|
|
19
|
-
RequiredIndicator: typeof FormFieldRequiredIndicator;
|
|
20
|
-
CharactersCount: typeof FormFieldCharactersCount;
|
|
21
|
-
};
|
|
22
|
-
export { type FormFieldProps } from './FormField';
|
|
23
|
-
export { type FormFieldStateMessageProps } from './FormFieldStateMessage';
|
|
24
|
-
export { type FormFieldControl, useFormFieldControl } from './FormFieldControl';
|
|
25
|
-
export { type FormFieldHelperMessageProps } from './FormFieldHelperMessage';
|
|
26
|
-
export { type FormFieldSuccessMessageProps } from './FormFieldSuccessMessage';
|
|
27
|
-
export { type FormFieldAlertMessageProps } from './FormFieldAlertMessage';
|
|
28
|
-
export { type FormFieldErrorMessageProps } from './FormFieldErrorMessage';
|
|
29
|
-
export { type FormFieldLabelProps } from './FormFieldLabel';
|
|
30
|
-
export { type FormFieldRequiredIndicatorProps } from './FormFieldRequiredIndicator';
|
|
31
|
-
export { type FormFieldCharactersCountProps } from './FormFieldCharactersCount';
|
package/dist/icon/Icon.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { IconVariantsProps } from './Icon.styles';
|
|
3
|
-
export interface IconProps extends IconVariantsProps, ComponentPropsWithoutRef<'svg'> {
|
|
4
|
-
/**
|
|
5
|
-
* The svg icon that will be wrapped
|
|
6
|
-
*/
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* The accessible label for the icon. This label will be visually hidden but announced to screen
|
|
10
|
-
* reader users, similar to `alt` text for `img` tags.
|
|
11
|
-
*/
|
|
12
|
-
label?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const Icon: {
|
|
15
|
-
({ label, className, size, intent, children, ...others }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const iconStyles: (props?: ({
|
|
3
|
-
intent?: "main" | "current" | "alert" | "error" | "support" | "accent" | "success" | "info" | "neutral" | null | undefined;
|
|
4
|
-
size?: "current" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export type IconVariantsProps = VariantProps<typeof iconStyles>;
|
package/dist/icon/index.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Icon';
|
package/dist/icon/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Icon';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { ButtonProps } from '../button';
|
|
3
|
-
export interface IconButtonProps extends Omit<ButtonProps, 'loadingText'> {
|
|
4
|
-
'aria-label': string;
|
|
5
|
-
ref?: Ref<HTMLButtonElement>;
|
|
6
|
-
}
|
|
7
|
-
export declare const IconButton: {
|
|
8
|
-
({ design, disabled, intent, shape, size, className, ref, ...others }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const iconButtonStyles: (props?: ({
|
|
3
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
-
export type IconButtonStylesProps = VariantProps<typeof iconButtonStyles>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IconButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IconButton';
|
package/dist/input/Input.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
-
type InputPrimitiveProps = ComponentPropsWithoutRef<'input'>;
|
|
3
|
-
export interface InputProps extends InputPrimitiveProps {
|
|
4
|
-
asChild?: boolean;
|
|
5
|
-
onValueChange?: (value: string) => void;
|
|
6
|
-
ref?: Ref<HTMLInputElement>;
|
|
7
|
-
}
|
|
8
|
-
export declare const Input: {
|
|
9
|
-
({ className, asChild, onValueChange, onChange, onKeyDown, disabled: disabledProp, readOnly: readOnlyProp, ref, ...others }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
} & {
|
|
12
|
-
id: string;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const inputStyles: (props?: ({
|
|
3
|
-
asChild?: boolean | null | undefined;
|
|
4
|
-
intent?: "alert" | "error" | "success" | "neutral" | null | undefined;
|
|
5
|
-
hasLeadingAddon?: boolean | null | undefined;
|
|
6
|
-
hasTrailingAddon?: boolean | null | undefined;
|
|
7
|
-
hasLeadingIcon?: boolean | null | undefined;
|
|
8
|
-
hasTrailingIcon?: boolean | null | undefined;
|
|
9
|
-
hasClearButton?: boolean | null | undefined;
|
|
10
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
-
export type InputStylesProps = VariantProps<typeof inputStyles>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, PropsWithChildren, Ref } from 'react';
|
|
2
|
-
import { InputAddonStylesProps } from './InputAddon.styles';
|
|
3
|
-
export interface InputAddonProps extends ComponentPropsWithoutRef<'div'>, Omit<InputAddonStylesProps, 'intent' | 'disabled'> {
|
|
4
|
-
ref?: Ref<HTMLDivElement>;
|
|
5
|
-
}
|
|
6
|
-
export declare const InputAddon: {
|
|
7
|
-
({ asChild: asChildProp, className, children, ref, ...others }: PropsWithChildren<InputAddonProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const inputAddonStyles: (props?: ({
|
|
3
|
-
asChild?: boolean | null | undefined;
|
|
4
|
-
intent?: "alert" | "error" | "success" | "neutral" | null | undefined;
|
|
5
|
-
disabled?: boolean | null | undefined;
|
|
6
|
-
readOnly?: boolean | null | undefined;
|
|
7
|
-
design?: "text" | "inline" | "solid" | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
export type InputAddonStylesProps = VariantProps<typeof inputAddonStyles>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
-
export interface InputClearButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
3
|
-
'aria-label': string;
|
|
4
|
-
inline?: boolean;
|
|
5
|
-
ref?: Ref<HTMLButtonElement>;
|
|
6
|
-
}
|
|
7
|
-
export declare const InputClearButton: {
|
|
8
|
-
({ className, tabIndex, onClick, inline, ref, ...others }: InputClearButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
} & {
|
|
11
|
-
id: string;
|
|
12
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, PropsWithChildren, Ref } from 'react';
|
|
2
|
-
import { InputGroupStylesProps } from './InputGroup.styles';
|
|
3
|
-
export interface InputGroupProps extends ComponentPropsWithoutRef<'div'>, InputGroupStylesProps {
|
|
4
|
-
/**
|
|
5
|
-
* Use `state` prop to assign a specific state to the group, choosing from: `error`, `alert` and `success`. By doing so, the outline styles will be updated.
|
|
6
|
-
*/
|
|
7
|
-
state?: 'error' | 'alert' | 'success';
|
|
8
|
-
/**
|
|
9
|
-
* Function handler to be executed after the input has been cleared.
|
|
10
|
-
*/
|
|
11
|
-
onClear?: () => void;
|
|
12
|
-
ref?: Ref<HTMLDivElement>;
|
|
13
|
-
}
|
|
14
|
-
export declare const InputGroup: {
|
|
15
|
-
({ className, children: childrenProp, state: stateProp, disabled: disabledProp, readOnly: readOnlyProp, onClear, ref: forwardedRef, ...others }: PropsWithChildren<InputGroupProps>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export declare const inputGroupStyles: (props?: ({
|
|
3
|
-
disabled?: boolean | null | undefined;
|
|
4
|
-
readOnly?: boolean | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export type InputGroupStylesProps = VariantProps<typeof inputGroupStyles>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface InputGroupContextValue {
|
|
2
|
-
disabled?: boolean;
|
|
3
|
-
readOnly?: boolean;
|
|
4
|
-
hasLeadingIcon: boolean;
|
|
5
|
-
hasTrailingIcon: boolean;
|
|
6
|
-
hasLeadingAddon: boolean;
|
|
7
|
-
hasTrailingAddon: boolean;
|
|
8
|
-
hasClearButton: boolean;
|
|
9
|
-
state: null | undefined | 'error' | 'alert' | 'success';
|
|
10
|
-
isStandalone?: boolean;
|
|
11
|
-
onClear: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const InputGroupContext: import('react').Context<Partial<InputGroupContextValue> | null>;
|
|
14
|
-
export declare const useInputGroup: () => Partial<InputGroupContextValue>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { InputAddonProps } from './InputAddon';
|
|
3
|
-
export type InputLeadingAddonProps = InputAddonProps & {
|
|
4
|
-
ref?: Ref<HTMLDivElement>;
|
|
5
|
-
};
|
|
6
|
-
export declare const InputLeadingAddon: {
|
|
7
|
-
({ className, ref, ...others }: InputLeadingAddonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
} & {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InputIconProps } from './InputIcon';
|
|
2
|
-
export type InputLeadingIconProps = InputIconProps;
|
|
3
|
-
export declare const InputLeadingIcon: {
|
|
4
|
-
({ className, ...others }: InputLeadingIconProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
id: string;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { InputAddonProps } from './InputAddon';
|
|
3
|
-
export type InputTrailingAddonProps = InputAddonProps & {
|
|
4
|
-
ref?: Ref<HTMLDivElement>;
|
|
5
|
-
};
|
|
6
|
-
export declare const InputTrailingAddon: {
|
|
7
|
-
({ className, ref, ...others }: InputTrailingAddonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
} & {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InputIconProps } from './InputIcon';
|
|
2
|
-
export type InputTrailingIconProps = InputIconProps;
|
|
3
|
-
export declare const InputTrailingIcon: {
|
|
4
|
-
({ className, ...others }: InputTrailingIconProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
id: string;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|