@skdx/react 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -0
- package/dist/accordion/Accordion.cjs +1 -0
- package/dist/accordion/Accordion.d.cts +38 -0
- package/dist/accordion/Accordion.d.ts +38 -0
- package/dist/accordion/Accordion.js +1 -0
- package/dist/accordion/AccordionContent.d.cts +27 -0
- package/dist/accordion/AccordionContent.d.ts +27 -0
- package/dist/accordion/AccordionHeader.d.cts +15 -0
- package/dist/accordion/AccordionHeader.d.ts +15 -0
- package/dist/accordion/AccordionItem.d.cts +25 -0
- package/dist/accordion/AccordionItem.d.ts +25 -0
- package/dist/accordion/AccordionTrigger.d.cts +19 -0
- package/dist/accordion/AccordionTrigger.d.ts +19 -0
- package/dist/accordion/index.d.cts +6 -0
- package/dist/accordion/index.d.ts +6 -0
- package/dist/accordion/types.d.cts +131 -0
- package/dist/accordion/types.d.ts +131 -0
- package/dist/affix/Affix.cjs +1 -0
- package/dist/affix/Affix.d.cts +36 -0
- package/dist/affix/Affix.d.ts +36 -0
- package/dist/affix/Affix.js +1 -0
- package/dist/affix/index.d.cts +2 -0
- package/dist/affix/index.d.ts +2 -0
- package/dist/affix/types.d.cts +39 -0
- package/dist/affix/types.d.ts +39 -0
- package/dist/alert/Alert.cjs +1 -0
- package/dist/alert/Alert.d.cts +32 -0
- package/dist/alert/Alert.d.ts +32 -0
- package/dist/alert/Alert.js +1 -0
- package/dist/alert/AlertAction.d.cts +20 -0
- package/dist/alert/AlertAction.d.ts +20 -0
- package/dist/alert/AlertClose.d.cts +20 -0
- package/dist/alert/AlertClose.d.ts +20 -0
- package/dist/alert/AlertDescription.d.cts +16 -0
- package/dist/alert/AlertDescription.d.ts +16 -0
- package/dist/alert/AlertIcon.d.cts +16 -0
- package/dist/alert/AlertIcon.d.ts +16 -0
- package/dist/alert/AlertTitle.d.cts +16 -0
- package/dist/alert/AlertTitle.d.ts +16 -0
- package/dist/alert/index.d.cts +7 -0
- package/dist/alert/index.d.ts +7 -0
- package/dist/alert/types.d.cts +53 -0
- package/dist/alert/types.d.ts +53 -0
- package/dist/alert-dialog/AlertDialog.cjs +1 -0
- package/dist/alert-dialog/AlertDialog.d.cts +41 -0
- package/dist/alert-dialog/AlertDialog.d.ts +41 -0
- package/dist/alert-dialog/AlertDialog.js +1 -0
- package/dist/alert-dialog/AlertDialogAction.d.cts +13 -0
- package/dist/alert-dialog/AlertDialogAction.d.ts +13 -0
- package/dist/alert-dialog/AlertDialogCancel.d.cts +13 -0
- package/dist/alert-dialog/AlertDialogCancel.d.ts +13 -0
- package/dist/alert-dialog/AlertDialogContent.d.cts +32 -0
- package/dist/alert-dialog/AlertDialogContent.d.ts +32 -0
- package/dist/alert-dialog/AlertDialogDescription.d.cts +12 -0
- package/dist/alert-dialog/AlertDialogDescription.d.ts +12 -0
- package/dist/alert-dialog/AlertDialogOverlay.d.cts +16 -0
- package/dist/alert-dialog/AlertDialogOverlay.d.ts +16 -0
- package/dist/alert-dialog/AlertDialogPortal.d.cts +22 -0
- package/dist/alert-dialog/AlertDialogPortal.d.ts +22 -0
- package/dist/alert-dialog/AlertDialogTitle.d.cts +13 -0
- package/dist/alert-dialog/AlertDialogTitle.d.ts +13 -0
- package/dist/alert-dialog/AlertDialogTrigger.d.cts +13 -0
- package/dist/alert-dialog/AlertDialogTrigger.d.ts +13 -0
- package/dist/alert-dialog/index.d.cts +10 -0
- package/dist/alert-dialog/index.d.ts +10 -0
- package/dist/alert-dialog/types.d.cts +121 -0
- package/dist/alert-dialog/types.d.ts +121 -0
- package/dist/angle-slider/AngleSlider.cjs +1 -0
- package/dist/angle-slider/AngleSlider.d.cts +60 -0
- package/dist/angle-slider/AngleSlider.d.ts +60 -0
- package/dist/angle-slider/AngleSlider.js +1 -0
- package/dist/angle-slider/AngleSliderMark.d.cts +35 -0
- package/dist/angle-slider/AngleSliderMark.d.ts +35 -0
- package/dist/angle-slider/AngleSliderMarks.d.cts +25 -0
- package/dist/angle-slider/AngleSliderMarks.d.ts +25 -0
- package/dist/angle-slider/AngleSliderThumb.d.cts +29 -0
- package/dist/angle-slider/AngleSliderThumb.d.ts +29 -0
- package/dist/angle-slider/index.d.cts +5 -0
- package/dist/angle-slider/index.d.ts +5 -0
- package/dist/angle-slider/types.d.cts +100 -0
- package/dist/angle-slider/types.d.ts +100 -0
- package/dist/aspect-ratio/AspectRatio.cjs +1 -0
- package/dist/aspect-ratio/AspectRatio.d.cts +20 -0
- package/dist/aspect-ratio/AspectRatio.d.ts +20 -0
- package/dist/aspect-ratio/AspectRatio.js +1 -0
- package/dist/aspect-ratio/index.d.cts +2 -0
- package/dist/aspect-ratio/index.d.ts +2 -0
- package/dist/aspect-ratio/types.d.cts +18 -0
- package/dist/aspect-ratio/types.d.ts +18 -0
- package/dist/autocomplete/Autocomplete.cjs +1 -0
- package/dist/autocomplete/Autocomplete.d.cts +81 -0
- package/dist/autocomplete/Autocomplete.d.ts +81 -0
- package/dist/autocomplete/Autocomplete.js +1 -0
- package/dist/autocomplete/AutocompleteContent.d.cts +37 -0
- package/dist/autocomplete/AutocompleteContent.d.ts +37 -0
- package/dist/autocomplete/AutocompleteEmpty.d.cts +26 -0
- package/dist/autocomplete/AutocompleteEmpty.d.ts +26 -0
- package/dist/autocomplete/AutocompleteInput.d.cts +31 -0
- package/dist/autocomplete/AutocompleteInput.d.ts +31 -0
- package/dist/autocomplete/AutocompleteItem.d.cts +28 -0
- package/dist/autocomplete/AutocompleteItem.d.ts +28 -0
- package/dist/autocomplete/AutocompleteList.d.cts +24 -0
- package/dist/autocomplete/AutocompleteList.d.ts +24 -0
- package/dist/autocomplete/AutocompletePortal.d.cts +21 -0
- package/dist/autocomplete/AutocompletePortal.d.ts +21 -0
- package/dist/autocomplete/AutocompleteTrigger.d.cts +20 -0
- package/dist/autocomplete/AutocompleteTrigger.d.ts +20 -0
- package/dist/autocomplete/index.d.cts +9 -0
- package/dist/autocomplete/index.d.ts +9 -0
- package/dist/autocomplete/types.d.cts +250 -0
- package/dist/autocomplete/types.d.ts +250 -0
- package/dist/avatar/Avatar.cjs +1 -0
- package/dist/avatar/Avatar.d.cts +23 -0
- package/dist/avatar/Avatar.d.ts +23 -0
- package/dist/avatar/Avatar.js +1 -0
- package/dist/avatar/AvatarFallback.d.cts +17 -0
- package/dist/avatar/AvatarFallback.d.ts +17 -0
- package/dist/avatar/AvatarImage.d.cts +17 -0
- package/dist/avatar/AvatarImage.d.ts +17 -0
- package/dist/avatar/index.d.cts +4 -0
- package/dist/avatar/index.d.ts +4 -0
- package/dist/avatar/types.d.cts +27 -0
- package/dist/avatar/types.d.ts +27 -0
- package/dist/badge/Badge.cjs +1 -0
- package/dist/badge/Badge.d.cts +14 -0
- package/dist/badge/Badge.d.ts +14 -0
- package/dist/badge/Badge.js +1 -0
- package/dist/badge/index.d.cts +2 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/types.d.cts +4 -0
- package/dist/badge/types.d.ts +4 -0
- package/dist/breadcrumb/Breadcrumb.cjs +1 -0
- package/dist/breadcrumb/Breadcrumb.d.cts +27 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +27 -0
- package/dist/breadcrumb/Breadcrumb.js +1 -0
- package/dist/breadcrumb/BreadcrumbEllipsis.d.cts +22 -0
- package/dist/breadcrumb/BreadcrumbEllipsis.d.ts +22 -0
- package/dist/breadcrumb/BreadcrumbItem.d.cts +14 -0
- package/dist/breadcrumb/BreadcrumbItem.d.ts +14 -0
- package/dist/breadcrumb/BreadcrumbLink.d.cts +14 -0
- package/dist/breadcrumb/BreadcrumbLink.d.ts +14 -0
- package/dist/breadcrumb/BreadcrumbList.d.cts +16 -0
- package/dist/breadcrumb/BreadcrumbList.d.ts +16 -0
- package/dist/breadcrumb/BreadcrumbPage.d.cts +14 -0
- package/dist/breadcrumb/BreadcrumbPage.d.ts +14 -0
- package/dist/breadcrumb/BreadcrumbSeparator.d.cts +15 -0
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +15 -0
- package/dist/breadcrumb/index.d.cts +8 -0
- package/dist/breadcrumb/index.d.ts +8 -0
- package/dist/breadcrumb/types.d.cts +22 -0
- package/dist/breadcrumb/types.d.ts +22 -0
- package/dist/button/Button.cjs +1 -0
- package/dist/button/Button.d.cts +15 -0
- package/dist/button/Button.d.ts +15 -0
- package/dist/button/Button.js +1 -0
- package/dist/button/index.d.cts +2 -0
- package/dist/button/index.d.ts +2 -0
- package/dist/button/types.d.cts +9 -0
- package/dist/button/types.d.ts +9 -0
- package/dist/calendar/Calendar.cjs +1 -0
- package/dist/calendar/Calendar.d.cts +139 -0
- package/dist/calendar/Calendar.d.ts +139 -0
- package/dist/calendar/Calendar.js +1 -0
- package/dist/calendar/CalendarCell.d.cts +32 -0
- package/dist/calendar/CalendarCell.d.ts +32 -0
- package/dist/calendar/CalendarGrid.d.cts +26 -0
- package/dist/calendar/CalendarGrid.d.ts +26 -0
- package/dist/calendar/CalendarGridBody.d.cts +55 -0
- package/dist/calendar/CalendarGridBody.d.ts +55 -0
- package/dist/calendar/CalendarGridHead.d.cts +21 -0
- package/dist/calendar/CalendarGridHead.d.ts +21 -0
- package/dist/calendar/CalendarHeader.d.cts +17 -0
- package/dist/calendar/CalendarHeader.d.ts +17 -0
- package/dist/calendar/CalendarHeading.d.cts +17 -0
- package/dist/calendar/CalendarHeading.d.ts +17 -0
- package/dist/calendar/CalendarNextButton.d.cts +17 -0
- package/dist/calendar/CalendarNextButton.d.ts +17 -0
- package/dist/calendar/CalendarPreviousButton.d.cts +17 -0
- package/dist/calendar/CalendarPreviousButton.d.ts +17 -0
- package/dist/calendar/CalendarRow.d.cts +16 -0
- package/dist/calendar/CalendarRow.d.ts +16 -0
- package/dist/calendar/CalendarWeekDay.d.cts +16 -0
- package/dist/calendar/CalendarWeekDay.d.ts +16 -0
- package/dist/calendar/index.d.cts +13 -0
- package/dist/calendar/index.d.ts +13 -0
- package/dist/calendar/locale.d.cts +45 -0
- package/dist/calendar/locale.d.ts +45 -0
- package/dist/calendar/types.d.cts +206 -0
- package/dist/calendar/types.d.ts +206 -0
- package/dist/card/Card.cjs +1 -0
- package/dist/card/Card.d.cts +25 -0
- package/dist/card/Card.d.ts +25 -0
- package/dist/card/Card.js +1 -0
- package/dist/card/CardContent.d.cts +19 -0
- package/dist/card/CardContent.d.ts +19 -0
- package/dist/card/CardDescription.d.cts +15 -0
- package/dist/card/CardDescription.d.ts +15 -0
- package/dist/card/CardFooter.d.cts +19 -0
- package/dist/card/CardFooter.d.ts +19 -0
- package/dist/card/CardHeader.d.cts +17 -0
- package/dist/card/CardHeader.d.ts +17 -0
- package/dist/card/CardTitle.d.cts +13 -0
- package/dist/card/CardTitle.d.ts +13 -0
- package/dist/card/index.d.cts +7 -0
- package/dist/card/index.d.ts +7 -0
- package/dist/card/types.d.cts +19 -0
- package/dist/card/types.d.ts +19 -0
- package/dist/carousel/Carousel.cjs +1 -0
- package/dist/carousel/Carousel.d.cts +55 -0
- package/dist/carousel/Carousel.d.ts +55 -0
- package/dist/carousel/Carousel.js +1 -0
- package/dist/carousel/CarouselContent.d.cts +16 -0
- package/dist/carousel/CarouselContent.d.ts +16 -0
- package/dist/carousel/CarouselItem.d.cts +19 -0
- package/dist/carousel/CarouselItem.d.ts +19 -0
- package/dist/carousel/CarouselNext.d.cts +14 -0
- package/dist/carousel/CarouselNext.d.ts +14 -0
- package/dist/carousel/CarouselPlayPause.d.cts +17 -0
- package/dist/carousel/CarouselPlayPause.d.ts +17 -0
- package/dist/carousel/CarouselPrevious.d.cts +14 -0
- package/dist/carousel/CarouselPrevious.d.ts +14 -0
- package/dist/carousel/index.d.cts +7 -0
- package/dist/carousel/index.d.ts +7 -0
- package/dist/carousel/types.d.cts +110 -0
- package/dist/carousel/types.d.ts +110 -0
- package/dist/checkbox/Checkbox.cjs +1 -0
- package/dist/checkbox/Checkbox.d.cts +28 -0
- package/dist/checkbox/Checkbox.d.ts +28 -0
- package/dist/checkbox/Checkbox.js +1 -0
- package/dist/checkbox/CheckboxIndicator.d.cts +15 -0
- package/dist/checkbox/CheckboxIndicator.d.ts +15 -0
- package/dist/checkbox/index.d.cts +3 -0
- package/dist/checkbox/index.d.ts +3 -0
- package/dist/checkbox/types.d.cts +54 -0
- package/dist/checkbox/types.d.ts +54 -0
- package/dist/checkbox-card/CheckboxCard.cjs +1 -0
- package/dist/checkbox-card/CheckboxCard.d.cts +39 -0
- package/dist/checkbox-card/CheckboxCard.d.ts +39 -0
- package/dist/checkbox-card/CheckboxCard.js +1 -0
- package/dist/checkbox-card/CheckboxCardControl.d.cts +27 -0
- package/dist/checkbox-card/CheckboxCardControl.d.ts +27 -0
- package/dist/checkbox-card/CheckboxCardDescription.d.cts +21 -0
- package/dist/checkbox-card/CheckboxCardDescription.d.ts +21 -0
- package/dist/checkbox-card/CheckboxCardIndicator.d.cts +22 -0
- package/dist/checkbox-card/CheckboxCardIndicator.d.ts +22 -0
- package/dist/checkbox-card/CheckboxCardLabel.d.cts +21 -0
- package/dist/checkbox-card/CheckboxCardLabel.d.ts +21 -0
- package/dist/checkbox-card/index.d.cts +6 -0
- package/dist/checkbox-card/index.d.ts +6 -0
- package/dist/checkbox-card/types.d.cts +81 -0
- package/dist/checkbox-card/types.d.ts +81 -0
- package/dist/checkbox-group/CheckboxGroup.cjs +1 -0
- package/dist/checkbox-group/CheckboxGroup.d.cts +43 -0
- package/dist/checkbox-group/CheckboxGroup.d.ts +43 -0
- package/dist/checkbox-group/CheckboxGroup.js +1 -0
- package/dist/checkbox-group/CheckboxGroupItem.d.cts +18 -0
- package/dist/checkbox-group/CheckboxGroupItem.d.ts +18 -0
- package/dist/checkbox-group/CheckboxGroupSelectAll.d.cts +22 -0
- package/dist/checkbox-group/CheckboxGroupSelectAll.d.ts +22 -0
- package/dist/checkbox-group/index.d.cts +4 -0
- package/dist/checkbox-group/index.d.ts +4 -0
- package/dist/checkbox-group/types.d.cts +88 -0
- package/dist/checkbox-group/types.d.ts +88 -0
- package/dist/clipboard/Clipboard.cjs +1 -0
- package/dist/clipboard/Clipboard.d.cts +38 -0
- package/dist/clipboard/Clipboard.d.ts +38 -0
- package/dist/clipboard/Clipboard.js +1 -0
- package/dist/clipboard/ClipboardIndicator.d.cts +22 -0
- package/dist/clipboard/ClipboardIndicator.d.ts +22 -0
- package/dist/clipboard/ClipboardInput.d.cts +24 -0
- package/dist/clipboard/ClipboardInput.d.ts +24 -0
- package/dist/clipboard/ClipboardTrigger.d.cts +23 -0
- package/dist/clipboard/ClipboardTrigger.d.ts +23 -0
- package/dist/clipboard/index.d.cts +5 -0
- package/dist/clipboard/index.d.ts +5 -0
- package/dist/clipboard/types.d.cts +79 -0
- package/dist/clipboard/types.d.ts +79 -0
- package/dist/collapsible/Collapsible.cjs +1 -0
- package/dist/collapsible/Collapsible.d.cts +24 -0
- package/dist/collapsible/Collapsible.d.ts +24 -0
- package/dist/collapsible/Collapsible.js +1 -0
- package/dist/collapsible/CollapsibleContent.d.cts +17 -0
- package/dist/collapsible/CollapsibleContent.d.ts +17 -0
- package/dist/collapsible/CollapsibleTrigger.d.cts +16 -0
- package/dist/collapsible/CollapsibleTrigger.d.ts +16 -0
- package/dist/collapsible/index.d.cts +4 -0
- package/dist/collapsible/index.d.ts +4 -0
- package/dist/collapsible/types.d.cts +44 -0
- package/dist/collapsible/types.d.ts +44 -0
- package/dist/color-picker/ColorPicker.cjs +1 -0
- package/dist/color-picker/ColorPicker.d.cts +60 -0
- package/dist/color-picker/ColorPicker.d.ts +60 -0
- package/dist/color-picker/ColorPicker.js +1 -0
- package/dist/color-picker/ColorPickerAlphaSlider.d.cts +37 -0
- package/dist/color-picker/ColorPickerAlphaSlider.d.ts +37 -0
- package/dist/color-picker/ColorPickerAlphaSliderThumb.d.cts +29 -0
- package/dist/color-picker/ColorPickerAlphaSliderThumb.d.ts +29 -0
- package/dist/color-picker/ColorPickerArea.d.cts +42 -0
- package/dist/color-picker/ColorPickerArea.d.ts +42 -0
- package/dist/color-picker/ColorPickerAreaThumb.d.cts +38 -0
- package/dist/color-picker/ColorPickerAreaThumb.d.ts +38 -0
- package/dist/color-picker/ColorPickerEyeDropper.d.cts +30 -0
- package/dist/color-picker/ColorPickerEyeDropper.d.ts +30 -0
- package/dist/color-picker/ColorPickerFormatSelect.d.cts +25 -0
- package/dist/color-picker/ColorPickerFormatSelect.d.ts +25 -0
- package/dist/color-picker/ColorPickerHueSlider.d.cts +38 -0
- package/dist/color-picker/ColorPickerHueSlider.d.ts +38 -0
- package/dist/color-picker/ColorPickerHueSliderThumb.d.cts +31 -0
- package/dist/color-picker/ColorPickerHueSliderThumb.d.ts +31 -0
- package/dist/color-picker/ColorPickerInput.d.cts +30 -0
- package/dist/color-picker/ColorPickerInput.d.ts +30 -0
- package/dist/color-picker/ColorPickerSwatch.d.cts +39 -0
- package/dist/color-picker/ColorPickerSwatch.d.ts +39 -0
- package/dist/color-picker/ColorPickerSwatchGroup.d.cts +40 -0
- package/dist/color-picker/ColorPickerSwatchGroup.d.ts +40 -0
- package/dist/color-picker/index.d.cts +13 -0
- package/dist/color-picker/index.d.ts +13 -0
- package/dist/color-picker/types.d.cts +211 -0
- package/dist/color-picker/types.d.ts +211 -0
- package/dist/color-picker/useChannelSlider.d.cts +84 -0
- package/dist/color-picker/useChannelSlider.d.ts +84 -0
- package/dist/color-picker/usePointerRatio.d.cts +40 -0
- package/dist/color-picker/usePointerRatio.d.ts +40 -0
- package/dist/combobox/Combobox.cjs +1 -0
- package/dist/combobox/Combobox.d.cts +79 -0
- package/dist/combobox/Combobox.d.ts +79 -0
- package/dist/combobox/Combobox.js +1 -0
- package/dist/combobox/ComboboxContent.d.cts +27 -0
- package/dist/combobox/ComboboxContent.d.ts +27 -0
- package/dist/combobox/ComboboxEmpty.d.cts +21 -0
- package/dist/combobox/ComboboxEmpty.d.ts +21 -0
- package/dist/combobox/ComboboxInput.d.cts +24 -0
- package/dist/combobox/ComboboxInput.d.ts +24 -0
- package/dist/combobox/ComboboxItem.d.cts +25 -0
- package/dist/combobox/ComboboxItem.d.ts +25 -0
- package/dist/combobox/ComboboxPortal.d.cts +20 -0
- package/dist/combobox/ComboboxPortal.d.ts +20 -0
- package/dist/combobox/index.d.cts +7 -0
- package/dist/combobox/index.d.ts +7 -0
- package/dist/combobox/types.d.cts +275 -0
- package/dist/combobox/types.d.ts +275 -0
- package/dist/command/Command.cjs +1 -0
- package/dist/command/Command.d.cts +79 -0
- package/dist/command/Command.d.ts +79 -0
- package/dist/command/Command.js +1 -0
- package/dist/command/CommandEmpty.d.cts +17 -0
- package/dist/command/CommandEmpty.d.ts +17 -0
- package/dist/command/CommandGroup.d.cts +15 -0
- package/dist/command/CommandGroup.d.ts +15 -0
- package/dist/command/CommandInput.d.cts +25 -0
- package/dist/command/CommandInput.d.ts +25 -0
- package/dist/command/CommandItem.d.cts +21 -0
- package/dist/command/CommandItem.d.ts +21 -0
- package/dist/command/CommandList.d.cts +19 -0
- package/dist/command/CommandList.d.ts +19 -0
- package/dist/command/CommandLoading.d.cts +20 -0
- package/dist/command/CommandLoading.d.ts +20 -0
- package/dist/command/CommandSeparator.d.cts +14 -0
- package/dist/command/CommandSeparator.d.ts +14 -0
- package/dist/command/index.d.cts +9 -0
- package/dist/command/index.d.ts +9 -0
- package/dist/command/types.d.cts +119 -0
- package/dist/command/types.d.ts +119 -0
- package/dist/context-menu/ContextMenu.cjs +1 -0
- package/dist/context-menu/ContextMenu.d.cts +39 -0
- package/dist/context-menu/ContextMenu.d.ts +39 -0
- package/dist/context-menu/ContextMenu.js +1 -0
- package/dist/context-menu/ContextMenuCheckboxItem.d.cts +19 -0
- package/dist/context-menu/ContextMenuCheckboxItem.d.ts +19 -0
- package/dist/context-menu/ContextMenuContent.d.cts +30 -0
- package/dist/context-menu/ContextMenuContent.d.ts +30 -0
- package/dist/context-menu/ContextMenuGroup.d.cts +15 -0
- package/dist/context-menu/ContextMenuGroup.d.ts +15 -0
- package/dist/context-menu/ContextMenuItem.d.cts +31 -0
- package/dist/context-menu/ContextMenuItem.d.ts +31 -0
- package/dist/context-menu/ContextMenuItemIndicator.d.cts +17 -0
- package/dist/context-menu/ContextMenuItemIndicator.d.ts +17 -0
- package/dist/context-menu/ContextMenuLabel.d.cts +13 -0
- package/dist/context-menu/ContextMenuLabel.d.ts +13 -0
- package/dist/context-menu/ContextMenuPortal.d.cts +20 -0
- package/dist/context-menu/ContextMenuPortal.d.ts +20 -0
- package/dist/context-menu/ContextMenuRadioGroup.d.cts +22 -0
- package/dist/context-menu/ContextMenuRadioGroup.d.ts +22 -0
- package/dist/context-menu/ContextMenuRadioItem.d.cts +19 -0
- package/dist/context-menu/ContextMenuRadioItem.d.ts +19 -0
- package/dist/context-menu/ContextMenuSeparator.d.cts +14 -0
- package/dist/context-menu/ContextMenuSeparator.d.ts +14 -0
- package/dist/context-menu/ContextMenuSub.d.cts +45 -0
- package/dist/context-menu/ContextMenuSub.d.ts +45 -0
- package/dist/context-menu/ContextMenuTrigger.d.cts +25 -0
- package/dist/context-menu/ContextMenuTrigger.d.ts +25 -0
- package/dist/context-menu/index.d.cts +14 -0
- package/dist/context-menu/index.d.ts +14 -0
- package/dist/context-menu/types.d.cts +191 -0
- package/dist/context-menu/types.d.ts +191 -0
- package/dist/data-list/DataList.cjs +1 -0
- package/dist/data-list/DataList.d.cts +26 -0
- package/dist/data-list/DataList.d.ts +26 -0
- package/dist/data-list/DataList.js +1 -0
- package/dist/data-list/DataListItem.d.cts +26 -0
- package/dist/data-list/DataListItem.d.ts +26 -0
- package/dist/data-list/DataListLabel.d.cts +16 -0
- package/dist/data-list/DataListLabel.d.ts +16 -0
- package/dist/data-list/DataListValue.d.cts +18 -0
- package/dist/data-list/DataListValue.d.ts +18 -0
- package/dist/data-list/index.d.cts +5 -0
- package/dist/data-list/index.d.ts +5 -0
- package/dist/data-list/types.d.cts +27 -0
- package/dist/data-list/types.d.ts +27 -0
- package/dist/date-field/DateField.cjs +1 -0
- package/dist/date-field/DateField.d.cts +24 -0
- package/dist/date-field/DateField.d.ts +24 -0
- package/dist/date-field/DateField.js +1 -0
- package/dist/date-field/index.d.cts +2 -0
- package/dist/date-field/index.d.ts +2 -0
- package/dist/date-field/types.d.cts +83 -0
- package/dist/date-field/types.d.ts +83 -0
- package/dist/date-picker/DatePicker.cjs +1 -0
- package/dist/date-picker/DatePicker.d.cts +65 -0
- package/dist/date-picker/DatePicker.d.ts +65 -0
- package/dist/date-picker/DatePicker.js +1 -0
- package/dist/date-picker/DatePickerCalendar.d.cts +39 -0
- package/dist/date-picker/DatePickerCalendar.d.ts +39 -0
- package/dist/date-picker/DatePickerClose.d.cts +15 -0
- package/dist/date-picker/DatePickerClose.d.ts +15 -0
- package/dist/date-picker/DatePickerContent.d.cts +23 -0
- package/dist/date-picker/DatePickerContent.d.ts +23 -0
- package/dist/date-picker/DatePickerInput.d.cts +23 -0
- package/dist/date-picker/DatePickerInput.d.ts +23 -0
- package/dist/date-picker/DatePickerPortal.d.cts +20 -0
- package/dist/date-picker/DatePickerPortal.d.ts +20 -0
- package/dist/date-picker/DatePickerTimeField.d.cts +26 -0
- package/dist/date-picker/DatePickerTimeField.d.ts +26 -0
- package/dist/date-picker/DatePickerTrigger.d.cts +22 -0
- package/dist/date-picker/DatePickerTrigger.d.ts +22 -0
- package/dist/date-picker/index.d.cts +9 -0
- package/dist/date-picker/index.d.ts +9 -0
- package/dist/date-picker/types.d.cts +192 -0
- package/dist/date-picker/types.d.ts +192 -0
- package/dist/dialog/Dialog.cjs +1 -0
- package/dist/dialog/Dialog.d.cts +37 -0
- package/dist/dialog/Dialog.d.ts +37 -0
- package/dist/dialog/Dialog.js +1 -0
- package/dist/dialog/DialogClose.d.cts +15 -0
- package/dist/dialog/DialogClose.d.ts +15 -0
- package/dist/dialog/DialogContent.d.cts +28 -0
- package/dist/dialog/DialogContent.d.ts +28 -0
- package/dist/dialog/DialogDescription.d.cts +15 -0
- package/dist/dialog/DialogDescription.d.ts +15 -0
- package/dist/dialog/DialogOverlay.d.cts +16 -0
- package/dist/dialog/DialogOverlay.d.ts +16 -0
- package/dist/dialog/DialogPortal.d.cts +21 -0
- package/dist/dialog/DialogPortal.d.ts +21 -0
- package/dist/dialog/DialogTitle.d.cts +14 -0
- package/dist/dialog/DialogTitle.d.ts +14 -0
- package/dist/dialog/DialogTrigger.d.cts +17 -0
- package/dist/dialog/DialogTrigger.d.ts +17 -0
- package/dist/dialog/index.d.cts +9 -0
- package/dist/dialog/index.d.ts +9 -0
- package/dist/dialog/types.d.cts +127 -0
- package/dist/dialog/types.d.ts +127 -0
- package/dist/drawer/Drawer.cjs +1 -0
- package/dist/drawer/Drawer.d.cts +44 -0
- package/dist/drawer/Drawer.d.ts +44 -0
- package/dist/drawer/Drawer.js +1 -0
- package/dist/drawer/DrawerClose.d.cts +15 -0
- package/dist/drawer/DrawerClose.d.ts +15 -0
- package/dist/drawer/DrawerContent.d.cts +32 -0
- package/dist/drawer/DrawerContent.d.ts +32 -0
- package/dist/drawer/DrawerDescription.d.cts +15 -0
- package/dist/drawer/DrawerDescription.d.ts +15 -0
- package/dist/drawer/DrawerOverlay.d.cts +21 -0
- package/dist/drawer/DrawerOverlay.d.ts +21 -0
- package/dist/drawer/DrawerPortal.d.cts +23 -0
- package/dist/drawer/DrawerPortal.d.ts +23 -0
- package/dist/drawer/DrawerTitle.d.cts +14 -0
- package/dist/drawer/DrawerTitle.d.ts +14 -0
- package/dist/drawer/DrawerTrigger.d.cts +17 -0
- package/dist/drawer/DrawerTrigger.d.ts +17 -0
- package/dist/drawer/index.d.cts +9 -0
- package/dist/drawer/index.d.ts +9 -0
- package/dist/drawer/types.d.cts +144 -0
- package/dist/drawer/types.d.ts +144 -0
- package/dist/dropdown-menu/DropdownMenu.cjs +1 -0
- package/dist/dropdown-menu/DropdownMenu.d.cts +52 -0
- package/dist/dropdown-menu/DropdownMenu.d.ts +52 -0
- package/dist/dropdown-menu/DropdownMenu.js +1 -0
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.d.cts +20 -0
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.d.ts +20 -0
- package/dist/dropdown-menu/DropdownMenuContent.d.cts +33 -0
- package/dist/dropdown-menu/DropdownMenuContent.d.ts +33 -0
- package/dist/dropdown-menu/DropdownMenuGroup.d.cts +16 -0
- package/dist/dropdown-menu/DropdownMenuGroup.d.ts +16 -0
- package/dist/dropdown-menu/DropdownMenuItem.d.cts +31 -0
- package/dist/dropdown-menu/DropdownMenuItem.d.ts +31 -0
- package/dist/dropdown-menu/DropdownMenuItemIndicator.d.cts +17 -0
- package/dist/dropdown-menu/DropdownMenuItemIndicator.d.ts +17 -0
- package/dist/dropdown-menu/DropdownMenuLabel.d.cts +13 -0
- package/dist/dropdown-menu/DropdownMenuLabel.d.ts +13 -0
- package/dist/dropdown-menu/DropdownMenuPortal.d.cts +20 -0
- package/dist/dropdown-menu/DropdownMenuPortal.d.ts +20 -0
- package/dist/dropdown-menu/DropdownMenuRadioGroup.d.cts +22 -0
- package/dist/dropdown-menu/DropdownMenuRadioGroup.d.ts +22 -0
- package/dist/dropdown-menu/DropdownMenuRadioItem.d.cts +19 -0
- package/dist/dropdown-menu/DropdownMenuRadioItem.d.ts +19 -0
- package/dist/dropdown-menu/DropdownMenuSeparator.d.cts +14 -0
- package/dist/dropdown-menu/DropdownMenuSeparator.d.ts +14 -0
- package/dist/dropdown-menu/DropdownMenuSub.d.cts +40 -0
- package/dist/dropdown-menu/DropdownMenuSub.d.ts +40 -0
- package/dist/dropdown-menu/DropdownMenuTrigger.d.cts +19 -0
- package/dist/dropdown-menu/DropdownMenuTrigger.d.ts +19 -0
- package/dist/dropdown-menu/index.d.cts +14 -0
- package/dist/dropdown-menu/index.d.ts +14 -0
- package/dist/dropdown-menu/types.d.cts +176 -0
- package/dist/dropdown-menu/types.d.ts +176 -0
- package/dist/editable/Editable.cjs +1 -0
- package/dist/editable/Editable.d.cts +42 -0
- package/dist/editable/Editable.d.ts +42 -0
- package/dist/editable/Editable.js +1 -0
- package/dist/editable/EditableCancelTrigger.d.cts +22 -0
- package/dist/editable/EditableCancelTrigger.d.ts +22 -0
- package/dist/editable/EditableEditTrigger.d.cts +24 -0
- package/dist/editable/EditableEditTrigger.d.ts +24 -0
- package/dist/editable/EditableInput.d.cts +25 -0
- package/dist/editable/EditableInput.d.ts +25 -0
- package/dist/editable/EditablePreview.d.cts +27 -0
- package/dist/editable/EditablePreview.d.ts +27 -0
- package/dist/editable/EditableSubmitTrigger.d.cts +23 -0
- package/dist/editable/EditableSubmitTrigger.d.ts +23 -0
- package/dist/editable/EditableTextarea.d.cts +23 -0
- package/dist/editable/EditableTextarea.d.ts +23 -0
- package/dist/editable/index.d.cts +8 -0
- package/dist/editable/index.d.ts +8 -0
- package/dist/editable/types.d.cts +151 -0
- package/dist/editable/types.d.ts +151 -0
- package/dist/field/Field.cjs +1 -0
- package/dist/field/Field.d.cts +49 -0
- package/dist/field/Field.d.ts +49 -0
- package/dist/field/Field.js +1 -0
- package/dist/field/FieldCharacterCount.d.cts +29 -0
- package/dist/field/FieldCharacterCount.d.ts +29 -0
- package/dist/field/FieldDescription.d.cts +17 -0
- package/dist/field/FieldDescription.d.ts +17 -0
- package/dist/field/FieldError.d.cts +21 -0
- package/dist/field/FieldError.d.ts +21 -0
- package/dist/field/FieldLabel.d.cts +18 -0
- package/dist/field/FieldLabel.d.ts +18 -0
- package/dist/field/fieldCore.d.cts +284 -0
- package/dist/field/fieldCore.d.ts +284 -0
- package/dist/field/index.d.cts +7 -0
- package/dist/field/index.d.ts +7 -0
- package/dist/field/types.d.cts +107 -0
- package/dist/field/types.d.ts +107 -0
- package/dist/file-upload/FileUpload.cjs +1 -0
- package/dist/file-upload/FileUpload.d.cts +59 -0
- package/dist/file-upload/FileUpload.d.ts +59 -0
- package/dist/file-upload/FileUpload.js +1 -0
- package/dist/file-upload/FileUploadDropzone.d.cts +18 -0
- package/dist/file-upload/FileUploadDropzone.d.ts +18 -0
- package/dist/file-upload/FileUploadInput.d.cts +18 -0
- package/dist/file-upload/FileUploadInput.d.ts +18 -0
- package/dist/file-upload/FileUploadItem.d.cts +23 -0
- package/dist/file-upload/FileUploadItem.d.ts +23 -0
- package/dist/file-upload/FileUploadItemDelete.d.cts +16 -0
- package/dist/file-upload/FileUploadItemDelete.d.ts +16 -0
- package/dist/file-upload/FileUploadTrigger.d.cts +13 -0
- package/dist/file-upload/FileUploadTrigger.d.ts +13 -0
- package/dist/file-upload/index.d.cts +7 -0
- package/dist/file-upload/index.d.ts +7 -0
- package/dist/file-upload/types.d.cts +145 -0
- package/dist/file-upload/types.d.ts +145 -0
- package/dist/floating-panel/FloatingPanel.cjs +1 -0
- package/dist/floating-panel/FloatingPanel.d.cts +51 -0
- package/dist/floating-panel/FloatingPanel.d.ts +51 -0
- package/dist/floating-panel/FloatingPanel.js +1 -0
- package/dist/floating-panel/FloatingPanelCloseTrigger.d.cts +17 -0
- package/dist/floating-panel/FloatingPanelCloseTrigger.d.ts +17 -0
- package/dist/floating-panel/FloatingPanelContent.d.cts +39 -0
- package/dist/floating-panel/FloatingPanelContent.d.ts +39 -0
- package/dist/floating-panel/FloatingPanelHeader.d.cts +26 -0
- package/dist/floating-panel/FloatingPanelHeader.d.ts +26 -0
- package/dist/floating-panel/FloatingPanelPortal.d.cts +25 -0
- package/dist/floating-panel/FloatingPanelPortal.d.ts +25 -0
- package/dist/floating-panel/FloatingPanelResizeTrigger.d.cts +32 -0
- package/dist/floating-panel/FloatingPanelResizeTrigger.d.ts +32 -0
- package/dist/floating-panel/FloatingPanelStageTrigger.d.cts +23 -0
- package/dist/floating-panel/FloatingPanelStageTrigger.d.ts +23 -0
- package/dist/floating-panel/FloatingPanelTitle.d.cts +16 -0
- package/dist/floating-panel/FloatingPanelTitle.d.ts +16 -0
- package/dist/floating-panel/FloatingPanelTrigger.d.cts +19 -0
- package/dist/floating-panel/FloatingPanelTrigger.d.ts +19 -0
- package/dist/floating-panel/index.d.cts +10 -0
- package/dist/floating-panel/index.d.ts +10 -0
- package/dist/floating-panel/types.d.cts +268 -0
- package/dist/floating-panel/types.d.ts +268 -0
- package/dist/form/Form.cjs +1 -0
- package/dist/form/Form.d.cts +38 -0
- package/dist/form/Form.d.ts +38 -0
- package/dist/form/Form.js +1 -0
- package/dist/form/FormControl.d.cts +20 -0
- package/dist/form/FormControl.d.ts +20 -0
- package/dist/form/FormErrorSummary.d.cts +30 -0
- package/dist/form/FormErrorSummary.d.ts +30 -0
- package/dist/form/FormField.d.cts +25 -0
- package/dist/form/FormField.d.ts +25 -0
- package/dist/form/FormLabel.d.cts +18 -0
- package/dist/form/FormLabel.d.ts +18 -0
- package/dist/form/FormMessage.d.cts +21 -0
- package/dist/form/FormMessage.d.ts +21 -0
- package/dist/form/FormSubmit.d.cts +14 -0
- package/dist/form/FormSubmit.d.ts +14 -0
- package/dist/form/index.d.cts +8 -0
- package/dist/form/index.d.ts +8 -0
- package/dist/form/types.d.cts +76 -0
- package/dist/form/types.d.ts +76 -0
- package/dist/hover-card/HoverCard.cjs +1 -0
- package/dist/hover-card/HoverCard.d.cts +55 -0
- package/dist/hover-card/HoverCard.d.ts +55 -0
- package/dist/hover-card/HoverCard.js +1 -0
- package/dist/hover-card/HoverCardContent.d.cts +27 -0
- package/dist/hover-card/HoverCardContent.d.ts +27 -0
- package/dist/hover-card/HoverCardPortal.d.cts +20 -0
- package/dist/hover-card/HoverCardPortal.d.ts +20 -0
- package/dist/hover-card/HoverCardTrigger.d.cts +20 -0
- package/dist/hover-card/HoverCardTrigger.d.ts +20 -0
- package/dist/hover-card/index.d.cts +5 -0
- package/dist/hover-card/index.d.ts +5 -0
- package/dist/hover-card/types.d.cts +109 -0
- package/dist/hover-card/types.d.ts +109 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +98 -0
- package/dist/index.d.ts +98 -0
- package/dist/index.js +1 -0
- package/dist/kbd/Kbd.cjs +1 -0
- package/dist/kbd/Kbd.d.cts +15 -0
- package/dist/kbd/Kbd.d.ts +15 -0
- package/dist/kbd/Kbd.js +1 -0
- package/dist/kbd/index.d.cts +2 -0
- package/dist/kbd/index.d.ts +2 -0
- package/dist/kbd/types.d.cts +4 -0
- package/dist/kbd/types.d.ts +4 -0
- package/dist/label/Label.cjs +1 -0
- package/dist/label/Label.d.cts +14 -0
- package/dist/label/Label.d.ts +14 -0
- package/dist/label/Label.js +1 -0
- package/dist/label/index.d.cts +2 -0
- package/dist/label/index.d.ts +2 -0
- package/dist/label/types.d.cts +4 -0
- package/dist/label/types.d.ts +4 -0
- package/dist/listbox/Listbox.cjs +1 -0
- package/dist/listbox/Listbox.d.cts +51 -0
- package/dist/listbox/Listbox.d.ts +51 -0
- package/dist/listbox/Listbox.js +1 -0
- package/dist/listbox/ListboxGroup.d.cts +27 -0
- package/dist/listbox/ListboxGroup.d.ts +27 -0
- package/dist/listbox/ListboxItem.d.cts +30 -0
- package/dist/listbox/ListboxItem.d.ts +30 -0
- package/dist/listbox/ListboxItemIndicator.d.cts +21 -0
- package/dist/listbox/ListboxItemIndicator.d.ts +21 -0
- package/dist/listbox/ListboxLabel.d.cts +19 -0
- package/dist/listbox/ListboxLabel.d.ts +19 -0
- package/dist/listbox/index.d.cts +6 -0
- package/dist/listbox/index.d.ts +6 -0
- package/dist/listbox/types.d.cts +96 -0
- package/dist/listbox/types.d.ts +96 -0
- package/dist/loading-overlay/LoadingOverlay.cjs +1 -0
- package/dist/loading-overlay/LoadingOverlay.d.cts +42 -0
- package/dist/loading-overlay/LoadingOverlay.d.ts +42 -0
- package/dist/loading-overlay/LoadingOverlay.js +1 -0
- package/dist/loading-overlay/LoadingOverlayBackdrop.d.cts +24 -0
- package/dist/loading-overlay/LoadingOverlayBackdrop.d.ts +24 -0
- package/dist/loading-overlay/LoadingOverlayContent.d.cts +29 -0
- package/dist/loading-overlay/LoadingOverlayContent.d.ts +29 -0
- package/dist/loading-overlay/index.d.cts +4 -0
- package/dist/loading-overlay/index.d.ts +4 -0
- package/dist/loading-overlay/types.d.cts +74 -0
- package/dist/loading-overlay/types.d.ts +74 -0
- package/dist/menubar/Menubar.cjs +1 -0
- package/dist/menubar/Menubar.d.cts +51 -0
- package/dist/menubar/Menubar.d.ts +51 -0
- package/dist/menubar/Menubar.js +1 -0
- package/dist/menubar/MenubarCheckboxItem.d.cts +18 -0
- package/dist/menubar/MenubarCheckboxItem.d.ts +18 -0
- package/dist/menubar/MenubarContent.d.cts +30 -0
- package/dist/menubar/MenubarContent.d.ts +30 -0
- package/dist/menubar/MenubarGroup.d.cts +15 -0
- package/dist/menubar/MenubarGroup.d.ts +15 -0
- package/dist/menubar/MenubarItem.d.cts +28 -0
- package/dist/menubar/MenubarItem.d.ts +28 -0
- package/dist/menubar/MenubarItemIndicator.d.cts +19 -0
- package/dist/menubar/MenubarItemIndicator.d.ts +19 -0
- package/dist/menubar/MenubarLabel.d.cts +12 -0
- package/dist/menubar/MenubarLabel.d.ts +12 -0
- package/dist/menubar/MenubarMenu.d.cts +29 -0
- package/dist/menubar/MenubarMenu.d.ts +29 -0
- package/dist/menubar/MenubarPortal.d.cts +19 -0
- package/dist/menubar/MenubarPortal.d.ts +19 -0
- package/dist/menubar/MenubarRadioGroup.d.cts +22 -0
- package/dist/menubar/MenubarRadioGroup.d.ts +22 -0
- package/dist/menubar/MenubarRadioItem.d.cts +15 -0
- package/dist/menubar/MenubarRadioItem.d.ts +15 -0
- package/dist/menubar/MenubarSeparator.d.cts +14 -0
- package/dist/menubar/MenubarSeparator.d.ts +14 -0
- package/dist/menubar/MenubarSub.d.cts +40 -0
- package/dist/menubar/MenubarSub.d.ts +40 -0
- package/dist/menubar/MenubarTrigger.d.cts +17 -0
- package/dist/menubar/MenubarTrigger.d.ts +17 -0
- package/dist/menubar/index.d.cts +15 -0
- package/dist/menubar/index.d.ts +15 -0
- package/dist/menubar/types.d.cts +188 -0
- package/dist/menubar/types.d.ts +188 -0
- package/dist/meter/Meter.cjs +1 -0
- package/dist/meter/Meter.d.cts +45 -0
- package/dist/meter/Meter.d.ts +45 -0
- package/dist/meter/Meter.js +1 -0
- package/dist/meter/MeterIndicator.d.cts +16 -0
- package/dist/meter/MeterIndicator.d.ts +16 -0
- package/dist/meter/index.d.cts +3 -0
- package/dist/meter/index.d.ts +3 -0
- package/dist/meter/types.d.cts +56 -0
- package/dist/meter/types.d.ts +56 -0
- package/dist/multi-select/MultiSelect.cjs +1 -0
- package/dist/multi-select/MultiSelect.d.cts +68 -0
- package/dist/multi-select/MultiSelect.d.ts +68 -0
- package/dist/multi-select/MultiSelect.js +1 -0
- package/dist/multi-select/MultiSelectContent.d.cts +35 -0
- package/dist/multi-select/MultiSelectContent.d.ts +35 -0
- package/dist/multi-select/MultiSelectInput.d.cts +25 -0
- package/dist/multi-select/MultiSelectInput.d.ts +25 -0
- package/dist/multi-select/MultiSelectItem.d.cts +26 -0
- package/dist/multi-select/MultiSelectItem.d.ts +26 -0
- package/dist/multi-select/MultiSelectList.d.cts +23 -0
- package/dist/multi-select/MultiSelectList.d.ts +23 -0
- package/dist/multi-select/MultiSelectPortal.d.cts +22 -0
- package/dist/multi-select/MultiSelectPortal.d.ts +22 -0
- package/dist/multi-select/MultiSelectTag.d.cts +25 -0
- package/dist/multi-select/MultiSelectTag.d.ts +25 -0
- package/dist/multi-select/MultiSelectTagList.d.cts +30 -0
- package/dist/multi-select/MultiSelectTagList.d.ts +30 -0
- package/dist/multi-select/MultiSelectTagRemove.d.cts +22 -0
- package/dist/multi-select/MultiSelectTagRemove.d.ts +22 -0
- package/dist/multi-select/index.d.cts +10 -0
- package/dist/multi-select/index.d.ts +10 -0
- package/dist/multi-select/types.d.cts +245 -0
- package/dist/multi-select/types.d.ts +245 -0
- package/dist/navigation-menu/NavigationMenu.cjs +1 -0
- package/dist/navigation-menu/NavigationMenu.d.cts +35 -0
- package/dist/navigation-menu/NavigationMenu.d.ts +35 -0
- package/dist/navigation-menu/NavigationMenu.js +1 -0
- package/dist/navigation-menu/NavigationMenuContent.d.cts +18 -0
- package/dist/navigation-menu/NavigationMenuContent.d.ts +18 -0
- package/dist/navigation-menu/NavigationMenuIndicator.d.cts +15 -0
- package/dist/navigation-menu/NavigationMenuIndicator.d.ts +15 -0
- package/dist/navigation-menu/NavigationMenuItem.d.cts +22 -0
- package/dist/navigation-menu/NavigationMenuItem.d.ts +22 -0
- package/dist/navigation-menu/NavigationMenuLink.d.cts +14 -0
- package/dist/navigation-menu/NavigationMenuLink.d.ts +14 -0
- package/dist/navigation-menu/NavigationMenuList.d.cts +19 -0
- package/dist/navigation-menu/NavigationMenuList.d.ts +19 -0
- package/dist/navigation-menu/NavigationMenuTrigger.d.cts +19 -0
- package/dist/navigation-menu/NavigationMenuTrigger.d.ts +19 -0
- package/dist/navigation-menu/index.d.cts +8 -0
- package/dist/navigation-menu/index.d.ts +8 -0
- package/dist/navigation-menu/types.d.cts +90 -0
- package/dist/navigation-menu/types.d.ts +90 -0
- package/dist/number-field/NumberField.cjs +1 -0
- package/dist/number-field/NumberField.d.cts +32 -0
- package/dist/number-field/NumberField.d.ts +32 -0
- package/dist/number-field/NumberField.js +1 -0
- package/dist/number-field/NumberFieldDecrement.d.cts +19 -0
- package/dist/number-field/NumberFieldDecrement.d.ts +19 -0
- package/dist/number-field/NumberFieldIncrement.d.cts +28 -0
- package/dist/number-field/NumberFieldIncrement.d.ts +28 -0
- package/dist/number-field/NumberFieldInput.d.cts +25 -0
- package/dist/number-field/NumberFieldInput.d.ts +25 -0
- package/dist/number-field/index.d.cts +5 -0
- package/dist/number-field/index.d.ts +5 -0
- package/dist/number-field/types.d.cts +113 -0
- package/dist/number-field/types.d.ts +113 -0
- package/dist/pagination/Pagination.cjs +1 -0
- package/dist/pagination/Pagination.d.cts +44 -0
- package/dist/pagination/Pagination.d.ts +44 -0
- package/dist/pagination/Pagination.js +1 -0
- package/dist/pagination/PaginationEllipsis.d.cts +15 -0
- package/dist/pagination/PaginationEllipsis.d.ts +15 -0
- package/dist/pagination/PaginationFirst.d.cts +14 -0
- package/dist/pagination/PaginationFirst.d.ts +14 -0
- package/dist/pagination/PaginationItem.d.cts +15 -0
- package/dist/pagination/PaginationItem.d.ts +15 -0
- package/dist/pagination/PaginationLast.d.cts +14 -0
- package/dist/pagination/PaginationLast.d.ts +14 -0
- package/dist/pagination/PaginationLink.d.cts +16 -0
- package/dist/pagination/PaginationLink.d.ts +16 -0
- package/dist/pagination/PaginationList.d.cts +16 -0
- package/dist/pagination/PaginationList.d.ts +16 -0
- package/dist/pagination/PaginationNext.d.cts +14 -0
- package/dist/pagination/PaginationNext.d.ts +14 -0
- package/dist/pagination/PaginationPrevious.d.cts +14 -0
- package/dist/pagination/PaginationPrevious.d.ts +14 -0
- package/dist/pagination/index.d.cts +11 -0
- package/dist/pagination/index.d.ts +11 -0
- package/dist/pagination/pages.d.cts +41 -0
- package/dist/pagination/pages.d.ts +41 -0
- package/dist/pagination/types.d.cts +96 -0
- package/dist/pagination/types.d.ts +96 -0
- package/dist/password-input/PasswordInput.cjs +1 -0
- package/dist/password-input/PasswordInput.d.cts +40 -0
- package/dist/password-input/PasswordInput.d.ts +40 -0
- package/dist/password-input/PasswordInput.js +1 -0
- package/dist/password-input/PasswordInputField.d.cts +28 -0
- package/dist/password-input/PasswordInputField.d.ts +28 -0
- package/dist/password-input/PasswordInputToggle.d.cts +30 -0
- package/dist/password-input/PasswordInputToggle.d.ts +30 -0
- package/dist/password-input/index.d.cts +4 -0
- package/dist/password-input/index.d.ts +4 -0
- package/dist/password-input/types.d.cts +54 -0
- package/dist/password-input/types.d.ts +54 -0
- package/dist/pin-input/PinInput.cjs +1 -0
- package/dist/pin-input/PinInput.d.cts +37 -0
- package/dist/pin-input/PinInput.d.ts +37 -0
- package/dist/pin-input/PinInput.js +1 -0
- package/dist/pin-input/PinInputField.d.cts +25 -0
- package/dist/pin-input/PinInputField.d.ts +25 -0
- package/dist/pin-input/index.d.cts +3 -0
- package/dist/pin-input/index.d.ts +3 -0
- package/dist/pin-input/types.d.cts +111 -0
- package/dist/pin-input/types.d.ts +111 -0
- package/dist/popover/Popover.cjs +1 -0
- package/dist/popover/Popover.d.cts +52 -0
- package/dist/popover/Popover.d.ts +52 -0
- package/dist/popover/Popover.js +1 -0
- package/dist/popover/PopoverClose.d.cts +14 -0
- package/dist/popover/PopoverClose.d.ts +14 -0
- package/dist/popover/PopoverContent.d.cts +34 -0
- package/dist/popover/PopoverContent.d.ts +34 -0
- package/dist/popover/PopoverPortal.d.cts +20 -0
- package/dist/popover/PopoverPortal.d.ts +20 -0
- package/dist/popover/PopoverTrigger.d.cts +18 -0
- package/dist/popover/PopoverTrigger.d.ts +18 -0
- package/dist/popover/index.d.cts +6 -0
- package/dist/popover/index.d.ts +6 -0
- package/dist/popover/types.d.cts +112 -0
- package/dist/popover/types.d.ts +112 -0
- package/dist/progress/Progress.cjs +1 -0
- package/dist/progress/Progress.d.cts +25 -0
- package/dist/progress/Progress.d.ts +25 -0
- package/dist/progress/Progress.js +1 -0
- package/dist/progress/ProgressCircle.d.cts +53 -0
- package/dist/progress/ProgressCircle.d.ts +53 -0
- package/dist/progress/ProgressCircleIndicator.d.cts +29 -0
- package/dist/progress/ProgressCircleIndicator.d.ts +29 -0
- package/dist/progress/ProgressIndicator.d.cts +16 -0
- package/dist/progress/ProgressIndicator.d.ts +16 -0
- package/dist/progress/index.d.cts +5 -0
- package/dist/progress/index.d.ts +5 -0
- package/dist/progress/types.d.cts +54 -0
- package/dist/progress/types.d.ts +54 -0
- package/dist/qr-code/QrCode.cjs +1 -0
- package/dist/qr-code/QrCode.d.cts +41 -0
- package/dist/qr-code/QrCode.d.ts +41 -0
- package/dist/qr-code/QrCode.js +1 -0
- package/dist/qr-code/QrCodeFrame.d.cts +25 -0
- package/dist/qr-code/QrCodeFrame.d.ts +25 -0
- package/dist/qr-code/QrCodeOverlay.d.cts +32 -0
- package/dist/qr-code/QrCodeOverlay.d.ts +32 -0
- package/dist/qr-code/QrCodePattern.d.cts +22 -0
- package/dist/qr-code/QrCodePattern.d.ts +22 -0
- package/dist/qr-code/encoder.d.cts +73 -0
- package/dist/qr-code/encoder.d.ts +73 -0
- package/dist/qr-code/index.d.cts +5 -0
- package/dist/qr-code/index.d.ts +5 -0
- package/dist/qr-code/types.d.cts +92 -0
- package/dist/qr-code/types.d.ts +92 -0
- package/dist/radio-card/RadioCard.cjs +1 -0
- package/dist/radio-card/RadioCard.d.cts +42 -0
- package/dist/radio-card/RadioCard.d.ts +42 -0
- package/dist/radio-card/RadioCard.js +1 -0
- package/dist/radio-card/RadioCardControl.d.cts +28 -0
- package/dist/radio-card/RadioCardControl.d.ts +28 -0
- package/dist/radio-card/RadioCardDescription.d.cts +21 -0
- package/dist/radio-card/RadioCardDescription.d.ts +21 -0
- package/dist/radio-card/RadioCardIndicator.d.cts +22 -0
- package/dist/radio-card/RadioCardIndicator.d.ts +22 -0
- package/dist/radio-card/RadioCardLabel.d.cts +21 -0
- package/dist/radio-card/RadioCardLabel.d.ts +21 -0
- package/dist/radio-card/index.d.cts +6 -0
- package/dist/radio-card/index.d.ts +6 -0
- package/dist/radio-card/types.d.cts +43 -0
- package/dist/radio-card/types.d.ts +43 -0
- package/dist/radio-group/RadioGroup.cjs +1 -0
- package/dist/radio-group/RadioGroup.d.cts +32 -0
- package/dist/radio-group/RadioGroup.d.ts +32 -0
- package/dist/radio-group/RadioGroup.js +1 -0
- package/dist/radio-group/RadioGroupIndicator.d.cts +15 -0
- package/dist/radio-group/RadioGroupIndicator.d.ts +15 -0
- package/dist/radio-group/RadioGroupItem.d.cts +31 -0
- package/dist/radio-group/RadioGroupItem.d.ts +31 -0
- package/dist/radio-group/index.d.cts +4 -0
- package/dist/radio-group/index.d.ts +4 -0
- package/dist/radio-group/types.d.cts +81 -0
- package/dist/radio-group/types.d.ts +81 -0
- package/dist/rating/Rating.cjs +1 -0
- package/dist/rating/Rating.d.cts +43 -0
- package/dist/rating/Rating.d.ts +43 -0
- package/dist/rating/Rating.js +1 -0
- package/dist/rating/RatingItem.d.cts +28 -0
- package/dist/rating/RatingItem.d.ts +28 -0
- package/dist/rating/index.d.cts +3 -0
- package/dist/rating/index.d.ts +3 -0
- package/dist/rating/types.d.cts +93 -0
- package/dist/rating/types.d.ts +93 -0
- package/dist/resizable/Resizable.cjs +1 -0
- package/dist/resizable/Resizable.d.cts +29 -0
- package/dist/resizable/Resizable.d.ts +29 -0
- package/dist/resizable/Resizable.js +1 -0
- package/dist/resizable/ResizableHandle.d.cts +21 -0
- package/dist/resizable/ResizableHandle.d.ts +21 -0
- package/dist/resizable/ResizablePanel.d.cts +19 -0
- package/dist/resizable/ResizablePanel.d.ts +19 -0
- package/dist/resizable/index.d.cts +4 -0
- package/dist/resizable/index.d.ts +4 -0
- package/dist/resizable/types.d.cts +72 -0
- package/dist/resizable/types.d.ts +72 -0
- package/dist/scroll-area/ScrollArea.cjs +1 -0
- package/dist/scroll-area/ScrollArea.d.cts +34 -0
- package/dist/scroll-area/ScrollArea.d.ts +34 -0
- package/dist/scroll-area/ScrollArea.js +1 -0
- package/dist/scroll-area/ScrollAreaCorner.d.cts +21 -0
- package/dist/scroll-area/ScrollAreaCorner.d.ts +21 -0
- package/dist/scroll-area/ScrollAreaScrollbar.d.cts +20 -0
- package/dist/scroll-area/ScrollAreaScrollbar.d.ts +20 -0
- package/dist/scroll-area/ScrollAreaThumb.d.cts +17 -0
- package/dist/scroll-area/ScrollAreaThumb.d.ts +17 -0
- package/dist/scroll-area/ScrollAreaViewport.d.cts +19 -0
- package/dist/scroll-area/ScrollAreaViewport.d.ts +19 -0
- package/dist/scroll-area/index.d.cts +6 -0
- package/dist/scroll-area/index.d.ts +6 -0
- package/dist/scroll-area/types.d.cts +79 -0
- package/dist/scroll-area/types.d.ts +79 -0
- package/dist/segmented-control/SegmentedControl.cjs +1 -0
- package/dist/segmented-control/SegmentedControl.d.cts +46 -0
- package/dist/segmented-control/SegmentedControl.d.ts +46 -0
- package/dist/segmented-control/SegmentedControl.js +1 -0
- package/dist/segmented-control/SegmentedControlIndicator.d.cts +47 -0
- package/dist/segmented-control/SegmentedControlIndicator.d.ts +47 -0
- package/dist/segmented-control/SegmentedControlItem.d.cts +21 -0
- package/dist/segmented-control/SegmentedControlItem.d.ts +21 -0
- package/dist/segmented-control/index.d.cts +4 -0
- package/dist/segmented-control/index.d.ts +4 -0
- package/dist/segmented-control/types.d.cts +73 -0
- package/dist/segmented-control/types.d.ts +73 -0
- package/dist/select/Select.cjs +1 -0
- package/dist/select/Select.d.cts +67 -0
- package/dist/select/Select.d.ts +67 -0
- package/dist/select/Select.js +1 -0
- package/dist/select/SelectContent.d.cts +30 -0
- package/dist/select/SelectContent.d.ts +30 -0
- package/dist/select/SelectGroup.d.cts +17 -0
- package/dist/select/SelectGroup.d.ts +17 -0
- package/dist/select/SelectIcon.d.cts +16 -0
- package/dist/select/SelectIcon.d.ts +16 -0
- package/dist/select/SelectItem.d.cts +28 -0
- package/dist/select/SelectItem.d.ts +28 -0
- package/dist/select/SelectItemIndicator.d.cts +16 -0
- package/dist/select/SelectItemIndicator.d.ts +16 -0
- package/dist/select/SelectItemText.d.cts +15 -0
- package/dist/select/SelectItemText.d.ts +15 -0
- package/dist/select/SelectLabel.d.cts +17 -0
- package/dist/select/SelectLabel.d.ts +17 -0
- package/dist/select/SelectPortal.d.cts +24 -0
- package/dist/select/SelectPortal.d.ts +24 -0
- package/dist/select/SelectSeparator.d.cts +16 -0
- package/dist/select/SelectSeparator.d.ts +16 -0
- package/dist/select/SelectTrigger.d.cts +27 -0
- package/dist/select/SelectTrigger.d.ts +27 -0
- package/dist/select/SelectValue.d.cts +24 -0
- package/dist/select/SelectValue.d.ts +24 -0
- package/dist/select/SelectViewport.d.cts +16 -0
- package/dist/select/SelectViewport.d.ts +16 -0
- package/dist/select/index.d.cts +14 -0
- package/dist/select/index.d.ts +14 -0
- package/dist/select/types.d.cts +258 -0
- package/dist/select/types.d.ts +258 -0
- package/dist/separator/Separator.cjs +1 -0
- package/dist/separator/Separator.d.cts +18 -0
- package/dist/separator/Separator.d.ts +18 -0
- package/dist/separator/Separator.js +1 -0
- package/dist/separator/index.d.cts +2 -0
- package/dist/separator/index.d.ts +2 -0
- package/dist/separator/types.d.cts +16 -0
- package/dist/separator/types.d.ts +16 -0
- package/dist/skeleton/Skeleton.cjs +1 -0
- package/dist/skeleton/Skeleton.d.cts +14 -0
- package/dist/skeleton/Skeleton.d.ts +14 -0
- package/dist/skeleton/Skeleton.js +1 -0
- package/dist/skeleton/index.d.cts +2 -0
- package/dist/skeleton/index.d.ts +2 -0
- package/dist/skeleton/types.d.cts +4 -0
- package/dist/skeleton/types.d.ts +4 -0
- package/dist/skip-link/SkipLink.cjs +1 -0
- package/dist/skip-link/SkipLink.d.cts +20 -0
- package/dist/skip-link/SkipLink.d.ts +20 -0
- package/dist/skip-link/SkipLink.js +1 -0
- package/dist/skip-link/index.d.cts +2 -0
- package/dist/skip-link/index.d.ts +2 -0
- package/dist/skip-link/types.d.cts +10 -0
- package/dist/skip-link/types.d.ts +10 -0
- package/dist/slider/Slider.cjs +1 -0
- package/dist/slider/Slider.d.cts +28 -0
- package/dist/slider/Slider.d.ts +28 -0
- package/dist/slider/Slider.js +1 -0
- package/dist/slider/SliderRange.d.cts +17 -0
- package/dist/slider/SliderRange.d.ts +17 -0
- package/dist/slider/SliderThumb.d.cts +25 -0
- package/dist/slider/SliderThumb.d.ts +25 -0
- package/dist/slider/SliderTrack.d.cts +18 -0
- package/dist/slider/SliderTrack.d.ts +18 -0
- package/dist/slider/index.d.cts +5 -0
- package/dist/slider/index.d.ts +5 -0
- package/dist/slider/types.d.cts +90 -0
- package/dist/slider/types.d.ts +90 -0
- package/dist/speed-dial/SpeedDial.cjs +1 -0
- package/dist/speed-dial/SpeedDial.d.cts +54 -0
- package/dist/speed-dial/SpeedDial.d.ts +54 -0
- package/dist/speed-dial/SpeedDial.js +1 -0
- package/dist/speed-dial/SpeedDialContent.d.cts +38 -0
- package/dist/speed-dial/SpeedDialContent.d.ts +38 -0
- package/dist/speed-dial/SpeedDialItem.d.cts +42 -0
- package/dist/speed-dial/SpeedDialItem.d.ts +42 -0
- package/dist/speed-dial/SpeedDialItemLabel.d.cts +43 -0
- package/dist/speed-dial/SpeedDialItemLabel.d.ts +43 -0
- package/dist/speed-dial/SpeedDialPortal.d.cts +24 -0
- package/dist/speed-dial/SpeedDialPortal.d.ts +24 -0
- package/dist/speed-dial/SpeedDialTrigger.d.cts +24 -0
- package/dist/speed-dial/SpeedDialTrigger.d.ts +24 -0
- package/dist/speed-dial/index.d.cts +7 -0
- package/dist/speed-dial/index.d.ts +7 -0
- package/dist/speed-dial/types.d.cts +168 -0
- package/dist/speed-dial/types.d.ts +168 -0
- package/dist/spinner/Spinner.cjs +1 -0
- package/dist/spinner/Spinner.d.cts +15 -0
- package/dist/spinner/Spinner.d.ts +15 -0
- package/dist/spinner/Spinner.js +1 -0
- package/dist/spinner/index.d.cts +2 -0
- package/dist/spinner/index.d.ts +2 -0
- package/dist/spinner/types.d.cts +9 -0
- package/dist/spinner/types.d.ts +9 -0
- package/dist/split-button/SplitButton.cjs +1 -0
- package/dist/split-button/SplitButton.d.cts +27 -0
- package/dist/split-button/SplitButton.d.ts +27 -0
- package/dist/split-button/SplitButton.js +1 -0
- package/dist/split-button/SplitButtonAction.d.cts +12 -0
- package/dist/split-button/SplitButtonAction.d.ts +12 -0
- package/dist/split-button/SplitButtonTrigger.d.cts +16 -0
- package/dist/split-button/SplitButtonTrigger.d.ts +16 -0
- package/dist/split-button/index.d.cts +4 -0
- package/dist/split-button/index.d.ts +4 -0
- package/dist/split-button/types.d.cts +10 -0
- package/dist/split-button/types.d.ts +10 -0
- package/dist/steps/Steps.cjs +1 -0
- package/dist/steps/Steps.d.cts +45 -0
- package/dist/steps/Steps.d.ts +45 -0
- package/dist/steps/Steps.js +1 -0
- package/dist/steps/StepsItem.d.cts +17 -0
- package/dist/steps/StepsItem.d.ts +17 -0
- package/dist/steps/StepsTrigger.d.cts +19 -0
- package/dist/steps/StepsTrigger.d.ts +19 -0
- package/dist/steps/index.d.cts +4 -0
- package/dist/steps/index.d.ts +4 -0
- package/dist/steps/types.d.cts +117 -0
- package/dist/steps/types.d.ts +117 -0
- package/dist/switch/Switch.cjs +1 -0
- package/dist/switch/Switch.d.cts +24 -0
- package/dist/switch/Switch.d.ts +24 -0
- package/dist/switch/Switch.js +1 -0
- package/dist/switch/SwitchThumb.d.cts +15 -0
- package/dist/switch/SwitchThumb.d.ts +15 -0
- package/dist/switch/index.d.cts +3 -0
- package/dist/switch/index.d.ts +3 -0
- package/dist/switch/types.d.cts +47 -0
- package/dist/switch/types.d.ts +47 -0
- package/dist/table/Table.cjs +1 -0
- package/dist/table/Table.d.cts +78 -0
- package/dist/table/Table.d.ts +78 -0
- package/dist/table/Table.js +1 -0
- package/dist/table/TableBody.d.cts +15 -0
- package/dist/table/TableBody.d.ts +15 -0
- package/dist/table/TableCaption.d.cts +11 -0
- package/dist/table/TableCaption.d.ts +11 -0
- package/dist/table/TableCell.d.cts +12 -0
- package/dist/table/TableCell.d.ts +12 -0
- package/dist/table/TableColumnHeaderSortTrigger.d.cts +29 -0
- package/dist/table/TableColumnHeaderSortTrigger.d.ts +29 -0
- package/dist/table/TableColumnResizeTrigger.d.cts +27 -0
- package/dist/table/TableColumnResizeTrigger.d.ts +27 -0
- package/dist/table/TableEmpty.d.cts +20 -0
- package/dist/table/TableEmpty.d.ts +20 -0
- package/dist/table/TableExpandTrigger.d.cts +25 -0
- package/dist/table/TableExpandTrigger.d.ts +25 -0
- package/dist/table/TableExpandedRow.d.cts +20 -0
- package/dist/table/TableExpandedRow.d.ts +20 -0
- package/dist/table/TableFooter.d.cts +16 -0
- package/dist/table/TableFooter.d.ts +16 -0
- package/dist/table/TableHeader.d.cts +15 -0
- package/dist/table/TableHeader.d.ts +15 -0
- package/dist/table/TableHeaderCell.d.cts +28 -0
- package/dist/table/TableHeaderCell.d.ts +28 -0
- package/dist/table/TableRow.d.cts +18 -0
- package/dist/table/TableRow.d.ts +18 -0
- package/dist/table/TableRowSelectCheckbox.d.cts +30 -0
- package/dist/table/TableRowSelectCheckbox.d.ts +30 -0
- package/dist/table/TableSelectAllCheckbox.d.cts +34 -0
- package/dist/table/TableSelectAllCheckbox.d.ts +34 -0
- package/dist/table/TableSortIndicator.d.cts +26 -0
- package/dist/table/TableSortIndicator.d.ts +26 -0
- package/dist/table/index.d.cts +17 -0
- package/dist/table/index.d.ts +17 -0
- package/dist/table/types.d.cts +355 -0
- package/dist/table/types.d.ts +355 -0
- package/dist/tabs/Tabs.cjs +1 -0
- package/dist/tabs/Tabs.d.cts +32 -0
- package/dist/tabs/Tabs.d.ts +32 -0
- package/dist/tabs/Tabs.js +1 -0
- package/dist/tabs/TabsContent.d.cts +16 -0
- package/dist/tabs/TabsContent.d.ts +16 -0
- package/dist/tabs/TabsList.d.cts +16 -0
- package/dist/tabs/TabsList.d.ts +16 -0
- package/dist/tabs/TabsTrigger.d.cts +13 -0
- package/dist/tabs/TabsTrigger.d.ts +13 -0
- package/dist/tabs/index.d.cts +5 -0
- package/dist/tabs/index.d.ts +5 -0
- package/dist/tabs/types.d.cts +73 -0
- package/dist/tabs/types.d.ts +73 -0
- package/dist/tag/Tag.cjs +1 -0
- package/dist/tag/Tag.d.cts +45 -0
- package/dist/tag/Tag.d.ts +45 -0
- package/dist/tag/Tag.js +1 -0
- package/dist/tag/TagDelete.d.cts +22 -0
- package/dist/tag/TagDelete.d.ts +22 -0
- package/dist/tag/index.d.cts +3 -0
- package/dist/tag/index.d.ts +3 -0
- package/dist/tag/types.d.cts +43 -0
- package/dist/tag/types.d.ts +43 -0
- package/dist/tag-group/TagGroup.cjs +1 -0
- package/dist/tag-group/TagGroup.d.cts +75 -0
- package/dist/tag-group/TagGroup.d.ts +75 -0
- package/dist/tag-group/TagGroup.js +1 -0
- package/dist/tag-group/index.d.cts +2 -0
- package/dist/tag-group/index.d.ts +2 -0
- package/dist/tag-group/types.d.cts +39 -0
- package/dist/tag-group/types.d.ts +39 -0
- package/dist/tags-input/TagsInput.cjs +1 -0
- package/dist/tags-input/TagsInput.d.cts +77 -0
- package/dist/tags-input/TagsInput.d.ts +77 -0
- package/dist/tags-input/TagsInput.js +1 -0
- package/dist/tags-input/TagsInputInput.d.cts +22 -0
- package/dist/tags-input/TagsInputInput.d.ts +22 -0
- package/dist/tags-input/TagsInputItem.d.cts +16 -0
- package/dist/tags-input/TagsInputItem.d.ts +16 -0
- package/dist/tags-input/TagsInputItemDelete.d.cts +21 -0
- package/dist/tags-input/TagsInputItemDelete.d.ts +21 -0
- package/dist/tags-input/index.d.cts +5 -0
- package/dist/tags-input/index.d.ts +5 -0
- package/dist/tags-input/types.d.cts +106 -0
- package/dist/tags-input/types.d.ts +106 -0
- package/dist/text-field/TextField.cjs +1 -0
- package/dist/text-field/TextField.d.cts +45 -0
- package/dist/text-field/TextField.d.ts +45 -0
- package/dist/text-field/TextField.js +1 -0
- package/dist/text-field/TextFieldClearButton.d.cts +19 -0
- package/dist/text-field/TextFieldClearButton.d.ts +19 -0
- package/dist/text-field/TextFieldInput.d.cts +20 -0
- package/dist/text-field/TextFieldInput.d.ts +20 -0
- package/dist/text-field/TextFieldSlot.d.cts +18 -0
- package/dist/text-field/TextFieldSlot.d.ts +18 -0
- package/dist/text-field/index.d.cts +5 -0
- package/dist/text-field/index.d.ts +5 -0
- package/dist/text-field/types.d.cts +84 -0
- package/dist/text-field/types.d.ts +84 -0
- package/dist/textarea/Textarea.cjs +1 -0
- package/dist/textarea/Textarea.d.cts +16 -0
- package/dist/textarea/Textarea.d.ts +16 -0
- package/dist/textarea/Textarea.js +1 -0
- package/dist/textarea/index.d.cts +2 -0
- package/dist/textarea/index.d.ts +2 -0
- package/dist/textarea/types.d.cts +25 -0
- package/dist/textarea/types.d.ts +25 -0
- package/dist/time-field/TimeField.cjs +1 -0
- package/dist/time-field/TimeField.d.cts +24 -0
- package/dist/time-field/TimeField.d.ts +24 -0
- package/dist/time-field/TimeField.js +1 -0
- package/dist/time-field/index.d.cts +2 -0
- package/dist/time-field/index.d.ts +2 -0
- package/dist/time-field/types.d.cts +84 -0
- package/dist/time-field/types.d.ts +84 -0
- package/dist/timeline/Timeline.cjs +1 -0
- package/dist/timeline/Timeline.d.cts +23 -0
- package/dist/timeline/Timeline.d.ts +23 -0
- package/dist/timeline/Timeline.js +1 -0
- package/dist/timeline/TimelineContent.d.cts +12 -0
- package/dist/timeline/TimelineContent.d.ts +12 -0
- package/dist/timeline/TimelineIndicator.d.cts +11 -0
- package/dist/timeline/TimelineIndicator.d.ts +11 -0
- package/dist/timeline/TimelineItem.d.cts +15 -0
- package/dist/timeline/TimelineItem.d.ts +15 -0
- package/dist/timeline/TimelineSeparator.d.cts +17 -0
- package/dist/timeline/TimelineSeparator.d.ts +17 -0
- package/dist/timeline/index.d.cts +6 -0
- package/dist/timeline/index.d.ts +6 -0
- package/dist/timeline/types.d.cts +22 -0
- package/dist/timeline/types.d.ts +22 -0
- package/dist/toast/Toast.cjs +1 -0
- package/dist/toast/Toast.d.cts +36 -0
- package/dist/toast/Toast.d.ts +36 -0
- package/dist/toast/Toast.js +1 -0
- package/dist/toast/ToastAction.d.cts +14 -0
- package/dist/toast/ToastAction.d.ts +14 -0
- package/dist/toast/ToastClose.d.cts +12 -0
- package/dist/toast/ToastClose.d.ts +12 -0
- package/dist/toast/ToastDescription.d.cts +11 -0
- package/dist/toast/ToastDescription.d.ts +11 -0
- package/dist/toast/ToastProvider.d.cts +27 -0
- package/dist/toast/ToastProvider.d.ts +27 -0
- package/dist/toast/ToastTitle.d.cts +11 -0
- package/dist/toast/ToastTitle.d.ts +11 -0
- package/dist/toast/ToastViewport.d.cts +19 -0
- package/dist/toast/ToastViewport.d.ts +19 -0
- package/dist/toast/Toaster.d.cts +53 -0
- package/dist/toast/Toaster.d.ts +53 -0
- package/dist/toast/index.d.cts +10 -0
- package/dist/toast/index.d.ts +10 -0
- package/dist/toast/region-focus.d.cts +13 -0
- package/dist/toast/region-focus.d.ts +13 -0
- package/dist/toast/types.d.cts +189 -0
- package/dist/toast/types.d.ts +189 -0
- package/dist/toggle/Toggle.cjs +1 -0
- package/dist/toggle/Toggle.d.cts +16 -0
- package/dist/toggle/Toggle.d.ts +16 -0
- package/dist/toggle/Toggle.js +1 -0
- package/dist/toggle/index.d.cts +2 -0
- package/dist/toggle/index.d.ts +2 -0
- package/dist/toggle/types.d.cts +19 -0
- package/dist/toggle/types.d.ts +19 -0
- package/dist/toggle-group/ToggleGroup.cjs +1 -0
- package/dist/toggle-group/ToggleGroup.d.cts +27 -0
- package/dist/toggle-group/ToggleGroup.d.ts +27 -0
- package/dist/toggle-group/ToggleGroup.js +1 -0
- package/dist/toggle-group/ToggleGroupItem.d.cts +18 -0
- package/dist/toggle-group/ToggleGroupItem.d.ts +18 -0
- package/dist/toggle-group/index.d.cts +3 -0
- package/dist/toggle-group/index.d.ts +3 -0
- package/dist/toggle-group/types.d.cts +65 -0
- package/dist/toggle-group/types.d.ts +65 -0
- package/dist/toolbar/Toolbar.cjs +1 -0
- package/dist/toolbar/Toolbar.d.cts +35 -0
- package/dist/toolbar/Toolbar.d.ts +35 -0
- package/dist/toolbar/Toolbar.js +1 -0
- package/dist/toolbar/ToolbarButton.d.cts +14 -0
- package/dist/toolbar/ToolbarButton.d.ts +14 -0
- package/dist/toolbar/ToolbarLink.d.cts +14 -0
- package/dist/toolbar/ToolbarLink.d.ts +14 -0
- package/dist/toolbar/ToolbarSeparator.d.cts +16 -0
- package/dist/toolbar/ToolbarSeparator.d.ts +16 -0
- package/dist/toolbar/ToolbarToggleGroup.d.cts +25 -0
- package/dist/toolbar/ToolbarToggleGroup.d.ts +25 -0
- package/dist/toolbar/ToolbarToggleItem.d.cts +17 -0
- package/dist/toolbar/ToolbarToggleItem.d.ts +17 -0
- package/dist/toolbar/index.d.cts +7 -0
- package/dist/toolbar/index.d.ts +7 -0
- package/dist/toolbar/types.d.cts +80 -0
- package/dist/toolbar/types.d.ts +80 -0
- package/dist/tooltip/Tooltip.cjs +1 -0
- package/dist/tooltip/Tooltip.d.cts +57 -0
- package/dist/tooltip/Tooltip.d.ts +57 -0
- package/dist/tooltip/Tooltip.js +1 -0
- package/dist/tooltip/TooltipContent.d.cts +27 -0
- package/dist/tooltip/TooltipContent.d.ts +27 -0
- package/dist/tooltip/TooltipPortal.d.cts +20 -0
- package/dist/tooltip/TooltipPortal.d.ts +20 -0
- package/dist/tooltip/TooltipProvider.d.cts +35 -0
- package/dist/tooltip/TooltipProvider.d.ts +35 -0
- package/dist/tooltip/TooltipTrigger.d.cts +21 -0
- package/dist/tooltip/TooltipTrigger.d.ts +21 -0
- package/dist/tooltip/index.d.cts +6 -0
- package/dist/tooltip/index.d.ts +6 -0
- package/dist/tooltip/types.d.cts +129 -0
- package/dist/tooltip/types.d.ts +129 -0
- package/dist/tour/Tour.cjs +1 -0
- package/dist/tour/Tour.d.cts +58 -0
- package/dist/tour/Tour.d.ts +58 -0
- package/dist/tour/Tour.js +1 -0
- package/dist/tour/TourArrow.d.cts +20 -0
- package/dist/tour/TourArrow.d.ts +20 -0
- package/dist/tour/TourBackdrop.d.cts +33 -0
- package/dist/tour/TourBackdrop.d.ts +33 -0
- package/dist/tour/TourCloseTrigger.d.cts +16 -0
- package/dist/tour/TourCloseTrigger.d.ts +16 -0
- package/dist/tour/TourContent.d.cts +46 -0
- package/dist/tour/TourContent.d.ts +46 -0
- package/dist/tour/TourDescription.d.cts +15 -0
- package/dist/tour/TourDescription.d.ts +15 -0
- package/dist/tour/TourNextTrigger.d.cts +14 -0
- package/dist/tour/TourNextTrigger.d.ts +14 -0
- package/dist/tour/TourPortal.d.cts +24 -0
- package/dist/tour/TourPortal.d.ts +24 -0
- package/dist/tour/TourPrevTrigger.d.cts +14 -0
- package/dist/tour/TourPrevTrigger.d.ts +14 -0
- package/dist/tour/TourProgressText.d.cts +17 -0
- package/dist/tour/TourProgressText.d.ts +17 -0
- package/dist/tour/TourSkipTrigger.d.cts +14 -0
- package/dist/tour/TourSkipTrigger.d.ts +14 -0
- package/dist/tour/TourSpotlight.d.cts +24 -0
- package/dist/tour/TourSpotlight.d.ts +24 -0
- package/dist/tour/TourTitle.d.cts +18 -0
- package/dist/tour/TourTitle.d.ts +18 -0
- package/dist/tour/TourTrigger.d.cts +20 -0
- package/dist/tour/TourTrigger.d.ts +20 -0
- package/dist/tour/index.d.cts +15 -0
- package/dist/tour/index.d.ts +15 -0
- package/dist/tour/types.d.cts +261 -0
- package/dist/tour/types.d.ts +261 -0
- package/dist/transfer/Transfer.cjs +1 -0
- package/dist/transfer/Transfer.d.cts +92 -0
- package/dist/transfer/Transfer.d.ts +92 -0
- package/dist/transfer/Transfer.js +1 -0
- package/dist/transfer/TransferControls.d.cts +19 -0
- package/dist/transfer/TransferControls.d.ts +19 -0
- package/dist/transfer/TransferEmpty.d.cts +22 -0
- package/dist/transfer/TransferEmpty.d.ts +22 -0
- package/dist/transfer/TransferItem.d.cts +20 -0
- package/dist/transfer/TransferItem.d.ts +20 -0
- package/dist/transfer/TransferList.d.cts +29 -0
- package/dist/transfer/TransferList.d.ts +29 -0
- package/dist/transfer/TransferListHeader.d.cts +23 -0
- package/dist/transfer/TransferListHeader.d.ts +23 -0
- package/dist/transfer/TransferListSearch.d.cts +24 -0
- package/dist/transfer/TransferListSearch.d.ts +24 -0
- package/dist/transfer/TransferMoveAllTrigger.d.cts +19 -0
- package/dist/transfer/TransferMoveAllTrigger.d.ts +19 -0
- package/dist/transfer/TransferMoveTrigger.d.cts +26 -0
- package/dist/transfer/TransferMoveTrigger.d.ts +26 -0
- package/dist/transfer/index.d.cts +10 -0
- package/dist/transfer/index.d.ts +10 -0
- package/dist/transfer/types.d.cts +204 -0
- package/dist/transfer/types.d.ts +204 -0
- package/dist/tree/Tree.cjs +1 -0
- package/dist/tree/Tree.d.cts +54 -0
- package/dist/tree/Tree.d.ts +54 -0
- package/dist/tree/Tree.js +1 -0
- package/dist/tree/TreeGroup.d.cts +19 -0
- package/dist/tree/TreeGroup.d.ts +19 -0
- package/dist/tree/TreeItem.d.cts +36 -0
- package/dist/tree/TreeItem.d.ts +36 -0
- package/dist/tree/TreeItemIndicator.d.cts +18 -0
- package/dist/tree/TreeItemIndicator.d.ts +18 -0
- package/dist/tree/index.d.cts +5 -0
- package/dist/tree/index.d.ts +5 -0
- package/dist/tree/types.d.cts +152 -0
- package/dist/tree/types.d.ts +152 -0
- package/dist/tree-select/TreeSelect.cjs +1 -0
- package/dist/tree-select/TreeSelect.d.cts +60 -0
- package/dist/tree-select/TreeSelect.d.ts +60 -0
- package/dist/tree-select/TreeSelect.js +1 -0
- package/dist/tree-select/TreeSelectContent.d.cts +34 -0
- package/dist/tree-select/TreeSelectContent.d.ts +34 -0
- package/dist/tree-select/TreeSelectEmpty.d.cts +18 -0
- package/dist/tree-select/TreeSelectEmpty.d.ts +18 -0
- package/dist/tree-select/TreeSelectInput.d.cts +26 -0
- package/dist/tree-select/TreeSelectInput.d.ts +26 -0
- package/dist/tree-select/TreeSelectItem.d.cts +40 -0
- package/dist/tree-select/TreeSelectItem.d.ts +40 -0
- package/dist/tree-select/TreeSelectItemIndicator.d.cts +23 -0
- package/dist/tree-select/TreeSelectItemIndicator.d.ts +23 -0
- package/dist/tree-select/TreeSelectPortal.d.cts +20 -0
- package/dist/tree-select/TreeSelectPortal.d.ts +20 -0
- package/dist/tree-select/TreeSelectTree.d.cts +34 -0
- package/dist/tree-select/TreeSelectTree.d.ts +34 -0
- package/dist/tree-select/TreeSelectTrigger.d.cts +26 -0
- package/dist/tree-select/TreeSelectTrigger.d.ts +26 -0
- package/dist/tree-select/TreeSelectValue.d.cts +24 -0
- package/dist/tree-select/TreeSelectValue.d.ts +24 -0
- package/dist/tree-select/collection.d.cts +87 -0
- package/dist/tree-select/collection.d.ts +87 -0
- package/dist/tree-select/index.d.cts +11 -0
- package/dist/tree-select/index.d.ts +11 -0
- package/dist/tree-select/types.d.cts +360 -0
- package/dist/tree-select/types.d.ts +360 -0
- package/dist/utils/clamp.cjs +1 -0
- package/dist/utils/clamp.d.cts +1 -0
- package/dist/utils/clamp.d.ts +1 -0
- package/dist/utils/clamp.js +1 -0
- package/dist/utils/color.cjs +1 -0
- package/dist/utils/color.d.cts +145 -0
- package/dist/utils/color.d.ts +145 -0
- package/dist/utils/color.js +1 -0
- package/dist/utils/composeRefs.cjs +1 -0
- package/dist/utils/composeRefs.d.cts +33 -0
- package/dist/utils/composeRefs.d.ts +33 -0
- package/dist/utils/composeRefs.js +1 -0
- package/dist/utils/createContext.cjs +1 -0
- package/dist/utils/createContext.d.cts +29 -0
- package/dist/utils/createContext.d.ts +29 -0
- package/dist/utils/createContext.js +1 -0
- package/dist/utils/dateSegments.cjs +1 -0
- package/dist/utils/dateSegments.d.cts +163 -0
- package/dist/utils/dateSegments.d.ts +163 -0
- package/dist/utils/dateSegments.js +1 -0
- package/dist/utils/direction.cjs +1 -0
- package/dist/utils/direction.d.cts +82 -0
- package/dist/utils/direction.d.ts +82 -0
- package/dist/utils/direction.js +1 -0
- package/dist/utils/formControl.cjs +1 -0
- package/dist/utils/formControl.d.cts +66 -0
- package/dist/utils/formControl.d.ts +66 -0
- package/dist/utils/formControl.js +1 -0
- package/dist/utils/hiddenInput.cjs +1 -0
- package/dist/utils/hiddenInput.d.cts +18 -0
- package/dist/utils/hiddenInput.d.ts +18 -0
- package/dist/utils/hiddenInput.js +1 -0
- package/dist/utils/liveAnnouncer.cjs +1 -0
- package/dist/utils/liveAnnouncer.d.cts +77 -0
- package/dist/utils/liveAnnouncer.d.ts +77 -0
- package/dist/utils/liveAnnouncer.js +1 -0
- package/dist/utils/menuSub.cjs +1 -0
- package/dist/utils/menuSub.d.cts +120 -0
- package/dist/utils/menuSub.d.ts +120 -0
- package/dist/utils/menuSub.js +1 -0
- package/dist/utils/numberFormat.cjs +1 -0
- package/dist/utils/numberFormat.d.cts +19 -0
- package/dist/utils/numberFormat.d.ts +19 -0
- package/dist/utils/numberFormat.js +1 -0
- package/dist/utils/part.cjs +1 -0
- package/dist/utils/part.d.cts +97 -0
- package/dist/utils/part.d.ts +97 -0
- package/dist/utils/part.js +1 -0
- package/dist/utils/popper.cjs +1 -0
- package/dist/utils/popper.d.cts +116 -0
- package/dist/utils/popper.d.ts +116 -0
- package/dist/utils/popper.js +1 -0
- package/dist/utils/portal.cjs +1 -0
- package/dist/utils/portal.d.cts +24 -0
- package/dist/utils/portal.d.ts +24 -0
- package/dist/utils/portal.js +1 -0
- package/dist/utils/presence.cjs +1 -0
- package/dist/utils/presence.d.cts +49 -0
- package/dist/utils/presence.d.ts +49 -0
- package/dist/utils/presence.js +1 -0
- package/dist/utils/primitive.cjs +1 -0
- package/dist/utils/primitive.d.cts +55 -0
- package/dist/utils/primitive.d.ts +55 -0
- package/dist/utils/primitive.js +1 -0
- package/dist/utils/segmentedField.cjs +1 -0
- package/dist/utils/segmentedField.d.cts +108 -0
- package/dist/utils/segmentedField.d.ts +108 -0
- package/dist/utils/segmentedField.js +1 -0
- package/dist/utils/slot.cjs +1 -0
- package/dist/utils/slot.d.cts +28 -0
- package/dist/utils/slot.d.ts +28 -0
- package/dist/utils/slot.js +1 -0
- package/dist/utils/useBodyScrollLock.cjs +1 -0
- package/dist/utils/useBodyScrollLock.d.cts +2 -0
- package/dist/utils/useBodyScrollLock.d.ts +2 -0
- package/dist/utils/useBodyScrollLock.js +1 -0
- package/dist/utils/useCallbackRef.cjs +1 -0
- package/dist/utils/useCallbackRef.d.cts +15 -0
- package/dist/utils/useCallbackRef.d.ts +15 -0
- package/dist/utils/useCallbackRef.js +1 -0
- package/dist/utils/useControllableState.cjs +1 -0
- package/dist/utils/useControllableState.d.cts +32 -0
- package/dist/utils/useControllableState.d.ts +32 -0
- package/dist/utils/useControllableState.js +1 -0
- package/dist/utils/useDismiss.cjs +1 -0
- package/dist/utils/useDismiss.d.cts +47 -0
- package/dist/utils/useDismiss.d.ts +47 -0
- package/dist/utils/useDismiss.js +1 -0
- package/dist/utils/useFocusTrap.cjs +1 -0
- package/dist/utils/useFocusTrap.d.cts +25 -0
- package/dist/utils/useFocusTrap.d.ts +25 -0
- package/dist/utils/useFocusTrap.js +1 -0
- package/dist/utils/useMenuItem.cjs +1 -0
- package/dist/utils/useMenuItem.d.cts +27 -0
- package/dist/utils/useMenuItem.d.ts +27 -0
- package/dist/utils/useMenuItem.js +1 -0
- package/dist/utils/useOpenChangeComplete.cjs +1 -0
- package/dist/utils/useOpenChangeComplete.d.cts +24 -0
- package/dist/utils/useOpenChangeComplete.d.ts +24 -0
- package/dist/utils/useOpenChangeComplete.js +1 -0
- package/dist/utils/useOptionCollection.cjs +1 -0
- package/dist/utils/useOptionCollection.d.cts +90 -0
- package/dist/utils/useOptionCollection.d.ts +90 -0
- package/dist/utils/useOptionCollection.js +1 -0
- package/dist/utils/usePointerAngle.cjs +1 -0
- package/dist/utils/usePointerAngle.d.cts +78 -0
- package/dist/utils/usePointerAngle.d.ts +78 -0
- package/dist/utils/usePointerAngle.js +1 -0
- package/dist/utils/useRovingFocus.cjs +1 -0
- package/dist/utils/useRovingFocus.d.cts +83 -0
- package/dist/utils/useRovingFocus.d.ts +83 -0
- package/dist/utils/useRovingFocus.js +1 -0
- package/dist/utils/useSelection.cjs +1 -0
- package/dist/utils/useSelection.d.cts +60 -0
- package/dist/utils/useSelection.d.ts +60 -0
- package/dist/utils/useSelection.js +1 -0
- package/dist/utils/useTypeahead.cjs +1 -0
- package/dist/utils/useTypeahead.d.cts +18 -0
- package/dist/utils/useTypeahead.d.ts +18 -0
- package/dist/utils/useTypeahead.js +1 -0
- package/dist/utils/visuallyHidden.cjs +1 -0
- package/dist/utils/visuallyHidden.d.cts +16 -0
- package/dist/utils/visuallyHidden.d.ts +16 -0
- package/dist/utils/visuallyHidden.js +1 -0
- package/package.json +918 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a function with a stable identity across renders that always
|
|
3
|
+
* invokes the *latest* `callback` passed in — avoids re-subscribing effects
|
|
4
|
+
* or event listeners just because an inline callback prop changed identity.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* const handleChange = useCallbackRef(onChange);
|
|
9
|
+
* React.useEffect(() => {
|
|
10
|
+
* document.addEventListener('keydown', handleChange);
|
|
11
|
+
* return () => document.removeEventListener('keydown', handleChange);
|
|
12
|
+
* }, [handleChange]); // stable — effect doesn't re-run when `onChange` changes
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function useCallbackRef<T extends (...args: never[]) => unknown>(callback: T | undefined): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";function c(n){let t=e.useRef(n);return e.useEffect(()=>{t.current=n}),e.useMemo(()=>((...r)=>t.current?.(...r)),[])}export{c as useCallbackRef};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var p=Object.create;var l=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var h=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},T=(e,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of b(t))!P.call(e,o)&&o!==n&&l(e,o,{get:()=>t[o],enumerable:!(c=S(t,o))||c.enumerable});return e};var U=(e,t,n)=>(n=e!=null?p(v(e)):{},T(t||!e||!e.__esModule?l(n,"default",{value:e,enumerable:!0}):n,e)),g=e=>T(l({},"__esModule",{value:!0}),e);var y={};h(y,{useControllableState:()=>k});module.exports=g(y);var a=U(require("react"),1),C=require("./useCallbackRef.cjs");function k({prop:e,defaultProp:t,onChange:n=()=>{}}){let[c,o]=a.useState(t),s=e!==void 0,r=s?e:c,i=(0,C.useCallbackRef)(n),f=a.useRef(r);a.useLayoutEffect(()=>{f.current=r},[r]);let m=a.useCallback(d=>{let R=s?e:f.current,u=typeof d=="function"?d(R):d;u!==R&&(s||(f.current=u,o(u)),i(u))},[s,e,i]);return[r,m]}0&&(module.exports={useControllableState});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface UseControllableStateParams<T> {
|
|
3
|
+
/** The controlled value. When defined, the hook is controlled and only ever reflects this prop. */
|
|
4
|
+
prop?: T | undefined;
|
|
5
|
+
/** Initial value for uncontrolled usage; ignored once `prop` is defined. */
|
|
6
|
+
defaultProp?: T | undefined;
|
|
7
|
+
/** Called with the next value whenever it changes, in both controlled and uncontrolled modes. */
|
|
8
|
+
onChange?: (state: T) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The controlled/uncontrolled pattern shared by every stateful primitive
|
|
12
|
+
* (`Checkbox`'s `checked`, `Tabs`'s `value`, `Dialog`'s `open`, …). Behaves
|
|
13
|
+
* like `useState` when `prop` is `undefined`; once `prop` is defined, the
|
|
14
|
+
* returned value always mirrors it and `setValue` only calls `onChange`
|
|
15
|
+
* instead of storing internal state.
|
|
16
|
+
*
|
|
17
|
+
* @returns A `[value, setValue]` tuple, same shape as `useState`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* function MyCheckbox({ checked: checkedProp, defaultChecked, onCheckedChange }: Props) {
|
|
22
|
+
* const [checked, setChecked] = useControllableState({
|
|
23
|
+
* prop: checkedProp,
|
|
24
|
+
* defaultProp: defaultChecked,
|
|
25
|
+
* onChange: onCheckedChange,
|
|
26
|
+
* });
|
|
27
|
+
* // `checked` works whether the consumer passed `checked` or `defaultChecked`.
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function useControllableState<T>({ prop, defaultProp, onChange, }: UseControllableStateParams<T>): readonly [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface UseControllableStateParams<T> {
|
|
3
|
+
/** The controlled value. When defined, the hook is controlled and only ever reflects this prop. */
|
|
4
|
+
prop?: T | undefined;
|
|
5
|
+
/** Initial value for uncontrolled usage; ignored once `prop` is defined. */
|
|
6
|
+
defaultProp?: T | undefined;
|
|
7
|
+
/** Called with the next value whenever it changes, in both controlled and uncontrolled modes. */
|
|
8
|
+
onChange?: (state: T) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The controlled/uncontrolled pattern shared by every stateful primitive
|
|
12
|
+
* (`Checkbox`'s `checked`, `Tabs`'s `value`, `Dialog`'s `open`, …). Behaves
|
|
13
|
+
* like `useState` when `prop` is `undefined`; once `prop` is defined, the
|
|
14
|
+
* returned value always mirrors it and `setValue` only calls `onChange`
|
|
15
|
+
* instead of storing internal state.
|
|
16
|
+
*
|
|
17
|
+
* @returns A `[value, setValue]` tuple, same shape as `useState`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* function MyCheckbox({ checked: checkedProp, defaultChecked, onCheckedChange }: Props) {
|
|
22
|
+
* const [checked, setChecked] = useControllableState({
|
|
23
|
+
* prop: checkedProp,
|
|
24
|
+
* defaultProp: defaultChecked,
|
|
25
|
+
* onChange: onCheckedChange,
|
|
26
|
+
* });
|
|
27
|
+
* // `checked` works whether the consumer passed `checked` or `defaultChecked`.
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function useControllableState<T>({ prop, defaultProp, onChange, }: UseControllableStateParams<T>): readonly [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
|
|
32
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import{useCallbackRef as T}from"./useCallbackRef.js";function m({prop:t,defaultProp:l,onChange:f=()=>{}}){let[d,i]=e.useState(l),n=t!==void 0,a=n?t:d,r=T(f),c=e.useRef(a);e.useLayoutEffect(()=>{c.current=a},[a]);let R=e.useCallback(s=>{let u=n?t:c.current,o=typeof s=="function"?s(u):s;o!==u&&(n||(c.current=o,i(o)),r(o))},[n,t,r]);return[a,R]}export{m as useControllableState};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var N=Object.create;var E=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var g=(e,n)=>{for(var o in n)E(e,o,{get:n[o],enumerable:!0})},F=(e,n,o,d)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of k(n))!T.call(e,r)&&r!==o&&E(e,r,{get:()=>n[r],enumerable:!(d=P(n,r))||d.enumerable});return e};var x=(e,n,o)=>(o=e!=null?N(R(e)):{},F(n||!e||!e.__esModule?E(o,"default",{value:e,enumerable:!0}):o,e)),K=e=>F(E({},"__esModule",{value:!0}),e);var j={};g(j,{useDismiss:()=>C});module.exports=K(j);var h=x(require("react"),1),c=require("./useCallbackRef.cjs"),u=[];function C({enabled:e,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:d,onInteractOutside:r,insideSelector:l},L){let m=(0,c.useCallbackRef)(n),p=(0,c.useCallbackRef)(o),O=(0,c.useCallbackRef)(d),v=(0,c.useCallbackRef)(r);h.useEffect(()=>{if(!e)return;let i=globalThis.document,f={};u.push(f);let w=t=>{if(L.some(a=>a.current?.contains(t)))return!1;let s=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement;return!(l&&s?.closest(l))},y=t=>{t.key==="Escape"&&u[u.length-1]===f&&m(t)},b=t=>{let s=t.target;s&&w(s)&&(v(t),p(t))},D=t=>{let s=t.target;if(!s||s===i.body||!w(s))return;let a=new CustomEvent("focus-outside",{detail:t,cancelable:!0});v(a),O(a)};i.addEventListener("keydown",y);let I=window.setTimeout(()=>{i.addEventListener("pointerdown",b,!0),i.addEventListener("focusin",D,!0)},0);return()=>{let t=u.indexOf(f);t!==-1&&u.splice(t,1),i.removeEventListener("keydown",y),window.clearTimeout(I),i.removeEventListener("pointerdown",b,!0),i.removeEventListener("focusin",D,!0)}},[e,m,p,O,v,l])}0&&(module.exports={useDismiss});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* What `onFocusOutside` receives. `focusin` is not cancelable, so there would
|
|
4
|
+
* be nothing to `preventDefault()` on the real event — the handler gets a
|
|
5
|
+
* cancelable stand-in carrying the original as its `detail` instead.
|
|
6
|
+
*/
|
|
7
|
+
export type FocusOutsideEvent = CustomEvent<FocusEvent>;
|
|
8
|
+
/** Either flavour of outside interaction, as `onInteractOutside` sees it. */
|
|
9
|
+
export type InteractOutsideEvent = PointerEvent | FocusOutsideEvent;
|
|
10
|
+
interface UseDismissOptions {
|
|
11
|
+
/** Whether dismiss listeners are active (usually the open state). */
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
/** Called on Escape keydown. */
|
|
14
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
15
|
+
/** Called on pointerdown outside every element in `insideRefs`. */
|
|
16
|
+
onPointerDownOutside?: (event: PointerEvent) => void;
|
|
17
|
+
/** Called when focus moves to an element outside every element in `insideRefs`. */
|
|
18
|
+
onFocusOutside?: (event: FocusOutsideEvent) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Called for *either* kind of outside interaction, immediately **before**
|
|
21
|
+
* the specific handler above and with the same event object — so a single
|
|
22
|
+
* `preventDefault()` here is already visible to that handler and vetoes the
|
|
23
|
+
* dismissal whichever way it was triggered.
|
|
24
|
+
*/
|
|
25
|
+
onInteractOutside?: (event: InteractOutsideEvent) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Extra "inside" region, as a selector the target is matched against with
|
|
28
|
+
* `closest()`. `insideRefs` covers the elements the layer holds a ref to; this
|
|
29
|
+
* covers the ones it does not — a submenu panel portalled out of the menu it
|
|
30
|
+
* belongs to is not `contains()`-reachable from the menu's content ref, yet a
|
|
31
|
+
* pointer-down or a focus landing in it is unambiguously inside the menu.
|
|
32
|
+
*/
|
|
33
|
+
insideSelector?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Layer dismissal behavior shared by every dismissible overlay. Consumers pass
|
|
37
|
+
* refs of elements that count as "inside" — which for the input-driven
|
|
38
|
+
* families (Combobox, Autocomplete, MultiSelect, TreeSelect) includes the
|
|
39
|
+
* input and any toggle button, not just the floating panel: real DOM focus
|
|
40
|
+
* lives out there for the whole interaction.
|
|
41
|
+
*
|
|
42
|
+
* This hook only *reports*: the caller decides what dismissal means (Dialog
|
|
43
|
+
* ignores outside interaction unless modal, AlertDialog ignores it entirely)
|
|
44
|
+
* by checking `event.defaultPrevented` in its own handler.
|
|
45
|
+
*/
|
|
46
|
+
export declare function useDismiss({ enabled, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, insideSelector, }: UseDismissOptions, insideRefs: Array<React.RefObject<Element | null>>): void;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* What `onFocusOutside` receives. `focusin` is not cancelable, so there would
|
|
4
|
+
* be nothing to `preventDefault()` on the real event — the handler gets a
|
|
5
|
+
* cancelable stand-in carrying the original as its `detail` instead.
|
|
6
|
+
*/
|
|
7
|
+
export type FocusOutsideEvent = CustomEvent<FocusEvent>;
|
|
8
|
+
/** Either flavour of outside interaction, as `onInteractOutside` sees it. */
|
|
9
|
+
export type InteractOutsideEvent = PointerEvent | FocusOutsideEvent;
|
|
10
|
+
interface UseDismissOptions {
|
|
11
|
+
/** Whether dismiss listeners are active (usually the open state). */
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
/** Called on Escape keydown. */
|
|
14
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
15
|
+
/** Called on pointerdown outside every element in `insideRefs`. */
|
|
16
|
+
onPointerDownOutside?: (event: PointerEvent) => void;
|
|
17
|
+
/** Called when focus moves to an element outside every element in `insideRefs`. */
|
|
18
|
+
onFocusOutside?: (event: FocusOutsideEvent) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Called for *either* kind of outside interaction, immediately **before**
|
|
21
|
+
* the specific handler above and with the same event object — so a single
|
|
22
|
+
* `preventDefault()` here is already visible to that handler and vetoes the
|
|
23
|
+
* dismissal whichever way it was triggered.
|
|
24
|
+
*/
|
|
25
|
+
onInteractOutside?: (event: InteractOutsideEvent) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Extra "inside" region, as a selector the target is matched against with
|
|
28
|
+
* `closest()`. `insideRefs` covers the elements the layer holds a ref to; this
|
|
29
|
+
* covers the ones it does not — a submenu panel portalled out of the menu it
|
|
30
|
+
* belongs to is not `contains()`-reachable from the menu's content ref, yet a
|
|
31
|
+
* pointer-down or a focus landing in it is unambiguously inside the menu.
|
|
32
|
+
*/
|
|
33
|
+
insideSelector?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Layer dismissal behavior shared by every dismissible overlay. Consumers pass
|
|
37
|
+
* refs of elements that count as "inside" — which for the input-driven
|
|
38
|
+
* families (Combobox, Autocomplete, MultiSelect, TreeSelect) includes the
|
|
39
|
+
* input and any toggle button, not just the floating panel: real DOM focus
|
|
40
|
+
* lives out there for the whole interaction.
|
|
41
|
+
*
|
|
42
|
+
* This hook only *reports*: the caller decides what dismissal means (Dialog
|
|
43
|
+
* ignores outside interaction unless modal, AlertDialog ignores it entirely)
|
|
44
|
+
* by checking `event.defaultPrevented` in its own handler.
|
|
45
|
+
*/
|
|
46
|
+
export declare function useDismiss({ enabled, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, insideSelector, }: UseDismissOptions, insideRefs: Array<React.RefObject<Element | null>>): void;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as O from"react";import{useCallbackRef as r}from"./useCallbackRef.js";var o=[];function I({enabled:d,onEscapeKeyDown:w,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:D,insideSelector:i},F){let a=r(w),E=r(y),l=r(b),u=r(D);O.useEffect(()=>{if(!d)return;let n=globalThis.document,c={};o.push(c);let v=e=>{if(F.some(s=>s.current?.contains(e)))return!1;let t=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;return!(i&&t?.closest(i))},f=e=>{e.key==="Escape"&&o[o.length-1]===c&&a(e)},m=e=>{let t=e.target;t&&v(t)&&(u(e),E(e))},p=e=>{let t=e.target;if(!t||t===n.body||!v(t))return;let s=new CustomEvent("focus-outside",{detail:e,cancelable:!0});u(s),l(s)};n.addEventListener("keydown",f);let h=window.setTimeout(()=>{n.addEventListener("pointerdown",m,!0),n.addEventListener("focusin",p,!0)},0);return()=>{let e=o.indexOf(c);e!==-1&&o.splice(e,1),n.removeEventListener("keydown",f),window.clearTimeout(h),n.removeEventListener("pointerdown",m,!0),n.removeEventListener("focusin",p,!0)}},[d,a,E,l,u,i])}export{I as useDismiss};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var F=Object.create;var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var L=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:!0})},m=(e,t,o,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of y(t))!x.call(e,n)&&n!==o&&a(e,n,{get:()=>t[n],enumerable:!(c=A(t,n))||c.enumerable});return e};var R=(e,t,o)=>(o=e!=null?F(T(e)):{},m(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:!0}):o,e)),O=e=>m(a({},"__esModule",{value:!0}),e);var H={};L(H,{autoFocusEvent:()=>f,useFocusTrap:()=>C});module.exports=O(H);var s=R(require("react"),1),h=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function E(e){return Array.from(e.querySelectorAll(h)).filter(t=>t.offsetParent!==null||t===document.activeElement)}function f(e,t){if(!t)return!0;let o=new CustomEvent(e,{cancelable:!0,detail:null});return t(o),!o.defaultPrevented}function C(e,t,o={}){let c=s.useRef(o);s.useEffect(()=>{c.current=o}),s.useEffect(()=>{if(!t)return;let n=e.current;if(!n)return;let l=document.activeElement,p=requestAnimationFrame(()=>{if(n.contains(document.activeElement)||!f("open-auto-focus",c.current.onOpenAutoFocus))return;let r=E(n)[0]??n;n.tabIndex=n.tabIndex>=0?n.tabIndex:-1,r.focus({preventScroll:!0})}),d=u=>{if(u.key!=="Tab")return;let r=E(n);if(r.length===0){u.preventDefault();return}let b=r[0],v=r[r.length-1],i=document.activeElement;u.shiftKey&&(i===b||i===n)?(u.preventDefault(),v.focus()):!u.shiftKey&&i===v&&(u.preventDefault(),b.focus())};return n.addEventListener("keydown",d),()=>{cancelAnimationFrame(p),n.removeEventListener("keydown",d),f("close-auto-focus",c.current.onCloseAutoFocus)&&l&&document.contains(l)&&l.focus?.({preventScroll:!0})}},[e,t])}0&&(module.exports={autoFocusEvent,useFocusTrap});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** The cancelable stand-in an auto-focus handler receives — there is no native event for "I am about to move focus". */
|
|
3
|
+
export type AutoFocusEvent = CustomEvent<null>;
|
|
4
|
+
/**
|
|
5
|
+
* Announces an automatic focus move as a cancelable event and reports whether
|
|
6
|
+
* it may go ahead. Shared by the focus trap and by the overlays that return
|
|
7
|
+
* focus to their trigger by hand, so the veto means the same thing in both.
|
|
8
|
+
*/
|
|
9
|
+
export declare function autoFocusEvent(type: 'open-auto-focus' | 'close-auto-focus', handler?: (event: AutoFocusEvent) => void): boolean;
|
|
10
|
+
/** Consumer overrides for the two focus moves the trap makes on the overlay's behalf. */
|
|
11
|
+
export interface FocusTrapOptions {
|
|
12
|
+
/** Fired before focus moves into the container; `preventDefault()` leaves focus where it is. */
|
|
13
|
+
onOpenAutoFocus?: (event: AutoFocusEvent) => void;
|
|
14
|
+
/** Fired before focus returns to the previously focused element; `preventDefault()` suppresses the return. */
|
|
15
|
+
onCloseAutoFocus?: (event: AutoFocusEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Traps Tab focus inside `containerRef` while `enabled`. Focuses the first
|
|
19
|
+
* tabbable element (or the container) on mount and restores focus to the
|
|
20
|
+
* previously focused element on unmount — each of those two moves first
|
|
21
|
+
* announced as a cancelable `open-auto-focus` / `close-auto-focus` event, so
|
|
22
|
+
* a consumer can redirect initial focus or take over the return when the
|
|
23
|
+
* trigger no longer exists (the WAI-ARIA modal pattern's two escape hatches).
|
|
24
|
+
*/
|
|
25
|
+
export declare function useFocusTrap(containerRef: React.RefObject<HTMLElement | null>, enabled: boolean, options?: FocusTrapOptions): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** The cancelable stand-in an auto-focus handler receives — there is no native event for "I am about to move focus". */
|
|
3
|
+
export type AutoFocusEvent = CustomEvent<null>;
|
|
4
|
+
/**
|
|
5
|
+
* Announces an automatic focus move as a cancelable event and reports whether
|
|
6
|
+
* it may go ahead. Shared by the focus trap and by the overlays that return
|
|
7
|
+
* focus to their trigger by hand, so the veto means the same thing in both.
|
|
8
|
+
*/
|
|
9
|
+
export declare function autoFocusEvent(type: 'open-auto-focus' | 'close-auto-focus', handler?: (event: AutoFocusEvent) => void): boolean;
|
|
10
|
+
/** Consumer overrides for the two focus moves the trap makes on the overlay's behalf. */
|
|
11
|
+
export interface FocusTrapOptions {
|
|
12
|
+
/** Fired before focus moves into the container; `preventDefault()` leaves focus where it is. */
|
|
13
|
+
onOpenAutoFocus?: (event: AutoFocusEvent) => void;
|
|
14
|
+
/** Fired before focus returns to the previously focused element; `preventDefault()` suppresses the return. */
|
|
15
|
+
onCloseAutoFocus?: (event: AutoFocusEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Traps Tab focus inside `containerRef` while `enabled`. Focuses the first
|
|
19
|
+
* tabbable element (or the container) on mount and restores focus to the
|
|
20
|
+
* previously focused element on unmount — each of those two moves first
|
|
21
|
+
* announced as a cancelable `open-auto-focus` / `close-auto-focus` event, so
|
|
22
|
+
* a consumer can redirect initial focus or take over the return when the
|
|
23
|
+
* trigger no longer exists (the WAI-ARIA modal pattern's two escape hatches).
|
|
24
|
+
*/
|
|
25
|
+
export declare function useFocusTrap(containerRef: React.RefObject<HTMLElement | null>, enabled: boolean, options?: FocusTrapOptions): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as r from"react";var E=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function b(o){return Array.from(o.querySelectorAll(E)).filter(t=>t.offsetParent!==null||t===document.activeElement)}function v(o,t){if(!t)return!0;let c=new CustomEvent(o,{cancelable:!0,detail:null});return t(c),!c.defaultPrevented}function p(o,t,c={}){let s=r.useRef(c);r.useEffect(()=>{s.current=c}),r.useEffect(()=>{if(!t)return;let e=o.current;if(!e)return;let a=document.activeElement,m=requestAnimationFrame(()=>{if(e.contains(document.activeElement)||!v("open-auto-focus",s.current.onOpenAutoFocus))return;let u=b(e)[0]??e;e.tabIndex=e.tabIndex>=0?e.tabIndex:-1,u.focus({preventScroll:!0})}),i=n=>{if(n.key!=="Tab")return;let u=b(e);if(u.length===0){n.preventDefault();return}let f=u[0],d=u[u.length-1],l=document.activeElement;n.shiftKey&&(l===f||l===e)?(n.preventDefault(),d.focus()):!n.shiftKey&&l===d&&(n.preventDefault(),f.focus())};return e.addEventListener("keydown",i),()=>{cancelAnimationFrame(m),e.removeEventListener("keydown",i),v("close-auto-focus",s.current.onCloseAutoFocus)&&a&&document.contains(a)&&a.focus?.({preventScroll:!0})}},[o,t])}export{v as autoFocusEvent,p as useFocusTrap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var m=(e,n)=>{for(var r in n)a(e,r,{get:n[r],enumerable:!0})},s=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of f(n))!d.call(e,t)&&t!==r&&a(e,t,{get:()=>n[t],enumerable:!(i=l(n,t))||i.enumerable});return e};var v=e=>s(a({},"__esModule",{value:!0}),e);var P={};m(P,{useMenuItem:()=>E});module.exports=v(P);var c=require("./primitive.cjs");function E({disabled:e,onSelect:n,onSelected:r,contentRef:i,props:t}){let u=()=>{if(e)return;let o=new CustomEvent("skdx-menu-item-select",{cancelable:!0});n?.(o),o.defaultPrevented||r()};return{"data-disabled":e?"":void 0,"aria-disabled":e||void 0,tabIndex:e?void 0:-1,onClick:(0,c.composeEventHandlers)(t.onClick,u),onKeyDown:(0,c.composeEventHandlers)(t.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&(o.preventDefault(),u())}),onPointerEnter:(0,c.composeEventHandlers)(t.onPointerEnter,o=>{e||o.currentTarget.focus()}),onPointerLeave:(0,c.composeEventHandlers)(t.onPointerLeave,o=>{o.currentTarget===document.activeElement&&i.current?.focus()})}}0&&(module.exports={useMenuItem});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/** @internal Options for {@link useMenuItem}, the shared menu-item interaction hook. */
|
|
3
|
+
export interface UseMenuItemOptions {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** Called when the item is activated. `event.preventDefault()` keeps the menu open. */
|
|
6
|
+
onSelect?: (event: Event) => void;
|
|
7
|
+
/** Called after a select that wasn't prevented — typically closes the menu (and may refocus its trigger). */
|
|
8
|
+
onSelected: () => void;
|
|
9
|
+
/** Where focus returns to on pointer-leave, so keyboard nav resumes at the container. */
|
|
10
|
+
contentRef: React.RefObject<HTMLElement | null>;
|
|
11
|
+
props: Pick<React.ComponentPropsWithRef<'div'>, 'onClick' | 'onKeyDown' | 'onPointerEnter' | 'onPointerLeave'>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Shared interaction wiring for DropdownMenuItem, ContextMenuItem, and
|
|
15
|
+
* MenubarItem — the three menu families differ in how a menu opens and
|
|
16
|
+
* closes, but a `menuitem`'s own click/keyboard/hover behavior is identical
|
|
17
|
+
* across all of them.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useMenuItem({ disabled, onSelect, onSelected, contentRef, props }: UseMenuItemOptions): {
|
|
20
|
+
'data-disabled': string | undefined;
|
|
21
|
+
'aria-disabled': true | undefined;
|
|
22
|
+
tabIndex: number | undefined;
|
|
23
|
+
onClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
24
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
25
|
+
onPointerEnter: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
26
|
+
onPointerLeave: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/** @internal Options for {@link useMenuItem}, the shared menu-item interaction hook. */
|
|
3
|
+
export interface UseMenuItemOptions {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** Called when the item is activated. `event.preventDefault()` keeps the menu open. */
|
|
6
|
+
onSelect?: (event: Event) => void;
|
|
7
|
+
/** Called after a select that wasn't prevented — typically closes the menu (and may refocus its trigger). */
|
|
8
|
+
onSelected: () => void;
|
|
9
|
+
/** Where focus returns to on pointer-leave, so keyboard nav resumes at the container. */
|
|
10
|
+
contentRef: React.RefObject<HTMLElement | null>;
|
|
11
|
+
props: Pick<React.ComponentPropsWithRef<'div'>, 'onClick' | 'onKeyDown' | 'onPointerEnter' | 'onPointerLeave'>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Shared interaction wiring for DropdownMenuItem, ContextMenuItem, and
|
|
15
|
+
* MenubarItem — the three menu families differ in how a menu opens and
|
|
16
|
+
* closes, but a `menuitem`'s own click/keyboard/hover behavior is identical
|
|
17
|
+
* across all of them.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useMenuItem({ disabled, onSelect, onSelected, contentRef, props }: UseMenuItemOptions): {
|
|
20
|
+
'data-disabled': string | undefined;
|
|
21
|
+
'aria-disabled': true | undefined;
|
|
22
|
+
tabIndex: number | undefined;
|
|
23
|
+
onClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
24
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
25
|
+
onPointerEnter: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
26
|
+
onPointerLeave: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{composeEventHandlers as o}from"./primitive.js";function l({disabled:n,onSelect:c,onSelected:i,contentRef:a,props:t}){let r=()=>{if(n)return;let e=new CustomEvent("skdx-menu-item-select",{cancelable:!0});c?.(e),e.defaultPrevented||i()};return{"data-disabled":n?"":void 0,"aria-disabled":n||void 0,tabIndex:n?void 0:-1,onClick:o(t.onClick,r),onKeyDown:o(t.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),r())}),onPointerEnter:o(t.onPointerEnter,e=>{n||e.currentTarget.focus()}),onPointerLeave:o(t.onPointerLeave,e=>{e.currentTarget===document.activeElement&&a.current?.focus()})}}export{l as useMenuItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var E=Object.create;var s=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var R=(e,n)=>{for(var t in n)s(e,t,{get:n[t],enumerable:!0})},v=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C(n))!h.call(e,o)&&o!==t&&s(e,o,{get:()=>n[o],enumerable:!(r=b(n,o))||r.enumerable});return e};var g=(e,n,t)=>(t=e!=null?E(L(e)):{},v(n||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),y=e=>v(s({},"__esModule",{value:!0}),e);var M={};R(M,{useOpenChangeComplete:()=>F});module.exports=y(M);var c=g(require("react"),1),p=require("./useCallbackRef.cjs");function A(e){let{animationName:n,transitionDuration:t,display:r}=getComputedStyle(e);return r==="none"?!1:n!==""&&n!=="none"?!0:t.split(",").some(o=>Number.parseFloat(o)>0)}function F(e,n,t){let r=(0,p.useCallbackRef)(t),o=c.useRef(!0);c.useEffect(()=>{if(o.current){o.current=!1;return}let l=["animationend","animationcancel","transitionend","transitioncancel"],u,m=()=>{let a=n.current;if(!a||!a.isConnected||!A(a)){r(e);return}let d=i=>{i.target===a&&r(e)};for(let i of l)a.addEventListener(i,d);u=()=>{for(let i of l)a.removeEventListener(i,d)}},f=0;return e&&!n.current?f=requestAnimationFrame(m):m(),()=>{cancelAnimationFrame(f),u?.()}},[e,n,r])}0&&(module.exports={useOpenChangeComplete});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Calls `onOpenChangeComplete` with the new open state once the change has
|
|
4
|
+
* finished on screen — after the content's enter or exit animation ends, or
|
|
5
|
+
* as soon as the content has settled when there is no motion declared (the
|
|
6
|
+
* same task on close, the next frame on open, where the portal needs a second
|
|
7
|
+
* commit to put the element in the DOM).
|
|
8
|
+
*
|
|
9
|
+
* The settled counterpart to `onOpenChange`, which fires the instant the state
|
|
10
|
+
* flips. Use it for work that must not race the transition: measuring the
|
|
11
|
+
* panel, moving focus after an entrance, or tearing down an expensive child
|
|
12
|
+
* once the exit has played.
|
|
13
|
+
*
|
|
14
|
+
* Pass the ref the content element is attached to. On close without
|
|
15
|
+
* `forceMount` React has already cleared it, which is itself the signal that
|
|
16
|
+
* nothing is animating and the close is complete.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* const contentRef = React.useRef<HTMLDivElement>(null);
|
|
21
|
+
* useOpenChangeComplete(open, contentRef, onOpenChangeComplete);
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function useOpenChangeComplete(open: boolean, nodeRef: React.RefObject<HTMLElement | null>, onOpenChangeComplete?: (open: boolean) => void): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Calls `onOpenChangeComplete` with the new open state once the change has
|
|
4
|
+
* finished on screen — after the content's enter or exit animation ends, or
|
|
5
|
+
* as soon as the content has settled when there is no motion declared (the
|
|
6
|
+
* same task on close, the next frame on open, where the portal needs a second
|
|
7
|
+
* commit to put the element in the DOM).
|
|
8
|
+
*
|
|
9
|
+
* The settled counterpart to `onOpenChange`, which fires the instant the state
|
|
10
|
+
* flips. Use it for work that must not race the transition: measuring the
|
|
11
|
+
* panel, moving focus after an entrance, or tearing down an expensive child
|
|
12
|
+
* once the exit has played.
|
|
13
|
+
*
|
|
14
|
+
* Pass the ref the content element is attached to. On close without
|
|
15
|
+
* `forceMount` React has already cleared it, which is itself the signal that
|
|
16
|
+
* nothing is animating and the close is complete.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* const contentRef = React.useRef<HTMLDivElement>(null);
|
|
21
|
+
* useOpenChangeComplete(open, contentRef, onOpenChangeComplete);
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function useOpenChangeComplete(open: boolean, nodeRef: React.RefObject<HTMLElement | null>, onOpenChangeComplete?: (open: boolean) => void): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as i from"react";import{useCallbackRef as d}from"./useCallbackRef.js";function v(e){let{animationName:n,transitionDuration:s,display:o}=getComputedStyle(e);return o==="none"?!1:n!==""&&n!=="none"?!0:s.split(",").some(a=>Number.parseFloat(a)>0)}function E(e,n,s){let o=d(s),a=i.useRef(!0);i.useEffect(()=>{if(a.current){a.current=!1;return}let c=["animationend","animationcancel","transitionend","transitioncancel"],l,u=()=>{let t=n.current;if(!t||!t.isConnected||!v(t)){o(e);return}let f=r=>{r.target===t&&o(e)};for(let r of c)t.addEventListener(r,f);l=()=>{for(let r of c)t.removeEventListener(r,f)}},m=0;return e&&!n.current?m=requestAnimationFrame(u):u(),()=>{cancelAnimationFrame(m),l?.()}},[e,n,o])}export{E as useOpenChangeComplete};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var C=Object.create;var O=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var S=(t,i)=>{for(var r in i)O(t,r,{get:i[r],enumerable:!0})},E=(t,i,r,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let l of M(i))!L.call(t,l)&&l!==r&&O(t,l,{get:()=>i[l],enumerable:!(c=A(i,l))||c.enumerable});return t};var T=(t,i,r)=>(r=t!=null?C(H(t)):{},E(i||!t||!t.__esModule?O(r,"default",{value:t,enumerable:!0}):r,t)),k=t=>E(O({},"__esModule",{value:!0}),t);var U={};S(U,{useOptionCollection:()=>q,useOptionEntry:()=>w});module.exports=k(U);var e=T(require("react"),1),R='[role="option"]:not([data-disabled])';function q({open:t,setOpen:i,contentRef:r}){let[c,l]=e.useState(null),[g,p]=e.useState(()=>new Map),u=e.useRef(null),[x,f]=e.useState(t);t!==x&&(f(t),t||l(null)),e.useEffect(()=>{if(!t)return;let s=requestAnimationFrame(()=>{let o=u.current;if(u.current=null,!o)return;let n=r.current?.querySelectorAll(R);if(!n||n.length===0)return;let m=o==="last"?n[n.length-1]:n[0];l(a=>a??m.id)});return()=>cancelAnimationFrame(s)},[t,r]),e.useLayoutEffect(()=>{if(c===null)return;let s=Array.from(r.current?.querySelectorAll(R)??[]);s.some(o=>o.id===c)||l(s[0]?.id??null)});let d=e.useCallback((s,o)=>{p(n=>{let m=n.get(s);if(m?.value===o.value&&m.text===o.text)return n;let a=new Map(n);return a.set(s,o),a})},[]),v=e.useCallback(s=>{p(o=>{if(!o.has(s))return o;let n=new Map(o);return n.delete(s),n})},[]),I=e.useCallback(s=>g.get(s),[g]),y=e.useCallback(s=>{u.current=s,i(!0)},[i]),b=e.useCallback(s=>{let o=r.current;if(!o)return;let n=Array.from(o.querySelectorAll(R));if(n.length===0)return;let a=n.findIndex(h=>h.id===c)+s;a<0&&(a=0),a>=n.length&&(a=n.length-1),l(n[a].id)},[c,r]);return{activeId:c,setActiveId:l,itemCount:g.size,registerItem:d,unregisterItem:v,getItem:I,openWithHighlight:y,moveActive:b}}function w({id:t,value:i,textValue:r,itemRef:c,matchesFilter:l,registerItem:g,unregisterItem:p}){let[u,x]=e.useState(r??null);e.useLayoutEffect(()=>{let d=r??c.current?.textContent;d!=null&&d!==u&&x(d)});let f=u===null||l(u);return e.useEffect(()=>{if(f)return g(t,{value:i,text:u??""}),()=>p(t)},[t,f,i,u]),{text:u,visible:f}}0&&(module.exports={useOptionCollection,useOptionEntry});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The virtual-focus option collection behind every listbox-with-a-textbox in
|
|
4
|
+
* this package — `Combobox`, `Autocomplete`, `MultiSelect`.
|
|
5
|
+
*
|
|
6
|
+
* All three face the identical set of problems: real DOM focus never leaves
|
|
7
|
+
* the input, so the highlighted option is tracked as an id and mirrored into
|
|
8
|
+
* `aria-activedescendant`; the highlighted option can be filtered out from
|
|
9
|
+
* under the highlight; opening with Arrow Down has to wait for the popup's
|
|
10
|
+
* items to mount before "first" means anything; and moving the highlight is a
|
|
11
|
+
* DOM question, not a state question, because items register in a passive
|
|
12
|
+
* effect one commit behind the DOM they describe.
|
|
13
|
+
*
|
|
14
|
+
* Extracted here rather than copied into each family: the answers are the
|
|
15
|
+
* same in all three, and the two-pass convergence in the layout effect below
|
|
16
|
+
* is exactly the kind of thing that rots when it exists three times.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
/** @internal What one registered option contributes to a {@link useOptionCollection} collection. */
|
|
21
|
+
export interface OptionEntry {
|
|
22
|
+
/** Identifier committed to the owning root's value when this option is chosen. */
|
|
23
|
+
value: string;
|
|
24
|
+
/** The option's `textValue`, or its rendered text — matched by `filter` and written back into the input. */
|
|
25
|
+
text: string;
|
|
26
|
+
}
|
|
27
|
+
/** @internal Parameters for {@link useOptionCollection}. */
|
|
28
|
+
export interface UseOptionCollectionOptions {
|
|
29
|
+
/** Whether the popup listing the options is currently open. */
|
|
30
|
+
open: boolean;
|
|
31
|
+
/** Opens/closes that popup — used by {@link OptionCollection.openWithHighlight}. */
|
|
32
|
+
setOpen: (open: boolean) => void;
|
|
33
|
+
/** The popup element the options are rendered inside; read directly for highlight moves. */
|
|
34
|
+
contentRef: React.RefObject<HTMLDivElement | null>;
|
|
35
|
+
}
|
|
36
|
+
/** @internal What {@link useOptionCollection} hands back to a root's context. */
|
|
37
|
+
export interface OptionCollection {
|
|
38
|
+
/** Element id of the virtually-focused option, mirrored into the input's `aria-activedescendant`. */
|
|
39
|
+
activeId: string | null;
|
|
40
|
+
/** Moves the virtual focus, or clears it with `null`. */
|
|
41
|
+
setActiveId: (id: string | null) => void;
|
|
42
|
+
/** How many options are currently registered (i.e. rendered and surviving the filter). */
|
|
43
|
+
itemCount: number;
|
|
44
|
+
/** Adds an option to the collection under its element id. */
|
|
45
|
+
registerItem: (id: string, entry: OptionEntry) => void;
|
|
46
|
+
/** Removes an option from the collection. */
|
|
47
|
+
unregisterItem: (id: string) => void;
|
|
48
|
+
/** The registered entry behind an option id, for committing the virtually-focused option. */
|
|
49
|
+
getItem: (id: string) => OptionEntry | undefined;
|
|
50
|
+
/** Opens the popup and, once its options are mounted, highlights the first (or last) one. */
|
|
51
|
+
openWithHighlight: (edge: 'first' | 'last') => void;
|
|
52
|
+
/** Moves the highlight one option forward (`1`) or back (`-1`), clamped at both ends. */
|
|
53
|
+
moveActive: (direction: 1 | -1) => void;
|
|
54
|
+
}
|
|
55
|
+
export declare function useOptionCollection({ open, setOpen, contentRef, }: UseOptionCollectionOptions): OptionCollection;
|
|
56
|
+
/** @internal Parameters for {@link useOptionEntry}. */
|
|
57
|
+
export interface UseOptionEntryOptions {
|
|
58
|
+
/** This option's element id — the value the input's `aria-activedescendant` carries while it is highlighted. */
|
|
59
|
+
id: string;
|
|
60
|
+
/** The value committed to the root when this option is chosen. */
|
|
61
|
+
value: string;
|
|
62
|
+
/** Explicit text for matching, when the option renders more than its label. */
|
|
63
|
+
textValue: string | undefined;
|
|
64
|
+
/** The element rendering this option, measured for its text when `textValue` is absent. */
|
|
65
|
+
itemRef: React.RefObject<HTMLElement | null>;
|
|
66
|
+
/** Whether an option with this text survives the root's current filter and draft text. */
|
|
67
|
+
matchesFilter: (text: string) => boolean;
|
|
68
|
+
/** The root's collection registration, from {@link useOptionCollection}. */
|
|
69
|
+
registerItem: (id: string, entry: OptionEntry) => void;
|
|
70
|
+
/** The root's collection de-registration, from {@link useOptionCollection}. */
|
|
71
|
+
unregisterItem: (id: string) => void;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The measure-then-filter-then-register cycle every `*Item` part runs, shared
|
|
75
|
+
* by `Autocomplete` and `MultiSelect`.
|
|
76
|
+
*
|
|
77
|
+
* The ordering is the whole point and is easy to get wrong: an option's text
|
|
78
|
+
* has to exist in the DOM before the filter can measure it, so an unmeasured
|
|
79
|
+
* option always renders; a rejected option renders *nothing at all* rather
|
|
80
|
+
* than hiding, because a hidden option is still reachable through
|
|
81
|
+
* `aria-activedescendant` and would still be counted as a result.
|
|
82
|
+
*
|
|
83
|
+
* @returns The option's measured text (or `null` before the first measurement)
|
|
84
|
+
* and whether it should render.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
export declare function useOptionEntry({ id, value, textValue, itemRef, matchesFilter, registerItem, unregisterItem, }: UseOptionEntryOptions): {
|
|
88
|
+
text: string | null;
|
|
89
|
+
visible: boolean;
|
|
90
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The virtual-focus option collection behind every listbox-with-a-textbox in
|
|
4
|
+
* this package — `Combobox`, `Autocomplete`, `MultiSelect`.
|
|
5
|
+
*
|
|
6
|
+
* All three face the identical set of problems: real DOM focus never leaves
|
|
7
|
+
* the input, so the highlighted option is tracked as an id and mirrored into
|
|
8
|
+
* `aria-activedescendant`; the highlighted option can be filtered out from
|
|
9
|
+
* under the highlight; opening with Arrow Down has to wait for the popup's
|
|
10
|
+
* items to mount before "first" means anything; and moving the highlight is a
|
|
11
|
+
* DOM question, not a state question, because items register in a passive
|
|
12
|
+
* effect one commit behind the DOM they describe.
|
|
13
|
+
*
|
|
14
|
+
* Extracted here rather than copied into each family: the answers are the
|
|
15
|
+
* same in all three, and the two-pass convergence in the layout effect below
|
|
16
|
+
* is exactly the kind of thing that rots when it exists three times.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
/** @internal What one registered option contributes to a {@link useOptionCollection} collection. */
|
|
21
|
+
export interface OptionEntry {
|
|
22
|
+
/** Identifier committed to the owning root's value when this option is chosen. */
|
|
23
|
+
value: string;
|
|
24
|
+
/** The option's `textValue`, or its rendered text — matched by `filter` and written back into the input. */
|
|
25
|
+
text: string;
|
|
26
|
+
}
|
|
27
|
+
/** @internal Parameters for {@link useOptionCollection}. */
|
|
28
|
+
export interface UseOptionCollectionOptions {
|
|
29
|
+
/** Whether the popup listing the options is currently open. */
|
|
30
|
+
open: boolean;
|
|
31
|
+
/** Opens/closes that popup — used by {@link OptionCollection.openWithHighlight}. */
|
|
32
|
+
setOpen: (open: boolean) => void;
|
|
33
|
+
/** The popup element the options are rendered inside; read directly for highlight moves. */
|
|
34
|
+
contentRef: React.RefObject<HTMLDivElement | null>;
|
|
35
|
+
}
|
|
36
|
+
/** @internal What {@link useOptionCollection} hands back to a root's context. */
|
|
37
|
+
export interface OptionCollection {
|
|
38
|
+
/** Element id of the virtually-focused option, mirrored into the input's `aria-activedescendant`. */
|
|
39
|
+
activeId: string | null;
|
|
40
|
+
/** Moves the virtual focus, or clears it with `null`. */
|
|
41
|
+
setActiveId: (id: string | null) => void;
|
|
42
|
+
/** How many options are currently registered (i.e. rendered and surviving the filter). */
|
|
43
|
+
itemCount: number;
|
|
44
|
+
/** Adds an option to the collection under its element id. */
|
|
45
|
+
registerItem: (id: string, entry: OptionEntry) => void;
|
|
46
|
+
/** Removes an option from the collection. */
|
|
47
|
+
unregisterItem: (id: string) => void;
|
|
48
|
+
/** The registered entry behind an option id, for committing the virtually-focused option. */
|
|
49
|
+
getItem: (id: string) => OptionEntry | undefined;
|
|
50
|
+
/** Opens the popup and, once its options are mounted, highlights the first (or last) one. */
|
|
51
|
+
openWithHighlight: (edge: 'first' | 'last') => void;
|
|
52
|
+
/** Moves the highlight one option forward (`1`) or back (`-1`), clamped at both ends. */
|
|
53
|
+
moveActive: (direction: 1 | -1) => void;
|
|
54
|
+
}
|
|
55
|
+
export declare function useOptionCollection({ open, setOpen, contentRef, }: UseOptionCollectionOptions): OptionCollection;
|
|
56
|
+
/** @internal Parameters for {@link useOptionEntry}. */
|
|
57
|
+
export interface UseOptionEntryOptions {
|
|
58
|
+
/** This option's element id — the value the input's `aria-activedescendant` carries while it is highlighted. */
|
|
59
|
+
id: string;
|
|
60
|
+
/** The value committed to the root when this option is chosen. */
|
|
61
|
+
value: string;
|
|
62
|
+
/** Explicit text for matching, when the option renders more than its label. */
|
|
63
|
+
textValue: string | undefined;
|
|
64
|
+
/** The element rendering this option, measured for its text when `textValue` is absent. */
|
|
65
|
+
itemRef: React.RefObject<HTMLElement | null>;
|
|
66
|
+
/** Whether an option with this text survives the root's current filter and draft text. */
|
|
67
|
+
matchesFilter: (text: string) => boolean;
|
|
68
|
+
/** The root's collection registration, from {@link useOptionCollection}. */
|
|
69
|
+
registerItem: (id: string, entry: OptionEntry) => void;
|
|
70
|
+
/** The root's collection de-registration, from {@link useOptionCollection}. */
|
|
71
|
+
unregisterItem: (id: string) => void;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The measure-then-filter-then-register cycle every `*Item` part runs, shared
|
|
75
|
+
* by `Autocomplete` and `MultiSelect`.
|
|
76
|
+
*
|
|
77
|
+
* The ordering is the whole point and is easy to get wrong: an option's text
|
|
78
|
+
* has to exist in the DOM before the filter can measure it, so an unmeasured
|
|
79
|
+
* option always renders; a rejected option renders *nothing at all* rather
|
|
80
|
+
* than hiding, because a hidden option is still reachable through
|
|
81
|
+
* `aria-activedescendant` and would still be counted as a result.
|
|
82
|
+
*
|
|
83
|
+
* @returns The option's measured text (or `null` before the first measurement)
|
|
84
|
+
* and whether it should render.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
export declare function useOptionEntry({ id, value, textValue, itemRef, matchesFilter, registerItem, unregisterItem, }: UseOptionEntryOptions): {
|
|
88
|
+
text: string | null;
|
|
89
|
+
visible: boolean;
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"react";var x='[role="option"]:not([data-disabled])';function b({open:r,setOpen:a,contentRef:l}){let[c,u]=t.useState(null),[g,p]=t.useState(()=>new Map),s=t.useRef(null),[O,f]=t.useState(r);r!==O&&(f(r),r||u(null)),t.useEffect(()=>{if(!r)return;let n=requestAnimationFrame(()=>{let i=s.current;if(s.current=null,!i)return;let e=l.current?.querySelectorAll(x);if(!e||e.length===0)return;let m=i==="last"?e[e.length-1]:e[0];u(o=>o??m.id)});return()=>cancelAnimationFrame(n)},[r,l]),t.useLayoutEffect(()=>{if(c===null)return;let n=Array.from(l.current?.querySelectorAll(x)??[]);n.some(i=>i.id===c)||u(n[0]?.id??null)});let d=t.useCallback((n,i)=>{p(e=>{let m=e.get(n);if(m?.value===i.value&&m.text===i.text)return e;let o=new Map(e);return o.set(n,i),o})},[]),R=t.useCallback(n=>{p(i=>{if(!i.has(n))return i;let e=new Map(i);return e.delete(n),e})},[]),E=t.useCallback(n=>g.get(n),[g]),v=t.useCallback(n=>{s.current=n,a(!0)},[a]),I=t.useCallback(n=>{let i=l.current;if(!i)return;let e=Array.from(i.querySelectorAll(x));if(e.length===0)return;let o=e.findIndex(y=>y.id===c)+n;o<0&&(o=0),o>=e.length&&(o=e.length-1),u(e[o].id)},[c,l]);return{activeId:c,setActiveId:u,itemCount:g.size,registerItem:d,unregisterItem:R,getItem:E,openWithHighlight:v,moveActive:I}}function h({id:r,value:a,textValue:l,itemRef:c,matchesFilter:u,registerItem:g,unregisterItem:p}){let[s,O]=t.useState(l??null);t.useLayoutEffect(()=>{let d=l??c.current?.textContent;d!=null&&d!==s&&O(d)});let f=s===null||u(s);return t.useEffect(()=>{if(f)return g(r,{value:a,text:s??""}),()=>p(r)},[r,f,a,s]),{text:s,visible:f}}export{b as useOptionCollection,h as useOptionEntry};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var R=Object.create;var f=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var L=(n,e)=>{for(var r in e)f(n,r,{get:e[r],enumerable:!0})},E=(n,e,r,g)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of h(e))!C.call(n,t)&&t!==r&&f(n,t,{get:()=>e[t],enumerable:!(g=b(e,t))||g.enumerable});return n};var w=(n,e,r)=>(r=n!=null?R(A(n)):{},E(e||!n||!n.__esModule?f(r,"default",{value:n,enumerable:!0}):r,n)),x=n=>E(f({},"__esModule",{value:!0}),n);var U={};L(U,{usePointerAngle:()=>M});module.exports=x(U);var i=w(require("react"),1);function D(n,e){return(Math.atan2(n,-e)*180/Math.PI+360)%360}function I(n,e){return e?Math.round(Math.round(n/e)*e*1e6)/1e6%360:n}function M(n){let e=i.useRef(n);i.useEffect(()=>{e.current=n});let[r,g]=i.useState(!1),t=i.useRef(null),v=(u,c)=>{let o=c.getBoundingClientRect(),s=u.clientX-(o.left+o.width/2),d=u.clientY-(o.top+o.height/2);return I(D(s,d),e.current.step??0)},P=u=>{if(t.current)return;let c=u.currentTarget,{pointerId:o}=u;c.setPointerCapture?.(o);let s=v(u,c);g(!0),e.current.onAngleChange(s,u.nativeEvent);let d=l=>{if(l.pointerId!==o)return;let p=v(l,c);p!==s&&(s=p,e.current.onAngleChange(p,l))},m=l=>{l.pointerId===o&&(t.current?.(),g(!1),e.current.onAngleChangeEnd?.(s,l))},a=c.ownerDocument;a.addEventListener("pointermove",d),a.addEventListener("pointerup",m),a.addEventListener("pointercancel",m),t.current=()=>{a.removeEventListener("pointermove",d),a.removeEventListener("pointerup",m),a.removeEventListener("pointercancel",m),t.current=null}};return i.useEffect(()=>()=>t.current?.(),[]),{onPointerDown:P,dragging:r}}0&&(module.exports={usePointerAngle});
|