@skdx/react 0.28.0 → 0.30.0
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/README.md +6 -6
- package/dist/accordion/Accordion.cjs +2 -1
- package/dist/accordion/Accordion.d.cts +8 -8
- package/dist/accordion/Accordion.d.ts +8 -8
- package/dist/accordion/Accordion.js +2 -1
- package/dist/accordion/AccordionAnatomy.d.cts +3 -9
- package/dist/accordion/AccordionAnatomy.d.ts +3 -9
- package/dist/accordion/AccordionContent.d.cts +6 -13
- package/dist/accordion/AccordionContent.d.ts +6 -13
- package/dist/accordion/AccordionHeader.d.cts +5 -4
- package/dist/accordion/AccordionHeader.d.ts +5 -4
- package/dist/accordion/AccordionIndicator.d.cts +6 -3
- package/dist/accordion/AccordionIndicator.d.ts +6 -3
- package/dist/accordion/AccordionItem.d.cts +7 -7
- package/dist/accordion/AccordionItem.d.ts +7 -7
- package/dist/accordion/AccordionTrigger.d.cts +6 -9
- package/dist/accordion/AccordionTrigger.d.ts +6 -9
- package/dist/accordion/types.d.cts +21 -20
- package/dist/accordion/types.d.ts +21 -20
- package/dist/alert/Alert.cjs +2 -1
- package/dist/alert/Alert.d.cts +19 -48
- package/dist/alert/Alert.d.ts +19 -48
- package/dist/alert/Alert.js +2 -1
- package/dist/alert/AlertAction.d.cts +5 -2
- package/dist/alert/AlertAction.d.ts +5 -2
- package/dist/alert/AlertAnatomy.d.cts +6 -13
- package/dist/alert/AlertAnatomy.d.ts +6 -13
- package/dist/alert/AlertClose.d.cts +5 -2
- package/dist/alert/AlertClose.d.ts +5 -2
- package/dist/alert/AlertDescription.d.cts +4 -1
- package/dist/alert/AlertDescription.d.ts +4 -1
- package/dist/alert/AlertIcon.d.cts +5 -2
- package/dist/alert/AlertIcon.d.ts +5 -2
- package/dist/alert/AlertTitle.d.cts +4 -1
- package/dist/alert/AlertTitle.d.ts +4 -1
- package/dist/alert/types.d.cts +21 -11
- package/dist/alert/types.d.ts +21 -11
- package/dist/angle-slider/AngleSlider.cjs +2 -1
- package/dist/angle-slider/AngleSlider.d.cts +23 -35
- package/dist/angle-slider/AngleSlider.d.ts +23 -35
- package/dist/angle-slider/AngleSlider.js +2 -1
- package/dist/angle-slider/AngleSliderAnatomy.d.cts +5 -10
- package/dist/angle-slider/AngleSliderAnatomy.d.ts +5 -10
- package/dist/angle-slider/AngleSliderMark.d.cts +5 -2
- package/dist/angle-slider/AngleSliderMark.d.ts +5 -2
- package/dist/angle-slider/AngleSliderMarks.d.cts +5 -2
- package/dist/angle-slider/AngleSliderMarks.d.ts +5 -2
- package/dist/angle-slider/AngleSliderThumb.d.cts +5 -2
- package/dist/angle-slider/AngleSliderThumb.d.ts +5 -2
- package/dist/angle-slider/types.d.cts +18 -19
- package/dist/angle-slider/types.d.ts +18 -19
- package/dist/aspect-ratio/AspectRatio.cjs +2 -1
- package/dist/aspect-ratio/AspectRatio.d.cts +6 -8
- package/dist/aspect-ratio/AspectRatio.d.ts +6 -8
- package/dist/aspect-ratio/AspectRatio.js +2 -1
- package/dist/aspect-ratio/types.d.cts +1 -1
- package/dist/aspect-ratio/types.d.ts +1 -1
- package/dist/autocomplete/Autocomplete.cjs +2 -1
- package/dist/autocomplete/Autocomplete.d.cts +11 -31
- package/dist/autocomplete/Autocomplete.d.ts +11 -31
- package/dist/autocomplete/Autocomplete.js +2 -1
- package/dist/autocomplete/AutocompleteAnatomy.d.cts +8 -10
- package/dist/autocomplete/AutocompleteAnatomy.d.ts +8 -10
- package/dist/autocomplete/AutocompleteClear.d.cts +9 -9
- package/dist/autocomplete/AutocompleteClear.d.ts +9 -9
- package/dist/autocomplete/AutocompleteContent.d.cts +14 -22
- package/dist/autocomplete/AutocompleteContent.d.ts +14 -22
- package/dist/autocomplete/AutocompleteEmpty.d.cts +5 -2
- package/dist/autocomplete/AutocompleteEmpty.d.ts +5 -2
- package/dist/autocomplete/AutocompleteGroup.d.cts +7 -11
- package/dist/autocomplete/AutocompleteGroup.d.ts +7 -11
- package/dist/autocomplete/AutocompleteGroupLabel.d.cts +5 -2
- package/dist/autocomplete/AutocompleteGroupLabel.d.ts +5 -2
- package/dist/autocomplete/AutocompleteInput.d.cts +5 -2
- package/dist/autocomplete/AutocompleteInput.d.ts +5 -2
- package/dist/autocomplete/AutocompleteItem.d.cts +4 -1
- package/dist/autocomplete/AutocompleteItem.d.ts +4 -1
- package/dist/autocomplete/AutocompleteList.d.cts +5 -2
- package/dist/autocomplete/AutocompleteList.d.ts +5 -2
- package/dist/autocomplete/AutocompletePortal.d.cts +2 -1
- package/dist/autocomplete/AutocompletePortal.d.ts +2 -1
- package/dist/autocomplete/AutocompleteTrigger.d.cts +5 -2
- package/dist/autocomplete/AutocompleteTrigger.d.ts +5 -2
- package/dist/autocomplete/types.d.cts +43 -38
- package/dist/autocomplete/types.d.ts +43 -38
- package/dist/avatar/Avatar.cjs +2 -1
- package/dist/avatar/Avatar.d.cts +7 -7
- package/dist/avatar/Avatar.d.ts +7 -7
- package/dist/avatar/Avatar.js +2 -1
- package/dist/avatar/AvatarAnatomy.d.cts +6 -10
- package/dist/avatar/AvatarAnatomy.d.ts +6 -10
- package/dist/avatar/AvatarFallback.d.cts +4 -1
- package/dist/avatar/AvatarFallback.d.ts +4 -1
- package/dist/avatar/AvatarImage.d.cts +4 -1
- package/dist/avatar/AvatarImage.d.ts +4 -1
- package/dist/avatar/types.d.cts +17 -7
- package/dist/avatar/types.d.ts +17 -7
- package/dist/badge/Badge.cjs +2 -1
- package/dist/badge/Badge.d.cts +20 -11
- package/dist/badge/Badge.d.ts +20 -11
- package/dist/badge/Badge.js +2 -1
- package/dist/badge/BadgeAnatomy.d.cts +9 -0
- package/dist/badge/BadgeAnatomy.d.ts +9 -0
- package/dist/badge/BadgeDelete.d.cts +17 -0
- package/dist/badge/BadgeDelete.d.ts +17 -0
- package/dist/badge/BadgeLabel.d.cts +17 -0
- package/dist/badge/BadgeLabel.d.ts +17 -0
- package/dist/badge/BadgeLeading.d.cts +5 -2
- package/dist/badge/BadgeLeading.d.ts +5 -2
- package/dist/badge/BadgeTrailing.d.cts +5 -2
- package/dist/badge/BadgeTrailing.d.ts +5 -2
- package/dist/badge/index.d.cts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/primitives.d.cts +4 -2
- package/dist/badge/primitives.d.ts +4 -2
- package/dist/badge/types.d.cts +91 -3
- package/dist/badge/types.d.ts +91 -3
- package/dist/box/Box.cjs +2 -1
- package/dist/box/Box.d.cts +5 -2
- package/dist/box/Box.d.ts +5 -2
- package/dist/box/Box.js +2 -1
- package/dist/box/types.d.cts +71 -21
- package/dist/box/types.d.ts +71 -21
- package/dist/breadcrumb/Breadcrumb.cjs +2 -1
- package/dist/breadcrumb/Breadcrumb.d.cts +13 -13
- package/dist/breadcrumb/Breadcrumb.d.ts +13 -13
- package/dist/breadcrumb/Breadcrumb.js +2 -1
- package/dist/breadcrumb/BreadcrumbAnatomy.d.cts +3 -11
- package/dist/breadcrumb/BreadcrumbAnatomy.d.ts +3 -11
- package/dist/breadcrumb/BreadcrumbEllipsis.d.cts +5 -2
- package/dist/breadcrumb/BreadcrumbEllipsis.d.ts +5 -2
- package/dist/breadcrumb/BreadcrumbItem.d.cts +5 -2
- package/dist/breadcrumb/BreadcrumbItem.d.ts +5 -2
- package/dist/breadcrumb/BreadcrumbLink.d.cts +5 -2
- package/dist/breadcrumb/BreadcrumbLink.d.ts +5 -2
- package/dist/breadcrumb/BreadcrumbList.d.cts +5 -2
- package/dist/breadcrumb/BreadcrumbList.d.ts +5 -2
- package/dist/breadcrumb/BreadcrumbPage.d.cts +5 -2
- package/dist/breadcrumb/BreadcrumbPage.d.ts +5 -2
- package/dist/breadcrumb/BreadcrumbSeparator.d.cts +6 -3
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +6 -3
- package/dist/breadcrumb/primitives.d.cts +1 -1
- package/dist/breadcrumb/primitives.d.ts +1 -1
- package/dist/breadcrumb/types.d.cts +11 -10
- package/dist/breadcrumb/types.d.ts +11 -10
- package/dist/button/Button.cjs +2 -1
- package/dist/button/Button.d.cts +5 -10
- package/dist/button/Button.d.ts +5 -10
- package/dist/button/Button.js +2 -1
- package/dist/button/types.d.cts +33 -31
- package/dist/button/types.d.ts +33 -31
- package/dist/calendar/Calendar.cjs +2 -1
- package/dist/calendar/Calendar.d.cts +17 -48
- package/dist/calendar/Calendar.d.ts +17 -48
- package/dist/calendar/Calendar.js +2 -1
- package/dist/calendar/CalendarAnatomy.d.cts +1 -12
- package/dist/calendar/CalendarAnatomy.d.ts +1 -12
- package/dist/calendar/CalendarCell.d.cts +6 -7
- package/dist/calendar/CalendarCell.d.ts +6 -7
- package/dist/calendar/CalendarGrid.d.cts +5 -5
- package/dist/calendar/CalendarGrid.d.ts +5 -5
- package/dist/calendar/CalendarGridBody.d.cts +6 -23
- package/dist/calendar/CalendarGridBody.d.ts +6 -23
- package/dist/calendar/CalendarGridHead.d.cts +6 -5
- package/dist/calendar/CalendarGridHead.d.ts +6 -5
- package/dist/calendar/CalendarHeader.d.cts +5 -2
- package/dist/calendar/CalendarHeader.d.ts +5 -2
- package/dist/calendar/CalendarHeading.d.cts +6 -5
- package/dist/calendar/CalendarHeading.d.ts +6 -5
- package/dist/calendar/CalendarNextButton.d.cts +6 -6
- package/dist/calendar/CalendarNextButton.d.ts +6 -6
- package/dist/calendar/CalendarPreviousButton.d.cts +6 -5
- package/dist/calendar/CalendarPreviousButton.d.ts +6 -5
- package/dist/calendar/CalendarRow.d.cts +5 -2
- package/dist/calendar/CalendarRow.d.ts +5 -2
- package/dist/calendar/CalendarViewGrid.d.cts +10 -9
- package/dist/calendar/CalendarViewGrid.d.ts +10 -9
- package/dist/calendar/CalendarWeekDay.d.cts +5 -2
- package/dist/calendar/CalendarWeekDay.d.ts +5 -2
- package/dist/calendar/CalendarWeekNumber.d.cts +6 -4
- package/dist/calendar/CalendarWeekNumber.d.ts +6 -4
- package/dist/calendar/CalendarWeekNumberHeader.d.cts +6 -10
- package/dist/calendar/CalendarWeekNumberHeader.d.ts +6 -10
- package/dist/calendar/index.d.cts +1 -1
- package/dist/calendar/index.d.ts +1 -1
- package/dist/calendar/types.d.cts +60 -102
- package/dist/calendar/types.d.ts +60 -102
- package/dist/card/Card.cjs +2 -1
- package/dist/card/Card.d.cts +11 -8
- package/dist/card/Card.d.ts +11 -8
- package/dist/card/Card.js +2 -1
- package/dist/card/CardAnatomy.d.cts +6 -14
- package/dist/card/CardAnatomy.d.ts +6 -14
- package/dist/card/CardContent.d.cts +5 -2
- package/dist/card/CardContent.d.ts +5 -2
- package/dist/card/CardDescription.d.cts +6 -4
- package/dist/card/CardDescription.d.ts +6 -4
- package/dist/card/CardFooter.d.cts +5 -2
- package/dist/card/CardFooter.d.ts +5 -2
- package/dist/card/CardHeader.d.cts +5 -2
- package/dist/card/CardHeader.d.ts +5 -2
- package/dist/card/CardMedia.d.cts +6 -4
- package/dist/card/CardMedia.d.ts +6 -4
- package/dist/card/CardTitle.d.cts +6 -5
- package/dist/card/CardTitle.d.ts +6 -5
- package/dist/card/types.d.cts +25 -22
- package/dist/card/types.d.ts +25 -22
- package/dist/carousel/Carousel.cjs +2 -1
- package/dist/carousel/Carousel.d.cts +8 -27
- package/dist/carousel/Carousel.d.ts +8 -27
- package/dist/carousel/Carousel.js +2 -1
- package/dist/carousel/CarouselAnatomy.d.cts +7 -11
- package/dist/carousel/CarouselAnatomy.d.ts +7 -11
- package/dist/carousel/CarouselContent.d.cts +6 -4
- package/dist/carousel/CarouselContent.d.ts +6 -4
- package/dist/carousel/CarouselIndicator.d.cts +6 -8
- package/dist/carousel/CarouselIndicator.d.ts +6 -8
- package/dist/carousel/CarouselIndicators.d.cts +6 -3
- package/dist/carousel/CarouselIndicators.d.ts +6 -3
- package/dist/carousel/CarouselItem.d.cts +5 -3
- package/dist/carousel/CarouselItem.d.ts +5 -3
- package/dist/carousel/CarouselNext.d.cts +5 -2
- package/dist/carousel/CarouselNext.d.ts +5 -2
- package/dist/carousel/CarouselPlayPause.d.cts +6 -7
- package/dist/carousel/CarouselPlayPause.d.ts +6 -7
- package/dist/carousel/CarouselPrevious.d.cts +5 -2
- package/dist/carousel/CarouselPrevious.d.ts +5 -2
- package/dist/carousel/CarouselProgress.d.cts +5 -4
- package/dist/carousel/CarouselProgress.d.ts +5 -4
- package/dist/carousel/primitives.d.cts +1 -2
- package/dist/carousel/primitives.d.ts +1 -2
- package/dist/carousel/types.d.cts +39 -58
- package/dist/carousel/types.d.ts +39 -58
- package/dist/checkbox/Checkbox.cjs +2 -1
- package/dist/checkbox/Checkbox.d.cts +42 -13
- package/dist/checkbox/Checkbox.d.ts +42 -13
- package/dist/checkbox/Checkbox.js +2 -1
- package/dist/checkbox/CheckboxAnatomy.d.cts +3 -5
- package/dist/checkbox/CheckboxAnatomy.d.ts +3 -5
- package/dist/checkbox/CheckboxIndicator.d.cts +5 -2
- package/dist/checkbox/CheckboxIndicator.d.ts +5 -2
- package/dist/checkbox/types.d.cts +22 -30
- package/dist/checkbox/types.d.ts +22 -30
- package/dist/checkbox-card/CheckboxCard.cjs +2 -1
- package/dist/checkbox-card/CheckboxCard.d.cts +18 -56
- package/dist/checkbox-card/CheckboxCard.d.ts +18 -56
- package/dist/checkbox-card/CheckboxCard.js +2 -1
- package/dist/checkbox-card/CheckboxCardAnatomy.d.cts +3 -9
- package/dist/checkbox-card/CheckboxCardAnatomy.d.ts +3 -9
- package/dist/checkbox-card/CheckboxCardControl.d.cts +6 -8
- package/dist/checkbox-card/CheckboxCardControl.d.ts +6 -8
- package/dist/checkbox-card/CheckboxCardDescription.d.cts +5 -6
- package/dist/checkbox-card/CheckboxCardDescription.d.ts +5 -6
- package/dist/checkbox-card/CheckboxCardIndicator.d.cts +5 -2
- package/dist/checkbox-card/CheckboxCardIndicator.d.ts +5 -2
- package/dist/checkbox-card/CheckboxCardLabel.d.cts +5 -6
- package/dist/checkbox-card/CheckboxCardLabel.d.ts +5 -6
- package/dist/checkbox-card/types.d.cts +24 -27
- package/dist/checkbox-card/types.d.ts +24 -27
- package/dist/checkbox-group/CheckboxGroup.cjs +2 -1
- package/dist/checkbox-group/CheckboxGroup.d.cts +10 -23
- package/dist/checkbox-group/CheckboxGroup.d.ts +10 -23
- package/dist/checkbox-group/CheckboxGroup.js +2 -1
- package/dist/checkbox-group/CheckboxGroupAnatomy.d.cts +5 -8
- package/dist/checkbox-group/CheckboxGroupAnatomy.d.ts +5 -8
- package/dist/checkbox-group/CheckboxGroupItem.d.cts +5 -13
- package/dist/checkbox-group/CheckboxGroupItem.d.ts +5 -13
- package/dist/checkbox-group/CheckboxGroupSelectAll.d.cts +6 -5
- package/dist/checkbox-group/CheckboxGroupSelectAll.d.ts +6 -5
- package/dist/checkbox-group/types.d.cts +33 -49
- package/dist/checkbox-group/types.d.ts +33 -49
- package/dist/clipboard/Clipboard.cjs +2 -1
- package/dist/clipboard/Clipboard.d.cts +10 -47
- package/dist/clipboard/Clipboard.d.ts +10 -47
- package/dist/clipboard/Clipboard.js +2 -1
- package/dist/clipboard/ClipboardAnatomy.d.cts +3 -8
- package/dist/clipboard/ClipboardAnatomy.d.ts +3 -8
- package/dist/clipboard/ClipboardIndicator.d.cts +6 -6
- package/dist/clipboard/ClipboardIndicator.d.ts +6 -6
- package/dist/clipboard/ClipboardInput.d.cts +6 -4
- package/dist/clipboard/ClipboardInput.d.ts +6 -4
- package/dist/clipboard/ClipboardTrigger.d.cts +5 -2
- package/dist/clipboard/ClipboardTrigger.d.ts +5 -2
- package/dist/clipboard/types.d.cts +28 -56
- package/dist/clipboard/types.d.ts +28 -56
- package/dist/collapsible/Collapsible.cjs +2 -1
- package/dist/collapsible/Collapsible.d.cts +18 -22
- package/dist/collapsible/Collapsible.d.ts +18 -22
- package/dist/collapsible/Collapsible.js +2 -1
- package/dist/collapsible/CollapsibleAnatomy.d.cts +3 -8
- package/dist/collapsible/CollapsibleAnatomy.d.ts +3 -8
- package/dist/collapsible/CollapsibleContent.d.cts +5 -7
- package/dist/collapsible/CollapsibleContent.d.ts +5 -7
- package/dist/collapsible/CollapsibleIndicator.d.cts +5 -2
- package/dist/collapsible/CollapsibleIndicator.d.ts +5 -2
- package/dist/collapsible/CollapsibleTrigger.d.cts +5 -3
- package/dist/collapsible/CollapsibleTrigger.d.ts +5 -3
- package/dist/collapsible/types.d.cts +18 -26
- package/dist/collapsible/types.d.ts +18 -26
- package/dist/color-picker/ColorPicker.cjs +2 -1
- package/dist/color-picker/ColorPicker.d.cts +13 -56
- package/dist/color-picker/ColorPicker.d.ts +13 -56
- package/dist/color-picker/ColorPicker.js +2 -1
- package/dist/color-picker/ColorPickerAlphaSlider.d.cts +6 -4
- package/dist/color-picker/ColorPickerAlphaSlider.d.ts +6 -4
- package/dist/color-picker/ColorPickerAlphaSliderThumb.d.cts +7 -8
- package/dist/color-picker/ColorPickerAlphaSliderThumb.d.ts +7 -8
- package/dist/color-picker/ColorPickerAnatomy.d.cts +7 -10
- package/dist/color-picker/ColorPickerAnatomy.d.ts +7 -10
- package/dist/color-picker/ColorPickerArea.d.cts +5 -7
- package/dist/color-picker/ColorPickerArea.d.ts +5 -7
- package/dist/color-picker/ColorPickerAreaThumb.d.cts +6 -10
- package/dist/color-picker/ColorPickerAreaThumb.d.ts +6 -10
- package/dist/color-picker/ColorPickerEyeDropper.d.cts +5 -4
- package/dist/color-picker/ColorPickerEyeDropper.d.ts +5 -4
- package/dist/color-picker/ColorPickerFormatSelect.d.cts +6 -5
- package/dist/color-picker/ColorPickerFormatSelect.d.ts +6 -5
- package/dist/color-picker/ColorPickerHueSlider.d.cts +6 -5
- package/dist/color-picker/ColorPickerHueSlider.d.ts +6 -5
- package/dist/color-picker/ColorPickerHueSliderThumb.d.cts +6 -5
- package/dist/color-picker/ColorPickerHueSliderThumb.d.ts +6 -5
- package/dist/color-picker/ColorPickerInput.d.cts +5 -8
- package/dist/color-picker/ColorPickerInput.d.ts +5 -8
- package/dist/color-picker/ColorPickerSwatch.d.cts +7 -17
- package/dist/color-picker/ColorPickerSwatch.d.ts +7 -17
- package/dist/color-picker/ColorPickerSwatchGroup.d.cts +10 -12
- package/dist/color-picker/ColorPickerSwatchGroup.d.ts +10 -12
- package/dist/color-picker/types.d.cts +59 -71
- package/dist/color-picker/types.d.ts +59 -71
- package/dist/color-picker/useChannelSlider.d.cts +6 -26
- package/dist/color-picker/useChannelSlider.d.ts +6 -26
- package/dist/color-picker/usePointerRatio.d.cts +2 -4
- package/dist/color-picker/usePointerRatio.d.ts +2 -4
- package/dist/combobox/Combobox.cjs +2 -1
- package/dist/combobox/Combobox.d.cts +11 -55
- package/dist/combobox/Combobox.d.ts +11 -55
- package/dist/combobox/Combobox.js +2 -1
- package/dist/combobox/ComboboxAnatomy.d.cts +9 -7
- package/dist/combobox/ComboboxAnatomy.d.ts +9 -7
- package/dist/combobox/ComboboxClear.d.cts +6 -5
- package/dist/combobox/ComboboxClear.d.ts +6 -5
- package/dist/combobox/ComboboxContent.d.cts +6 -17
- package/dist/combobox/ComboboxContent.d.ts +6 -17
- package/dist/combobox/ComboboxEmpty.d.cts +5 -2
- package/dist/combobox/ComboboxEmpty.d.ts +5 -2
- package/dist/combobox/ComboboxGroup.d.cts +8 -10
- package/dist/combobox/ComboboxGroup.d.ts +8 -10
- package/dist/combobox/ComboboxGroupLabel.d.cts +6 -4
- package/dist/combobox/ComboboxGroupLabel.d.ts +6 -4
- package/dist/combobox/ComboboxInput.d.cts +6 -7
- package/dist/combobox/ComboboxInput.d.ts +6 -7
- package/dist/combobox/ComboboxItem.d.cts +7 -16
- package/dist/combobox/ComboboxItem.d.ts +7 -16
- package/dist/combobox/ComboboxPortal.d.cts +2 -1
- package/dist/combobox/ComboboxPortal.d.ts +2 -1
- package/dist/combobox/ComboboxTrigger.d.cts +5 -2
- package/dist/combobox/ComboboxTrigger.d.ts +5 -2
- package/dist/combobox/types.d.cts +72 -66
- package/dist/combobox/types.d.ts +72 -66
- package/dist/command/Command.cjs +2 -1
- package/dist/command/Command.d.cts +10 -47
- package/dist/command/Command.d.ts +10 -47
- package/dist/command/Command.js +2 -1
- package/dist/command/CommandAnatomy.d.cts +7 -13
- package/dist/command/CommandAnatomy.d.ts +7 -13
- package/dist/command/CommandEmpty.d.cts +5 -2
- package/dist/command/CommandEmpty.d.ts +5 -2
- package/dist/command/CommandGroup.d.cts +5 -4
- package/dist/command/CommandGroup.d.ts +5 -4
- package/dist/command/CommandInput.d.cts +6 -6
- package/dist/command/CommandInput.d.ts +6 -6
- package/dist/command/CommandItem.d.cts +5 -7
- package/dist/command/CommandItem.d.ts +5 -7
- package/dist/command/CommandList.d.cts +6 -3
- package/dist/command/CommandList.d.ts +6 -3
- package/dist/command/CommandLoading.d.cts +5 -2
- package/dist/command/CommandLoading.d.ts +5 -2
- package/dist/command/CommandSeparator.d.cts +6 -4
- package/dist/command/CommandSeparator.d.ts +6 -4
- package/dist/command/types.d.cts +34 -60
- package/dist/command/types.d.ts +34 -60
- package/dist/date-field/DateField.cjs +2 -1
- package/dist/date-field/DateField.d.cts +7 -13
- package/dist/date-field/DateField.d.ts +7 -13
- package/dist/date-field/DateField.js +2 -1
- package/dist/date-field/types.d.cts +32 -49
- package/dist/date-field/types.d.ts +32 -49
- package/dist/date-picker/DatePicker.cjs +2 -1
- package/dist/date-picker/DatePicker.d.cts +11 -24
- package/dist/date-picker/DatePicker.d.ts +11 -24
- package/dist/date-picker/DatePicker.js +2 -1
- package/dist/date-picker/DatePickerAnatomy.d.cts +5 -11
- package/dist/date-picker/DatePickerAnatomy.d.ts +5 -11
- package/dist/date-picker/DatePickerCalendar.d.cts +6 -5
- package/dist/date-picker/DatePickerCalendar.d.ts +6 -5
- package/dist/date-picker/DatePickerClose.d.cts +5 -2
- package/dist/date-picker/DatePickerClose.d.ts +5 -2
- package/dist/date-picker/DatePickerContent.d.cts +5 -5
- package/dist/date-picker/DatePickerContent.d.ts +5 -5
- package/dist/date-picker/DatePickerInput.d.cts +9 -5
- package/dist/date-picker/DatePickerInput.d.ts +9 -5
- package/dist/date-picker/DatePickerPortal.d.cts +3 -3
- package/dist/date-picker/DatePickerPortal.d.ts +3 -3
- package/dist/date-picker/DatePickerTimeField.d.cts +8 -2
- package/dist/date-picker/DatePickerTimeField.d.ts +8 -2
- package/dist/date-picker/DatePickerTrigger.d.cts +6 -5
- package/dist/date-picker/DatePickerTrigger.d.ts +6 -5
- package/dist/date-picker/types.d.cts +38 -38
- package/dist/date-picker/types.d.ts +38 -38
- package/dist/dialog/Dialog.cjs +2 -1
- package/dist/dialog/Dialog.d.cts +35 -44
- package/dist/dialog/Dialog.d.ts +35 -44
- package/dist/dialog/Dialog.js +2 -1
- package/dist/dialog/DialogAction.d.cts +17 -0
- package/dist/dialog/DialogAction.d.ts +17 -0
- package/dist/dialog/DialogAnatomy.d.cts +14 -9
- package/dist/dialog/DialogAnatomy.d.ts +14 -9
- package/dist/dialog/DialogCancel.d.cts +17 -0
- package/dist/dialog/DialogCancel.d.ts +17 -0
- package/dist/dialog/DialogClose.d.cts +5 -2
- package/dist/dialog/DialogClose.d.ts +5 -2
- package/dist/dialog/DialogContent.d.cts +5 -15
- package/dist/dialog/DialogContent.d.ts +5 -15
- package/dist/dialog/DialogDescription.d.cts +4 -1
- package/dist/dialog/DialogDescription.d.ts +4 -1
- package/dist/dialog/DialogOverlay.d.cts +5 -2
- package/dist/dialog/DialogOverlay.d.ts +5 -2
- package/dist/dialog/DialogPortal.d.cts +12 -3
- package/dist/dialog/DialogPortal.d.ts +12 -3
- package/dist/dialog/DialogTitle.d.cts +4 -1
- package/dist/dialog/DialogTitle.d.ts +4 -1
- package/dist/dialog/DialogTrigger.d.cts +5 -2
- package/dist/dialog/DialogTrigger.d.ts +5 -2
- package/dist/dialog/index.d.cts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/dialog/primitives.d.cts +3 -1
- package/dist/dialog/primitives.d.ts +3 -1
- package/dist/dialog/types.d.cts +107 -73
- package/dist/dialog/types.d.ts +107 -73
- package/dist/divider/Divider.cjs +2 -0
- package/dist/divider/Divider.d.cts +18 -0
- package/dist/divider/Divider.d.ts +18 -0
- package/dist/divider/Divider.js +2 -0
- package/dist/divider/index.d.cts +2 -0
- package/dist/divider/index.d.ts +2 -0
- package/dist/divider/types.d.cts +19 -0
- package/dist/divider/types.d.ts +19 -0
- package/dist/drawer/Drawer.cjs +2 -1
- package/dist/drawer/Drawer.d.cts +6 -58
- package/dist/drawer/Drawer.d.ts +6 -58
- package/dist/drawer/Drawer.js +2 -1
- package/dist/drawer/DrawerAnatomy.d.cts +9 -10
- package/dist/drawer/DrawerAnatomy.d.ts +9 -10
- package/dist/drawer/DrawerContent.d.cts +6 -5
- package/dist/drawer/DrawerContent.d.ts +6 -5
- package/dist/drawer/DrawerPortal.d.cts +3 -4
- package/dist/drawer/DrawerPortal.d.ts +3 -4
- package/dist/drawer/primitives.d.cts +5 -5
- package/dist/drawer/primitives.d.ts +5 -5
- package/dist/drawer/types.d.cts +52 -80
- package/dist/drawer/types.d.ts +52 -80
- package/dist/editable/Editable.cjs +2 -1
- package/dist/editable/Editable.d.cts +8 -46
- package/dist/editable/Editable.d.ts +8 -46
- package/dist/editable/Editable.js +2 -1
- package/dist/editable/EditableAnatomy.d.cts +6 -5
- package/dist/editable/EditableAnatomy.d.ts +6 -5
- package/dist/editable/EditableCancelTrigger.d.cts +6 -6
- package/dist/editable/EditableCancelTrigger.d.ts +6 -6
- package/dist/editable/EditableEditTrigger.d.cts +6 -5
- package/dist/editable/EditableEditTrigger.d.ts +6 -5
- package/dist/editable/EditableInput.d.cts +6 -22
- package/dist/editable/EditableInput.d.ts +6 -22
- package/dist/editable/EditableLabel.d.cts +5 -4
- package/dist/editable/EditableLabel.d.ts +5 -4
- package/dist/editable/EditablePreview.d.cts +6 -12
- package/dist/editable/EditablePreview.d.ts +6 -12
- package/dist/editable/EditableSubmitTrigger.d.cts +6 -9
- package/dist/editable/EditableSubmitTrigger.d.ts +6 -9
- package/dist/editable/EditableTextarea.d.cts +5 -6
- package/dist/editable/EditableTextarea.d.ts +5 -6
- package/dist/editable/primitives.d.cts +1 -2
- package/dist/editable/primitives.d.ts +1 -2
- package/dist/editable/types.d.cts +34 -48
- package/dist/editable/types.d.ts +34 -48
- package/dist/field/Field.cjs +2 -1
- package/dist/field/Field.d.cts +28 -58
- package/dist/field/Field.d.ts +28 -58
- package/dist/field/Field.js +2 -1
- package/dist/field/FieldAnatomy.d.cts +3 -3
- package/dist/field/FieldAnatomy.d.ts +3 -3
- package/dist/field/FieldCharacterCount.d.cts +4 -1
- package/dist/field/FieldCharacterCount.d.ts +4 -1
- package/dist/field/FieldDescription.d.cts +5 -2
- package/dist/field/FieldDescription.d.ts +5 -2
- package/dist/field/FieldError.d.cts +5 -2
- package/dist/field/FieldError.d.ts +5 -2
- package/dist/field/FieldLabel.d.cts +7 -7
- package/dist/field/FieldLabel.d.ts +7 -7
- package/dist/field/FieldRequiredIndicator.d.cts +7 -5
- package/dist/field/FieldRequiredIndicator.d.ts +7 -5
- package/dist/field/fieldControlId.d.cts +1 -5
- package/dist/field/fieldControlId.d.ts +1 -5
- package/dist/field/index.d.cts +1 -1
- package/dist/field/index.d.ts +1 -1
- package/dist/field/types.d.cts +49 -107
- package/dist/field/types.d.ts +49 -107
- package/dist/file-upload/FileUpload.cjs +2 -1
- package/dist/file-upload/FileUpload.d.cts +12 -43
- package/dist/file-upload/FileUpload.d.ts +12 -43
- package/dist/file-upload/FileUpload.js +2 -1
- package/dist/file-upload/FileUploadAnatomy.d.cts +2 -1
- package/dist/file-upload/FileUploadAnatomy.d.ts +2 -1
- package/dist/file-upload/FileUploadClear.d.cts +6 -3
- package/dist/file-upload/FileUploadClear.d.ts +6 -3
- package/dist/file-upload/FileUploadDropzone.d.cts +6 -8
- package/dist/file-upload/FileUploadDropzone.d.ts +6 -8
- package/dist/file-upload/FileUploadInput.d.cts +9 -7
- package/dist/file-upload/FileUploadInput.d.ts +9 -7
- package/dist/file-upload/FileUploadItem.d.cts +10 -22
- package/dist/file-upload/FileUploadItem.d.ts +10 -22
- package/dist/file-upload/FileUploadItemDelete.d.cts +6 -5
- package/dist/file-upload/FileUploadItemDelete.d.ts +6 -5
- package/dist/file-upload/FileUploadItemGroup.d.cts +5 -2
- package/dist/file-upload/FileUploadItemGroup.d.ts +5 -2
- package/dist/file-upload/FileUploadItemName.d.cts +5 -2
- package/dist/file-upload/FileUploadItemName.d.ts +5 -2
- package/dist/file-upload/FileUploadItemPreview.d.cts +5 -2
- package/dist/file-upload/FileUploadItemPreview.d.ts +5 -2
- package/dist/file-upload/FileUploadItemSizeText.d.cts +6 -8
- package/dist/file-upload/FileUploadItemSizeText.d.ts +6 -8
- package/dist/file-upload/FileUploadLabel.d.cts +4 -1
- package/dist/file-upload/FileUploadLabel.d.ts +4 -1
- package/dist/file-upload/FileUploadTrigger.d.cts +6 -7
- package/dist/file-upload/FileUploadTrigger.d.ts +6 -7
- package/dist/file-upload/focus.d.cts +0 -7
- package/dist/file-upload/focus.d.ts +0 -7
- package/dist/file-upload/types.d.cts +45 -42
- package/dist/file-upload/types.d.ts +45 -42
- package/dist/floating-panel/FloatingPanel.cjs +2 -1
- package/dist/floating-panel/FloatingPanel.d.cts +7 -63
- package/dist/floating-panel/FloatingPanel.d.ts +7 -63
- package/dist/floating-panel/FloatingPanel.js +2 -1
- package/dist/floating-panel/FloatingPanelAnatomy.d.cts +4 -4
- package/dist/floating-panel/FloatingPanelAnatomy.d.ts +4 -4
- package/dist/floating-panel/FloatingPanelCloseTrigger.d.cts +5 -2
- package/dist/floating-panel/FloatingPanelCloseTrigger.d.ts +5 -2
- package/dist/floating-panel/FloatingPanelContent.d.cts +6 -13
- package/dist/floating-panel/FloatingPanelContent.d.ts +6 -13
- package/dist/floating-panel/FloatingPanelHeader.d.cts +5 -4
- package/dist/floating-panel/FloatingPanelHeader.d.ts +5 -4
- package/dist/floating-panel/FloatingPanelPortal.d.cts +2 -1
- package/dist/floating-panel/FloatingPanelPortal.d.ts +2 -1
- package/dist/floating-panel/FloatingPanelResizeTrigger.d.cts +4 -1
- package/dist/floating-panel/FloatingPanelResizeTrigger.d.ts +4 -1
- package/dist/floating-panel/FloatingPanelStageTrigger.d.cts +6 -5
- package/dist/floating-panel/FloatingPanelStageTrigger.d.ts +6 -5
- package/dist/floating-panel/FloatingPanelTitle.d.cts +5 -5
- package/dist/floating-panel/FloatingPanelTitle.d.ts +5 -5
- package/dist/floating-panel/FloatingPanelTrigger.d.cts +5 -2
- package/dist/floating-panel/FloatingPanelTrigger.d.ts +5 -2
- package/dist/floating-panel/types.d.cts +58 -99
- package/dist/floating-panel/types.d.ts +58 -99
- package/dist/form/Form.cjs +2 -1
- package/dist/form/Form.d.cts +19 -26
- package/dist/form/Form.d.ts +19 -26
- package/dist/form/Form.js +2 -1
- package/dist/form/FormAnatomy.d.cts +7 -18
- package/dist/form/FormAnatomy.d.ts +7 -18
- package/dist/form/FormControl.d.cts +8 -7
- package/dist/form/FormControl.d.ts +8 -7
- package/dist/form/FormErrorSummary.d.cts +6 -5
- package/dist/form/FormErrorSummary.d.ts +6 -5
- package/dist/form/FormField.d.cts +12 -11
- package/dist/form/FormField.d.ts +12 -11
- package/dist/form/FormLabel.d.cts +5 -2
- package/dist/form/FormLabel.d.ts +5 -2
- package/dist/form/FormMessage.d.cts +5 -6
- package/dist/form/FormMessage.d.ts +5 -6
- package/dist/form/FormSubmit.d.cts +5 -2
- package/dist/form/FormSubmit.d.ts +5 -2
- package/dist/form/serverErrors.d.cts +1 -1
- package/dist/form/serverErrors.d.ts +1 -1
- package/dist/form/types.d.cts +41 -103
- package/dist/form/types.d.ts +41 -103
- package/dist/heading/Heading.cjs +2 -1
- package/dist/heading/Heading.d.cts +6 -5
- package/dist/heading/Heading.d.ts +6 -5
- package/dist/heading/Heading.js +2 -1
- package/dist/heading/types.d.cts +7 -5
- package/dist/heading/types.d.ts +7 -5
- package/dist/image/Image.cjs +2 -1
- package/dist/image/Image.d.cts +5 -4
- package/dist/image/Image.d.ts +5 -4
- package/dist/image/Image.js +2 -1
- package/dist/image/types.d.cts +4 -4
- package/dist/image/types.d.ts +4 -4
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +17 -34
- package/dist/index.d.ts +17 -34
- package/dist/index.js +2 -1
- package/dist/kbd/Kbd.cjs +2 -1
- package/dist/kbd/Kbd.d.cts +6 -13
- package/dist/kbd/Kbd.d.ts +6 -13
- package/dist/kbd/Kbd.js +2 -1
- package/dist/kbd/types.d.cts +5 -0
- package/dist/kbd/types.d.ts +5 -0
- package/dist/label/Label.cjs +2 -1
- package/dist/label/Label.d.cts +5 -2
- package/dist/label/Label.d.ts +5 -2
- package/dist/label/Label.js +2 -1
- package/dist/link/Link.cjs +2 -1
- package/dist/link/Link.d.cts +6 -6
- package/dist/link/Link.d.ts +6 -6
- package/dist/link/Link.js +2 -1
- package/dist/link/types.d.cts +4 -4
- package/dist/link/types.d.ts +4 -4
- package/dist/list/List.cjs +2 -1
- package/dist/list/List.d.cts +19 -12
- package/dist/list/List.d.ts +19 -12
- package/dist/list/List.js +2 -1
- package/dist/list/ListAnatomy.d.cts +10 -0
- package/dist/list/ListAnatomy.d.ts +10 -0
- package/dist/list/ListDescription.d.cts +16 -0
- package/dist/list/ListDescription.d.ts +16 -0
- package/dist/list/ListItem.d.cts +10 -3
- package/dist/list/ListItem.d.ts +10 -3
- package/dist/list/ListTerm.d.cts +14 -0
- package/dist/list/ListTerm.d.ts +14 -0
- package/dist/list/index.d.cts +3 -1
- package/dist/list/index.d.ts +3 -1
- package/dist/list/types.d.cts +44 -12
- package/dist/list/types.d.ts +44 -12
- package/dist/listbox/Listbox.cjs +2 -1
- package/dist/listbox/Listbox.d.cts +9 -26
- package/dist/listbox/Listbox.d.ts +9 -26
- package/dist/listbox/Listbox.js +2 -1
- package/dist/listbox/ListboxAnatomy.d.cts +3 -9
- package/dist/listbox/ListboxAnatomy.d.ts +3 -9
- package/dist/listbox/ListboxGroup.d.cts +7 -12
- package/dist/listbox/ListboxGroup.d.ts +7 -12
- package/dist/listbox/ListboxItem.d.cts +9 -24
- package/dist/listbox/ListboxItem.d.ts +9 -24
- package/dist/listbox/ListboxItemIndicator.d.cts +6 -6
- package/dist/listbox/ListboxItemIndicator.d.ts +6 -6
- package/dist/listbox/ListboxLabel.d.cts +6 -4
- package/dist/listbox/ListboxLabel.d.ts +6 -4
- package/dist/listbox/primitives.d.cts +1 -2
- package/dist/listbox/primitives.d.ts +1 -2
- package/dist/listbox/types.d.cts +52 -68
- package/dist/listbox/types.d.ts +52 -68
- package/dist/loading-overlay/LoadingOverlay.cjs +2 -1
- package/dist/loading-overlay/LoadingOverlay.d.cts +13 -54
- package/dist/loading-overlay/LoadingOverlay.d.ts +13 -54
- package/dist/loading-overlay/LoadingOverlay.js +2 -1
- package/dist/loading-overlay/LoadingOverlayAnatomy.d.cts +5 -1
- package/dist/loading-overlay/LoadingOverlayAnatomy.d.ts +5 -1
- package/dist/loading-overlay/LoadingOverlayBackdrop.d.cts +5 -2
- package/dist/loading-overlay/LoadingOverlayBackdrop.d.ts +5 -2
- package/dist/loading-overlay/LoadingOverlayContent.d.cts +6 -5
- package/dist/loading-overlay/LoadingOverlayContent.d.ts +6 -5
- package/dist/loading-overlay/types.d.cts +28 -41
- package/dist/loading-overlay/types.d.ts +28 -41
- package/dist/mentions/Mentions.cjs +2 -0
- package/dist/mentions/Mentions.d.cts +48 -0
- package/dist/mentions/Mentions.d.ts +48 -0
- package/dist/mentions/Mentions.js +2 -0
- package/dist/mentions/MentionsAnatomy.d.cts +14 -0
- package/dist/mentions/MentionsAnatomy.d.ts +14 -0
- package/dist/mentions/MentionsContent.d.cts +25 -0
- package/dist/mentions/MentionsContent.d.ts +25 -0
- package/dist/mentions/MentionsEmpty.d.cts +16 -0
- package/dist/mentions/MentionsEmpty.d.ts +16 -0
- package/dist/mentions/MentionsInput.d.cts +34 -0
- package/dist/mentions/MentionsInput.d.ts +34 -0
- package/dist/mentions/MentionsItem.d.cts +21 -0
- package/dist/mentions/MentionsItem.d.ts +21 -0
- package/dist/mentions/MentionsPortal.d.cts +20 -0
- package/dist/mentions/MentionsPortal.d.ts +20 -0
- package/dist/mentions/caret-rect.d.cts +9 -0
- package/dist/mentions/caret-rect.d.ts +9 -0
- package/dist/mentions/index.d.cts +3 -0
- package/dist/mentions/index.d.ts +3 -0
- package/dist/mentions/primitives.d.cts +25 -0
- package/dist/mentions/primitives.d.ts +25 -0
- package/dist/mentions/types.d.cts +367 -0
- package/dist/mentions/types.d.ts +367 -0
- package/dist/menu/Menu.cjs +2 -0
- package/dist/menu/Menu.d.cts +75 -0
- package/dist/menu/Menu.d.ts +75 -0
- package/dist/menu/Menu.js +2 -0
- package/dist/menu/MenuAnatomy.d.cts +20 -0
- package/dist/menu/MenuAnatomy.d.ts +20 -0
- package/dist/menu/MenuCheckboxItem.d.cts +17 -0
- package/dist/menu/MenuCheckboxItem.d.ts +17 -0
- package/dist/menu/MenuContent.d.cts +21 -0
- package/dist/menu/MenuContent.d.ts +21 -0
- package/dist/menu/MenuGroup.d.cts +18 -0
- package/dist/menu/MenuGroup.d.ts +18 -0
- package/dist/menu/MenuItem.d.cts +26 -0
- package/dist/menu/MenuItem.d.ts +26 -0
- package/dist/menu/MenuItemIndicator.d.cts +17 -0
- package/dist/menu/MenuItemIndicator.d.ts +17 -0
- package/dist/menu/MenuLabel.d.cts +15 -0
- package/dist/menu/MenuLabel.d.ts +15 -0
- package/dist/menu/MenuPortal.d.cts +19 -0
- package/dist/menu/MenuPortal.d.ts +19 -0
- package/dist/menu/MenuRadioGroup.d.cts +22 -0
- package/dist/menu/MenuRadioGroup.d.ts +22 -0
- package/dist/menu/MenuRadioItem.d.cts +17 -0
- package/dist/menu/MenuRadioItem.d.ts +17 -0
- package/dist/menu/MenuSeparator.d.cts +17 -0
- package/dist/menu/MenuSeparator.d.ts +17 -0
- package/dist/menu/MenuShortcut.d.cts +17 -0
- package/dist/menu/MenuShortcut.d.ts +17 -0
- package/dist/menu/MenuSub.d.cts +37 -0
- package/dist/menu/MenuSub.d.ts +37 -0
- package/dist/menu/MenuTrigger.d.cts +19 -0
- package/dist/menu/MenuTrigger.d.ts +19 -0
- package/dist/menu/index.d.cts +2 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/primitives.d.cts +40 -0
- package/dist/menu/primitives.d.ts +40 -0
- package/dist/menu/types.d.cts +397 -0
- package/dist/menu/types.d.ts +397 -0
- package/dist/menubar/Menubar.cjs +2 -1
- package/dist/menubar/Menubar.d.cts +19 -23
- package/dist/menubar/Menubar.d.ts +19 -23
- package/dist/menubar/Menubar.js +2 -1
- package/dist/menubar/MenubarAnatomy.d.cts +7 -11
- package/dist/menubar/MenubarAnatomy.d.ts +7 -11
- package/dist/menubar/MenubarCheckboxItem.d.cts +7 -5
- package/dist/menubar/MenubarCheckboxItem.d.ts +7 -5
- package/dist/menubar/MenubarContent.d.cts +6 -11
- package/dist/menubar/MenubarContent.d.ts +6 -11
- package/dist/menubar/MenubarGroup.d.cts +8 -9
- package/dist/menubar/MenubarGroup.d.ts +8 -9
- package/dist/menubar/MenubarItem.d.cts +6 -22
- package/dist/menubar/MenubarItem.d.ts +6 -22
- package/dist/menubar/MenubarItemIndicator.d.cts +7 -6
- package/dist/menubar/MenubarItemIndicator.d.ts +7 -6
- package/dist/menubar/MenubarLabel.d.cts +8 -8
- package/dist/menubar/MenubarLabel.d.ts +8 -8
- package/dist/menubar/MenubarMenu.d.cts +5 -9
- package/dist/menubar/MenubarMenu.d.ts +5 -9
- package/dist/menubar/MenubarPortal.d.cts +4 -5
- package/dist/menubar/MenubarPortal.d.ts +4 -5
- package/dist/menubar/MenubarRadioGroup.d.cts +7 -10
- package/dist/menubar/MenubarRadioGroup.d.ts +7 -10
- package/dist/menubar/MenubarRadioItem.d.cts +6 -5
- package/dist/menubar/MenubarRadioItem.d.ts +6 -5
- package/dist/menubar/MenubarSeparator.d.cts +8 -6
- package/dist/menubar/MenubarSeparator.d.ts +8 -6
- package/dist/menubar/MenubarShortcut.d.cts +7 -5
- package/dist/menubar/MenubarShortcut.d.ts +7 -5
- package/dist/menubar/MenubarSub.d.cts +14 -16
- package/dist/menubar/MenubarSub.d.ts +14 -16
- package/dist/menubar/MenubarTrigger.d.cts +6 -7
- package/dist/menubar/MenubarTrigger.d.ts +6 -7
- package/dist/menubar/types.d.cts +81 -83
- package/dist/menubar/types.d.ts +81 -83
- package/dist/navigation-menu/NavigationMenu.cjs +2 -1
- package/dist/navigation-menu/NavigationMenu.d.cts +8 -29
- package/dist/navigation-menu/NavigationMenu.d.ts +8 -29
- package/dist/navigation-menu/NavigationMenu.js +2 -1
- package/dist/navigation-menu/NavigationMenuAnatomy.d.cts +3 -9
- package/dist/navigation-menu/NavigationMenuAnatomy.d.ts +3 -9
- package/dist/navigation-menu/NavigationMenuContent.d.cts +5 -6
- package/dist/navigation-menu/NavigationMenuContent.d.ts +5 -6
- package/dist/navigation-menu/NavigationMenuIndicator.d.cts +6 -5
- package/dist/navigation-menu/NavigationMenuIndicator.d.ts +6 -5
- package/dist/navigation-menu/NavigationMenuItem.d.cts +7 -7
- package/dist/navigation-menu/NavigationMenuItem.d.ts +7 -7
- package/dist/navigation-menu/NavigationMenuLink.d.cts +6 -5
- package/dist/navigation-menu/NavigationMenuLink.d.ts +6 -5
- package/dist/navigation-menu/NavigationMenuList.d.cts +6 -10
- package/dist/navigation-menu/NavigationMenuList.d.ts +6 -10
- package/dist/navigation-menu/NavigationMenuTrigger.d.cts +5 -9
- package/dist/navigation-menu/NavigationMenuTrigger.d.ts +5 -9
- package/dist/navigation-menu/types.d.cts +23 -30
- package/dist/navigation-menu/types.d.ts +23 -30
- package/dist/number-field/NumberField.cjs +2 -1
- package/dist/number-field/NumberField.d.cts +11 -12
- package/dist/number-field/NumberField.d.ts +11 -12
- package/dist/number-field/NumberField.js +2 -1
- package/dist/number-field/NumberFieldAnatomy.d.cts +8 -11
- package/dist/number-field/NumberFieldAnatomy.d.ts +8 -11
- package/dist/number-field/NumberFieldDecrement.d.cts +6 -12
- package/dist/number-field/NumberFieldDecrement.d.ts +6 -12
- package/dist/number-field/NumberFieldIncrement.d.cts +7 -13
- package/dist/number-field/NumberFieldIncrement.d.ts +7 -13
- package/dist/number-field/NumberFieldInput.d.cts +5 -4
- package/dist/number-field/NumberFieldInput.d.ts +5 -4
- package/dist/number-field/primitives.d.cts +1 -2
- package/dist/number-field/primitives.d.ts +1 -2
- package/dist/number-field/types.d.cts +40 -50
- package/dist/number-field/types.d.ts +40 -50
- package/dist/pagination/Pagination.cjs +2 -1
- package/dist/pagination/Pagination.d.cts +8 -50
- package/dist/pagination/Pagination.d.ts +8 -50
- package/dist/pagination/Pagination.js +2 -1
- package/dist/pagination/PaginationAnatomy.d.cts +4 -3
- package/dist/pagination/PaginationAnatomy.d.ts +4 -3
- package/dist/pagination/PaginationEllipsis.d.cts +6 -5
- package/dist/pagination/PaginationEllipsis.d.ts +6 -5
- package/dist/pagination/PaginationFirst.d.cts +5 -2
- package/dist/pagination/PaginationFirst.d.ts +5 -2
- package/dist/pagination/PaginationItem.d.cts +5 -2
- package/dist/pagination/PaginationItem.d.ts +5 -2
- package/dist/pagination/PaginationLast.d.cts +5 -2
- package/dist/pagination/PaginationLast.d.ts +5 -2
- package/dist/pagination/PaginationList.d.cts +5 -2
- package/dist/pagination/PaginationList.d.ts +5 -2
- package/dist/pagination/PaginationNext.d.cts +5 -2
- package/dist/pagination/PaginationNext.d.ts +5 -2
- package/dist/pagination/PaginationPage.d.cts +6 -6
- package/dist/pagination/PaginationPage.d.ts +6 -6
- package/dist/pagination/PaginationPrevious.d.cts +5 -2
- package/dist/pagination/PaginationPrevious.d.ts +5 -2
- package/dist/pagination/PaginationStatus.d.cts +6 -11
- package/dist/pagination/PaginationStatus.d.ts +6 -11
- package/dist/pagination/labels.d.cts +11 -9
- package/dist/pagination/labels.d.ts +11 -9
- package/dist/pagination/pages.d.cts +4 -13
- package/dist/pagination/pages.d.ts +4 -13
- package/dist/pagination/types.d.cts +29 -23
- package/dist/pagination/types.d.ts +29 -23
- package/dist/password-input/PasswordInput.cjs +2 -1
- package/dist/password-input/PasswordInput.d.cts +11 -25
- package/dist/password-input/PasswordInput.d.ts +11 -25
- package/dist/password-input/PasswordInput.js +2 -1
- package/dist/password-input/PasswordInputAnatomy.d.cts +9 -11
- package/dist/password-input/PasswordInputAnatomy.d.ts +9 -11
- package/dist/password-input/PasswordInputField.d.cts +6 -6
- package/dist/password-input/PasswordInputField.d.ts +6 -6
- package/dist/password-input/PasswordInputToggle.d.cts +6 -5
- package/dist/password-input/PasswordInputToggle.d.ts +6 -5
- package/dist/password-input/index.d.cts +1 -1
- package/dist/password-input/index.d.ts +1 -1
- package/dist/password-input/types.d.cts +28 -26
- package/dist/password-input/types.d.ts +28 -26
- package/dist/pin-input/PinInput.cjs +2 -1
- package/dist/pin-input/PinInput.d.cts +10 -25
- package/dist/pin-input/PinInput.d.ts +10 -25
- package/dist/pin-input/PinInput.js +2 -1
- package/dist/pin-input/PinInputAnatomy.d.cts +3 -7
- package/dist/pin-input/PinInputAnatomy.d.ts +3 -7
- package/dist/pin-input/PinInputField.d.cts +5 -9
- package/dist/pin-input/PinInputField.d.ts +5 -9
- package/dist/pin-input/index.d.cts +2 -2
- package/dist/pin-input/index.d.ts +2 -2
- package/dist/pin-input/slots.d.cts +0 -7
- package/dist/pin-input/slots.d.ts +0 -7
- package/dist/pin-input/types.d.cts +48 -42
- package/dist/pin-input/types.d.ts +48 -42
- package/dist/popover/Popover.cjs +2 -1
- package/dist/popover/Popover.d.cts +24 -53
- package/dist/popover/Popover.d.ts +24 -53
- package/dist/popover/Popover.js +2 -1
- package/dist/popover/PopoverAnatomy.d.cts +8 -15
- package/dist/popover/PopoverAnatomy.d.ts +8 -15
- package/dist/popover/PopoverClose.d.cts +5 -2
- package/dist/popover/PopoverClose.d.ts +5 -2
- package/dist/popover/PopoverContent.d.cts +5 -31
- package/dist/popover/PopoverContent.d.ts +5 -31
- package/dist/popover/PopoverDescription.d.cts +5 -6
- package/dist/popover/PopoverDescription.d.ts +5 -6
- package/dist/popover/PopoverPortal.d.cts +3 -3
- package/dist/popover/PopoverPortal.d.ts +3 -3
- package/dist/popover/PopoverProvider.d.cts +20 -0
- package/dist/popover/PopoverProvider.d.ts +20 -0
- package/dist/popover/PopoverTitle.d.cts +5 -5
- package/dist/popover/PopoverTitle.d.ts +5 -5
- package/dist/popover/PopoverTrigger.d.cts +14 -6
- package/dist/popover/PopoverTrigger.d.ts +14 -6
- package/dist/popover/primitives.d.cts +3 -2
- package/dist/popover/primitives.d.ts +3 -2
- package/dist/popover/types.d.cts +144 -146
- package/dist/popover/types.d.ts +144 -146
- package/dist/primitives/accordion.cjs +1 -0
- package/dist/primitives/accordion.js +1 -0
- package/dist/primitives/alert.cjs +1 -0
- package/dist/primitives/alert.js +1 -0
- package/dist/primitives/angle-slider.cjs +1 -0
- package/dist/primitives/angle-slider.js +1 -0
- package/dist/primitives/autocomplete.cjs +1 -0
- package/dist/primitives/autocomplete.js +1 -0
- package/dist/primitives/avatar.cjs +1 -0
- package/dist/primitives/avatar.js +1 -0
- package/dist/primitives/badge.cjs +2 -1
- package/dist/primitives/badge.js +2 -1
- package/dist/primitives/breadcrumb.cjs +1 -0
- package/dist/primitives/breadcrumb.js +1 -0
- package/dist/primitives/calendar.cjs +1 -0
- package/dist/primitives/calendar.js +1 -0
- package/dist/primitives/card.cjs +1 -0
- package/dist/primitives/card.js +1 -0
- package/dist/primitives/carousel.cjs +1 -0
- package/dist/primitives/carousel.js +1 -0
- package/dist/primitives/checkbox-card.cjs +1 -0
- package/dist/primitives/checkbox-card.js +1 -0
- package/dist/primitives/checkbox-group.cjs +1 -0
- package/dist/primitives/checkbox-group.js +1 -0
- package/dist/primitives/checkbox.cjs +1 -0
- package/dist/primitives/checkbox.js +1 -0
- package/dist/primitives/clipboard.cjs +1 -0
- package/dist/primitives/clipboard.js +1 -0
- package/dist/primitives/collapsible.cjs +1 -0
- package/dist/primitives/collapsible.js +1 -0
- package/dist/primitives/color-picker.cjs +1 -0
- package/dist/primitives/color-picker.js +1 -0
- package/dist/primitives/combobox.cjs +1 -0
- package/dist/primitives/combobox.js +1 -0
- package/dist/primitives/command.cjs +1 -0
- package/dist/primitives/command.js +1 -0
- package/dist/primitives/date-picker.cjs +1 -0
- package/dist/primitives/date-picker.js +1 -0
- package/dist/primitives/dialog.cjs +2 -1
- package/dist/primitives/dialog.js +2 -1
- package/dist/primitives/drawer.cjs +2 -1
- package/dist/primitives/drawer.js +2 -1
- package/dist/primitives/editable.cjs +1 -0
- package/dist/primitives/editable.js +1 -0
- package/dist/primitives/field.cjs +1 -0
- package/dist/primitives/field.js +1 -0
- package/dist/primitives/file-upload.cjs +1 -0
- package/dist/primitives/file-upload.js +1 -0
- package/dist/primitives/floating-panel.cjs +1 -0
- package/dist/primitives/floating-panel.js +1 -0
- package/dist/primitives/form.cjs +1 -0
- package/dist/primitives/form.js +1 -0
- package/dist/primitives/listbox.cjs +1 -0
- package/dist/primitives/listbox.js +1 -0
- package/dist/primitives/loading-overlay.cjs +1 -0
- package/dist/primitives/loading-overlay.js +1 -0
- package/dist/primitives/mentions.cjs +2 -0
- package/dist/primitives/mentions.js +2 -0
- package/dist/primitives/menu.cjs +2 -0
- package/dist/primitives/menu.js +2 -0
- package/dist/primitives/menubar.cjs +1 -0
- package/dist/primitives/menubar.js +1 -0
- package/dist/primitives/navigation-menu.cjs +1 -0
- package/dist/primitives/navigation-menu.js +1 -0
- package/dist/primitives/number-field.cjs +1 -0
- package/dist/primitives/number-field.js +1 -0
- package/dist/primitives/pagination.cjs +1 -0
- package/dist/primitives/pagination.js +1 -0
- package/dist/primitives/password-input.cjs +1 -0
- package/dist/primitives/password-input.js +1 -0
- package/dist/primitives/pin-input.cjs +1 -0
- package/dist/primitives/pin-input.js +1 -0
- package/dist/primitives/popover.cjs +2 -1
- package/dist/primitives/popover.js +2 -1
- package/dist/primitives/progress.cjs +1 -0
- package/dist/primitives/progress.js +1 -0
- package/dist/primitives/qr-code.cjs +1 -0
- package/dist/primitives/qr-code.js +1 -0
- package/dist/primitives/radio-card.cjs +1 -0
- package/dist/primitives/radio-card.js +1 -0
- package/dist/primitives/radio-group.cjs +1 -0
- package/dist/primitives/radio-group.js +1 -0
- package/dist/primitives/rating.cjs +1 -0
- package/dist/primitives/rating.js +1 -0
- package/dist/primitives/resizable.cjs +1 -0
- package/dist/primitives/resizable.js +1 -0
- package/dist/primitives/scroll-area.cjs +1 -0
- package/dist/primitives/scroll-area.js +1 -0
- package/dist/primitives/select.cjs +2 -1
- package/dist/primitives/select.js +2 -1
- package/dist/primitives/slider.cjs +1 -0
- package/dist/primitives/slider.js +1 -0
- package/dist/primitives/speed-dial.cjs +1 -0
- package/dist/primitives/speed-dial.js +1 -0
- package/dist/primitives/split-button.cjs +1 -0
- package/dist/primitives/split-button.js +1 -0
- package/dist/primitives/stepper.cjs +2 -0
- package/dist/primitives/stepper.js +2 -0
- package/dist/primitives/switch.cjs +1 -0
- package/dist/primitives/switch.js +1 -0
- package/dist/primitives/table.cjs +1 -0
- package/dist/primitives/table.js +1 -0
- package/dist/primitives/tabs.cjs +1 -0
- package/dist/primitives/tabs.js +1 -0
- package/dist/primitives/tag-group.cjs +1 -0
- package/dist/primitives/tag-group.js +1 -0
- package/dist/primitives/tags-input.cjs +1 -0
- package/dist/primitives/tags-input.js +1 -0
- package/dist/primitives/text-field.cjs +1 -0
- package/dist/primitives/text-field.js +1 -0
- package/dist/primitives/timeline.cjs +1 -0
- package/dist/primitives/timeline.js +1 -0
- package/dist/primitives/toast.cjs +1 -0
- package/dist/primitives/toast.js +1 -0
- package/dist/primitives/toggle-group.cjs +2 -1
- package/dist/primitives/toggle-group.js +2 -1
- package/dist/primitives/toolbar.cjs +1 -0
- package/dist/primitives/toolbar.js +1 -0
- package/dist/primitives/tour.cjs +1 -0
- package/dist/primitives/tour.js +1 -0
- package/dist/primitives/transfer.cjs +1 -0
- package/dist/primitives/transfer.js +1 -0
- package/dist/primitives/tree-select.cjs +2 -1
- package/dist/primitives/tree-select.js +2 -1
- package/dist/primitives/tree.cjs +1 -0
- package/dist/primitives/tree.js +1 -0
- package/dist/progress/Progress.cjs +2 -1
- package/dist/progress/Progress.d.cts +22 -28
- package/dist/progress/Progress.d.ts +22 -28
- package/dist/progress/Progress.js +2 -1
- package/dist/progress/ProgressAnatomy.d.cts +4 -6
- package/dist/progress/ProgressAnatomy.d.ts +4 -6
- package/dist/progress/ProgressCircle.d.cts +14 -22
- package/dist/progress/ProgressCircle.d.ts +14 -22
- package/dist/progress/ProgressCircleIndicator.d.cts +7 -6
- package/dist/progress/ProgressCircleIndicator.d.ts +7 -6
- package/dist/progress/ProgressIndicator.d.cts +8 -5
- package/dist/progress/ProgressIndicator.d.ts +8 -5
- package/dist/progress/ProgressLabel.d.cts +5 -5
- package/dist/progress/ProgressLabel.d.ts +5 -5
- package/dist/progress/ProgressValue.d.cts +6 -5
- package/dist/progress/ProgressValue.d.ts +6 -5
- package/dist/progress/types.d.cts +65 -54
- package/dist/progress/types.d.ts +65 -54
- package/dist/qr-code/QrCode.cjs +2 -1
- package/dist/qr-code/QrCode.d.cts +8 -16
- package/dist/qr-code/QrCode.d.ts +8 -16
- package/dist/qr-code/QrCode.js +2 -1
- package/dist/qr-code/QrCodeAnatomy.d.cts +5 -4
- package/dist/qr-code/QrCodeAnatomy.d.ts +5 -4
- package/dist/qr-code/QrCodeFrame.d.cts +6 -12
- package/dist/qr-code/QrCodeFrame.d.ts +6 -12
- package/dist/qr-code/QrCodeOverlay.d.cts +6 -14
- package/dist/qr-code/QrCodeOverlay.d.ts +6 -14
- package/dist/qr-code/QrCodePattern.d.cts +6 -5
- package/dist/qr-code/QrCodePattern.d.ts +6 -5
- package/dist/qr-code/types.d.cts +17 -42
- package/dist/qr-code/types.d.ts +17 -42
- package/dist/radio-card/RadioCard.cjs +2 -1
- package/dist/radio-card/RadioCard.d.cts +13 -24
- package/dist/radio-card/RadioCard.d.ts +13 -24
- package/dist/radio-card/RadioCard.js +2 -1
- package/dist/radio-card/RadioCardAnatomy.d.cts +3 -5
- package/dist/radio-card/RadioCardAnatomy.d.ts +3 -5
- package/dist/radio-card/RadioCardControl.d.cts +5 -14
- package/dist/radio-card/RadioCardControl.d.ts +5 -14
- package/dist/radio-card/RadioCardDescription.d.cts +5 -3
- package/dist/radio-card/RadioCardDescription.d.ts +5 -3
- package/dist/radio-card/RadioCardIndicator.d.cts +6 -8
- package/dist/radio-card/RadioCardIndicator.d.ts +6 -8
- package/dist/radio-card/RadioCardLabel.d.cts +4 -5
- package/dist/radio-card/RadioCardLabel.d.ts +4 -5
- package/dist/radio-card/types.d.cts +14 -20
- package/dist/radio-card/types.d.ts +14 -20
- package/dist/radio-group/RadioGroup.cjs +2 -1
- package/dist/radio-group/RadioGroup.d.cts +11 -37
- package/dist/radio-group/RadioGroup.d.ts +11 -37
- package/dist/radio-group/RadioGroup.js +2 -1
- package/dist/radio-group/RadioGroupAnatomy.d.cts +1 -1
- package/dist/radio-group/RadioGroupAnatomy.d.ts +1 -1
- package/dist/radio-group/RadioGroupIndicator.d.cts +6 -3
- package/dist/radio-group/RadioGroupIndicator.d.ts +6 -3
- package/dist/radio-group/RadioGroupItem.d.cts +8 -12
- package/dist/radio-group/RadioGroupItem.d.ts +8 -12
- package/dist/radio-group/types.d.cts +30 -48
- package/dist/radio-group/types.d.ts +30 -48
- package/dist/rating/Rating.cjs +2 -1
- package/dist/rating/Rating.d.cts +11 -23
- package/dist/rating/Rating.d.ts +11 -23
- package/dist/rating/Rating.js +2 -1
- package/dist/rating/RatingAnatomy.d.cts +2 -2
- package/dist/rating/RatingAnatomy.d.ts +2 -2
- package/dist/rating/RatingItem.d.cts +5 -8
- package/dist/rating/RatingItem.d.ts +5 -8
- package/dist/rating/types.d.cts +34 -45
- package/dist/rating/types.d.ts +34 -45
- package/dist/resizable/Resizable.cjs +2 -1
- package/dist/resizable/Resizable.d.cts +8 -49
- package/dist/resizable/Resizable.d.ts +8 -49
- package/dist/resizable/Resizable.js +2 -1
- package/dist/resizable/ResizableAnatomy.d.cts +1 -1
- package/dist/resizable/ResizableAnatomy.d.ts +1 -1
- package/dist/resizable/ResizableHandle.d.cts +5 -17
- package/dist/resizable/ResizableHandle.d.ts +5 -17
- package/dist/resizable/ResizablePanel.d.cts +5 -3
- package/dist/resizable/ResizablePanel.d.ts +5 -3
- package/dist/resizable/layout.d.cts +5 -13
- package/dist/resizable/layout.d.ts +5 -13
- package/dist/resizable/panelDefaults.d.cts +1 -1
- package/dist/resizable/panelDefaults.d.ts +1 -1
- package/dist/resizable/primitives.d.cts +1 -1
- package/dist/resizable/primitives.d.ts +1 -1
- package/dist/resizable/types.d.cts +52 -51
- package/dist/resizable/types.d.ts +52 -51
- package/dist/scroll-area/ScrollArea.cjs +2 -1
- package/dist/scroll-area/ScrollArea.d.cts +13 -13
- package/dist/scroll-area/ScrollArea.d.ts +13 -13
- package/dist/scroll-area/ScrollArea.js +2 -1
- package/dist/scroll-area/ScrollAreaAnatomy.d.cts +3 -3
- package/dist/scroll-area/ScrollAreaAnatomy.d.ts +3 -3
- package/dist/scroll-area/ScrollAreaCorner.d.cts +6 -5
- package/dist/scroll-area/ScrollAreaCorner.d.ts +6 -5
- package/dist/scroll-area/ScrollAreaScrollbar.d.cts +5 -4
- package/dist/scroll-area/ScrollAreaScrollbar.d.ts +5 -4
- package/dist/scroll-area/ScrollAreaThumb.d.cts +5 -4
- package/dist/scroll-area/ScrollAreaThumb.d.ts +5 -4
- package/dist/scroll-area/ScrollAreaViewport.d.cts +5 -6
- package/dist/scroll-area/ScrollAreaViewport.d.ts +5 -6
- package/dist/scroll-area/types.d.cts +24 -42
- package/dist/scroll-area/types.d.ts +24 -42
- package/dist/select/Select.cjs +2 -1
- package/dist/select/Select.d.cts +41 -74
- package/dist/select/Select.d.ts +41 -74
- package/dist/select/Select.js +2 -1
- package/dist/select/SelectAll.d.cts +17 -0
- package/dist/select/SelectAll.d.ts +17 -0
- package/dist/select/SelectAnatomy.d.cts +20 -11
- package/dist/select/SelectAnatomy.d.ts +20 -11
- package/dist/select/SelectClear.d.cts +14 -0
- package/dist/select/SelectClear.d.ts +14 -0
- package/dist/select/SelectContent.d.cts +5 -5
- package/dist/select/SelectContent.d.ts +5 -5
- package/dist/select/SelectEmpty.d.cts +17 -0
- package/dist/select/SelectEmpty.d.ts +17 -0
- package/dist/select/SelectGroup.d.cts +7 -10
- package/dist/select/SelectGroup.d.ts +7 -10
- package/dist/select/SelectIcon.d.cts +6 -5
- package/dist/select/SelectIcon.d.ts +6 -5
- package/dist/select/SelectInput.d.cts +14 -0
- package/dist/select/SelectInput.d.ts +14 -0
- package/dist/select/SelectItem.d.cts +8 -18
- package/dist/select/SelectItem.d.ts +8 -18
- package/dist/select/SelectItemIndicator.d.cts +6 -4
- package/dist/select/SelectItemIndicator.d.ts +6 -4
- package/dist/select/SelectItemText.d.cts +5 -4
- package/dist/select/SelectItemText.d.ts +5 -4
- package/dist/select/SelectLabel.d.cts +5 -2
- package/dist/select/SelectLabel.d.ts +5 -2
- package/dist/select/SelectPortal.d.cts +2 -1
- package/dist/select/SelectPortal.d.ts +2 -1
- package/dist/select/SelectSeparator.d.cts +6 -4
- package/dist/select/SelectSeparator.d.ts +6 -4
- package/dist/select/SelectTag.d.cts +17 -0
- package/dist/select/SelectTag.d.ts +17 -0
- package/dist/select/SelectTagList.d.cts +21 -0
- package/dist/select/SelectTagList.d.ts +21 -0
- package/dist/select/SelectTagRemove.d.cts +17 -0
- package/dist/select/SelectTagRemove.d.ts +17 -0
- package/dist/select/SelectTrigger.d.cts +5 -17
- package/dist/select/SelectTrigger.d.ts +5 -17
- package/dist/select/SelectValue.d.cts +5 -20
- package/dist/select/SelectValue.d.ts +5 -20
- package/dist/select/SelectViewport.d.cts +6 -4
- package/dist/select/SelectViewport.d.ts +6 -4
- package/dist/select/index.d.cts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/select/primitives.d.cts +9 -2
- package/dist/select/primitives.d.ts +9 -2
- package/dist/select/types.d.cts +182 -46
- package/dist/select/types.d.ts +182 -46
- package/dist/skeleton/Skeleton.cjs +2 -1
- package/dist/skeleton/Skeleton.d.cts +6 -8
- package/dist/skeleton/Skeleton.d.ts +6 -8
- package/dist/skeleton/Skeleton.js +2 -1
- package/dist/skeleton/types.d.cts +10 -0
- package/dist/skeleton/types.d.ts +10 -0
- package/dist/slider/Slider.cjs +2 -1
- package/dist/slider/Slider.d.cts +8 -10
- package/dist/slider/Slider.d.ts +8 -10
- package/dist/slider/Slider.js +2 -1
- package/dist/slider/SliderAnatomy.d.cts +6 -8
- package/dist/slider/SliderAnatomy.d.ts +6 -8
- package/dist/slider/SliderMark.d.cts +6 -5
- package/dist/slider/SliderMark.d.ts +6 -5
- package/dist/slider/SliderRange.d.cts +6 -6
- package/dist/slider/SliderRange.d.ts +6 -6
- package/dist/slider/SliderThumb.d.cts +5 -8
- package/dist/slider/SliderThumb.d.ts +5 -8
- package/dist/slider/SliderTrack.d.cts +6 -3
- package/dist/slider/SliderTrack.d.ts +6 -3
- package/dist/slider/primitives.d.cts +1 -2
- package/dist/slider/primitives.d.ts +1 -2
- package/dist/slider/types.d.cts +41 -54
- package/dist/slider/types.d.ts +41 -54
- package/dist/speed-dial/SpeedDial.cjs +2 -1
- package/dist/speed-dial/SpeedDial.d.cts +7 -39
- package/dist/speed-dial/SpeedDial.d.ts +7 -39
- package/dist/speed-dial/SpeedDial.js +2 -1
- package/dist/speed-dial/SpeedDialAnatomy.d.cts +8 -17
- package/dist/speed-dial/SpeedDialAnatomy.d.ts +8 -17
- package/dist/speed-dial/SpeedDialContent.d.cts +5 -22
- package/dist/speed-dial/SpeedDialContent.d.ts +5 -22
- package/dist/speed-dial/SpeedDialItem.d.cts +8 -20
- package/dist/speed-dial/SpeedDialItem.d.ts +8 -20
- package/dist/speed-dial/SpeedDialItemLabel.d.cts +5 -27
- package/dist/speed-dial/SpeedDialItemLabel.d.ts +5 -27
- package/dist/speed-dial/SpeedDialOverlay.d.cts +6 -4
- package/dist/speed-dial/SpeedDialOverlay.d.ts +6 -4
- package/dist/speed-dial/SpeedDialPortal.d.cts +3 -3
- package/dist/speed-dial/SpeedDialPortal.d.ts +3 -3
- package/dist/speed-dial/SpeedDialTrigger.d.cts +6 -5
- package/dist/speed-dial/SpeedDialTrigger.d.ts +6 -5
- package/dist/speed-dial/types.d.cts +43 -29
- package/dist/speed-dial/types.d.ts +43 -29
- package/dist/spinner/Spinner.cjs +2 -1
- package/dist/spinner/Spinner.d.cts +6 -5
- package/dist/spinner/Spinner.d.ts +6 -5
- package/dist/spinner/Spinner.js +2 -1
- package/dist/spinner/types.d.cts +6 -1
- package/dist/spinner/types.d.ts +6 -1
- package/dist/split-button/SplitButton.cjs +2 -1
- package/dist/split-button/SplitButton.d.cts +6 -5
- package/dist/split-button/SplitButton.d.ts +6 -5
- package/dist/split-button/SplitButton.js +2 -1
- package/dist/split-button/SplitButtonAction.d.cts +5 -2
- package/dist/split-button/SplitButtonAction.d.ts +5 -2
- package/dist/split-button/SplitButtonAnatomy.d.cts +5 -6
- package/dist/split-button/SplitButtonAnatomy.d.ts +5 -6
- package/dist/split-button/SplitButtonTrigger.d.cts +8 -8
- package/dist/split-button/SplitButtonTrigger.d.ts +8 -8
- package/dist/split-button/primitives.d.cts +1 -1
- package/dist/split-button/primitives.d.ts +1 -1
- package/dist/split-button/types.d.cts +24 -26
- package/dist/split-button/types.d.ts +24 -26
- package/dist/stepper/Stepper.cjs +2 -0
- package/dist/stepper/Stepper.d.cts +34 -0
- package/dist/stepper/Stepper.d.ts +34 -0
- package/dist/stepper/Stepper.js +2 -0
- package/dist/stepper/StepperAnatomy.d.cts +11 -0
- package/dist/stepper/StepperAnatomy.d.ts +11 -0
- package/dist/stepper/StepperItem.d.cts +16 -0
- package/dist/stepper/StepperItem.d.ts +16 -0
- package/dist/stepper/StepperTrigger.d.cts +16 -0
- package/dist/stepper/StepperTrigger.d.ts +16 -0
- package/dist/stepper/index.d.cts +2 -0
- package/dist/stepper/index.d.ts +2 -0
- package/dist/stepper/primitives.d.cts +22 -0
- package/dist/stepper/primitives.d.ts +22 -0
- package/dist/stepper/types.d.cts +133 -0
- package/dist/stepper/types.d.ts +133 -0
- package/dist/switch/Switch.cjs +2 -1
- package/dist/switch/Switch.d.cts +12 -34
- package/dist/switch/Switch.d.ts +12 -34
- package/dist/switch/Switch.js +2 -1
- package/dist/switch/SwitchAnatomy.d.cts +3 -2
- package/dist/switch/SwitchAnatomy.d.ts +3 -2
- package/dist/switch/SwitchLabel.d.cts +6 -17
- package/dist/switch/SwitchLabel.d.ts +6 -17
- package/dist/switch/SwitchThumb.d.cts +6 -4
- package/dist/switch/SwitchThumb.d.ts +6 -4
- package/dist/switch/types.d.cts +25 -26
- package/dist/switch/types.d.ts +25 -26
- package/dist/table/Table.cjs +2 -1
- package/dist/table/Table.d.cts +18 -63
- package/dist/table/Table.d.ts +18 -63
- package/dist/table/Table.js +2 -1
- package/dist/table/TableAnatomy.d.cts +13 -11
- package/dist/table/TableAnatomy.d.ts +13 -11
- package/dist/table/TableBody.d.cts +5 -2
- package/dist/table/TableBody.d.ts +5 -2
- package/dist/table/TableCaption.d.cts +5 -2
- package/dist/table/TableCaption.d.ts +5 -2
- package/dist/table/TableCell.d.cts +6 -4
- package/dist/table/TableCell.d.ts +6 -4
- package/dist/table/TableColumnHeaderSortTrigger.d.cts +6 -5
- package/dist/table/TableColumnHeaderSortTrigger.d.ts +6 -5
- package/dist/table/TableColumnResizeTrigger.d.cts +4 -1
- package/dist/table/TableColumnResizeTrigger.d.ts +4 -1
- package/dist/table/TableEmpty.d.cts +6 -3
- package/dist/table/TableEmpty.d.ts +6 -3
- package/dist/table/TableExpandTrigger.d.cts +6 -3
- package/dist/table/TableExpandTrigger.d.ts +6 -3
- package/dist/table/TableExpandedRow.d.cts +6 -3
- package/dist/table/TableExpandedRow.d.ts +6 -3
- package/dist/table/TableFooter.d.cts +5 -2
- package/dist/table/TableFooter.d.ts +5 -2
- package/dist/table/TableHeader.d.cts +5 -2
- package/dist/table/TableHeader.d.ts +5 -2
- package/dist/table/TableHeaderCell.d.cts +5 -7
- package/dist/table/TableHeaderCell.d.ts +5 -7
- package/dist/table/TableRow.d.cts +6 -5
- package/dist/table/TableRow.d.ts +6 -5
- package/dist/table/TableRowSelectCheckbox.d.cts +8 -7
- package/dist/table/TableRowSelectCheckbox.d.ts +8 -7
- package/dist/table/TableSelectAllCheckbox.d.cts +9 -8
- package/dist/table/TableSelectAllCheckbox.d.ts +9 -8
- package/dist/table/TableSortIndicator.d.cts +6 -5
- package/dist/table/TableSortIndicator.d.ts +6 -5
- package/dist/table/types.d.cts +97 -81
- package/dist/table/types.d.ts +97 -81
- package/dist/tabs/Tabs.cjs +2 -1
- package/dist/tabs/Tabs.d.cts +8 -20
- package/dist/tabs/Tabs.d.ts +8 -20
- package/dist/tabs/Tabs.js +2 -1
- package/dist/tabs/TabsAnatomy.d.cts +6 -11
- package/dist/tabs/TabsAnatomy.d.ts +6 -11
- package/dist/tabs/TabsContent.d.cts +5 -6
- package/dist/tabs/TabsContent.d.ts +5 -6
- package/dist/tabs/TabsList.d.cts +5 -4
- package/dist/tabs/TabsList.d.ts +5 -4
- package/dist/tabs/TabsTrigger.d.cts +5 -4
- package/dist/tabs/TabsTrigger.d.ts +5 -4
- package/dist/tabs/types.d.cts +38 -98
- package/dist/tabs/types.d.ts +38 -98
- package/dist/tag-group/TagGroup.cjs +2 -1
- package/dist/tag-group/TagGroup.d.cts +11 -38
- package/dist/tag-group/TagGroup.d.ts +11 -38
- package/dist/tag-group/TagGroup.js +2 -1
- package/dist/tag-group/TagGroupAnatomy.d.cts +4 -9
- package/dist/tag-group/TagGroupAnatomy.d.ts +4 -9
- package/dist/tag-group/TagGroupEmpty.d.cts +6 -5
- package/dist/tag-group/TagGroupEmpty.d.ts +6 -5
- package/dist/tag-group/TagGroupLabel.d.cts +4 -1
- package/dist/tag-group/TagGroupLabel.d.ts +4 -1
- package/dist/tag-group/TagGroupList.d.cts +5 -4
- package/dist/tag-group/TagGroupList.d.ts +5 -4
- package/dist/tag-group/primitives.d.cts +4 -4
- package/dist/tag-group/primitives.d.ts +4 -4
- package/dist/tag-group/types.d.cts +13 -8
- package/dist/tag-group/types.d.ts +13 -8
- package/dist/tags-input/TagsInput.cjs +3 -2
- package/dist/tags-input/TagsInput.d.cts +19 -24
- package/dist/tags-input/TagsInput.d.ts +19 -24
- package/dist/tags-input/TagsInput.js +3 -2
- package/dist/tags-input/TagsInputAnatomy.d.cts +4 -4
- package/dist/tags-input/TagsInputAnatomy.d.ts +4 -4
- package/dist/tags-input/TagsInputClear.d.cts +6 -4
- package/dist/tags-input/TagsInputClear.d.ts +6 -4
- package/dist/tags-input/TagsInputInput.d.cts +6 -5
- package/dist/tags-input/TagsInputInput.d.ts +6 -5
- package/dist/tags-input/TagsInputItem.d.cts +5 -9
- package/dist/tags-input/TagsInputItem.d.ts +5 -9
- package/dist/tags-input/TagsInputItemDelete.d.cts +6 -15
- package/dist/tags-input/TagsInputItemDelete.d.ts +6 -15
- package/dist/tags-input/TagsInputItemInput.d.cts +5 -12
- package/dist/tags-input/TagsInputItemInput.d.ts +5 -12
- package/dist/tags-input/types.d.cts +54 -106
- package/dist/tags-input/types.d.ts +54 -106
- package/dist/text/Text.cjs +2 -1
- package/dist/text/Text.d.cts +6 -7
- package/dist/text/Text.d.ts +6 -7
- package/dist/text/Text.js +2 -1
- package/dist/text/types.d.cts +17 -4
- package/dist/text/types.d.ts +17 -4
- package/dist/text-field/TextField.cjs +2 -1
- package/dist/text-field/TextField.d.cts +11 -27
- package/dist/text-field/TextField.d.ts +11 -27
- package/dist/text-field/TextField.js +2 -1
- package/dist/text-field/TextFieldAnatomy.d.cts +12 -11
- package/dist/text-field/TextFieldAnatomy.d.ts +12 -11
- package/dist/text-field/TextFieldClearButton.d.cts +6 -3
- package/dist/text-field/TextFieldClearButton.d.ts +6 -3
- package/dist/text-field/TextFieldInput.d.cts +6 -4
- package/dist/text-field/TextFieldInput.d.ts +6 -4
- package/dist/text-field/TextFieldSlot.d.cts +6 -4
- package/dist/text-field/TextFieldSlot.d.ts +6 -4
- package/dist/text-field/types.d.cts +60 -51
- package/dist/text-field/types.d.ts +60 -51
- package/dist/textarea/Textarea.cjs +2 -1
- package/dist/textarea/Textarea.d.cts +5 -5
- package/dist/textarea/Textarea.d.ts +5 -5
- package/dist/textarea/Textarea.js +2 -1
- package/dist/textarea/types.d.cts +18 -15
- package/dist/textarea/types.d.ts +18 -15
- package/dist/time/Time.cjs +2 -1
- package/dist/time/Time.d.cts +6 -5
- package/dist/time/Time.d.ts +6 -5
- package/dist/time/Time.js +2 -1
- package/dist/time/types.d.cts +6 -8
- package/dist/time/types.d.ts +6 -8
- package/dist/time-field/TimeField.cjs +2 -1
- package/dist/time-field/TimeField.d.cts +8 -15
- package/dist/time-field/TimeField.d.ts +8 -15
- package/dist/time-field/TimeField.js +2 -1
- package/dist/time-field/types.d.cts +38 -45
- package/dist/time-field/types.d.ts +38 -45
- package/dist/timeline/Timeline.cjs +2 -1
- package/dist/timeline/Timeline.d.cts +6 -3
- package/dist/timeline/Timeline.d.ts +6 -3
- package/dist/timeline/Timeline.js +2 -1
- package/dist/timeline/TimelineAnatomy.d.cts +3 -6
- package/dist/timeline/TimelineAnatomy.d.ts +3 -6
- package/dist/timeline/TimelineContent.d.cts +6 -4
- package/dist/timeline/TimelineContent.d.ts +6 -4
- package/dist/timeline/TimelineIndicator.d.cts +5 -8
- package/dist/timeline/TimelineIndicator.d.ts +5 -8
- package/dist/timeline/TimelineItem.d.cts +5 -2
- package/dist/timeline/TimelineItem.d.ts +5 -2
- package/dist/timeline/TimelineOpposite.d.cts +6 -5
- package/dist/timeline/TimelineOpposite.d.ts +6 -5
- package/dist/timeline/TimelineSeparator.d.cts +5 -2
- package/dist/timeline/TimelineSeparator.d.ts +5 -2
- package/dist/timeline/primitives.d.cts +1 -2
- package/dist/timeline/primitives.d.ts +1 -2
- package/dist/timeline/types.d.cts +20 -12
- package/dist/timeline/types.d.ts +20 -12
- package/dist/toast/Toast.cjs +2 -1
- package/dist/toast/Toast.d.cts +8 -13
- package/dist/toast/Toast.d.ts +8 -13
- package/dist/toast/Toast.js +2 -1
- package/dist/toast/ToastAction.d.cts +5 -2
- package/dist/toast/ToastAction.d.ts +5 -2
- package/dist/toast/ToastClose.d.cts +6 -14
- package/dist/toast/ToastClose.d.ts +6 -14
- package/dist/toast/ToastDescription.d.cts +4 -1
- package/dist/toast/ToastDescription.d.ts +4 -1
- package/dist/toast/ToastProvider.d.cts +4 -10
- package/dist/toast/ToastProvider.d.ts +4 -10
- package/dist/toast/ToastTitle.d.cts +5 -2
- package/dist/toast/ToastTitle.d.ts +5 -2
- package/dist/toast/ToastViewport.d.cts +5 -7
- package/dist/toast/ToastViewport.d.ts +5 -7
- package/dist/toast/Toaster.d.cts +3 -7
- package/dist/toast/Toaster.d.ts +3 -7
- package/dist/toast/region-focus.d.cts +3 -14
- package/dist/toast/region-focus.d.ts +3 -14
- package/dist/toast/types.d.cts +33 -39
- package/dist/toast/types.d.ts +33 -39
- package/dist/toggle/Toggle.cjs +2 -1
- package/dist/toggle/Toggle.d.cts +6 -11
- package/dist/toggle/Toggle.d.ts +6 -11
- package/dist/toggle/Toggle.js +2 -1
- package/dist/toggle/types.d.cts +9 -4
- package/dist/toggle/types.d.ts +9 -4
- package/dist/toggle-group/ToggleGroup.cjs +2 -1
- package/dist/toggle-group/ToggleGroup.d.cts +20 -23
- package/dist/toggle-group/ToggleGroup.d.ts +20 -23
- package/dist/toggle-group/ToggleGroup.js +2 -1
- package/dist/toggle-group/ToggleGroupAnatomy.d.cts +6 -4
- package/dist/toggle-group/ToggleGroupAnatomy.d.ts +6 -4
- package/dist/toggle-group/ToggleGroupIndicator.d.cts +18 -0
- package/dist/toggle-group/ToggleGroupIndicator.d.ts +18 -0
- package/dist/toggle-group/ToggleGroupItem.d.cts +5 -6
- package/dist/toggle-group/ToggleGroupItem.d.ts +5 -6
- package/dist/toggle-group/primitives.d.cts +4 -4
- package/dist/toggle-group/primitives.d.ts +4 -4
- package/dist/toggle-group/types.d.cts +79 -54
- package/dist/toggle-group/types.d.ts +79 -54
- package/dist/toolbar/Toolbar.cjs +2 -1
- package/dist/toolbar/Toolbar.d.cts +8 -11
- package/dist/toolbar/Toolbar.d.ts +8 -11
- package/dist/toolbar/Toolbar.js +2 -1
- package/dist/toolbar/ToolbarAnatomy.d.cts +2 -2
- package/dist/toolbar/ToolbarAnatomy.d.ts +2 -2
- package/dist/toolbar/ToolbarButton.d.cts +5 -2
- package/dist/toolbar/ToolbarButton.d.ts +5 -2
- package/dist/toolbar/ToolbarLink.d.cts +5 -2
- package/dist/toolbar/ToolbarLink.d.ts +5 -2
- package/dist/toolbar/ToolbarSeparator.d.cts +5 -2
- package/dist/toolbar/ToolbarSeparator.d.ts +5 -2
- package/dist/toolbar/ToolbarToggleGroup.d.cts +9 -10
- package/dist/toolbar/ToolbarToggleGroup.d.ts +9 -10
- package/dist/toolbar/ToolbarToggleItem.d.cts +5 -2
- package/dist/toolbar/ToolbarToggleItem.d.ts +5 -2
- package/dist/toolbar/types.d.cts +27 -40
- package/dist/toolbar/types.d.ts +27 -40
- package/dist/tour/Tour.cjs +2 -1
- package/dist/tour/Tour.d.cts +5 -12
- package/dist/tour/Tour.d.ts +5 -12
- package/dist/tour/Tour.js +2 -1
- package/dist/tour/TourActions.d.cts +5 -2
- package/dist/tour/TourActions.d.ts +5 -2
- package/dist/tour/TourAnatomy.d.cts +7 -13
- package/dist/tour/TourAnatomy.d.ts +7 -13
- package/dist/tour/TourArrow.d.cts +6 -4
- package/dist/tour/TourArrow.d.ts +6 -4
- package/dist/tour/TourBackdrop.d.cts +6 -15
- package/dist/tour/TourBackdrop.d.ts +6 -15
- package/dist/tour/TourCloseTrigger.d.cts +6 -4
- package/dist/tour/TourCloseTrigger.d.ts +6 -4
- package/dist/tour/TourContent.d.cts +5 -13
- package/dist/tour/TourContent.d.ts +5 -13
- package/dist/tour/TourDescription.d.cts +5 -3
- package/dist/tour/TourDescription.d.ts +5 -3
- package/dist/tour/TourNextTrigger.d.cts +6 -3
- package/dist/tour/TourNextTrigger.d.ts +6 -3
- package/dist/tour/TourPortal.d.cts +3 -3
- package/dist/tour/TourPortal.d.ts +3 -3
- package/dist/tour/TourPrevTrigger.d.cts +5 -2
- package/dist/tour/TourPrevTrigger.d.ts +5 -2
- package/dist/tour/TourProgressText.d.cts +6 -4
- package/dist/tour/TourProgressText.d.ts +6 -4
- package/dist/tour/TourSkipTrigger.d.cts +5 -2
- package/dist/tour/TourSkipTrigger.d.ts +5 -2
- package/dist/tour/TourSpotlight.d.cts +5 -4
- package/dist/tour/TourSpotlight.d.ts +5 -4
- package/dist/tour/TourTitle.d.cts +5 -7
- package/dist/tour/TourTitle.d.ts +5 -7
- package/dist/tour/TourTrigger.d.cts +6 -3
- package/dist/tour/TourTrigger.d.ts +6 -3
- package/dist/tour/index.d.cts +1 -1
- package/dist/tour/index.d.ts +1 -1
- package/dist/tour/types.d.cts +58 -52
- package/dist/tour/types.d.ts +58 -52
- package/dist/transfer/Transfer.cjs +2 -1
- package/dist/transfer/Transfer.d.cts +13 -34
- package/dist/transfer/Transfer.d.ts +13 -34
- package/dist/transfer/Transfer.js +2 -1
- package/dist/transfer/TransferAnatomy.d.cts +10 -12
- package/dist/transfer/TransferAnatomy.d.ts +10 -12
- package/dist/transfer/TransferControls.d.cts +6 -3
- package/dist/transfer/TransferControls.d.ts +6 -3
- package/dist/transfer/TransferEmpty.d.cts +6 -5
- package/dist/transfer/TransferEmpty.d.ts +6 -5
- package/dist/transfer/TransferItem.d.cts +6 -7
- package/dist/transfer/TransferItem.d.ts +6 -7
- package/dist/transfer/TransferList.d.cts +5 -13
- package/dist/transfer/TransferList.d.ts +5 -13
- package/dist/transfer/TransferListHeader.d.cts +5 -8
- package/dist/transfer/TransferListHeader.d.ts +5 -8
- package/dist/transfer/TransferListSearch.d.cts +6 -5
- package/dist/transfer/TransferListSearch.d.ts +6 -5
- package/dist/transfer/TransferMoveAllTrigger.d.cts +6 -5
- package/dist/transfer/TransferMoveAllTrigger.d.ts +6 -5
- package/dist/transfer/TransferMoveTrigger.d.cts +6 -18
- package/dist/transfer/TransferMoveTrigger.d.ts +6 -18
- package/dist/transfer/index.d.cts +1 -1
- package/dist/transfer/index.d.ts +1 -1
- package/dist/transfer/types.d.cts +70 -33
- package/dist/transfer/types.d.ts +70 -33
- package/dist/tree/Tree.cjs +2 -1
- package/dist/tree/Tree.d.cts +12 -61
- package/dist/tree/Tree.d.ts +12 -61
- package/dist/tree/Tree.js +2 -1
- package/dist/tree/TreeAnatomy.d.cts +1 -8
- package/dist/tree/TreeAnatomy.d.ts +1 -8
- package/dist/tree/TreeGroup.d.cts +5 -4
- package/dist/tree/TreeGroup.d.ts +5 -4
- package/dist/tree/TreeItem.d.cts +10 -15
- package/dist/tree/TreeItem.d.ts +10 -15
- package/dist/tree/TreeItemIndicator.d.cts +6 -5
- package/dist/tree/TreeItemIndicator.d.ts +6 -5
- package/dist/tree/index.d.cts +1 -1
- package/dist/tree/index.d.ts +1 -1
- package/dist/tree/types.d.cts +29 -31
- package/dist/tree/types.d.ts +29 -31
- package/dist/tree-select/TreeSelect.cjs +2 -1
- package/dist/tree-select/TreeSelect.d.cts +5 -35
- package/dist/tree-select/TreeSelect.d.ts +5 -35
- package/dist/tree-select/TreeSelect.js +2 -1
- package/dist/tree-select/TreeSelectAnatomy.d.cts +8 -15
- package/dist/tree-select/TreeSelectAnatomy.d.ts +8 -15
- package/dist/tree-select/TreeSelectColumns.d.cts +18 -0
- package/dist/tree-select/TreeSelectColumns.d.ts +18 -0
- package/dist/tree-select/TreeSelectContent.d.cts +5 -5
- package/dist/tree-select/TreeSelectContent.d.ts +5 -5
- package/dist/tree-select/TreeSelectEmpty.d.cts +6 -4
- package/dist/tree-select/TreeSelectEmpty.d.ts +6 -4
- package/dist/tree-select/TreeSelectInput.d.cts +5 -6
- package/dist/tree-select/TreeSelectInput.d.ts +5 -6
- package/dist/tree-select/TreeSelectItem.d.cts +12 -16
- package/dist/tree-select/TreeSelectItem.d.ts +12 -16
- package/dist/tree-select/TreeSelectItemIndicator.d.cts +6 -9
- package/dist/tree-select/TreeSelectItemIndicator.d.ts +6 -9
- package/dist/tree-select/TreeSelectPortal.d.cts +3 -3
- package/dist/tree-select/TreeSelectPortal.d.ts +3 -3
- package/dist/tree-select/TreeSelectTree.d.cts +8 -10
- package/dist/tree-select/TreeSelectTree.d.ts +8 -10
- package/dist/tree-select/TreeSelectTrigger.d.cts +6 -6
- package/dist/tree-select/TreeSelectTrigger.d.ts +6 -6
- package/dist/tree-select/TreeSelectValue.d.cts +6 -14
- package/dist/tree-select/TreeSelectValue.d.ts +6 -14
- package/dist/tree-select/collection.d.cts +7 -43
- package/dist/tree-select/collection.d.ts +7 -43
- package/dist/tree-select/index.d.cts +1 -1
- package/dist/tree-select/index.d.ts +1 -1
- package/dist/tree-select/primitives.d.cts +2 -1
- package/dist/tree-select/primitives.d.ts +2 -1
- package/dist/tree-select/types.d.cts +89 -67
- package/dist/tree-select/types.d.ts +89 -67
- package/dist/utils/Glyph.cjs +2 -0
- package/dist/utils/Glyph.d.cts +7 -0
- package/dist/utils/Glyph.d.ts +7 -0
- package/dist/utils/Glyph.js +2 -0
- package/dist/utils/announcer.cjs +2 -0
- package/dist/utils/announcer.d.cts +17 -0
- package/dist/utils/announcer.d.ts +17 -0
- package/dist/utils/announcer.js +2 -0
- package/dist/utils/appearance.cjs +2 -0
- package/dist/utils/appearance.d.cts +14 -0
- package/dist/utils/appearance.d.ts +14 -0
- package/dist/utils/appearance.js +2 -0
- package/dist/utils/arrow-keys.cjs +2 -0
- package/dist/{carousel/arrowKeys.d.cts → utils/arrow-keys.d.cts} +1 -2
- package/dist/{carousel/arrowKeys.d.ts → utils/arrow-keys.d.ts} +1 -2
- package/dist/utils/arrow-keys.js +2 -0
- package/dist/utils/calendar-locale.cjs +2 -0
- package/dist/{calendar/locale.d.cts → utils/calendar-locale.d.cts} +3 -17
- package/dist/{calendar/locale.d.ts → utils/calendar-locale.d.ts} +3 -17
- package/dist/utils/calendar-locale.js +2 -0
- package/dist/utils/cardNesting.cjs +2 -1
- package/dist/utils/cardNesting.d.cts +1 -19
- package/dist/utils/cardNesting.d.ts +1 -19
- package/dist/utils/cardNesting.js +2 -1
- package/dist/utils/clamp.cjs +2 -1
- package/dist/utils/clamp.js +1 -0
- package/dist/utils/color.cjs +2 -1
- package/dist/utils/color.d.cts +8 -73
- package/dist/utils/color.d.ts +8 -73
- package/dist/utils/color.js +2 -1
- package/dist/utils/composeRefs.cjs +1 -0
- package/dist/utils/composeRefs.d.cts +4 -11
- package/dist/utils/composeRefs.d.ts +4 -11
- package/dist/utils/composeRefs.js +1 -0
- package/dist/utils/controllable.cjs +2 -0
- package/dist/utils/controllable.d.cts +42 -0
- package/dist/utils/controllable.d.ts +42 -0
- package/dist/utils/controllable.js +2 -0
- package/dist/utils/createContext.cjs +2 -1
- package/dist/utils/createContext.d.cts +9 -10
- package/dist/utils/createContext.d.ts +9 -10
- package/dist/utils/createContext.js +2 -1
- package/dist/utils/date-segments.cjs +2 -0
- package/dist/utils/{dateSegments.d.ts → date-segments.d.cts} +38 -59
- package/dist/utils/{dateSegments.d.cts → date-segments.d.ts} +38 -59
- package/dist/utils/date-segments.js +2 -0
- package/dist/utils/date-value.cjs +2 -0
- package/dist/utils/{dateValue.d.ts → date-value.d.cts} +7 -26
- package/dist/utils/{dateValue.d.cts → date-value.d.ts} +7 -26
- package/dist/utils/date-value.js +2 -0
- package/dist/utils/declaredChildren.cjs +2 -1
- package/dist/utils/declaredChildren.d.cts +1 -10
- package/dist/utils/declaredChildren.d.ts +1 -10
- package/dist/utils/declaredChildren.js +1 -0
- package/dist/utils/dev-mode.cjs +2 -0
- package/dist/utils/dev-mode.d.cts +12 -0
- package/dist/utils/dev-mode.d.ts +12 -0
- package/dist/utils/dev-mode.js +2 -0
- package/dist/utils/direction.cjs +2 -1
- package/dist/utils/direction.d.cts +6 -73
- package/dist/utils/direction.d.ts +6 -73
- package/dist/utils/direction.js +1 -0
- package/dist/utils/dismissal.cjs +2 -0
- package/dist/utils/dismissal.d.cts +49 -0
- package/dist/utils/dismissal.d.ts +49 -0
- package/dist/utils/dismissal.js +2 -0
- package/dist/utils/field-core.cjs +2 -0
- package/dist/{field/fieldCore.d.cts → utils/field-core.d.cts} +22 -30
- package/dist/{field/fieldCore.d.ts → utils/field-core.d.ts} +22 -30
- package/dist/utils/field-core.js +2 -0
- package/dist/utils/focus-targets.cjs +2 -0
- package/dist/utils/focus-targets.d.cts +77 -0
- package/dist/utils/focus-targets.d.ts +77 -0
- package/dist/utils/focus-targets.js +2 -0
- package/dist/utils/formControl.cjs +2 -1
- package/dist/utils/formControl.d.cts +15 -103
- package/dist/utils/formControl.d.ts +15 -103
- package/dist/utils/formControl.js +2 -1
- package/dist/utils/format-file-size.cjs +2 -0
- package/dist/utils/format-file-size.d.cts +9 -0
- package/dist/utils/format-file-size.d.ts +9 -0
- package/dist/utils/format-file-size.js +2 -0
- package/dist/utils/glyph-data.cjs +2 -0
- package/dist/utils/glyph-data.d.cts +13 -0
- package/dist/utils/glyph-data.d.ts +13 -0
- package/dist/utils/glyph-data.js +2 -0
- package/dist/utils/hiddenInput.cjs +2 -1
- package/dist/utils/hiddenInput.d.cts +15 -19
- package/dist/utils/hiddenInput.d.ts +15 -19
- package/dist/utils/hiddenInput.js +2 -1
- package/dist/utils/liveAnnouncer.cjs +2 -1
- package/dist/utils/liveAnnouncer.d.cts +4 -7
- package/dist/utils/liveAnnouncer.d.ts +4 -7
- package/dist/utils/liveAnnouncer.js +2 -1
- package/dist/utils/measure-auto-resize.cjs +2 -0
- package/dist/utils/measure-auto-resize.d.cts +5 -0
- package/dist/utils/measure-auto-resize.d.ts +5 -0
- package/dist/utils/measure-auto-resize.js +2 -0
- package/dist/utils/mentions.cjs +3 -0
- package/dist/utils/mentions.d.cts +116 -0
- package/dist/utils/mentions.d.ts +116 -0
- package/dist/utils/mentions.js +3 -0
- package/dist/utils/menuGroup.cjs +1 -0
- package/dist/utils/menuGroup.d.cts +3 -6
- package/dist/utils/menuGroup.d.ts +3 -6
- package/dist/utils/menuGroup.js +1 -0
- package/dist/utils/menuSub.cjs +2 -1
- package/dist/utils/menuSub.d.cts +30 -66
- package/dist/utils/menuSub.d.ts +30 -66
- package/dist/utils/menuSub.js +2 -1
- package/dist/utils/numberFormat.cjs +1 -0
- package/dist/utils/numberFormat.d.cts +2 -11
- package/dist/utils/numberFormat.d.ts +2 -11
- package/dist/utils/numberFormat.js +1 -0
- package/dist/utils/part.cjs +2 -1
- package/dist/utils/part.d.cts +9 -22
- package/dist/utils/part.d.ts +9 -22
- package/dist/utils/part.js +2 -1
- package/dist/utils/passThrough.cjs +2 -1
- package/dist/utils/passThrough.d.cts +4 -9
- package/dist/utils/passThrough.d.ts +4 -9
- package/dist/utils/passThrough.js +1 -0
- package/dist/utils/pin-chars.cjs +2 -0
- package/dist/utils/pin-chars.d.cts +13 -0
- package/dist/utils/pin-chars.d.ts +13 -0
- package/dist/utils/pin-chars.js +2 -0
- package/dist/utils/placement.cjs +2 -0
- package/dist/utils/placement.d.cts +102 -0
- package/dist/utils/placement.d.ts +102 -0
- package/dist/utils/placement.js +2 -0
- package/dist/utils/popper.cjs +2 -1
- package/dist/utils/popper.d.cts +37 -112
- package/dist/utils/popper.d.ts +37 -112
- package/dist/utils/popper.js +2 -1
- package/dist/utils/portal.cjs +2 -1
- package/dist/utils/portal.d.cts +6 -5
- package/dist/utils/portal.d.ts +6 -5
- package/dist/utils/portal.js +2 -1
- package/dist/utils/presence.cjs +2 -1
- package/dist/utils/presence.d.cts +4 -16
- package/dist/utils/presence.d.ts +4 -16
- package/dist/utils/presence.js +2 -1
- package/dist/utils/primitive.cjs +2 -1
- package/dist/utils/primitive.d.cts +34 -23
- package/dist/utils/primitive.d.ts +34 -23
- package/dist/utils/primitive.js +2 -1
- package/dist/utils/qr-encoder.cjs +2 -0
- package/dist/{qr-code/encoder.d.cts → utils/qr-encoder.d.cts} +7 -25
- package/dist/{qr-code/encoder.d.ts → utils/qr-encoder.d.ts} +7 -25
- package/dist/utils/qr-encoder.js +2 -0
- package/dist/utils/recipeAxis.cjs +2 -0
- package/dist/utils/recipeAxis.d.cts +11 -0
- package/dist/utils/recipeAxis.d.ts +11 -0
- package/dist/utils/recipeAxis.js +2 -0
- package/dist/utils/resolveSpace.cjs +2 -1
- package/dist/utils/resolveSpace.d.cts +2 -0
- package/dist/utils/resolveSpace.d.ts +2 -0
- package/dist/utils/resolveSpace.js +2 -1
- package/dist/utils/roving-tab-stop.cjs +2 -0
- package/dist/utils/roving-tab-stop.d.cts +37 -0
- package/dist/utils/roving-tab-stop.d.ts +37 -0
- package/dist/utils/roving-tab-stop.js +2 -0
- package/dist/utils/scoredFilter.cjs +1 -0
- package/dist/utils/scoredFilter.d.cts +2 -12
- package/dist/utils/scoredFilter.d.ts +2 -12
- package/dist/utils/scoredFilter.js +1 -0
- package/dist/utils/segmentedField.cjs +2 -1
- package/dist/utils/segmentedField.d.cts +39 -111
- package/dist/utils/segmentedField.d.ts +39 -111
- package/dist/utils/segmentedField.js +2 -1
- package/dist/utils/select-keyboard.cjs +2 -0
- package/dist/utils/select-keyboard.d.cts +80 -0
- package/dist/utils/select-keyboard.d.ts +80 -0
- package/dist/utils/select-keyboard.js +2 -0
- package/dist/utils/selection.cjs +2 -0
- package/dist/utils/selection.d.cts +58 -0
- package/dist/utils/selection.d.ts +58 -0
- package/dist/utils/selection.js +2 -0
- package/dist/utils/slot.cjs +2 -1
- package/dist/utils/slot.d.cts +8 -11
- package/dist/utils/slot.d.ts +8 -11
- package/dist/utils/slot.js +2 -1
- package/dist/utils/tabbable.cjs +2 -1
- package/dist/utils/tabbable.d.cts +1 -5
- package/dist/utils/tabbable.d.ts +1 -5
- package/dist/utils/tabbable.js +2 -1
- package/dist/utils/timer.cjs +2 -0
- package/dist/utils/timer.d.cts +82 -0
- package/dist/utils/timer.d.ts +82 -0
- package/dist/utils/timer.js +2 -0
- package/dist/utils/tree-columns.cjs +2 -0
- package/dist/utils/tree-columns.d.cts +48 -0
- package/dist/utils/tree-columns.d.ts +48 -0
- package/dist/utils/tree-columns.js +2 -0
- package/dist/utils/typeahead.cjs +2 -0
- package/dist/utils/typeahead.d.cts +27 -0
- package/dist/utils/typeahead.d.ts +27 -0
- package/dist/utils/typeahead.js +2 -0
- package/dist/utils/useBodyScrollLock.cjs +2 -1
- package/dist/utils/useBodyScrollLock.js +2 -1
- package/dist/utils/useCallbackRef.cjs +1 -0
- package/dist/utils/useCallbackRef.d.cts +3 -1
- package/dist/utils/useCallbackRef.d.ts +3 -1
- package/dist/utils/useCallbackRef.js +1 -0
- package/dist/utils/useControllableState.cjs +2 -1
- package/dist/utils/useControllableState.d.cts +8 -4
- package/dist/utils/useControllableState.d.ts +8 -4
- package/dist/utils/useControllableState.js +2 -1
- package/dist/utils/useDismiss.cjs +2 -1
- package/dist/utils/useDismiss.d.cts +8 -19
- package/dist/utils/useDismiss.d.ts +8 -19
- package/dist/utils/useDismiss.js +2 -1
- package/dist/utils/useFocusTrap.cjs +2 -1
- package/dist/utils/useFocusTrap.d.cts +10 -10
- package/dist/utils/useFocusTrap.d.ts +10 -10
- package/dist/utils/useFocusTrap.js +2 -1
- package/dist/utils/useMenuItem.cjs +2 -1
- package/dist/utils/useMenuItem.d.cts +14 -18
- package/dist/utils/useMenuItem.d.ts +14 -18
- package/dist/utils/useMenuItem.js +2 -1
- package/dist/utils/useOpenChangeComplete.cjs +2 -1
- package/dist/utils/useOpenChangeComplete.d.cts +1 -6
- package/dist/utils/useOpenChangeComplete.d.ts +1 -6
- package/dist/utils/useOpenChangeComplete.js +2 -1
- package/dist/utils/useOptionCollection.cjs +2 -1
- package/dist/utils/useOptionCollection.d.cts +11 -67
- package/dist/utils/useOptionCollection.d.ts +11 -67
- package/dist/utils/useOptionCollection.js +2 -1
- package/dist/utils/useOutsideInert.cjs +2 -1
- package/dist/utils/useOutsideInert.d.cts +2 -12
- package/dist/utils/useOutsideInert.d.ts +2 -12
- package/dist/utils/useOutsideInert.js +2 -1
- package/dist/utils/usePointerAngle.cjs +2 -1
- package/dist/utils/usePointerAngle.d.cts +7 -39
- package/dist/utils/usePointerAngle.d.ts +7 -39
- package/dist/utils/usePointerAngle.js +2 -1
- package/dist/utils/useRovingFocus.cjs +2 -1
- package/dist/utils/useRovingFocus.d.cts +8 -99
- package/dist/utils/useRovingFocus.d.ts +8 -99
- package/dist/utils/useRovingFocus.js +2 -1
- package/dist/utils/useSelection.cjs +2 -1
- package/dist/utils/useSelection.d.cts +9 -80
- package/dist/utils/useSelection.d.ts +9 -80
- package/dist/utils/useSelection.js +2 -1
- package/dist/utils/useTypeahead.cjs +2 -1
- package/dist/utils/useTypeahead.d.cts +2 -9
- package/dist/utils/useTypeahead.d.ts +2 -9
- package/dist/utils/useTypeahead.js +2 -1
- package/dist/utils/visuallyHidden.cjs +2 -1
- package/dist/utils/visuallyHidden.d.cts +5 -2
- package/dist/utils/visuallyHidden.d.ts +5 -2
- package/dist/utils/visuallyHidden.js +2 -1
- package/package.json +57 -236
- package/dist/affix/Affix.cjs +0 -1
- package/dist/affix/Affix.d.cts +0 -17
- package/dist/affix/Affix.d.ts +0 -17
- package/dist/affix/Affix.js +0 -1
- package/dist/affix/index.d.cts +0 -2
- package/dist/affix/index.d.ts +0 -2
- package/dist/affix/types.d.cts +0 -44
- package/dist/affix/types.d.ts +0 -44
- package/dist/alert-dialog/AlertDialog.cjs +0 -1
- package/dist/alert-dialog/AlertDialog.d.cts +0 -49
- package/dist/alert-dialog/AlertDialog.d.ts +0 -49
- package/dist/alert-dialog/AlertDialog.js +0 -1
- package/dist/alert-dialog/AlertDialogAction.d.cts +0 -36
- package/dist/alert-dialog/AlertDialogAction.d.ts +0 -36
- package/dist/alert-dialog/AlertDialogAnatomy.d.cts +0 -22
- package/dist/alert-dialog/AlertDialogAnatomy.d.ts +0 -22
- package/dist/alert-dialog/AlertDialogCancel.d.cts +0 -11
- package/dist/alert-dialog/AlertDialogCancel.d.ts +0 -11
- package/dist/alert-dialog/AlertDialogContent.d.cts +0 -26
- package/dist/alert-dialog/AlertDialogContent.d.ts +0 -26
- package/dist/alert-dialog/AlertDialogDescription.d.cts +0 -12
- package/dist/alert-dialog/AlertDialogDescription.d.ts +0 -12
- package/dist/alert-dialog/AlertDialogOverlay.d.cts +0 -14
- package/dist/alert-dialog/AlertDialogOverlay.d.ts +0 -14
- package/dist/alert-dialog/AlertDialogPortal.d.cts +0 -20
- package/dist/alert-dialog/AlertDialogPortal.d.ts +0 -20
- package/dist/alert-dialog/AlertDialogTitle.d.cts +0 -11
- package/dist/alert-dialog/AlertDialogTitle.d.ts +0 -11
- package/dist/alert-dialog/AlertDialogTrigger.d.cts +0 -13
- package/dist/alert-dialog/AlertDialogTrigger.d.ts +0 -13
- package/dist/alert-dialog/focusTargets.d.cts +0 -16
- package/dist/alert-dialog/focusTargets.d.ts +0 -16
- package/dist/alert-dialog/index.d.cts +0 -2
- package/dist/alert-dialog/index.d.ts +0 -2
- package/dist/alert-dialog/primitives.d.cts +0 -31
- package/dist/alert-dialog/primitives.d.ts +0 -31
- package/dist/alert-dialog/types.d.cts +0 -236
- package/dist/alert-dialog/types.d.ts +0 -236
- package/dist/context-menu/ContextMenu.cjs +0 -1
- package/dist/context-menu/ContextMenu.d.cts +0 -85
- package/dist/context-menu/ContextMenu.d.ts +0 -85
- package/dist/context-menu/ContextMenu.js +0 -1
- package/dist/context-menu/ContextMenuAnatomy.d.cts +0 -15
- package/dist/context-menu/ContextMenuAnatomy.d.ts +0 -15
- package/dist/context-menu/ContextMenuCheckboxItem.d.cts +0 -14
- package/dist/context-menu/ContextMenuCheckboxItem.d.ts +0 -14
- package/dist/context-menu/ContextMenuContent.d.cts +0 -20
- package/dist/context-menu/ContextMenuContent.d.ts +0 -20
- package/dist/context-menu/ContextMenuGroup.d.cts +0 -17
- package/dist/context-menu/ContextMenuGroup.d.ts +0 -17
- package/dist/context-menu/ContextMenuItem.d.cts +0 -31
- package/dist/context-menu/ContextMenuItem.d.ts +0 -31
- package/dist/context-menu/ContextMenuItemIndicator.d.cts +0 -15
- package/dist/context-menu/ContextMenuItemIndicator.d.ts +0 -15
- package/dist/context-menu/ContextMenuLabel.d.cts +0 -15
- package/dist/context-menu/ContextMenuLabel.d.ts +0 -15
- package/dist/context-menu/ContextMenuPortal.d.cts +0 -19
- package/dist/context-menu/ContextMenuPortal.d.ts +0 -19
- package/dist/context-menu/ContextMenuRadioGroup.d.cts +0 -20
- package/dist/context-menu/ContextMenuRadioGroup.d.ts +0 -20
- package/dist/context-menu/ContextMenuRadioItem.d.cts +0 -14
- package/dist/context-menu/ContextMenuRadioItem.d.ts +0 -14
- package/dist/context-menu/ContextMenuSeparator.d.cts +0 -14
- package/dist/context-menu/ContextMenuSeparator.d.ts +0 -14
- package/dist/context-menu/ContextMenuShortcut.d.cts +0 -14
- package/dist/context-menu/ContextMenuShortcut.d.ts +0 -14
- package/dist/context-menu/ContextMenuSub.d.cts +0 -39
- package/dist/context-menu/ContextMenuSub.d.ts +0 -39
- package/dist/context-menu/ContextMenuTrigger.d.cts +0 -18
- package/dist/context-menu/ContextMenuTrigger.d.ts +0 -18
- package/dist/context-menu/index.d.cts +0 -2
- package/dist/context-menu/index.d.ts +0 -2
- package/dist/context-menu/primitives.d.cts +0 -35
- package/dist/context-menu/primitives.d.ts +0 -35
- package/dist/context-menu/types.d.cts +0 -356
- package/dist/context-menu/types.d.ts +0 -356
- package/dist/data-list/DataList.cjs +0 -1
- package/dist/data-list/DataList.d.cts +0 -23
- package/dist/data-list/DataList.d.ts +0 -23
- package/dist/data-list/DataList.js +0 -1
- package/dist/data-list/DataListAnatomy.d.cts +0 -13
- package/dist/data-list/DataListAnatomy.d.ts +0 -13
- package/dist/data-list/DataListItem.d.cts +0 -16
- package/dist/data-list/DataListItem.d.ts +0 -16
- package/dist/data-list/DataListLabel.d.cts +0 -12
- package/dist/data-list/DataListLabel.d.ts +0 -12
- package/dist/data-list/DataListValue.d.cts +0 -15
- package/dist/data-list/DataListValue.d.ts +0 -15
- package/dist/data-list/index.d.cts +0 -2
- package/dist/data-list/index.d.ts +0 -2
- package/dist/data-list/primitives.d.cts +0 -23
- package/dist/data-list/primitives.d.ts +0 -23
- package/dist/data-list/types.d.cts +0 -42
- package/dist/data-list/types.d.ts +0 -42
- package/dist/dialog/focusTargets.d.cts +0 -9
- package/dist/dialog/focusTargets.d.ts +0 -9
- package/dist/drawer/DrawerClose.d.cts +0 -15
- package/dist/drawer/DrawerClose.d.ts +0 -15
- package/dist/drawer/DrawerDescription.d.cts +0 -14
- package/dist/drawer/DrawerDescription.d.ts +0 -14
- package/dist/drawer/DrawerOverlay.d.cts +0 -17
- package/dist/drawer/DrawerOverlay.d.ts +0 -17
- package/dist/drawer/DrawerTitle.d.cts +0 -14
- package/dist/drawer/DrawerTitle.d.ts +0 -14
- package/dist/drawer/DrawerTrigger.d.cts +0 -16
- package/dist/drawer/DrawerTrigger.d.ts +0 -16
- package/dist/drawer/focusTargets.d.cts +0 -8
- package/dist/drawer/focusTargets.d.ts +0 -8
- package/dist/dropdown-menu/DropdownMenu.cjs +0 -1
- package/dist/dropdown-menu/DropdownMenu.d.cts +0 -94
- package/dist/dropdown-menu/DropdownMenu.d.ts +0 -94
- package/dist/dropdown-menu/DropdownMenu.js +0 -1
- package/dist/dropdown-menu/DropdownMenuAnatomy.d.cts +0 -21
- package/dist/dropdown-menu/DropdownMenuAnatomy.d.ts +0 -21
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.d.cts +0 -14
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.d.ts +0 -14
- package/dist/dropdown-menu/DropdownMenuContent.d.cts +0 -27
- package/dist/dropdown-menu/DropdownMenuContent.d.ts +0 -27
- package/dist/dropdown-menu/DropdownMenuGroup.d.cts +0 -15
- package/dist/dropdown-menu/DropdownMenuGroup.d.ts +0 -15
- package/dist/dropdown-menu/DropdownMenuItem.d.cts +0 -34
- package/dist/dropdown-menu/DropdownMenuItem.d.ts +0 -34
- package/dist/dropdown-menu/DropdownMenuItemIndicator.d.cts +0 -15
- package/dist/dropdown-menu/DropdownMenuItemIndicator.d.ts +0 -15
- package/dist/dropdown-menu/DropdownMenuLabel.d.cts +0 -15
- package/dist/dropdown-menu/DropdownMenuLabel.d.ts +0 -15
- package/dist/dropdown-menu/DropdownMenuPortal.d.cts +0 -19
- package/dist/dropdown-menu/DropdownMenuPortal.d.ts +0 -19
- package/dist/dropdown-menu/DropdownMenuRadioGroup.d.cts +0 -22
- package/dist/dropdown-menu/DropdownMenuRadioGroup.d.ts +0 -22
- package/dist/dropdown-menu/DropdownMenuRadioItem.d.cts +0 -17
- package/dist/dropdown-menu/DropdownMenuRadioItem.d.ts +0 -17
- package/dist/dropdown-menu/DropdownMenuSeparator.d.cts +0 -14
- package/dist/dropdown-menu/DropdownMenuSeparator.d.ts +0 -14
- package/dist/dropdown-menu/DropdownMenuShortcut.d.cts +0 -14
- package/dist/dropdown-menu/DropdownMenuShortcut.d.ts +0 -14
- package/dist/dropdown-menu/DropdownMenuSub.d.cts +0 -37
- package/dist/dropdown-menu/DropdownMenuSub.d.ts +0 -37
- package/dist/dropdown-menu/DropdownMenuTrigger.d.cts +0 -18
- package/dist/dropdown-menu/DropdownMenuTrigger.d.ts +0 -18
- package/dist/dropdown-menu/index.d.cts +0 -2
- package/dist/dropdown-menu/index.d.ts +0 -2
- package/dist/dropdown-menu/primitives.d.cts +0 -43
- package/dist/dropdown-menu/primitives.d.ts +0 -43
- package/dist/dropdown-menu/types.d.cts +0 -357
- package/dist/dropdown-menu/types.d.ts +0 -357
- package/dist/hover-card/HoverCard.cjs +0 -1
- package/dist/hover-card/HoverCard.d.cts +0 -95
- package/dist/hover-card/HoverCard.d.ts +0 -95
- package/dist/hover-card/HoverCard.js +0 -1
- package/dist/hover-card/HoverCardAnatomy.d.cts +0 -17
- package/dist/hover-card/HoverCardAnatomy.d.ts +0 -17
- package/dist/hover-card/HoverCardContent.d.cts +0 -18
- package/dist/hover-card/HoverCardContent.d.ts +0 -18
- package/dist/hover-card/HoverCardPortal.d.cts +0 -19
- package/dist/hover-card/HoverCardPortal.d.ts +0 -19
- package/dist/hover-card/HoverCardTrigger.d.cts +0 -18
- package/dist/hover-card/HoverCardTrigger.d.ts +0 -18
- package/dist/hover-card/index.d.cts +0 -2
- package/dist/hover-card/index.d.ts +0 -2
- package/dist/hover-card/primitives.d.cts +0 -24
- package/dist/hover-card/primitives.d.ts +0 -24
- package/dist/hover-card/types.d.cts +0 -139
- package/dist/hover-card/types.d.ts +0 -139
- package/dist/meter/Meter.cjs +0 -1
- package/dist/meter/Meter.d.cts +0 -42
- package/dist/meter/Meter.d.ts +0 -42
- package/dist/meter/Meter.js +0 -1
- package/dist/meter/MeterAnatomy.d.cts +0 -10
- package/dist/meter/MeterAnatomy.d.ts +0 -10
- package/dist/meter/MeterIndicator.d.cts +0 -13
- package/dist/meter/MeterIndicator.d.ts +0 -13
- package/dist/meter/MeterLabel.d.cts +0 -14
- package/dist/meter/MeterLabel.d.ts +0 -14
- package/dist/meter/MeterValue.d.cts +0 -16
- package/dist/meter/MeterValue.d.ts +0 -16
- package/dist/meter/index.d.cts +0 -2
- package/dist/meter/index.d.ts +0 -2
- package/dist/meter/primitives.d.cts +0 -19
- package/dist/meter/primitives.d.ts +0 -19
- package/dist/meter/types.d.cts +0 -83
- package/dist/meter/types.d.ts +0 -83
- package/dist/multi-select/MultiSelect.cjs +0 -1
- package/dist/multi-select/MultiSelect.d.cts +0 -72
- package/dist/multi-select/MultiSelect.d.ts +0 -72
- package/dist/multi-select/MultiSelect.js +0 -1
- package/dist/multi-select/MultiSelectAnatomy.d.cts +0 -22
- package/dist/multi-select/MultiSelectAnatomy.d.ts +0 -22
- package/dist/multi-select/MultiSelectClear.d.cts +0 -27
- package/dist/multi-select/MultiSelectClear.d.ts +0 -27
- package/dist/multi-select/MultiSelectContent.d.cts +0 -18
- package/dist/multi-select/MultiSelectContent.d.ts +0 -18
- package/dist/multi-select/MultiSelectEmpty.d.cts +0 -19
- package/dist/multi-select/MultiSelectEmpty.d.ts +0 -19
- package/dist/multi-select/MultiSelectGroup.d.cts +0 -22
- package/dist/multi-select/MultiSelectGroup.d.ts +0 -22
- package/dist/multi-select/MultiSelectGroupLabel.d.cts +0 -14
- package/dist/multi-select/MultiSelectGroupLabel.d.ts +0 -14
- package/dist/multi-select/MultiSelectInput.d.cts +0 -40
- package/dist/multi-select/MultiSelectInput.d.ts +0 -40
- package/dist/multi-select/MultiSelectItem.d.cts +0 -22
- package/dist/multi-select/MultiSelectItem.d.ts +0 -22
- package/dist/multi-select/MultiSelectList.d.cts +0 -21
- package/dist/multi-select/MultiSelectList.d.ts +0 -21
- package/dist/multi-select/MultiSelectPortal.d.cts +0 -19
- package/dist/multi-select/MultiSelectPortal.d.ts +0 -19
- package/dist/multi-select/MultiSelectTag.d.cts +0 -16
- package/dist/multi-select/MultiSelectTag.d.ts +0 -16
- package/dist/multi-select/MultiSelectTagList.d.cts +0 -21
- package/dist/multi-select/MultiSelectTagList.d.ts +0 -21
- package/dist/multi-select/MultiSelectTagRemove.d.cts +0 -17
- package/dist/multi-select/MultiSelectTagRemove.d.ts +0 -17
- package/dist/multi-select/index.d.cts +0 -2
- package/dist/multi-select/index.d.ts +0 -2
- package/dist/multi-select/primitives.d.cts +0 -42
- package/dist/multi-select/primitives.d.ts +0 -42
- package/dist/multi-select/types.d.cts +0 -340
- package/dist/multi-select/types.d.ts +0 -340
- package/dist/pin-input/charFilter.d.cts +0 -19
- package/dist/pin-input/charFilter.d.ts +0 -19
- package/dist/pin-input/digitLabel.d.cts +0 -7
- package/dist/pin-input/digitLabel.d.ts +0 -7
- package/dist/popover/focusTargets.d.cts +0 -9
- package/dist/popover/focusTargets.d.ts +0 -9
- package/dist/primitives/alert-dialog.cjs +0 -1
- package/dist/primitives/alert-dialog.js +0 -1
- package/dist/primitives/context-menu.cjs +0 -1
- package/dist/primitives/context-menu.js +0 -1
- package/dist/primitives/data-list.cjs +0 -1
- package/dist/primitives/data-list.js +0 -1
- package/dist/primitives/dropdown-menu.cjs +0 -1
- package/dist/primitives/dropdown-menu.js +0 -1
- package/dist/primitives/hover-card.cjs +0 -1
- package/dist/primitives/hover-card.js +0 -1
- package/dist/primitives/meter.cjs +0 -1
- package/dist/primitives/meter.js +0 -1
- package/dist/primitives/multi-select.cjs +0 -1
- package/dist/primitives/multi-select.js +0 -1
- package/dist/primitives/segmented-control.cjs +0 -1
- package/dist/primitives/segmented-control.js +0 -1
- package/dist/primitives/steps.cjs +0 -1
- package/dist/primitives/steps.js +0 -1
- package/dist/primitives/tag.cjs +0 -1
- package/dist/primitives/tag.js +0 -1
- package/dist/primitives/tooltip.cjs +0 -1
- package/dist/primitives/tooltip.js +0 -1
- package/dist/segmented-control/SegmentedControl.cjs +0 -1
- package/dist/segmented-control/SegmentedControl.d.cts +0 -47
- package/dist/segmented-control/SegmentedControl.d.ts +0 -47
- package/dist/segmented-control/SegmentedControl.js +0 -1
- package/dist/segmented-control/SegmentedControlAnatomy.d.cts +0 -10
- package/dist/segmented-control/SegmentedControlAnatomy.d.ts +0 -10
- package/dist/segmented-control/SegmentedControlIndicator.d.cts +0 -19
- package/dist/segmented-control/SegmentedControlIndicator.d.ts +0 -19
- package/dist/segmented-control/SegmentedControlItem.d.cts +0 -20
- package/dist/segmented-control/SegmentedControlItem.d.ts +0 -20
- package/dist/segmented-control/index.d.cts +0 -2
- package/dist/segmented-control/index.d.ts +0 -2
- package/dist/segmented-control/primitives.d.cts +0 -21
- package/dist/segmented-control/primitives.d.ts +0 -21
- package/dist/segmented-control/types.d.cts +0 -172
- package/dist/segmented-control/types.d.ts +0 -172
- package/dist/separator/Separator.cjs +0 -1
- package/dist/separator/Separator.d.cts +0 -17
- package/dist/separator/Separator.d.ts +0 -17
- package/dist/separator/Separator.js +0 -1
- package/dist/separator/index.d.cts +0 -2
- package/dist/separator/index.d.ts +0 -2
- package/dist/separator/types.d.cts +0 -14
- package/dist/separator/types.d.ts +0 -14
- package/dist/skip-link/SkipLink.cjs +0 -1
- package/dist/skip-link/SkipLink.d.cts +0 -18
- package/dist/skip-link/SkipLink.d.ts +0 -18
- package/dist/skip-link/SkipLink.js +0 -1
- package/dist/skip-link/index.d.cts +0 -2
- package/dist/skip-link/index.d.ts +0 -2
- package/dist/skip-link/types.d.cts +0 -10
- package/dist/skip-link/types.d.ts +0 -10
- package/dist/steps/Steps.cjs +0 -1
- package/dist/steps/Steps.d.cts +0 -42
- package/dist/steps/Steps.d.ts +0 -42
- package/dist/steps/Steps.js +0 -1
- package/dist/steps/StepsAnatomy.d.cts +0 -13
- package/dist/steps/StepsAnatomy.d.ts +0 -13
- package/dist/steps/StepsItem.d.cts +0 -15
- package/dist/steps/StepsItem.d.ts +0 -15
- package/dist/steps/StepsTrigger.d.cts +0 -13
- package/dist/steps/StepsTrigger.d.ts +0 -13
- package/dist/steps/index.d.cts +0 -2
- package/dist/steps/index.d.ts +0 -2
- package/dist/steps/primitives.d.cts +0 -22
- package/dist/steps/primitives.d.ts +0 -22
- package/dist/steps/types.d.cts +0 -150
- package/dist/steps/types.d.ts +0 -150
- package/dist/tag/Tag.cjs +0 -1
- package/dist/tag/Tag.d.cts +0 -44
- package/dist/tag/Tag.d.ts +0 -44
- package/dist/tag/Tag.js +0 -1
- package/dist/tag/TagAnatomy.d.cts +0 -17
- package/dist/tag/TagAnatomy.d.ts +0 -17
- package/dist/tag/TagDelete.d.cts +0 -16
- package/dist/tag/TagDelete.d.ts +0 -16
- package/dist/tag/TagLabel.d.cts +0 -17
- package/dist/tag/TagLabel.d.ts +0 -17
- package/dist/tag/TagLeading.d.cts +0 -17
- package/dist/tag/TagLeading.d.ts +0 -17
- package/dist/tag/index.d.cts +0 -2
- package/dist/tag/index.d.ts +0 -2
- package/dist/tag/primitives.d.cts +0 -19
- package/dist/tag/primitives.d.ts +0 -19
- package/dist/tag/types.d.cts +0 -114
- package/dist/tag/types.d.ts +0 -114
- package/dist/tooltip/Tooltip.cjs +0 -1
- package/dist/tooltip/Tooltip.d.cts +0 -85
- package/dist/tooltip/Tooltip.d.ts +0 -85
- package/dist/tooltip/Tooltip.js +0 -1
- package/dist/tooltip/TooltipAnatomy.d.cts +0 -15
- package/dist/tooltip/TooltipAnatomy.d.ts +0 -15
- package/dist/tooltip/TooltipContent.d.cts +0 -25
- package/dist/tooltip/TooltipContent.d.ts +0 -25
- package/dist/tooltip/TooltipPortal.d.cts +0 -19
- package/dist/tooltip/TooltipPortal.d.ts +0 -19
- package/dist/tooltip/TooltipProvider.d.cts +0 -31
- package/dist/tooltip/TooltipProvider.d.ts +0 -31
- package/dist/tooltip/TooltipTrigger.d.cts +0 -18
- package/dist/tooltip/TooltipTrigger.d.ts +0 -18
- package/dist/tooltip/index.d.cts +0 -2
- package/dist/tooltip/index.d.ts +0 -2
- package/dist/tooltip/primitives.d.cts +0 -27
- package/dist/tooltip/primitives.d.ts +0 -27
- package/dist/tooltip/types.d.cts +0 -179
- package/dist/tooltip/types.d.ts +0 -179
- package/dist/utils/dateSegments.cjs +0 -1
- package/dist/utils/dateSegments.js +0 -1
- package/dist/utils/dateValue.cjs +0 -1
- package/dist/utils/dateValue.js +0 -1
- package/dist/utils/is-dev-mode.cjs +0 -1
- package/dist/utils/is-dev-mode.d.cts +0 -6
- package/dist/utils/is-dev-mode.d.ts +0 -6
- package/dist/utils/is-dev-mode.js +0 -1
- package/dist/utils/menuGlyph.cjs +0 -1
- package/dist/utils/menuGlyph.d.cts +0 -4
- package/dist/utils/menuGlyph.d.ts +0 -4
- package/dist/utils/menuGlyph.js +0 -1
package/dist/field/types.d.cts
CHANGED
|
@@ -1,145 +1,97 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import type { FieldCharacterCountOptions, FieldMode, FieldSnapshot, FieldValidator } from '../utils/field-core.cjs';
|
|
2
3
|
import type { PolymorphicTag, PrimitivePropsWithRef } from '../utils/primitive.cjs';
|
|
3
|
-
|
|
4
|
-
export type { FieldCharacterCountOptions, FieldMode, FieldValidationResult, FieldValidator, } from './fieldCore.cjs';
|
|
4
|
+
export type { FieldCharacterCountOptions, FieldMode, FieldValidationResult, FieldValidator, } from '../utils/field-core.cjs';
|
|
5
5
|
/** The state a `Field` reports through {@link FieldOwnProps.onValidityChange}. */
|
|
6
6
|
export type FieldValidityDetail = Omit<FieldSnapshot, 'controlId'>;
|
|
7
|
-
/**
|
|
8
|
-
* Imperative Field contract (shared across all five framework packages).
|
|
9
|
-
*/
|
|
7
|
+
/** Imperative Field contract for programmatic validation and reset. */
|
|
10
8
|
export interface FieldValidateHandle {
|
|
11
|
-
/**
|
|
12
|
-
* Run validation now (server errors, custom, native constraint, character count).
|
|
13
|
-
* Named for the platform method; allows all five frameworks to use `validate` prop name.
|
|
14
|
-
*/
|
|
9
|
+
/** Runs validation now, covering server errors, custom validation, native constraints, and character count. */
|
|
15
10
|
checkValidity(): Promise<boolean>;
|
|
16
|
-
/**
|
|
17
|
-
* Clear messages and `touched`/`dirty` flags, re-derive `filled`/`count` from control.
|
|
18
|
-
* Clear `errors` prop too (it's declarative, re-applied next render).
|
|
19
|
-
*/
|
|
11
|
+
/** Clears messages and touched/dirty state, and re-derives filled/count from the control. */
|
|
20
12
|
reset(): void;
|
|
21
13
|
}
|
|
22
|
-
/**
|
|
23
|
-
* What {@link Field}'s forwarded ref carries: the root `<div>` plus
|
|
24
|
-
* `validate()`. Type your ref as this to call it —
|
|
25
|
-
* `React.useRef<FieldHandle>(null)`.
|
|
26
|
-
*/
|
|
14
|
+
/** What {@link Field}'s forwarded ref carries: the root `<div>` plus the validate handle's methods. */
|
|
27
15
|
export type FieldHandle = HTMLDivElement & FieldValidateHandle;
|
|
28
|
-
/**
|
|
29
|
-
* What {@link Fieldset}'s forwarded ref carries: the `<fieldset>` plus
|
|
30
|
-
* `validate()`. `FieldValidateHandle` comes first because `<fieldset>` has a
|
|
31
|
-
* synchronous `checkValidity()` of its own: a call against the intersection
|
|
32
|
-
* resolves to whichever side is named first, and the async one is what the
|
|
33
|
-
* node actually carries at runtime.
|
|
34
|
-
*/
|
|
16
|
+
/** What {@link Fieldset}'s forwarded ref carries: the `<fieldset>` plus the validate handle's methods. */
|
|
35
17
|
export type FieldsetHandle = FieldValidateHandle & HTMLFieldSetElement;
|
|
36
18
|
/** The validation-model props shared by {@link FieldProps} and {@link FieldsetProps}. */
|
|
37
19
|
export interface FieldOwnProps {
|
|
38
20
|
/**
|
|
39
|
-
* Validator for this field, returning
|
|
40
|
-
* `null`/`undefined` when the value is acceptable. May be async; a
|
|
41
|
-
* resolution from a superseded run is discarded.
|
|
21
|
+
* Validator for this field; may be async, returning a message (or none) for the current value.
|
|
42
22
|
* @default undefined — only the `errors` prop and native constraint validation produce messages.
|
|
43
23
|
*/
|
|
44
|
-
validate?: FieldValidator;
|
|
24
|
+
validate?: FieldValidator | undefined;
|
|
45
25
|
/**
|
|
46
|
-
* When validation first runs
|
|
47
|
-
* failed re-validates on every input, so the error clears as soon as the
|
|
48
|
-
* user fixes it.
|
|
26
|
+
* When validation first runs; a field that has already failed re-validates on every input.
|
|
49
27
|
* @default 'blur'
|
|
50
28
|
*/
|
|
51
|
-
mode?: FieldMode;
|
|
29
|
+
mode?: FieldMode | undefined;
|
|
52
30
|
/**
|
|
53
|
-
* Server-injected errors, always shown
|
|
54
|
-
* produces. Clearing the prop clears them.
|
|
31
|
+
* Server-injected errors, always shown and listed before anything `validate` produces.
|
|
55
32
|
* @default undefined
|
|
56
33
|
*/
|
|
57
|
-
errors?: string | string[];
|
|
34
|
+
errors?: string | string[] | undefined;
|
|
58
35
|
/**
|
|
59
|
-
* Value handed to `validate
|
|
60
|
-
* control's `checked` (checkbox/radio) or `value` property instead.
|
|
36
|
+
* Value handed to `validate`; omitted, the Field reads the wrapped control's `checked`/`value` instead.
|
|
61
37
|
* @default undefined — read from the control.
|
|
62
38
|
*/
|
|
63
39
|
value?: unknown;
|
|
64
40
|
/**
|
|
65
|
-
* Field name, used as the `FormErrorSummary` link text when
|
|
66
|
-
* renders no `FieldError` of its own.
|
|
41
|
+
* Field name, used as the `FormErrorSummary` link text when no `FieldError` is rendered.
|
|
67
42
|
* @default undefined
|
|
68
43
|
*/
|
|
69
|
-
name?: string;
|
|
44
|
+
name?: string | undefined;
|
|
70
45
|
/**
|
|
71
|
-
* Whether an answer is mandatory
|
|
72
|
-
* native `required` attribute when it is an `<input>`/`<select>`/
|
|
73
|
-
* `<textarea>`, and as `aria-required="true"` when it is a group or a
|
|
74
|
-
* widget-role element, which has no native `required` to set.
|
|
75
|
-
*
|
|
76
|
-
* Render a `FieldRequiredIndicator` inside the `FieldLabel` to say so
|
|
77
|
-
* visibly; its text joins the control's accessible name, so the requirement
|
|
78
|
-
* is announced rather than only drawn.
|
|
46
|
+
* Whether an answer is mandatory, reflected as native `required` or `aria-required="true"` on the control.
|
|
79
47
|
* @default false
|
|
80
48
|
*/
|
|
81
|
-
required?: boolean;
|
|
49
|
+
required?: boolean | undefined;
|
|
82
50
|
/**
|
|
83
|
-
* Whether the field is unavailable
|
|
84
|
-
* native `disabled` attribute where there is one, `aria-disabled="true"`
|
|
85
|
-
* otherwise, because a disabled *widget* stays focusable and stays
|
|
86
|
-
* announced — and mirrored as `data-disabled` on the Field root and the
|
|
87
|
-
* control for styling.
|
|
51
|
+
* Whether the field is unavailable, applied as native `disabled` or `aria-disabled="true"` and mirrored as `data-disabled`.
|
|
88
52
|
* @default false
|
|
89
53
|
*/
|
|
90
|
-
disabled?: boolean;
|
|
54
|
+
disabled?: boolean | undefined;
|
|
91
55
|
/**
|
|
92
56
|
* Fires whenever the field's validity or interaction state changes.
|
|
93
57
|
* @default undefined
|
|
94
58
|
*/
|
|
95
|
-
onValidityChange?: (detail: FieldValidityDetail) => void;
|
|
59
|
+
onValidityChange?: ((detail: FieldValidityDetail) => void) | undefined;
|
|
96
60
|
/**
|
|
97
61
|
* Words all character-count copy: rendered text, announced message, and over-limit error.
|
|
98
|
-
* Negative `remaining` means over the limit. One callback for all three for consistency.
|
|
99
62
|
* @default undefined
|
|
100
63
|
*/
|
|
101
|
-
getCharacterCountMessage?: (remaining: number) => string;
|
|
64
|
+
getCharacterCountMessage?: ((remaining: number) => string) | undefined;
|
|
102
65
|
/**
|
|
103
|
-
*
|
|
104
|
-
* validation but the browser reports no message of its own. The browser's
|
|
105
|
-
* own messages are already localized; this fallback is the one the library
|
|
106
|
-
* supplies, so it is the one that needs translating.
|
|
66
|
+
* Message shown when the control fails native constraint validation with no message of its own.
|
|
107
67
|
* @default undefined — 'This field is invalid.'
|
|
108
68
|
*/
|
|
109
|
-
invalidMessage?: string;
|
|
69
|
+
invalidMessage?: string | undefined;
|
|
110
70
|
/**
|
|
111
|
-
*
|
|
112
|
-
* before running `validate`. Only `change` mode is debounced, and a blur
|
|
113
|
-
* cancels the pending run and validates immediately — the delay exists to
|
|
114
|
-
* keep a validator quiet *while* the user types, and a blur means they have
|
|
115
|
-
* stopped.
|
|
71
|
+
* Milliseconds `mode="change"` waits after the last keystroke before validating; a blur runs it immediately.
|
|
116
72
|
* @default 0 — no debounce.
|
|
117
73
|
*/
|
|
118
|
-
validationDebounceTime?: number;
|
|
74
|
+
validationDebounceTime?: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Spacing rung the skin packs the field by, mirrored to `data-density`.
|
|
77
|
+
* @default undefined — the skin's own default spacing.
|
|
78
|
+
*/
|
|
79
|
+
density?: 'compact' | (string & {}) | undefined;
|
|
119
80
|
}
|
|
120
81
|
/** Props for {@link FieldRoot}: {@link FieldProps} minus the derived-anatomy-only props. */
|
|
121
82
|
export type FieldRootProps = Omit<FieldProps, 'label' | 'description'> & Pick<PrimitivePropsWithRef<'div'>, 'asChild'>;
|
|
122
|
-
/**
|
|
123
|
-
* Props for {@link Field}, which wires one control to its label, description,
|
|
124
|
-
* and error text. No `asChild`: the recipe always wraps its children in the
|
|
125
|
-
* derived anatomy, so `Slot` would never receive the single element it needs.
|
|
126
|
-
* Reach for `primitives/field`'s headless `FieldRoot` for that.
|
|
127
|
-
*/
|
|
83
|
+
/** Props for {@link Field}, which wires one control to its label, description and error text. */
|
|
128
84
|
export interface FieldProps extends Omit<PrimitivePropsWithRef<'div'>, 'value' | 'asChild'>, FieldOwnProps {
|
|
129
85
|
/**
|
|
130
|
-
* The control's label, rendered into a derived `FieldLabel` whose `htmlFor`
|
|
131
|
-
* points at the control the Field found. The required marker is derived
|
|
132
|
-
* *inside* it, so the requirement joins the control's accessible name
|
|
133
|
-
* rather than sitting beside it.
|
|
86
|
+
* The control's label, rendered into a derived `FieldLabel` whose `htmlFor` points at the found control.
|
|
134
87
|
* @default undefined — no label is rendered, and the control is unnamed.
|
|
135
88
|
*/
|
|
136
|
-
label?: React.ReactNode;
|
|
89
|
+
label?: React.ReactNode | undefined;
|
|
137
90
|
/**
|
|
138
|
-
* Help text, rendered into a derived `FieldDescription`
|
|
139
|
-
* control's `aria-describedby`, so it is announced with the control.
|
|
91
|
+
* Help text, rendered into a derived `FieldDescription` joined to the control's `aria-describedby`.
|
|
140
92
|
* @default undefined — no description is rendered.
|
|
141
93
|
*/
|
|
142
|
-
description?: React.ReactNode;
|
|
94
|
+
description?: React.ReactNode | undefined;
|
|
143
95
|
}
|
|
144
96
|
/** Props for {@link Fieldset}, a {@link FieldRoot} that groups several controls under a `<legend>`. */
|
|
145
97
|
export interface FieldsetProps extends Omit<PrimitivePropsWithRef<'fieldset'>, 'value' | 'name'>, FieldOwnProps {
|
|
@@ -150,54 +102,44 @@ export interface FieldLabelProps extends PrimitivePropsWithRef<'label'> {
|
|
|
150
102
|
/** Props for {@link FieldRequiredIndicator}, the "this one is mandatory" marker inside a {@link FieldLabel}. */
|
|
151
103
|
export interface FieldRequiredIndicatorProps extends PrimitivePropsWithRef<'span'> {
|
|
152
104
|
/**
|
|
153
|
-
* Overrides the default
|
|
154
|
-
* `FieldLabel`, so whatever it renders is read out as part of the control's
|
|
155
|
-
* accessible name, and "Email (required)" says more than "Email star".
|
|
105
|
+
* Overrides the default `*` marker; rendered inside the accessible name, so words read better than a symbol.
|
|
156
106
|
* @default undefined — renders `*`.
|
|
157
107
|
*/
|
|
158
|
-
children?: React.ReactNode;
|
|
108
|
+
children?: React.ReactNode | undefined;
|
|
159
109
|
}
|
|
160
110
|
/** Props for {@link FieldDescription}, help text announced with the control. */
|
|
161
111
|
export interface FieldDescriptionProps extends PrimitivePropsWithRef<'span'> {
|
|
162
112
|
/**
|
|
163
|
-
* Element
|
|
164
|
-
* allowlist of tags. Takes a tag name only, never a component — `asChild`
|
|
165
|
-
* is React's escape hatch for that, and wins when both are set.
|
|
113
|
+
* Element tag to render instead of the default, from the library's allowlist of tags.
|
|
166
114
|
* @default 'span'
|
|
167
115
|
*/
|
|
168
|
-
as?: PolymorphicTag;
|
|
116
|
+
as?: PolymorphicTag | undefined;
|
|
169
117
|
}
|
|
170
118
|
/** Props for {@link FieldError}, rendered only while the field is invalid. */
|
|
171
119
|
export interface FieldErrorProps extends PrimitivePropsWithRef<'span'> {
|
|
172
120
|
/**
|
|
173
|
-
* Element
|
|
174
|
-
* allowlist of tags. Takes a tag name only, never a component — `asChild`
|
|
175
|
-
* is React's escape hatch for that, and wins when both are set.
|
|
121
|
+
* Element tag to render instead of the default, from the library's allowlist of tags.
|
|
176
122
|
* @default 'span'
|
|
177
123
|
*/
|
|
178
|
-
as?: PolymorphicTag;
|
|
124
|
+
as?: PolymorphicTag | undefined;
|
|
179
125
|
}
|
|
180
126
|
/** Props for {@link FieldCharacterCount}, the running "N characters remaining" count. */
|
|
181
127
|
export interface FieldCharacterCountProps extends PrimitivePropsWithRef<'span'> {
|
|
182
|
-
/**
|
|
183
|
-
* The soft limit. Deliberately not the control's native `maxlength`, which
|
|
184
|
-
* silently truncates instead of telling the user they went over.
|
|
185
|
-
*/
|
|
128
|
+
/** The soft limit; not the control's native `maxlength`, which truncates instead of warning. */
|
|
186
129
|
maxLength: number;
|
|
187
130
|
/**
|
|
188
|
-
* Percentage of `maxLength`
|
|
189
|
-
* all — GOV.UK's way of keeping a long field quiet until it matters.
|
|
131
|
+
* Percentage of `maxLength` typed before the count appears.
|
|
190
132
|
* @default 0 — visible from the first render.
|
|
191
133
|
*/
|
|
192
|
-
threshold?: number;
|
|
134
|
+
threshold?: number | undefined;
|
|
193
135
|
}
|
|
194
|
-
/** @internal Field identity and state distributed to the Label/Description/Error parts.
|
|
136
|
+
/** @internal Field identity and state distributed to the Label/Description/Error parts. */
|
|
195
137
|
export interface FieldContextValue {
|
|
196
138
|
labelId: string;
|
|
197
139
|
descriptionId: string;
|
|
198
140
|
errorId: string;
|
|
199
|
-
/** The id the control actually carries
|
|
200
|
-
controlId?: string;
|
|
141
|
+
/** The id the control actually carries; `undefined` until the Field has connected to one. */
|
|
142
|
+
controlId?: string | undefined;
|
|
201
143
|
errors: string[];
|
|
202
144
|
grouped: boolean;
|
|
203
145
|
/** Whether the Field is required, so `FieldRequiredIndicator` knows whether to render at all. */
|
|
@@ -205,5 +147,5 @@ export interface FieldContextValue {
|
|
|
205
147
|
count: number;
|
|
206
148
|
setCharacterCount: (options: FieldCharacterCountOptions | null) => void;
|
|
207
149
|
/** The root's `getCharacterCountMessage`, so the rendered count uses the same wording as the announced one. */
|
|
208
|
-
getCharacterCountMessage?: (remaining: number) => string;
|
|
150
|
+
getCharacterCountMessage?: ((remaining: number) => string) | undefined;
|
|
209
151
|
}
|
package/dist/field/types.d.ts
CHANGED
|
@@ -1,145 +1,97 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import type { FieldCharacterCountOptions, FieldMode, FieldSnapshot, FieldValidator } from '../utils/field-core.js';
|
|
2
3
|
import type { PolymorphicTag, PrimitivePropsWithRef } from '../utils/primitive.js';
|
|
3
|
-
|
|
4
|
-
export type { FieldCharacterCountOptions, FieldMode, FieldValidationResult, FieldValidator, } from './fieldCore.js';
|
|
4
|
+
export type { FieldCharacterCountOptions, FieldMode, FieldValidationResult, FieldValidator, } from '../utils/field-core.js';
|
|
5
5
|
/** The state a `Field` reports through {@link FieldOwnProps.onValidityChange}. */
|
|
6
6
|
export type FieldValidityDetail = Omit<FieldSnapshot, 'controlId'>;
|
|
7
|
-
/**
|
|
8
|
-
* Imperative Field contract (shared across all five framework packages).
|
|
9
|
-
*/
|
|
7
|
+
/** Imperative Field contract for programmatic validation and reset. */
|
|
10
8
|
export interface FieldValidateHandle {
|
|
11
|
-
/**
|
|
12
|
-
* Run validation now (server errors, custom, native constraint, character count).
|
|
13
|
-
* Named for the platform method; allows all five frameworks to use `validate` prop name.
|
|
14
|
-
*/
|
|
9
|
+
/** Runs validation now, covering server errors, custom validation, native constraints, and character count. */
|
|
15
10
|
checkValidity(): Promise<boolean>;
|
|
16
|
-
/**
|
|
17
|
-
* Clear messages and `touched`/`dirty` flags, re-derive `filled`/`count` from control.
|
|
18
|
-
* Clear `errors` prop too (it's declarative, re-applied next render).
|
|
19
|
-
*/
|
|
11
|
+
/** Clears messages and touched/dirty state, and re-derives filled/count from the control. */
|
|
20
12
|
reset(): void;
|
|
21
13
|
}
|
|
22
|
-
/**
|
|
23
|
-
* What {@link Field}'s forwarded ref carries: the root `<div>` plus
|
|
24
|
-
* `validate()`. Type your ref as this to call it —
|
|
25
|
-
* `React.useRef<FieldHandle>(null)`.
|
|
26
|
-
*/
|
|
14
|
+
/** What {@link Field}'s forwarded ref carries: the root `<div>` plus the validate handle's methods. */
|
|
27
15
|
export type FieldHandle = HTMLDivElement & FieldValidateHandle;
|
|
28
|
-
/**
|
|
29
|
-
* What {@link Fieldset}'s forwarded ref carries: the `<fieldset>` plus
|
|
30
|
-
* `validate()`. `FieldValidateHandle` comes first because `<fieldset>` has a
|
|
31
|
-
* synchronous `checkValidity()` of its own: a call against the intersection
|
|
32
|
-
* resolves to whichever side is named first, and the async one is what the
|
|
33
|
-
* node actually carries at runtime.
|
|
34
|
-
*/
|
|
16
|
+
/** What {@link Fieldset}'s forwarded ref carries: the `<fieldset>` plus the validate handle's methods. */
|
|
35
17
|
export type FieldsetHandle = FieldValidateHandle & HTMLFieldSetElement;
|
|
36
18
|
/** The validation-model props shared by {@link FieldProps} and {@link FieldsetProps}. */
|
|
37
19
|
export interface FieldOwnProps {
|
|
38
20
|
/**
|
|
39
|
-
* Validator for this field, returning
|
|
40
|
-
* `null`/`undefined` when the value is acceptable. May be async; a
|
|
41
|
-
* resolution from a superseded run is discarded.
|
|
21
|
+
* Validator for this field; may be async, returning a message (or none) for the current value.
|
|
42
22
|
* @default undefined — only the `errors` prop and native constraint validation produce messages.
|
|
43
23
|
*/
|
|
44
|
-
validate?: FieldValidator;
|
|
24
|
+
validate?: FieldValidator | undefined;
|
|
45
25
|
/**
|
|
46
|
-
* When validation first runs
|
|
47
|
-
* failed re-validates on every input, so the error clears as soon as the
|
|
48
|
-
* user fixes it.
|
|
26
|
+
* When validation first runs; a field that has already failed re-validates on every input.
|
|
49
27
|
* @default 'blur'
|
|
50
28
|
*/
|
|
51
|
-
mode?: FieldMode;
|
|
29
|
+
mode?: FieldMode | undefined;
|
|
52
30
|
/**
|
|
53
|
-
* Server-injected errors, always shown
|
|
54
|
-
* produces. Clearing the prop clears them.
|
|
31
|
+
* Server-injected errors, always shown and listed before anything `validate` produces.
|
|
55
32
|
* @default undefined
|
|
56
33
|
*/
|
|
57
|
-
errors?: string | string[];
|
|
34
|
+
errors?: string | string[] | undefined;
|
|
58
35
|
/**
|
|
59
|
-
* Value handed to `validate
|
|
60
|
-
* control's `checked` (checkbox/radio) or `value` property instead.
|
|
36
|
+
* Value handed to `validate`; omitted, the Field reads the wrapped control's `checked`/`value` instead.
|
|
61
37
|
* @default undefined — read from the control.
|
|
62
38
|
*/
|
|
63
39
|
value?: unknown;
|
|
64
40
|
/**
|
|
65
|
-
* Field name, used as the `FormErrorSummary` link text when
|
|
66
|
-
* renders no `FieldError` of its own.
|
|
41
|
+
* Field name, used as the `FormErrorSummary` link text when no `FieldError` is rendered.
|
|
67
42
|
* @default undefined
|
|
68
43
|
*/
|
|
69
|
-
name?: string;
|
|
44
|
+
name?: string | undefined;
|
|
70
45
|
/**
|
|
71
|
-
* Whether an answer is mandatory
|
|
72
|
-
* native `required` attribute when it is an `<input>`/`<select>`/
|
|
73
|
-
* `<textarea>`, and as `aria-required="true"` when it is a group or a
|
|
74
|
-
* widget-role element, which has no native `required` to set.
|
|
75
|
-
*
|
|
76
|
-
* Render a `FieldRequiredIndicator` inside the `FieldLabel` to say so
|
|
77
|
-
* visibly; its text joins the control's accessible name, so the requirement
|
|
78
|
-
* is announced rather than only drawn.
|
|
46
|
+
* Whether an answer is mandatory, reflected as native `required` or `aria-required="true"` on the control.
|
|
79
47
|
* @default false
|
|
80
48
|
*/
|
|
81
|
-
required?: boolean;
|
|
49
|
+
required?: boolean | undefined;
|
|
82
50
|
/**
|
|
83
|
-
* Whether the field is unavailable
|
|
84
|
-
* native `disabled` attribute where there is one, `aria-disabled="true"`
|
|
85
|
-
* otherwise, because a disabled *widget* stays focusable and stays
|
|
86
|
-
* announced — and mirrored as `data-disabled` on the Field root and the
|
|
87
|
-
* control for styling.
|
|
51
|
+
* Whether the field is unavailable, applied as native `disabled` or `aria-disabled="true"` and mirrored as `data-disabled`.
|
|
88
52
|
* @default false
|
|
89
53
|
*/
|
|
90
|
-
disabled?: boolean;
|
|
54
|
+
disabled?: boolean | undefined;
|
|
91
55
|
/**
|
|
92
56
|
* Fires whenever the field's validity or interaction state changes.
|
|
93
57
|
* @default undefined
|
|
94
58
|
*/
|
|
95
|
-
onValidityChange?: (detail: FieldValidityDetail) => void;
|
|
59
|
+
onValidityChange?: ((detail: FieldValidityDetail) => void) | undefined;
|
|
96
60
|
/**
|
|
97
61
|
* Words all character-count copy: rendered text, announced message, and over-limit error.
|
|
98
|
-
* Negative `remaining` means over the limit. One callback for all three for consistency.
|
|
99
62
|
* @default undefined
|
|
100
63
|
*/
|
|
101
|
-
getCharacterCountMessage?: (remaining: number) => string;
|
|
64
|
+
getCharacterCountMessage?: ((remaining: number) => string) | undefined;
|
|
102
65
|
/**
|
|
103
|
-
*
|
|
104
|
-
* validation but the browser reports no message of its own. The browser's
|
|
105
|
-
* own messages are already localized; this fallback is the one the library
|
|
106
|
-
* supplies, so it is the one that needs translating.
|
|
66
|
+
* Message shown when the control fails native constraint validation with no message of its own.
|
|
107
67
|
* @default undefined — 'This field is invalid.'
|
|
108
68
|
*/
|
|
109
|
-
invalidMessage?: string;
|
|
69
|
+
invalidMessage?: string | undefined;
|
|
110
70
|
/**
|
|
111
|
-
*
|
|
112
|
-
* before running `validate`. Only `change` mode is debounced, and a blur
|
|
113
|
-
* cancels the pending run and validates immediately — the delay exists to
|
|
114
|
-
* keep a validator quiet *while* the user types, and a blur means they have
|
|
115
|
-
* stopped.
|
|
71
|
+
* Milliseconds `mode="change"` waits after the last keystroke before validating; a blur runs it immediately.
|
|
116
72
|
* @default 0 — no debounce.
|
|
117
73
|
*/
|
|
118
|
-
validationDebounceTime?: number;
|
|
74
|
+
validationDebounceTime?: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Spacing rung the skin packs the field by, mirrored to `data-density`.
|
|
77
|
+
* @default undefined — the skin's own default spacing.
|
|
78
|
+
*/
|
|
79
|
+
density?: 'compact' | (string & {}) | undefined;
|
|
119
80
|
}
|
|
120
81
|
/** Props for {@link FieldRoot}: {@link FieldProps} minus the derived-anatomy-only props. */
|
|
121
82
|
export type FieldRootProps = Omit<FieldProps, 'label' | 'description'> & Pick<PrimitivePropsWithRef<'div'>, 'asChild'>;
|
|
122
|
-
/**
|
|
123
|
-
* Props for {@link Field}, which wires one control to its label, description,
|
|
124
|
-
* and error text. No `asChild`: the recipe always wraps its children in the
|
|
125
|
-
* derived anatomy, so `Slot` would never receive the single element it needs.
|
|
126
|
-
* Reach for `primitives/field`'s headless `FieldRoot` for that.
|
|
127
|
-
*/
|
|
83
|
+
/** Props for {@link Field}, which wires one control to its label, description and error text. */
|
|
128
84
|
export interface FieldProps extends Omit<PrimitivePropsWithRef<'div'>, 'value' | 'asChild'>, FieldOwnProps {
|
|
129
85
|
/**
|
|
130
|
-
* The control's label, rendered into a derived `FieldLabel` whose `htmlFor`
|
|
131
|
-
* points at the control the Field found. The required marker is derived
|
|
132
|
-
* *inside* it, so the requirement joins the control's accessible name
|
|
133
|
-
* rather than sitting beside it.
|
|
86
|
+
* The control's label, rendered into a derived `FieldLabel` whose `htmlFor` points at the found control.
|
|
134
87
|
* @default undefined — no label is rendered, and the control is unnamed.
|
|
135
88
|
*/
|
|
136
|
-
label?: React.ReactNode;
|
|
89
|
+
label?: React.ReactNode | undefined;
|
|
137
90
|
/**
|
|
138
|
-
* Help text, rendered into a derived `FieldDescription`
|
|
139
|
-
* control's `aria-describedby`, so it is announced with the control.
|
|
91
|
+
* Help text, rendered into a derived `FieldDescription` joined to the control's `aria-describedby`.
|
|
140
92
|
* @default undefined — no description is rendered.
|
|
141
93
|
*/
|
|
142
|
-
description?: React.ReactNode;
|
|
94
|
+
description?: React.ReactNode | undefined;
|
|
143
95
|
}
|
|
144
96
|
/** Props for {@link Fieldset}, a {@link FieldRoot} that groups several controls under a `<legend>`. */
|
|
145
97
|
export interface FieldsetProps extends Omit<PrimitivePropsWithRef<'fieldset'>, 'value' | 'name'>, FieldOwnProps {
|
|
@@ -150,54 +102,44 @@ export interface FieldLabelProps extends PrimitivePropsWithRef<'label'> {
|
|
|
150
102
|
/** Props for {@link FieldRequiredIndicator}, the "this one is mandatory" marker inside a {@link FieldLabel}. */
|
|
151
103
|
export interface FieldRequiredIndicatorProps extends PrimitivePropsWithRef<'span'> {
|
|
152
104
|
/**
|
|
153
|
-
* Overrides the default
|
|
154
|
-
* `FieldLabel`, so whatever it renders is read out as part of the control's
|
|
155
|
-
* accessible name, and "Email (required)" says more than "Email star".
|
|
105
|
+
* Overrides the default `*` marker; rendered inside the accessible name, so words read better than a symbol.
|
|
156
106
|
* @default undefined — renders `*`.
|
|
157
107
|
*/
|
|
158
|
-
children?: React.ReactNode;
|
|
108
|
+
children?: React.ReactNode | undefined;
|
|
159
109
|
}
|
|
160
110
|
/** Props for {@link FieldDescription}, help text announced with the control. */
|
|
161
111
|
export interface FieldDescriptionProps extends PrimitivePropsWithRef<'span'> {
|
|
162
112
|
/**
|
|
163
|
-
* Element
|
|
164
|
-
* allowlist of tags. Takes a tag name only, never a component — `asChild`
|
|
165
|
-
* is React's escape hatch for that, and wins when both are set.
|
|
113
|
+
* Element tag to render instead of the default, from the library's allowlist of tags.
|
|
166
114
|
* @default 'span'
|
|
167
115
|
*/
|
|
168
|
-
as?: PolymorphicTag;
|
|
116
|
+
as?: PolymorphicTag | undefined;
|
|
169
117
|
}
|
|
170
118
|
/** Props for {@link FieldError}, rendered only while the field is invalid. */
|
|
171
119
|
export interface FieldErrorProps extends PrimitivePropsWithRef<'span'> {
|
|
172
120
|
/**
|
|
173
|
-
* Element
|
|
174
|
-
* allowlist of tags. Takes a tag name only, never a component — `asChild`
|
|
175
|
-
* is React's escape hatch for that, and wins when both are set.
|
|
121
|
+
* Element tag to render instead of the default, from the library's allowlist of tags.
|
|
176
122
|
* @default 'span'
|
|
177
123
|
*/
|
|
178
|
-
as?: PolymorphicTag;
|
|
124
|
+
as?: PolymorphicTag | undefined;
|
|
179
125
|
}
|
|
180
126
|
/** Props for {@link FieldCharacterCount}, the running "N characters remaining" count. */
|
|
181
127
|
export interface FieldCharacterCountProps extends PrimitivePropsWithRef<'span'> {
|
|
182
|
-
/**
|
|
183
|
-
* The soft limit. Deliberately not the control's native `maxlength`, which
|
|
184
|
-
* silently truncates instead of telling the user they went over.
|
|
185
|
-
*/
|
|
128
|
+
/** The soft limit; not the control's native `maxlength`, which truncates instead of warning. */
|
|
186
129
|
maxLength: number;
|
|
187
130
|
/**
|
|
188
|
-
* Percentage of `maxLength`
|
|
189
|
-
* all — GOV.UK's way of keeping a long field quiet until it matters.
|
|
131
|
+
* Percentage of `maxLength` typed before the count appears.
|
|
190
132
|
* @default 0 — visible from the first render.
|
|
191
133
|
*/
|
|
192
|
-
threshold?: number;
|
|
134
|
+
threshold?: number | undefined;
|
|
193
135
|
}
|
|
194
|
-
/** @internal Field identity and state distributed to the Label/Description/Error parts.
|
|
136
|
+
/** @internal Field identity and state distributed to the Label/Description/Error parts. */
|
|
195
137
|
export interface FieldContextValue {
|
|
196
138
|
labelId: string;
|
|
197
139
|
descriptionId: string;
|
|
198
140
|
errorId: string;
|
|
199
|
-
/** The id the control actually carries
|
|
200
|
-
controlId?: string;
|
|
141
|
+
/** The id the control actually carries; `undefined` until the Field has connected to one. */
|
|
142
|
+
controlId?: string | undefined;
|
|
201
143
|
errors: string[];
|
|
202
144
|
grouped: boolean;
|
|
203
145
|
/** Whether the Field is required, so `FieldRequiredIndicator` knows whether to render at all. */
|
|
@@ -205,5 +147,5 @@ export interface FieldContextValue {
|
|
|
205
147
|
count: number;
|
|
206
148
|
setCharacterCount: (options: FieldCharacterCountOptions | null) => void;
|
|
207
149
|
/** The root's `getCharacterCountMessage`, so the rendered count uses the same wording as the announced one. */
|
|
208
|
-
getCharacterCountMessage?: (remaining: number) => string;
|
|
150
|
+
getCharacterCountMessage?: ((remaining: number) => string) | undefined;
|
|
209
151
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";var wt=Object.create;var w=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var Et=Object.getPrototypeOf,Tt=Object.prototype.hasOwnProperty;var Ht=(e,t)=>{for(var o in t)w(e,o,{get:t[o],enumerable:!0})},de=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dt(t))!Tt.call(e,a)&&a!==o&&w(e,a,{get:()=>t[a],enumerable:!(r=Lt(t,a))||r.enumerable});return e};var f=(e,t,o)=>(o=e!=null?wt(Et(e)):{},de(t||!e||!e.__esModule?w(o,"default",{value:e,enumerable:!0}):o,e)),Nt=e=>de(w({},"__esModule",{value:!0}),e);var $t={};Ht($t,{FileUpload:()=>Q,FileUploadClear:()=>dt,FileUploadDropzone:()=>D,FileUploadInput:()=>E,FileUploadItem:()=>T,FileUploadItemDelete:()=>N,FileUploadItemGroup:()=>z,FileUploadItemName:()=>S,FileUploadItemPreview:()=>M,FileUploadItemProvider:()=>Pe,FileUploadItemSizeText:()=>O,FileUploadLabel:()=>at,FileUploadProvider:()=>ot,FileUploadTrigger:()=>B,useFileUploadContext:()=>m,useFileUploadItemContext:()=>F});module.exports=Nt($t);var l=f(require("react"),1),Xe=require("../utils/createContext.cjs"),Ye=require("../utils/formControl.cjs"),J=require("../utils/hiddenInput.cjs"),A=require("../utils/liveAnnouncer.cjs"),Ze=require("../utils/part.cjs"),_e=require("../utils/primitive.cjs"),je=require("../utils/useCallbackRef.cjs"),et=require("../utils/useControllableState.cjs"),tt=require("../utils/visuallyHidden.cjs");var L=f(require("react"),1),pe=require("../utils/part.cjs"),y=require("../utils/primitive.cjs");var me=require("react/jsx-runtime"),D=L.forwardRef(({disableClick:e=!1,...t},o)=>{let r=m("FileUploadDropzone"),[a,i]=L.useState(!1),b=[t["aria-describedby"],r.required?r.descriptionId:void 0].filter(Boolean).join(" ")||void 0;return(0,me.jsx)(y.Primitive.div,{role:"button","aria-labelledby":r.labelPresent?r.labelId:void 0,tabIndex:r.disabled?-1:0,"aria-disabled":r.disabled||r.readOnly||void 0,"data-disabled":r.disabled?"":void 0,"data-readonly":r.readOnly?"":void 0,"data-dragging":a?"":void 0,"data-invalid":r.invalid?"":void 0,...t,...(0,pe.skdxPart)("file-upload","dropzone",t.className),"aria-describedby":b,ref:o,onClick:(0,y.composeEventHandlers)(t.onClick,()=>{e||r.openPicker()}),onKeyDown:(0,y.composeEventHandlers)(t.onKeyDown,c=>{(c.key==="Enter"||c.key===" ")&&!r.disabled&&!r.readOnly&&(c.preventDefault(),r.openPicker())}),onDragOver:(0,y.composeEventHandlers)(t.onDragOver,c=>{c.preventDefault(),!r.disabled&&!r.readOnly&&i(!0)}),onDragLeave:(0,y.composeEventHandlers)(t.onDragLeave,()=>i(!1)),onDrop:(0,y.composeEventHandlers)(t.onDrop,c=>{c.preventDefault(),i(!1),!r.disabled&&!r.readOnly&&r.addFiles(c.dataTransfer.files)})})});D.displayName="FileUploadDropzone";var fe=f(require("react"),1),ce=require("../utils/composeRefs.cjs"),ue=require("../utils/hiddenInput.cjs"),Fe=require("../utils/part.cjs"),ye=require("../utils/primitive.cjs");var Ue=require("react/jsx-runtime"),E=fe.forwardRef((e,t)=>{let o=m("FileUploadInput"),r=(0,ce.useComposedRefs)(t,o.inputRef);return(0,Ue.jsx)(ue.HiddenInput,{type:"file",accept:o.accept,multiple:o.multiple,...o.directory?{webkitdirectory:""}:{},capture:o.capture,disabled:o.disabled||o.readOnly,...e,...(0,Fe.skdxPart)("file-upload","input",e.className),ref:r,onChange:(0,ye.composeEventHandlers)(e.onChange,a=>{a.target.files&&o.addFiles(a.target.files),a.target.value=""})})});E.displayName="FileUploadInput";var ge=f(require("react"),1),be=require("../utils/createContext.cjs"),ve=require("../utils/part.cjs"),Re=require("../utils/primitive.cjs"),K=require("react/jsx-runtime"),[Pe,F]=(0,be.createSafeContext)("FileUploadItem"),T=ge.forwardRef(({file:e,status:t="idle",progress:o,...r},a)=>(0,K.jsx)(Pe,{file:e,children:(0,K.jsx)(Re.Primitive.div,{"data-state":t,"data-progress":o,...r,...(0,ve.skdxPart)("file-upload","item",r.className),ref:a})}));T.displayName="FileUploadItem";var xe=f(require("react"),1),he=require("../utils/part.cjs"),H=require("../utils/primitive.cjs");function Ie(e){let t=e.closest('[data-part="root"]');if(!t)return;let o=[...t.querySelectorAll('[data-part="item-delete"]')],r=o.indexOf(e);(o[r+1]??o[r-1]??t.querySelector('[data-part="dropzone"], [data-part="trigger"]'))?.focus()}var Ce=require("react/jsx-runtime"),N=xe.forwardRef(({file:e,...t},o)=>{let r=m("FileUploadItemDelete"),a=F("FileUploadItemDelete"),i=e??a.file;return(0,Ce.jsx)(H.Primitive.button,{type:"button","aria-label":r.removeLabel(i.name),disabled:r.disabled||r.readOnly,"data-disabled":r.disabled?"":void 0,"data-readonly":r.readOnly?"":void 0,...t,...(0,he.skdxPart)("file-upload","item-delete",t.className),ref:o,onClick:(0,H.composeEventHandlers)(t.onClick,b=>{r.disabled||r.readOnly||(Ie(b.currentTarget),r.removeFile(i))})})});N.displayName="FileUploadItemDelete";var ke=f(require("react"),1),we=require("../utils/part.cjs"),Le=require("../utils/primitive.cjs"),De=require("react/jsx-runtime"),z=ke.forwardRef((e,t)=>(0,De.jsx)(Le.Primitive.div,{...e,...(0,we.skdxPart)("file-upload","item-group",e.className),ref:t}));z.displayName="FileUploadItemGroup";var Ee=f(require("react"),1),Te=require("../utils/part.cjs"),He=require("../utils/primitive.cjs");var Ne=require("react/jsx-runtime"),S=Ee.forwardRef(({children:e,...t},o)=>{let r=F("FileUploadItemName");return(0,Ne.jsx)(He.Primitive.span,{...t,...(0,Te.skdxPart)("file-upload","item-name",t.className),ref:o,children:e??r.file.name})});S.displayName="FileUploadItemName";var ze=f(require("react"),1),Se=require("../utils/part.cjs"),Me=require("../utils/primitive.cjs");var Oe=require("react/jsx-runtime"),M=ze.forwardRef((e,t)=>(F("FileUploadItemPreview"),(0,Oe.jsx)(Me.Primitive.div,{...e,...(0,Se.skdxPart)("file-upload","item-preview",e.className),ref:t})));M.displayName="FileUploadItemPreview";var Be=f(require("react"),1),Ae=require("../utils/part.cjs"),$e=require("../utils/primitive.cjs");var Ge=require("react/jsx-runtime"),Ve=["byte","kilobyte","megabyte","gigabyte","terabyte"];function zt(e){let t=e,o=0;for(;t>=1e3&&o<Ve.length-1;)t/=1e3,o+=1;return new Intl.NumberFormat(void 0,{style:"unit",unit:Ve[o],unitDisplay:"narrow",maximumFractionDigits:1}).format(t)}var O=Be.forwardRef(({children:e,...t},o)=>{let r=F("FileUploadItemSizeText");return(0,Ge.jsx)($e.Primitive.span,{...t,...(0,Ae.skdxPart)("file-upload","item-size",t.className),ref:o,children:e??zt(r.file.size)})});O.displayName="FileUploadItemSizeText";var We=f(require("react"),1),qe=require("../utils/part.cjs"),V=require("../utils/primitive.cjs");var Ke=require("react/jsx-runtime"),B=We.forwardRef((e,t)=>{let o=m("FileUploadTrigger");return(0,Ke.jsx)(V.Primitive.button,{type:"button",disabled:o.disabled||o.readOnly,"data-disabled":o.disabled?"":void 0,"data-readonly":o.readOnly?"":void 0,...e,...(0,qe.skdxPart)("file-upload","trigger",e.className),ref:t,onClick:(0,V.composeEventHandlers)(e.onClick,r=>{r.stopPropagation(),o.openPicker()})})});B.displayName="FileUploadTrigger";var p=require("react/jsx-runtime"),Je=({showList:e,showPreview:t,renderFile:o,fileStatus:r})=>{let a=m("FileUpload");return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(D,{children:"Drag files here"}),(0,p.jsx)(B,{children:"Browse"}),(0,p.jsx)(E,{}),e?(0,p.jsx)(z,{children:a.files.map(i=>(0,p.jsx)(T,{file:i,...r?.(i),children:o?o(i):(0,p.jsxs)(p.Fragment,{children:[t?(0,p.jsx)(M,{}):null,(0,p.jsx)(S,{}),(0,p.jsx)(O,{}),(0,p.jsx)(N,{})]})},i.name))}):null]})};var U=require("react/jsx-runtime"),[ot,m]=(0,Xe.createSafeContext)("FileUpload");function St(e,t){if(!t)return!0;let o=t.split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(o.length===0)return!0;let r=e.name.toLowerCase(),a=e.type.toLowerCase();return o.some(i=>i.startsWith(".")?r.endsWith(i):i.endsWith("/*")?a.startsWith(i.slice(0,-1)):a===i)}function Mt(e){if(typeof DataTransfer>"u")return null;let t=new DataTransfer;for(let o of e)t.items.add(o);return t.files}var Ot=e=>`Remove ${e}`;function Qe(e){return e.length===0?"":e.length===1?`${e[0]} removed`:`${e.length} files removed`}function Vt(e){return e?"Required. No file selected":"Required"}function Bt(e,t){let o=[];if(e>0&&o.push(`${e} ${e===1?"file":"files"} added`),t.length>0){let r=[...new Set(t)].join(", "),a=t.length;o.push(`${a} ${a===1?"file":"files"} refused: ${r}`)}return o.join(". ")}function At(e,t){let o=[];return St(e,t.accept)||o.push("file-invalid-type"),t.maxFileSize!==void 0&&e.size>t.maxFileSize&&o.push("file-too-large"),t.minFileSize!==void 0&&e.size<t.minFileSize&&o.push("file-too-small"),o.push(...t.validate?.(e)??[]),o}var Q=l.forwardRef(({value:e,defaultValue:t=[],onValueChange:o,accept:r,multiple:a=!1,disabled:i=!1,maxFiles:b,maxFileSize:c,minFileSize:X,validate:Y,onFileReject:Z,removeLabel:mt=Ot,name:_,form:j,required:v=!1,requiredMessage:W,readOnly:u=!1,invalid:ft=!1,directory:ct=!1,capture:ut,preventDocumentDrop:ee=!0,showList:Ft=!0,showPreview:yt=!1,fileStatus:Ut,renderFile:gt,children:bt,...te},vt)=>{let oe=l.useRef(null),Rt=l.useId(),re=l.useId(),[Pt,It]=l.useState(!1),[s=[],g]=(0,et.useControllableState)({prop:e,defaultProp:t,onChange:o}),P=l.useCallback(n=>{if(i||u)return;let d=a?s:[],C=(a?b??1/0:1)-d.length,R=[],se=[];for(let q of Array.from(n)){let k=At(q,{accept:r,maxFileSize:c,minFileSize:X,validate:Y});if(R.length>=C&&k.push("too-many-files"),k.length>0){se.push(k[0]),Z?.({file:q,errors:k});continue}R.push(q)}(0,A.announce)(Bt(R.length,se)),R.length!==0&&g([...d,...R])},[i,u,a,s,b,g,r,c,X,Y,Z]),ie=l.useRef(P);l.useEffect(()=>{ie.current=P},[P]);let xt=l.useCallback(n=>{if(i||u)return;let d=s.indexOf(n);d!==-1&&((0,A.announce)(Qe([n.name])),g([...s.slice(0,d),...s.slice(d+1)]))},[i,u,s,g]),ht=l.useCallback(()=>{i||u||s.length===0||((0,A.announce)(Qe(s.map(n=>n.name))),g([]))},[i,u,s,g]),Ct=l.useCallback(()=>{!i&&!u&&oe.current?.click()},[i,u]),I=l.useRef(null),x=l.useRef(null),ae=l.useRef(""),h=(0,je.useCallbackRef)(()=>{let n=x.current;if(!n)return;let d=W&&v&&s.length===0?W:"";n.setCustomValidity(ae.current||d)}),kt=l.useCallback(n=>{ae.current=n,h()},[h]);l.useImperativeHandle(vt,()=>{let n={checkValidity:()=>x.current?.checkValidity()??!0,reportValidity:()=>x.current?.reportValidity()??!0,setCustomValidity:kt,addFiles:d=>ie.current(d)};return I.current?Object.assign(I.current,n):n}),(0,Ye.useFormReset)(I,()=>g(t));let le=l.useRef(null);l.useEffect(()=>{let n=le.current;if(!n)return;let d=Mt(s);d&&(n.files=d)},[s]);let ne=ft||v&&s.length===0;return l.useEffect(()=>{h()},[h,W,v,s]),l.useEffect(()=>{if(!ee)return;let n=d=>{let C=d.target;C instanceof Element&&C.closest('[data-part="dropzone"]')||d.preventDefault()};return document.addEventListener("dragover",n),document.addEventListener("drop",n),()=>{document.removeEventListener("dragover",n),document.removeEventListener("drop",n)}},[ee]),(0,U.jsxs)(ot,{inputRef:oe,files:s,disabled:i,accept:r,multiple:a,addFiles:P,removeFile:xt,clearFiles:ht,openPicker:Ct,removeLabel:mt,readOnly:u,directory:ct,capture:ut,labelId:Rt,labelPresent:Pt,setLabelPresent:It,descriptionId:re,required:v,invalid:ne,children:[(0,U.jsx)(_e.Primitive.div,{"data-disabled":i?"":void 0,...te,...(0,Ze.skdxPart)("file-upload","root",te.className),ref:I,children:bt??(0,U.jsx)(Je,{showList:Ft,showPreview:yt,renderFile:gt,fileStatus:Ut})}),_&&(0,U.jsx)(J.HiddenInput,{ref:le,type:"file",name:_,multiple:a,accept:r,disabled:i,form:j}),(0,U.jsx)(J.HiddenInput,{ref:x,type:"text",required:v,disabled:i,form:j,value:s.map(n=>n.name).join(", ")}),v&&(0,U.jsx)(tt.VisuallyHidden,{id:re,children:Vt(ne)})]})});Q.displayName="FileUpload";var $=f(require("react"),1),rt=require("../utils/part.cjs"),it=require("../utils/primitive.cjs");var lt=require("react/jsx-runtime"),at=$.forwardRef((e,t)=>{let o=m("FileUploadLabel"),{setLabelPresent:r}=o;return $.useEffect(()=>(r(!0),()=>r(!1)),[r]),(0,lt.jsx)(it.Primitive.span,{id:o.labelId,...e,...(0,rt.skdxPart)("file-upload","label",e.className),ref:t})});at.displayName="FileUploadLabel";var nt=f(require("react"),1),st=require("../utils/part.cjs"),G=require("../utils/primitive.cjs");var pt=require("react/jsx-runtime"),dt=nt.forwardRef((e,t)=>{let o=m("FileUploadClear"),r=o.files.length===0;return(0,pt.jsx)(G.Primitive.button,{type:"button",disabled:o.disabled||o.readOnly||r,"data-disabled":o.disabled?"":void 0,"data-readonly":o.readOnly?"":void 0,...e,...(0,st.skdxPart)("file-upload","clear",e.className),ref:t,onClick:(0,G.composeEventHandlers)(e.onClick,()=>{o.clearFiles()})})});dt.displayName="FileUploadClear";0&&(module.exports={FileUpload,FileUploadClear,FileUploadDropzone,FileUploadInput,FileUploadItem,FileUploadItemDelete,FileUploadItemGroup,FileUploadItemName,FileUploadItemPreview,FileUploadItemProvider,FileUploadItemSizeText,FileUploadLabel,FileUploadProvider,FileUploadTrigger,useFileUploadContext,useFileUploadItemContext});
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var Ut=Object.create;var D=Object.defineProperty;var Rt=Object.getOwnPropertyDescriptor;var bt=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,vt=Object.prototype.hasOwnProperty;var It=(o,t)=>{for(var e in t)D(o,e,{get:t[e],enumerable:!0})},ee=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bt(t))!vt.call(o,i)&&i!==e&&D(o,i,{get:()=>t[i],enumerable:!(r=Rt(t,i))||r.enumerable});return o};var B=(o,t,e)=>(e=o!=null?Ut(gt(o)):{},ee(t||!o||!o.__esModule?D(e,"default",{value:o,enumerable:!0}):e,o)),Pt=o=>ee(D({},"__esModule",{value:!0}),o);var St={};It(St,{FileUpload:()=>K,FileUploadClear:()=>Xe,FileUploadDropzone:()=>L,FileUploadInput:()=>E,FileUploadItem:()=>w,FileUploadItemDelete:()=>H,FileUploadItemGroup:()=>z,FileUploadItemName:()=>S,FileUploadItemPreview:()=>O,FileUploadItemProvider:()=>fe,FileUploadItemSizeText:()=>V,FileUploadLabel:()=>We,FileUploadProvider:()=>$e,FileUploadTrigger:()=>M,useFileUploadContext:()=>s,useFileUploadItemContext:()=>U});module.exports=Pt(St);var a=B(require("react"),1),He=require("../utils/createContext.cjs"),ze=require("../utils/formControl.cjs"),J=require("../utils/hiddenInput.cjs"),$=require("../utils/liveAnnouncer.cjs"),Se=require("../utils/part.cjs"),Oe=require("../utils/primitive.cjs"),Ve=require("../utils/useCallbackRef.cjs"),Ae=require("../utils/useControllableState.cjs"),Me=require("../utils/visuallyHidden.cjs");var Ee=require("../utils/Glyph.cjs");var te=B(require("react"),1),oe=require("../utils/part.cjs"),b=require("../utils/primitive.cjs");var re=require("react/jsx-runtime"),L=({disableClick:o=!1,ref:t,...e})=>{let r=s("FileUploadDropzone"),[i,l]=te.useState(!1),u=[e["aria-describedby"],r.required?r.descriptionId:void 0].filter(Boolean).join(" ")||void 0;return(0,re.jsx)(b.Primitive.div,{role:"button","aria-labelledby":r.labelPresent?r.labelId:void 0,tabIndex:r.disabled?-1:0,"aria-disabled":r.disabled||r.readOnly||void 0,"data-disabled":r.disabled?"":void 0,"data-readonly":r.readOnly?"":void 0,"data-dragging":i?"":void 0,"data-invalid":r.invalid?"":void 0,...e,...(0,oe.skdxPart)("file-upload","dropzone",e.className),"aria-describedby":u,ref:t,onClick:(0,b.composeEventHandlers)(e.onClick,()=>{o||r.openPicker()}),onKeyDown:(0,b.composeEventHandlers)(e.onKeyDown,n=>{(n.key==="Enter"||n.key===" ")&&!r.disabled&&!r.readOnly&&(n.preventDefault(),r.openPicker())}),onDragOver:(0,b.composeEventHandlers)(e.onDragOver,n=>{n.preventDefault(),!r.disabled&&!r.readOnly&&l(!0)}),onDragLeave:(0,b.composeEventHandlers)(e.onDragLeave,()=>l(!1)),onDrop:(0,b.composeEventHandlers)(e.onDrop,n=>{n.preventDefault(),l(!1),!r.disabled&&!r.readOnly&&r.addFiles(n.dataTransfer.files)})})};L.displayName="FileUploadDropzone";var ie=require("../utils/composeRefs.cjs"),le=require("../utils/hiddenInput.cjs"),ae=require("../utils/part.cjs"),ne=require("../utils/primitive.cjs");var de=require("react/jsx-runtime"),E=({ref:o,...t})=>{let e=s("FileUploadInput"),r=(0,ie.useComposedRefs)(o,e.inputRef);return(0,de.jsx)(le.HiddenInput,{type:"file",accept:e.accept,multiple:e.multiple,...e.directory?{webkitdirectory:""}:{},capture:e.capture,disabled:e.disabled||e.readOnly,...t,...(0,ae.skdxPart)("file-upload","input",t.className),ref:r,onChange:(0,ne.composeEventHandlers)(t.onChange,i=>{i.target.files&&e.addFiles(i.target.files),i.target.value=""})})};E.displayName="FileUploadInput";var se=require("../utils/createContext.cjs"),pe=require("../utils/part.cjs"),me=require("../utils/primitive.cjs"),W=require("react/jsx-runtime"),[fe,U]=(0,se.createSafeContext)("FileUploadItem"),w=({file:o,status:t="idle",progress:e,ref:r,...i})=>(0,W.jsx)(fe,{file:o,children:(0,W.jsx)(me.Primitive.div,{"data-state":t,"data-progress":e,...i,...(0,pe.skdxPart)("file-upload","item",i.className),ref:r})});w.displayName="FileUploadItem";var ue=require("../utils/part.cjs"),T=require("../utils/primitive.cjs");function ce(o){let t=o.closest('[data-part="root"]');if(!t)return;let e=[...t.querySelectorAll('[data-part="item-delete"]')],r=e.indexOf(o);(e[r+1]??e[r-1]??t.querySelector('[data-part="dropzone"], [data-part="trigger"]'))?.focus()}var Fe=require("react/jsx-runtime"),H=({file:o,ref:t,...e})=>{let r=s("FileUploadItemDelete"),i=U("FileUploadItemDelete"),l=o??i.file;return(0,Fe.jsx)(T.Primitive.button,{type:"button","aria-label":r.removeLabel(l.name),disabled:r.disabled||r.readOnly,"data-disabled":r.disabled?"":void 0,"data-readonly":r.readOnly?"":void 0,...e,...(0,ue.skdxPart)("file-upload","item-delete",e.className),ref:t,onClick:(0,T.composeEventHandlers)(e.onClick,u=>{r.disabled||r.readOnly||(ce(u.currentTarget),r.removeFile(l))})})};H.displayName="FileUploadItemDelete";var ye=require("../utils/part.cjs"),Ue=require("../utils/primitive.cjs"),Re=require("react/jsx-runtime"),z=({ref:o,...t})=>(0,Re.jsx)(Ue.Primitive.div,{...t,...(0,ye.skdxPart)("file-upload","item-group",t.className),ref:o});z.displayName="FileUploadItemGroup";var be=require("../utils/part.cjs"),ge=require("../utils/primitive.cjs");var ve=require("react/jsx-runtime"),S=({children:o,ref:t,...e})=>{let r=U("FileUploadItemName");return(0,ve.jsx)(ge.Primitive.span,{...e,...(0,be.skdxPart)("file-upload","item-name",e.className),ref:t,children:o??r.file.name})};S.displayName="FileUploadItemName";var Ie=require("../utils/part.cjs"),Pe=require("../utils/primitive.cjs");var xe=require("react/jsx-runtime"),O=({ref:o,...t})=>(U("FileUploadItemPreview"),(0,xe.jsx)(Pe.Primitive.div,{...t,...(0,Ie.skdxPart)("file-upload","item-preview",t.className),ref:o}));O.displayName="FileUploadItemPreview";var Ce=require("../utils/format-file-size.cjs"),he=require("../utils/part.cjs"),ke=require("../utils/primitive.cjs");var Ne=require("react/jsx-runtime"),V=({children:o,ref:t,...e})=>{let r=U("FileUploadItemSizeText");return(0,Ne.jsx)(ke.Primitive.span,{...e,...(0,he.skdxPart)("file-upload","item-size",e.className),ref:t,children:o??(0,Ce.formatFileSize)(r.file.size)})};V.displayName="FileUploadItemSizeText";var De=require("../utils/part.cjs"),A=require("../utils/primitive.cjs");var Le=require("react/jsx-runtime"),M=({ref:o,...t})=>{let e=s("FileUploadTrigger");return(0,Le.jsx)(A.Primitive.button,{type:"button",disabled:e.disabled||e.readOnly,"data-disabled":e.disabled?"":void 0,"data-readonly":e.readOnly?"":void 0,...t,...(0,De.skdxPart)("file-upload","trigger",t.className),ref:o,onClick:(0,A.composeEventHandlers)(t.onClick,r=>{r.stopPropagation(),e.openPicker()})})};M.displayName="FileUploadTrigger";var d=require("react/jsx-runtime"),xt=()=>(0,d.jsx)(Ee.Glyph,{name:"close"}),we=({showList:o,showPreview:t,renderFile:e,fileStatus:r})=>{let i=s("FileUpload");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(L,{children:"Drag files here"}),(0,d.jsx)(M,{children:"Browse"}),(0,d.jsx)(E,{}),o?(0,d.jsx)(z,{children:i.files.map(l=>(0,d.jsx)(w,{file:l,...r?.(l),children:e?e(l):(0,d.jsxs)(d.Fragment,{children:[t?(0,d.jsx)(O,{}):null,(0,d.jsx)(S,{}),(0,d.jsx)(V,{}),(0,d.jsx)(H,{children:(0,d.jsx)(xt,{})})]})},l.name))}):null]})};var c=require("react/jsx-runtime"),[$e,s]=(0,He.createSafeContext)("FileUpload");function Ct(o,t){if(!t)return!0;let e=t.split(",").map(l=>l.trim().toLowerCase()).filter(Boolean);if(e.length===0)return!0;let r=o.name.toLowerCase(),i=o.type.toLowerCase();return e.some(l=>l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?i.startsWith(l.slice(0,-1)):i===l)}function ht(o){if(typeof DataTransfer>"u")return null;let t=new DataTransfer;for(let e of o)t.items.add(e);return t.files}var kt=o=>`Remove ${o}`;function Te(o){return o.length===0?"":o.length===1?`${o[0]} removed`:`${o.length} files removed`}function Nt(o){return o?"Required. No file selected":"Required"}function Dt(o,t){let e=[];if(o>0&&e.push(`${o} ${o===1?"file":"files"} added`),t.length>0){let r=[...new Set(t)].join(", "),i=t.length;e.push(`${i} ${i===1?"file":"files"} refused: ${r}`)}return e.join(". ")}function Lt(o,t){let e=[];return Ct(o,t.accept)||e.push("file-invalid-type"),t.maxFileSize!==void 0&&o.size>t.maxFileSize&&e.push("file-too-large"),t.minFileSize!==void 0&&o.size<t.minFileSize&&e.push("file-too-small"),e.push(...t.validator?.(o)??[]),e}function Et(o,t,e){return o||t&&e===0}function wt(o,t){return{"data-disabled":o?"":void 0,"data-readonly":t?"":void 0}}function Tt({forwardedRef:o,requiredMessage:t,required:e,files:r,setFiles:i,defaultValue:l,addFilesRef:u}){let n=a.useRef(null),y=a.useRef(null),g=a.useRef(""),R=(0,Ve.useCallbackRef)(()=>{let m=y.current;if(!m)return;let f=t&&e&&r.length===0?t:"";m.setCustomValidity(g.current||f)}),x=m=>{g.current=m,R()};a.useImperativeHandle(o,()=>{let m={checkValidity:()=>y.current?.checkValidity()??!0,reportValidity:()=>y.current?.reportValidity()??!0,setCustomValidity:x,addFiles:f=>u.current(f)};return n.current?Object.assign(n.current,m):m}),(0,ze.useFormReset)(n,()=>i(l));let h=a.useRef(null);return a.useEffect(()=>{let m=h.current;if(!m)return;let f=ht(r);f&&(m.files=f)},[r]),a.useEffect(()=>{R()},[R,t,e,r]),{rootRef:n,validityRef:y,formInputRef:h}}function Ht({name:o,form:t,multiple:e,accept:r,disabled:i,required:l,invalid:u,files:n,formInputRef:y,validityRef:g,descriptionId:R}){return(0,c.jsxs)(c.Fragment,{children:[o?(0,c.jsx)(J.HiddenInput,{ref:y,type:"file",name:o,multiple:e,accept:r,disabled:i,form:t}):null,(0,c.jsx)(J.HiddenInput,{ref:g,type:"text",required:l,disabled:i,form:t,value:n.map(x=>x.name).join(", ")}),l?(0,c.jsx)(Me.VisuallyHidden,{id:R,children:Nt(u)}):null]})}function zt(o){a.useEffect(()=>{if(!o)return;let t=e=>{let r=e.target;r instanceof Element&&r.closest('[data-part="dropzone"]')||e.preventDefault()};return document.addEventListener("dragover",t),document.addEventListener("drop",t),()=>{document.removeEventListener("dragover",t),document.removeEventListener("drop",t)}},[o])}var K=({value:o,defaultValue:t=[],onValueChange:e,accept:r,multiple:i=!1,disabled:l=!1,maxFiles:u,maxFileSize:n,minFileSize:y,validator:g,onFileReject:R,removeLabel:x=kt,name:h,form:m,required:f=!1,requiredMessage:Ye,readOnly:F=!1,invalid:Ze=!1,directory:_e=!1,capture:je,preventDocumentDrop:et=!0,showList:tt=!0,showPreview:ot=!1,fileStatus:rt,renderFile:it,children:lt,ref:at,...X})=>{let Q=a.useRef(null),nt=a.useId(),Y=a.useId(),[dt,st]=a.useState(!1),[p=[],v]=(0,Ae.useControllableState)({prop:o,defaultProp:t,onChange:e}),k=a.useCallback(I=>{if(l||F)return;let P=i?p:[],yt=(i?u??1/0:1)-P.length,C=[],j=[];for(let q of Array.from(I)){let N=Lt(q,{accept:r,maxFileSize:n,minFileSize:y,validator:g});if(C.length>=yt&&N.push("too-many-files"),N.length>0){j.push(N[0]),R?.({file:q,errors:N});continue}C.push(q)}(0,$.announce)(Dt(C.length,j)),C.length!==0&&v([...P,...C])},[l,F,i,p,u,v,r,n,y,g,R]),Z=a.useRef(k);a.useEffect(()=>{Z.current=k},[k]);let pt=a.useCallback(I=>{if(l||F)return;let P=p.indexOf(I);P!==-1&&((0,$.announce)(Te([I.name])),v([...p.slice(0,P),...p.slice(P+1)]))},[l,F,p,v]),mt=a.useCallback(()=>{l||F||p.length===0||((0,$.announce)(Te(p.map(I=>I.name))),v([]))},[l,F,p,v]),ft=a.useCallback(()=>{!l&&!F&&Q.current?.click()},[l,F]),{rootRef:ct,validityRef:ut,formInputRef:Ft}=Tt({forwardedRef:at,requiredMessage:Ye,required:f,files:p,setFiles:v,defaultValue:t,addFilesRef:Z}),_=Et(Ze,f,p.length);return zt(et),(0,c.jsxs)($e,{inputRef:Q,files:p,disabled:l,accept:r,multiple:i,addFiles:k,removeFile:pt,clearFiles:mt,openPicker:ft,removeLabel:x,readOnly:F,directory:_e,capture:je,labelId:nt,labelPresent:dt,setLabelPresent:st,descriptionId:Y,required:f,invalid:_,children:[(0,c.jsx)(Oe.Primitive.div,{...wt(l,F),...X,...(0,Se.skdxPart)("file-upload","root",X.className),ref:ct,children:lt??(0,c.jsx)(we,{showList:tt,showPreview:ot,renderFile:it,fileStatus:rt})}),Ht({name:h,form:m,multiple:i,accept:r,disabled:l,required:f,invalid:_,files:p,formInputRef:Ft,validityRef:ut,descriptionId:Y})]})};K.displayName="FileUpload";var Ge=B(require("react"),1),qe=require("../utils/part.cjs"),Be=require("../utils/primitive.cjs");var Je=require("react/jsx-runtime"),We=({ref:o,...t})=>{let e=s("FileUploadLabel"),{setLabelPresent:r}=e;return Ge.useEffect(()=>(r(!0),()=>r(!1)),[r]),(0,Je.jsx)(Be.Primitive.span,{id:e.labelId,...t,...(0,qe.skdxPart)("file-upload","label",t.className),ref:o})};We.displayName="FileUploadLabel";var Ke=require("../utils/part.cjs"),G=require("../utils/primitive.cjs");var Qe=require("react/jsx-runtime"),Xe=({ref:o,...t})=>{let e=s("FileUploadClear"),r=e.files.length===0;return(0,Qe.jsx)(G.Primitive.button,{type:"button",disabled:e.disabled||e.readOnly||r,"data-disabled":e.disabled?"":void 0,"data-readonly":e.readOnly?"":void 0,...t,...(0,Ke.skdxPart)("file-upload","clear",t.className),ref:o,onClick:(0,G.composeEventHandlers)(t.onClick,()=>{e.clearFiles()})})};Xe.displayName="FileUploadClear";0&&(module.exports={FileUpload,FileUploadClear,FileUploadDropzone,FileUploadInput,FileUploadItem,FileUploadItemDelete,FileUploadItemGroup,FileUploadItemName,FileUploadItemPreview,FileUploadItemProvider,FileUploadItemSizeText,FileUploadLabel,FileUploadProvider,FileUploadTrigger,useFileUploadContext,useFileUploadItemContext});
|