@skdx/react 0.26.0 → 0.28.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/LICENSE +21 -0
- package/README.md +4 -4
- package/dist/accordion/Accordion.cjs +1 -1
- package/dist/accordion/Accordion.d.cts +15 -25
- package/dist/accordion/Accordion.d.ts +15 -25
- package/dist/accordion/Accordion.js +1 -1
- package/dist/accordion/AccordionAnatomy.d.cts +14 -0
- package/dist/accordion/AccordionAnatomy.d.ts +14 -0
- package/dist/accordion/AccordionContent.d.cts +5 -6
- package/dist/accordion/AccordionContent.d.ts +5 -6
- package/dist/accordion/AccordionHeader.d.cts +4 -4
- package/dist/accordion/AccordionHeader.d.ts +4 -4
- package/dist/accordion/AccordionIndicator.d.cts +16 -0
- package/dist/accordion/AccordionIndicator.d.ts +16 -0
- package/dist/accordion/index.d.cts +3 -6
- package/dist/accordion/index.d.ts +3 -6
- package/dist/accordion/primitives.d.cts +27 -0
- package/dist/accordion/primitives.d.ts +27 -0
- package/dist/accordion/types.d.cts +83 -65
- package/dist/accordion/types.d.ts +83 -65
- package/dist/affix/Affix.cjs +1 -1
- package/dist/affix/Affix.d.cts +4 -23
- package/dist/affix/Affix.d.ts +4 -23
- package/dist/affix/Affix.js +1 -1
- package/dist/affix/types.d.cts +14 -9
- package/dist/affix/types.d.ts +14 -9
- package/dist/alert/Alert.cjs +1 -1
- package/dist/alert/Alert.d.cts +53 -11
- package/dist/alert/Alert.d.ts +53 -11
- package/dist/alert/Alert.js +1 -1
- package/dist/alert/AlertAction.d.cts +2 -4
- package/dist/alert/AlertAction.d.ts +2 -4
- package/dist/alert/AlertAnatomy.d.cts +17 -0
- package/dist/alert/AlertAnatomy.d.ts +17 -0
- package/dist/alert/AlertClose.d.cts +2 -6
- package/dist/alert/AlertClose.d.ts +2 -6
- package/dist/alert/AlertDescription.d.cts +1 -3
- package/dist/alert/AlertDescription.d.ts +1 -3
- package/dist/alert/AlertTitle.d.cts +1 -3
- package/dist/alert/AlertTitle.d.ts +1 -3
- package/dist/alert/index.d.cts +2 -7
- package/dist/alert/index.d.ts +2 -7
- package/dist/alert/primitives.d.cts +25 -0
- package/dist/alert/primitives.d.ts +25 -0
- package/dist/alert/types.d.cts +57 -7
- package/dist/alert/types.d.ts +57 -7
- package/dist/alert-dialog/AlertDialog.cjs +1 -1
- package/dist/alert-dialog/AlertDialog.d.cts +20 -12
- package/dist/alert-dialog/AlertDialog.d.ts +20 -12
- package/dist/alert-dialog/AlertDialog.js +1 -1
- package/dist/alert-dialog/AlertDialogAction.d.cts +26 -3
- package/dist/alert-dialog/AlertDialogAction.d.ts +26 -3
- package/dist/alert-dialog/AlertDialogAnatomy.d.cts +22 -0
- package/dist/alert-dialog/AlertDialogAnatomy.d.ts +22 -0
- package/dist/alert-dialog/AlertDialogCancel.d.cts +1 -3
- package/dist/alert-dialog/AlertDialogCancel.d.ts +1 -3
- package/dist/alert-dialog/AlertDialogContent.d.cts +8 -14
- package/dist/alert-dialog/AlertDialogContent.d.ts +8 -14
- package/dist/alert-dialog/AlertDialogOverlay.d.cts +1 -3
- package/dist/alert-dialog/AlertDialogOverlay.d.ts +1 -3
- package/dist/alert-dialog/AlertDialogPortal.d.cts +2 -4
- package/dist/alert-dialog/AlertDialogPortal.d.ts +2 -4
- package/dist/alert-dialog/AlertDialogTitle.d.cts +1 -3
- package/dist/alert-dialog/AlertDialogTitle.d.ts +1 -3
- package/dist/alert-dialog/focusTargets.d.cts +16 -0
- package/dist/alert-dialog/focusTargets.d.ts +16 -0
- package/dist/alert-dialog/index.d.cts +1 -9
- package/dist/alert-dialog/index.d.ts +1 -9
- package/dist/alert-dialog/primitives.d.cts +31 -0
- package/dist/alert-dialog/primitives.d.ts +31 -0
- package/dist/alert-dialog/types.d.cts +124 -9
- package/dist/alert-dialog/types.d.ts +124 -9
- package/dist/angle-slider/AngleSlider.cjs +1 -1
- package/dist/angle-slider/AngleSlider.d.cts +17 -14
- package/dist/angle-slider/AngleSlider.d.ts +17 -14
- package/dist/angle-slider/AngleSlider.js +1 -1
- package/dist/angle-slider/AngleSliderAnatomy.d.cts +11 -0
- package/dist/angle-slider/AngleSliderAnatomy.d.ts +11 -0
- package/dist/angle-slider/AngleSliderMark.d.cts +2 -11
- package/dist/angle-slider/AngleSliderMark.d.ts +2 -11
- package/dist/angle-slider/AngleSliderMarks.d.cts +6 -9
- package/dist/angle-slider/AngleSliderMarks.d.ts +6 -9
- package/dist/angle-slider/AngleSliderThumb.d.cts +2 -16
- package/dist/angle-slider/AngleSliderThumb.d.ts +2 -16
- package/dist/angle-slider/index.d.cts +1 -4
- package/dist/angle-slider/index.d.ts +1 -4
- package/dist/angle-slider/primitives.d.cts +23 -0
- package/dist/angle-slider/primitives.d.ts +23 -0
- package/dist/angle-slider/types.d.cts +74 -27
- package/dist/angle-slider/types.d.ts +74 -27
- package/dist/aspect-ratio/AspectRatio.cjs +1 -1
- package/dist/aspect-ratio/AspectRatio.d.cts +9 -6
- package/dist/aspect-ratio/AspectRatio.d.ts +9 -6
- package/dist/aspect-ratio/AspectRatio.js +1 -1
- package/dist/aspect-ratio/types.d.cts +1 -10
- package/dist/aspect-ratio/types.d.ts +1 -10
- package/dist/autocomplete/Autocomplete.cjs +1 -1
- package/dist/autocomplete/Autocomplete.d.cts +17 -26
- package/dist/autocomplete/Autocomplete.d.ts +17 -26
- package/dist/autocomplete/Autocomplete.js +1 -1
- package/dist/autocomplete/AutocompleteAnatomy.d.cts +17 -0
- package/dist/autocomplete/AutocompleteAnatomy.d.ts +17 -0
- package/dist/autocomplete/AutocompleteClear.d.cts +23 -0
- package/dist/autocomplete/AutocompleteClear.d.ts +23 -0
- package/dist/autocomplete/AutocompleteContent.d.cts +8 -7
- package/dist/autocomplete/AutocompleteContent.d.ts +8 -7
- package/dist/autocomplete/AutocompleteEmpty.d.cts +2 -12
- package/dist/autocomplete/AutocompleteEmpty.d.ts +2 -12
- package/dist/autocomplete/AutocompleteGroup.d.cts +28 -0
- package/dist/autocomplete/AutocompleteGroup.d.ts +28 -0
- package/dist/autocomplete/AutocompleteGroupLabel.d.cts +15 -0
- package/dist/autocomplete/AutocompleteGroupLabel.d.ts +15 -0
- package/dist/autocomplete/AutocompleteInput.d.cts +9 -12
- package/dist/autocomplete/AutocompleteInput.d.ts +9 -12
- package/dist/autocomplete/AutocompleteItem.d.cts +1 -19
- package/dist/autocomplete/AutocompleteItem.d.ts +1 -19
- package/dist/autocomplete/AutocompleteList.d.cts +2 -11
- package/dist/autocomplete/AutocompleteList.d.ts +2 -11
- package/dist/autocomplete/AutocompletePortal.d.cts +2 -4
- package/dist/autocomplete/AutocompletePortal.d.ts +2 -4
- package/dist/autocomplete/AutocompleteTrigger.d.cts +2 -10
- package/dist/autocomplete/AutocompleteTrigger.d.ts +2 -10
- package/dist/autocomplete/index.d.cts +2 -8
- package/dist/autocomplete/index.d.ts +2 -8
- package/dist/autocomplete/primitives.d.cts +32 -0
- package/dist/autocomplete/primitives.d.ts +32 -0
- package/dist/autocomplete/types.d.cts +167 -82
- package/dist/autocomplete/types.d.ts +167 -82
- package/dist/avatar/Avatar.cjs +1 -1
- package/dist/avatar/Avatar.d.cts +5 -6
- package/dist/avatar/Avatar.d.ts +5 -6
- package/dist/avatar/Avatar.js +1 -1
- package/dist/avatar/AvatarAnatomy.d.cts +11 -0
- package/dist/avatar/AvatarAnatomy.d.ts +11 -0
- package/dist/avatar/AvatarFallback.d.cts +2 -4
- package/dist/avatar/AvatarFallback.d.ts +2 -4
- package/dist/avatar/AvatarImage.d.cts +7 -2
- package/dist/avatar/AvatarImage.d.ts +7 -2
- package/dist/avatar/index.d.cts +2 -4
- package/dist/avatar/index.d.ts +2 -4
- package/dist/avatar/primitives.d.cts +17 -0
- package/dist/avatar/primitives.d.ts +17 -0
- package/dist/avatar/types.d.cts +29 -0
- package/dist/avatar/types.d.ts +29 -0
- package/dist/badge/Badge.cjs +1 -1
- package/dist/badge/Badge.d.cts +9 -4
- package/dist/badge/Badge.d.ts +9 -4
- package/dist/badge/Badge.js +1 -1
- package/dist/badge/BadgeLeading.d.cts +20 -0
- package/dist/badge/BadgeLeading.d.ts +20 -0
- package/dist/badge/BadgeTrailing.d.cts +14 -0
- package/dist/badge/BadgeTrailing.d.ts +14 -0
- package/dist/badge/index.d.cts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/primitives.d.cts +17 -0
- package/dist/badge/primitives.d.ts +17 -0
- package/dist/badge/types.d.cts +17 -0
- package/dist/badge/types.d.ts +17 -0
- package/dist/box/Box.cjs +1 -0
- package/dist/box/Box.d.cts +3 -0
- package/dist/box/Box.d.ts +3 -0
- package/dist/box/Box.js +1 -0
- package/dist/box/index.d.cts +2 -0
- package/dist/box/index.d.ts +2 -0
- package/dist/box/types.d.cts +111 -0
- package/dist/box/types.d.ts +111 -0
- package/dist/breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.cts +19 -19
- package/dist/breadcrumb/Breadcrumb.d.ts +19 -19
- package/dist/breadcrumb/Breadcrumb.js +1 -1
- package/dist/breadcrumb/BreadcrumbAnatomy.d.cts +14 -0
- package/dist/breadcrumb/BreadcrumbAnatomy.d.ts +14 -0
- package/dist/breadcrumb/BreadcrumbEllipsis.d.cts +7 -9
- package/dist/breadcrumb/BreadcrumbEllipsis.d.ts +7 -9
- package/dist/breadcrumb/BreadcrumbLink.d.cts +9 -2
- package/dist/breadcrumb/BreadcrumbLink.d.ts +9 -2
- package/dist/breadcrumb/BreadcrumbList.d.cts +3 -2
- package/dist/breadcrumb/BreadcrumbList.d.ts +3 -2
- package/dist/breadcrumb/BreadcrumbSeparator.d.cts +2 -3
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +2 -3
- package/dist/breadcrumb/index.d.cts +2 -8
- package/dist/breadcrumb/index.d.ts +2 -8
- package/dist/breadcrumb/primitives.d.cts +32 -0
- package/dist/breadcrumb/primitives.d.ts +32 -0
- package/dist/breadcrumb/types.d.cts +57 -0
- package/dist/breadcrumb/types.d.ts +57 -0
- package/dist/button/Button.cjs +1 -1
- package/dist/button/Button.d.cts +9 -3
- package/dist/button/Button.d.ts +9 -3
- package/dist/button/Button.js +1 -1
- package/dist/button/types.d.cts +49 -4
- package/dist/button/types.d.ts +49 -4
- package/dist/calendar/Calendar.cjs +1 -1
- package/dist/calendar/Calendar.d.cts +80 -43
- package/dist/calendar/Calendar.d.ts +80 -43
- package/dist/calendar/Calendar.js +1 -1
- package/dist/calendar/CalendarAnatomy.d.cts +14 -0
- package/dist/calendar/CalendarAnatomy.d.ts +14 -0
- package/dist/calendar/CalendarCell.d.cts +5 -18
- package/dist/calendar/CalendarCell.d.ts +5 -18
- package/dist/calendar/CalendarGrid.d.cts +3 -8
- package/dist/calendar/CalendarGrid.d.ts +3 -8
- package/dist/calendar/CalendarGridBody.d.cts +4 -24
- package/dist/calendar/CalendarGridBody.d.ts +4 -24
- package/dist/calendar/CalendarGridHead.d.cts +3 -11
- package/dist/calendar/CalendarGridHead.d.ts +3 -11
- package/dist/calendar/CalendarHeader.d.cts +1 -3
- package/dist/calendar/CalendarHeader.d.ts +1 -3
- package/dist/calendar/CalendarHeading.d.cts +4 -7
- package/dist/calendar/CalendarHeading.d.ts +4 -7
- package/dist/calendar/CalendarNextButton.d.cts +2 -1
- package/dist/calendar/CalendarNextButton.d.ts +2 -1
- package/dist/calendar/CalendarViewGrid.d.cts +37 -0
- package/dist/calendar/CalendarViewGrid.d.ts +37 -0
- package/dist/calendar/CalendarWeekNumber.d.cts +17 -0
- package/dist/calendar/CalendarWeekNumber.d.ts +17 -0
- package/dist/calendar/CalendarWeekNumberHeader.d.cts +21 -0
- package/dist/calendar/CalendarWeekNumberHeader.d.ts +21 -0
- package/dist/calendar/index.d.cts +2 -12
- package/dist/calendar/index.d.ts +2 -12
- package/dist/calendar/locale.d.cts +12 -8
- package/dist/calendar/locale.d.ts +12 -8
- package/dist/calendar/primitives.d.cts +35 -0
- package/dist/calendar/primitives.d.ts +35 -0
- package/dist/calendar/types.d.cts +191 -57
- package/dist/calendar/types.d.ts +191 -57
- package/dist/card/Card.cjs +1 -1
- package/dist/card/Card.d.cts +19 -13
- package/dist/card/Card.d.ts +19 -13
- package/dist/card/Card.js +1 -1
- package/dist/card/CardAnatomy.d.cts +18 -0
- package/dist/card/CardAnatomy.d.ts +18 -0
- package/dist/card/CardContent.d.cts +1 -2
- package/dist/card/CardContent.d.ts +1 -2
- package/dist/card/CardFooter.d.cts +1 -2
- package/dist/card/CardFooter.d.ts +1 -2
- package/dist/card/CardHeader.d.cts +1 -2
- package/dist/card/CardHeader.d.ts +1 -2
- package/dist/card/CardMedia.d.cts +19 -0
- package/dist/card/CardMedia.d.ts +19 -0
- package/dist/card/CardTitle.d.cts +4 -2
- package/dist/card/CardTitle.d.ts +4 -2
- package/dist/card/index.d.cts +2 -4
- package/dist/card/index.d.ts +2 -4
- package/dist/card/primitives.d.cts +30 -0
- package/dist/card/primitives.d.ts +30 -0
- package/dist/card/types.d.cts +61 -3
- package/dist/card/types.d.ts +61 -3
- package/dist/carousel/Carousel.cjs +1 -1
- package/dist/carousel/Carousel.d.cts +8 -32
- package/dist/carousel/Carousel.d.ts +8 -32
- package/dist/carousel/Carousel.js +1 -1
- package/dist/carousel/CarouselAnatomy.d.cts +17 -0
- package/dist/carousel/CarouselAnatomy.d.ts +17 -0
- package/dist/carousel/CarouselContent.d.cts +2 -3
- package/dist/carousel/CarouselContent.d.ts +2 -3
- package/dist/carousel/CarouselIndicator.d.cts +16 -0
- package/dist/carousel/CarouselIndicator.d.ts +16 -0
- package/dist/carousel/CarouselIndicators.d.cts +20 -0
- package/dist/carousel/CarouselIndicators.d.ts +20 -0
- package/dist/carousel/CarouselItem.d.cts +2 -6
- package/dist/carousel/CarouselItem.d.ts +2 -6
- package/dist/carousel/CarouselNext.d.cts +1 -4
- package/dist/carousel/CarouselNext.d.ts +1 -4
- package/dist/carousel/CarouselPlayPause.d.cts +8 -7
- package/dist/carousel/CarouselPlayPause.d.ts +8 -7
- package/dist/carousel/CarouselPrevious.d.cts +1 -4
- package/dist/carousel/CarouselPrevious.d.ts +1 -4
- package/dist/carousel/CarouselProgress.d.cts +13 -0
- package/dist/carousel/CarouselProgress.d.ts +13 -0
- package/dist/carousel/arrowKeys.d.cts +8 -0
- package/dist/carousel/arrowKeys.d.ts +8 -0
- package/dist/carousel/index.d.cts +2 -7
- package/dist/carousel/index.d.ts +2 -7
- package/dist/carousel/primitives.d.cts +28 -0
- package/dist/carousel/primitives.d.ts +28 -0
- package/dist/carousel/types.d.cts +91 -12
- package/dist/carousel/types.d.ts +91 -12
- package/dist/checkbox/Checkbox.cjs +1 -1
- package/dist/checkbox/Checkbox.d.cts +5 -8
- package/dist/checkbox/Checkbox.d.ts +5 -8
- package/dist/checkbox/Checkbox.js +1 -1
- package/dist/checkbox/CheckboxAnatomy.d.cts +10 -0
- package/dist/checkbox/CheckboxAnatomy.d.ts +10 -0
- package/dist/checkbox/CheckboxIndicator.d.cts +1 -3
- package/dist/checkbox/CheckboxIndicator.d.ts +1 -3
- package/dist/checkbox/index.d.cts +2 -3
- package/dist/checkbox/index.d.ts +2 -3
- package/dist/checkbox/primitives.d.cts +15 -0
- package/dist/checkbox/primitives.d.ts +15 -0
- package/dist/checkbox/types.d.cts +40 -1
- package/dist/checkbox/types.d.ts +40 -1
- package/dist/checkbox-card/CheckboxCard.cjs +1 -1
- package/dist/checkbox-card/CheckboxCard.d.cts +49 -4
- package/dist/checkbox-card/CheckboxCard.d.ts +49 -4
- package/dist/checkbox-card/CheckboxCard.js +1 -1
- package/dist/checkbox-card/CheckboxCardAnatomy.d.cts +12 -0
- package/dist/checkbox-card/CheckboxCardAnatomy.d.ts +12 -0
- package/dist/checkbox-card/CheckboxCardControl.d.cts +9 -15
- package/dist/checkbox-card/CheckboxCardControl.d.ts +9 -15
- package/dist/checkbox-card/CheckboxCardDescription.d.cts +7 -7
- package/dist/checkbox-card/CheckboxCardDescription.d.ts +7 -7
- package/dist/checkbox-card/CheckboxCardIndicator.d.cts +5 -10
- package/dist/checkbox-card/CheckboxCardIndicator.d.ts +5 -10
- package/dist/checkbox-card/CheckboxCardLabel.d.cts +8 -9
- package/dist/checkbox-card/CheckboxCardLabel.d.ts +8 -9
- package/dist/checkbox-card/index.d.cts +2 -6
- package/dist/checkbox-card/index.d.ts +2 -6
- package/dist/checkbox-card/primitives.d.cts +22 -0
- package/dist/checkbox-card/primitives.d.ts +22 -0
- package/dist/checkbox-card/types.d.cts +46 -13
- package/dist/checkbox-card/types.d.ts +46 -13
- package/dist/checkbox-group/CheckboxGroup.cjs +1 -1
- package/dist/checkbox-group/CheckboxGroup.d.cts +23 -19
- package/dist/checkbox-group/CheckboxGroup.d.ts +23 -19
- package/dist/checkbox-group/CheckboxGroup.js +1 -1
- package/dist/checkbox-group/CheckboxGroupAnatomy.d.cts +12 -0
- package/dist/checkbox-group/CheckboxGroupAnatomy.d.ts +12 -0
- package/dist/checkbox-group/CheckboxGroupItem.d.cts +7 -0
- package/dist/checkbox-group/CheckboxGroupItem.d.ts +7 -0
- package/dist/checkbox-group/CheckboxGroupSelectAll.d.cts +3 -9
- package/dist/checkbox-group/CheckboxGroupSelectAll.d.ts +3 -9
- package/dist/checkbox-group/index.d.cts +2 -4
- package/dist/checkbox-group/index.d.ts +2 -4
- package/dist/checkbox-group/primitives.d.cts +18 -0
- package/dist/checkbox-group/primitives.d.ts +18 -0
- package/dist/checkbox-group/types.d.cts +70 -5
- package/dist/checkbox-group/types.d.ts +70 -5
- package/dist/clipboard/Clipboard.cjs +1 -1
- package/dist/clipboard/Clipboard.d.cts +33 -15
- package/dist/clipboard/Clipboard.d.ts +33 -15
- package/dist/clipboard/Clipboard.js +1 -1
- package/dist/clipboard/ClipboardAnatomy.d.cts +12 -0
- package/dist/clipboard/ClipboardAnatomy.d.ts +12 -0
- package/dist/clipboard/ClipboardIndicator.d.cts +8 -13
- package/dist/clipboard/ClipboardIndicator.d.ts +8 -13
- package/dist/clipboard/ClipboardInput.d.cts +2 -11
- package/dist/clipboard/ClipboardInput.d.ts +2 -11
- package/dist/clipboard/ClipboardTrigger.d.cts +1 -10
- package/dist/clipboard/ClipboardTrigger.d.ts +1 -10
- package/dist/clipboard/index.d.cts +2 -5
- package/dist/clipboard/index.d.ts +2 -5
- package/dist/clipboard/primitives.d.cts +21 -0
- package/dist/clipboard/primitives.d.ts +21 -0
- package/dist/clipboard/types.d.cts +65 -15
- package/dist/clipboard/types.d.ts +65 -15
- package/dist/collapsible/Collapsible.cjs +1 -1
- package/dist/collapsible/Collapsible.d.cts +31 -7
- package/dist/collapsible/Collapsible.d.ts +31 -7
- package/dist/collapsible/Collapsible.js +1 -1
- package/dist/collapsible/CollapsibleAnatomy.d.cts +11 -0
- package/dist/collapsible/CollapsibleAnatomy.d.ts +11 -0
- package/dist/collapsible/CollapsibleContent.d.cts +10 -6
- package/dist/collapsible/CollapsibleContent.d.ts +10 -6
- package/dist/collapsible/CollapsibleIndicator.d.cts +18 -0
- package/dist/collapsible/CollapsibleIndicator.d.ts +18 -0
- package/dist/collapsible/CollapsibleTrigger.d.cts +6 -5
- package/dist/collapsible/CollapsibleTrigger.d.ts +6 -5
- package/dist/collapsible/index.d.cts +2 -4
- package/dist/collapsible/index.d.ts +2 -4
- package/dist/collapsible/primitives.d.cts +21 -0
- package/dist/collapsible/primitives.d.ts +21 -0
- package/dist/collapsible/types.d.cts +46 -5
- package/dist/collapsible/types.d.ts +46 -5
- package/dist/color-picker/ColorPicker.cjs +1 -1
- package/dist/color-picker/ColorPicker.d.cts +14 -0
- package/dist/color-picker/ColorPicker.d.ts +14 -0
- package/dist/color-picker/ColorPicker.js +1 -1
- package/dist/color-picker/ColorPickerAlphaSlider.d.cts +3 -16
- package/dist/color-picker/ColorPickerAlphaSlider.d.ts +3 -16
- package/dist/color-picker/ColorPickerAlphaSliderThumb.d.cts +2 -5
- package/dist/color-picker/ColorPickerAlphaSliderThumb.d.ts +2 -5
- package/dist/color-picker/ColorPickerAnatomy.d.cts +11 -0
- package/dist/color-picker/ColorPickerAnatomy.d.ts +11 -0
- package/dist/color-picker/ColorPickerArea.d.cts +5 -29
- package/dist/color-picker/ColorPickerArea.d.ts +5 -29
- package/dist/color-picker/ColorPickerAreaThumb.d.cts +6 -24
- package/dist/color-picker/ColorPickerAreaThumb.d.ts +6 -24
- package/dist/color-picker/ColorPickerEyeDropper.d.cts +3 -18
- package/dist/color-picker/ColorPickerEyeDropper.d.ts +3 -18
- package/dist/color-picker/ColorPickerFormatSelect.d.cts +3 -14
- package/dist/color-picker/ColorPickerFormatSelect.d.ts +3 -14
- package/dist/color-picker/ColorPickerHueSlider.d.cts +4 -17
- package/dist/color-picker/ColorPickerHueSlider.d.ts +4 -17
- package/dist/color-picker/ColorPickerHueSliderThumb.d.cts +2 -18
- package/dist/color-picker/ColorPickerHueSliderThumb.d.ts +2 -18
- package/dist/color-picker/ColorPickerInput.d.cts +6 -14
- package/dist/color-picker/ColorPickerInput.d.ts +6 -14
- package/dist/color-picker/ColorPickerSwatchGroup.d.cts +3 -13
- package/dist/color-picker/ColorPickerSwatchGroup.d.ts +3 -13
- package/dist/color-picker/index.d.cts +1 -12
- package/dist/color-picker/index.d.ts +1 -12
- package/dist/color-picker/primitives.d.cts +35 -0
- package/dist/color-picker/primitives.d.ts +35 -0
- package/dist/color-picker/types.d.cts +64 -49
- package/dist/color-picker/types.d.ts +64 -49
- package/dist/color-picker/useChannelSlider.d.cts +3 -18
- package/dist/color-picker/useChannelSlider.d.ts +3 -18
- package/dist/color-picker/usePointerRatio.d.cts +3 -15
- package/dist/color-picker/usePointerRatio.d.ts +3 -15
- package/dist/combobox/Combobox.cjs +1 -1
- package/dist/combobox/Combobox.d.cts +15 -21
- package/dist/combobox/Combobox.d.ts +15 -21
- package/dist/combobox/Combobox.js +1 -1
- package/dist/combobox/ComboboxAnatomy.d.cts +18 -0
- package/dist/combobox/ComboboxAnatomy.d.ts +18 -0
- package/dist/combobox/ComboboxClear.d.cts +13 -0
- package/dist/combobox/ComboboxClear.d.ts +13 -0
- package/dist/combobox/ComboboxEmpty.d.cts +1 -5
- package/dist/combobox/ComboboxEmpty.d.ts +1 -5
- package/dist/combobox/ComboboxGroup.d.cts +22 -0
- package/dist/combobox/ComboboxGroup.d.ts +22 -0
- package/dist/combobox/ComboboxGroupLabel.d.cts +15 -0
- package/dist/combobox/ComboboxGroupLabel.d.ts +15 -0
- package/dist/combobox/ComboboxInput.d.cts +4 -18
- package/dist/combobox/ComboboxInput.d.ts +4 -18
- package/dist/combobox/ComboboxItem.d.cts +2 -1
- package/dist/combobox/ComboboxItem.d.ts +2 -1
- package/dist/combobox/ComboboxPortal.d.cts +2 -4
- package/dist/combobox/ComboboxPortal.d.ts +2 -4
- package/dist/combobox/ComboboxTrigger.d.cts +13 -0
- package/dist/combobox/ComboboxTrigger.d.ts +13 -0
- package/dist/combobox/index.d.cts +2 -6
- package/dist/combobox/index.d.ts +2 -6
- package/dist/combobox/primitives.d.cts +29 -0
- package/dist/combobox/primitives.d.ts +29 -0
- package/dist/combobox/types.d.cts +203 -116
- package/dist/combobox/types.d.ts +203 -116
- package/dist/command/Command.cjs +1 -1
- package/dist/command/Command.d.cts +15 -15
- package/dist/command/Command.d.ts +15 -15
- package/dist/command/Command.js +1 -1
- package/dist/command/CommandAnatomy.d.cts +17 -0
- package/dist/command/CommandAnatomy.d.ts +17 -0
- package/dist/command/CommandEmpty.d.cts +3 -5
- package/dist/command/CommandEmpty.d.ts +3 -5
- package/dist/command/CommandGroup.d.cts +3 -2
- package/dist/command/CommandGroup.d.ts +3 -2
- package/dist/command/CommandInput.d.cts +5 -16
- package/dist/command/CommandInput.d.ts +5 -16
- package/dist/command/CommandItem.d.cts +6 -9
- package/dist/command/CommandItem.d.ts +6 -9
- package/dist/command/CommandList.d.cts +2 -5
- package/dist/command/CommandList.d.ts +2 -5
- package/dist/command/CommandLoading.d.cts +2 -5
- package/dist/command/CommandLoading.d.ts +2 -5
- package/dist/command/index.d.cts +2 -9
- package/dist/command/index.d.ts +2 -9
- package/dist/command/primitives.d.cts +28 -0
- package/dist/command/primitives.d.ts +28 -0
- package/dist/command/types.d.cts +135 -9
- package/dist/command/types.d.ts +135 -9
- package/dist/context-menu/ContextMenu.cjs +1 -1
- package/dist/context-menu/ContextMenu.d.cts +63 -17
- package/dist/context-menu/ContextMenu.d.ts +63 -17
- package/dist/context-menu/ContextMenu.js +1 -1
- package/dist/context-menu/ContextMenuAnatomy.d.cts +15 -0
- package/dist/context-menu/ContextMenuAnatomy.d.ts +15 -0
- package/dist/context-menu/ContextMenuCheckboxItem.d.cts +1 -6
- package/dist/context-menu/ContextMenuCheckboxItem.d.ts +1 -6
- package/dist/context-menu/ContextMenuContent.d.cts +4 -14
- package/dist/context-menu/ContextMenuContent.d.ts +4 -14
- package/dist/context-menu/ContextMenuGroup.d.cts +3 -1
- package/dist/context-menu/ContextMenuGroup.d.ts +3 -1
- package/dist/context-menu/ContextMenuItem.d.cts +9 -9
- package/dist/context-menu/ContextMenuItem.d.ts +9 -9
- package/dist/context-menu/ContextMenuItemIndicator.d.cts +2 -4
- package/dist/context-menu/ContextMenuItemIndicator.d.ts +2 -4
- package/dist/context-menu/ContextMenuLabel.d.cts +4 -2
- package/dist/context-menu/ContextMenuLabel.d.ts +4 -2
- package/dist/context-menu/ContextMenuPortal.d.cts +1 -2
- package/dist/context-menu/ContextMenuPortal.d.ts +1 -2
- package/dist/context-menu/ContextMenuRadioGroup.d.cts +1 -3
- package/dist/context-menu/ContextMenuRadioGroup.d.ts +1 -3
- package/dist/context-menu/ContextMenuRadioItem.d.cts +1 -6
- package/dist/context-menu/ContextMenuRadioItem.d.ts +1 -6
- package/dist/context-menu/ContextMenuShortcut.d.cts +14 -0
- package/dist/context-menu/ContextMenuShortcut.d.ts +14 -0
- package/dist/context-menu/ContextMenuSub.d.cts +4 -10
- package/dist/context-menu/ContextMenuSub.d.ts +4 -10
- package/dist/context-menu/ContextMenuTrigger.d.cts +3 -10
- package/dist/context-menu/ContextMenuTrigger.d.ts +3 -10
- package/dist/context-menu/index.d.cts +2 -14
- package/dist/context-menu/index.d.ts +2 -14
- package/dist/context-menu/primitives.d.cts +35 -0
- package/dist/context-menu/primitives.d.ts +35 -0
- package/dist/context-menu/types.d.cts +195 -30
- package/dist/context-menu/types.d.ts +195 -30
- package/dist/data-list/DataList.cjs +1 -1
- package/dist/data-list/DataList.d.cts +13 -16
- package/dist/data-list/DataList.d.ts +13 -16
- package/dist/data-list/DataList.js +1 -1
- package/dist/data-list/DataListAnatomy.d.cts +13 -0
- package/dist/data-list/DataListAnatomy.d.ts +13 -0
- package/dist/data-list/DataListItem.d.cts +2 -12
- package/dist/data-list/DataListItem.d.ts +2 -12
- package/dist/data-list/DataListLabel.d.cts +2 -6
- package/dist/data-list/DataListLabel.d.ts +2 -6
- package/dist/data-list/DataListValue.d.cts +2 -5
- package/dist/data-list/DataListValue.d.ts +2 -5
- package/dist/data-list/index.d.cts +2 -5
- package/dist/data-list/index.d.ts +2 -5
- package/dist/data-list/primitives.d.cts +23 -0
- package/dist/data-list/primitives.d.ts +23 -0
- package/dist/data-list/types.d.cts +16 -1
- package/dist/data-list/types.d.ts +16 -1
- package/dist/date-field/DateField.cjs +1 -1
- package/dist/date-field/DateField.d.cts +5 -14
- package/dist/date-field/DateField.d.ts +5 -14
- package/dist/date-field/DateField.js +1 -1
- package/dist/date-field/types.d.cts +38 -5
- package/dist/date-field/types.d.ts +38 -5
- package/dist/date-picker/DatePicker.cjs +1 -1
- package/dist/date-picker/DatePicker.d.cts +14 -43
- package/dist/date-picker/DatePicker.d.ts +14 -43
- package/dist/date-picker/DatePicker.js +1 -1
- package/dist/date-picker/DatePickerAnatomy.d.cts +22 -0
- package/dist/date-picker/DatePickerAnatomy.d.ts +22 -0
- package/dist/date-picker/DatePickerCalendar.d.cts +3 -9
- package/dist/date-picker/DatePickerCalendar.d.ts +3 -9
- package/dist/date-picker/DatePickerContent.d.cts +4 -9
- package/dist/date-picker/DatePickerContent.d.ts +4 -9
- package/dist/date-picker/DatePickerInput.d.cts +2 -8
- package/dist/date-picker/DatePickerInput.d.ts +2 -8
- package/dist/date-picker/DatePickerPortal.d.cts +2 -4
- package/dist/date-picker/DatePickerPortal.d.ts +2 -4
- package/dist/date-picker/DatePickerTimeField.d.cts +1 -8
- package/dist/date-picker/DatePickerTimeField.d.ts +1 -8
- package/dist/date-picker/DatePickerTrigger.d.cts +3 -5
- package/dist/date-picker/DatePickerTrigger.d.ts +3 -5
- package/dist/date-picker/autoFocus.d.cts +9 -0
- package/dist/date-picker/autoFocus.d.ts +9 -0
- package/dist/date-picker/index.d.cts +1 -8
- package/dist/date-picker/index.d.ts +1 -8
- package/dist/date-picker/primitives.d.cts +27 -0
- package/dist/date-picker/primitives.d.ts +27 -0
- package/dist/date-picker/types.d.cts +98 -92
- package/dist/date-picker/types.d.ts +98 -92
- package/dist/dialog/Dialog.cjs +1 -1
- package/dist/dialog/Dialog.d.cts +36 -10
- package/dist/dialog/Dialog.d.ts +36 -10
- package/dist/dialog/Dialog.js +1 -1
- package/dist/dialog/DialogAnatomy.d.cts +17 -0
- package/dist/dialog/DialogAnatomy.d.ts +17 -0
- package/dist/dialog/DialogContent.d.cts +14 -12
- package/dist/dialog/DialogContent.d.ts +14 -12
- package/dist/dialog/DialogDescription.d.cts +1 -2
- package/dist/dialog/DialogDescription.d.ts +1 -2
- package/dist/dialog/DialogOverlay.d.cts +1 -3
- package/dist/dialog/DialogOverlay.d.ts +1 -3
- package/dist/dialog/DialogPortal.d.cts +2 -3
- package/dist/dialog/DialogPortal.d.ts +2 -3
- package/dist/dialog/DialogTrigger.d.cts +1 -2
- package/dist/dialog/DialogTrigger.d.ts +1 -2
- package/dist/dialog/focusTargets.d.cts +9 -0
- package/dist/dialog/focusTargets.d.ts +9 -0
- package/dist/dialog/index.d.cts +1 -8
- package/dist/dialog/index.d.ts +1 -8
- package/dist/dialog/primitives.d.cts +30 -0
- package/dist/dialog/primitives.d.ts +30 -0
- package/dist/dialog/types.d.cts +76 -7
- package/dist/dialog/types.d.ts +76 -7
- package/dist/drawer/Drawer.cjs +1 -1
- package/dist/drawer/Drawer.d.cts +37 -4
- package/dist/drawer/Drawer.d.ts +37 -4
- package/dist/drawer/Drawer.js +1 -1
- package/dist/drawer/DrawerAnatomy.d.cts +18 -0
- package/dist/drawer/DrawerAnatomy.d.ts +18 -0
- package/dist/drawer/DrawerContent.d.cts +3 -16
- package/dist/drawer/DrawerContent.d.ts +3 -16
- package/dist/drawer/DrawerDescription.d.cts +1 -2
- package/dist/drawer/DrawerDescription.d.ts +1 -2
- package/dist/drawer/DrawerOverlay.d.cts +4 -8
- package/dist/drawer/DrawerOverlay.d.ts +4 -8
- package/dist/drawer/DrawerPortal.d.cts +3 -5
- package/dist/drawer/DrawerPortal.d.ts +3 -5
- package/dist/drawer/DrawerTrigger.d.cts +1 -2
- package/dist/drawer/DrawerTrigger.d.ts +1 -2
- package/dist/drawer/focusTargets.d.cts +8 -0
- package/dist/drawer/focusTargets.d.ts +8 -0
- package/dist/drawer/index.d.cts +1 -8
- package/dist/drawer/index.d.ts +1 -8
- package/dist/drawer/primitives.d.cts +30 -0
- package/dist/drawer/primitives.d.ts +30 -0
- package/dist/drawer/types.d.cts +93 -43
- package/dist/drawer/types.d.ts +93 -43
- package/dist/dropdown-menu/DropdownMenu.cjs +1 -1
- package/dist/dropdown-menu/DropdownMenu.d.cts +55 -13
- package/dist/dropdown-menu/DropdownMenu.d.ts +55 -13
- package/dist/dropdown-menu/DropdownMenu.js +1 -1
- package/dist/dropdown-menu/DropdownMenuAnatomy.d.cts +21 -0
- package/dist/dropdown-menu/DropdownMenuAnatomy.d.ts +21 -0
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.d.cts +1 -7
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.d.ts +1 -7
- package/dist/dropdown-menu/DropdownMenuContent.d.cts +5 -11
- package/dist/dropdown-menu/DropdownMenuContent.d.ts +5 -11
- package/dist/dropdown-menu/DropdownMenuGroup.d.cts +1 -2
- package/dist/dropdown-menu/DropdownMenuGroup.d.ts +1 -2
- package/dist/dropdown-menu/DropdownMenuItem.d.cts +11 -8
- package/dist/dropdown-menu/DropdownMenuItem.d.ts +11 -8
- package/dist/dropdown-menu/DropdownMenuItemIndicator.d.cts +2 -4
- package/dist/dropdown-menu/DropdownMenuItemIndicator.d.ts +2 -4
- package/dist/dropdown-menu/DropdownMenuLabel.d.cts +4 -2
- package/dist/dropdown-menu/DropdownMenuLabel.d.ts +4 -2
- package/dist/dropdown-menu/DropdownMenuPortal.d.cts +1 -2
- package/dist/dropdown-menu/DropdownMenuPortal.d.ts +1 -2
- package/dist/dropdown-menu/DropdownMenuRadioItem.d.cts +4 -6
- package/dist/dropdown-menu/DropdownMenuRadioItem.d.ts +4 -6
- package/dist/dropdown-menu/DropdownMenuShortcut.d.cts +14 -0
- package/dist/dropdown-menu/DropdownMenuShortcut.d.ts +14 -0
- package/dist/dropdown-menu/DropdownMenuSub.d.cts +2 -5
- package/dist/dropdown-menu/DropdownMenuSub.d.ts +2 -5
- package/dist/dropdown-menu/DropdownMenuTrigger.d.cts +3 -4
- package/dist/dropdown-menu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/dropdown-menu/index.d.cts +2 -14
- package/dist/dropdown-menu/index.d.ts +2 -14
- package/dist/dropdown-menu/primitives.d.cts +43 -0
- package/dist/dropdown-menu/primitives.d.ts +43 -0
- package/dist/dropdown-menu/types.d.cts +223 -42
- package/dist/dropdown-menu/types.d.ts +223 -42
- package/dist/editable/Editable.cjs +1 -1
- package/dist/editable/Editable.d.cts +13 -0
- package/dist/editable/Editable.d.ts +13 -0
- package/dist/editable/Editable.js +1 -1
- package/dist/editable/EditableAnatomy.d.cts +11 -0
- package/dist/editable/EditableAnatomy.d.ts +11 -0
- package/dist/editable/EditableCancelTrigger.d.cts +4 -8
- package/dist/editable/EditableCancelTrigger.d.ts +4 -8
- package/dist/editable/EditableEditTrigger.d.cts +2 -9
- package/dist/editable/EditableEditTrigger.d.ts +2 -9
- package/dist/editable/EditableInput.d.cts +8 -0
- package/dist/editable/EditableInput.d.ts +8 -0
- package/dist/editable/EditableLabel.d.cts +17 -0
- package/dist/editable/EditableLabel.d.ts +17 -0
- package/dist/editable/EditablePreview.d.cts +8 -12
- package/dist/editable/EditablePreview.d.ts +8 -12
- package/dist/editable/EditableSubmitTrigger.d.cts +5 -6
- package/dist/editable/EditableSubmitTrigger.d.ts +5 -6
- package/dist/editable/EditableTextarea.d.cts +5 -10
- package/dist/editable/EditableTextarea.d.ts +5 -10
- package/dist/editable/index.d.cts +2 -8
- package/dist/editable/index.d.ts +2 -8
- package/dist/editable/primitives.d.cts +23 -0
- package/dist/editable/primitives.d.ts +23 -0
- package/dist/editable/types.d.cts +128 -40
- package/dist/editable/types.d.ts +128 -40
- package/dist/field/Field.cjs +1 -1
- package/dist/field/Field.d.cts +66 -14
- package/dist/field/Field.d.ts +66 -14
- package/dist/field/Field.js +1 -1
- package/dist/field/FieldAnatomy.d.cts +11 -0
- package/dist/field/FieldAnatomy.d.ts +11 -0
- package/dist/field/FieldCharacterCount.d.cts +2 -14
- package/dist/field/FieldCharacterCount.d.ts +2 -14
- package/dist/field/FieldDescription.d.cts +2 -3
- package/dist/field/FieldDescription.d.ts +2 -3
- package/dist/field/FieldError.d.cts +1 -7
- package/dist/field/FieldError.d.ts +1 -7
- package/dist/field/FieldRequiredIndicator.d.cts +18 -0
- package/dist/field/FieldRequiredIndicator.d.ts +18 -0
- package/dist/field/fieldControlId.d.cts +21 -0
- package/dist/field/fieldControlId.d.ts +21 -0
- package/dist/field/fieldCore.d.cts +95 -123
- package/dist/field/fieldCore.d.ts +95 -123
- package/dist/field/index.d.cts +2 -6
- package/dist/field/index.d.ts +2 -6
- package/dist/field/primitives.d.cts +26 -0
- package/dist/field/primitives.d.ts +26 -0
- package/dist/field/types.d.cts +114 -12
- package/dist/field/types.d.ts +114 -12
- package/dist/file-upload/FileUpload.cjs +1 -1
- package/dist/file-upload/FileUpload.d.cts +35 -37
- package/dist/file-upload/FileUpload.d.ts +35 -37
- package/dist/file-upload/FileUpload.js +1 -1
- package/dist/file-upload/FileUploadAnatomy.d.cts +9 -0
- package/dist/file-upload/FileUploadAnatomy.d.ts +9 -0
- package/dist/file-upload/FileUploadClear.d.cts +15 -0
- package/dist/file-upload/FileUploadClear.d.ts +15 -0
- package/dist/file-upload/FileUploadDropzone.d.cts +11 -9
- package/dist/file-upload/FileUploadDropzone.d.ts +11 -9
- package/dist/file-upload/FileUploadInput.d.cts +2 -4
- package/dist/file-upload/FileUploadInput.d.ts +2 -4
- package/dist/file-upload/FileUploadItem.d.cts +25 -12
- package/dist/file-upload/FileUploadItem.d.ts +25 -12
- package/dist/file-upload/FileUploadItemDelete.d.cts +6 -6
- package/dist/file-upload/FileUploadItemDelete.d.ts +6 -6
- package/dist/file-upload/FileUploadItemGroup.d.cts +17 -0
- package/dist/file-upload/FileUploadItemGroup.d.ts +17 -0
- package/dist/file-upload/FileUploadItemName.d.cts +13 -0
- package/dist/file-upload/FileUploadItemName.d.ts +13 -0
- package/dist/file-upload/FileUploadItemPreview.d.cts +13 -0
- package/dist/file-upload/FileUploadItemPreview.d.ts +13 -0
- package/dist/file-upload/FileUploadItemSizeText.d.cts +19 -0
- package/dist/file-upload/FileUploadItemSizeText.d.ts +19 -0
- package/dist/file-upload/FileUploadLabel.d.cts +16 -0
- package/dist/file-upload/FileUploadLabel.d.ts +16 -0
- package/dist/file-upload/FileUploadTrigger.d.cts +3 -1
- package/dist/file-upload/FileUploadTrigger.d.ts +3 -1
- package/dist/file-upload/focus.d.cts +14 -0
- package/dist/file-upload/focus.d.ts +14 -0
- package/dist/file-upload/index.d.cts +1 -6
- package/dist/file-upload/index.d.ts +1 -6
- package/dist/file-upload/primitives.d.cts +40 -0
- package/dist/file-upload/primitives.d.ts +40 -0
- package/dist/file-upload/types.d.cts +112 -98
- package/dist/file-upload/types.d.ts +112 -98
- package/dist/floating-panel/FloatingPanel.cjs +1 -1
- package/dist/floating-panel/FloatingPanel.d.cts +73 -11
- package/dist/floating-panel/FloatingPanel.d.ts +73 -11
- package/dist/floating-panel/FloatingPanel.js +1 -1
- package/dist/floating-panel/FloatingPanelAnatomy.d.cts +15 -0
- package/dist/floating-panel/FloatingPanelAnatomy.d.ts +15 -0
- package/dist/floating-panel/FloatingPanelCloseTrigger.d.cts +1 -4
- package/dist/floating-panel/FloatingPanelCloseTrigger.d.ts +1 -4
- package/dist/floating-panel/FloatingPanelContent.d.cts +9 -20
- package/dist/floating-panel/FloatingPanelContent.d.ts +9 -20
- package/dist/floating-panel/FloatingPanelHeader.d.cts +3 -13
- package/dist/floating-panel/FloatingPanelHeader.d.ts +3 -13
- package/dist/floating-panel/FloatingPanelPortal.d.cts +2 -7
- package/dist/floating-panel/FloatingPanelPortal.d.ts +2 -7
- package/dist/floating-panel/FloatingPanelResizeTrigger.d.cts +1 -19
- package/dist/floating-panel/FloatingPanelResizeTrigger.d.ts +1 -19
- package/dist/floating-panel/FloatingPanelStageTrigger.d.cts +3 -9
- package/dist/floating-panel/FloatingPanelStageTrigger.d.ts +3 -9
- package/dist/floating-panel/FloatingPanelTrigger.d.cts +2 -4
- package/dist/floating-panel/FloatingPanelTrigger.d.ts +2 -4
- package/dist/floating-panel/index.d.cts +2 -10
- package/dist/floating-panel/index.d.ts +2 -10
- package/dist/floating-panel/primitives.d.cts +37 -0
- package/dist/floating-panel/primitives.d.ts +37 -0
- package/dist/floating-panel/types.d.cts +67 -28
- package/dist/floating-panel/types.d.ts +67 -28
- package/dist/form/Form.cjs +1 -1
- package/dist/form/Form.d.cts +37 -15
- package/dist/form/Form.d.ts +37 -15
- package/dist/form/Form.js +1 -1
- package/dist/form/FormAnatomy.d.cts +29 -0
- package/dist/form/FormAnatomy.d.ts +29 -0
- package/dist/form/FormErrorSummary.d.cts +4 -14
- package/dist/form/FormErrorSummary.d.ts +4 -14
- package/dist/form/FormField.d.cts +18 -5
- package/dist/form/FormField.d.ts +18 -5
- package/dist/form/FormLabel.d.cts +1 -3
- package/dist/form/FormLabel.d.ts +1 -3
- package/dist/form/FormMessage.d.cts +5 -5
- package/dist/form/FormMessage.d.ts +5 -5
- package/dist/form/describedBy.d.cts +7 -0
- package/dist/form/describedBy.d.ts +7 -0
- package/dist/form/index.d.cts +3 -7
- package/dist/form/index.d.ts +3 -7
- package/dist/form/primitives.d.cts +29 -0
- package/dist/form/primitives.d.ts +29 -0
- package/dist/form/serverErrors.d.cts +8 -0
- package/dist/form/serverErrors.d.ts +8 -0
- package/dist/form/types.d.cts +147 -8
- package/dist/form/types.d.ts +147 -8
- package/dist/heading/Heading.cjs +1 -0
- package/dist/heading/Heading.d.cts +14 -0
- package/dist/heading/Heading.d.ts +14 -0
- package/dist/heading/Heading.js +1 -0
- package/dist/heading/index.d.cts +2 -0
- package/dist/heading/index.d.ts +2 -0
- package/dist/heading/types.d.cts +15 -0
- package/dist/heading/types.d.ts +15 -0
- package/dist/hover-card/HoverCard.cjs +1 -1
- package/dist/hover-card/HoverCard.d.cts +43 -3
- package/dist/hover-card/HoverCard.d.ts +43 -3
- package/dist/hover-card/HoverCard.js +1 -1
- package/dist/hover-card/HoverCardAnatomy.d.cts +17 -0
- package/dist/hover-card/HoverCardAnatomy.d.ts +17 -0
- package/dist/hover-card/HoverCardContent.d.cts +3 -12
- package/dist/hover-card/HoverCardContent.d.ts +3 -12
- package/dist/hover-card/HoverCardPortal.d.cts +2 -3
- package/dist/hover-card/HoverCardPortal.d.ts +2 -3
- package/dist/hover-card/HoverCardTrigger.d.cts +3 -5
- package/dist/hover-card/HoverCardTrigger.d.ts +3 -5
- package/dist/hover-card/index.d.cts +1 -4
- package/dist/hover-card/index.d.ts +1 -4
- package/dist/hover-card/primitives.d.cts +24 -0
- package/dist/hover-card/primitives.d.ts +24 -0
- package/dist/hover-card/types.d.cts +42 -12
- package/dist/hover-card/types.d.ts +42 -12
- package/dist/image/Image.cjs +1 -0
- package/dist/image/Image.d.cts +13 -0
- package/dist/image/Image.d.ts +13 -0
- package/dist/image/Image.js +1 -0
- package/dist/image/index.d.cts +2 -0
- package/dist/image/index.d.ts +2 -0
- package/dist/image/types.d.cts +29 -0
- package/dist/image/types.d.ts +29 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +86 -71
- package/dist/index.d.ts +86 -71
- package/dist/index.js +1 -1
- package/dist/kbd/Kbd.d.cts +16 -4
- package/dist/kbd/Kbd.d.ts +16 -4
- package/dist/label/Label.d.cts +1 -3
- package/dist/label/Label.d.ts +1 -3
- package/dist/link/Link.cjs +1 -0
- package/dist/link/Link.d.cts +16 -0
- package/dist/link/Link.d.ts +16 -0
- package/dist/link/Link.js +1 -0
- package/dist/link/index.d.cts +2 -0
- package/dist/link/index.d.ts +2 -0
- package/dist/link/types.d.cts +24 -0
- package/dist/link/types.d.ts +24 -0
- package/dist/list/List.cjs +1 -0
- package/dist/list/List.d.cts +23 -0
- package/dist/list/List.d.ts +23 -0
- package/dist/list/List.js +1 -0
- package/dist/list/ListItem.d.cts +12 -0
- package/dist/list/ListItem.d.ts +12 -0
- package/dist/list/index.d.cts +3 -0
- package/dist/list/index.d.ts +3 -0
- package/dist/list/types.d.cts +56 -0
- package/dist/list/types.d.ts +56 -0
- package/dist/listbox/Listbox.cjs +1 -1
- package/dist/listbox/Listbox.d.cts +8 -20
- package/dist/listbox/Listbox.d.ts +8 -20
- package/dist/listbox/Listbox.js +1 -1
- package/dist/listbox/ListboxAnatomy.d.cts +15 -0
- package/dist/listbox/ListboxAnatomy.d.ts +15 -0
- package/dist/listbox/ListboxGroup.d.cts +2 -7
- package/dist/listbox/ListboxGroup.d.ts +2 -7
- package/dist/listbox/ListboxItem.d.cts +5 -0
- package/dist/listbox/ListboxItem.d.ts +5 -0
- package/dist/listbox/ListboxItemIndicator.d.cts +4 -8
- package/dist/listbox/ListboxItemIndicator.d.ts +4 -8
- package/dist/listbox/ListboxLabel.d.cts +2 -6
- package/dist/listbox/ListboxLabel.d.ts +2 -6
- package/dist/listbox/index.d.cts +1 -5
- package/dist/listbox/index.d.ts +1 -5
- package/dist/listbox/primitives.d.cts +22 -0
- package/dist/listbox/primitives.d.ts +22 -0
- package/dist/listbox/types.d.cts +122 -21
- package/dist/listbox/types.d.ts +122 -21
- package/dist/loading-overlay/LoadingOverlay.cjs +1 -1
- package/dist/loading-overlay/LoadingOverlay.d.cts +51 -13
- package/dist/loading-overlay/LoadingOverlay.d.ts +51 -13
- package/dist/loading-overlay/LoadingOverlay.js +1 -1
- package/dist/loading-overlay/LoadingOverlayAnatomy.d.cts +7 -0
- package/dist/loading-overlay/LoadingOverlayAnatomy.d.ts +7 -0
- package/dist/loading-overlay/LoadingOverlayBackdrop.d.cts +5 -13
- package/dist/loading-overlay/LoadingOverlayBackdrop.d.ts +5 -13
- package/dist/loading-overlay/LoadingOverlayContent.d.cts +5 -17
- package/dist/loading-overlay/LoadingOverlayContent.d.ts +5 -17
- package/dist/loading-overlay/index.d.cts +2 -4
- package/dist/loading-overlay/index.d.ts +2 -4
- package/dist/loading-overlay/primitives.d.cts +20 -0
- package/dist/loading-overlay/primitives.d.ts +20 -0
- package/dist/loading-overlay/types.d.cts +38 -38
- package/dist/loading-overlay/types.d.ts +38 -38
- package/dist/menubar/Menubar.cjs +1 -1
- package/dist/menubar/Menubar.d.cts +38 -24
- package/dist/menubar/Menubar.d.ts +38 -24
- package/dist/menubar/Menubar.js +1 -1
- package/dist/menubar/MenubarAnatomy.d.cts +14 -0
- package/dist/menubar/MenubarAnatomy.d.ts +14 -0
- package/dist/menubar/MenubarCheckboxItem.d.cts +2 -5
- package/dist/menubar/MenubarCheckboxItem.d.ts +2 -5
- package/dist/menubar/MenubarContent.d.cts +9 -14
- package/dist/menubar/MenubarContent.d.ts +9 -14
- package/dist/menubar/MenubarGroup.d.cts +5 -2
- package/dist/menubar/MenubarGroup.d.ts +5 -2
- package/dist/menubar/MenubarItem.d.cts +5 -3
- package/dist/menubar/MenubarItem.d.ts +5 -3
- package/dist/menubar/MenubarItemIndicator.d.cts +2 -5
- package/dist/menubar/MenubarItemIndicator.d.ts +2 -5
- package/dist/menubar/MenubarLabel.d.cts +5 -2
- package/dist/menubar/MenubarLabel.d.ts +5 -2
- package/dist/menubar/MenubarMenu.d.cts +2 -3
- package/dist/menubar/MenubarMenu.d.ts +2 -3
- package/dist/menubar/MenubarPortal.d.cts +1 -3
- package/dist/menubar/MenubarPortal.d.ts +1 -3
- package/dist/menubar/MenubarRadioGroup.d.cts +1 -3
- package/dist/menubar/MenubarRadioGroup.d.ts +1 -3
- package/dist/menubar/MenubarRadioItem.d.cts +3 -5
- package/dist/menubar/MenubarRadioItem.d.ts +3 -5
- package/dist/menubar/MenubarShortcut.d.cts +15 -0
- package/dist/menubar/MenubarShortcut.d.ts +15 -0
- package/dist/menubar/MenubarSub.d.cts +3 -5
- package/dist/menubar/MenubarSub.d.ts +3 -5
- package/dist/menubar/MenubarTrigger.d.cts +5 -7
- package/dist/menubar/MenubarTrigger.d.ts +5 -7
- package/dist/menubar/index.d.cts +2 -15
- package/dist/menubar/index.d.ts +2 -15
- package/dist/menubar/primitives.d.cts +39 -0
- package/dist/menubar/primitives.d.ts +39 -0
- package/dist/menubar/types.d.cts +260 -42
- package/dist/menubar/types.d.ts +260 -42
- package/dist/meter/Meter.cjs +1 -1
- package/dist/meter/Meter.d.cts +11 -14
- package/dist/meter/Meter.d.ts +11 -14
- package/dist/meter/Meter.js +1 -1
- package/dist/meter/MeterAnatomy.d.cts +10 -0
- package/dist/meter/MeterAnatomy.d.ts +10 -0
- package/dist/meter/MeterIndicator.d.cts +1 -4
- package/dist/meter/MeterIndicator.d.ts +1 -4
- package/dist/meter/MeterLabel.d.cts +14 -0
- package/dist/meter/MeterLabel.d.ts +14 -0
- package/dist/meter/MeterValue.d.cts +16 -0
- package/dist/meter/MeterValue.d.ts +16 -0
- package/dist/meter/index.d.cts +2 -3
- package/dist/meter/index.d.ts +2 -3
- package/dist/meter/primitives.d.cts +19 -0
- package/dist/meter/primitives.d.ts +19 -0
- package/dist/meter/types.d.cts +37 -10
- package/dist/meter/types.d.ts +37 -10
- package/dist/multi-select/MultiSelect.cjs +1 -1
- package/dist/multi-select/MultiSelect.d.cts +24 -20
- package/dist/multi-select/MultiSelect.d.ts +24 -20
- package/dist/multi-select/MultiSelect.js +1 -1
- package/dist/multi-select/MultiSelectAnatomy.d.cts +22 -0
- package/dist/multi-select/MultiSelectAnatomy.d.ts +22 -0
- package/dist/multi-select/MultiSelectClear.d.cts +27 -0
- package/dist/multi-select/MultiSelectClear.d.ts +27 -0
- package/dist/multi-select/MultiSelectContent.d.cts +4 -21
- package/dist/multi-select/MultiSelectContent.d.ts +4 -21
- package/dist/multi-select/MultiSelectEmpty.d.cts +19 -0
- package/dist/multi-select/MultiSelectEmpty.d.ts +19 -0
- package/dist/multi-select/MultiSelectGroup.d.cts +22 -0
- package/dist/multi-select/MultiSelectGroup.d.ts +22 -0
- package/dist/multi-select/MultiSelectGroupLabel.d.cts +14 -0
- package/dist/multi-select/MultiSelectGroupLabel.d.ts +14 -0
- package/dist/multi-select/MultiSelectInput.d.cts +15 -0
- package/dist/multi-select/MultiSelectInput.d.ts +15 -0
- package/dist/multi-select/MultiSelectItem.d.cts +9 -13
- package/dist/multi-select/MultiSelectItem.d.ts +9 -13
- package/dist/multi-select/MultiSelectList.d.cts +7 -9
- package/dist/multi-select/MultiSelectList.d.ts +7 -9
- package/dist/multi-select/MultiSelectPortal.d.cts +3 -6
- package/dist/multi-select/MultiSelectPortal.d.ts +3 -6
- package/dist/multi-select/MultiSelectTag.d.cts +2 -11
- package/dist/multi-select/MultiSelectTag.d.ts +2 -11
- package/dist/multi-select/MultiSelectTagList.d.cts +4 -13
- package/dist/multi-select/MultiSelectTagList.d.ts +4 -13
- package/dist/multi-select/MultiSelectTagRemove.d.cts +4 -9
- package/dist/multi-select/MultiSelectTagRemove.d.ts +4 -9
- package/dist/multi-select/index.d.cts +1 -9
- package/dist/multi-select/index.d.ts +1 -9
- package/dist/multi-select/primitives.d.cts +42 -0
- package/dist/multi-select/primitives.d.ts +42 -0
- package/dist/multi-select/types.d.cts +195 -100
- package/dist/multi-select/types.d.ts +195 -100
- package/dist/navigation-menu/NavigationMenu.cjs +1 -1
- package/dist/navigation-menu/NavigationMenu.d.cts +17 -9
- package/dist/navigation-menu/NavigationMenu.d.ts +17 -9
- package/dist/navigation-menu/NavigationMenu.js +1 -1
- package/dist/navigation-menu/NavigationMenuAnatomy.d.cts +13 -0
- package/dist/navigation-menu/NavigationMenuAnatomy.d.ts +13 -0
- 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 +3 -4
- package/dist/navigation-menu/NavigationMenuIndicator.d.ts +3 -4
- package/dist/navigation-menu/NavigationMenuItem.d.cts +2 -3
- package/dist/navigation-menu/NavigationMenuItem.d.ts +2 -3
- package/dist/navigation-menu/NavigationMenuLink.d.cts +3 -4
- package/dist/navigation-menu/NavigationMenuLink.d.ts +3 -4
- package/dist/navigation-menu/NavigationMenuList.d.cts +8 -4
- package/dist/navigation-menu/NavigationMenuList.d.ts +8 -4
- package/dist/navigation-menu/NavigationMenuTrigger.d.cts +8 -9
- package/dist/navigation-menu/NavigationMenuTrigger.d.ts +8 -9
- package/dist/navigation-menu/index.d.cts +2 -8
- package/dist/navigation-menu/index.d.ts +2 -8
- package/dist/navigation-menu/primitives.d.cts +28 -0
- package/dist/navigation-menu/primitives.d.ts +28 -0
- package/dist/navigation-menu/types.d.cts +91 -10
- package/dist/navigation-menu/types.d.ts +91 -10
- package/dist/number-field/NumberField.cjs +1 -1
- package/dist/number-field/NumberField.d.cts +6 -17
- package/dist/number-field/NumberField.d.ts +6 -17
- package/dist/number-field/NumberField.js +1 -1
- package/dist/number-field/NumberFieldAnatomy.d.cts +12 -0
- package/dist/number-field/NumberFieldAnatomy.d.ts +12 -0
- package/dist/number-field/NumberFieldDecrement.d.cts +4 -0
- package/dist/number-field/NumberFieldDecrement.d.ts +4 -0
- package/dist/number-field/NumberFieldIncrement.d.cts +9 -8
- package/dist/number-field/NumberFieldIncrement.d.ts +9 -8
- package/dist/number-field/NumberFieldInput.d.cts +3 -13
- package/dist/number-field/NumberFieldInput.d.ts +3 -13
- package/dist/number-field/index.d.cts +2 -5
- package/dist/number-field/index.d.ts +2 -5
- package/dist/number-field/primitives.d.cts +20 -0
- package/dist/number-field/primitives.d.ts +20 -0
- package/dist/number-field/types.d.cts +97 -42
- package/dist/number-field/types.d.ts +97 -42
- package/dist/pagination/Pagination.cjs +1 -1
- package/dist/pagination/Pagination.d.cts +26 -11
- package/dist/pagination/Pagination.d.ts +26 -11
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/PaginationAnatomy.d.cts +9 -0
- package/dist/pagination/PaginationAnatomy.d.ts +9 -0
- package/dist/pagination/PaginationFirst.d.cts +1 -1
- package/dist/pagination/PaginationFirst.d.ts +1 -1
- package/dist/pagination/PaginationItem.d.cts +2 -2
- package/dist/pagination/PaginationItem.d.ts +2 -2
- package/dist/pagination/PaginationLast.d.cts +1 -1
- package/dist/pagination/PaginationLast.d.ts +1 -1
- package/dist/pagination/PaginationList.d.cts +2 -3
- package/dist/pagination/PaginationList.d.ts +2 -3
- package/dist/pagination/PaginationNext.d.cts +1 -1
- package/dist/pagination/PaginationNext.d.ts +1 -1
- package/dist/pagination/PaginationPage.d.cts +14 -0
- package/dist/pagination/PaginationPage.d.ts +14 -0
- package/dist/pagination/PaginationPrevious.d.cts +1 -1
- package/dist/pagination/PaginationPrevious.d.ts +1 -1
- package/dist/pagination/PaginationStatus.d.cts +19 -0
- package/dist/pagination/PaginationStatus.d.ts +19 -0
- package/dist/pagination/index.d.cts +3 -11
- package/dist/pagination/index.d.ts +3 -11
- package/dist/pagination/labels.d.cts +27 -0
- package/dist/pagination/labels.d.ts +27 -0
- package/dist/pagination/pages.d.cts +4 -6
- package/dist/pagination/pages.d.ts +4 -6
- package/dist/pagination/primitives.d.cts +35 -0
- package/dist/pagination/primitives.d.ts +35 -0
- package/dist/pagination/types.d.cts +54 -8
- package/dist/pagination/types.d.ts +54 -8
- package/dist/password-input/PasswordInput.cjs +1 -1
- package/dist/password-input/PasswordInput.d.cts +14 -18
- package/dist/password-input/PasswordInput.d.ts +14 -18
- package/dist/password-input/PasswordInput.js +1 -1
- package/dist/password-input/PasswordInputAnatomy.d.cts +14 -0
- package/dist/password-input/PasswordInputAnatomy.d.ts +14 -0
- package/dist/password-input/PasswordInputField.d.cts +4 -15
- package/dist/password-input/PasswordInputField.d.ts +4 -15
- package/dist/password-input/PasswordInputToggle.d.cts +3 -18
- package/dist/password-input/PasswordInputToggle.d.ts +3 -18
- package/dist/password-input/index.d.cts +2 -4
- package/dist/password-input/index.d.ts +2 -4
- package/dist/password-input/primitives.d.cts +17 -0
- package/dist/password-input/primitives.d.ts +17 -0
- package/dist/password-input/types.d.cts +24 -11
- package/dist/password-input/types.d.ts +24 -11
- package/dist/pin-input/PinInput.cjs +1 -1
- package/dist/pin-input/PinInput.d.cts +18 -21
- package/dist/pin-input/PinInput.d.ts +18 -21
- package/dist/pin-input/PinInput.js +1 -1
- package/dist/pin-input/PinInputAnatomy.d.cts +9 -0
- package/dist/pin-input/PinInputAnatomy.d.ts +9 -0
- package/dist/pin-input/PinInputField.d.cts +8 -10
- package/dist/pin-input/PinInputField.d.ts +8 -10
- package/dist/pin-input/charFilter.d.cts +19 -0
- package/dist/pin-input/charFilter.d.ts +19 -0
- package/dist/pin-input/digitLabel.d.cts +7 -0
- package/dist/pin-input/digitLabel.d.ts +7 -0
- package/dist/pin-input/index.d.cts +4 -3
- package/dist/pin-input/index.d.ts +4 -3
- package/dist/pin-input/primitives.d.cts +18 -0
- package/dist/pin-input/primitives.d.ts +18 -0
- package/dist/pin-input/slots.d.cts +11 -0
- package/dist/pin-input/slots.d.ts +11 -0
- package/dist/pin-input/types.d.cts +101 -21
- package/dist/pin-input/types.d.ts +101 -21
- package/dist/popover/Popover.cjs +1 -1
- package/dist/popover/Popover.d.cts +47 -11
- package/dist/popover/Popover.d.ts +47 -11
- package/dist/popover/Popover.js +1 -1
- package/dist/popover/PopoverAnatomy.d.cts +21 -0
- package/dist/popover/PopoverAnatomy.d.ts +21 -0
- package/dist/popover/PopoverContent.d.cts +15 -3
- package/dist/popover/PopoverContent.d.ts +15 -3
- package/dist/popover/PopoverDescription.d.cts +18 -0
- package/dist/popover/PopoverDescription.d.ts +18 -0
- package/dist/popover/PopoverPortal.d.cts +5 -9
- package/dist/popover/PopoverPortal.d.ts +5 -9
- package/dist/popover/PopoverTitle.d.cts +17 -0
- package/dist/popover/PopoverTitle.d.ts +17 -0
- package/dist/popover/PopoverTrigger.d.cts +2 -3
- package/dist/popover/PopoverTrigger.d.ts +2 -3
- package/dist/popover/focusTargets.d.cts +9 -0
- package/dist/popover/focusTargets.d.ts +9 -0
- package/dist/popover/index.d.cts +1 -5
- package/dist/popover/index.d.ts +1 -5
- package/dist/popover/primitives.d.cts +29 -0
- package/dist/popover/primitives.d.ts +29 -0
- package/dist/popover/types.d.cts +160 -8
- package/dist/popover/types.d.ts +160 -8
- package/dist/primitives/accordion.cjs +1 -0
- package/dist/primitives/accordion.js +1 -0
- package/dist/primitives/alert-dialog.cjs +1 -0
- package/dist/primitives/alert-dialog.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 +1 -0
- package/dist/primitives/badge.js +1 -0
- 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/context-menu.cjs +1 -0
- package/dist/primitives/context-menu.js +1 -0
- package/dist/primitives/data-list.cjs +1 -0
- package/dist/primitives/data-list.js +1 -0
- package/dist/primitives/date-picker.cjs +1 -0
- package/dist/primitives/date-picker.js +1 -0
- package/dist/primitives/dialog.cjs +1 -0
- package/dist/primitives/dialog.js +1 -0
- package/dist/primitives/drawer.cjs +1 -0
- package/dist/primitives/drawer.js +1 -0
- package/dist/primitives/dropdown-menu.cjs +1 -0
- package/dist/primitives/dropdown-menu.js +1 -0
- 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/hover-card.cjs +1 -0
- package/dist/primitives/hover-card.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/menubar.cjs +1 -0
- package/dist/primitives/menubar.js +1 -0
- package/dist/primitives/meter.cjs +1 -0
- package/dist/primitives/meter.js +1 -0
- package/dist/primitives/multi-select.cjs +1 -0
- package/dist/primitives/multi-select.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 +1 -0
- package/dist/primitives/popover.js +1 -0
- 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/segmented-control.cjs +1 -0
- package/dist/primitives/segmented-control.js +1 -0
- package/dist/primitives/select.cjs +1 -0
- package/dist/primitives/select.js +1 -0
- 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/steps.cjs +1 -0
- package/dist/primitives/steps.js +1 -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/tag.cjs +1 -0
- package/dist/primitives/tag.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 +1 -0
- package/dist/primitives/toggle-group.js +1 -0
- package/dist/primitives/toolbar.cjs +1 -0
- package/dist/primitives/toolbar.js +1 -0
- package/dist/primitives/tooltip.cjs +1 -0
- package/dist/primitives/tooltip.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 +1 -0
- package/dist/primitives/tree-select.js +1 -0
- package/dist/primitives/tree.cjs +1 -0
- package/dist/primitives/tree.js +1 -0
- package/dist/progress/Progress.cjs +1 -1
- package/dist/progress/Progress.d.cts +22 -6
- package/dist/progress/Progress.d.ts +22 -6
- package/dist/progress/Progress.js +1 -1
- package/dist/progress/ProgressAnatomy.d.cts +11 -0
- package/dist/progress/ProgressAnatomy.d.ts +11 -0
- package/dist/progress/ProgressCircle.d.cts +9 -24
- package/dist/progress/ProgressCircle.d.ts +9 -24
- package/dist/progress/ProgressCircleIndicator.d.cts +4 -11
- package/dist/progress/ProgressCircleIndicator.d.ts +4 -11
- package/dist/progress/ProgressIndicator.d.cts +3 -4
- package/dist/progress/ProgressIndicator.d.ts +3 -4
- package/dist/progress/ProgressLabel.d.cts +17 -0
- package/dist/progress/ProgressLabel.d.ts +17 -0
- package/dist/progress/ProgressValue.d.cts +16 -0
- package/dist/progress/ProgressValue.d.ts +16 -0
- package/dist/progress/index.d.cts +2 -5
- package/dist/progress/index.d.ts +2 -5
- package/dist/progress/primitives.d.cts +21 -0
- package/dist/progress/primitives.d.ts +21 -0
- package/dist/progress/types.d.cts +101 -16
- package/dist/progress/types.d.ts +101 -16
- package/dist/qr-code/QrCode.cjs +1 -1
- package/dist/qr-code/QrCode.d.cts +8 -24
- package/dist/qr-code/QrCode.d.ts +8 -24
- package/dist/qr-code/QrCode.js +1 -1
- package/dist/qr-code/QrCodeAnatomy.d.cts +10 -0
- package/dist/qr-code/QrCodeAnatomy.d.ts +10 -0
- package/dist/qr-code/QrCodeFrame.d.cts +7 -10
- package/dist/qr-code/QrCodeFrame.d.ts +7 -10
- package/dist/qr-code/QrCodeOverlay.d.cts +9 -16
- package/dist/qr-code/QrCodeOverlay.d.ts +9 -16
- package/dist/qr-code/QrCodePattern.d.cts +3 -12
- package/dist/qr-code/QrCodePattern.d.ts +3 -12
- package/dist/qr-code/encoder.d.cts +9 -31
- package/dist/qr-code/encoder.d.ts +9 -31
- package/dist/qr-code/index.d.cts +1 -4
- package/dist/qr-code/index.d.ts +1 -4
- package/dist/qr-code/primitives.d.cts +23 -0
- package/dist/qr-code/primitives.d.ts +23 -0
- package/dist/qr-code/types.d.cts +25 -30
- package/dist/qr-code/types.d.ts +25 -30
- package/dist/radio-card/RadioCard.cjs +1 -1
- package/dist/radio-card/RadioCard.d.cts +32 -22
- package/dist/radio-card/RadioCard.d.ts +32 -22
- package/dist/radio-card/RadioCard.js +1 -1
- package/dist/radio-card/RadioCardAnatomy.d.cts +12 -0
- package/dist/radio-card/RadioCardAnatomy.d.ts +12 -0
- package/dist/radio-card/RadioCardControl.d.cts +10 -10
- package/dist/radio-card/RadioCardControl.d.ts +10 -10
- package/dist/radio-card/RadioCardDescription.d.cts +5 -8
- package/dist/radio-card/RadioCardDescription.d.ts +5 -8
- package/dist/radio-card/RadioCardIndicator.d.cts +9 -9
- package/dist/radio-card/RadioCardIndicator.d.ts +9 -9
- package/dist/radio-card/RadioCardLabel.d.cts +8 -9
- package/dist/radio-card/RadioCardLabel.d.ts +8 -9
- package/dist/radio-card/index.d.cts +2 -6
- package/dist/radio-card/index.d.ts +2 -6
- package/dist/radio-card/primitives.d.cts +24 -0
- package/dist/radio-card/primitives.d.ts +24 -0
- package/dist/radio-card/types.d.cts +34 -3
- package/dist/radio-card/types.d.ts +34 -3
- package/dist/radio-group/RadioGroup.cjs +1 -1
- package/dist/radio-group/RadioGroup.d.cts +34 -11
- package/dist/radio-group/RadioGroup.d.ts +34 -11
- package/dist/radio-group/RadioGroup.js +1 -1
- package/dist/radio-group/RadioGroupAnatomy.d.cts +11 -0
- package/dist/radio-group/RadioGroupAnatomy.d.ts +11 -0
- package/dist/radio-group/RadioGroupIndicator.d.cts +1 -3
- package/dist/radio-group/RadioGroupIndicator.d.ts +1 -3
- package/dist/radio-group/RadioGroupItem.d.cts +5 -8
- package/dist/radio-group/RadioGroupItem.d.ts +5 -8
- package/dist/radio-group/index.d.cts +2 -4
- package/dist/radio-group/index.d.ts +2 -4
- package/dist/radio-group/primitives.d.cts +23 -0
- package/dist/radio-group/primitives.d.ts +23 -0
- package/dist/radio-group/types.d.cts +92 -9
- package/dist/radio-group/types.d.ts +92 -9
- package/dist/rating/Rating.cjs +1 -1
- package/dist/rating/Rating.d.cts +13 -24
- package/dist/rating/Rating.d.ts +13 -24
- package/dist/rating/Rating.js +1 -1
- package/dist/rating/RatingAnatomy.d.cts +11 -0
- package/dist/rating/RatingAnatomy.d.ts +11 -0
- package/dist/rating/RatingItem.d.cts +6 -11
- package/dist/rating/RatingItem.d.ts +6 -11
- package/dist/rating/index.d.cts +2 -3
- package/dist/rating/index.d.ts +2 -3
- package/dist/rating/primitives.d.cts +17 -0
- package/dist/rating/primitives.d.ts +17 -0
- package/dist/rating/types.d.cts +70 -24
- package/dist/rating/types.d.ts +70 -24
- package/dist/resizable/Resizable.cjs +1 -1
- package/dist/resizable/Resizable.d.cts +45 -10
- package/dist/resizable/Resizable.d.ts +45 -10
- package/dist/resizable/Resizable.js +1 -1
- package/dist/resizable/ResizableAnatomy.d.cts +11 -0
- package/dist/resizable/ResizableAnatomy.d.ts +11 -0
- package/dist/resizable/ResizableHandle.d.cts +18 -7
- package/dist/resizable/ResizableHandle.d.ts +18 -7
- package/dist/resizable/ResizablePanel.d.cts +3 -6
- package/dist/resizable/ResizablePanel.d.ts +3 -6
- package/dist/resizable/index.d.cts +2 -3
- package/dist/resizable/index.d.ts +2 -3
- package/dist/resizable/layout.d.cts +29 -0
- package/dist/resizable/layout.d.ts +29 -0
- package/dist/resizable/panelDefaults.d.cts +6 -0
- package/dist/resizable/panelDefaults.d.ts +6 -0
- package/dist/resizable/primitives.d.cts +18 -0
- package/dist/resizable/primitives.d.ts +18 -0
- package/dist/resizable/types.d.cts +97 -5
- package/dist/resizable/types.d.ts +97 -5
- package/dist/scroll-area/ScrollArea.cjs +1 -1
- package/dist/scroll-area/ScrollArea.d.cts +19 -17
- package/dist/scroll-area/ScrollArea.d.ts +19 -17
- package/dist/scroll-area/ScrollArea.js +1 -1
- package/dist/scroll-area/ScrollAreaAnatomy.d.cts +15 -0
- package/dist/scroll-area/ScrollAreaAnatomy.d.ts +15 -0
- package/dist/scroll-area/ScrollAreaCorner.d.cts +3 -6
- package/dist/scroll-area/ScrollAreaCorner.d.ts +3 -6
- package/dist/scroll-area/ScrollAreaScrollbar.d.cts +3 -6
- package/dist/scroll-area/ScrollAreaScrollbar.d.ts +3 -6
- package/dist/scroll-area/ScrollAreaThumb.d.cts +3 -5
- package/dist/scroll-area/ScrollAreaThumb.d.ts +3 -5
- package/dist/scroll-area/ScrollAreaViewport.d.cts +6 -8
- package/dist/scroll-area/ScrollAreaViewport.d.ts +6 -8
- package/dist/scroll-area/index.d.cts +2 -6
- package/dist/scroll-area/index.d.ts +2 -6
- package/dist/scroll-area/primitives.d.cts +22 -0
- package/dist/scroll-area/primitives.d.ts +22 -0
- package/dist/scroll-area/types.d.cts +61 -8
- package/dist/scroll-area/types.d.ts +61 -8
- package/dist/segmented-control/SegmentedControl.cjs +1 -1
- package/dist/segmented-control/SegmentedControl.d.cts +26 -25
- package/dist/segmented-control/SegmentedControl.d.ts +26 -25
- package/dist/segmented-control/SegmentedControl.js +1 -1
- package/dist/segmented-control/SegmentedControlAnatomy.d.cts +10 -0
- package/dist/segmented-control/SegmentedControlAnatomy.d.ts +10 -0
- package/dist/segmented-control/SegmentedControlIndicator.d.cts +5 -33
- package/dist/segmented-control/SegmentedControlIndicator.d.ts +5 -33
- package/dist/segmented-control/SegmentedControlItem.d.cts +6 -7
- package/dist/segmented-control/SegmentedControlItem.d.ts +6 -7
- package/dist/segmented-control/index.d.cts +1 -3
- package/dist/segmented-control/index.d.ts +1 -3
- package/dist/segmented-control/primitives.d.cts +21 -0
- package/dist/segmented-control/primitives.d.ts +21 -0
- package/dist/segmented-control/types.d.cts +112 -13
- package/dist/segmented-control/types.d.ts +112 -13
- package/dist/select/Select.cjs +1 -1
- package/dist/select/Select.d.cts +22 -6
- package/dist/select/Select.d.ts +22 -6
- package/dist/select/Select.js +1 -1
- package/dist/select/SelectAnatomy.d.cts +20 -0
- package/dist/select/SelectAnatomy.d.ts +20 -0
- package/dist/select/SelectContent.d.cts +4 -14
- package/dist/select/SelectContent.d.ts +4 -14
- package/dist/select/SelectGroup.d.cts +11 -3
- package/dist/select/SelectGroup.d.ts +11 -3
- package/dist/select/SelectItem.d.cts +10 -8
- package/dist/select/SelectItem.d.ts +10 -8
- package/dist/select/SelectItemIndicator.d.cts +2 -3
- package/dist/select/SelectItemIndicator.d.ts +2 -3
- package/dist/select/SelectLabel.d.cts +1 -2
- package/dist/select/SelectLabel.d.ts +1 -2
- package/dist/select/SelectPortal.d.cts +1 -4
- package/dist/select/SelectPortal.d.ts +1 -4
- package/dist/select/SelectSeparator.d.cts +1 -1
- package/dist/select/SelectSeparator.d.ts +1 -1
- package/dist/select/SelectTrigger.d.cts +15 -13
- package/dist/select/SelectTrigger.d.ts +15 -13
- package/dist/select/SelectValue.d.cts +12 -4
- package/dist/select/SelectValue.d.ts +12 -4
- package/dist/select/index.d.cts +2 -13
- package/dist/select/index.d.ts +2 -13
- package/dist/select/primitives.d.cts +39 -0
- package/dist/select/primitives.d.ts +39 -0
- package/dist/select/types.d.cts +118 -166
- package/dist/select/types.d.ts +118 -166
- package/dist/separator/Separator.cjs +1 -1
- package/dist/separator/Separator.d.cts +4 -5
- package/dist/separator/Separator.d.ts +4 -5
- package/dist/separator/Separator.js +1 -1
- package/dist/separator/types.d.cts +2 -4
- package/dist/separator/types.d.ts +2 -4
- package/dist/skeleton/Skeleton.cjs +1 -1
- package/dist/skeleton/Skeleton.d.cts +9 -5
- package/dist/skeleton/Skeleton.d.ts +9 -5
- package/dist/skeleton/Skeleton.js +1 -1
- package/dist/skip-link/SkipLink.cjs +1 -1
- package/dist/skip-link/SkipLink.d.cts +4 -6
- package/dist/skip-link/SkipLink.d.ts +4 -6
- package/dist/skip-link/SkipLink.js +1 -1
- package/dist/slider/Slider.cjs +1 -1
- package/dist/slider/Slider.d.cts +4 -13
- package/dist/slider/Slider.d.ts +4 -13
- package/dist/slider/Slider.js +1 -1
- package/dist/slider/SliderAnatomy.d.cts +15 -0
- package/dist/slider/SliderAnatomy.d.ts +15 -0
- package/dist/slider/SliderMark.d.cts +20 -0
- package/dist/slider/SliderMark.d.ts +20 -0
- package/dist/slider/SliderRange.d.cts +4 -5
- package/dist/slider/SliderRange.d.ts +4 -5
- package/dist/slider/SliderThumb.d.cts +7 -9
- package/dist/slider/SliderThumb.d.ts +7 -9
- package/dist/slider/SliderTrack.d.cts +1 -3
- package/dist/slider/SliderTrack.d.ts +1 -3
- package/dist/slider/index.d.cts +2 -5
- package/dist/slider/index.d.ts +2 -5
- package/dist/slider/primitives.d.cts +23 -0
- package/dist/slider/primitives.d.ts +23 -0
- package/dist/slider/types.d.cts +100 -4
- package/dist/slider/types.d.ts +100 -4
- package/dist/speed-dial/SpeedDial.cjs +1 -1
- package/dist/speed-dial/SpeedDial.d.cts +53 -15
- package/dist/speed-dial/SpeedDial.d.ts +53 -15
- package/dist/speed-dial/SpeedDial.js +1 -1
- package/dist/speed-dial/SpeedDialAnatomy.d.cts +21 -0
- package/dist/speed-dial/SpeedDialAnatomy.d.ts +21 -0
- package/dist/speed-dial/SpeedDialItem.d.cts +3 -13
- package/dist/speed-dial/SpeedDialItem.d.ts +3 -13
- package/dist/speed-dial/SpeedDialItemLabel.d.cts +2 -6
- package/dist/speed-dial/SpeedDialItemLabel.d.ts +2 -6
- package/dist/speed-dial/SpeedDialOverlay.d.cts +15 -0
- package/dist/speed-dial/SpeedDialOverlay.d.ts +15 -0
- package/dist/speed-dial/SpeedDialPortal.d.cts +2 -7
- package/dist/speed-dial/SpeedDialPortal.d.ts +2 -7
- package/dist/speed-dial/SpeedDialTrigger.d.cts +3 -12
- package/dist/speed-dial/SpeedDialTrigger.d.ts +3 -12
- package/dist/speed-dial/index.d.cts +1 -6
- package/dist/speed-dial/index.d.ts +1 -6
- package/dist/speed-dial/primitives.d.cts +29 -0
- package/dist/speed-dial/primitives.d.ts +29 -0
- package/dist/speed-dial/types.d.cts +95 -75
- package/dist/speed-dial/types.d.ts +95 -75
- package/dist/spinner/Spinner.cjs +1 -1
- package/dist/spinner/Spinner.d.cts +3 -5
- package/dist/spinner/Spinner.d.ts +3 -5
- package/dist/spinner/Spinner.js +1 -1
- package/dist/split-button/SplitButton.cjs +1 -1
- package/dist/split-button/SplitButton.d.cts +11 -18
- package/dist/split-button/SplitButton.d.ts +11 -18
- package/dist/split-button/SplitButton.js +1 -1
- package/dist/split-button/SplitButtonAnatomy.d.cts +15 -0
- package/dist/split-button/SplitButtonAnatomy.d.ts +15 -0
- package/dist/split-button/index.d.cts +2 -4
- package/dist/split-button/index.d.ts +2 -4
- package/dist/split-button/primitives.d.cts +20 -0
- package/dist/split-button/primitives.d.ts +20 -0
- package/dist/split-button/types.d.cts +70 -3
- package/dist/split-button/types.d.ts +70 -3
- package/dist/steps/Steps.cjs +1 -1
- package/dist/steps/Steps.d.cts +22 -25
- package/dist/steps/Steps.d.ts +22 -25
- package/dist/steps/Steps.js +1 -1
- package/dist/steps/StepsAnatomy.d.cts +13 -0
- package/dist/steps/StepsAnatomy.d.ts +13 -0
- package/dist/steps/StepsItem.d.cts +3 -5
- package/dist/steps/StepsItem.d.ts +3 -5
- package/dist/steps/StepsTrigger.d.cts +1 -7
- package/dist/steps/StepsTrigger.d.ts +1 -7
- package/dist/steps/index.d.cts +2 -4
- package/dist/steps/index.d.ts +2 -4
- package/dist/steps/primitives.d.cts +22 -0
- package/dist/steps/primitives.d.ts +22 -0
- package/dist/steps/types.d.cts +57 -24
- package/dist/steps/types.d.ts +57 -24
- package/dist/switch/Switch.cjs +1 -1
- package/dist/switch/Switch.d.cts +26 -5
- package/dist/switch/Switch.d.ts +26 -5
- package/dist/switch/Switch.js +1 -1
- package/dist/switch/SwitchAnatomy.d.cts +10 -0
- package/dist/switch/SwitchAnatomy.d.ts +10 -0
- package/dist/switch/SwitchLabel.d.cts +28 -0
- package/dist/switch/SwitchLabel.d.ts +28 -0
- package/dist/switch/SwitchThumb.d.cts +3 -3
- package/dist/switch/SwitchThumb.d.ts +3 -3
- package/dist/switch/index.d.cts +2 -3
- package/dist/switch/index.d.ts +2 -3
- package/dist/switch/primitives.d.cts +17 -0
- package/dist/switch/primitives.d.ts +17 -0
- package/dist/switch/types.d.cts +38 -1
- package/dist/switch/types.d.ts +38 -1
- package/dist/table/Table.cjs +1 -1
- package/dist/table/Table.d.cts +39 -10
- package/dist/table/Table.d.ts +39 -10
- package/dist/table/Table.js +1 -1
- package/dist/table/TableAnatomy.d.cts +20 -0
- package/dist/table/TableAnatomy.d.ts +20 -0
- package/dist/table/TableColumnHeaderSortTrigger.d.cts +4 -15
- package/dist/table/TableColumnHeaderSortTrigger.d.ts +4 -15
- package/dist/table/TableColumnResizeTrigger.d.cts +1 -15
- package/dist/table/TableColumnResizeTrigger.d.ts +1 -15
- package/dist/table/TableEmpty.d.cts +1 -4
- package/dist/table/TableEmpty.d.ts +1 -4
- package/dist/table/TableExpandTrigger.d.cts +1 -9
- package/dist/table/TableExpandTrigger.d.ts +1 -9
- package/dist/table/TableExpandedRow.d.cts +1 -8
- package/dist/table/TableExpandedRow.d.ts +1 -8
- package/dist/table/TableHeader.d.cts +1 -1
- package/dist/table/TableHeader.d.ts +1 -1
- package/dist/table/TableHeaderCell.d.cts +7 -19
- package/dist/table/TableHeaderCell.d.ts +7 -19
- package/dist/table/TableRow.d.cts +6 -6
- package/dist/table/TableRow.d.ts +6 -6
- package/dist/table/TableRowSelectCheckbox.d.cts +6 -14
- package/dist/table/TableRowSelectCheckbox.d.ts +6 -14
- package/dist/table/TableSelectAllCheckbox.d.cts +5 -15
- package/dist/table/TableSelectAllCheckbox.d.ts +5 -15
- package/dist/table/TableSortIndicator.d.cts +3 -11
- package/dist/table/TableSortIndicator.d.ts +3 -11
- package/dist/table/index.d.cts +2 -15
- package/dist/table/index.d.ts +2 -15
- package/dist/table/primitives.d.cts +40 -0
- package/dist/table/primitives.d.ts +40 -0
- package/dist/table/types.d.cts +204 -165
- package/dist/table/types.d.ts +204 -165
- package/dist/tabs/Tabs.cjs +1 -1
- package/dist/tabs/Tabs.d.cts +16 -8
- package/dist/tabs/Tabs.d.ts +16 -8
- package/dist/tabs/Tabs.js +1 -1
- package/dist/tabs/TabsAnatomy.d.cts +15 -0
- package/dist/tabs/TabsAnatomy.d.ts +15 -0
- package/dist/tabs/TabsContent.d.cts +2 -1
- package/dist/tabs/TabsContent.d.ts +2 -1
- package/dist/tabs/TabsTrigger.d.cts +2 -2
- package/dist/tabs/TabsTrigger.d.ts +2 -2
- package/dist/tabs/index.d.cts +2 -5
- package/dist/tabs/index.d.ts +2 -5
- package/dist/tabs/primitives.d.cts +22 -0
- package/dist/tabs/primitives.d.ts +22 -0
- package/dist/tabs/types.d.cts +132 -3
- package/dist/tabs/types.d.ts +132 -3
- package/dist/tag/Tag.cjs +1 -1
- package/dist/tag/Tag.d.cts +17 -18
- package/dist/tag/Tag.d.ts +17 -18
- package/dist/tag/Tag.js +1 -1
- package/dist/tag/TagAnatomy.d.cts +17 -0
- package/dist/tag/TagAnatomy.d.ts +17 -0
- package/dist/tag/TagDelete.d.cts +4 -10
- package/dist/tag/TagDelete.d.ts +4 -10
- package/dist/tag/TagLabel.d.cts +17 -0
- package/dist/tag/TagLabel.d.ts +17 -0
- package/dist/tag/TagLeading.d.cts +17 -0
- package/dist/tag/TagLeading.d.ts +17 -0
- package/dist/tag/index.d.cts +1 -2
- package/dist/tag/index.d.ts +1 -2
- package/dist/tag/primitives.d.cts +19 -0
- package/dist/tag/primitives.d.ts +19 -0
- package/dist/tag/types.d.cts +89 -18
- package/dist/tag/types.d.ts +89 -18
- package/dist/tag-group/TagGroup.cjs +1 -1
- package/dist/tag-group/TagGroup.d.cts +36 -47
- package/dist/tag-group/TagGroup.d.ts +36 -47
- package/dist/tag-group/TagGroup.js +1 -1
- package/dist/tag-group/TagGroupAnatomy.d.cts +12 -0
- package/dist/tag-group/TagGroupAnatomy.d.ts +12 -0
- package/dist/tag-group/TagGroupEmpty.d.cts +16 -0
- package/dist/tag-group/TagGroupEmpty.d.ts +16 -0
- package/dist/tag-group/TagGroupLabel.d.cts +16 -0
- package/dist/tag-group/TagGroupLabel.d.ts +16 -0
- package/dist/tag-group/TagGroupList.d.cts +23 -0
- package/dist/tag-group/TagGroupList.d.ts +23 -0
- package/dist/tag-group/index.d.cts +2 -2
- package/dist/tag-group/index.d.ts +2 -2
- package/dist/tag-group/primitives.d.cts +27 -0
- package/dist/tag-group/primitives.d.ts +27 -0
- package/dist/tag-group/types.d.cts +68 -18
- package/dist/tag-group/types.d.ts +68 -18
- package/dist/tags-input/TagsInput.cjs +2 -1
- package/dist/tags-input/TagsInput.d.cts +40 -50
- package/dist/tags-input/TagsInput.d.ts +40 -50
- package/dist/tags-input/TagsInput.js +2 -1
- package/dist/tags-input/TagsInputAnatomy.d.cts +9 -0
- package/dist/tags-input/TagsInputAnatomy.d.ts +9 -0
- package/dist/tags-input/TagsInputClear.d.cts +18 -0
- package/dist/tags-input/TagsInputClear.d.ts +18 -0
- package/dist/tags-input/TagsInputInput.d.cts +3 -9
- package/dist/tags-input/TagsInputInput.d.ts +3 -9
- package/dist/tags-input/TagsInputItem.d.cts +8 -3
- package/dist/tags-input/TagsInputItem.d.ts +8 -3
- package/dist/tags-input/TagsInputItemDelete.d.cts +8 -3
- package/dist/tags-input/TagsInputItemDelete.d.ts +8 -3
- package/dist/tags-input/TagsInputItemInput.d.cts +28 -0
- package/dist/tags-input/TagsInputItemInput.d.ts +28 -0
- package/dist/tags-input/index.d.cts +2 -5
- package/dist/tags-input/index.d.ts +2 -5
- package/dist/tags-input/primitives.d.cts +27 -0
- package/dist/tags-input/primitives.d.ts +27 -0
- package/dist/tags-input/types.d.cts +149 -6
- package/dist/tags-input/types.d.ts +149 -6
- package/dist/text/Text.cjs +1 -0
- package/dist/text/Text.d.cts +17 -0
- package/dist/text/Text.d.ts +17 -0
- package/dist/text/Text.js +1 -0
- package/dist/text/index.d.cts +2 -0
- package/dist/text/index.d.ts +2 -0
- package/dist/text/types.d.cts +11 -0
- package/dist/text/types.d.ts +11 -0
- package/dist/text-field/TextField.cjs +1 -1
- package/dist/text-field/TextField.d.cts +9 -12
- package/dist/text-field/TextField.d.ts +9 -12
- package/dist/text-field/TextField.js +1 -1
- package/dist/text-field/TextFieldAnatomy.d.cts +16 -0
- package/dist/text-field/TextFieldAnatomy.d.ts +16 -0
- package/dist/text-field/TextFieldClearButton.d.cts +1 -4
- package/dist/text-field/TextFieldClearButton.d.ts +1 -4
- package/dist/text-field/TextFieldInput.d.cts +2 -8
- package/dist/text-field/TextFieldInput.d.ts +2 -8
- package/dist/text-field/TextFieldSlot.d.cts +1 -2
- package/dist/text-field/TextFieldSlot.d.ts +1 -2
- package/dist/text-field/index.d.cts +2 -5
- package/dist/text-field/index.d.ts +2 -5
- package/dist/text-field/primitives.d.cts +21 -0
- package/dist/text-field/primitives.d.ts +21 -0
- package/dist/text-field/types.d.cts +67 -6
- package/dist/text-field/types.d.ts +67 -6
- package/dist/textarea/Textarea.cjs +1 -1
- package/dist/textarea/Textarea.d.cts +4 -6
- package/dist/textarea/Textarea.d.ts +4 -6
- package/dist/textarea/Textarea.js +1 -1
- package/dist/textarea/types.d.cts +31 -3
- package/dist/textarea/types.d.ts +31 -3
- package/dist/time/Time.cjs +1 -0
- package/dist/time/Time.d.cts +14 -0
- package/dist/time/Time.d.ts +14 -0
- package/dist/time/Time.js +1 -0
- package/dist/time/format.d.cts +4 -0
- package/dist/time/format.d.ts +4 -0
- package/dist/time/index.d.cts +3 -0
- package/dist/time/index.d.ts +3 -0
- package/dist/time/types.d.cts +29 -0
- package/dist/time/types.d.ts +29 -0
- package/dist/time-field/TimeField.cjs +1 -1
- package/dist/time-field/TimeField.js +1 -1
- package/dist/time-field/types.d.cts +34 -6
- package/dist/time-field/types.d.ts +34 -6
- package/dist/timeline/Timeline.cjs +1 -1
- package/dist/timeline/Timeline.d.cts +7 -14
- package/dist/timeline/Timeline.d.ts +7 -14
- package/dist/timeline/Timeline.js +1 -1
- package/dist/timeline/TimelineAnatomy.d.cts +13 -0
- package/dist/timeline/TimelineAnatomy.d.ts +13 -0
- package/dist/timeline/TimelineIndicator.d.cts +7 -0
- package/dist/timeline/TimelineIndicator.d.ts +7 -0
- package/dist/timeline/TimelineItem.d.cts +1 -3
- package/dist/timeline/TimelineItem.d.ts +1 -3
- package/dist/timeline/TimelineOpposite.d.cts +18 -0
- package/dist/timeline/TimelineOpposite.d.ts +18 -0
- package/dist/timeline/TimelineSeparator.d.cts +1 -3
- package/dist/timeline/TimelineSeparator.d.ts +1 -3
- package/dist/timeline/index.d.cts +2 -6
- package/dist/timeline/index.d.ts +2 -6
- package/dist/timeline/primitives.d.cts +25 -0
- package/dist/timeline/primitives.d.ts +25 -0
- package/dist/timeline/types.d.cts +46 -2
- package/dist/timeline/types.d.ts +46 -2
- package/dist/toast/Toast.cjs +1 -1
- package/dist/toast/Toast.d.cts +8 -17
- package/dist/toast/Toast.d.ts +8 -17
- package/dist/toast/Toast.js +1 -1
- package/dist/toast/ToastAction.d.cts +1 -4
- package/dist/toast/ToastAction.d.ts +1 -4
- package/dist/toast/ToastClose.d.cts +13 -3
- package/dist/toast/ToastClose.d.ts +13 -3
- package/dist/toast/ToastDescription.d.cts +1 -1
- package/dist/toast/ToastDescription.d.ts +1 -1
- package/dist/toast/ToastProvider.d.cts +5 -6
- package/dist/toast/ToastProvider.d.ts +5 -6
- package/dist/toast/ToastTitle.d.cts +1 -1
- package/dist/toast/ToastTitle.d.ts +1 -1
- package/dist/toast/Toaster.d.cts +8 -20
- package/dist/toast/Toaster.d.ts +8 -20
- package/dist/toast/index.d.cts +1 -9
- package/dist/toast/index.d.ts +1 -9
- package/dist/toast/primitives.d.cts +27 -0
- package/dist/toast/primitives.d.ts +27 -0
- package/dist/toast/region-focus.d.cts +14 -8
- package/dist/toast/region-focus.d.ts +14 -8
- package/dist/toast/types.d.cts +77 -28
- package/dist/toast/types.d.ts +77 -28
- package/dist/toggle/Toggle.cjs +1 -1
- package/dist/toggle/Toggle.d.cts +9 -4
- package/dist/toggle/Toggle.d.ts +9 -4
- package/dist/toggle/Toggle.js +1 -1
- package/dist/toggle/types.d.cts +9 -4
- package/dist/toggle/types.d.ts +9 -4
- package/dist/toggle-group/ToggleGroup.cjs +1 -1
- package/dist/toggle-group/ToggleGroup.d.cts +33 -14
- package/dist/toggle-group/ToggleGroup.d.ts +33 -14
- package/dist/toggle-group/ToggleGroup.js +1 -1
- package/dist/toggle-group/ToggleGroupAnatomy.d.cts +9 -0
- package/dist/toggle-group/ToggleGroupAnatomy.d.ts +9 -0
- package/dist/toggle-group/ToggleGroupItem.d.cts +4 -4
- package/dist/toggle-group/ToggleGroupItem.d.ts +4 -4
- package/dist/toggle-group/index.d.cts +3 -3
- package/dist/toggle-group/index.d.ts +3 -3
- package/dist/toggle-group/primitives.d.cts +20 -0
- package/dist/toggle-group/primitives.d.ts +20 -0
- package/dist/toggle-group/types.d.cts +107 -26
- package/dist/toggle-group/types.d.ts +107 -26
- package/dist/toolbar/Toolbar.cjs +1 -1
- package/dist/toolbar/Toolbar.d.cts +5 -6
- package/dist/toolbar/Toolbar.d.ts +5 -6
- package/dist/toolbar/Toolbar.js +1 -1
- package/dist/toolbar/ToolbarAnatomy.d.cts +11 -0
- package/dist/toolbar/ToolbarAnatomy.d.ts +11 -0
- package/dist/toolbar/ToolbarButton.d.cts +1 -4
- package/dist/toolbar/ToolbarButton.d.ts +1 -4
- package/dist/toolbar/ToolbarLink.d.cts +1 -4
- package/dist/toolbar/ToolbarLink.d.ts +1 -4
- package/dist/toolbar/ToolbarSeparator.d.cts +3 -4
- package/dist/toolbar/ToolbarSeparator.d.ts +3 -4
- package/dist/toolbar/ToolbarToggleGroup.d.cts +4 -8
- package/dist/toolbar/ToolbarToggleGroup.d.ts +4 -8
- package/dist/toolbar/ToolbarToggleItem.d.cts +1 -7
- package/dist/toolbar/ToolbarToggleItem.d.ts +1 -7
- package/dist/toolbar/index.d.cts +3 -7
- package/dist/toolbar/index.d.ts +3 -7
- package/dist/toolbar/primitives.d.cts +23 -0
- package/dist/toolbar/primitives.d.ts +23 -0
- package/dist/toolbar/types.d.cts +134 -28
- package/dist/toolbar/types.d.ts +134 -28
- package/dist/tooltip/Tooltip.cjs +1 -1
- package/dist/tooltip/Tooltip.d.cts +44 -16
- package/dist/tooltip/Tooltip.d.ts +44 -16
- package/dist/tooltip/Tooltip.js +1 -1
- package/dist/tooltip/TooltipAnatomy.d.cts +15 -0
- package/dist/tooltip/TooltipAnatomy.d.ts +15 -0
- package/dist/tooltip/TooltipContent.d.cts +10 -12
- package/dist/tooltip/TooltipContent.d.ts +10 -12
- package/dist/tooltip/TooltipPortal.d.cts +2 -3
- package/dist/tooltip/TooltipPortal.d.ts +2 -3
- package/dist/tooltip/TooltipProvider.d.cts +4 -8
- package/dist/tooltip/TooltipProvider.d.ts +4 -8
- package/dist/tooltip/TooltipTrigger.d.cts +3 -6
- package/dist/tooltip/TooltipTrigger.d.ts +3 -6
- package/dist/tooltip/index.d.cts +1 -5
- package/dist/tooltip/index.d.ts +1 -5
- package/dist/tooltip/primitives.d.cts +27 -0
- package/dist/tooltip/primitives.d.ts +27 -0
- package/dist/tooltip/types.d.cts +78 -28
- package/dist/tooltip/types.d.ts +78 -28
- package/dist/tour/Tour.cjs +1 -1
- package/dist/tour/Tour.d.cts +7 -45
- package/dist/tour/Tour.d.ts +7 -45
- package/dist/tour/Tour.js +1 -1
- package/dist/tour/TourActions.d.cts +20 -0
- package/dist/tour/TourActions.d.ts +20 -0
- package/dist/tour/TourAnatomy.d.cts +15 -0
- package/dist/tour/TourAnatomy.d.ts +15 -0
- package/dist/tour/TourArrow.d.cts +2 -7
- package/dist/tour/TourArrow.d.ts +2 -7
- package/dist/tour/TourBackdrop.d.cts +3 -0
- package/dist/tour/TourBackdrop.d.ts +3 -0
- package/dist/tour/TourCloseTrigger.d.cts +2 -6
- package/dist/tour/TourCloseTrigger.d.ts +2 -6
- package/dist/tour/TourContent.d.cts +8 -24
- package/dist/tour/TourContent.d.ts +8 -24
- package/dist/tour/TourNextTrigger.d.cts +1 -4
- package/dist/tour/TourNextTrigger.d.ts +1 -4
- package/dist/tour/TourPortal.d.cts +2 -5
- package/dist/tour/TourPortal.d.ts +2 -5
- package/dist/tour/TourPrevTrigger.d.cts +1 -4
- package/dist/tour/TourPrevTrigger.d.ts +1 -4
- package/dist/tour/TourProgressText.d.cts +2 -7
- package/dist/tour/TourProgressText.d.ts +2 -7
- package/dist/tour/TourSkipTrigger.d.cts +1 -4
- package/dist/tour/TourSkipTrigger.d.ts +1 -4
- package/dist/tour/TourSpotlight.d.cts +3 -7
- package/dist/tour/TourSpotlight.d.ts +3 -7
- package/dist/tour/TourTrigger.d.cts +1 -7
- package/dist/tour/TourTrigger.d.ts +1 -7
- package/dist/tour/index.d.cts +1 -14
- package/dist/tour/index.d.ts +1 -14
- package/dist/tour/primitives.d.cts +41 -0
- package/dist/tour/primitives.d.ts +41 -0
- package/dist/tour/types.d.cts +126 -71
- package/dist/tour/types.d.ts +126 -71
- package/dist/transfer/Transfer.cjs +1 -1
- package/dist/transfer/Transfer.d.cts +15 -51
- package/dist/transfer/Transfer.d.ts +15 -51
- package/dist/transfer/Transfer.js +1 -1
- package/dist/transfer/TransferAnatomy.d.cts +14 -0
- package/dist/transfer/TransferAnatomy.d.ts +14 -0
- package/dist/transfer/TransferControls.d.cts +1 -6
- package/dist/transfer/TransferControls.d.ts +1 -6
- package/dist/transfer/TransferEmpty.d.cts +7 -13
- package/dist/transfer/TransferEmpty.d.ts +7 -13
- package/dist/transfer/TransferItem.d.cts +3 -15
- package/dist/transfer/TransferItem.d.ts +3 -15
- package/dist/transfer/TransferList.d.cts +6 -20
- package/dist/transfer/TransferList.d.ts +6 -20
- package/dist/transfer/TransferListHeader.d.cts +6 -11
- package/dist/transfer/TransferListHeader.d.ts +6 -11
- package/dist/transfer/TransferListSearch.d.cts +2 -10
- package/dist/transfer/TransferListSearch.d.ts +2 -10
- package/dist/transfer/TransferMoveAllTrigger.d.cts +3 -9
- package/dist/transfer/TransferMoveAllTrigger.d.ts +3 -9
- package/dist/transfer/index.d.cts +2 -10
- package/dist/transfer/index.d.ts +2 -10
- package/dist/transfer/primitives.d.cts +29 -0
- package/dist/transfer/primitives.d.ts +29 -0
- package/dist/transfer/types.d.cts +154 -84
- package/dist/transfer/types.d.ts +154 -84
- package/dist/tree/Tree.cjs +1 -1
- package/dist/tree/Tree.d.cts +46 -21
- package/dist/tree/Tree.d.ts +46 -21
- package/dist/tree/Tree.js +1 -1
- package/dist/tree/TreeAnatomy.d.cts +11 -0
- package/dist/tree/TreeAnatomy.d.ts +11 -0
- package/dist/tree/TreeGroup.d.cts +3 -4
- package/dist/tree/TreeGroup.d.ts +3 -4
- package/dist/tree/TreeItem.d.cts +7 -13
- package/dist/tree/TreeItem.d.ts +7 -13
- package/dist/tree/TreeItemIndicator.d.cts +3 -5
- package/dist/tree/TreeItemIndicator.d.ts +3 -5
- package/dist/tree/index.d.cts +2 -5
- package/dist/tree/index.d.ts +2 -5
- package/dist/tree/primitives.d.cts +24 -0
- package/dist/tree/primitives.d.ts +24 -0
- package/dist/tree/types.d.cts +134 -61
- package/dist/tree/types.d.ts +134 -61
- package/dist/tree-select/TreeSelect.cjs +1 -1
- package/dist/tree-select/TreeSelect.d.cts +9 -3
- package/dist/tree-select/TreeSelect.d.ts +9 -3
- package/dist/tree-select/TreeSelect.js +1 -1
- package/dist/tree-select/TreeSelectAnatomy.d.cts +19 -0
- package/dist/tree-select/TreeSelectAnatomy.d.ts +19 -0
- package/dist/tree-select/TreeSelectContent.d.cts +4 -20
- package/dist/tree-select/TreeSelectContent.d.ts +4 -20
- package/dist/tree-select/TreeSelectEmpty.d.cts +2 -4
- package/dist/tree-select/TreeSelectEmpty.d.ts +2 -4
- package/dist/tree-select/TreeSelectInput.d.cts +5 -16
- package/dist/tree-select/TreeSelectInput.d.ts +5 -16
- package/dist/tree-select/TreeSelectItem.d.cts +6 -18
- package/dist/tree-select/TreeSelectItem.d.ts +6 -18
- 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 +2 -4
- package/dist/tree-select/TreeSelectPortal.d.ts +2 -4
- package/dist/tree-select/TreeSelectTree.d.cts +7 -13
- package/dist/tree-select/TreeSelectTree.d.ts +7 -13
- package/dist/tree-select/TreeSelectTrigger.d.cts +4 -14
- package/dist/tree-select/TreeSelectTrigger.d.ts +4 -14
- package/dist/tree-select/collection.d.cts +24 -15
- package/dist/tree-select/collection.d.ts +24 -15
- package/dist/tree-select/index.d.cts +1 -10
- package/dist/tree-select/index.d.ts +1 -10
- package/dist/tree-select/primitives.d.cts +31 -0
- package/dist/tree-select/primitives.d.ts +31 -0
- package/dist/tree-select/types.d.cts +150 -137
- package/dist/tree-select/types.d.ts +150 -137
- package/dist/utils/cardNesting.cjs +1 -0
- package/dist/utils/cardNesting.d.cts +25 -0
- package/dist/utils/cardNesting.d.ts +25 -0
- package/dist/utils/cardNesting.js +1 -0
- package/dist/utils/createContext.cjs +1 -1
- package/dist/utils/createContext.d.cts +2 -2
- package/dist/utils/createContext.d.ts +2 -2
- package/dist/utils/createContext.js +1 -1
- package/dist/utils/dateSegments.cjs +1 -1
- package/dist/utils/dateSegments.d.cts +111 -30
- package/dist/utils/dateSegments.d.ts +111 -30
- package/dist/utils/dateSegments.js +1 -1
- package/dist/utils/dateValue.cjs +1 -0
- package/dist/utils/dateValue.d.cts +76 -0
- package/dist/utils/dateValue.d.ts +76 -0
- package/dist/utils/dateValue.js +1 -0
- package/dist/utils/declaredChildren.cjs +1 -0
- package/dist/utils/declaredChildren.d.cts +14 -0
- package/dist/utils/declaredChildren.d.ts +14 -0
- package/dist/utils/declaredChildren.js +1 -0
- package/dist/utils/direction.cjs +1 -1
- package/dist/utils/direction.d.cts +23 -0
- package/dist/utils/direction.d.ts +23 -0
- package/dist/utils/direction.js +1 -1
- package/dist/utils/formControl.cjs +1 -1
- package/dist/utils/formControl.d.cts +74 -2
- package/dist/utils/formControl.d.ts +74 -2
- package/dist/utils/formControl.js +1 -1
- package/dist/utils/hiddenInput.cjs +1 -1
- package/dist/utils/hiddenInput.d.cts +29 -11
- package/dist/utils/hiddenInput.d.ts +29 -11
- package/dist/utils/hiddenInput.js +1 -1
- package/dist/utils/is-dev-mode.cjs +1 -0
- package/dist/utils/is-dev-mode.d.cts +6 -0
- package/dist/utils/is-dev-mode.d.ts +6 -0
- package/dist/utils/is-dev-mode.js +1 -0
- package/dist/utils/liveAnnouncer.d.cts +10 -33
- package/dist/utils/liveAnnouncer.d.ts +10 -33
- package/dist/utils/menuGlyph.cjs +1 -0
- package/dist/utils/menuGlyph.d.cts +4 -0
- package/dist/utils/menuGlyph.d.ts +4 -0
- package/dist/utils/menuGlyph.js +1 -0
- package/dist/utils/menuGroup.cjs +1 -0
- package/dist/utils/menuGroup.d.cts +34 -0
- package/dist/utils/menuGroup.d.ts +34 -0
- package/dist/utils/menuGroup.js +1 -0
- package/dist/utils/menuSub.cjs +1 -1
- package/dist/utils/menuSub.d.cts +23 -25
- package/dist/utils/menuSub.d.ts +23 -25
- package/dist/utils/menuSub.js +1 -1
- package/dist/utils/numberFormat.d.cts +3 -9
- package/dist/utils/numberFormat.d.ts +3 -9
- package/dist/utils/part.d.cts +0 -54
- package/dist/utils/part.d.ts +0 -54
- package/dist/utils/passThrough.cjs +1 -0
- package/dist/utils/passThrough.d.cts +28 -0
- package/dist/utils/passThrough.d.ts +28 -0
- package/dist/utils/passThrough.js +0 -0
- package/dist/utils/popper.cjs +1 -1
- package/dist/utils/popper.d.cts +47 -2
- package/dist/utils/popper.d.ts +47 -2
- package/dist/utils/popper.js +1 -1
- package/dist/utils/portal.d.cts +3 -4
- package/dist/utils/portal.d.ts +3 -4
- package/dist/utils/presence.cjs +1 -1
- package/dist/utils/presence.js +1 -1
- package/dist/utils/primitive.cjs +1 -1
- package/dist/utils/primitive.d.cts +7 -1
- package/dist/utils/primitive.d.ts +7 -1
- package/dist/utils/primitive.js +1 -1
- package/dist/utils/resolveSpace.cjs +1 -0
- package/dist/utils/resolveSpace.d.cts +4 -0
- package/dist/utils/resolveSpace.d.ts +4 -0
- package/dist/utils/resolveSpace.js +1 -0
- package/dist/utils/scoredFilter.cjs +1 -0
- package/dist/utils/scoredFilter.d.cts +31 -0
- package/dist/utils/scoredFilter.d.ts +31 -0
- package/dist/utils/scoredFilter.js +1 -0
- package/dist/utils/segmentedField.cjs +1 -1
- package/dist/utils/segmentedField.d.cts +59 -9
- package/dist/utils/segmentedField.d.ts +59 -9
- package/dist/utils/segmentedField.js +1 -1
- package/dist/utils/slot.cjs +1 -1
- package/dist/utils/slot.d.cts +5 -3
- package/dist/utils/slot.d.ts +5 -3
- package/dist/utils/slot.js +1 -1
- package/dist/utils/tabbable.cjs +1 -0
- package/dist/utils/tabbable.d.cts +12 -0
- package/dist/utils/tabbable.d.ts +12 -0
- package/dist/utils/tabbable.js +1 -0
- package/dist/utils/useCallbackRef.d.cts +1 -3
- package/dist/utils/useCallbackRef.d.ts +1 -3
- package/dist/utils/useControllableState.d.cts +3 -8
- package/dist/utils/useControllableState.d.ts +3 -8
- package/dist/utils/useDismiss.cjs +1 -1
- package/dist/utils/useDismiss.d.cts +11 -20
- package/dist/utils/useDismiss.d.ts +11 -20
- package/dist/utils/useDismiss.js +1 -1
- package/dist/utils/useFocusTrap.cjs +1 -1
- package/dist/utils/useFocusTrap.d.cts +5 -6
- package/dist/utils/useFocusTrap.d.ts +5 -6
- package/dist/utils/useFocusTrap.js +1 -1
- package/dist/utils/useMenuItem.cjs +1 -1
- package/dist/utils/useMenuItem.d.cts +17 -6
- package/dist/utils/useMenuItem.d.ts +17 -6
- package/dist/utils/useMenuItem.js +1 -1
- package/dist/utils/useOpenChangeComplete.d.cts +5 -13
- package/dist/utils/useOpenChangeComplete.d.ts +5 -13
- package/dist/utils/useOptionCollection.cjs +1 -1
- package/dist/utils/useOptionCollection.d.cts +53 -3
- package/dist/utils/useOptionCollection.d.ts +53 -3
- package/dist/utils/useOptionCollection.js +1 -1
- package/dist/utils/useOutsideInert.cjs +1 -0
- package/dist/utils/useOutsideInert.d.cts +20 -0
- package/dist/utils/useOutsideInert.d.ts +20 -0
- package/dist/utils/useOutsideInert.js +1 -0
- package/dist/utils/useRovingFocus.cjs +1 -1
- package/dist/utils/useRovingFocus.d.cts +33 -1
- package/dist/utils/useRovingFocus.d.ts +33 -1
- package/dist/utils/useRovingFocus.js +1 -1
- package/dist/utils/useSelection.cjs +1 -1
- package/dist/utils/useSelection.d.cts +74 -29
- package/dist/utils/useSelection.d.ts +74 -29
- package/dist/utils/useSelection.js +1 -1
- package/dist/utils/useTypeahead.d.cts +4 -12
- package/dist/utils/useTypeahead.d.ts +4 -12
- package/package.json +782 -2
- package/dist/pagination/PaginationLink.d.cts +0 -16
- package/dist/pagination/PaginationLink.d.ts +0 -16
package/dist/editable/types.d.ts
CHANGED
|
@@ -2,18 +2,43 @@ import type * as React from 'react';
|
|
|
2
2
|
import type { PrimitivePropsWithRef } from '../utils/primitive.js';
|
|
3
3
|
/** The element `EditableInput` or `EditableTextarea` renders — whichever one the consumer mounted. */
|
|
4
4
|
export type EditableInputElement = HTMLInputElement | HTMLTextAreaElement;
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* How interacting with `EditablePreview` enters edit mode. Keyboard
|
|
7
|
+
* activation (Enter/Space) always works, in every mode including `'none'`,
|
|
8
|
+
* since the preview is a `role="button"` tab stop either way.
|
|
9
|
+
*/
|
|
10
|
+
export type EditableActivationMode = 'click' | 'dblclick' | 'focus' | 'none';
|
|
11
|
+
/** The payload of {@link EditableProps.onValueRevert}. */
|
|
12
|
+
export interface EditableRevertDetail {
|
|
13
|
+
/** The restored text — what is now on screen. */
|
|
14
|
+
value: string;
|
|
15
|
+
/** The draft that was thrown away — the only place the abandoned text still exists. */
|
|
16
|
+
previousValue: string;
|
|
17
|
+
}
|
|
7
18
|
/** Which gestures commit the draft. `'none'` leaves committing entirely to `EditableSubmitTrigger`. */
|
|
8
19
|
export type EditableSubmitMode = 'blur' | 'enter' | 'both' | 'none';
|
|
9
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Split placeholder for the preview (visible text, read as label) and editor
|
|
22
|
+
* (hint, read as instruction) since one string cannot serve both purposes.
|
|
23
|
+
*/
|
|
24
|
+
export interface EditablePlaceholder {
|
|
25
|
+
/** The editor's `placeholder` attribute — a hint, not a name. */
|
|
26
|
+
edit: string;
|
|
27
|
+
/** The empty preview's text, which is also its accessible name — write it as a label. */
|
|
28
|
+
preview: string;
|
|
29
|
+
}
|
|
30
|
+
/** @internal Context state distributed from Editable to its parts. */
|
|
10
31
|
export interface EditableContextValue {
|
|
11
32
|
value: string;
|
|
12
33
|
editing: boolean;
|
|
13
|
-
placeholder
|
|
34
|
+
/** The editor's placeholder half, already resolved from the union. */
|
|
35
|
+
editPlaceholder: string | undefined;
|
|
36
|
+
/** The empty preview's placeholder half, already resolved from the union. */
|
|
37
|
+
previewPlaceholder: string | undefined;
|
|
14
38
|
disabled: boolean;
|
|
15
39
|
readOnly: boolean;
|
|
16
40
|
required: boolean;
|
|
41
|
+
invalid: boolean;
|
|
17
42
|
maxLength: number | undefined;
|
|
18
43
|
activationMode: EditableActivationMode;
|
|
19
44
|
submitMode: EditableSubmitMode;
|
|
@@ -23,10 +48,17 @@ export interface EditableContextValue {
|
|
|
23
48
|
previewRef: React.RefObject<HTMLSpanElement | null>;
|
|
24
49
|
/**
|
|
25
50
|
* True only for the instant the root is programmatically returning focus to
|
|
26
|
-
* the preview
|
|
27
|
-
* mode on the focus it just caused — otherwise submitting would loop forever.
|
|
51
|
+
* the preview; `activationMode="focus"` reads it to avoid re-entering edit mode on that focus.
|
|
28
52
|
*/
|
|
29
53
|
returningFocusRef: React.RefObject<boolean>;
|
|
54
|
+
/** Id of whichever editor is mounted — an `EditableLabel`'s `for` target. */
|
|
55
|
+
editorId: string;
|
|
56
|
+
/** Id a mounted `EditableLabel` carries, and the preview points `aria-labelledby` at. */
|
|
57
|
+
labelId: string;
|
|
58
|
+
/** Whether an `EditableLabel` is currently mounted — a dangling IDREF names nothing. */
|
|
59
|
+
labelPresent: boolean;
|
|
60
|
+
/** Registers/unregisters an `EditableLabel`. @internal */
|
|
61
|
+
setLabelPresent: (present: boolean) => void;
|
|
30
62
|
setValue: (value: string) => void;
|
|
31
63
|
activate: () => void;
|
|
32
64
|
submit: () => void;
|
|
@@ -35,9 +67,13 @@ export interface EditableContextValue {
|
|
|
35
67
|
/** Props for the {@link Editable} root. */
|
|
36
68
|
export interface EditableProps extends Omit<PrimitivePropsWithRef<'div'>, 'onChange'> {
|
|
37
69
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
70
|
+
* Manually-composed parts for full control over the anatomy; omitted, the
|
|
71
|
+
* field derives its own preview and editor from `multiline`.
|
|
72
|
+
* @default undefined — the field derives its anatomy.
|
|
73
|
+
*/
|
|
74
|
+
children?: React.ReactNode;
|
|
75
|
+
/**
|
|
76
|
+
* Current text, for controlled usage, tracking the live draft while editing; use `onValueCommit` for the submitted result only.
|
|
41
77
|
* @default undefined — uncontrolled, tracks its own value internally.
|
|
42
78
|
*/
|
|
43
79
|
value?: string;
|
|
@@ -47,29 +83,31 @@ export interface EditableProps extends Omit<PrimitivePropsWithRef<'div'>, 'onCha
|
|
|
47
83
|
*/
|
|
48
84
|
defaultValue?: string;
|
|
49
85
|
/**
|
|
50
|
-
* Fires with the new text on every keystroke while editing, and again with
|
|
51
|
-
* the restored text when an edit is cancelled or rejected.
|
|
86
|
+
* Fires with the new text on every keystroke while editing, and again with the restored text when an edit is cancelled or rejected.
|
|
52
87
|
* @default undefined — no-op if omitted.
|
|
53
88
|
*/
|
|
54
89
|
onValueChange?: (value: string) => void;
|
|
55
90
|
/**
|
|
56
|
-
* Fires once with the final text when an edit is
|
|
57
|
-
*
|
|
58
|
-
* both of those restore the pre-edit text instead. This is the callback to
|
|
59
|
-
* hang a network write off; `onValueChange` would fire it per keystroke.
|
|
91
|
+
* Fires once with the final text when an edit is successfully submitted;
|
|
92
|
+
* never for an Escape-cancel or a rejected `required` blank submit.
|
|
60
93
|
* @default undefined — no-op if omitted.
|
|
61
94
|
*/
|
|
62
95
|
onValueCommit?: (value: string) => void;
|
|
63
96
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
97
|
+
* Fires when an edit is abandoned rather than committed — Escape, an
|
|
98
|
+
* `EditableCancelTrigger` click, or a `required` field submitted blank;
|
|
99
|
+
* fires after the value is restored, so `value` is what's now on screen and
|
|
100
|
+
* `previousValue` is the discarded draft.
|
|
101
|
+
* @default undefined — no-op if omitted.
|
|
102
|
+
*/
|
|
103
|
+
onValueRevert?: (detail: EditableRevertDetail) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the input is showing instead of the preview, for controlled usage. Pair with `onEditChange`.
|
|
66
106
|
* @default undefined — uncontrolled, tracks its own edit state internally.
|
|
67
107
|
*/
|
|
68
108
|
editing?: boolean;
|
|
69
109
|
/**
|
|
70
|
-
* Whether to start in edit mode, for uncontrolled usage
|
|
71
|
-
* focuses the input on mount, so use it only when the edit is the reason the
|
|
72
|
-
* surface appeared (a freshly added row), never on a page the user just landed on.
|
|
110
|
+
* Whether to start in edit mode, for uncontrolled usage; starting `true` focuses the input on mount.
|
|
73
111
|
* @default false — starts showing the preview.
|
|
74
112
|
*/
|
|
75
113
|
defaultEditing?: boolean;
|
|
@@ -79,57 +117,88 @@ export interface EditableProps extends Omit<PrimitivePropsWithRef<'div'>, 'onCha
|
|
|
79
117
|
*/
|
|
80
118
|
onEditChange?: (editing: boolean) => void;
|
|
81
119
|
/**
|
|
82
|
-
* Text rendered by `EditablePreview` when the value is empty, and set as
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
120
|
+
* Text rendered by `EditablePreview` when the value is empty, and set as
|
|
121
|
+
* the editor's `placeholder`. A plain string sets both; the `{ edit,
|
|
122
|
+
* preview }` object form sets them separately, since the preview's
|
|
123
|
+
* placeholder doubles as its accessible name while empty.
|
|
86
124
|
* @default undefined — an empty value renders an empty preview.
|
|
87
125
|
*/
|
|
88
|
-
placeholder?: string;
|
|
126
|
+
placeholder?: string | EditablePlaceholder;
|
|
127
|
+
/**
|
|
128
|
+
* Where focus goes when the edit ends, overriding the default of the
|
|
129
|
+
* preview; a function so the target is resolved at the moment focus moves,
|
|
130
|
+
* not at render. Returning `null` falls back to the preview.
|
|
131
|
+
* @default undefined — focus returns to `EditablePreview`.
|
|
132
|
+
*/
|
|
133
|
+
finalFocusEl?: () => HTMLElement | null;
|
|
89
134
|
/**
|
|
90
135
|
* Blocks editing entirely and takes the preview out of the tab order.
|
|
91
136
|
* @default false
|
|
92
137
|
*/
|
|
93
138
|
disabled?: boolean;
|
|
94
139
|
/**
|
|
95
|
-
* Shows the value but blocks entering edit mode
|
|
96
|
-
* (unlike `disabled`), so the text is still reachable by keyboard.
|
|
140
|
+
* Shows the value but blocks entering edit mode; the preview stays focusable, unlike `disabled`.
|
|
97
141
|
* @default false
|
|
98
142
|
*/
|
|
99
143
|
readOnly?: boolean;
|
|
100
144
|
/**
|
|
101
|
-
* Rejects a submit that would leave the value blank
|
|
102
|
-
* restored, `onValueCommit` does not fire, and edit mode closes.
|
|
103
|
-
* counts as blank.
|
|
145
|
+
* Rejects a submit that would leave the value blank (whitespace counts):
|
|
146
|
+
* the pre-edit text is restored, `onValueCommit` does not fire, and edit mode closes.
|
|
104
147
|
* @default false — an empty submit is committed like any other.
|
|
105
148
|
*/
|
|
106
149
|
required?: boolean;
|
|
107
150
|
/**
|
|
108
|
-
* Maximum number of characters the input accepts, forwarded to the native
|
|
109
|
-
* `maxLength` attribute.
|
|
151
|
+
* Maximum number of characters the input accepts, forwarded to the native `maxLength` attribute.
|
|
110
152
|
* @default undefined — no limit.
|
|
111
153
|
*/
|
|
112
154
|
maxLength?: number;
|
|
113
155
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
|
|
156
|
+
* Form field name; when set, the root renders one hidden input carrying the committed value, not the live draft.
|
|
157
|
+
* @default undefined — renders no hidden input; submits nothing.
|
|
158
|
+
*/
|
|
159
|
+
name?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Id of the `<form>` to submit with, mirroring the native `form` attribute on the hidden input `name` renders.
|
|
162
|
+
* @default undefined — associates with the nearest ancestor `<form>`.
|
|
163
|
+
*/
|
|
164
|
+
form?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Which pointer gesture on `EditablePreview` enters edit mode; `'none'`
|
|
167
|
+
* matches none, for a control entered only via `EditableEditTrigger` or a
|
|
168
|
+
* controlled `editing` prop. Enter/Space always opens the editor regardless of mode.
|
|
117
169
|
* @default 'click' — a single click on the preview starts editing.
|
|
118
170
|
*/
|
|
119
171
|
activationMode?: EditableActivationMode;
|
|
120
172
|
/**
|
|
121
|
-
* Which gestures commit the draft: `'enter'
|
|
122
|
-
*
|
|
123
|
-
* `EditableSubmitTrigger` alone. Escape always cancels regardless.
|
|
173
|
+
* Which gestures commit the draft: `'enter'`, `'blur'`, `'both'`, or
|
|
174
|
+
* `'none'` (leaving it to `EditableSubmitTrigger`). Escape always cancels regardless.
|
|
124
175
|
* @default 'both' — Enter and blur each submit.
|
|
125
176
|
*/
|
|
126
177
|
submitMode?: EditableSubmitMode;
|
|
127
178
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
179
|
+
* Marks the current value as invalid — a commit the server rejected, or a
|
|
180
|
+
* rule the surrounding `Field` owns. Published as `data-invalid` on root,
|
|
181
|
+
* preview and editor, and as `aria-invalid` on the editor only, since that
|
|
182
|
+
* state is deprecated on the preview's `role="button"` in ARIA 1.2.
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
invalid?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Select the whole value when edit mode opens, so typing replaces it; `false` places the caret at the end instead.
|
|
130
188
|
* @default true — entering edit mode selects everything.
|
|
131
189
|
*/
|
|
132
190
|
selectOnFocus?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Whether the derived anatomy's editor is an `EditableTextarea` instead of an `EditableInput`. Ignored when `children` is given.
|
|
193
|
+
* @default false — a single-line `EditableInput`.
|
|
194
|
+
*/
|
|
195
|
+
multiline?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Whether the derived anatomy renders an `EditableSubmitTrigger` /
|
|
198
|
+
* `EditableCancelTrigger` pair after the editor. Ignored when `children` is given.
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
201
|
+
showControls?: boolean;
|
|
133
202
|
}
|
|
134
203
|
/** Props for {@link EditablePreview}, the read-mode text that starts an edit. Renders nothing while editing. */
|
|
135
204
|
export interface EditablePreviewProps extends PrimitivePropsWithRef<'span'> {
|
|
@@ -139,6 +208,25 @@ export interface EditableInputProps extends Omit<PrimitivePropsWithRef<'input'>,
|
|
|
139
208
|
}
|
|
140
209
|
/** Props for {@link EditableTextarea}, the multi-line editor. Value, placeholder and constraints come from {@link Editable}'s context. */
|
|
141
210
|
export interface EditableTextareaProps extends Omit<PrimitivePropsWithRef<'textarea'>, 'value' | 'defaultValue'> {
|
|
211
|
+
/**
|
|
212
|
+
* Grow the editor to fit its content instead of showing a scrollbar.
|
|
213
|
+
* @default false — the editor keeps its `rows` height and scrolls.
|
|
214
|
+
*/
|
|
215
|
+
autoResize?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Caps auto-resize growth to this many rows, based on computed line-height; past the cap the editor scrolls again.
|
|
218
|
+
* @default undefined — grows without limit.
|
|
219
|
+
*/
|
|
220
|
+
maxRows?: number;
|
|
221
|
+
/**
|
|
222
|
+
* The editor's opening size and the floor auto-resize will not shrink
|
|
223
|
+
* below; where `minRows` and `maxRows` disagree, `maxRows` wins.
|
|
224
|
+
* @default 2 — the platform's own `rows` default.
|
|
225
|
+
*/
|
|
226
|
+
minRows?: number;
|
|
227
|
+
}
|
|
228
|
+
/** Props for {@link EditableLabel}, the `<label>` naming the editor and the preview. */
|
|
229
|
+
export interface EditableLabelProps extends PrimitivePropsWithRef<'label'> {
|
|
142
230
|
}
|
|
143
231
|
/** Props for {@link EditableSubmitTrigger}, the button that commits the draft. Renders nothing outside edit mode. */
|
|
144
232
|
export interface EditableSubmitTriggerProps extends PrimitivePropsWithRef<'button'> {
|
package/dist/field/Field.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ee=Object.create;var b=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var be=Object.getOwnPropertyNames;var Te=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var Re=(r,e)=>{for(var t in e)b(r,t,{get:e[t],enumerable:!0})},K=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of be(e))!ye.call(r,i)&&i!==t&&b(r,i,{get:()=>e[i],enumerable:!(o=Fe(e,i))||o.enumerable});return r};var f=(r,e,t)=>(t=r!=null?Ee(Te(r)):{},K(e||!r||!r.__esModule?b(t,"default",{value:r,enumerable:!0}):t,r)),Ie=r=>K(b({},"__esModule",{value:!0}),r);var Pe={};Re(Pe,{CHARACTER_COUNT_ANNOUNCE_DELAY_MS:()=>J,FIELD_CHARACTER_COUNT_ATTRIBUTE:()=>I,FIELD_CONTROL_ATTRIBUTE:()=>D,FIELD_CONTROL_SELECTOR:()=>N,FIELD_VALIDITY_CHANGE_EVENT:()=>S,Field:()=>H,FieldCharacterCount:()=>q,FieldDescription:()=>j,FieldError:()=>Y,FieldLabel:()=>G,Fieldset:()=>w,NATIVE_INVALID_FALLBACK_MESSAGE:()=>O,characterCountMessage:()=>g,characterCountVisible:()=>C,collectFieldErrors:()=>X,errorSummaryScope:()=>Q,findFieldControl:()=>L,focusFieldTarget:()=>Z});module.exports=Ie(Pe);var a=f(require("react"),1),V=require("../utils/composeRefs.cjs"),ee=require("../utils/createContext.cjs"),te=require("../utils/liveAnnouncer.cjs"),re=require("../utils/part.cjs"),k=require("../utils/primitive.cjs"),oe=require("../utils/useCallbackRef.cjs");var S="validity-change",y="data-skdx-field",x="data-skdx-field-name",_="data-skdx-field-message",P="data-skdx-field-description",R="data-skdx-field-error",I="data-skdx-field-character-count",J=1e3;function g(r){let e=Math.abs(r),t=e===1?"character":"characters";return r<0?`You have ${e} ${t} too many`:`You have ${e} ${t} remaining`}function C(r,e,t=0){return t<=0?!0:r>=e*t/100}var O="This field is invalid.",D="data-skdx-field-control",N=[`[${D}]`,'input:not([type="hidden"])',"select","textarea",'[role="textbox"]','[role="searchbox"]','[role="combobox"]','[role="listbox"]','[role="radiogroup"]','[role="group"]','[role="slider"]','[role="spinbutton"]','[role="checkbox"]','[role="radio"]','[role="switch"]'].join(", "),Le=new Set(["radiogroup","group"]),Ae=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function z(r){return r==null?[]:(Array.isArray(r)?r:[r]).filter(t=>typeof t=="string"&&t.trim()!=="")}function L(r){for(let e of Array.from(r.querySelectorAll(N)))if(e.getAttribute("aria-hidden")!=="true"&&e.closest(`[${y}]`)===r)return e;return null}function M(r,e){for(let t of Array.from(r.querySelectorAll(e)))if(t.closest(`[${y}]`)===r)return t;return null}function xe(r){if(!r)return;let e=r;return e.type==="checkbox"||e.type==="radio"?e.checked:"value"in r?e.value:r.querySelector('input[aria-hidden="true"]')?.value}function v(r){return r==null||r===!1||r===""?!1:!(Array.isArray(r)&&r.length===0)}function p(r,e,t){t?r.setAttribute(e,""):r.removeAttribute(e)}function _e(r,...e){let t=r.split(/\s+/).filter(Boolean);for(let o of e)o&&!t.includes(o)&&t.push(o);return t.join(" ")}function Q(r){return r.closest("form, skdx-form")??r.parentElement??r}function X(r){return Array.from(r.querySelectorAll(`[${y}][data-invalid]`)).flatMap(t=>{let o=L(t),n=M(t,`[${R}]`)?.textContent?.trim()||t.getAttribute(_)||t.getAttribute(x)||"";return!o?.id||!n?[]:[{id:o.id,message:n}]})}function Z(r,e=document){let t=e.getElementById(r);if(!t)return;let o=t.getAttribute("role"),n=(t.tagName==="FIELDSET"||o!==null&&Le.has(o)?t.querySelector(Ae):null)??t;n.focus(),n.scrollIntoView?.({block:"center"})}var T=class{constructor(e){this.options=e;this.props={};this.root=null;this.form=null;this.control=null;this.baseDescribedBy="";this.runToken=0;this.pending=!1;this.injected=[];this.custom=[];this.characterCount=null;this.handleInput=()=>{let e=this.isOverLimit(this.snapshot.count),t=this.readCount();this.update({dirty:!0,filled:v(this.resolveValue()),count:t,errors:this.composeErrors(t)}),this.scheduleCountAnnouncement(t,e),(this.props.mode==="change"||this.snapshot.errors.length>0)&&this.runValidation()};this.handleFocusOut=()=>{let e=this.readCount();this.update({touched:!0,filled:v(this.resolveValue()),count:e,errors:this.composeErrors(e)}),((this.props.mode??"blur")==="blur"||this.snapshot.errors.length>0)&&this.runValidation()};this.handleSubmit=e=>{if(e.target!==this.form)return;this.markTouched();let t=this.runValidation({silent:!0});if(W(t)){e.preventDefault();return}(t.length>0||this.pending)&&e.preventDefault()};this.snapshot={controlId:e.controlId,errors:[],valid:!0,touched:!1,dirty:!1,filled:!1,count:0}}get state(){return this.snapshot}setProps(e){let t=this.props.value;this.props=e;let o=z(e.errors??null),i=!Me(this.injected,o);i&&(this.injected=o);let n=e.value!==t;if(!i&&!n)return;let s=this.readCount();this.update({count:s,filled:v(this.resolveValue()),errors:this.composeErrors(s)})}setCharacterCount(e){if((this.characterCount?.maxLength??null)===(e?.maxLength??null)&&(this.characterCount?.threshold??0)===(e?.threshold??0))return;this.characterCount=e;let o=this.readCount();this.update({count:o,errors:this.composeErrors(o)})}readCount(){let e=this.resolveValue();return typeof e=="string"?e.length:0}countMessage(e){return(this.props.getCharacterCountMessage??g)(e)}isOverLimit(e){return this.characterCount!==null&&e>this.characterCount.maxLength}composeErrors(e=this.snapshot.count){let t=[...this.injected,...this.custom];return this.characterCount&&this.isOverLimit(e)&&t.push(this.countMessage(this.characterCount.maxLength-e)),t}scheduleCountAnnouncement(e,t){let o=this.characterCount;if(!o)return;if(clearTimeout(this.announceTimer),this.isOverLimit(e)){t||this.options.announce(this.countMessage(o.maxLength-e),"assertive");return}if(!C(e,o.maxLength,o.threshold))return;let i=o.maxLength-e;this.announceTimer=setTimeout(()=>{this.options.announce(this.countMessage(i),"polite")},1e3)}connect(e){this.root=e,e.setAttribute(y,""),e.addEventListener("input",this.handleInput,!0),e.addEventListener("change",this.handleInput,!0),e.addEventListener("focusout",this.handleFocusOut,!0),this.form=e.closest("form"),this.form&&e.ownerDocument.addEventListener("submit",this.handleSubmit,!0),this.sync();let t=this.readCount();this.update({filled:v(this.resolveValue()),count:t,errors:this.composeErrors(t)})}disconnect(){clearTimeout(this.announceTimer);let e=this.root;e&&(e.removeEventListener("input",this.handleInput,!0),e.removeEventListener("change",this.handleInput,!0),e.removeEventListener("focusout",this.handleFocusOut,!0),this.form&&e.ownerDocument.removeEventListener("submit",this.handleSubmit,!0),this.root=null,this.form=null,this.control=null)}sync(){let e=this.root;if(!e)return;let t=L(e);t!==this.control&&(this.control=t,this.baseDescribedBy=t?.getAttribute("aria-describedby")??"");let{name:o}=this.props;o?e.setAttribute(x,o):e.removeAttribute(x);let i=this.snapshot.errors.join(" ");if(i?e.setAttribute(_,i):e.removeAttribute(_),this.applyStateAttributes(e),!t)return;t.id||(t.id=this.options.controlId),t.id!==this.snapshot.controlId&&(this.snapshot={...this.snapshot,controlId:t.id},this.options.onSnapshotChange(this.snapshot));let n=M(e,`[${P}]`)!==null,s=M(e,`[${R}]`)!==null,l=_e(this.baseDescribedBy,n?this.options.descriptionId:void 0,s?this.options.errorId:void 0);l?t.setAttribute("aria-describedby",l):t.removeAttribute("aria-describedby"),this.snapshot.errors.length>0?t.setAttribute("aria-invalid","true"):t.removeAttribute("aria-invalid");let d=e.ownerDocument.getElementById(this.options.labelId)!==null;this.options.grouped&&d?t.setAttribute("aria-labelledby",this.options.labelId):t.getAttribute("aria-labelledby")===this.options.labelId&&t.removeAttribute("aria-labelledby"),this.applyStateAttributes(t)}validate(){return Promise.resolve(this.runValidation()).then(e=>e.length===0)}markTouched(){this.snapshot.touched||this.update({touched:!0})}applyStateAttributes(e){let{errors:t,touched:o,dirty:i,filled:n,count:s}=this.snapshot;p(e,"data-invalid",t.length>0),p(e,"data-valid",t.length===0),p(e,"data-touched",o),p(e,"data-dirty",i),p(e,"data-filled",n),p(e,"data-over-limit",this.isOverLimit(s))}resolveValue(){return this.props.value!==void 0?this.props.value:xe(this.control)}nativeMessage(){let e=this.control;return!e?.validity||e.validity.valid?null:e.validationMessage||this.props.invalidMessage||O}runValidation(e={}){let t=++this.runToken,o=this.props.validate?.(this.resolveValue());return W(o)?(this.pending=!0,Promise.resolve(o).then(i=>t!==this.runToken?this.snapshot.errors:(this.pending=!1,this.commit(i,e)))):this.commit(o,e)}commit(e,t){if(this.custom=z(e),this.custom.length===0&&this.injected.length===0){let l=this.nativeMessage();l&&(this.custom=[l])}let o=this.readCount(),i=this.composeErrors(o),n=this.snapshot.errors.length===0;this.update({errors:i,count:o,filled:v(this.resolveValue())});let s=i[0];return s&&n&&!t.silent&&this.options.announce(s,"assertive"),i}update(e){let t={...this.snapshot,...e,valid:!0};t.valid=t.errors.length===0,!Se(this.snapshot,t)&&(this.snapshot=t,this.sync(),this.options.onSnapshotChange(t),this.root?.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:{valid:t.valid,errors:t.errors,touched:t.touched,dirty:t.dirty,filled:t.filled,count:t.count}})))}};function W(r){return typeof r?.then=="function"}function Me(r,e){return r.length===e.length&&r.every((t,o)=>t===e[o])}function Se(r,e){return r.controlId===e.controlId&&r.valid===e.valid&&r.touched===e.touched&&r.dirty===e.dirty&&r.filled===e.filled&&r.count===e.count&&r.errors.length===e.errors.length&&r.errors.every((t,o)=>t===e.errors[o])}var E=require("react/jsx-runtime"),[ie,c]=(0,ee.createSafeContext)("Field");function ne(r,e,t){let o=a.useId(),i=a.useMemo(()=>({labelId:`${o}label`,descriptionId:`${o}description`,errorId:`${o}error`,controlId:`${o}control`}),[o]),[n,s]=a.useState(()=>({controlId:"",errors:[],valid:!0,touched:!1,dirty:!1,filled:!1,count:0})),l=(0,oe.useCallbackRef)(r.onValidityChange),d=a.useMemo(()=>new T({...i,grouped:e,onSnapshotChange:u=>{s(u);let{controlId:F,...Ce}=u;l(Ce)},announce:te.announce}),[i,e,l]);a.useEffect(()=>{let u=t.current;if(u)return d.connect(u),s(d.state),()=>d.disconnect()},[d,t]),a.useEffect(()=>{d.setProps({validate:r.validate,mode:r.mode,errors:r.errors,value:r.value,name:r.name,getCharacterCountMessage:r.getCharacterCountMessage,invalidMessage:r.invalidMessage}),d.sync()});let m=a.useCallback(u=>d.setCharacterCount(u),[d]);return{...i,controlId:n.controlId||void 0,errors:n.errors,grouped:e,count:n.count,setCharacterCount:m,getCharacterCountMessage:r.getCharacterCountMessage}}var H=a.forwardRef(({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l,...d},m)=>{let h=a.useRef(null),u=ne({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l},!1,h),F=(0,V.useComposedRefs)(m,h);return(0,E.jsx)(ie,{...u,children:(0,E.jsx)(k.Primitive.div,{...d,...(0,re.skdxPart)("field","root",d.className),ref:F})})});H.displayName="Field";var w=a.forwardRef(({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l,...d},m)=>{let h=a.useRef(null),u=ne({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l},!0,h),F=(0,V.useComposedRefs)(m,h);return(0,E.jsx)(ie,{...u,children:(0,E.jsx)(k.Primitive.fieldset,{...d,ref:F})})});w.displayName="Fieldset";var se=f(require("react"),1),U=require("../utils/part.cjs"),B=require("../utils/primitive.cjs");var $=require("react/jsx-runtime"),G=se.forwardRef((r,e)=>{let t=c("FieldLabel");return t.grouped?(0,$.jsx)(B.Primitive.legend,{id:t.labelId,...r,...(0,U.skdxPart)("field","label",r.className),ref:e}):(0,$.jsx)(B.Primitive.label,{id:t.labelId,htmlFor:t.controlId,...r,...(0,U.skdxPart)("field","label",r.className),ref:e})});G.displayName="FieldLabel";var ae=f(require("react"),1),le=require("../utils/part.cjs"),de=require("../utils/primitive.cjs");var ue=require("react/jsx-runtime"),j=ae.forwardRef((r,e)=>{let t=c("FieldDescription");return(0,ue.jsx)(de.Primitive.span,{id:t.descriptionId,[P]:"",...r,...(0,le.skdxPart)("field","description",r.className),ref:e})});j.displayName="FieldDescription";var ce=f(require("react"),1),he=require("../utils/part.cjs"),pe=require("../utils/primitive.cjs");var me=require("react/jsx-runtime"),Y=ce.forwardRef(({children:r,...e},t)=>{let o=c("FieldError");return o.errors.length===0?null:(0,me.jsx)(pe.Primitive.span,{id:o.errorId,[R]:"",...e,...(0,he.skdxPart)("field","error",e.className),ref:t,children:r??o.errors.join(" ")})});Y.displayName="FieldError";var A=f(require("react"),1),fe=require("../utils/part.cjs"),ve=require("../utils/primitive.cjs");var ge=require("react/jsx-runtime"),q=A.forwardRef(({maxLength:r,threshold:e=0,children:t,...o},i)=>{let n=c("FieldCharacterCount"),{setCharacterCount:s}=n;if(A.useEffect(()=>(s({maxLength:r,threshold:e}),()=>s(null)),[s,r,e]),!C(n.count,r,e))return null;let l=r-n.count;return(0,ge.jsx)(ve.Primitive.span,{[I]:"","data-over-limit":l<0?"":void 0,...o,...(0,fe.skdxPart)("field","character-count",o.className),ref:i,children:t??(n.getCharacterCountMessage??g)(l)})});q.displayName="FieldCharacterCount";0&&(module.exports={CHARACTER_COUNT_ANNOUNCE_DELAY_MS,FIELD_CHARACTER_COUNT_ATTRIBUTE,FIELD_CONTROL_ATTRIBUTE,FIELD_CONTROL_SELECTOR,FIELD_VALIDITY_CHANGE_EVENT,Field,FieldCharacterCount,FieldDescription,FieldError,FieldLabel,Fieldset,NATIVE_INVALID_FALLBACK_MESSAGE,characterCountMessage,characterCountVisible,collectFieldErrors,errorSummaryScope,findFieldControl,focusFieldTarget});
|
|
1
|
+
"use strict";var je=Object.create;var D=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var Ke=Object.getOwnPropertyNames;var ze=Object.getPrototypeOf,We=Object.prototype.hasOwnProperty;var Xe=(t,e)=>{for(var r in e)D(t,r,{get:e[r],enumerable:!0})},le=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ke(e))!We.call(t,o)&&o!==r&&D(t,o,{get:()=>e[o],enumerable:!(i=Qe(e,o))||i.enumerable});return t};var b=(t,e,r)=>(r=t!=null?je(ze(t)):{},le(e||!t||!t.__esModule?D(r,"default",{value:t,enumerable:!0}):r,t)),Je=t=>le(D({},"__esModule",{value:!0}),t);var ct={};Xe(ct,{CHARACTER_COUNT_ANNOUNCE_DELAY_MS:()=>me,ERROR_SUMMARY_RESCAN_EVENTS:()=>pe,FIELD_CHARACTER_COUNT_ATTRIBUTE:()=>N,FIELD_CONTROL_ATTRIBUTE:()=>S,FIELD_CONTROL_SELECTOR:()=>V,FIELD_NAME_ATTRIBUTE:()=>g,FIELD_REQUIRED_INDICATOR_ATTRIBUTE:()=>w,FIELD_VALIDITY_CHANGE_EVENT:()=>X,FORM_FIELD_ATTRIBUTE:()=>L,FORM_MESSAGE_ATTRIBUTE:()=>Z,Field:()=>se,FieldCharacterCount:()=>Ye,FieldDescription:()=>H,FieldError:()=>B,FieldLabel:()=>U,FieldProvider:()=>oe,FieldRequiredIndicator:()=>q,FieldRoot:()=>ne,Fieldset:()=>ae,NATIVE_INVALID_FALLBACK_MESSAGE:()=>ee,characterCountMessage:()=>x,characterCountVisible:()=>_,collectFieldErrors:()=>Ee,errorSummaryScope:()=>fe,findFieldControl:()=>k,focusFieldTarget:()=>be,resetFields:()=>Re,useFieldContext:()=>c,validateFields:()=>ve});module.exports=Je(ct);var s=b(require("react"),1),Ve=require("../utils/createContext.cjs"),we=require("../utils/liveAnnouncer.cjs"),ke=require("../utils/part.cjs"),ie=require("../utils/primitive.cjs"),He=require("../utils/useCallbackRef.cjs");var Te=b(require("react"),1),Fe=require("../utils/part.cjs"),ge=require("../utils/primitive.cjs");var X="validity-change",R="data-skdx-field",g="data-skdx-field-name",j="data-skdx-field-message",J="data-skdx-field-description",O="data-skdx-field-error",N="data-skdx-field-character-count",de="data-skdx-field-pending",G="data-skdx-field-resubmit",L="data-skdx-form-field",Z="data-skdx-form-message",pe=["validity-change","invalid","change","blur"],Ze="data-skdx-error-summary",me=1e3;function x(t){let e=Math.abs(t),r=e===1?"character":"characters";return t<0?`You have ${e} ${r} too many`:`You have ${e} ${r} remaining`}function _(t,e,r=0){return r<=0?!0:t>=e*r/100}var ee="This field is invalid.",S="data-skdx-field-control",V=[`[${S}]`,'input:not([type="hidden"])',"select","textarea",'[role="textbox"]','[role="searchbox"]','[role="combobox"]','[role="listbox"]','[role="radiogroup"]','[role="group"]','[role="slider"]','[role="spinbutton"]','[role="checkbox"]','[role="radio"]','[role="switch"]'].join(", "),w="data-skdx-field-required-indicator",et=new Set(["INPUT","SELECT","TEXTAREA"]),tt=new Set(["radiogroup","group"]),rt=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function ue(t){return t==null?[]:(Array.isArray(t)?t:[t]).filter(r=>typeof r=="string"&&r.trim()!=="")}function k(t){for(let e of Array.from(t.querySelectorAll(V)))if(e.getAttribute("aria-hidden")!=="true"&&e.closest(`[${R}]`)===t)return e;return null}function Q(t,e){return K(t,R,e)}function K(t,e,r){for(let i of Array.from(t.querySelectorAll(r)))if(i.closest(`[${e}]`)===t)return i;return null}function it(t){if(!t)return;let e=t;return e.type==="checkbox"||e.type==="radio"?e.checked:"value"in t?e.value:t.querySelector('input[aria-hidden="true"]')?.value}function F(t){return t==null||t===!1||t===""?!1:!(Array.isArray(t)&&t.length===0)}function v(t,e,r){r?t.setAttribute(e,""):t.removeAttribute(e)}function ce(t,...e){let r=t.split(/\s+/).filter(Boolean);for(let i of e)i&&!r.includes(i)&&r.push(i);return r.join(" ")}function fe(t){return t.closest("form, skdx-form")??t.parentElement??t}function ot(t){let e=k(t),i=Q(t,`[${O}]`)?.textContent?.trim()||t.getAttribute(j)||t.getAttribute(g)||"";return!e?.id||!i?[]:[{id:e.id,message:i}]}function nt(t){let e=K(t,L,V);if(!e?.id||e.getAttribute("aria-invalid")!=="true")return[];let i=K(t,L,`[${Z}]:not([hidden])`)?.textContent?.trim()||t.getAttribute(g)||"";return i?[{id:e.id,message:i}]:[]}function Ee(t){return Array.from(t.querySelectorAll(`[${R}][data-invalid], [${L}]`)).flatMap(r=>(r.hasAttribute(R)?ot:nt)(r))}var z="__skdxFieldCheckValidity",W="__skdxFieldReset";async function ve(t){let e=Array.from(t.querySelectorAll(`[${R}]`));return(await Promise.all(e.map(i=>i[z]?.()??!0))).every(Boolean)}function Re(t){for(let e of Array.from(t.querySelectorAll(`[${R}]`)))e[W]?.()}function be(t,e=document){let r=e.getElementById(t);if(!r)return;let i=r.getAttribute("role"),n=(r.tagName==="FIELDSET"||i!==null&&tt.has(i)?r.querySelector(rt):null)??r;n.focus(),n.scrollIntoView?.({block:"center"})}var M=class{constructor(e){this.options=e;this.props={};this.root=null;this.form=null;this.control=null;this.baseDescribedBy="";this.baseLabelledBy="";this.wroteLabelledBy=!1;this.wroteRequired=!1;this.wroteDisabled=!1;this.runToken=0;this.pending=!1;this.injected=[];this.custom=[];this.characterCount=null;this.awaitingSubmit=!1;this.handleInput=()=>{let e=this.isOverLimit(this.snapshot.count),r=this.readCount();this.update({dirty:!0,filled:F(this.resolveValue()),count:r,errors:this.composeErrors(r)}),this.scheduleCountAnnouncement(r,e),(this.props.mode==="change"||this.snapshot.errors.length>0)&&this.scheduleValidation()};this.handleFocusOut=()=>{let e=this.readCount();this.update({touched:!0,filled:F(this.resolveValue()),count:e,errors:this.composeErrors(e)});let r=this.validationTimer!==void 0;clearTimeout(this.validationTimer),this.validationTimer=void 0;let i=this.props.mode??"blur";(r||i==="blur"||this.snapshot.errors.length>0)&&this.runValidation()};this.handleSubmit=e=>{if(e.target!==this.form||this.isEngineResubmit(e))return;this.markTouched();let r=this.runValidation({silent:this.hasErrorSummary()});if(he(r)){e.preventDefault(),this.awaitingSubmit=!0,Promise.resolve(r).then(()=>{this.awaitingSubmit&&(this.awaitingSubmit=!1,this.resubmitIfSettled())});return}(r.length>0||this.pending)&&e.preventDefault()};this.snapshot={controlId:"",errors:[],valid:!0,touched:!1,dirty:!1,filled:!1,count:0,validity:null}}get state(){return this.snapshot}setProps(e){let r=this.props.value;this.props=e;let i=ue(e.errors??null),o=!st(this.injected,i);o&&(this.injected=i);let n=e.value!==r;if(!o&&!n)return;let a=this.readCount();this.update({count:a,filled:F(this.resolveValue()),errors:this.composeErrors(a)})}setCharacterCount(e){if((this.characterCount?.maxLength??null)===(e?.maxLength??null)&&(this.characterCount?.threshold??0)===(e?.threshold??0))return;this.characterCount=e;let i=this.readCount();this.update({count:i,errors:this.composeErrors(i)})}readCount(){let e=this.resolveValue();return typeof e=="string"?e.length:0}countMessage(e){return(this.props.getCharacterCountMessage??x)(e)}isOverLimit(e){return this.characterCount!==null&&e>this.characterCount.maxLength}composeErrors(e=this.snapshot.count){let r=[...this.injected,...this.custom];return this.characterCount&&this.isOverLimit(e)&&r.push(this.countMessage(this.characterCount.maxLength-e)),r}scheduleCountAnnouncement(e,r){let i=this.characterCount;if(!i)return;if(clearTimeout(this.announceTimer),this.isOverLimit(e)){r||this.options.announce(this.countMessage(i.maxLength-e),"assertive");return}if(!_(e,i.maxLength,i.threshold))return;let o=i.maxLength-e;this.announceTimer=setTimeout(()=>{this.options.announce(this.countMessage(o),"polite")},1e3)}connect(e){this.root=e,e.setAttribute(R,""),Object.defineProperty(e,z,{value:()=>this.validate(),configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(e,W,{value:()=>this.reset(),configurable:!0,enumerable:!1,writable:!0}),e.addEventListener("input",this.handleInput,!0),e.addEventListener("change",this.handleInput,!0),e.addEventListener("focusout",this.handleFocusOut,!0),this.form=e.closest("form"),this.form&&e.ownerDocument.addEventListener("submit",this.handleSubmit,!0),this.sync();let r=this.readCount();this.update({filled:F(this.resolveValue()),count:r,errors:this.composeErrors(r)})}disconnect(){clearTimeout(this.announceTimer),clearTimeout(this.validationTimer),this.validationTimer=void 0,this.awaitingSubmit=!1;let e=this.root;e&&(e.removeEventListener("input",this.handleInput,!0),e.removeEventListener("change",this.handleInput,!0),e.removeEventListener("focusout",this.handleFocusOut,!0),this.form&&e.ownerDocument.removeEventListener("submit",this.handleSubmit,!0),delete e[z],delete e[W],this.root=null,this.form=null,this.control=null)}sync(){let e=this.root;if(!e)return;let r=k(e);r!==this.control&&(this.control=r,this.baseDescribedBy=r?.getAttribute("aria-describedby")??"",this.baseLabelledBy=r?.getAttribute("aria-labelledby")??"",this.wroteLabelledBy=!1,this.wroteRequired=!1,this.wroteDisabled=!1);let{name:i}=this.props;i?e.setAttribute(g,i):e.removeAttribute(g);let o=this.snapshot.errors.join(" ");if(o?e.setAttribute(j,o):e.removeAttribute(j),this.applyStateAttributes(e),!r)return;r.id||(r.id=this.options.controlId),r.id!==this.snapshot.controlId&&(this.snapshot={...this.snapshot,controlId:r.id,validity:this.readValidity()},this.options.onSnapshotChange(this.snapshot));let n=Q(e,`[${J}]`)!==null,a=Q(e,`[${O}]`)!==null,l=ce(this.baseDescribedBy,n?this.options.descriptionId:void 0,a?this.options.errorId:void 0);l?r.setAttribute("aria-describedby",l):r.removeAttribute("aria-describedby"),this.snapshot.errors.length>0?r.setAttribute("aria-invalid","true"):r.removeAttribute("aria-invalid");let m=e.ownerDocument.getElementById(this.options.labelId)!==null;this.options.grouped&&m?(r.setAttribute("aria-labelledby",ce(this.baseLabelledBy,this.options.labelId)),this.wroteLabelledBy=!0):this.wroteLabelledBy&&(this.baseLabelledBy?r.setAttribute("aria-labelledby",this.baseLabelledBy):r.removeAttribute("aria-labelledby"),this.wroteLabelledBy=!1),this.applyConstraintState(r),this.applyStateAttributes(r)}applyConstraintState(e){let r=et.has(e.tagName),i=this.props.required===!0,o=this.props.disabled===!0;i?(r?e.setAttribute("required",""):e.setAttribute("aria-required","true"),this.wroteRequired=!0):this.wroteRequired&&(e.removeAttribute(r?"required":"aria-required"),this.wroteRequired=!1),o?(r?e.setAttribute("disabled",""):e.setAttribute("aria-disabled","true"),this.wroteDisabled=!0):this.wroteDisabled&&(e.removeAttribute(r?"disabled":"aria-disabled"),this.wroteDisabled=!1)}validate(){return Promise.resolve(this.runValidation()).then(e=>e.length===0)}reset(){this.injected=[],this.custom=[],this.pending=!1,this.awaitingSubmit=!1,this.runToken++,clearTimeout(this.announceTimer),clearTimeout(this.validationTimer),this.validationTimer=void 0,this.markPending(!1);let e=this.readCount();this.update({touched:!1,dirty:!1,count:e,filled:F(this.resolveValue()),errors:this.composeErrors(e)}),this.sync()}markTouched(){this.snapshot.touched||this.update({touched:!0})}applyStateAttributes(e){let{errors:r,touched:i,dirty:o,filled:n,count:a}=this.snapshot;v(e,"data-invalid",r.length>0),v(e,"data-valid",r.length===0),v(e,"data-touched",i),v(e,"data-dirty",o),v(e,"data-filled",n),v(e,"data-over-limit",this.isOverLimit(a)),v(e,"data-disabled",this.props.disabled===!0)}resolveValue(){return this.props.value!==void 0?this.props.value:it(this.control)}readValidity(){return this.control?.validity??null}markPending(e){this.root&&v(this.root,de,e)}nativeMessage(){let e=this.control;return!e?.validity||e.validity.valid?null:e.validationMessage||this.props.invalidMessage||ee}runValidation(e={}){let r=++this.runToken,i=this.props.validate?.(this.resolveValue());return he(i)?(this.pending=!0,this.markPending(!0),Promise.resolve(i).then(o=>r!==this.runToken?this.snapshot.errors:(this.pending=!1,this.markPending(!1),this.commit(o,e)))):this.commit(i,e)}commit(e,r){this.custom=ue(e);let i=this.nativeMessage();i&&!this.custom.includes(i)&&!this.injected.includes(i)&&(this.custom=[...this.custom,i]);let o=this.readCount(),n=this.composeErrors(o),a=this.snapshot.errors.length===0;this.update({errors:n,count:o,filled:F(this.resolveValue())});let l=n[0];return l&&a&&!r.silent&&this.options.announce(l,"assertive"),n}update(e){let r={...this.snapshot,...e,valid:!0,validity:this.readValidity()};r.valid=r.errors.length===0,!at(this.snapshot,r)&&(this.snapshot=r,this.sync(),this.options.onSnapshotChange(r),this.root?.dispatchEvent(new CustomEvent(X,{bubbles:!0,composed:!0,detail:{valid:r.valid,errors:r.errors,touched:r.touched,dirty:r.dirty,filled:r.filled,count:r.count,validity:r.validity}})))}scheduleValidation(){clearTimeout(this.validationTimer),this.validationTimer=void 0;let e=this.props.mode==="change"?this.props.validationDebounceTime??0:0;if(e<=0){this.runValidation();return}this.validationTimer=setTimeout(()=>{this.validationTimer=void 0,this.runValidation()},e)}hasErrorSummary(){return this.form?.querySelector(`[${Ze}]`)!=null}isEngineResubmit(e){return this.form?.hasAttribute(G)?(this.snapshot.errors.length>0&&e.preventDefault(),!0):!1}resubmitIfSettled(){let e=this.form;if(!(!e||typeof e.requestSubmit!="function")&&!e.querySelector(`[${de}]`)&&!e.querySelector(`[${R}][data-invalid]`)){e.setAttribute(G,"");try{e.requestSubmit()}finally{e.removeAttribute(G)}}}};function he(t){return typeof t?.then=="function"}function st(t,e){return t.length===e.length&&t.every((r,i)=>r===e[i])}function at(t,e){return t.controlId===e.controlId&&t.valid===e.valid&&t.touched===e.touched&&t.dirty===e.dirty&&t.filled===e.filled&&t.count===e.count&&t.validity===e.validity&&t.errors.length===e.errors.length&&t.errors.every((r,i)=>r===e.errors[i])}var ye=require("react/jsx-runtime"),H=Te.forwardRef(({as:t="span",...e},r)=>{let i=c("FieldDescription"),o=ge.Primitive[t];return(0,ye.jsx)(o,{id:i.descriptionId,[J]:"",...e,...(0,Fe.skdxPart)("field","description",e.className),ref:r})});H.displayName="FieldDescription";var Ce=b(require("react"),1),Ie=require("../utils/part.cjs"),Ae=require("../utils/primitive.cjs");var Le=require("react/jsx-runtime"),B=Ce.forwardRef(({as:t="span",children:e,...r},i)=>{let o=c("FieldError");if(o.errors.length===0)return null;let n=Ae.Primitive[t];return(0,Le.jsx)(n,{id:o.errorId,[O]:"",...r,...(0,Ie.skdxPart)("field","error",r.className),ref:i,children:e??o.errors.join(" ")})});B.displayName="FieldError";var _e=b(require("react"),1),te=require("../utils/part.cjs"),y=require("../utils/primitive.cjs");var re=require("react/jsx-runtime");function xe(t){!t.defaultPrevented&&t.detail>1&&t.preventDefault()}var U=_e.forwardRef((t,e)=>{let r=c("FieldLabel");return r.grouped?(0,re.jsx)(y.Primitive.legend,{id:r.labelId,...t,...(0,te.skdxPart)("field","label",t.className),ref:e,onMouseDown:(0,y.composeEventHandlers)(t.onMouseDown,xe)}):(0,re.jsx)(y.Primitive.label,{id:r.labelId,htmlFor:r.controlId,...t,...(0,te.skdxPart)("field","label",t.className),ref:e,onMouseDown:(0,y.composeEventHandlers)(t.onMouseDown,xe)})});U.displayName="FieldLabel";var Se=b(require("react"),1),Pe=require("../utils/part.cjs"),De=require("../utils/primitive.cjs");var Me=require("react/jsx-runtime"),q=Se.forwardRef(({children:t,...e},r)=>c("FieldRequiredIndicator").required?(0,Me.jsx)(De.Primitive.span,{[w]:"",...e,...(0,Pe.skdxPart)("field","required-indicator",e.className),ref:r,children:t??"*"}):null);q.displayName="FieldRequiredIndicator";var p=require("react/jsx-runtime");function Oe({label:t,description:e,children:r}){return(0,p.jsxs)(p.Fragment,{children:[t?(0,p.jsxs)(U,{children:[t,(0,p.jsx)(q,{})]}):null,r,e?(0,p.jsx)(H,{children:e}):null,(0,p.jsx)(B,{})]})}var h=b(require("react"),1);var lt=new Set(["input","select","textarea"]),dt=new Set(["textbox","searchbox","combobox","listbox","radiogroup","group","slider","spinbutton","checkbox","radio","switch"]);function ut(t){let e=t.props;return e["aria-hidden"]===!0||e["aria-hidden"]==="true"?!1:e[S]!==void 0||typeof e.role=="string"&&dt.has(e.role)?!0:typeof t.type!="string"||!lt.has(t.type)?!1:!(t.type==="input"&&e.type==="hidden")}function $(t,e,r){if(r.found||!t)return t;if(Array.isArray(t))return h.Children.map(t,o=>$(o,e,r));if(!h.isValidElement(t))return t;let i=t;return i.type===h.Fragment?h.cloneElement(i,void 0,$(i.props.children,e,r)):ut(i)?(r.found=!0,typeof i.props.id=="string"&&i.props.id!==""?(r.controlId=i.props.id,i):(r.controlId=e,h.cloneElement(i,{id:e}))):typeof i.type=="string"&&i.props.children!==void 0?h.cloneElement(i,void 0,$(i.props.children,e,r)):t}function Ne(t,e){let r={controlId:void 0,found:!1};return{children:$(t,e,r),controlId:r.controlId}}var C=require("react/jsx-runtime"),[oe,c]=(0,Ve.createSafeContext)("Field");function Be(t,e,r,i){let o=s.useId(),n=s.useMemo(()=>({labelId:`${o}label`,descriptionId:`${o}description`,errorId:`${o}error`,controlId:`${o}control`}),[o]),a=Ne(i,n.controlId),[l,m]=s.useState(()=>({controlId:"",errors:[],valid:!0,touched:!1,dirty:!1,filled:!1,count:0,validity:null})),T=(0,He.useCallbackRef)(t.onValidityChange),d=s.useMemo(()=>new M({...n,grouped:e,onSnapshotChange:u=>{m(u);let{controlId:P,...A}=u;T(A)},announce:we.announce}),[n,e,T]);s.useEffect(()=>{let u=r.current;if(u)return d.connect(u),m(d.state),()=>d.disconnect()},[d,r]),s.useEffect(()=>{d.setProps({validate:t.validate,mode:t.mode,errors:t.errors,value:t.value,name:t.name,required:t.required,disabled:t.disabled,getCharacterCountMessage:t.getCharacterCountMessage,invalidMessage:t.invalidMessage,validationDebounceTime:t.validationDebounceTime}),d.sync()});let f=s.useCallback(u=>d.setCharacterCount(u),[d]),I=s.useMemo(()=>({checkValidity:()=>d.validate(),reset:()=>d.reset()}),[d]);return{context:{...n,controlId:l.controlId||a.controlId,errors:l.errors,grouped:e,required:t.required===!0,count:l.count,setCharacterCount:f,getCharacterCountMessage:t.getCharacterCountMessage},children:a.children,handle:I}}function Ue(t,e,r){s.useImperativeHandle(t,()=>e.current?Object.assign(e.current,r):r)}var ne=s.forwardRef(({validate:t,mode:e,errors:r,value:i,name:o,required:n,disabled:a,onValidityChange:l,getCharacterCountMessage:m,invalidMessage:T,validationDebounceTime:d,...f},I)=>{let E=s.useRef(null),{context:u,children:P,handle:A}=Be({validate:t,mode:e,errors:r,value:i,name:o,required:n,disabled:a,onValidityChange:l,getCharacterCountMessage:m,invalidMessage:T,validationDebounceTime:d},!1,E,f.children);return Ue(I,E,A),(0,C.jsx)(oe,{...u,children:(0,C.jsx)(ie.Primitive.div,{...f,...(0,ke.skdxPart)("field","root",f.className),ref:E,children:P})})});ne.displayName="FieldRoot";var se=s.forwardRef(({label:t,description:e,children:r,...i},o)=>(0,C.jsx)(ne,{...i,ref:o,children:Oe({label:t,description:e,children:r})}));se.displayName="Field";var ae=s.forwardRef(({validate:t,mode:e,errors:r,value:i,name:o,required:n,disabled:a,onValidityChange:l,getCharacterCountMessage:m,invalidMessage:T,validationDebounceTime:d,...f},I)=>{let E=s.useRef(null),{context:u,children:P,handle:A}=Be({validate:t,mode:e,errors:r,value:i,name:o,required:n,disabled:a,onValidityChange:l,getCharacterCountMessage:m,invalidMessage:T,validationDebounceTime:d},!0,E,f.children);return Ue(I,E,A),(0,C.jsx)(oe,{...u,children:(0,C.jsx)(ie.Primitive.fieldset,{...f,ref:E,children:P})})});ae.displayName="Fieldset";var Y=b(require("react"),1),qe=require("../utils/part.cjs"),$e=require("../utils/primitive.cjs");var Ge=require("react/jsx-runtime"),Ye=Y.forwardRef(({maxLength:t,threshold:e=0,children:r,...i},o)=>{let n=c("FieldCharacterCount"),{setCharacterCount:a}=n;if(Y.useEffect(()=>(a({maxLength:t,threshold:e}),()=>a(null)),[a,t,e]),!_(n.count,t,e))return null;let l=t-n.count;return(0,Ge.jsx)($e.Primitive.span,{[N]:"","data-over-limit":l<0?"":void 0,...i,...(0,qe.skdxPart)("field","character-count",i.className),ref:o,children:r??(n.getCharacterCountMessage??x)(l)})});Ye.displayName="FieldCharacterCount";0&&(module.exports={CHARACTER_COUNT_ANNOUNCE_DELAY_MS,ERROR_SUMMARY_RESCAN_EVENTS,FIELD_CHARACTER_COUNT_ATTRIBUTE,FIELD_CONTROL_ATTRIBUTE,FIELD_CONTROL_SELECTOR,FIELD_NAME_ATTRIBUTE,FIELD_REQUIRED_INDICATOR_ATTRIBUTE,FIELD_VALIDITY_CHANGE_EVENT,FORM_FIELD_ATTRIBUTE,FORM_MESSAGE_ATTRIBUTE,Field,FieldCharacterCount,FieldDescription,FieldError,FieldLabel,FieldProvider,FieldRequiredIndicator,FieldRoot,Fieldset,NATIVE_INVALID_FALLBACK_MESSAGE,characterCountMessage,characterCountVisible,collectFieldErrors,errorSummaryScope,findFieldControl,focusFieldTarget,resetFields,useFieldContext,validateFields});
|
package/dist/field/Field.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { FieldContextValue, FieldProps, FieldsetProps } from './types.cjs';
|
|
2
|
+
import type { FieldContextValue, FieldProps, FieldRootProps, FieldsetProps } from './types.cjs';
|
|
3
3
|
export declare const FieldProvider: {
|
|
4
4
|
(props: FieldContextValue & {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -7,27 +7,65 @@ export declare const FieldProvider: {
|
|
|
7
7
|
displayName: string;
|
|
8
8
|
}, useFieldContext: (consumerName: string) => FieldContextValue;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* `
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
10
|
+
* Wires one form control to its label, description, error: generates ids,
|
|
11
|
+
* `aria-describedby`, `aria-invalid`, and state hooks
|
|
12
|
+
* (`data-valid`/`data-invalid`/`data-touched`/`data-dirty`/`data-filled`).
|
|
13
|
+
*
|
|
14
|
+
* Any control works (skdx, native `<input>`, third-party) because Field
|
|
15
|
+
* discovers it in its subtree, not via cooperation. Owns validation model:
|
|
16
|
+
* `validate` (sync/async), `mode`, server `errors`, native constraint
|
|
17
|
+
* validation as fallback.
|
|
18
|
+
*
|
|
19
|
+
* `Field` (recipe below) adds `FieldAnatomy`. For manual composition and
|
|
20
|
+
* `FieldCharacterCount`, use `@skdx/react/primitives/field`'s `FieldRoot`.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```tsx
|
|
24
|
-
*
|
|
24
|
+
* import { FieldDescription, FieldError, FieldLabel, FieldRoot, Fieldset } from '@skdx/react/primitives/field';
|
|
25
|
+
*
|
|
26
|
+
* <FieldRoot validate={(value) => (value ? null : 'Enter your name')}>
|
|
25
27
|
* <FieldLabel>Name</FieldLabel>
|
|
26
28
|
* <TextField />
|
|
27
29
|
* <FieldDescription>As shown on your passport.</FieldDescription>
|
|
28
30
|
* <FieldError />
|
|
31
|
+
* </FieldRoot>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const FieldRoot: React.ForwardRefExoticComponent<Omit<FieldRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
/**
|
|
36
|
+
* One form control with its label, help text and error message, wired
|
|
37
|
+
* together.
|
|
38
|
+
*
|
|
39
|
+
* Always draws the derived anatomy from `label`/`description`: the label with
|
|
40
|
+
* the required marker *inside* it — where it joins the control's accessible
|
|
41
|
+
* name rather than sitting beside it — the control (`children`), the help
|
|
42
|
+
* text, and the error. `children` is the control, never a switch: this
|
|
43
|
+
* component never inspects what it was given.
|
|
44
|
+
*
|
|
45
|
+
* Everything {@link FieldRoot} owns still applies — the validation model, the
|
|
46
|
+
* `aria-describedby`/`aria-invalid` wiring, the state hooks. Deriving only
|
|
47
|
+
* makes the wiring automatic.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <Field
|
|
52
|
+
* label="Name"
|
|
53
|
+
* description="As shown on your passport."
|
|
54
|
+
* required
|
|
55
|
+
* validate={(value) => (value ? null : 'Enter your name')}
|
|
56
|
+
* >
|
|
57
|
+
* <TextField />
|
|
29
58
|
* </Field>
|
|
30
59
|
* ```
|
|
60
|
+
*
|
|
61
|
+
* @example Validating on demand, through a ref typed as `FieldHandle`:
|
|
62
|
+
* ```tsx
|
|
63
|
+
* const ref = React.useRef<FieldHandle>(null);
|
|
64
|
+
* <Field ref={ref} label="Name" validate={required}><TextField /></Field>;
|
|
65
|
+
* if (await ref.current?.checkValidity()) goToNextStep();
|
|
66
|
+
* // …and afterwards, on a form that stays mounted:
|
|
67
|
+
* ref.current?.reset();
|
|
68
|
+
* ```
|
|
31
69
|
*/
|
|
32
70
|
export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
71
|
/**
|
|
@@ -35,15 +73,29 @@ export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "re
|
|
|
35
73
|
* `<legend>` — the grouping a `RadioGroup` or a set of checkboxes needs,
|
|
36
74
|
* since a `<label for>` may not point at a `[role="radiogroup"]`. Same props,
|
|
37
75
|
* same validation model, same state hooks; the group control is named with
|
|
38
|
-
* `aria-labelledby` instead of `for`/`id`.
|
|
76
|
+
* `aria-labelledby` instead of `for`/`id`. Renders `children` verbatim.
|
|
77
|
+
*
|
|
78
|
+
* An alternative root rather than a leaf part, so it is public alongside
|
|
79
|
+
* `Field`. It derives nothing — compose the label, control and error yourself
|
|
80
|
+
* from `@skdx/react/primitives/field`.
|
|
39
81
|
*
|
|
40
82
|
* @example
|
|
41
83
|
* ```tsx
|
|
84
|
+
* import { Fieldset } from '@skdx/react';
|
|
85
|
+
* import { FieldDescription, FieldError, FieldLabel, FieldRoot, Fieldset } from '@skdx/react/primitives/field';
|
|
86
|
+
*
|
|
42
87
|
* <Fieldset validate={(value) => (value ? null : 'Choose a plan')}>
|
|
43
88
|
* <FieldLabel>Plan</FieldLabel>
|
|
44
89
|
* <RadioGroup>…</RadioGroup>
|
|
45
90
|
* <FieldError />
|
|
46
91
|
* </Fieldset>
|
|
47
92
|
* ```
|
|
93
|
+
*
|
|
94
|
+
* @example Validating on demand, through a ref typed as `FieldsetHandle`:
|
|
95
|
+
* ```tsx
|
|
96
|
+
* const ref = React.useRef<FieldsetHandle>(null);
|
|
97
|
+
* <Fieldset ref={ref} validate={required}>…</Fieldset>;
|
|
98
|
+
* if (await ref.current?.checkValidity()) goToNextStep();
|
|
99
|
+
* ```
|
|
48
100
|
*/
|
|
49
101
|
export declare const Fieldset: React.ForwardRefExoticComponent<Omit<FieldsetProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
package/dist/field/Field.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { FieldContextValue, FieldProps, FieldsetProps } from './types.js';
|
|
2
|
+
import type { FieldContextValue, FieldProps, FieldRootProps, FieldsetProps } from './types.js';
|
|
3
3
|
export declare const FieldProvider: {
|
|
4
4
|
(props: FieldContextValue & {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -7,27 +7,65 @@ export declare const FieldProvider: {
|
|
|
7
7
|
displayName: string;
|
|
8
8
|
}, useFieldContext: (consumerName: string) => FieldContextValue;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* `
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
10
|
+
* Wires one form control to its label, description, error: generates ids,
|
|
11
|
+
* `aria-describedby`, `aria-invalid`, and state hooks
|
|
12
|
+
* (`data-valid`/`data-invalid`/`data-touched`/`data-dirty`/`data-filled`).
|
|
13
|
+
*
|
|
14
|
+
* Any control works (skdx, native `<input>`, third-party) because Field
|
|
15
|
+
* discovers it in its subtree, not via cooperation. Owns validation model:
|
|
16
|
+
* `validate` (sync/async), `mode`, server `errors`, native constraint
|
|
17
|
+
* validation as fallback.
|
|
18
|
+
*
|
|
19
|
+
* `Field` (recipe below) adds `FieldAnatomy`. For manual composition and
|
|
20
|
+
* `FieldCharacterCount`, use `@skdx/react/primitives/field`'s `FieldRoot`.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```tsx
|
|
24
|
-
*
|
|
24
|
+
* import { FieldDescription, FieldError, FieldLabel, FieldRoot, Fieldset } from '@skdx/react/primitives/field';
|
|
25
|
+
*
|
|
26
|
+
* <FieldRoot validate={(value) => (value ? null : 'Enter your name')}>
|
|
25
27
|
* <FieldLabel>Name</FieldLabel>
|
|
26
28
|
* <TextField />
|
|
27
29
|
* <FieldDescription>As shown on your passport.</FieldDescription>
|
|
28
30
|
* <FieldError />
|
|
31
|
+
* </FieldRoot>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const FieldRoot: React.ForwardRefExoticComponent<Omit<FieldRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
/**
|
|
36
|
+
* One form control with its label, help text and error message, wired
|
|
37
|
+
* together.
|
|
38
|
+
*
|
|
39
|
+
* Always draws the derived anatomy from `label`/`description`: the label with
|
|
40
|
+
* the required marker *inside* it — where it joins the control's accessible
|
|
41
|
+
* name rather than sitting beside it — the control (`children`), the help
|
|
42
|
+
* text, and the error. `children` is the control, never a switch: this
|
|
43
|
+
* component never inspects what it was given.
|
|
44
|
+
*
|
|
45
|
+
* Everything {@link FieldRoot} owns still applies — the validation model, the
|
|
46
|
+
* `aria-describedby`/`aria-invalid` wiring, the state hooks. Deriving only
|
|
47
|
+
* makes the wiring automatic.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <Field
|
|
52
|
+
* label="Name"
|
|
53
|
+
* description="As shown on your passport."
|
|
54
|
+
* required
|
|
55
|
+
* validate={(value) => (value ? null : 'Enter your name')}
|
|
56
|
+
* >
|
|
57
|
+
* <TextField />
|
|
29
58
|
* </Field>
|
|
30
59
|
* ```
|
|
60
|
+
*
|
|
61
|
+
* @example Validating on demand, through a ref typed as `FieldHandle`:
|
|
62
|
+
* ```tsx
|
|
63
|
+
* const ref = React.useRef<FieldHandle>(null);
|
|
64
|
+
* <Field ref={ref} label="Name" validate={required}><TextField /></Field>;
|
|
65
|
+
* if (await ref.current?.checkValidity()) goToNextStep();
|
|
66
|
+
* // …and afterwards, on a form that stays mounted:
|
|
67
|
+
* ref.current?.reset();
|
|
68
|
+
* ```
|
|
31
69
|
*/
|
|
32
70
|
export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
71
|
/**
|
|
@@ -35,15 +73,29 @@ export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "re
|
|
|
35
73
|
* `<legend>` — the grouping a `RadioGroup` or a set of checkboxes needs,
|
|
36
74
|
* since a `<label for>` may not point at a `[role="radiogroup"]`. Same props,
|
|
37
75
|
* same validation model, same state hooks; the group control is named with
|
|
38
|
-
* `aria-labelledby` instead of `for`/`id`.
|
|
76
|
+
* `aria-labelledby` instead of `for`/`id`. Renders `children` verbatim.
|
|
77
|
+
*
|
|
78
|
+
* An alternative root rather than a leaf part, so it is public alongside
|
|
79
|
+
* `Field`. It derives nothing — compose the label, control and error yourself
|
|
80
|
+
* from `@skdx/react/primitives/field`.
|
|
39
81
|
*
|
|
40
82
|
* @example
|
|
41
83
|
* ```tsx
|
|
84
|
+
* import { Fieldset } from '@skdx/react';
|
|
85
|
+
* import { FieldDescription, FieldError, FieldLabel, FieldRoot, Fieldset } from '@skdx/react/primitives/field';
|
|
86
|
+
*
|
|
42
87
|
* <Fieldset validate={(value) => (value ? null : 'Choose a plan')}>
|
|
43
88
|
* <FieldLabel>Plan</FieldLabel>
|
|
44
89
|
* <RadioGroup>…</RadioGroup>
|
|
45
90
|
* <FieldError />
|
|
46
91
|
* </Fieldset>
|
|
47
92
|
* ```
|
|
93
|
+
*
|
|
94
|
+
* @example Validating on demand, through a ref typed as `FieldsetHandle`:
|
|
95
|
+
* ```tsx
|
|
96
|
+
* const ref = React.useRef<FieldsetHandle>(null);
|
|
97
|
+
* <Fieldset ref={ref} validate={required}>…</Fieldset>;
|
|
98
|
+
* if (await ref.current?.checkValidity()) goToNextStep();
|
|
99
|
+
* ```
|
|
48
100
|
*/
|
|
49
101
|
export declare const Fieldset: React.ForwardRefExoticComponent<Omit<FieldsetProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|