@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as u from"react";import{createSafeContext as Oe}from"../utils/createContext.js";import{announce as Be}from"../utils/liveAnnouncer.js";import{skdxPart as Ae}from"../utils/part.js";import{Primitive as Ee}from"../utils/primitive.js";import{useControllableState as te}from"../utils/useControllableState.js";var E=new Date(2024,0,7),V=new Map;function ee(e,t){let r=V.get(e);if(r)return r;let a=t();return V.set(e,a),a}function y(e){return e??new Intl.DateTimeFormat().resolvedOptions().locale}function We(e,t="long"){let r=y(e);return ee(`m|${r}|${t}`,()=>{let a=new Intl.DateTimeFormat(r,{month:t,timeZone:"UTC"});return Array.from({length:12},(n,o)=>a.format(Date.UTC(2024,o,15)))})}function H(e,t=0,r="short"){let a=y(e),n=ee(`w|${a}|${r}`,()=>{let s=new Intl.DateTimeFormat(a,{weekday:r});return Array.from({length:7},(d,l)=>s.format(new Date(E.getFullYear(),E.getMonth(),E.getDate()+l)))}),o=(t%7+7)%7;return n.slice(o).concat(n.slice(0,o))}function Y(e){try{let t=new Intl.Locale(y(e)),r=(t.getWeekInfo?.()??t.weekInfo)?.firstDay;if(typeof r=="number")return r%7}catch{}return 0}function $(e,t){return e.toLocaleDateString(y(t),{month:"long",year:"numeric"})}function M(e,t){return e.toLocaleDateString(y(t),{weekday:"long",year:"numeric",month:"long",day:"numeric"})}function Ie(){V.clear()}import{jsx as ne}from"react/jsx-runtime";function oe(e,t){return new Date(e,t+1,0).getDate()}function R(e){return new Date(e.getFullYear(),e.getMonth(),1)}function f(e,t){let r=e.getDate(),a=new Date(e.getFullYear(),e.getMonth(),1);a.setMonth(a.getMonth()+t);let n=oe(a.getFullYear(),a.getMonth());return a.setDate(Math.min(r,n)),a}function K(e,t){return f(e,t*12)}function D(e,t){let r=new Date(e);return r.setDate(r.getDate()+t),r}function h(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function x(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function T(e,t){let r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),a=(r.getDay()-t+7)%7;return r.setDate(r.getDate()-a),r}function ie(e,t){return D(T(e,t),6)}function C(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function se(e,t,r,a){let n=C(e).getTime();return!!(t&&n<C(t).getTime()||r&&n>C(r).getTime()||a?.(e))}function L(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${a}`}function G(e,t){if(x(e,t))return e;let r=oe(t.getFullYear(),t.getMonth());return new Date(t.getFullYear(),t.getMonth(),Math.min(e.getDate(),r))}function de(e,t=0){let r=T(R(e),t),a=[],n=r;for(let o=0;o<6;o++){let s=[];for(let d=0;d<7;d++)s.push({date:n,outsideMonth:!x(n,e)}),n=D(n,1);a.push(s)}return a}function P(e){return e!==null&&!Array.isArray(e)&&!(e instanceof Date)}function ae(e){return e==="multiple"?[]:null}function le(e,t){return e===null?!1:Array.isArray(e)?e.some(r=>h(r,t)):P(e)?U(e,t)!==void 0:h(e,t)}function U(e,t){let r=C(t).getTime(),a=C(e.start).getTime();if(e.end===null)return r===a?"start":void 0;let n=C(e.end).getTime();if(!(r<a||r>n))return r===a?"start":r===n?"end":"middle"}function Ve(e,t,r){if(e==="single")return r;if(e==="multiple"){let n=Array.isArray(t)?t:[],o=n.filter(s=>!h(s,r));return o.length!==n.length?o:[...n,r].sort((s,d)=>s.getTime()-d.getTime())}let a=P(t)&&t.end===null?t:void 0;return a?C(r).getTime()<C(a.start).getTime()?{start:r,end:a.start}:{start:a.start,end:r}:{start:r,end:null}}function Ye(e,t){return P(e)?e.end===null?`${M(e.start,t)} selected as the range start. Select an end date.`:`Range selected, ${M(e.start,t)} to ${M(e.end,t)}.`:Array.isArray(e)?`${e.length} ${e.length===1?"date":"dates"} selected.`:""}var[$e,c]=Oe("Calendar");function Tt(){return c("useCalendarContext")}var _=u.createContext(null);function F(e){return u.useContext(_)?.gridMonth??e}function re(e){return e===null?null:Array.isArray(e)?e[0]??null:P(e)?e.start:e}var Ke=u.forwardRef(({selectionMode:e="single",value:t,defaultValue:r,onValueChange:a,month:n,defaultMonth:o,onMonthChange:s,numberOfMonths:d=1,locale:l,minDate:m,maxDate:i,weekStartsOn:b,disabled:A,isDateUnavailable:be,getSelectionAnnouncement:z,...J},ve)=>{let[w=null,Q]=te({prop:t,defaultProp:r??ae(e),onChange:p=>a?.(p??ae(e))}),X=R(o??re(w)??new Date),[v=X,j]=te({prop:n,defaultProp:X,onChange:s}),[Ne,Se]=u.useState(()=>re(w)??v),N=b??Y(l),He=u.useMemo(()=>{let p=H(l,N,"short"),g=H(l,N,"long");return p.map((S,Fe)=>({short:S,long:g[Fe]}))},[l,N]),Te=u.useMemo(()=>Array.from({length:Math.max(1,d)},(p,g)=>f(v,g)),[v,d]),Le=u.useCallback(p=>{let g=Ve(e,w,p);Q(g);let S=(z??Ye)(g,l);S&&Be(S)},[e,w,Q,l,z]),Ge=u.useCallback(p=>j(R(p)),[j]);return ne($e,{value:w,selectionMode:e,month:v,months:Te,focusedDate:Ne,weekStartsOn:N,locale:l,weekDayNames:He,minDate:m,maxDate:i,disabled:A,isDateUnavailable:be,onValueChange:Le,onMonthChange:Ge,setFocusedDate:Se,children:ne(Ee.div,{...J,...Ae("calendar","root",J.className),ref:ve})})});Ke.displayName="Calendar";import*as me from"react";import{skdxPart as Ue}from"../utils/part.js";import{Primitive as _e}from"../utils/primitive.js";import{jsx as qe}from"react/jsx-runtime";var ce=me.forwardRef((e,t)=>qe(_e.div,{...e,...Ue("calendar","header",e.className),ref:t}));ce.displayName="CalendarHeader";import*as ue from"react";import{skdxPart as Ze}from"../utils/part.js";import{Primitive as ze}from"../utils/primitive.js";import{jsx as Je}from"react/jsx-runtime";var fe=ue.forwardRef(({monthOffset:e=0,children:t,...r},a)=>{let n=c("CalendarHeading"),o=n.months[e]??n.month;return Je(ze.div,{...r,...Ze("calendar","heading",r.className),ref:a,children:t??$(o,n.locale)})});fe.displayName="CalendarHeading";import*as pe from"react";import{skdxPart as Qe}from"../utils/part.js";import{composeEventHandlers as Xe,Primitive as je}from"../utils/primitive.js";import{jsx as et}from"react/jsx-runtime";var Ce=pe.forwardRef((e,t)=>{let r=c("CalendarPreviousButton");return et(je.button,{type:"button","aria-label":"Previous month",...e,...Qe("calendar","previous-button",e.className),ref:t,onClick:Xe(e.onClick,()=>{let a=f(r.month,-1);r.onMonthChange(a),r.setFocusedDate(G(r.focusedDate,a))})})});Ce.displayName="CalendarPreviousButton";import*as De from"react";import{skdxPart as tt}from"../utils/part.js";import{composeEventHandlers as at,Primitive as rt}from"../utils/primitive.js";import{jsx as nt}from"react/jsx-runtime";var ge=De.forwardRef((e,t)=>{let r=c("CalendarNextButton");return nt(rt.button,{type:"button","aria-label":"Next month",...e,...tt("calendar","next-button",e.className),ref:t,onClick:at(e.onClick,()=>{let a=f(r.month,1);r.onMonthChange(a),r.setFocusedDate(G(r.focusedDate,a))})})});ge.displayName="CalendarNextButton";import*as W from"react";import{directionalKey as ot,useDirection as it}from"../utils/direction.js";import{skdxPart as st}from"../utils/part.js";import{composeEventHandlers as dt,Primitive as lt}from"../utils/primitive.js";import{jsx as ye}from"react/jsx-runtime";var he=W.forwardRef(({monthOffset:e=0,...t},r)=>{let a=c("CalendarGrid"),n=it(),o=a.months[e]??a.month,s=W.useMemo(()=>({gridMonth:o}),[o]),d=m=>{a.months.some(i=>x(m,i))||a.onMonthChange(R(m)),a.setFocusedDate(m),requestAnimationFrame(()=>{let i=L(m);document.querySelector(`[data-skdx-calendar-cell="${i}"]`)?.focus()})},l=m=>{let i;switch(ot(m.key,m.currentTarget,n)){case"ArrowLeft":i=D(a.focusedDate,-1);break;case"ArrowRight":i=D(a.focusedDate,1);break;case"ArrowUp":i=D(a.focusedDate,-7);break;case"ArrowDown":i=D(a.focusedDate,7);break;case"Home":i=T(a.focusedDate,a.weekStartsOn);break;case"End":i=ie(a.focusedDate,a.weekStartsOn);break;case"PageUp":i=m.shiftKey?K(a.focusedDate,-1):f(a.focusedDate,-1);break;case"PageDown":i=m.shiftKey?K(a.focusedDate,1):f(a.focusedDate,1);break;default:return}m.preventDefault(),d(i)};return ye(_.Provider,{value:s,children:ye(lt.div,{role:"grid","aria-multiselectable":a.selectionMode!=="single",...t,...st("calendar","grid",t.className),ref:r,onKeyDown:dt(t.onKeyDown,l)})})});he.displayName="CalendarGrid";import*as ke from"react";import{skdxPart as Dt}from"../utils/part.js";import{Primitive as gt}from"../utils/primitive.js";import*as xe from"react";import{skdxPart as mt}from"../utils/part.js";import{Primitive as ct}from"../utils/primitive.js";import{jsx as ut}from"react/jsx-runtime";var k=xe.forwardRef((e,t)=>ut(ct.div,{role:"row",...e,...mt("calendar","row",e.className),ref:t}));k.displayName="CalendarRow";import*as Pe from"react";import{skdxPart as ft}from"../utils/part.js";import{Primitive as pt}from"../utils/primitive.js";import{jsx as Ct}from"react/jsx-runtime";var I=Pe.forwardRef((e,t)=>Ct(pt.div,{role:"columnheader",...e,...ft("calendar","week-day",e.className),ref:t}));I.displayName="CalendarWeekDay";import{jsx as q}from"react/jsx-runtime";var we=ke.forwardRef(({children:e,...t},r)=>{let a=c("CalendarGridHead");return q(gt.div,{role:"rowgroup",...t,...Dt("calendar","grid-head",t.className),ref:r,children:e??q(k,{children:a.weekDayNames.map(n=>q(I,{"aria-label":n.long,children:n.short},n.long))})})});we.displayName="CalendarGridHead";import*as B from"react";import{skdxPart as kt}from"../utils/part.js";import{Primitive as wt}from"../utils/primitive.js";import*as Me from"react";import{skdxPart as yt}from"../utils/part.js";import{composeEventHandlers as ht,Primitive as xt}from"../utils/primitive.js";import{jsx as Pt}from"react/jsx-runtime";var O=Me.forwardRef(({date:e,...t},r)=>{let a=c("CalendarCell"),n=F(a.month),o=L(e),s=!x(e,n),d=s||se(e,a.minDate,a.maxDate,a.disabled),l=!d&&(a.isDateUnavailable?.(o)??!1),m=le(a.value,e),i=P(a.value)?U(a.value,e):void 0,b=h(e,new Date),A=h(e,a.focusedDate);return Pt(xt.button,{type:"button",role:"gridcell","aria-selected":m,"aria-disabled":l||void 0,"data-skdx-calendar-cell":o,"data-state":m?"selected":void 0,"data-today":b?"":void 0,"data-outside-month":s?"":void 0,"data-disabled":d?"":void 0,"data-unavailable":l?"":void 0,"data-range-start":i==="start"?"":void 0,"data-range-middle":i==="middle"?"":void 0,"data-range-end":i==="end"?"":void 0,tabIndex:A?0:-1,disabled:d,...t,...yt("calendar","cell",t.className),ref:r,onClick:ht(t.onClick,()=>{if(!d){if(l){a.setFocusedDate(e);return}a.onValueChange(e),a.setFocusedDate(e)}}),children:t.children??e.getDate()})});O.displayName="CalendarCell";import{jsx as Z}from"react/jsx-runtime";var Re=B.forwardRef(({children:e,...t},r)=>{let a=c("CalendarGridBody"),n=F(a.month),o=B.useMemo(()=>de(n,a.weekStartsOn),[n,a.weekStartsOn]);return Z(wt.div,{role:"rowgroup",...t,...kt("calendar","grid-body",t.className),ref:r,children:e??o.map(s=>Z(k,{children:s.map(({date:d})=>Z(O,{date:d},d.toISOString()))},s[0].date.toISOString()))})});Re.displayName="CalendarGridBody";export{Ke as Calendar,O as CalendarCell,he as CalendarGrid,Re as CalendarGridBody,_ as CalendarGridContext,we as CalendarGridHead,ce as CalendarHeader,fe as CalendarHeading,ge as CalendarNextButton,Ce as CalendarPreviousButton,$e as CalendarProvider,k as CalendarRow,I as CalendarWeekDay,D as addDays,f as addMonths,K as addYears,re as anchorOf,G as clampToMonth,Ie as clearLocaleNameCache,ae as emptySelection,ie as endOfWeek,M as formatDateLabel,$ as formatMonthLabel,oe as getDaysInMonth,Y as getLocaleWeekStartsOn,We as getMonthNames,de as getVisibleWeeks,H as getWeekDayNames,se as isDateDisabled,P as isDateRange,le as isDateSelected,h as isSameDay,x as isSameMonth,Ve as nextSelection,U as rangePositionOf,y as resolveLocale,Ye as selectionAnnouncement,R as startOfMonth,T as startOfWeek,C as stripTime,L as toISODateString,Tt as useCalendarContext,c as useCalendarContextInternal,F as useCalendarGridMonth};
|
|
1
|
+
import*as d from"react";import{useComposedRefs as tn}from"../utils/composeRefs.js";import{createSafeContext as an}from"../utils/createContext.js";import{toCalendarValue as Ot,toDate as K}from"../utils/dateValue.js";import{isDevMode as nn}from"../utils/is-dev-mode.js";import{announce as at}from"../utils/liveAnnouncer.js";import{skdxPart as rn}from"../utils/part.js";import{Primitive as on}from"../utils/primitive.js";import{useControllableState as we}from"../utils/useControllableState.js";import*as Wt from"react";import*as X from"react";import{directionalKey as da,useDirection as la}from"../utils/direction.js";import{skdxPart as ma}from"../utils/part.js";import{composeEventHandlers as ca,Primitive as ua}from"../utils/primitive.js";var Te=new Date(2024,0,7),Se=new Map;function ht(e,t){let n=Se.get(e);if(n)return n;let a=t();return Se.set(e,a),a}function F(e){return e??new Intl.DateTimeFormat().resolvedOptions().locale}function Le(e,t="long"){let n=F(e);return ht(`m|${n}|${t}`,()=>{let a=new Intl.DateTimeFormat(n,{month:t,timeZone:"UTC"});return Array.from({length:12},(r,o)=>a.format(Date.UTC(2024,o,15)))})}function ce(e,t=0,n="short"){let a=F(e),r=ht(`w|${a}|${n}`,()=>{let s=new Intl.DateTimeFormat(a,{weekday:n});return Array.from({length:7},(i,l)=>s.format(new Date(Te.getFullYear(),Te.getMonth(),Te.getDate()+l)))}),o=(t%7+7)%7;return r.slice(o).concat(r.slice(0,o))}function He(e){try{let t=new Intl.Locale(F(e)),n=(t.getWeekInfo?.()??t.weekInfo)?.firstDay;if(typeof n=="number")return n%7}catch{}return 0}function V(e,t){return e.toLocaleDateString(F(t),{month:"long",year:"numeric"})}function E(e,t){return new Intl.NumberFormat(F(t),{useGrouping:!1}).format(e)}function Ee(e,t,n){return`${E(e,n)} \u2013 ${E(t,n)}`}function O(e,t){return e.toLocaleDateString(F(t),{weekday:"long",year:"numeric",month:"long",day:"numeric"})}function sa(){Se.clear()}import{jsx as pt}from"react/jsx-runtime";var Ae=X.forwardRef(({monthOffset:e=0,...t},n)=>{let a=f("CalendarGrid"),r=la(),o=a.months[e]??a.month,s=X.useMemo(()=>({gridMonth:o}),[o]),i=X.useContext(re),l=h=>{let c=Ye(h,a.minDate,a.maxDate);a.months.some(y=>T(c,y))||a.onMonthChange(Y(c)),a.setFocusedDate(c),requestAnimationFrame(()=>{let y=fe(c);(i?.current??document).querySelector(`[data-skdx-calendar-cell="${y}"]:not([disabled])`)?.focus()})},D=h=>{let c;switch(da(h.key,h.currentTarget,r)){case"ArrowLeft":c=A(a.focusedDate,-1);break;case"ArrowRight":c=A(a.focusedDate,1);break;case"ArrowUp":c=A(a.focusedDate,-7);break;case"ArrowDown":c=A(a.focusedDate,7);break;case"Home":c=ue(a.focusedDate,a.weekStartsOn);break;case"End":c=Dt(a.focusedDate,a.weekStartsOn);break;case"PageUp":c=h.shiftKey?Ve(a.focusedDate,-1):k(a.focusedDate,-1);break;case"PageDown":c=h.shiftKey?Ve(a.focusedDate,1):k(a.focusedDate,1);break;default:return}h.preventDefault(),l(c)};return a.view!=="day"?null:pt(Ge.Provider,{value:s,children:pt(ua.div,{role:"grid","aria-label":t["aria-label"]||t["aria-labelledby"]?void 0:V(o,a.locale),"aria-multiselectable":a.selectionMode!=="single","aria-readonly":a.readOnly||void 0,"aria-disabled":a.disabled||void 0,...t,...ma("calendar","grid",t.className),ref:n,onKeyDown:ca(t.onKeyDown,D)})})});Ae.displayName="CalendarGrid";import*as De from"react";import{skdxPart as ka}from"../utils/part.js";import{Primitive as Ma}from"../utils/primitive.js";import*as ge from"react";import{toDate as fa}from"../utils/dateValue.js";import{skdxPart as ga}from"../utils/part.js";import{composeEventHandlers as ha,Primitive as pa}from"../utils/primitive.js";import{jsx as Da}from"react/jsx-runtime";var We=ge.forwardRef(({date:e,...t},n)=>{let a=f("CalendarCell"),r=he(a.month),o=ge.useMemo(()=>fa(e,"date")??r,[e,r]),s=fe(o),i=!T(o,r),l=a.disabled||i&&!a.outsideDaySelectable||Ct(o,a.minDate,a.maxDate,a.isDateDisabled),D=!l&&(a.isDateUnavailable?.(o)??!1),h=yt(a.value,o),c=j(a.value)?Fe(a.value,o):void 0,y=I(o,a.today),M=I(o,a.focusedDate);return Da(pa.button,{type:"button",role:"gridcell","aria-selected":h,"aria-disabled":D||void 0,"aria-current":y?"date":void 0,"aria-label":O(o,a.locale),"data-skdx-calendar-cell":s,"data-state":h?"selected":void 0,"data-today":y?"":void 0,"data-outside-month":i?"":void 0,"data-disabled":l?"":void 0,"data-unavailable":D?"":void 0,"data-range-start":c==="start"?"":void 0,"data-range-middle":c==="middle"?"":void 0,"data-range-end":c==="end"?"":void 0,tabIndex:M?0:-1,disabled:l,...t,...ga("calendar","cell",t.className),ref:n,onClick:ha(t.onClick,()=>{if(!l){if(D){a.setFocusedDate(o);return}a.onValueChange(o),a.setFocusedDate(o),i&&!a.months.some(_=>T(o,_))&&a.onMonthChange(o)}}),children:t.children??o.getDate()})});We.displayName="CalendarCell";import*as bt from"react";import{skdxPart as Ca}from"../utils/part.js";import{Primitive as ya}from"../utils/primitive.js";import{jsx as ba}from"react/jsx-runtime";var oe=bt.forwardRef((e,t)=>ba(ya.div,{role:"row",...e,...Ca("calendar","row",e.className),ref:t}));oe.displayName="CalendarRow";import*as pe from"react";import{toDate as wa}from"../utils/dateValue.js";import{skdxPart as xa}from"../utils/part.js";import{Primitive as va}from"../utils/primitive.js";import{jsx as Ra}from"react/jsx-runtime";var Oe=pe.forwardRef(({date:e,children:t,...n},a)=>{let r=f("CalendarWeekNumber"),o=pe.useMemo(()=>wa(e,"date")??r.month,[e,r.month]),s=wt(o);return Ra(va.div,{role:"rowheader","aria-label":`Week ${s}`,...n,...xa("calendar","week-number",n.className),ref:a,children:t??s})});Oe.displayName="CalendarWeekNumber";import{jsx as Ie,jsxs as Pa}from"react/jsx-runtime";var Be=De.forwardRef(({children:e,...t},n)=>{let a=f("CalendarGridBody"),r=he(a.month),o=De.useMemo(()=>xt(r,a.weekStartsOn),[r,a.weekStartsOn]);return Ie(Ma.div,{role:"rowgroup",...t,...ka("calendar","grid-body",t.className),ref:n,children:e??o.map(s=>Pa(oe,{children:[a.weekNumbers?Ie(Oe,{date:s[0].date}):null,s.map(({date:i})=>Ie(We,{date:i},i.toISOString()))]},s[0].date.toISOString()))})});Be.displayName="CalendarGridBody";import*as kt from"react";import{skdxPart as Va}from"../utils/part.js";import{Primitive as Aa}from"../utils/primitive.js";import*as vt from"react";import{skdxPart as Na}from"../utils/part.js";import{Primitive as Ta}from"../utils/primitive.js";import{jsx as Sa}from"react/jsx-runtime";var Ue=vt.forwardRef((e,t)=>Sa(Ta.div,{role:"columnheader",...e,...Na("calendar","week-day",e.className),ref:t}));Ue.displayName="CalendarWeekDay";import*as Rt from"react";import{skdxPart as La}from"../utils/part.js";import{Primitive as Ha}from"../utils/primitive.js";import{jsx as Ea}from"react/jsx-runtime";var $e=Rt.forwardRef((e,t)=>Ea(Ha.div,{role:"columnheader","aria-label":"Week number",...e,...La("calendar","week-number-header",e.className),ref:t}));$e.displayName="CalendarWeekNumberHeader";import{jsx as Ke,jsxs as Ya}from"react/jsx-runtime";var _e=kt.forwardRef(({children:e,...t},n)=>{let a=f("CalendarGridHead");return Ke(Aa.div,{role:"rowgroup",...t,...Va("calendar","grid-head",t.className),ref:n,children:e??Ya(oe,{children:[a.weekNumbers?Ke($e,{}):null,a.weekDayNames.map(r=>Ke(Ue,{"aria-label":r.long,children:r.short},r.long))]})})});_e.displayName="CalendarGridHead";import*as Mt from"react";import{skdxPart as Ga}from"../utils/part.js";import{Primitive as Wa}from"../utils/primitive.js";import{jsx as Fa}from"react/jsx-runtime";var qe=Mt.forwardRef((e,t)=>Fa(Wa.div,{...e,...Ga("calendar","header",e.className),ref:t}));qe.displayName="CalendarHeader";import*as St from"react";import{skdxPart as Pt}from"../utils/part.js";import{composeEventHandlers as Oa,Primitive as Nt}from"../utils/primitive.js";import{jsx as Tt}from"react/jsx-runtime";var Ce=St.forwardRef(({monthOffset:e=0,children:t,...n},a)=>{let r=f("CalendarHeading"),o=r.months[e]??r.month,s=r.view==="day"?o:r.focusedDate,i=G(s,r.view,r.locale),l=R[R.indexOf(r.view)+1];return l!==void 0&&R.indexOf(r.view)<R.indexOf(r.maxView)?Tt(Nt.button,{type:"button",...n,...Pt("calendar","heading",n.className),ref:a,onClick:Oa(n.onClick,()=>r.setView(l)),children:t??i}):Tt(Nt.div,{...n,...Pt("calendar","heading",n.className),ref:a,children:t??i})});Ce.displayName="CalendarHeading";import*as Lt from"react";import{skdxPart as Ia}from"../utils/part.js";import{composeEventHandlers as Ba,Primitive as Ua}from"../utils/primitive.js";import{jsx as Ka}from"react/jsx-runtime";var $a={day:"Next month",month:"Next year",year:"Next 20 years"},ze=Lt.forwardRef((e,t)=>{let n=f("CalendarNextButton");return Ka(Ua.button,{type:"button","aria-label":$a[n.view],...e,...Ia("calendar","next-button",e.className),ref:t,onClick:Ba(e.onClick,()=>n.pageMonths(1))})});ze.displayName="CalendarNextButton";import*as Ht from"react";import{skdxPart as _a}from"../utils/part.js";import{composeEventHandlers as qa,Primitive as za}from"../utils/primitive.js";import{jsx as Ja}from"react/jsx-runtime";var Za={day:"Previous month",month:"Previous year",year:"Previous 20 years"},Ze=Ht.forwardRef((e,t)=>{let n=f("CalendarPreviousButton");return Ja(za.button,{type:"button","aria-label":Za[n.view],...e,..._a("calendar","previous-button",e.className),ref:t,onClick:qa(e.onClick,()=>n.pageMonths(-1))})});Ze.displayName="CalendarPreviousButton";import*as U from"react";import{directionalKey as Qa,useDirection as Xa}from"../utils/direction.js";import{announce as ja}from"../utils/liveAnnouncer.js";import{skdxPart as Qe}from"../utils/part.js";import{composeEventHandlers as Et,Primitive as ie}from"../utils/primitive.js";import{jsx as B}from"react/jsx-runtime";function Je(){return 4}function Vt(e,t){let n=f(t),a=U.useContext(re),r=Xa(),o=e,s=e==="month"?1:12,i=e==="month"?12:ee,l=n.focusedDate,D=e==="month"?l.getMonth():l.getFullYear()-tt(l.getFullYear()),{locale:h,minDate:c,maxDate:y,isDateDisabled:M,today:_,value:q}=n,b=$(q),se=U.useMemo(()=>{let x=Le(h,"short"),u=l.getFullYear();return Array.from({length:i},(te,C)=>{let z=e==="month"?et(l,new Date(u,C,1)):k(l,(C-D)*s),w=e==="month"?u:z.getFullYear(),ve=e==="month"?new Date(w,C,1):new Date(w,0,1),Re=e==="month"?new Date(w,C,ye(w,C)):new Date(w,11,31),ae=Z=>Z!==null&&Z.getFullYear()===w&&(e==="year"||Z.getMonth()===C);return{date:z,key:e==="month"?`${w}-${C}`:String(w),text:e==="month"?x[C]:E(w,h),label:e==="month"?V(new Date(w,C,1),h):E(w,h),refused:!Yt(ve,Re,c,y,M),selected:ae(b),today:ae(_)}})},[e,i,s,l,D,h,c,y,M,b,_]),de=x=>{let u=k(l,x*s),te=G(l,o,h),C=G(u,o,h);n.setFocusedDate(u),C!==te&&ja(C),requestAnimationFrame(()=>{let z=e==="month"?`${u.getFullYear()}-${u.getMonth()}`:String(u.getFullYear());(a?.current??document).querySelector(`[data-skdx-calendar-view-cell="${z}"]`)?.focus({preventScroll:!0})})};return{context:n,cells:se,focusedIndex:D,handleKeyDown:x=>{let u;switch(Qa(x.key,x.currentTarget,r)){case"ArrowLeft":u=-1;break;case"ArrowRight":u=1;break;case"ArrowUp":u=-Je();break;case"ArrowDown":u=Je();break;case"Home":u=-D;break;case"End":u=i-1-D;break;case"PageUp":u=-i*(x.shiftKey?10:1);break;case"PageDown":u=i*(x.shiftKey?10:1);break;default:return}x.preventDefault(),u!==0&&de(u)}}}function At({cells:e,focusedIndex:t,navigate:n}){let a=[],r=Je();for(let o=0;o<e.length;o+=r)a.push(e.slice(o,o+r));return B(ie.div,{role:"rowgroup",children:a.map((o,s)=>B(ie.div,{role:"row",children:o.map((i,l)=>{let D=s*r+l;return B(ie.button,{type:"button",role:"gridcell","aria-disabled":i.refused||void 0,"aria-selected":i.selected,"aria-current":i.today?"date":void 0,"aria-label":i.label,"data-skdx-calendar-view-cell":i.key,"data-state":i.selected?"selected":void 0,"data-today":i.today?"":void 0,"data-disabled":i.refused?"":void 0,tabIndex:D===t?0:-1,...Qe("calendar","view-cell"),onClick:()=>{i.refused||n(i.date)},children:i.text},i.key)})},o[0].key))})}var Xe=U.forwardRef(({children:e,...t},n)=>{let{context:a,cells:r,focusedIndex:o,handleKeyDown:s}=Vt("month","CalendarMonthGrid");return a.view!=="month"?null:B(ie.div,{role:"grid","aria-label":t["aria-label"]||t["aria-labelledby"]?void 0:G(a.focusedDate,"month",a.locale),"aria-readonly":a.readOnly||void 0,"aria-disabled":a.disabled||void 0,...t,...Qe("calendar","month-grid",t.className),ref:n,onKeyDown:Et(t.onKeyDown,s),children:e??B(At,{cells:r,focusedIndex:o,navigate:a.navigateToUnit})})});Xe.displayName="CalendarMonthGrid";var je=U.forwardRef(({children:e,...t},n)=>{let{context:a,cells:r,focusedIndex:o,handleKeyDown:s}=Vt("year","CalendarYearGrid");return a.view!=="year"?null:B(ie.div,{role:"grid","aria-label":t["aria-label"]||t["aria-labelledby"]?void 0:G(a.focusedDate,"year",a.locale),"aria-readonly":a.readOnly||void 0,"aria-disabled":a.disabled||void 0,...t,...Qe("calendar","year-grid",t.className),ref:n,onKeyDown:Et(t.onKeyDown,s),children:e??B(At,{cells:r,focusedIndex:o,navigate:a.navigateToUnit})})});je.displayName="CalendarYearGrid";import{Fragment as en,jsx as v,jsxs as be}from"react/jsx-runtime";var Gt=({dir:e})=>v("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none","aria-hidden":"true",focusable:"false",children:v("path",{d:e==="left"?"M10 3 5 8l5 5":"M6 3l5 5-5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ft=()=>{let{months:e}=f("CalendarAnatomy"),t=e.length>1;return be(en,{children:[be(qe,{children:[v(Ze,{children:v(Gt,{dir:"left"})}),t?null:v(Ce,{}),v(ze,{children:v(Gt,{dir:"right"})})]}),e.map((n,a)=>be(Wt.Fragment,{children:[t?v(Ce,{monthOffset:a}):null,be(Ae,{monthOffset:a,children:[v(_e,{}),v(Be,{})]})]},n.toISOString())),v(Xe,{}),v(je,{})]})};import{jsx as xe}from"react/jsx-runtime";function ye(e,t){return new Date(e,t+1,0).getDate()}function Y(e){return new Date(e.getFullYear(),e.getMonth(),1)}function k(e,t){let n=e.getDate(),a=new Date(e.getFullYear(),e.getMonth(),1);a.setMonth(a.getMonth()+t);let r=ye(a.getFullYear(),a.getMonth());return a.setDate(Math.min(n,r)),a}function Ve(e,t){return k(e,t*12)}function A(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n}function I(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function T(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function ue(e,t){let n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),a=(n.getDay()-t+7)%7;return n.setDate(n.getDate()-a),n}function Dt(e,t){return A(ue(e,t),6)}function g(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Ct(e,t,n,a){let r=g(e).getTime();return!!(t&&r<g(t).getTime()||n&&r>g(n).getTime()||a?.(e))}function Ye(e,t,n){return t&&g(e).getTime()<g(t).getTime()?t:n&&g(e).getTime()>g(n).getTime()?n:e}function sn(e,t){return{disabled:e??!1,isDateDisabled:t}}var nt=!1;function ao(){nt=!1}function dn(e,t){!e||nt||!(e.getUTCHours()===0&&e.getUTCMinutes()===0&&e.getUTCSeconds()===0&&e.getUTCMilliseconds()===0)||e.getDate()===e.getUTCDate()&&e.getMonth()===e.getUTCMonth()||(nt=!0,nn()&&console.warn(`[skdx] Calendar: \`${t}\` was given ${e.toISOString()}, which is midnight UTC and therefore ${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")} in this time zone \u2014 a different day from the one the string says. A selection here is a local wall-clock date, never an instant: build it as \`new Date(year, monthIndex, day)\` rather than \`new Date('YYYY-MM-DD')\`, which the platform reads as UTC.`))}function wt(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);let n=new Date(t.getFullYear(),0,4);return n.setDate(n.getDate()-(n.getDay()+6)%7+3),1+Math.round((t.getTime()-n.getTime())/(10080*60*1e3))}function fe(e){let t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${a}`}function et(e,t){if(T(e,t))return e;let n=ye(t.getFullYear(),t.getMonth());return new Date(t.getFullYear(),t.getMonth(),Math.min(e.getDate(),n))}var R=["day","month","year"],ee=20;function It(e,t,n){let a=R.indexOf(t),r=Math.max(a,R.indexOf(n));return R[Math.min(Math.max(R.indexOf(e),a),r)]}function tt(e){return Math.floor(e/ee)*ee}function Yt(e,t,n,a,r){let o=n&&g(n)>g(e)?g(n):g(e),s=a&&g(a)<g(t)?g(a):g(t);if(o.getTime()>s.getTime())return!1;if(!r)return!0;for(let i=o;i.getTime()<=s.getTime();i=A(i,1))if(!r(i))return!0;return!1}function G(e,t,n){if(t==="day")return V(e,n);if(t==="month")return E(e.getFullYear(),n);let a=tt(e.getFullYear());return Ee(a,a+ee-1,n)}function xt(e,t=0){let n=ue(Y(e),t),a=[],r=n;for(let o=0;o<6;o++){let s=[];for(let i=0;i<7;i++)s.push({date:r,outsideMonth:!T(r,e)}),r=A(r,1);a.push(s)}return a}function j(e){return e!==null&&!Array.isArray(e)&&!(e instanceof Date)}function Bt(e){return e==="multiple"?[]:null}function yt(e,t){return e===null?!1:Array.isArray(e)?e.some(n=>I(n,t)):j(e)?Fe(e,t)!==void 0:I(e,t)}function Fe(e,t){let n=g(t).getTime(),a=g(e.start).getTime();if(e.end===null)return n===a?"start":void 0;let r=g(e.end).getTime();if(!(n<a||n>r))return n===a?"start":n===r?"end":"middle"}function ln(e,t,n){if(e==="single")return n;if(e==="multiple"){let r=Array.isArray(t)?t:[],o=r.filter(s=>!I(s,n));return o.length!==r.length?o:[...r,n].sort((s,i)=>s.getTime()-i.getTime())}let a=j(t)&&t.end===null?t:void 0;return a?g(n).getTime()<g(a.start).getTime()?{start:n,end:a.start}:{start:a.start,end:n}:{start:n,end:null}}function mn(e,t){return j(e)?e.end===null?`${O(e.start,t)} selected as the range start. Select an end date.`:`Range selected, ${O(e.start,t)} to ${O(e.end,t)}.`:Array.isArray(e)?`${e.length} ${e.length===1?"date":"dates"} selected.`:""}var[cn,f]=an("Calendar");function no(){return f("useCalendarContext")}var Ge=d.createContext(null);function he(e){return d.useContext(Ge)?.gridMonth??e}var re=d.createContext(null);function $(e){return e===null?null:Array.isArray(e)?e[0]??null:j(e)?e.start:e}var un=d.forwardRef(({selectionMode:e="single",value:t,defaultValue:n,onValueChange:a,month:r,defaultMonth:o,onMonthChange:s,focusedDate:i,defaultFocusedDate:l,onFocusChange:D,view:h,defaultView:c="day",minView:y="day",maxView:M="year",onViewChange:_,numberOfMonths:q=1,locale:b,minDate:se,maxDate:de,weekStartsOn:rt,pageBehavior:x="visible",weekNumbers:u=!1,today:te,readOnly:C=!1,disabled:z,outsideDaySelectable:w=!1,isDateDisabled:ve,isDateUnavailable:Re,getSelectionAnnouncement:ae,getMonthAnnouncement:Z,children:Ut,...ot},$t)=>{let{disabled:ke,isDateDisabled:Kt}=sn(z,ve),it=d.useRef(null),_t=tn($t,it),qt=d.useMemo(()=>Ot(t,e,"value"),[t,e]),zt=d.useMemo(()=>Ot(n,e,"defaultValue"),[n,e]),Zt=d.useMemo(()=>K(r,"month")??void 0,[r]),Jt=d.useMemo(()=>K(o,"defaultMonth")??void 0,[o]),Me=d.useMemo(()=>K(se,"minDate")??void 0,[se]),Pe=d.useMemo(()=>K(de,"maxDate")??void 0,[de]),Qt=d.useMemo(()=>K(te,"today")??void 0,[te]),[P=null,st]=we({prop:qt,defaultProp:zt??Bt(e),onChange:m=>a?.(m??Bt(e))}),[Xt]=d.useState(()=>new Date),dt=Qt??Xt;dn($(P),"value");let lt=Y(Jt??$(P)??dt),[W=lt,S]=we({prop:Zt,defaultProp:lt,onChange:s}),jt=d.useMemo(()=>K(i,"focusedDate")??void 0,[i]),mt=d.useMemo(()=>K(l,"defaultFocusedDate")??void 0,[l]),[J=mt??$(P)??W,ct]=we({prop:jt,defaultProp:mt??$(P)??W,onChange:D}),L=d.useCallback(m=>{let p=Ye(m,Me,Pe);I(p,J)||ct(p)},[J,ct,Me,Pe]),[ea=c,ut]=we({prop:h,defaultProp:c,onChange:_}),N=It(ea,y,M),Ne=d.useCallback(m=>{let p=It(m,y,M);p!==N&&ut(p)},[N,y,M,ut]),le=rt??He(b),ta=d.useMemo(()=>{let m=ce(b,le,"short"),p=ce(b,le,"long");return m.map((H,me)=>({short:H,long:p[me]}))},[b,le]),ne=d.useMemo(()=>Array.from({length:Math.max(1,q)},(m,p)=>k(W,p)),[W,q]),aa=d.useCallback(m=>{if(C||ke)return;let p=ln(e,P,m);st(p);let H=(ae??mn)(p,b);H&&at(H)},[C,ke,e,P,st,b,ae]),na=d.useCallback(m=>S(Y(m)),[S]),ra=d.useCallback(m=>{if(N!=="day"){let ia=N==="month"?12:12*ee,gt=k(J,m*ia);L(gt),at(G(gt,N,b));return}let p=x==="single"?1:Math.max(1,q),H=k(W,m*p);S(Y(H)),L(et(J,H));let me=(Z??V)(H,b);me&&at(me)},[N,x,q,W,S,J,L,Z,b]),oa=d.useCallback(m=>{L(m),ne.some(p=>T(m,p))||S(Y(m)),Ne(R[R.indexOf(N)-1]??"day")},[L,ne,S,Ne,N]),Q=d.useMemo(()=>{let m=$(P);return m?g(m).getTime():null},[P]),ft=d.useRef(Q);return d.useEffect(()=>{if(Q===null||Q===ft.current)return;ft.current=Q;let m=new Date(Q);ne.some(p=>T(m,p))||(L(m),S(Y(m)))},[Q,ne,S,L]),xe(cn,{value:P,selectionMode:e,month:W,months:ne,focusedDate:J,today:dt,weekStartsOn:le,weekNumbers:u,locale:b,weekDayNames:ta,minDate:Me,maxDate:Pe,readOnly:C,disabled:ke,outsideDaySelectable:w,isDateDisabled:Kt,isDateUnavailable:Re,onValueChange:aa,onMonthChange:na,pageMonths:ra,setFocusedDate:L,view:N,minView:y,maxView:M,setView:Ne,navigateToUnit:oa,children:xe(on.div,{...ot,...rn("calendar","root",ot.className),ref:_t,children:xe(re.Provider,{value:it,children:Ut??xe(Ft,{})})})})});un.displayName="Calendar";export{R as CALENDAR_VIEWS,ee as CALENDAR_YEAR_PAGE,un as Calendar,We as CalendarCell,Ae as CalendarGrid,Be as CalendarGridBody,Ge as CalendarGridContext,_e as CalendarGridHead,qe as CalendarHeader,Ce as CalendarHeading,Xe as CalendarMonthGrid,ze as CalendarNextButton,Ze as CalendarPreviousButton,cn as CalendarProvider,re as CalendarRootContext,oe as CalendarRow,Ue as CalendarWeekDay,Oe as CalendarWeekNumber,$e as CalendarWeekNumberHeader,je as CalendarYearGrid,A as addDays,k as addMonths,Ve as addYears,$ as anchorOf,Ye as clampToDateRange,et as clampToMonth,It as clampView,sa as clearLocaleNameCache,Bt as emptySelection,Dt as endOfWeek,O as formatDateLabel,V as formatMonthLabel,G as formatViewPageLabel,E as formatYear,Ee as formatYearRange,ye as getDaysInMonth,wt as getISOWeek,He as getLocaleWeekStartsOn,Le as getMonthNames,xt as getVisibleWeeks,ce as getWeekDayNames,Yt as hasAvailableDate,Ct as isDateDisabled,j as isDateRange,yt as isDateSelected,I as isSameDay,T as isSameMonth,ln as nextSelection,Fe as rangePositionOf,ao as resetInstantDateWarning,sn as resolveCalendarDisabled,F as resolveLocale,mn as selectionAnnouncement,Y as startOfMonth,ue as startOfWeek,g as stripTime,fe as toISODateString,no as useCalendarContext,f as useCalendarContextInternal,he as useCalendarGridMonth,dn as warnInstantDate,tt as yearPageStart};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The anatomy a {@link Calendar} draws when it is given no children: the
|
|
4
|
+
* paging header, one day grid per displayed month, and the month/year view
|
|
5
|
+
* grids. The three grids each return `null` unless `view` matches, so all
|
|
6
|
+
* three can be rendered unconditionally.
|
|
7
|
+
*
|
|
8
|
+
* Not exported from the package. A consumer who wants this structure gets it
|
|
9
|
+
* by writing `<Calendar />`; one who wants a different structure writes the
|
|
10
|
+
* parts, which is exactly what this component does.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const CalendarAnatomy: () => React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The anatomy a {@link Calendar} draws when it is given no children: the
|
|
4
|
+
* paging header, one day grid per displayed month, and the month/year view
|
|
5
|
+
* grids. The three grids each return `null` unless `view` matches, so all
|
|
6
|
+
* three can be rendered unconditionally.
|
|
7
|
+
*
|
|
8
|
+
* Not exported from the package. A consumer who wants this structure gets it
|
|
9
|
+
* by writing `<Calendar />`; one who wants a different structure writes the
|
|
10
|
+
* parts, which is exactly what this component does.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const CalendarAnatomy: () => React.JSX.Element;
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarCellProps } from './types.cjs';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* day-of-month number as its content.
|
|
10
|
-
*
|
|
11
|
-
* In `range` selection mode, every cell from the range's start to its end is
|
|
12
|
-
* `aria-selected`, and carries exactly one of `data-range-start`,
|
|
13
|
-
* `data-range-middle` or `data-range-end` for styling the band.
|
|
14
|
-
*
|
|
15
|
-
* Two distinct ways to refuse a date:
|
|
16
|
-
* - **disabled** — outside `minDate`/`maxDate`, outside the displayed month,
|
|
17
|
-
* or matching the `disabled` predicate. Natively `disabled`, so it is not
|
|
18
|
-
* focusable and does not fire clicks.
|
|
19
|
-
* - **unavailable** — matching `isDateUnavailable`. Focusable and announced as
|
|
20
|
-
* `aria-disabled="true"` with a `data-unavailable` hook, so a screen-reader
|
|
21
|
-
* user can land on it and hear that it is taken; clicks are ignored.
|
|
4
|
+
* Selectable `role="gridcell"` date within a {@link Calendar}.
|
|
5
|
+
* Renders `<button>` with `aria-selected`, roving `tabIndex`, day-of-month content.
|
|
6
|
+
* **Disabled**: natively disabled (not focusable).
|
|
7
|
+
* **Unavailable**: focusable, `aria-disabled="true"`, clicks ignored.
|
|
8
|
+
* In range mode, cells carry `data-range-start` / `data-range-middle` / `data-range-end`.
|
|
22
9
|
*
|
|
23
10
|
* @example
|
|
24
11
|
* ```tsx
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarCellProps } from './types.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* day-of-month number as its content.
|
|
10
|
-
*
|
|
11
|
-
* In `range` selection mode, every cell from the range's start to its end is
|
|
12
|
-
* `aria-selected`, and carries exactly one of `data-range-start`,
|
|
13
|
-
* `data-range-middle` or `data-range-end` for styling the band.
|
|
14
|
-
*
|
|
15
|
-
* Two distinct ways to refuse a date:
|
|
16
|
-
* - **disabled** — outside `minDate`/`maxDate`, outside the displayed month,
|
|
17
|
-
* or matching the `disabled` predicate. Natively `disabled`, so it is not
|
|
18
|
-
* focusable and does not fire clicks.
|
|
19
|
-
* - **unavailable** — matching `isDateUnavailable`. Focusable and announced as
|
|
20
|
-
* `aria-disabled="true"` with a `data-unavailable` hook, so a screen-reader
|
|
21
|
-
* user can land on it and hear that it is taken; clicks are ignored.
|
|
4
|
+
* Selectable `role="gridcell"` date within a {@link Calendar}.
|
|
5
|
+
* Renders `<button>` with `aria-selected`, roving `tabIndex`, day-of-month content.
|
|
6
|
+
* **Disabled**: natively disabled (not focusable).
|
|
7
|
+
* **Unavailable**: focusable, `aria-disabled="true"`, clicks ignored.
|
|
8
|
+
* In range mode, cells carry `data-range-start` / `data-range-middle` / `data-range-end`.
|
|
22
9
|
*
|
|
23
10
|
* @example
|
|
24
11
|
* ```tsx
|
|
@@ -2,14 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import type { CalendarGridProps } from './types.cjs';
|
|
3
3
|
/**
|
|
4
4
|
* `role="grid"` container for a {@link Calendar}'s date cells, owning
|
|
5
|
-
* arrow-key navigation of the roving-focus date
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Navigating into a different month calls `onMonthChange` automatically.
|
|
9
|
-
*
|
|
10
|
-
* With a multi-month `Calendar` (`numberOfMonths`), render one grid per month
|
|
11
|
-
* and give each its `monthOffset` — that is what tells the grid's cells which
|
|
12
|
-
* month counts as "outside".
|
|
5
|
+
* arrow-key navigation of the roving-focus date and calling `onMonthChange`
|
|
6
|
+
* when it crosses into a different month. With `numberOfMonths` > 1, render
|
|
7
|
+
* one grid per month and give each its `monthOffset`.
|
|
13
8
|
*
|
|
14
9
|
* @example
|
|
15
10
|
* ```tsx
|
|
@@ -2,14 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import type { CalendarGridProps } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* `role="grid"` container for a {@link Calendar}'s date cells, owning
|
|
5
|
-
* arrow-key navigation of the roving-focus date
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Navigating into a different month calls `onMonthChange` automatically.
|
|
9
|
-
*
|
|
10
|
-
* With a multi-month `Calendar` (`numberOfMonths`), render one grid per month
|
|
11
|
-
* and give each its `monthOffset` — that is what tells the grid's cells which
|
|
12
|
-
* month counts as "outside".
|
|
5
|
+
* arrow-key navigation of the roving-focus date and calling `onMonthChange`
|
|
6
|
+
* when it crosses into a different month. With `numberOfMonths` > 1, render
|
|
7
|
+
* one grid per month and give each its `monthOffset`.
|
|
13
8
|
*
|
|
14
9
|
* @example
|
|
15
10
|
* ```tsx
|
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarGridBodyProps } from './types.cjs';
|
|
3
3
|
/**
|
|
4
|
-
* `role="rowgroup"` wrapper for
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `CalendarRow` per visible week, one `CalendarCell` per day, taken from the
|
|
8
|
-
* live `month` in context. That is the composition a consumer writes first, and
|
|
9
|
-
* it is now the correct one.
|
|
10
|
-
*
|
|
11
|
-
* It did not used to be. An empty body rendered an empty rowgroup, so the
|
|
12
|
-
* calendar showed a heading and weekday names above no days at all; and the
|
|
13
|
-
* example that worked around it mapped `getVisibleWeeks(new Date())` — a month
|
|
14
|
-
* captured once at render — so the days it did draw never moved when the month
|
|
15
|
-
* changed. Both roads ended at "the days do not change", with the heading
|
|
16
|
-
* updating over a static grid, because `Previous`/`Next` change `month` and
|
|
17
|
-
* nothing was reading it.
|
|
18
|
-
*
|
|
19
|
-
* Pass children to take over completely — to decorate a day, group by week
|
|
20
|
-
* number, or render anything other than a plain cell. Children always win; this
|
|
21
|
-
* only fills an empty body.
|
|
22
|
-
*
|
|
23
|
-
* `rowgroup` rather than a bare `<div>` so `role="grid"` sees only
|
|
24
|
-
* `row`/`rowgroup` children — a plain `div` between the grid and its rows is
|
|
25
|
-
* what axe reports as `aria-required-children`.
|
|
4
|
+
* `role="rowgroup"` wrapper for {@link Calendar} week rows. When empty, renders
|
|
5
|
+
* the displayed month as `CalendarRow`/`CalendarCell` from context.
|
|
6
|
+
* Pass children to customize (decorate days, group by week, etc.); children always win.
|
|
26
7
|
*
|
|
27
8
|
* @example
|
|
28
9
|
* ```tsx
|
|
@@ -35,8 +16,7 @@ import type { CalendarGridBodyProps } from './types.cjs';
|
|
|
35
16
|
*
|
|
36
17
|
* @example
|
|
37
18
|
* ```tsx
|
|
38
|
-
* // Taking over the rows. Read `month` from context — never `new Date()
|
|
39
|
-
* // the grid stops following the Previous/Next buttons.
|
|
19
|
+
* // Taking over the rows. Read `month` from context — never `new Date()`.
|
|
40
20
|
* const { month, weekStartsOn } = useCalendarContext();
|
|
41
21
|
* <CalendarGridBody>
|
|
42
22
|
* {getVisibleWeeks(month, weekStartsOn).map((week) => (
|
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarGridBodyProps } from './types.js';
|
|
3
3
|
/**
|
|
4
|
-
* `role="rowgroup"` wrapper for
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `CalendarRow` per visible week, one `CalendarCell` per day, taken from the
|
|
8
|
-
* live `month` in context. That is the composition a consumer writes first, and
|
|
9
|
-
* it is now the correct one.
|
|
10
|
-
*
|
|
11
|
-
* It did not used to be. An empty body rendered an empty rowgroup, so the
|
|
12
|
-
* calendar showed a heading and weekday names above no days at all; and the
|
|
13
|
-
* example that worked around it mapped `getVisibleWeeks(new Date())` — a month
|
|
14
|
-
* captured once at render — so the days it did draw never moved when the month
|
|
15
|
-
* changed. Both roads ended at "the days do not change", with the heading
|
|
16
|
-
* updating over a static grid, because `Previous`/`Next` change `month` and
|
|
17
|
-
* nothing was reading it.
|
|
18
|
-
*
|
|
19
|
-
* Pass children to take over completely — to decorate a day, group by week
|
|
20
|
-
* number, or render anything other than a plain cell. Children always win; this
|
|
21
|
-
* only fills an empty body.
|
|
22
|
-
*
|
|
23
|
-
* `rowgroup` rather than a bare `<div>` so `role="grid"` sees only
|
|
24
|
-
* `row`/`rowgroup` children — a plain `div` between the grid and its rows is
|
|
25
|
-
* what axe reports as `aria-required-children`.
|
|
4
|
+
* `role="rowgroup"` wrapper for {@link Calendar} week rows. When empty, renders
|
|
5
|
+
* the displayed month as `CalendarRow`/`CalendarCell` from context.
|
|
6
|
+
* Pass children to customize (decorate days, group by week, etc.); children always win.
|
|
26
7
|
*
|
|
27
8
|
* @example
|
|
28
9
|
* ```tsx
|
|
@@ -35,8 +16,7 @@ import type { CalendarGridBodyProps } from './types.js';
|
|
|
35
16
|
*
|
|
36
17
|
* @example
|
|
37
18
|
* ```tsx
|
|
38
|
-
* // Taking over the rows. Read `month` from context — never `new Date()
|
|
39
|
-
* // the grid stops following the Previous/Next buttons.
|
|
19
|
+
* // Taking over the rows. Read `month` from context — never `new Date()`.
|
|
40
20
|
* const { month, weekStartsOn } = useCalendarContext();
|
|
41
21
|
* <CalendarGridBody>
|
|
42
22
|
* {getVisibleWeeks(month, weekStartsOn).map((week) => (
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarGridHeadProps } from './types.cjs';
|
|
3
3
|
/**
|
|
4
|
-
* `role="rowgroup"` wrapper for a {@link Calendar}'s weekday header.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `locale` and `weekStartsOn` — the visible label is the short name, with the
|
|
8
|
-
* full name as `aria-label` so screen readers say "Monday", not "Mon". That is
|
|
9
|
-
* why no framework ships a hardcoded `['Su', 'Mo', …]` table any more.
|
|
10
|
-
*
|
|
11
|
-
* `rowgroup`, not `row`: `role="grid"` requires `row`/`rowgroup` children and
|
|
12
|
-
* `role="columnheader"` requires a `row` parent, so the old `row`-inside-`row`
|
|
13
|
-
* nesting is exactly what axe flagged as
|
|
14
|
-
* `aria-required-children`/`aria-required-parent`.
|
|
4
|
+
* `role="rowgroup"` wrapper for a {@link Calendar}'s weekday header. Left
|
|
5
|
+
* childless, renders the weekday row from the `Calendar`'s `locale` and
|
|
6
|
+
* `weekStartsOn`. Short name visible, full name in `aria-label`.
|
|
15
7
|
*
|
|
16
8
|
* @example
|
|
17
9
|
* ```tsx
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarGridHeadProps } from './types.js';
|
|
3
3
|
/**
|
|
4
|
-
* `role="rowgroup"` wrapper for a {@link Calendar}'s weekday header.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `locale` and `weekStartsOn` — the visible label is the short name, with the
|
|
8
|
-
* full name as `aria-label` so screen readers say "Monday", not "Mon". That is
|
|
9
|
-
* why no framework ships a hardcoded `['Su', 'Mo', …]` table any more.
|
|
10
|
-
*
|
|
11
|
-
* `rowgroup`, not `row`: `role="grid"` requires `row`/`rowgroup` children and
|
|
12
|
-
* `role="columnheader"` requires a `row` parent, so the old `row`-inside-`row`
|
|
13
|
-
* nesting is exactly what axe flagged as
|
|
14
|
-
* `aria-required-children`/`aria-required-parent`.
|
|
4
|
+
* `role="rowgroup"` wrapper for a {@link Calendar}'s weekday header. Left
|
|
5
|
+
* childless, renders the weekday row from the `Calendar`'s `locale` and
|
|
6
|
+
* `weekStartsOn`. Short name visible, full name in `aria-label`.
|
|
15
7
|
*
|
|
16
8
|
* @example
|
|
17
9
|
* ```tsx
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarHeaderProps } from './types.cjs';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* row. Renders a plain `<div>`; typically holds `CalendarPreviousButton`,
|
|
6
|
-
* `CalendarHeading` and `CalendarNextButton`.
|
|
4
|
+
* Wrapper for a {@link Calendar}'s month navigation row. Renders a plain `<div>`.
|
|
7
5
|
*
|
|
8
6
|
* @example
|
|
9
7
|
* ```tsx
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarHeaderProps } from './types.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* row. Renders a plain `<div>`; typically holds `CalendarPreviousButton`,
|
|
6
|
-
* `CalendarHeading` and `CalendarNextButton`.
|
|
4
|
+
* Wrapper for a {@link Calendar}'s month navigation row. Renders a plain `<div>`.
|
|
7
5
|
*
|
|
8
6
|
* @example
|
|
9
7
|
* ```tsx
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarHeadingProps } from './types.cjs';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* With a multi-month `Calendar` (`numberOfMonths`), `monthOffset` selects
|
|
9
|
-
* which of the displayed months to label.
|
|
4
|
+
* Labels the calendar view (month/year/year-page) and offers view-up trigger.
|
|
5
|
+
* Renders `<button>` below `maxView`, plain `<div>` at `maxView`. Locale-aware
|
|
6
|
+
* via `Intl`; `monthOffset` selects which month to label (day view only).
|
|
10
7
|
*
|
|
11
8
|
* @example
|
|
12
9
|
* ```tsx
|
|
@@ -14,4 +11,4 @@ import type { CalendarHeadingProps } from './types.cjs';
|
|
|
14
11
|
* <CalendarHeading monthOffset={1} />
|
|
15
12
|
* ```
|
|
16
13
|
*/
|
|
17
|
-
export declare const CalendarHeading: React.ForwardRefExoticComponent<Omit<CalendarHeadingProps, "ref"> & React.RefAttributes<
|
|
14
|
+
export declare const CalendarHeading: React.ForwardRefExoticComponent<Omit<CalendarHeadingProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CalendarHeadingProps } from './types.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* With a multi-month `Calendar` (`numberOfMonths`), `monthOffset` selects
|
|
9
|
-
* which of the displayed months to label.
|
|
4
|
+
* Labels the calendar view (month/year/year-page) and offers view-up trigger.
|
|
5
|
+
* Renders `<button>` below `maxView`, plain `<div>` at `maxView`. Locale-aware
|
|
6
|
+
* via `Intl`; `monthOffset` selects which month to label (day view only).
|
|
10
7
|
*
|
|
11
8
|
* @example
|
|
12
9
|
* ```tsx
|
|
@@ -14,4 +11,4 @@ import type { CalendarHeadingProps } from './types.js';
|
|
|
14
11
|
* <CalendarHeading monthOffset={1} />
|
|
15
12
|
* ```
|
|
16
13
|
*/
|
|
17
|
-
export declare const CalendarHeading: React.ForwardRefExoticComponent<Omit<CalendarHeadingProps, "ref"> & React.RefAttributes<
|
|
14
|
+
export declare const CalendarHeading: React.ForwardRefExoticComponent<Omit<CalendarHeadingProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -2,7 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import type { CalendarNextButtonProps } from './types.cjs';
|
|
3
3
|
/**
|
|
4
4
|
* Navigates the {@link Calendar} to the next month on click. Renders a
|
|
5
|
-
* `<button type="button">`
|
|
5
|
+
* `<button type="button">` labelled for the view on screen ("Next month",
|
|
6
|
+
* "Next year", "Next 20 years"), and
|
|
6
7
|
* moves the roving-focus date to the same day (clamped) in the new month.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
@@ -2,7 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import type { CalendarNextButtonProps } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Navigates the {@link Calendar} to the next month on click. Renders a
|
|
5
|
-
* `<button type="button">`
|
|
5
|
+
* `<button type="button">` labelled for the view on screen ("Next month",
|
|
6
|
+
* "Next year", "Next 20 years"), and
|
|
6
7
|
* moves the roving-focus date to the same day (clamped) in the new month.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CalendarMonthGridProps, CalendarYearGridProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Month view grid: 12 gridcell months in rows of 4, with ARIA grid semantics.
|
|
5
|
+
* Roving tab stop, arrow navigation at month granularity (row=4, page=year, Shift pages 10).
|
|
6
|
+
* Activation projects focusedDate to month, pages to it, steps view to 'day' (or minView).
|
|
7
|
+
* Does not select; only day grid affects value.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Calendar>
|
|
12
|
+
* <CalendarHeader>
|
|
13
|
+
* <CalendarPreviousButton>‹</CalendarPreviousButton>
|
|
14
|
+
* <CalendarHeading />
|
|
15
|
+
* <CalendarNextButton>›</CalendarNextButton>
|
|
16
|
+
* </CalendarHeader>
|
|
17
|
+
* <CalendarGrid>
|
|
18
|
+
* <CalendarGridHead />
|
|
19
|
+
* <CalendarGridBody />
|
|
20
|
+
* </CalendarGrid>
|
|
21
|
+
* <CalendarMonthGrid />
|
|
22
|
+
* <CalendarYearGrid />
|
|
23
|
+
* </Calendar>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const CalendarMonthGrid: React.ForwardRefExoticComponent<Omit<CalendarMonthGridProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
/**
|
|
28
|
+
* Year view grid: 20 gridcell years in rows of 4, pages aligned on multiple of 20 (2026 shows 2020–2039).
|
|
29
|
+
* Same ARIA grid model and aria-disabled rule as CalendarMonthGrid, one unit coarser.
|
|
30
|
+
* Activation projects focusedDate to year, steps view to 'month'. Does not select.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <CalendarYearGrid />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare const CalendarYearGrid: React.ForwardRefExoticComponent<Omit<CalendarYearGridProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CalendarMonthGridProps, CalendarYearGridProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Month view grid: 12 gridcell months in rows of 4, with ARIA grid semantics.
|
|
5
|
+
* Roving tab stop, arrow navigation at month granularity (row=4, page=year, Shift pages 10).
|
|
6
|
+
* Activation projects focusedDate to month, pages to it, steps view to 'day' (or minView).
|
|
7
|
+
* Does not select; only day grid affects value.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Calendar>
|
|
12
|
+
* <CalendarHeader>
|
|
13
|
+
* <CalendarPreviousButton>‹</CalendarPreviousButton>
|
|
14
|
+
* <CalendarHeading />
|
|
15
|
+
* <CalendarNextButton>›</CalendarNextButton>
|
|
16
|
+
* </CalendarHeader>
|
|
17
|
+
* <CalendarGrid>
|
|
18
|
+
* <CalendarGridHead />
|
|
19
|
+
* <CalendarGridBody />
|
|
20
|
+
* </CalendarGrid>
|
|
21
|
+
* <CalendarMonthGrid />
|
|
22
|
+
* <CalendarYearGrid />
|
|
23
|
+
* </Calendar>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const CalendarMonthGrid: React.ForwardRefExoticComponent<Omit<CalendarMonthGridProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
/**
|
|
28
|
+
* Year view grid: 20 gridcell years in rows of 4, pages aligned on multiple of 20 (2026 shows 2020–2039).
|
|
29
|
+
* Same ARIA grid model and aria-disabled rule as CalendarMonthGrid, one unit coarser.
|
|
30
|
+
* Activation projects focusedDate to year, steps view to 'month'. Does not select.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <CalendarYearGrid />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare const CalendarYearGrid: React.ForwardRefExoticComponent<Omit<CalendarYearGridProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CalendarWeekNumberProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* ISO-8601 week number, `role="rowheader"`. Independent of `weekStartsOn`;
|
|
5
|
+
* January 1st may be week 52 or 53.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <CalendarRow>
|
|
10
|
+
* <CalendarWeekNumber date={week[0].date} />
|
|
11
|
+
* {week.map(({ date }) => (
|
|
12
|
+
* <CalendarCell date={date} key={date.toISOString()} />
|
|
13
|
+
* ))}
|
|
14
|
+
* </CalendarRow>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const CalendarWeekNumber: React.ForwardRefExoticComponent<Omit<CalendarWeekNumberProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CalendarWeekNumberProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* ISO-8601 week number, `role="rowheader"`. Independent of `weekStartsOn`;
|
|
5
|
+
* January 1st may be week 52 or 53.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <CalendarRow>
|
|
10
|
+
* <CalendarWeekNumber date={week[0].date} />
|
|
11
|
+
* {week.map(({ date }) => (
|
|
12
|
+
* <CalendarCell date={date} key={date.toISOString()} />
|
|
13
|
+
* ))}
|
|
14
|
+
* </CalendarRow>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const CalendarWeekNumber: React.ForwardRefExoticComponent<Omit<CalendarWeekNumberProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CalendarWeekNumberHeaderProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* The `role="columnheader"` above a {@link Calendar}'s week-number column.
|
|
5
|
+
*
|
|
6
|
+
* Visually blank by default (named via `aria-label`) because no abbreviation
|
|
7
|
+
* of "week number" reads well next to day abbreviations. Pass children for
|
|
8
|
+
* a visible label like "Wk".
|
|
9
|
+
*
|
|
10
|
+
* It exists to prevent grid alignment errors: without this header, the
|
|
11
|
+
* week-number column causes off-by-one column-index misalignment.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <CalendarRow>
|
|
16
|
+
* <CalendarWeekNumberHeader>Wk</CalendarWeekNumberHeader>
|
|
17
|
+
* <CalendarWeekDay aria-label="Monday">Mo</CalendarWeekDay>
|
|
18
|
+
* </CalendarRow>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const CalendarWeekNumberHeader: React.ForwardRefExoticComponent<Omit<CalendarWeekNumberHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CalendarWeekNumberHeaderProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The `role="columnheader"` above a {@link Calendar}'s week-number column.
|
|
5
|
+
*
|
|
6
|
+
* Visually blank by default (named via `aria-label`) because no abbreviation
|
|
7
|
+
* of "week number" reads well next to day abbreviations. Pass children for
|
|
8
|
+
* a visible label like "Wk".
|
|
9
|
+
*
|
|
10
|
+
* It exists to prevent grid alignment errors: without this header, the
|
|
11
|
+
* week-number column causes off-by-one column-index misalignment.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <CalendarRow>
|
|
16
|
+
* <CalendarWeekNumberHeader>Wk</CalendarWeekNumberHeader>
|
|
17
|
+
* <CalendarWeekDay aria-label="Monday">Mo</CalendarWeekDay>
|
|
18
|
+
* </CalendarRow>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const CalendarWeekNumberHeader: React.ForwardRefExoticComponent<Omit<CalendarWeekNumberHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
export * from './Calendar.cjs';
|
|
2
|
-
export { clearLocaleNameCache, formatDateLabel, formatMonthLabel, getLocaleWeekStartsOn, getMonthNames, getWeekDayNames, resolveLocale, type NameWidth, } from './locale.cjs';
|
|
3
|
-
export {
|
|
4
|
-
export { CalendarHeading } from './CalendarHeading.cjs';
|
|
5
|
-
export { CalendarPreviousButton } from './CalendarPreviousButton.cjs';
|
|
6
|
-
export { CalendarNextButton } from './CalendarNextButton.cjs';
|
|
7
|
-
export { CalendarGrid } from './CalendarGrid.cjs';
|
|
8
|
-
export { CalendarGridHead } from './CalendarGridHead.cjs';
|
|
9
|
-
export { CalendarWeekDay } from './CalendarWeekDay.cjs';
|
|
10
|
-
export { CalendarGridBody } from './CalendarGridBody.cjs';
|
|
11
|
-
export { CalendarRow } from './CalendarRow.cjs';
|
|
12
|
-
export { CalendarCell } from './CalendarCell.cjs';
|
|
13
|
-
export type { CalendarProps, CalendarHeaderProps, CalendarHeadingProps, CalendarPreviousButtonProps, CalendarNextButtonProps, CalendarGridProps, CalendarGridHeadProps, CalendarWeekDayProps, CalendarGridBodyProps, CalendarRowProps, CalendarCellProps, CalendarDay, CalendarSelectionMode, CalendarValue, DateRange, RangePosition, } from './types.cjs';
|
|
2
|
+
export { clearLocaleNameCache, formatDateLabel, formatMonthLabel, formatYear, formatYearRange, getLocaleWeekStartsOn, getMonthNames, getWeekDayNames, resolveLocale, type NameWidth, } from './locale.cjs';
|
|
3
|
+
export type { CalendarProps, CalendarDay, CalendarPageBehavior, CalendarSelectionMode, CalendarView, CalendarValue, CalendarValueInput, DateRange, RangePosition, } from './types.cjs';
|