@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,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldContextValue, FieldProps, FieldsetProps } from './types.cjs';
|
|
3
|
+
export declare const FieldProvider: {
|
|
4
|
+
(props: FieldContextValue & {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
}, useFieldContext: (consumerName: string) => FieldContextValue;
|
|
9
|
+
/**
|
|
10
|
+
* Wraps one form control and wires its `FieldLabel`, `FieldDescription`, and
|
|
11
|
+
* `FieldError` to it: generated ids, `aria-describedby`, `aria-invalid`, and
|
|
12
|
+
* the `data-valid`/`data-invalid`/`data-touched`/`data-dirty`/`data-filled`
|
|
13
|
+
* state hooks on both the Field and the control. Any control works — an skdx
|
|
14
|
+
* component, a native `<input>`, or a third-party widget — because the Field
|
|
15
|
+
* finds it in its own subtree rather than expecting it to cooperate.
|
|
16
|
+
*
|
|
17
|
+
* Also owns the field's validation model: `validate` (sync or async),
|
|
18
|
+
* `mode`, server errors through `errors`, and the wrapped control's own
|
|
19
|
+
* native constraint validation as a fallback, so plain `required` works with
|
|
20
|
+
* no configuration.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Field validate={(value) => (value ? null : 'Enter your name')}>
|
|
25
|
+
* <FieldLabel>Name</FieldLabel>
|
|
26
|
+
* <TextField />
|
|
27
|
+
* <FieldDescription>As shown on your passport.</FieldDescription>
|
|
28
|
+
* <FieldError />
|
|
29
|
+
* </Field>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* A {@link Field} that renders a `<fieldset>` and puts its `FieldLabel` in a
|
|
35
|
+
* `<legend>` — the grouping a `RadioGroup` or a set of checkboxes needs,
|
|
36
|
+
* since a `<label for>` may not point at a `[role="radiogroup"]`. Same props,
|
|
37
|
+
* same validation model, same state hooks; the group control is named with
|
|
38
|
+
* `aria-labelledby` instead of `for`/`id`.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Fieldset validate={(value) => (value ? null : 'Choose a plan')}>
|
|
43
|
+
* <FieldLabel>Plan</FieldLabel>
|
|
44
|
+
* <RadioGroup>…</RadioGroup>
|
|
45
|
+
* <FieldError />
|
|
46
|
+
* </Fieldset>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare const Fieldset: React.ForwardRefExoticComponent<Omit<FieldsetProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldContextValue, FieldProps, FieldsetProps } from './types.js';
|
|
3
|
+
export declare const FieldProvider: {
|
|
4
|
+
(props: FieldContextValue & {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
}, useFieldContext: (consumerName: string) => FieldContextValue;
|
|
9
|
+
/**
|
|
10
|
+
* Wraps one form control and wires its `FieldLabel`, `FieldDescription`, and
|
|
11
|
+
* `FieldError` to it: generated ids, `aria-describedby`, `aria-invalid`, and
|
|
12
|
+
* the `data-valid`/`data-invalid`/`data-touched`/`data-dirty`/`data-filled`
|
|
13
|
+
* state hooks on both the Field and the control. Any control works — an skdx
|
|
14
|
+
* component, a native `<input>`, or a third-party widget — because the Field
|
|
15
|
+
* finds it in its own subtree rather than expecting it to cooperate.
|
|
16
|
+
*
|
|
17
|
+
* Also owns the field's validation model: `validate` (sync or async),
|
|
18
|
+
* `mode`, server errors through `errors`, and the wrapped control's own
|
|
19
|
+
* native constraint validation as a fallback, so plain `required` works with
|
|
20
|
+
* no configuration.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Field validate={(value) => (value ? null : 'Enter your name')}>
|
|
25
|
+
* <FieldLabel>Name</FieldLabel>
|
|
26
|
+
* <TextField />
|
|
27
|
+
* <FieldDescription>As shown on your passport.</FieldDescription>
|
|
28
|
+
* <FieldError />
|
|
29
|
+
* </Field>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* A {@link Field} that renders a `<fieldset>` and puts its `FieldLabel` in a
|
|
35
|
+
* `<legend>` — the grouping a `RadioGroup` or a set of checkboxes needs,
|
|
36
|
+
* since a `<label for>` may not point at a `[role="radiogroup"]`. Same props,
|
|
37
|
+
* same validation model, same state hooks; the group control is named with
|
|
38
|
+
* `aria-labelledby` instead of `for`/`id`.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Fieldset validate={(value) => (value ? null : 'Choose a plan')}>
|
|
43
|
+
* <FieldLabel>Plan</FieldLabel>
|
|
44
|
+
* <RadioGroup>…</RadioGroup>
|
|
45
|
+
* <FieldError />
|
|
46
|
+
* </Fieldset>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare const Fieldset: React.ForwardRefExoticComponent<Omit<FieldsetProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as a from"react";import{useComposedRefs as V}from"../utils/composeRefs.js";import{createSafeContext as de}from"../utils/createContext.js";import{announce as ue}from"../utils/liveAnnouncer.js";import{skdxPart as ce}from"../utils/part.js";import{Primitive as k}from"../utils/primitive.js";import{useCallbackRef as he}from"../utils/useCallbackRef.js";var P="validity-change",C="data-skdx-field",R="data-skdx-field-name",I="data-skdx-field-message",A="data-skdx-field-description",E="data-skdx-field-error",x="data-skdx-field-character-count",Z=1e3;function F(r){let e=Math.abs(r),t=e===1?"character":"characters";return r<0?`You have ${e} ${t} too many`:`You have ${e} ${t} remaining`}function b(r,e,t=0){return t<=0?!0:r>=e*t/100}var O="This field is invalid.",D="data-skdx-field-control",N=[`[${D}]`,'input:not([type="hidden"])',"select","textarea",'[role="textbox"]','[role="searchbox"]','[role="combobox"]','[role="listbox"]','[role="radiogroup"]','[role="group"]','[role="slider"]','[role="spinbutton"]','[role="checkbox"]','[role="radio"]','[role="switch"]'].join(", "),ee=new Set(["radiogroup","group"]),te=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function M(r){return r==null?[]:(Array.isArray(r)?r:[r]).filter(t=>typeof t=="string"&&t.trim()!=="")}function _(r){for(let e of Array.from(r.querySelectorAll(N)))if(e.getAttribute("aria-hidden")!=="true"&&e.closest(`[${C}]`)===r)return e;return null}function L(r,e){for(let t of Array.from(r.querySelectorAll(e)))if(t.closest(`[${C}]`)===r)return t;return null}function re(r){if(!r)return;let e=r;return e.type==="checkbox"||e.type==="radio"?e.checked:"value"in r?e.value:r.querySelector('input[aria-hidden="true"]')?.value}function f(r){return r==null||r===!1||r===""?!1:!(Array.isArray(r)&&r.length===0)}function p(r,e,t){t?r.setAttribute(e,""):r.removeAttribute(e)}function oe(r,...e){let t=r.split(/\s+/).filter(Boolean);for(let o of e)o&&!t.includes(o)&&t.push(o);return t.join(" ")}function ie(r){return r.closest("form, skdx-form")??r.parentElement??r}function ne(r){return Array.from(r.querySelectorAll(`[${C}][data-invalid]`)).flatMap(t=>{let o=_(t),n=L(t,`[${E}]`)?.textContent?.trim()||t.getAttribute(I)||t.getAttribute(R)||"";return!o?.id||!n?[]:[{id:o.id,message:n}]})}function se(r,e=document){let t=e.getElementById(r);if(!t)return;let o=t.getAttribute("role"),n=(t.tagName==="FIELDSET"||o!==null&&ee.has(o)?t.querySelector(te):null)??t;n.focus(),n.scrollIntoView?.({block:"center"})}var g=class{constructor(e){this.options=e;this.props={};this.root=null;this.form=null;this.control=null;this.baseDescribedBy="";this.runToken=0;this.pending=!1;this.injected=[];this.custom=[];this.characterCount=null;this.handleInput=()=>{let e=this.isOverLimit(this.snapshot.count),t=this.readCount();this.update({dirty:!0,filled:f(this.resolveValue()),count:t,errors:this.composeErrors(t)}),this.scheduleCountAnnouncement(t,e),(this.props.mode==="change"||this.snapshot.errors.length>0)&&this.runValidation()};this.handleFocusOut=()=>{let e=this.readCount();this.update({touched:!0,filled:f(this.resolveValue()),count:e,errors:this.composeErrors(e)}),((this.props.mode??"blur")==="blur"||this.snapshot.errors.length>0)&&this.runValidation()};this.handleSubmit=e=>{if(e.target!==this.form)return;this.markTouched();let t=this.runValidation({silent:!0});if(S(t)){e.preventDefault();return}(t.length>0||this.pending)&&e.preventDefault()};this.snapshot={controlId:e.controlId,errors:[],valid:!0,touched:!1,dirty:!1,filled:!1,count:0}}get state(){return this.snapshot}setProps(e){let t=this.props.value;this.props=e;let o=M(e.errors??null),i=!ae(this.injected,o);i&&(this.injected=o);let n=e.value!==t;if(!i&&!n)return;let s=this.readCount();this.update({count:s,filled:f(this.resolveValue()),errors:this.composeErrors(s)})}setCharacterCount(e){if((this.characterCount?.maxLength??null)===(e?.maxLength??null)&&(this.characterCount?.threshold??0)===(e?.threshold??0))return;this.characterCount=e;let o=this.readCount();this.update({count:o,errors:this.composeErrors(o)})}readCount(){let e=this.resolveValue();return typeof e=="string"?e.length:0}countMessage(e){return(this.props.getCharacterCountMessage??F)(e)}isOverLimit(e){return this.characterCount!==null&&e>this.characterCount.maxLength}composeErrors(e=this.snapshot.count){let t=[...this.injected,...this.custom];return this.characterCount&&this.isOverLimit(e)&&t.push(this.countMessage(this.characterCount.maxLength-e)),t}scheduleCountAnnouncement(e,t){let o=this.characterCount;if(!o)return;if(clearTimeout(this.announceTimer),this.isOverLimit(e)){t||this.options.announce(this.countMessage(o.maxLength-e),"assertive");return}if(!b(e,o.maxLength,o.threshold))return;let i=o.maxLength-e;this.announceTimer=setTimeout(()=>{this.options.announce(this.countMessage(i),"polite")},1e3)}connect(e){this.root=e,e.setAttribute(C,""),e.addEventListener("input",this.handleInput,!0),e.addEventListener("change",this.handleInput,!0),e.addEventListener("focusout",this.handleFocusOut,!0),this.form=e.closest("form"),this.form&&e.ownerDocument.addEventListener("submit",this.handleSubmit,!0),this.sync();let t=this.readCount();this.update({filled:f(this.resolveValue()),count:t,errors:this.composeErrors(t)})}disconnect(){clearTimeout(this.announceTimer);let e=this.root;e&&(e.removeEventListener("input",this.handleInput,!0),e.removeEventListener("change",this.handleInput,!0),e.removeEventListener("focusout",this.handleFocusOut,!0),this.form&&e.ownerDocument.removeEventListener("submit",this.handleSubmit,!0),this.root=null,this.form=null,this.control=null)}sync(){let e=this.root;if(!e)return;let t=_(e);t!==this.control&&(this.control=t,this.baseDescribedBy=t?.getAttribute("aria-describedby")??"");let{name:o}=this.props;o?e.setAttribute(R,o):e.removeAttribute(R);let i=this.snapshot.errors.join(" ");if(i?e.setAttribute(I,i):e.removeAttribute(I),this.applyStateAttributes(e),!t)return;t.id||(t.id=this.options.controlId),t.id!==this.snapshot.controlId&&(this.snapshot={...this.snapshot,controlId:t.id},this.options.onSnapshotChange(this.snapshot));let n=L(e,`[${A}]`)!==null,s=L(e,`[${E}]`)!==null,l=oe(this.baseDescribedBy,n?this.options.descriptionId:void 0,s?this.options.errorId:void 0);l?t.setAttribute("aria-describedby",l):t.removeAttribute("aria-describedby"),this.snapshot.errors.length>0?t.setAttribute("aria-invalid","true"):t.removeAttribute("aria-invalid");let d=e.ownerDocument.getElementById(this.options.labelId)!==null;this.options.grouped&&d?t.setAttribute("aria-labelledby",this.options.labelId):t.getAttribute("aria-labelledby")===this.options.labelId&&t.removeAttribute("aria-labelledby"),this.applyStateAttributes(t)}validate(){return Promise.resolve(this.runValidation()).then(e=>e.length===0)}markTouched(){this.snapshot.touched||this.update({touched:!0})}applyStateAttributes(e){let{errors:t,touched:o,dirty:i,filled:n,count:s}=this.snapshot;p(e,"data-invalid",t.length>0),p(e,"data-valid",t.length===0),p(e,"data-touched",o),p(e,"data-dirty",i),p(e,"data-filled",n),p(e,"data-over-limit",this.isOverLimit(s))}resolveValue(){return this.props.value!==void 0?this.props.value:re(this.control)}nativeMessage(){let e=this.control;return!e?.validity||e.validity.valid?null:e.validationMessage||this.props.invalidMessage||O}runValidation(e={}){let t=++this.runToken,o=this.props.validate?.(this.resolveValue());return S(o)?(this.pending=!0,Promise.resolve(o).then(i=>t!==this.runToken?this.snapshot.errors:(this.pending=!1,this.commit(i,e)))):this.commit(o,e)}commit(e,t){if(this.custom=M(e),this.custom.length===0&&this.injected.length===0){let l=this.nativeMessage();l&&(this.custom=[l])}let o=this.readCount(),i=this.composeErrors(o),n=this.snapshot.errors.length===0;this.update({errors:i,count:o,filled:f(this.resolveValue())});let s=i[0];return s&&n&&!t.silent&&this.options.announce(s,"assertive"),i}update(e){let t={...this.snapshot,...e,valid:!0};t.valid=t.errors.length===0,!le(this.snapshot,t)&&(this.snapshot=t,this.sync(),this.options.onSnapshotChange(t),this.root?.dispatchEvent(new CustomEvent(P,{bubbles:!0,composed:!0,detail:{valid:t.valid,errors:t.errors,touched:t.touched,dirty:t.dirty,filled:t.filled,count:t.count}})))}};function S(r){return typeof r?.then=="function"}function ae(r,e){return r.length===e.length&&r.every((t,o)=>t===e[o])}function le(r,e){return r.controlId===e.controlId&&r.valid===e.valid&&r.touched===e.touched&&r.dirty===e.dirty&&r.filled===e.filled&&r.count===e.count&&r.errors.length===e.errors.length&&r.errors.every((t,o)=>t===e.errors[o])}import{jsx as T}from"react/jsx-runtime";var[H,c]=de("Field");function w(r,e,t){let o=a.useId(),i=a.useMemo(()=>({labelId:`${o}label`,descriptionId:`${o}description`,errorId:`${o}error`,controlId:`${o}control`}),[o]),[n,s]=a.useState(()=>({controlId:"",errors:[],valid:!0,touched:!1,dirty:!1,filled:!1,count:0})),l=he(r.onValidityChange),d=a.useMemo(()=>new g({...i,grouped:e,onSnapshotChange:u=>{s(u);let{controlId:v,...X}=u;l(X)},announce:ue}),[i,e,l]);a.useEffect(()=>{let u=t.current;if(u)return d.connect(u),s(d.state),()=>d.disconnect()},[d,t]),a.useEffect(()=>{d.setProps({validate:r.validate,mode:r.mode,errors:r.errors,value:r.value,name:r.name,getCharacterCountMessage:r.getCharacterCountMessage,invalidMessage:r.invalidMessage}),d.sync()});let m=a.useCallback(u=>d.setCharacterCount(u),[d]);return{...i,controlId:n.controlId||void 0,errors:n.errors,grouped:e,count:n.count,setCharacterCount:m,getCharacterCountMessage:r.getCharacterCountMessage}}var U=a.forwardRef(({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l,...d},m)=>{let h=a.useRef(null),u=w({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l},!1,h),v=V(m,h);return T(H,{...u,children:T(k.div,{...d,...ce("field","root",d.className),ref:v})})});U.displayName="Field";var B=a.forwardRef(({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l,...d},m)=>{let h=a.useRef(null),u=w({validate:r,mode:e,errors:t,value:o,name:i,onValidityChange:n,getCharacterCountMessage:s,invalidMessage:l},!0,h),v=V(m,h);return T(H,{...u,children:T(k.fieldset,{...d,ref:v})})});B.displayName="Fieldset";import*as Y from"react";import{skdxPart as $}from"../utils/part.js";import{Primitive as G}from"../utils/primitive.js";import{jsx as j}from"react/jsx-runtime";var q=Y.forwardRef((r,e)=>{let t=c("FieldLabel");return t.grouped?j(G.legend,{id:t.labelId,...r,...$("field","label",r.className),ref:e}):j(G.label,{id:t.labelId,htmlFor:t.controlId,...r,...$("field","label",r.className),ref:e})});q.displayName="FieldLabel";import*as K from"react";import{skdxPart as pe}from"../utils/part.js";import{Primitive as me}from"../utils/primitive.js";import{jsx as fe}from"react/jsx-runtime";var z=K.forwardRef((r,e)=>{let t=c("FieldDescription");return fe(me.span,{id:t.descriptionId,[A]:"",...r,...pe("field","description",r.className),ref:e})});z.displayName="FieldDescription";import*as W from"react";import{skdxPart as ve}from"../utils/part.js";import{Primitive as ge}from"../utils/primitive.js";import{jsx as Ce}from"react/jsx-runtime";var J=W.forwardRef(({children:r,...e},t)=>{let o=c("FieldError");return o.errors.length===0?null:Ce(ge.span,{id:o.errorId,[E]:"",...e,...ve("field","error",e.className),ref:t,children:r??o.errors.join(" ")})});J.displayName="FieldError";import*as y from"react";import{skdxPart as Ee}from"../utils/part.js";import{Primitive as Fe}from"../utils/primitive.js";import{jsx as be}from"react/jsx-runtime";var Q=y.forwardRef(({maxLength:r,threshold:e=0,children:t,...o},i)=>{let n=c("FieldCharacterCount"),{setCharacterCount:s}=n;if(y.useEffect(()=>(s({maxLength:r,threshold:e}),()=>s(null)),[s,r,e]),!b(n.count,r,e))return null;let l=r-n.count;return be(Fe.span,{[x]:"","data-over-limit":l<0?"":void 0,...o,...Ee("field","character-count",o.className),ref:i,children:t??(n.getCharacterCountMessage??F)(l)})});Q.displayName="FieldCharacterCount";export{Z as CHARACTER_COUNT_ANNOUNCE_DELAY_MS,x as FIELD_CHARACTER_COUNT_ATTRIBUTE,D as FIELD_CONTROL_ATTRIBUTE,N as FIELD_CONTROL_SELECTOR,P as FIELD_VALIDITY_CHANGE_EVENT,U as Field,Q as FieldCharacterCount,z as FieldDescription,J as FieldError,q as FieldLabel,B as Fieldset,O as NATIVE_INVALID_FALLBACK_MESSAGE,F as characterCountMessage,b as characterCountVisible,ne as collectFieldErrors,ie as errorSummaryScope,_ as findFieldControl,se as focusFieldTarget};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldCharacterCountProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* A running character count for the control a {@link Field} wraps — GOV.UK's
|
|
5
|
+
* pattern, which works the same for a `Textarea` and a `TextField` because the
|
|
6
|
+
* count belongs to the field, not to the control.
|
|
7
|
+
*
|
|
8
|
+
* `maxLength` is a *soft* limit: it is deliberately not set as the control's
|
|
9
|
+
* native `maxlength`, because that truncates silently and leaves the user with
|
|
10
|
+
* no idea their text was cut. Going over it instead makes the Field invalid
|
|
11
|
+
* through the same path as any other error — `data-invalid`, `aria-invalid` on
|
|
12
|
+
* the control, a message in `FieldError`, and a blocked submit — plus
|
|
13
|
+
* `data-over-limit` here and on the Field for styling.
|
|
14
|
+
*
|
|
15
|
+
* Nothing here is a live region. The count is announced through the shared
|
|
16
|
+
* announcer one typing pause after the last keystroke, so a screen reader hears
|
|
17
|
+
* one number instead of a running commentary over every character typed.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Field>
|
|
22
|
+
* <FieldLabel>Why are you applying?</FieldLabel>
|
|
23
|
+
* <Textarea />
|
|
24
|
+
* <FieldCharacterCount maxLength={200} threshold={75} />
|
|
25
|
+
* <FieldError />
|
|
26
|
+
* </Field>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const FieldCharacterCount: React.ForwardRefExoticComponent<Omit<FieldCharacterCountProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldCharacterCountProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* A running character count for the control a {@link Field} wraps — GOV.UK's
|
|
5
|
+
* pattern, which works the same for a `Textarea` and a `TextField` because the
|
|
6
|
+
* count belongs to the field, not to the control.
|
|
7
|
+
*
|
|
8
|
+
* `maxLength` is a *soft* limit: it is deliberately not set as the control's
|
|
9
|
+
* native `maxlength`, because that truncates silently and leaves the user with
|
|
10
|
+
* no idea their text was cut. Going over it instead makes the Field invalid
|
|
11
|
+
* through the same path as any other error — `data-invalid`, `aria-invalid` on
|
|
12
|
+
* the control, a message in `FieldError`, and a blocked submit — plus
|
|
13
|
+
* `data-over-limit` here and on the Field for styling.
|
|
14
|
+
*
|
|
15
|
+
* Nothing here is a live region. The count is announced through the shared
|
|
16
|
+
* announcer one typing pause after the last keystroke, so a screen reader hears
|
|
17
|
+
* one number instead of a running commentary over every character typed.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Field>
|
|
22
|
+
* <FieldLabel>Why are you applying?</FieldLabel>
|
|
23
|
+
* <Textarea />
|
|
24
|
+
* <FieldCharacterCount maxLength={200} threshold={75} />
|
|
25
|
+
* <FieldError />
|
|
26
|
+
* </Field>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const FieldCharacterCount: React.ForwardRefExoticComponent<Omit<FieldCharacterCountProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldDescriptionProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Help text for a {@link Field}. Its generated `id` is added to the wrapped
|
|
5
|
+
* control's `aria-describedby`, so screen readers announce it *with* the
|
|
6
|
+
* control instead of leaving it to be discovered by browsing.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Field>
|
|
11
|
+
* <FieldLabel>Password</FieldLabel>
|
|
12
|
+
* <TextField type="password" />
|
|
13
|
+
* <FieldDescription>At least 12 characters.</FieldDescription>
|
|
14
|
+
* </Field>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const FieldDescription: React.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldDescriptionProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Help text for a {@link Field}. Its generated `id` is added to the wrapped
|
|
5
|
+
* control's `aria-describedby`, so screen readers announce it *with* the
|
|
6
|
+
* control instead of leaving it to be discovered by browsing.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Field>
|
|
11
|
+
* <FieldLabel>Password</FieldLabel>
|
|
12
|
+
* <TextField type="password" />
|
|
13
|
+
* <FieldDescription>At least 12 characters.</FieldDescription>
|
|
14
|
+
* </Field>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const FieldDescription: React.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldErrorProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* The error text for a {@link Field}. Renders nothing while the field is
|
|
5
|
+
* valid; once it renders, its generated `id` joins the control's
|
|
6
|
+
* `aria-describedby` and the control gains `aria-invalid="true"`.
|
|
7
|
+
*
|
|
8
|
+
* With no children it renders the field's current messages, which is also
|
|
9
|
+
* the text a `FormErrorSummary` uses for its link — pass your own children to
|
|
10
|
+
* override the copy.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Field validate={(value) => (value ? null : 'Enter your name')}>
|
|
15
|
+
* <FieldLabel>Name</FieldLabel>
|
|
16
|
+
* <TextField />
|
|
17
|
+
* <FieldError />
|
|
18
|
+
* </Field>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const FieldError: React.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldErrorProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The error text for a {@link Field}. Renders nothing while the field is
|
|
5
|
+
* valid; once it renders, its generated `id` joins the control's
|
|
6
|
+
* `aria-describedby` and the control gains `aria-invalid="true"`.
|
|
7
|
+
*
|
|
8
|
+
* With no children it renders the field's current messages, which is also
|
|
9
|
+
* the text a `FormErrorSummary` uses for its link — pass your own children to
|
|
10
|
+
* override the copy.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Field validate={(value) => (value ? null : 'Enter your name')}>
|
|
15
|
+
* <FieldLabel>Name</FieldLabel>
|
|
16
|
+
* <TextField />
|
|
17
|
+
* <FieldError />
|
|
18
|
+
* </Field>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const FieldError: React.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldLabelProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* The label for a {@link Field}'s control. Renders a `<label>` whose
|
|
5
|
+
* `htmlFor` points at whatever control the Field discovered — or a
|
|
6
|
+
* `<legend>` inside a {@link Fieldset}, since a `<label for>` may not
|
|
7
|
+
* reference a `[role="radiogroup"]` (there the Field puts `aria-labelledby`
|
|
8
|
+
* on the group instead).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Field>
|
|
13
|
+
* <FieldLabel>Email</FieldLabel>
|
|
14
|
+
* <TextField type="email" />
|
|
15
|
+
* </Field>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const FieldLabel: React.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FieldLabelProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The label for a {@link Field}'s control. Renders a `<label>` whose
|
|
5
|
+
* `htmlFor` points at whatever control the Field discovered — or a
|
|
6
|
+
* `<legend>` inside a {@link Fieldset}, since a `<label for>` may not
|
|
7
|
+
* reference a `[role="radiogroup"]` (there the Field puts `aria-labelledby`
|
|
8
|
+
* on the group instead).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Field>
|
|
13
|
+
* <FieldLabel>Email</FieldLabel>
|
|
14
|
+
* <TextField type="email" />
|
|
15
|
+
* </Field>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const FieldLabel: React.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The framework-free engine behind `Field`. Everything here is plain DOM
|
|
3
|
+
* work — discovering the control inside a Field, injecting the ARIA wiring
|
|
4
|
+
* onto it, running the validation model, and mirroring the interaction state
|
|
5
|
+
* as `data-*` — so all five framework packages run the *same* algorithm and
|
|
6
|
+
* the shared `assertFieldContract` assertions mean the same thing everywhere.
|
|
7
|
+
*
|
|
8
|
+
* The framework layer above this only ever: creates a controller, hands it
|
|
9
|
+
* props, calls `sync()` after each render, and re-renders when the controller
|
|
10
|
+
* says its snapshot changed.
|
|
11
|
+
*
|
|
12
|
+
* See `reports/design-system-competitive-audit/14-rfc-field-fieldset-validation.md`.
|
|
13
|
+
*/
|
|
14
|
+
/** When a Field first runs its validator. See {@link FieldControllerProps.mode}. */
|
|
15
|
+
export type FieldMode = 'change' | 'blur' | 'submit';
|
|
16
|
+
/** What a validator may return: one message, several, or nothing when the value is acceptable. */
|
|
17
|
+
export type FieldValidationResult = string | string[] | null | undefined | void;
|
|
18
|
+
/** A Field's validator, sync or async. */
|
|
19
|
+
export type FieldValidator = (value: unknown) => FieldValidationResult | Promise<FieldValidationResult>;
|
|
20
|
+
/** The bubbling DOM event a Field fires whenever its snapshot changes; a Form's ErrorSummary listens for it. */
|
|
21
|
+
export declare const FIELD_VALIDITY_CHANGE_EVENT = "validity-change";
|
|
22
|
+
/** Marks a Field root, so the error summary can find failing fields without a registry. */
|
|
23
|
+
export declare const FIELD_ROOT_ATTRIBUTE = "data-skdx-field";
|
|
24
|
+
/** Marks a Field's name, used as the error-summary link text when nothing else supplies one. */
|
|
25
|
+
export declare const FIELD_NAME_ATTRIBUTE = "data-skdx-field-name";
|
|
26
|
+
/**
|
|
27
|
+
* The Field's current messages, written straight onto the root the moment
|
|
28
|
+
* validity changes.
|
|
29
|
+
*
|
|
30
|
+
* This exists so the error summary never depends on a framework's render
|
|
31
|
+
* timing: a Field dispatches `validity-change` synchronously from its own DOM
|
|
32
|
+
* listener, *before* React/Vue/Angular/Lit have rendered the Error element, so
|
|
33
|
+
* a summary that could only read that element's text would scan a field that
|
|
34
|
+
* is already `data-invalid` and find nothing to link to.
|
|
35
|
+
*/
|
|
36
|
+
export declare const FIELD_MESSAGE_ATTRIBUTE = "data-skdx-field-message";
|
|
37
|
+
/** Marks a Field's description element, so its id can be added to the control's `aria-describedby`. */
|
|
38
|
+
export declare const FIELD_DESCRIPTION_ATTRIBUTE = "data-skdx-field-description";
|
|
39
|
+
/** Marks a Field's error element, so its id can be added to `aria-describedby` and its text read by the summary. */
|
|
40
|
+
export declare const FIELD_ERROR_ATTRIBUTE = "data-skdx-field-error";
|
|
41
|
+
/** Marks a Field's character-count element, so it can be styled and found without a framework ref. */
|
|
42
|
+
export declare const FIELD_CHARACTER_COUNT_ATTRIBUTE = "data-skdx-field-character-count";
|
|
43
|
+
/**
|
|
44
|
+
* How long the character count waits after the last keystroke before it
|
|
45
|
+
* announces the remaining count.
|
|
46
|
+
*
|
|
47
|
+
* GOV.UK's number, and the reason it exists: a live region that fires on every
|
|
48
|
+
* keystroke reads a running commentary over the character the user just typed.
|
|
49
|
+
* One announcement per typing pause is the whole point of the pattern.
|
|
50
|
+
*/
|
|
51
|
+
export declare const CHARACTER_COUNT_ANNOUNCE_DELAY_MS = 1000;
|
|
52
|
+
/** What a Field's character count is configured with. */
|
|
53
|
+
export interface FieldCharacterCountOptions {
|
|
54
|
+
/** The soft limit. Deliberately *not* the control's native `maxlength`, which truncates silently. */
|
|
55
|
+
maxLength: number;
|
|
56
|
+
/**
|
|
57
|
+
* Percentage of `maxLength` that must be typed before the count is shown and
|
|
58
|
+
* announced at all. `0` shows it from the first render.
|
|
59
|
+
* @default 0
|
|
60
|
+
*/
|
|
61
|
+
threshold?: number;
|
|
62
|
+
}
|
|
63
|
+
/** The default count copy, in GOV.UK's wording. Negative `remaining` means over the limit. */
|
|
64
|
+
export declare function characterCountMessage(remaining: number): string;
|
|
65
|
+
/** Whether a count has passed its threshold and should be rendered/announced. */
|
|
66
|
+
export declare function characterCountVisible(count: number, maxLength: number, threshold?: number): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Used when a control fails native constraint validation but the engine
|
|
69
|
+
* reports no message of its own (jsdom and some browsers leave
|
|
70
|
+
* `validationMessage` empty). A Field is never invalid without something to
|
|
71
|
+
* say, because an error with no message is unannounceable.
|
|
72
|
+
*/
|
|
73
|
+
export declare const NATIVE_INVALID_FALLBACK_MESSAGE = "This field is invalid.";
|
|
74
|
+
/**
|
|
75
|
+
* Opt-in marker saying "I am my Field's control". Discovery's escape hatch for
|
|
76
|
+
* a composite whose role element the Field cannot reach: `<skdx-date-field>`
|
|
77
|
+
* keeps its `role="group"` in a shadow root, so only the host is findable from
|
|
78
|
+
* the Field's light DOM.
|
|
79
|
+
*/
|
|
80
|
+
export declare const FIELD_CONTROL_ATTRIBUTE = "data-skdx-field-control";
|
|
81
|
+
/**
|
|
82
|
+
* How a Field recognises the control it wraps. First match in document order
|
|
83
|
+
* wins, which is why group roles work: a `[role="radiogroup"]` precedes the
|
|
84
|
+
* radios inside it.
|
|
85
|
+
*/
|
|
86
|
+
export declare const FIELD_CONTROL_SELECTOR: string;
|
|
87
|
+
/** The public state of one Field, handed to the framework layer and to `validity-change` listeners. */
|
|
88
|
+
export interface FieldSnapshot {
|
|
89
|
+
/** The id of the discovered control — the Label's `for`, and the error summary's link target. */
|
|
90
|
+
controlId: string;
|
|
91
|
+
/** Every current message, server-injected first. Empty means valid. */
|
|
92
|
+
errors: string[];
|
|
93
|
+
/** `errors.length === 0`. */
|
|
94
|
+
valid: boolean;
|
|
95
|
+
/** The control has been blurred at least once. */
|
|
96
|
+
touched: boolean;
|
|
97
|
+
/** The value has been edited at least once. */
|
|
98
|
+
dirty: boolean;
|
|
99
|
+
/** The control currently holds a value. */
|
|
100
|
+
filled: boolean;
|
|
101
|
+
/** Length of the control's value, tracked only while a character count is configured. */
|
|
102
|
+
count: number;
|
|
103
|
+
}
|
|
104
|
+
/** The props the framework layer forwards into the controller on every render. */
|
|
105
|
+
export interface FieldControllerProps {
|
|
106
|
+
/** See {@link FieldValidator}. */
|
|
107
|
+
validate?: FieldValidator;
|
|
108
|
+
/**
|
|
109
|
+
* When validation first runs. After a failure the field re-validates on
|
|
110
|
+
* every input regardless, so an error clears as soon as it is fixed.
|
|
111
|
+
* @default 'blur'
|
|
112
|
+
*/
|
|
113
|
+
mode?: FieldMode;
|
|
114
|
+
/** Server-injected errors, always shown, listed before anything `validate` produces. */
|
|
115
|
+
errors?: string | string[];
|
|
116
|
+
/** Value handed to `validate`; `undefined` reads it off the control instead. */
|
|
117
|
+
value?: unknown;
|
|
118
|
+
/** Field name, used as the error-summary link text when no error element is rendered. */
|
|
119
|
+
name?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Words the character-count copy — the text `FieldCharacterCount` renders,
|
|
122
|
+
* the message announced one typing pause later, and the error raised once
|
|
123
|
+
* the value goes over the soft limit. A negative `remaining` means over the
|
|
124
|
+
* limit.
|
|
125
|
+
* @default undefined — {@link characterCountMessage}'s English wording.
|
|
126
|
+
*/
|
|
127
|
+
getCharacterCountMessage?: (remaining: number) => string;
|
|
128
|
+
/**
|
|
129
|
+
* Replaces {@link NATIVE_INVALID_FALLBACK_MESSAGE}: what the Field says when
|
|
130
|
+
* the wrapped control fails native constraint validation but the engine
|
|
131
|
+
* reports no message of its own.
|
|
132
|
+
* @default undefined — 'This field is invalid.'
|
|
133
|
+
*/
|
|
134
|
+
invalidMessage?: string;
|
|
135
|
+
}
|
|
136
|
+
/** Everything the controller needs that the framework layer owns. */
|
|
137
|
+
export interface FieldControllerOptions {
|
|
138
|
+
/** Id of the Label element, used for a group's `aria-labelledby`. */
|
|
139
|
+
labelId: string;
|
|
140
|
+
/** Id of the Description element. */
|
|
141
|
+
descriptionId: string;
|
|
142
|
+
/** Id of the Error element. */
|
|
143
|
+
errorId: string;
|
|
144
|
+
/** Fallback id assigned to a control that has none of its own. */
|
|
145
|
+
controlId: string;
|
|
146
|
+
/** True for a `Fieldset`: the Label is a `<legend>` and the control is labelled by `aria-labelledby`. */
|
|
147
|
+
grouped: boolean;
|
|
148
|
+
/** Called whenever the snapshot changes, so the framework layer can re-render. */
|
|
149
|
+
onSnapshotChange: (snapshot: FieldSnapshot) => void;
|
|
150
|
+
/**
|
|
151
|
+
* The live-region `announce`. The engine picks the politeness per message, because
|
|
152
|
+
* the two things it says want different ones: an error the user has already
|
|
153
|
+
* moved past interrupts, a running character count must not.
|
|
154
|
+
*/
|
|
155
|
+
announce: (message: string, politeness: 'polite' | 'assertive') => void;
|
|
156
|
+
}
|
|
157
|
+
/** Coerces whatever a validator (or the `errors` prop) returned into a message list. */
|
|
158
|
+
export declare function normalizeMessages(result: FieldValidationResult | string | string[]): string[];
|
|
159
|
+
/** The first control inside `root` that belongs to *this* Field rather than to a nested one. */
|
|
160
|
+
export declare function findFieldControl(root: Element): HTMLElement | null;
|
|
161
|
+
/**
|
|
162
|
+
* The value a validator sees when the consumer passed none: a checkbox or
|
|
163
|
+
* radio reports `checked`, everything else reports its `value` property, and a
|
|
164
|
+
* composite root that has no `value` of its own (a `role="group"` segmented
|
|
165
|
+
* field, a `role="radiogroup"`) reports whatever its form-participation input
|
|
166
|
+
* would submit.
|
|
167
|
+
*
|
|
168
|
+
* ponytail: a composite control that keeps its value only in framework state
|
|
169
|
+
* and mirrors it nowhere — no `value` property, and no `name` so no hidden
|
|
170
|
+
* input either — needs the explicit `value` prop. Pass it if you build one.
|
|
171
|
+
*/
|
|
172
|
+
export declare function readControlValue(control: HTMLElement | null): unknown;
|
|
173
|
+
/** Whether a value counts as entered, for `data-filled`. */
|
|
174
|
+
export declare function isFilled(value: unknown): boolean;
|
|
175
|
+
/** One failing field, as listed by a Form's ErrorSummary. */
|
|
176
|
+
export interface FieldErrorEntry {
|
|
177
|
+
/** The control's id — the link's `href` target. */
|
|
178
|
+
id: string;
|
|
179
|
+
/** The message shown as the link text. */
|
|
180
|
+
message: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The form (or `<skdx-form>`) a summary should scan and listen on, falling
|
|
184
|
+
* back to the summary's own parent when it is used standalone.
|
|
185
|
+
*/
|
|
186
|
+
export declare function errorSummaryScope(root: Element): Element;
|
|
187
|
+
/** Every currently-failing Field in `scope`, in document order — the summary's list. */
|
|
188
|
+
export declare function collectFieldErrors(scope: ParentNode): FieldErrorEntry[];
|
|
189
|
+
/**
|
|
190
|
+
* Sends focus to a failing field the GOV.UK way: straight to the control,
|
|
191
|
+
* unless the target is a group — then to the first control inside it, because
|
|
192
|
+
* focusing a `<fieldset>`/`[role="radiogroup"]` announces the group but leaves
|
|
193
|
+
* the user with nothing to operate.
|
|
194
|
+
*/
|
|
195
|
+
export declare function focusFieldTarget(id: string, doc?: Document): void;
|
|
196
|
+
/**
|
|
197
|
+
* Owns one Field's state machine. Created by the framework layer, given the
|
|
198
|
+
* Field's root element on `connect()`, and told about re-renders via `sync()`.
|
|
199
|
+
*/
|
|
200
|
+
export declare class FieldController {
|
|
201
|
+
private readonly options;
|
|
202
|
+
private props;
|
|
203
|
+
private root;
|
|
204
|
+
private form;
|
|
205
|
+
private control;
|
|
206
|
+
/** The `aria-describedby` the consumer put on the control themselves, preserved across rewrites. */
|
|
207
|
+
private baseDescribedBy;
|
|
208
|
+
/** Bumped on every validation run; a resolution from a superseded run is discarded. */
|
|
209
|
+
private runToken;
|
|
210
|
+
private pending;
|
|
211
|
+
/** Messages from the `errors` prop. Always listed first. */
|
|
212
|
+
private injected;
|
|
213
|
+
/** Messages from the last `validate` run, or the native constraint-validation fallback. */
|
|
214
|
+
private custom;
|
|
215
|
+
/** Set by a mounted character-count part; `null` while the Field has none. */
|
|
216
|
+
private characterCount;
|
|
217
|
+
private announceTimer;
|
|
218
|
+
private snapshot;
|
|
219
|
+
constructor(options: FieldControllerOptions);
|
|
220
|
+
/** The current state. Read by the framework layer to render the parts. */
|
|
221
|
+
get state(): FieldSnapshot;
|
|
222
|
+
/** Replaces the forwarded props. Safe to call on every render. */
|
|
223
|
+
setProps(props: FieldControllerProps): void;
|
|
224
|
+
/**
|
|
225
|
+
* Registers (or clears) the character count. Called by the count part on
|
|
226
|
+
* mount, on prop change, and on unmount.
|
|
227
|
+
*/
|
|
228
|
+
setCharacterCount(options: FieldCharacterCountOptions | null): void;
|
|
229
|
+
/** Length of the control's current value; `0` when it holds something that is not text. */
|
|
230
|
+
private readCount;
|
|
231
|
+
/** The count copy, in the consumer's wording when they supplied one. */
|
|
232
|
+
private countMessage;
|
|
233
|
+
/** True once the value is longer than the configured soft limit. */
|
|
234
|
+
private isOverLimit;
|
|
235
|
+
/**
|
|
236
|
+
* Server errors first, then whatever the last validation run produced, then
|
|
237
|
+
* the over-limit message — so going over the limit makes the Field invalid
|
|
238
|
+
* through exactly the same path as any other error, and blocks submit.
|
|
239
|
+
*/
|
|
240
|
+
private composeErrors;
|
|
241
|
+
/**
|
|
242
|
+
* Says the count, sparingly. Under the limit it is queued politely, one
|
|
243
|
+
* typing pause after the last keystroke, so a burst of typing produces one
|
|
244
|
+
* number instead of a running commentary. Crossing the limit interrupts —
|
|
245
|
+
* once, on the transition, not on every keystroke past it.
|
|
246
|
+
*
|
|
247
|
+
* The over-limit message cannot ride on `commit()`'s error announcement: by
|
|
248
|
+
* the time validation runs, `update()` has already put the message into
|
|
249
|
+
* `errors`, so `commit()` no longer sees the field as newly-invalid.
|
|
250
|
+
*/
|
|
251
|
+
private scheduleCountAnnouncement;
|
|
252
|
+
/** Attaches the controller to its rendered root element. */
|
|
253
|
+
connect(root: HTMLElement): void;
|
|
254
|
+
/** Detaches every listener. */
|
|
255
|
+
disconnect(): void;
|
|
256
|
+
/**
|
|
257
|
+
* Re-discovers the control and re-applies every injected attribute. The
|
|
258
|
+
* framework layer calls this after each render, because a render may have
|
|
259
|
+
* swapped the control or mounted/unmounted the Description or Error.
|
|
260
|
+
*/
|
|
261
|
+
sync(): void;
|
|
262
|
+
/**
|
|
263
|
+
* Runs validation now. Resolves to whether the field is valid — the
|
|
264
|
+
* imperative entry point `<skdx-field>.validate()` and Angular's
|
|
265
|
+
* `SkdxFieldComponent.validate()` expose directly.
|
|
266
|
+
*/
|
|
267
|
+
validate(): Promise<boolean>;
|
|
268
|
+
/** Marks the field touched without validating (used by a submit pass before it validates). */
|
|
269
|
+
private markTouched;
|
|
270
|
+
private applyStateAttributes;
|
|
271
|
+
private resolveValue;
|
|
272
|
+
private nativeMessage;
|
|
273
|
+
/**
|
|
274
|
+
* Returns the new message list — synchronously for a sync validator, which
|
|
275
|
+
* is what lets the submit handler decide whether to `preventDefault()`
|
|
276
|
+
* before the browser submits.
|
|
277
|
+
*/
|
|
278
|
+
private runValidation;
|
|
279
|
+
private commit;
|
|
280
|
+
private update;
|
|
281
|
+
private readonly handleInput;
|
|
282
|
+
private readonly handleFocusOut;
|
|
283
|
+
private readonly handleSubmit;
|
|
284
|
+
}
|