@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,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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Field, Fieldset } from './Field.cjs';
|
|
2
|
+
export { FieldLabel } from './FieldLabel.cjs';
|
|
3
|
+
export { FieldDescription } from './FieldDescription.cjs';
|
|
4
|
+
export { FieldError } from './FieldError.cjs';
|
|
5
|
+
export { FieldCharacterCount } from './FieldCharacterCount.cjs';
|
|
6
|
+
export type { FieldProps, FieldsetProps, FieldLabelProps, FieldDescriptionProps, FieldErrorProps, FieldCharacterCountProps, FieldOwnProps, FieldValidityDetail, FieldMode, FieldValidator, FieldValidationResult, FieldCharacterCountOptions, } from './types.cjs';
|
|
7
|
+
export { CHARACTER_COUNT_ANNOUNCE_DELAY_MS, characterCountMessage, characterCountVisible, FIELD_CHARACTER_COUNT_ATTRIBUTE, FIELD_CONTROL_ATTRIBUTE, FIELD_CONTROL_SELECTOR, FIELD_VALIDITY_CHANGE_EVENT, NATIVE_INVALID_FALLBACK_MESSAGE, findFieldControl, type FieldSnapshot, collectFieldErrors, errorSummaryScope, focusFieldTarget, type FieldErrorEntry, } from './fieldCore.cjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Field, Fieldset } from './Field.js';
|
|
2
|
+
export { FieldLabel } from './FieldLabel.js';
|
|
3
|
+
export { FieldDescription } from './FieldDescription.js';
|
|
4
|
+
export { FieldError } from './FieldError.js';
|
|
5
|
+
export { FieldCharacterCount } from './FieldCharacterCount.js';
|
|
6
|
+
export type { FieldProps, FieldsetProps, FieldLabelProps, FieldDescriptionProps, FieldErrorProps, FieldCharacterCountProps, FieldOwnProps, FieldValidityDetail, FieldMode, FieldValidator, FieldValidationResult, FieldCharacterCountOptions, } from './types.js';
|
|
7
|
+
export { CHARACTER_COUNT_ANNOUNCE_DELAY_MS, characterCountMessage, characterCountVisible, FIELD_CHARACTER_COUNT_ATTRIBUTE, FIELD_CONTROL_ATTRIBUTE, FIELD_CONTROL_SELECTOR, FIELD_VALIDITY_CHANGE_EVENT, NATIVE_INVALID_FALLBACK_MESSAGE, findFieldControl, type FieldSnapshot, collectFieldErrors, errorSummaryScope, focusFieldTarget, type FieldErrorEntry, } from './fieldCore.js';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { PrimitivePropsWithRef } from '../utils/primitive.cjs';
|
|
2
|
+
import type { FieldCharacterCountOptions, FieldMode, FieldSnapshot, FieldValidator } from './fieldCore.cjs';
|
|
3
|
+
export type { FieldCharacterCountOptions, FieldMode, FieldValidationResult, FieldValidator, } from './fieldCore.cjs';
|
|
4
|
+
/** The state a `Field` reports through {@link FieldOwnProps.onValidityChange}. */
|
|
5
|
+
export type FieldValidityDetail = Omit<FieldSnapshot, 'controlId'>;
|
|
6
|
+
/** The validation-model props shared by {@link FieldProps} and {@link FieldsetProps}. */
|
|
7
|
+
export interface FieldOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* Validator for this field, returning one message, several, or
|
|
10
|
+
* `null`/`undefined` when the value is acceptable. May be async; a
|
|
11
|
+
* resolution from a superseded run is discarded.
|
|
12
|
+
* @default undefined — only the `errors` prop and native constraint validation produce messages.
|
|
13
|
+
*/
|
|
14
|
+
validate?: FieldValidator;
|
|
15
|
+
/**
|
|
16
|
+
* When validation first runs. Whatever the mode, a field that has already
|
|
17
|
+
* failed re-validates on every input, so the error clears as soon as the
|
|
18
|
+
* user fixes it.
|
|
19
|
+
* @default 'blur'
|
|
20
|
+
*/
|
|
21
|
+
mode?: FieldMode;
|
|
22
|
+
/**
|
|
23
|
+
* Server-injected errors, always shown, listed before anything `validate`
|
|
24
|
+
* produces. Clearing the prop clears them.
|
|
25
|
+
* @default undefined
|
|
26
|
+
*/
|
|
27
|
+
errors?: string | string[];
|
|
28
|
+
/**
|
|
29
|
+
* Value handed to `validate`. Omit and the Field reads the wrapped
|
|
30
|
+
* control's `checked` (checkbox/radio) or `value` property instead.
|
|
31
|
+
* @default undefined — read from the control.
|
|
32
|
+
*/
|
|
33
|
+
value?: unknown;
|
|
34
|
+
/**
|
|
35
|
+
* Field name, used as the `FormErrorSummary` link text when the field
|
|
36
|
+
* renders no `FieldError` of its own.
|
|
37
|
+
* @default undefined
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Fires whenever the field's validity or interaction state changes.
|
|
42
|
+
* @default undefined
|
|
43
|
+
*/
|
|
44
|
+
onValidityChange?: (detail: FieldValidityDetail) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Words every piece of character-count copy this Field produces: the text
|
|
47
|
+
* `FieldCharacterCount` renders, the message announced a typing pause after
|
|
48
|
+
* the last keystroke, and the error raised once the value passes the soft
|
|
49
|
+
* limit. A negative `remaining` means over the limit.
|
|
50
|
+
*
|
|
51
|
+
* One prop for all three deliberately — the announced count and the rendered
|
|
52
|
+
* count saying different things is worse than either being in English.
|
|
53
|
+
* @default undefined — the built-in GOV.UK wording ("You have 12 characters remaining").
|
|
54
|
+
*/
|
|
55
|
+
getCharacterCountMessage?: (remaining: number) => string;
|
|
56
|
+
/**
|
|
57
|
+
* What the Field says when the wrapped control fails *native* constraint
|
|
58
|
+
* validation but the browser reports no message of its own. The browser's
|
|
59
|
+
* own messages are already localized; this fallback is the one the library
|
|
60
|
+
* supplies, so it is the one that needs translating.
|
|
61
|
+
* @default undefined — 'This field is invalid.'
|
|
62
|
+
*/
|
|
63
|
+
invalidMessage?: string;
|
|
64
|
+
}
|
|
65
|
+
/** Props for {@link Field}, which wires one control to its label, description, and error text. */
|
|
66
|
+
export interface FieldProps extends Omit<PrimitivePropsWithRef<'div'>, 'value'>, FieldOwnProps {
|
|
67
|
+
}
|
|
68
|
+
/** Props for {@link Fieldset}, a {@link Field} that groups several controls under a `<legend>`. */
|
|
69
|
+
export interface FieldsetProps extends Omit<PrimitivePropsWithRef<'fieldset'>, 'value' | 'name'>, FieldOwnProps {
|
|
70
|
+
}
|
|
71
|
+
/** Props for {@link FieldLabel}, which renders a `<label>` — or a `<legend>` inside a {@link Fieldset}. */
|
|
72
|
+
export interface FieldLabelProps extends PrimitivePropsWithRef<'label'> {
|
|
73
|
+
}
|
|
74
|
+
/** Props for {@link FieldDescription}, help text announced with the control. */
|
|
75
|
+
export interface FieldDescriptionProps extends PrimitivePropsWithRef<'span'> {
|
|
76
|
+
}
|
|
77
|
+
/** Props for {@link FieldError}, rendered only while the field is invalid. */
|
|
78
|
+
export interface FieldErrorProps extends PrimitivePropsWithRef<'span'> {
|
|
79
|
+
}
|
|
80
|
+
/** Props for {@link FieldCharacterCount}, the running "N characters remaining" count. */
|
|
81
|
+
export interface FieldCharacterCountProps extends PrimitivePropsWithRef<'span'> {
|
|
82
|
+
/**
|
|
83
|
+
* The soft limit. Deliberately not the control's native `maxlength`, which
|
|
84
|
+
* silently truncates instead of telling the user they went over.
|
|
85
|
+
*/
|
|
86
|
+
maxLength: number;
|
|
87
|
+
/**
|
|
88
|
+
* Percentage of `maxLength` that must be typed before the count appears at
|
|
89
|
+
* all — GOV.UK's way of keeping a long field quiet until it matters.
|
|
90
|
+
* @default 0 — visible from the first render.
|
|
91
|
+
*/
|
|
92
|
+
threshold?: number;
|
|
93
|
+
}
|
|
94
|
+
/** @internal Field identity and state distributed to the Label/Description/Error parts. Not part of the public API. */
|
|
95
|
+
export interface FieldContextValue {
|
|
96
|
+
labelId: string;
|
|
97
|
+
descriptionId: string;
|
|
98
|
+
errorId: string;
|
|
99
|
+
/** The id the control actually carries — `undefined` until the Field has connected to one, which no server render ever does. */
|
|
100
|
+
controlId?: string;
|
|
101
|
+
errors: string[];
|
|
102
|
+
grouped: boolean;
|
|
103
|
+
count: number;
|
|
104
|
+
setCharacterCount: (options: FieldCharacterCountOptions | null) => void;
|
|
105
|
+
/** The root's `getCharacterCountMessage`, so the rendered count uses the same wording as the announced one. */
|
|
106
|
+
getCharacterCountMessage?: (remaining: number) => string;
|
|
107
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { PrimitivePropsWithRef } from '../utils/primitive.js';
|
|
2
|
+
import type { FieldCharacterCountOptions, FieldMode, FieldSnapshot, FieldValidator } from './fieldCore.js';
|
|
3
|
+
export type { FieldCharacterCountOptions, FieldMode, FieldValidationResult, FieldValidator, } from './fieldCore.js';
|
|
4
|
+
/** The state a `Field` reports through {@link FieldOwnProps.onValidityChange}. */
|
|
5
|
+
export type FieldValidityDetail = Omit<FieldSnapshot, 'controlId'>;
|
|
6
|
+
/** The validation-model props shared by {@link FieldProps} and {@link FieldsetProps}. */
|
|
7
|
+
export interface FieldOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* Validator for this field, returning one message, several, or
|
|
10
|
+
* `null`/`undefined` when the value is acceptable. May be async; a
|
|
11
|
+
* resolution from a superseded run is discarded.
|
|
12
|
+
* @default undefined — only the `errors` prop and native constraint validation produce messages.
|
|
13
|
+
*/
|
|
14
|
+
validate?: FieldValidator;
|
|
15
|
+
/**
|
|
16
|
+
* When validation first runs. Whatever the mode, a field that has already
|
|
17
|
+
* failed re-validates on every input, so the error clears as soon as the
|
|
18
|
+
* user fixes it.
|
|
19
|
+
* @default 'blur'
|
|
20
|
+
*/
|
|
21
|
+
mode?: FieldMode;
|
|
22
|
+
/**
|
|
23
|
+
* Server-injected errors, always shown, listed before anything `validate`
|
|
24
|
+
* produces. Clearing the prop clears them.
|
|
25
|
+
* @default undefined
|
|
26
|
+
*/
|
|
27
|
+
errors?: string | string[];
|
|
28
|
+
/**
|
|
29
|
+
* Value handed to `validate`. Omit and the Field reads the wrapped
|
|
30
|
+
* control's `checked` (checkbox/radio) or `value` property instead.
|
|
31
|
+
* @default undefined — read from the control.
|
|
32
|
+
*/
|
|
33
|
+
value?: unknown;
|
|
34
|
+
/**
|
|
35
|
+
* Field name, used as the `FormErrorSummary` link text when the field
|
|
36
|
+
* renders no `FieldError` of its own.
|
|
37
|
+
* @default undefined
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Fires whenever the field's validity or interaction state changes.
|
|
42
|
+
* @default undefined
|
|
43
|
+
*/
|
|
44
|
+
onValidityChange?: (detail: FieldValidityDetail) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Words every piece of character-count copy this Field produces: the text
|
|
47
|
+
* `FieldCharacterCount` renders, the message announced a typing pause after
|
|
48
|
+
* the last keystroke, and the error raised once the value passes the soft
|
|
49
|
+
* limit. A negative `remaining` means over the limit.
|
|
50
|
+
*
|
|
51
|
+
* One prop for all three deliberately — the announced count and the rendered
|
|
52
|
+
* count saying different things is worse than either being in English.
|
|
53
|
+
* @default undefined — the built-in GOV.UK wording ("You have 12 characters remaining").
|
|
54
|
+
*/
|
|
55
|
+
getCharacterCountMessage?: (remaining: number) => string;
|
|
56
|
+
/**
|
|
57
|
+
* What the Field says when the wrapped control fails *native* constraint
|
|
58
|
+
* validation but the browser reports no message of its own. The browser's
|
|
59
|
+
* own messages are already localized; this fallback is the one the library
|
|
60
|
+
* supplies, so it is the one that needs translating.
|
|
61
|
+
* @default undefined — 'This field is invalid.'
|
|
62
|
+
*/
|
|
63
|
+
invalidMessage?: string;
|
|
64
|
+
}
|
|
65
|
+
/** Props for {@link Field}, which wires one control to its label, description, and error text. */
|
|
66
|
+
export interface FieldProps extends Omit<PrimitivePropsWithRef<'div'>, 'value'>, FieldOwnProps {
|
|
67
|
+
}
|
|
68
|
+
/** Props for {@link Fieldset}, a {@link Field} that groups several controls under a `<legend>`. */
|
|
69
|
+
export interface FieldsetProps extends Omit<PrimitivePropsWithRef<'fieldset'>, 'value' | 'name'>, FieldOwnProps {
|
|
70
|
+
}
|
|
71
|
+
/** Props for {@link FieldLabel}, which renders a `<label>` — or a `<legend>` inside a {@link Fieldset}. */
|
|
72
|
+
export interface FieldLabelProps extends PrimitivePropsWithRef<'label'> {
|
|
73
|
+
}
|
|
74
|
+
/** Props for {@link FieldDescription}, help text announced with the control. */
|
|
75
|
+
export interface FieldDescriptionProps extends PrimitivePropsWithRef<'span'> {
|
|
76
|
+
}
|
|
77
|
+
/** Props for {@link FieldError}, rendered only while the field is invalid. */
|
|
78
|
+
export interface FieldErrorProps extends PrimitivePropsWithRef<'span'> {
|
|
79
|
+
}
|
|
80
|
+
/** Props for {@link FieldCharacterCount}, the running "N characters remaining" count. */
|
|
81
|
+
export interface FieldCharacterCountProps extends PrimitivePropsWithRef<'span'> {
|
|
82
|
+
/**
|
|
83
|
+
* The soft limit. Deliberately not the control's native `maxlength`, which
|
|
84
|
+
* silently truncates instead of telling the user they went over.
|
|
85
|
+
*/
|
|
86
|
+
maxLength: number;
|
|
87
|
+
/**
|
|
88
|
+
* Percentage of `maxLength` that must be typed before the count appears at
|
|
89
|
+
* all — GOV.UK's way of keeping a long field quiet until it matters.
|
|
90
|
+
* @default 0 — visible from the first render.
|
|
91
|
+
*/
|
|
92
|
+
threshold?: number;
|
|
93
|
+
}
|
|
94
|
+
/** @internal Field identity and state distributed to the Label/Description/Error parts. Not part of the public API. */
|
|
95
|
+
export interface FieldContextValue {
|
|
96
|
+
labelId: string;
|
|
97
|
+
descriptionId: string;
|
|
98
|
+
errorId: string;
|
|
99
|
+
/** The id the control actually carries — `undefined` until the Field has connected to one, which no server render ever does. */
|
|
100
|
+
controlId?: string;
|
|
101
|
+
errors: string[];
|
|
102
|
+
grouped: boolean;
|
|
103
|
+
count: number;
|
|
104
|
+
setCharacterCount: (options: FieldCharacterCountOptions | null) => void;
|
|
105
|
+
/** The root's `getCharacterCountMessage`, so the rendered count uses the same wording as the announced one. */
|
|
106
|
+
getCharacterCountMessage?: (remaining: number) => string;
|
|
107
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var de=Object.create;var c=Object.defineProperty;var se=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var fe=Object.getPrototypeOf,ce=Object.prototype.hasOwnProperty;var ue=(e,t)=>{for(var o in t)c(e,o,{get:t[o],enumerable:!0})},M=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of me(t))!ce.call(e,i)&&i!==o&&c(e,i,{get:()=>t[i],enumerable:!(r=se(t,i))||r.enumerable});return e};var s=(e,t,o)=>(o=e!=null?de(fe(e)):{},M(t||!e||!e.__esModule?c(o,"default",{value:e,enumerable:!0}):o,e)),Fe=e=>M(c({},"__esModule",{value:!0}),e);var Pe={};ue(Pe,{FileUpload:()=>x,FileUploadDropzone:()=>R,FileUploadInput:()=>D,FileUploadItem:()=>v,FileUploadItemDelete:()=>C,FileUploadTrigger:()=>I});module.exports=Fe(Pe);var a=s(require("react"),1),S=require("../utils/createContext.cjs"),O=require("../utils/part.cjs"),V=require("../utils/primitive.cjs"),W=require("../utils/useControllableState.cjs"),b=require("react/jsx-runtime"),[Ue,n]=(0,S.createSafeContext)("FileUpload");function ge(e,t){if(!t)return!0;let o=t.split(",").map(l=>l.trim().toLowerCase()).filter(Boolean);if(o.length===0)return!0;let r=e.name.toLowerCase(),i=e.type.toLowerCase();return o.some(l=>l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?i.startsWith(l.slice(0,-1)):i===l)}function ye(e,t){let o=[];return ge(e,t.accept)||o.push("file-invalid-type"),t.maxFileSize!==void 0&&e.size>t.maxFileSize&&o.push("file-too-large"),t.minFileSize!==void 0&&e.size<t.minFileSize&&o.push("file-too-small"),o.push(...t.validate?.(e)??[]),o}var x=a.forwardRef(({value:e,defaultValue:t=[],onValueChange:o,accept:r,multiple:i=!1,disabled:l=!1,maxFiles:k,maxFileSize:w,minFileSize:T,validate:E,onFileReject:L,...z},re)=>{let H=a.useRef(null),[g=[],m]=(0,W.useControllableState)({prop:e,defaultProp:t,onChange:o}),ae=a.useCallback(y=>{if(l)return;let f=i?g:[],N=(i?k??1/0:1)-f.length,d=[];for(let P of Array.from(y)){let h=ye(P,{accept:r,maxFileSize:w,minFileSize:T,validate:E});if(d.length>=N&&h.push("too-many-files"),h.length>0){L?.({file:P,errors:h});continue}d.push(P)}d.length!==0&&m([...f,...d])},[l,i,g,k,m,r,w,T,E,L]),ne=a.useCallback(y=>{m((f=[])=>f.filter((N,d)=>d!==y))},[m]),pe=a.useCallback(()=>{l||H.current?.click()},[l]);return(0,b.jsx)(Ue,{inputRef:H,files:g,disabled:l,accept:r,multiple:i,addFiles:ae,removeFile:ne,openPicker:pe,children:(0,b.jsx)(V.Primitive.div,{"data-disabled":l?"":void 0,...z,...(0,O.skdxPart)("file-upload","root",z.className),ref:re})})});x.displayName="FileUpload";var u=s(require("react"),1),B=require("../utils/part.cjs"),p=require("../utils/primitive.cjs");var A=require("react/jsx-runtime"),R=u.forwardRef((e,t)=>{let o=n("FileUploadDropzone"),[r,i]=u.useState(!1);return(0,A.jsx)(p.Primitive.div,{role:"button",tabIndex:o.disabled?-1:0,"aria-disabled":o.disabled||void 0,"data-disabled":o.disabled?"":void 0,"data-dragging":r?"":void 0,...e,...(0,B.skdxPart)("file-upload","dropzone",e.className),ref:t,onClick:(0,p.composeEventHandlers)(e.onClick,()=>o.openPicker()),onKeyDown:(0,p.composeEventHandlers)(e.onKeyDown,l=>{(l.key==="Enter"||l.key===" ")&&!o.disabled&&(l.preventDefault(),o.openPicker())}),onDragOver:(0,p.composeEventHandlers)(e.onDragOver,l=>{l.preventDefault(),o.disabled||i(!0)}),onDragLeave:(0,p.composeEventHandlers)(e.onDragLeave,()=>i(!1)),onDrop:(0,p.composeEventHandlers)(e.onDrop,l=>{l.preventDefault(),i(!1),o.disabled||o.addFiles(l.dataTransfer.files)})})});R.displayName="FileUploadDropzone";var K=s(require("react"),1),_=require("../utils/composeRefs.cjs"),q=require("../utils/hiddenInput.cjs"),G=require("../utils/part.cjs"),J=require("../utils/primitive.cjs");var Q=require("react/jsx-runtime"),D=K.forwardRef((e,t)=>{let o=n("FileUploadInput"),r=(0,_.useComposedRefs)(t,o.inputRef);return(0,Q.jsx)(q.HiddenInput,{type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,...e,...(0,G.skdxPart)("file-upload","input",e.className),ref:r,onChange:(0,J.composeEventHandlers)(e.onChange,i=>{i.target.files&&o.addFiles(i.target.files),i.target.value=""})})});D.displayName="FileUploadInput";var X=s(require("react"),1),Y=require("../utils/part.cjs"),Z=require("../utils/primitive.cjs"),$=require("react/jsx-runtime"),v=X.forwardRef(({index:e,status:t="idle",progress:o,...r},i)=>(0,$.jsx)(Z.Primitive.div,{"data-status":t,"data-progress":o,...r,...(0,Y.skdxPart)("file-upload","item",r.className),ref:i}));v.displayName="FileUploadItem";var j=s(require("react"),1),ee=require("../utils/part.cjs"),F=require("../utils/primitive.cjs");var oe=require("react/jsx-runtime"),C=j.forwardRef(({index:e,...t},o)=>{let r=n("FileUploadItemDelete");return(0,oe.jsx)(F.Primitive.button,{type:"button","aria-label":"Remove file",disabled:r.disabled,"data-disabled":r.disabled?"":void 0,...t,...(0,ee.skdxPart)("file-upload","item-delete",t.className),ref:o,onClick:(0,F.composeEventHandlers)(t.onClick,()=>{r.disabled||r.removeFile(e)})})});C.displayName="FileUploadItemDelete";var te=s(require("react"),1),ie=require("../utils/part.cjs"),U=require("../utils/primitive.cjs");var le=require("react/jsx-runtime"),I=te.forwardRef((e,t)=>{let o=n("FileUploadTrigger");return(0,le.jsx)(U.Primitive.button,{type:"button",disabled:o.disabled,"data-disabled":o.disabled?"":void 0,...e,...(0,ie.skdxPart)("file-upload","trigger",e.className),ref:t,onClick:(0,U.composeEventHandlers)(e.onClick,()=>o.openPicker())})});I.displayName="FileUploadTrigger";0&&(module.exports={FileUpload,FileUploadDropzone,FileUploadInput,FileUploadItem,FileUploadItemDelete,FileUploadTrigger});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FileUploadContextValue, FileUploadProps } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Controllable `File[]` list. `FileUploadDropzone`/`FileUploadTrigger` both
|
|
5
|
+
* just proxy a click to a visually-hidden native `<input type="file">`
|
|
6
|
+
* (`FileUploadInput`) — the OS file dialog and drag/drop are the platform's
|
|
7
|
+
* job, this component only tracks the resulting file list.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Reads the state a {@link FileUpload} root publishes to its parts:
|
|
11
|
+
* the current `files`, the `accept`/`multiple`/`disabled` settings, the ref to
|
|
12
|
+
* the visually-hidden native `<input type="file">`, and
|
|
13
|
+
* `addFiles`/`removeFile`/`openPicker`.
|
|
14
|
+
*
|
|
15
|
+
* `FileUploadDropzone`, `FileUploadTrigger`, `FileUploadInput` and
|
|
16
|
+
* `FileUploadItemDelete` each read it under their own name, which is the name
|
|
17
|
+
* the hook puts in the error it throws when one of them is rendered outside a
|
|
18
|
+
* `FileUpload` — every one of those parts is a proxy to the root's input, and a
|
|
19
|
+
* proxy with no target silently does nothing. Not part of the public API.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const FileUploadProvider: {
|
|
24
|
+
(props: FileUploadContextValue & {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
}, useFileUploadContext: (consumerName: string) => FileUploadContextValue;
|
|
29
|
+
/**
|
|
30
|
+
* Root of a file-selection widget: owns a controllable `File[]` list and
|
|
31
|
+
* hands it down to `FileUploadDropzone` / `FileUploadTrigger` /
|
|
32
|
+
* `FileUploadInput` / `FileUploadItem` / `FileUploadItemDelete` via context.
|
|
33
|
+
* Sets `data-disabled` when `disabled`. Renders a plain `<div>`.
|
|
34
|
+
*
|
|
35
|
+
* The OS file dialog and drag-and-drop are the platform's job —
|
|
36
|
+
* `FileUploadDropzone`/`FileUploadTrigger` both just proxy to a
|
|
37
|
+
* visually-hidden native `<input type="file">` (`FileUploadInput`); this
|
|
38
|
+
* component only tracks the resulting files, filtering both entry points
|
|
39
|
+
* through `accept` (the native attribute alone only filters the picker, not
|
|
40
|
+
* drag-and-drop) and applying `multiple`. Works controlled (`value` +
|
|
41
|
+
* `onValueChange`) or uncontrolled (`defaultValue`).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <FileUpload accept="image/*" multiple onValueChange={setFiles}>
|
|
46
|
+
* <FileUploadDropzone>
|
|
47
|
+
* Drag files here or <FileUploadTrigger>browse</FileUploadTrigger>
|
|
48
|
+
* <FileUploadInput />
|
|
49
|
+
* </FileUploadDropzone>
|
|
50
|
+
* {files.map((file, index) => (
|
|
51
|
+
* <FileUploadItem key={file.name} index={index}>
|
|
52
|
+
* {file.name}
|
|
53
|
+
* <FileUploadItemDelete index={index} />
|
|
54
|
+
* </FileUploadItem>
|
|
55
|
+
* ))}
|
|
56
|
+
* </FileUpload>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare const FileUpload: React.ForwardRefExoticComponent<Omit<FileUploadProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FileUploadContextValue, FileUploadProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Controllable `File[]` list. `FileUploadDropzone`/`FileUploadTrigger` both
|
|
5
|
+
* just proxy a click to a visually-hidden native `<input type="file">`
|
|
6
|
+
* (`FileUploadInput`) — the OS file dialog and drag/drop are the platform's
|
|
7
|
+
* job, this component only tracks the resulting file list.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Reads the state a {@link FileUpload} root publishes to its parts:
|
|
11
|
+
* the current `files`, the `accept`/`multiple`/`disabled` settings, the ref to
|
|
12
|
+
* the visually-hidden native `<input type="file">`, and
|
|
13
|
+
* `addFiles`/`removeFile`/`openPicker`.
|
|
14
|
+
*
|
|
15
|
+
* `FileUploadDropzone`, `FileUploadTrigger`, `FileUploadInput` and
|
|
16
|
+
* `FileUploadItemDelete` each read it under their own name, which is the name
|
|
17
|
+
* the hook puts in the error it throws when one of them is rendered outside a
|
|
18
|
+
* `FileUpload` — every one of those parts is a proxy to the root's input, and a
|
|
19
|
+
* proxy with no target silently does nothing. Not part of the public API.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const FileUploadProvider: {
|
|
24
|
+
(props: FileUploadContextValue & {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
}, useFileUploadContext: (consumerName: string) => FileUploadContextValue;
|
|
29
|
+
/**
|
|
30
|
+
* Root of a file-selection widget: owns a controllable `File[]` list and
|
|
31
|
+
* hands it down to `FileUploadDropzone` / `FileUploadTrigger` /
|
|
32
|
+
* `FileUploadInput` / `FileUploadItem` / `FileUploadItemDelete` via context.
|
|
33
|
+
* Sets `data-disabled` when `disabled`. Renders a plain `<div>`.
|
|
34
|
+
*
|
|
35
|
+
* The OS file dialog and drag-and-drop are the platform's job —
|
|
36
|
+
* `FileUploadDropzone`/`FileUploadTrigger` both just proxy to a
|
|
37
|
+
* visually-hidden native `<input type="file">` (`FileUploadInput`); this
|
|
38
|
+
* component only tracks the resulting files, filtering both entry points
|
|
39
|
+
* through `accept` (the native attribute alone only filters the picker, not
|
|
40
|
+
* drag-and-drop) and applying `multiple`. Works controlled (`value` +
|
|
41
|
+
* `onValueChange`) or uncontrolled (`defaultValue`).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <FileUpload accept="image/*" multiple onValueChange={setFiles}>
|
|
46
|
+
* <FileUploadDropzone>
|
|
47
|
+
* Drag files here or <FileUploadTrigger>browse</FileUploadTrigger>
|
|
48
|
+
* <FileUploadInput />
|
|
49
|
+
* </FileUploadDropzone>
|
|
50
|
+
* {files.map((file, index) => (
|
|
51
|
+
* <FileUploadItem key={file.name} index={index}>
|
|
52
|
+
* {file.name}
|
|
53
|
+
* <FileUploadItemDelete index={index} />
|
|
54
|
+
* </FileUploadItem>
|
|
55
|
+
* ))}
|
|
56
|
+
* </FileUpload>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare const FileUpload: React.ForwardRefExoticComponent<Omit<FileUploadProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|