@adgytec/adgytec-web-ui-components 2.3.0 → 2.4.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 +27 -16
- package/dist/App.d.ts +1 -2
- package/dist/assets/BottomSheetModal.css +1 -1
- package/dist/assets/CalendarCell.css +1 -1
- package/dist/assets/CalendarMenuItem.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/ListItem.css +1 -1
- package/dist/assets/ListTrailingText.css +1 -0
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/SideSheetModal.css +1 -1
- package/dist/assets/Switch.css +1 -1
- package/dist/assets/ThemeSelector.css +1 -1
- package/dist/assets/core7.css +1 -1
- package/dist/chunks/ActionDialog +0 -1
- package/dist/chunks/ActionDialog.map +1 -1
- package/dist/chunks/AppBar +42 -43
- package/dist/chunks/AppBar.map +1 -1
- package/dist/chunks/AppBarAction +0 -1
- package/dist/chunks/AppBarAction.map +1 -1
- package/dist/chunks/AppBarAvatar +1 -2
- package/dist/chunks/AppBarAvatar.map +1 -1
- package/dist/chunks/AppBarHeadline +1 -2
- package/dist/chunks/AppBarHeadline.map +1 -1
- package/dist/chunks/BaseCalendar +65 -68
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/BottomSheet +1 -2
- package/dist/chunks/BottomSheet.map +1 -1
- package/dist/chunks/BottomSheetModal +1 -2
- package/dist/chunks/BottomSheetModal.map +1 -1
- package/dist/chunks/ButtonGroup +1 -2
- package/dist/chunks/ButtonGroup.map +1 -1
- package/dist/chunks/CalendarCell +25 -40
- package/dist/chunks/CalendarCell.map +1 -1
- package/dist/chunks/CalendarGrid +1 -2
- package/dist/chunks/CalendarGrid.map +1 -1
- package/dist/chunks/CalendarMenuItem +2 -3
- package/dist/chunks/CalendarMenuItem.map +1 -1
- package/dist/chunks/Card +4 -5
- package/dist/chunks/Card.map +1 -1
- package/dist/chunks/CardIcon +1 -2
- package/dist/chunks/CardIcon.map +1 -1
- package/dist/chunks/CenteredSlider +1 -2
- package/dist/chunks/CenteredSlider.map +1 -1
- package/dist/chunks/ComboBox +1 -2
- package/dist/chunks/ComboBox.map +1 -1
- package/dist/chunks/ComboBoxPopover +0 -1
- package/dist/chunks/ComboBoxPopover.map +1 -1
- package/dist/chunks/ComboBoxTrigger +575 -63
- package/dist/chunks/ComboBoxTrigger.map +1 -1
- package/dist/chunks/ConnectedButtonGroup +13 -11
- package/dist/chunks/ConnectedButtonGroup.map +1 -1
- package/dist/chunks/Dialog +1 -2
- package/dist/chunks/Dialog.map +1 -1
- package/dist/chunks/Disclosure +1 -2
- package/dist/chunks/Disclosure.map +1 -1
- package/dist/chunks/DisclosureGroup +1 -2
- package/dist/chunks/DisclosureGroup.map +1 -1
- package/dist/chunks/DisclosureHeader +1 -2
- package/dist/chunks/DisclosureHeader.map +1 -1
- package/dist/chunks/DisclosurePanel +1 -2
- package/dist/chunks/DisclosurePanel.map +1 -1
- package/dist/chunks/Divider +1 -2
- package/dist/chunks/Divider.map +1 -1
- package/dist/chunks/FieldError +1 -2
- package/dist/chunks/FieldError.map +1 -1
- package/dist/chunks/GridBackgroundDecorator +0 -1
- package/dist/chunks/GridBackgroundDecorator.map +1 -1
- package/dist/chunks/Icon +1 -2
- package/dist/chunks/Icon.map +1 -1
- package/dist/chunks/Input +67 -78
- package/dist/chunks/Input.map +1 -1
- package/dist/chunks/Input2 +6 -9
- package/dist/chunks/Input2.map +1 -1
- package/dist/chunks/ListAction +12 -0
- package/dist/chunks/ListAction.map +1 -0
- package/dist/chunks/ListAvatar +1 -2
- package/dist/chunks/ListAvatar.map +1 -1
- package/dist/chunks/ListBox +12 -9
- package/dist/chunks/ListBox.map +1 -1
- package/dist/chunks/ListIcon +1 -2
- package/dist/chunks/ListIcon.map +1 -1
- package/dist/chunks/ListItem +62 -49
- package/dist/chunks/ListItem.map +1 -1
- package/dist/chunks/ListLabelText +1 -2
- package/dist/chunks/ListLabelText.map +1 -1
- package/dist/chunks/ListMedia +0 -1
- package/dist/chunks/ListMedia.map +1 -1
- package/dist/chunks/ListOverlineText +1 -2
- package/dist/chunks/ListOverlineText.map +1 -1
- package/dist/chunks/ListSupportingText +1 -2
- package/dist/chunks/ListSupportingText.map +1 -1
- package/dist/chunks/ListTrailingText +20 -0
- package/dist/chunks/ListTrailingText.map +1 -0
- package/dist/chunks/Loader +1 -2
- package/dist/chunks/Loader.map +1 -1
- package/dist/chunks/MenuPopover +1 -2
- package/dist/chunks/MenuPopover.map +1 -1
- package/dist/chunks/Modal +1 -2
- package/dist/chunks/Modal.map +1 -1
- package/dist/chunks/ModalOverlay +1 -2
- package/dist/chunks/ModalOverlay.map +1 -1
- package/dist/chunks/Navigation +2 -4
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +7 -6
- package/dist/chunks/NavigationScrollContainer.map +1 -1
- package/dist/chunks/NavigationSection +1 -2
- package/dist/chunks/NavigationSection.map +1 -1
- package/dist/chunks/NavigationSectionLabel +1 -2
- package/dist/chunks/NavigationSectionLabel.map +1 -1
- package/dist/chunks/Popover +1 -2
- package/dist/chunks/Popover.map +1 -1
- package/dist/chunks/RadialGlowDecorator +0 -1
- package/dist/chunks/RadialGlowDecorator.map +1 -1
- package/dist/chunks/Radio +57 -70
- package/dist/chunks/Radio.map +1 -1
- package/dist/chunks/RichTooltip +1 -2
- package/dist/chunks/RichTooltip.map +1 -1
- package/dist/chunks/RichTooltipActions +1 -2
- package/dist/chunks/RichTooltipActions.map +1 -1
- package/dist/chunks/RichTooltipInfo +1 -2
- package/dist/chunks/RichTooltipInfo.map +1 -1
- package/dist/chunks/SearchField +0 -1
- package/dist/chunks/SearchField.map +1 -1
- package/dist/chunks/SelectPopover +1 -2
- package/dist/chunks/SelectPopover.map +1 -1
- package/dist/chunks/SelectTrigger +1 -2
- package/dist/chunks/SelectTrigger.map +1 -1
- package/dist/chunks/SideSheet +8 -9
- package/dist/chunks/SideSheet.map +1 -1
- package/dist/chunks/SideSheetModal +2 -3
- package/dist/chunks/SideSheetModal.map +1 -1
- package/dist/chunks/Slider +0 -1
- package/dist/chunks/Slider.map +1 -1
- package/dist/chunks/SliderOutput +1 -2
- package/dist/chunks/SliderOutput.map +1 -1
- package/dist/chunks/SliderStops +4 -5
- package/dist/chunks/SliderStops.map +1 -1
- package/dist/chunks/SliderThumb +0 -1
- package/dist/chunks/SliderThumb.map +1 -1
- package/dist/chunks/Snackbar +1 -2
- package/dist/chunks/Snackbar.map +1 -1
- package/dist/chunks/SplitButton +14 -12
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +9 -9
- package/dist/chunks/SplitButtonTrigger.map +1 -1
- package/dist/chunks/SubmenuPopover +0 -1
- package/dist/chunks/SubmenuPopover.map +1 -1
- package/dist/chunks/Switch +47 -48
- package/dist/chunks/Switch.map +1 -1
- package/dist/chunks/Tab +1 -2
- package/dist/chunks/Tab.map +1 -1
- package/dist/chunks/TabList +1 -2
- package/dist/chunks/TabList.map +1 -1
- package/dist/chunks/TabPanel +1 -2
- package/dist/chunks/TabPanel.map +1 -1
- package/dist/chunks/TabPanels +1 -2
- package/dist/chunks/TabPanels.map +1 -1
- package/dist/chunks/Tabs +1 -2
- package/dist/chunks/Tabs.map +1 -1
- package/dist/chunks/Tag +1 -2
- package/dist/chunks/Tag.map +1 -1
- package/dist/chunks/ThemeSelector +117 -89
- package/dist/chunks/ThemeSelector.map +1 -1
- package/dist/chunks/Toolbar +0 -1
- package/dist/chunks/Toolbar.map +1 -1
- package/dist/chunks/Tooltip +0 -1
- package/dist/chunks/Tooltip.map +1 -1
- package/dist/chunks/base +1 -2
- package/dist/chunks/base.map +1 -1
- package/dist/chunks/compiler-runtime +4 -5
- package/dist/chunks/compiler-runtime.map +1 -1
- package/dist/chunks/context +1 -2
- package/dist/chunks/context.map +1 -1
- package/dist/chunks/core +30 -31
- package/dist/chunks/core.map +1 -1
- package/dist/chunks/core2 +0 -1
- package/dist/chunks/core2.map +1 -1
- package/dist/chunks/core3 +2 -5
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/core4 +0 -1
- package/dist/chunks/core4.map +1 -1
- package/dist/chunks/core5 +0 -1
- package/dist/chunks/core5.map +1 -1
- package/dist/chunks/core6 +14 -15
- package/dist/chunks/core6.map +1 -1
- package/dist/chunks/core7 +2 -5
- package/dist/chunks/core7.map +1 -1
- package/dist/chunks/core8 +1 -3
- package/dist/chunks/core8.map +1 -1
- package/dist/chunks/core9 +0 -1
- package/dist/chunks/core9.map +1 -1
- package/dist/chunks/navContext +1 -2
- package/dist/chunks/navContext.map +1 -1
- package/dist/chunks/tapTarget +0 -1
- package/dist/chunks/tapTarget.map +1 -1
- package/dist/chunks/types +1 -2
- package/dist/chunks/types.map +1 -1
- package/dist/chunks/useHover +430 -161
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/useSplash +18 -21
- package/dist/chunks/useSplash.map +1 -1
- package/dist/components/AppBar/AppBar/AppBar.d.ts +29 -0
- package/dist/components/AppBar/AppBar/index.js +1 -2
- package/dist/components/AppBar/AppBar/types.d.ts +29 -4
- package/dist/components/AppBar/AppBarAction/AppBarAction.d.ts +19 -1
- package/dist/components/AppBar/AppBarAction/index.js +1 -2
- package/dist/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +20 -1
- package/dist/components/AppBar/AppBarAvatar/index.js +1 -2
- package/dist/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +19 -1
- package/dist/components/AppBar/AppBarHeadline/index.js +1 -2
- package/dist/components/AppBar/AppBarState/AppBarState.d.ts +28 -2
- package/dist/components/AppBar/AppBarState/context.d.ts +37 -0
- package/dist/components/AppBar/AppBarState/index.js +16 -12
- package/dist/components/AppBar/AppBarState/index.js.map +1 -1
- package/dist/components/AppBar/core/alignment.d.ts +6 -0
- package/dist/components/AppBar/core/context.d.ts +16 -0
- package/dist/components/AppBar/core/index.js +2 -4
- package/dist/components/AppBar/core/index.js.map +1 -1
- package/dist/components/AppBar/core/size.d.ts +13 -0
- package/dist/components/AppBar/index.js +7 -7
- package/dist/components/Button/Button/Button.d.ts +17 -0
- package/dist/components/Button/Button/index.js +1 -2
- package/dist/components/Button/Button/index.js.map +1 -1
- package/dist/components/Button/Button/types.d.ts +4 -0
- package/dist/components/Button/ButtonGroups/ButtonGroup/ButtonGroup.d.ts +17 -0
- package/dist/components/Button/ButtonGroups/ButtonGroup/index.js +1 -2
- package/dist/components/Button/ButtonGroups/ButtonGroup/types.d.ts +24 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/context.d.ts +22 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js +3 -6
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js.map +1 -1
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.d.ts +5 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.d.ts +5 -0
- package/dist/components/Button/ButtonGroups/ConnectedButton/ConnectedButton.d.ts +13 -0
- package/dist/components/Button/ButtonGroups/ConnectedButton/index.js +1 -2
- package/dist/components/Button/ButtonGroups/ConnectedButton/types.d.ts +19 -1
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +18 -0
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/index.js +1 -2
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/types.d.ts +24 -0
- package/dist/components/Button/IconButton/IconButton.d.ts +21 -0
- package/dist/components/Button/IconButton/index.js +1 -2
- package/dist/components/Button/IconButton/index.js.map +1 -1
- package/dist/components/Button/IconButton/types.d.ts +4 -0
- package/dist/components/Button/LinkButton/LinkButton.d.ts +15 -0
- package/dist/components/Button/LinkButton/index.js +1 -2
- package/dist/components/Button/LinkButton/index.js.map +1 -1
- package/dist/components/Button/LinkButton/types.d.ts +4 -0
- package/dist/components/Button/LinkIconButton/LinkIconButton.d.ts +19 -0
- package/dist/components/Button/LinkIconButton/index.js +1 -2
- package/dist/components/Button/LinkIconButton/index.js.map +1 -1
- package/dist/components/Button/LinkIconButton/types.d.ts +4 -0
- package/dist/components/Button/SplitButton/SplitButton/SplitButton.d.ts +24 -0
- package/dist/components/Button/SplitButton/SplitButton/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButton/types.d.ts +23 -0
- package/dist/components/Button/SplitButton/SplitButtonContext/context.d.ts +11 -0
- package/dist/components/Button/SplitButton/SplitButtonContext/index.js +2 -4
- package/dist/components/Button/SplitButton/SplitButtonContext/index.js.map +1 -1
- package/dist/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.d.ts +5 -0
- package/dist/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.d.ts +15 -0
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js +3 -4
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js.map +1 -1
- package/dist/components/Button/SplitButton/SplitButtonPrimary/types.d.ts +11 -0
- package/dist/components/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.d.ts +19 -0
- package/dist/components/Button/SplitButton/SplitButtonTrigger/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButtonTrigger/types.d.ts +5 -0
- package/dist/components/Button/SplitButton/core/index.js +1 -2
- package/dist/components/Button/SplitButton/core/size.d.ts +13 -0
- package/dist/components/Button/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/components/Button/ToggleButton/index.js +1 -2
- package/dist/components/Button/ToggleButton/index.js.map +1 -1
- package/dist/components/Button/ToggleButton/types.d.ts +14 -0
- package/dist/components/Button/ToggleIconButton/ToggleIconButton.d.ts +21 -0
- package/dist/components/Button/ToggleIconButton/index.js +1 -2
- package/dist/components/Button/ToggleIconButton/index.js.map +1 -1
- package/dist/components/Button/ToggleIconButton/types.d.ts +9 -0
- package/dist/components/Button/core/button.d.ts +33 -0
- package/dist/components/Button/core/color.d.ts +38 -0
- package/dist/components/Button/core/index.js +1 -2
- package/dist/components/Button/core/shape.d.ts +6 -0
- package/dist/components/Button/core/sizes.d.ts +26 -0
- package/dist/components/Button/core/useButtonConfig.d.ts +25 -0
- package/dist/components/Button/core/variant.d.ts +6 -0
- package/dist/components/Button/core/width.d.ts +7 -0
- package/dist/components/Button/core/withTooltip.d.ts +9 -2
- package/dist/components/Calendar/BaseCalendar/BaseCalendar.d.ts +23 -2
- package/dist/components/Calendar/BaseCalendar/index.js +1 -2
- package/dist/components/Calendar/Calendar/Calendar.d.ts +39 -2
- package/dist/components/Calendar/Calendar/index.js +19 -14
- package/dist/components/Calendar/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/CalendarCell/CalendarCell.d.ts +14 -2
- package/dist/components/Calendar/CalendarCell/index.js +1 -2
- package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts +12 -2
- package/dist/components/Calendar/CalendarGrid/index.js +1 -2
- package/dist/components/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +12 -1
- package/dist/components/Calendar/CalendarMenuItem/index.js +1 -2
- package/dist/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js +3 -4
- package/dist/components/Calendar/CalendarMonthMenu/index.js.map +1 -1
- package/dist/components/Calendar/CalendarYearMenu/CalendarYearMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarYearMenu/index.js +1 -2
- package/dist/components/Calendar/CalendarYearMenu/index.js.map +1 -1
- package/dist/components/Calendar/RangeCalendar/RangeCalendar.d.ts +40 -2
- package/dist/components/Calendar/RangeCalendar/index.js +20 -17
- package/dist/components/Calendar/RangeCalendar/index.js.map +1 -1
- package/dist/components/Calendar/core/calendar.d.ts +26 -0
- package/dist/components/Calendar/core/index.js +1 -2
- package/dist/components/Calendar/core/useCalendarState.d.ts +15 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Calendar/index.js +4 -3
- package/dist/components/Card/Card/Card.d.ts +20 -0
- package/dist/components/Card/Card/types.d.ts +23 -0
- package/dist/components/Card/CardIcon/CardIcon.d.ts +25 -1
- package/dist/components/Card/CardIcon/index.js +1 -2
- package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +46 -7
- package/dist/components/Decorators/GridBackgroundDecorator/index.js +1 -2
- package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +53 -6
- package/dist/components/Decorators/RadialGlowDecorator/index.js +1 -2
- package/dist/components/Dialog/ActionDialog/ActionDialog.d.ts +33 -0
- package/dist/components/Dialog/ActionDialog/index.js +1 -2
- package/dist/components/Dialog/ActionDialog/types.d.ts +28 -2
- package/dist/components/Dialog/Dialog/Dialog.d.ts +32 -1
- package/dist/components/Dialog/Dialog/index.js +1 -2
- package/dist/components/Dialog/Modal/Modal.d.ts +24 -1
- package/dist/components/Dialog/Modal/index.js +1 -2
- package/dist/components/Dialog/ModalOverlay/ModalOverlay.d.ts +25 -1
- package/dist/components/Dialog/ModalOverlay/index.js +1 -2
- package/dist/components/Dialog/core/context.d.ts +8 -0
- package/dist/components/Dialog/core/index.js +2 -4
- package/dist/components/Dialog/core/index.js.map +1 -1
- package/dist/components/Dialog/core/typography.d.ts +9 -0
- package/dist/components/Disclosure/Disclosure/Disclosure.d.ts +25 -1
- package/dist/components/Disclosure/Disclosure/index.js +1 -2
- package/dist/components/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +50 -2
- package/dist/components/Disclosure/DisclosureGroup/index.js +1 -2
- package/dist/components/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +31 -2
- package/dist/components/Disclosure/DisclosureHeader/index.js +1 -2
- package/dist/components/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +31 -2
- package/dist/components/Disclosure/DisclosurePanel/index.js +1 -2
- package/dist/components/Disclosure/context/context.d.ts +11 -2
- package/dist/components/Disclosure/context/index.js +1 -2
- package/dist/components/Disclosure/context/index.js.map +1 -1
- package/dist/components/Disclosure/context/useDisclosureTypographyContext.d.ts +18 -2
- package/dist/components/Divider/Divider.d.ts +30 -1
- package/dist/components/Divider/index.js +1 -2
- package/dist/components/Icon/Icon.d.ts +29 -0
- package/dist/components/Icon/index.js +1 -2
- package/dist/components/Icon/types.d.ts +28 -0
- package/dist/components/Input/CharacterCount/CharacterCount.d.ts +11 -2
- package/dist/components/Input/CharacterCount/index.js +1 -2
- package/dist/components/Input/CharacterCount/index.js.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +26 -0
- package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +17 -0
- package/dist/components/Input/Checkbox/context.d.ts +9 -3
- package/dist/components/Input/Checkbox/types.d.ts +32 -5
- package/dist/components/Input/DateField/DateField.d.ts +17 -1
- package/dist/components/Input/DateField/index.js +1 -2
- package/dist/components/Input/DateField/index.js.map +1 -1
- package/dist/components/Input/DateField/types.d.ts +4 -0
- package/dist/components/Input/DatePicker/DatePicker/DatePicker.d.ts +17 -1
- package/dist/components/Input/DatePicker/DatePicker/index.js +1 -2
- package/dist/components/Input/DatePicker/DatePicker/index.js.map +1 -1
- package/dist/components/Input/DatePicker/DatePicker/types.d.ts +10 -0
- package/dist/components/Input/DatePicker/DateRangePicker/DateRangePicker.d.ts +17 -1
- package/dist/components/Input/DatePicker/DateRangePicker/index.js +1 -2
- package/dist/components/Input/DatePicker/DateRangePicker/index.js.map +1 -1
- package/dist/components/Input/DatePicker/DateRangePicker/types.d.ts +10 -0
- package/dist/components/Input/DatePicker/core/datePicker.d.ts +3 -0
- package/dist/components/Input/DatePicker/core/index.js +1 -2
- package/dist/components/Input/Description/Description.d.ts +12 -1
- package/dist/components/Input/Description/index.js +1 -2
- package/dist/components/Input/Description/index.js.map +1 -1
- package/dist/components/Input/FieldError/FieldError.d.ts +12 -1
- package/dist/components/Input/FieldError/index.js +1 -2
- package/dist/components/Input/Input/Input.d.ts +27 -0
- package/dist/components/Input/Input/InputButton.d.ts +10 -1
- package/dist/components/Input/Input/handleInputButton.d.ts +6 -0
- package/dist/components/Input/Input/index.js +1 -2
- package/dist/components/Input/Input/types.d.ts +20 -0
- package/dist/components/Input/Label/Label.d.ts +12 -1
- package/dist/components/Input/Label/index.js +1 -2
- package/dist/components/Input/Label/index.js.map +1 -1
- package/dist/components/Input/Radio/Radio.d.ts +17 -0
- package/dist/components/Input/Radio/RadioGroup.d.ts +17 -0
- package/dist/components/Input/Radio/context.d.ts +9 -3
- package/dist/components/Input/Radio/index.js +1 -2
- package/dist/components/Input/Radio/types.d.ts +32 -6
- package/dist/components/Input/SearchField/SearchField.d.ts +16 -0
- package/dist/components/Input/SearchField/index.js +1 -2
- package/dist/components/Input/SearchField/types.d.ts +9 -0
- package/dist/components/Input/Select/ComboBox/ComboBox.d.ts +29 -1
- package/dist/components/Input/Select/ComboBox/context.d.ts +3 -0
- package/dist/components/Input/Select/ComboBox/index.js +1 -2
- package/dist/components/Input/Select/ComboBox/types.d.ts +9 -0
- package/dist/components/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +10 -1
- package/dist/components/Input/Select/ComboBoxPopover/index.js +1 -2
- package/dist/components/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +10 -2
- package/dist/components/Input/Select/ComboBoxTrigger/index.js +1 -2
- package/dist/components/Input/Select/Select/Select.d.ts +29 -1
- package/dist/components/Input/Select/Select/index.js +1 -2
- package/dist/components/Input/Select/Select/index.js.map +1 -1
- package/dist/components/Input/Select/Select/types.d.ts +4 -0
- package/dist/components/Input/Select/SelectItem/SelectItem.d.ts +19 -0
- package/dist/components/Input/Select/SelectItem/index.js +1 -2
- package/dist/components/Input/Select/SelectItem/index.js.map +1 -1
- package/dist/components/Input/Select/SelectItem/types.d.ts +9 -0
- package/dist/components/Input/Select/SelectList/SelectList.d.ts +14 -2
- package/dist/components/Input/Select/SelectList/index.js +1 -2
- package/dist/components/Input/Select/SelectList/index.js.map +1 -1
- package/dist/components/Input/Select/SelectListSection/SelectListSection.d.ts +4 -1
- package/dist/components/Input/Select/SelectListSection/index.js +1 -2
- package/dist/components/Input/Select/SelectListSection/index.js.map +1 -1
- package/dist/components/Input/Select/SelectListSectionHeader/SelectListSectionHeader.d.ts +3 -0
- package/dist/components/Input/Select/SelectListSectionHeader/index.js +1 -2
- package/dist/components/Input/Select/SelectListSectionHeader/index.js.map +1 -1
- package/dist/components/Input/Select/SelectPopover/SelectPopover.d.ts +10 -1
- package/dist/components/Input/Select/SelectPopover/index.js +1 -2
- package/dist/components/Input/Select/SelectTrigger/SelectTrigger.d.ts +10 -1
- package/dist/components/Input/Select/SelectTrigger/index.js +1 -2
- package/dist/components/Input/Slider/CenteredSlider/CenteredSlider.d.ts +23 -1
- package/dist/components/Input/Slider/CenteredSlider/index.js +1 -2
- package/dist/components/Input/Slider/CenteredSlider/types.d.ts +6 -0
- package/dist/components/Input/Slider/RangeSlider/RangeSlider.d.ts +24 -1
- package/dist/components/Input/Slider/RangeSlider/index.js +1 -2
- package/dist/components/Input/Slider/RangeSlider/index.js.map +1 -1
- package/dist/components/Input/Slider/RangeSlider/types.d.ts +9 -0
- package/dist/components/Input/Slider/Slider/Slider.d.ts +24 -1
- package/dist/components/Input/Slider/Slider/index.js +1 -2
- package/dist/components/Input/Slider/Slider/types.d.ts +13 -0
- package/dist/components/Input/Slider/SliderOutput/SliderOutput.d.ts +19 -1
- package/dist/components/Input/Slider/SliderOutput/index.js +1 -2
- package/dist/components/Input/Slider/SliderStops/SliderStops.d.ts +18 -0
- package/dist/components/Input/Slider/SliderStops/core.d.ts +54 -10
- package/dist/components/Input/Slider/SliderStops/index.js +1 -2
- package/dist/components/Input/Slider/SliderStops/types.d.ts +38 -0
- package/dist/components/Input/Slider/SliderThumb/SliderThumb.d.ts +32 -2
- package/dist/components/Input/Slider/SliderThumb/context.d.ts +20 -0
- package/dist/components/Input/Slider/SliderThumb/index.js +1 -2
- package/dist/components/Input/Slider/core/color.d.ts +1 -0
- package/dist/components/Input/Slider/core/index.js +1 -2
- package/dist/components/Input/Slider/core/size.d.ts +12 -0
- package/dist/components/Input/Slider/core/slider.d.ts +44 -0
- package/dist/components/Input/Slider/core/variant.d.ts +10 -0
- package/dist/components/Input/Switch/Switch.d.ts +32 -0
- package/dist/components/Input/Switch/index.js +1 -2
- package/dist/components/Input/Switch/types.d.ts +35 -3
- package/dist/components/Input/TextArea/TextArea.d.ts +19 -0
- package/dist/components/Input/TextArea/index.js +1 -2
- package/dist/components/Input/TextArea/index.js.map +1 -1
- package/dist/components/Input/TextArea/types.d.ts +11 -0
- package/dist/components/Input/TimeField/TimeField.d.ts +17 -1
- package/dist/components/Input/TimeField/index.js +1 -2
- package/dist/components/Input/TimeField/index.js.map +1 -1
- package/dist/components/Input/TimeField/types.d.ts +4 -0
- package/dist/components/Input/core/index.js +1 -2
- package/dist/components/Input/core/input.d.ts +15 -0
- package/dist/components/Input/core/textField.d.ts +13 -0
- package/dist/components/Input/hooks/index.js +1 -2
- package/dist/components/Input/hooks/index.js.map +1 -1
- package/dist/components/Input/hooks/useControllableState.d.ts +17 -2
- package/dist/components/List/ListAction/ListAction.d.ts +23 -1
- package/dist/components/List/ListAction/index.d.ts +1 -1
- package/dist/components/List/ListAction/index.js +1 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -1
- package/dist/components/List/ListAvatar/index.js +1 -2
- package/dist/components/List/ListBox/ListBox.d.ts +28 -1
- package/dist/components/List/ListBox/index.js +1 -2
- package/dist/components/List/ListBox/types.d.ts +27 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +19 -1
- package/dist/components/List/ListIcon/index.js +1 -2
- package/dist/components/List/ListItem/ListItem.d.ts +35 -0
- package/dist/components/List/ListItem/index.js +1 -2
- package/dist/components/List/ListItem/types.d.ts +34 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +16 -1
- package/dist/components/List/ListLabelText/index.js +1 -2
- package/dist/components/List/ListMedia/ListMedia.d.ts +20 -0
- package/dist/components/List/ListMedia/index.js +1 -2
- package/dist/components/List/ListMedia/types.d.ts +32 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +16 -1
- package/dist/components/List/ListOverlineText/index.js +1 -2
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +16 -1
- package/dist/components/List/ListSupportingText/index.js +1 -2
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +16 -1
- package/dist/components/List/ListTrailingText/index.d.ts +1 -1
- package/dist/components/List/ListTrailingText/index.js +1 -0
- package/dist/components/List/core/context.d.ts +18 -0
- package/dist/components/List/core/index.d.ts +2 -0
- package/dist/components/List/core/index.js +9 -0
- package/dist/components/List/core/index.js.map +1 -0
- package/dist/components/List/core/selectionIndicator.d.ts +8 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +12 -9
- package/dist/components/Loader/Loader.d.ts +26 -1
- package/dist/components/Loader/index.js +1 -2
- package/dist/components/Menu/Menu/Menu.d.ts +31 -1
- package/dist/components/Menu/Menu/index.js +1 -2
- package/dist/components/Menu/Menu/index.js.map +1 -1
- package/dist/components/Menu/Menu/types.d.ts +18 -0
- package/dist/components/Menu/MenuItem/MenuItem.d.ts +22 -0
- package/dist/components/Menu/MenuItem/index.js +1 -2
- package/dist/components/Menu/MenuItem/index.js.map +1 -1
- package/dist/components/Menu/MenuItem/types.d.ts +24 -0
- package/dist/components/Menu/MenuPopover/MenuPopover.d.ts +21 -1
- package/dist/components/Menu/MenuPopover/index.js +1 -2
- package/dist/components/Menu/MenuSection/MenuSection.d.ts +23 -1
- package/dist/components/Menu/MenuSection/index.js +1 -2
- package/dist/components/Menu/MenuSection/index.js.map +1 -1
- package/dist/components/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +16 -1
- package/dist/components/Menu/MenuSectionHeader/index.js +1 -2
- package/dist/components/Menu/MenuSectionHeader/index.js.map +1 -1
- package/dist/components/Menu/MenuShortcut/MenuShortcut.d.ts +16 -1
- package/dist/components/Menu/MenuShortcut/index.js +1 -2
- package/dist/components/Menu/MenuShortcut/index.js.map +1 -1
- package/dist/components/Menu/MenuTrailingText/MenuTrailingText.d.ts +16 -1
- package/dist/components/Menu/MenuTrailingText/index.js +1 -2
- package/dist/components/Menu/MenuTrailingText/index.js.map +1 -1
- package/dist/components/Menu/MenuTrigger/MenuTrigger.d.ts +43 -2
- package/dist/components/Menu/MenuTrigger/index.js +1 -2
- package/dist/components/Menu/MenuTrigger/index.js.map +1 -1
- package/dist/components/Menu/SubmenuPopover/SubmenuPopover.d.ts +22 -1
- package/dist/components/Menu/SubmenuPopover/index.js +1 -2
- package/dist/components/Menu/context/context.d.ts +13 -0
- package/dist/components/Menu/context/index.js +2 -4
- package/dist/components/Menu/context/index.js.map +1 -1
- package/dist/components/Menu/context/useMenuConfigContext.d.ts +6 -0
- package/dist/components/Menu/core/color.d.ts +20 -0
- package/dist/components/Menu/core/index.js +1 -2
- package/dist/components/Menu/core/layout.d.ts +17 -0
- package/dist/components/Menu/core/menu.d.ts +18 -0
- package/dist/components/Navigation/Navigation/Navigation.d.ts +28 -0
- package/dist/components/Navigation/Navigation/navContext.d.ts +19 -0
- package/dist/components/Navigation/Navigation/navRenderingContext.d.ts +16 -0
- package/dist/components/Navigation/Navigation/types.d.ts +28 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +15 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationButton/types.d.ts +9 -0
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +21 -2
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +15 -0
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/types.d.ts +5 -0
- package/dist/components/Navigation/NavigationItem/core/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/core/navigationItem.d.ts +22 -0
- package/dist/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +22 -1
- package/dist/components/Navigation/NavigationScrollContainer/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +24 -1
- package/dist/components/Navigation/NavigationSection/NavigationSection/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +16 -1
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/index.js +1 -2
- package/dist/components/Navigation/NavigationState/NavigationState.d.ts +27 -2
- package/dist/components/Navigation/NavigationState/context.d.ts +31 -0
- package/dist/components/Navigation/NavigationState/index.d.ts +1 -0
- package/dist/components/Navigation/NavigationState/index.js +2 -4
- package/dist/components/Navigation/NavigationState/index.js.map +1 -1
- package/dist/components/Navigation/NavigationState/types.d.ts +12 -0
- package/dist/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +35 -2
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js +1 -2
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -1
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +40 -2
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js +1 -2
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
- package/dist/components/Navigation/core/index.js +1 -2
- package/dist/components/Navigation/core/navLabelContext.d.ts +6 -0
- package/dist/components/Navigation/core/navigation.d.ts +9 -0
- package/dist/components/Navigation/core/navigationInfo.d.ts +19 -0
- package/dist/components/Popover/Popover.d.ts +34 -1
- package/dist/components/Popover/index.js +1 -2
- package/dist/components/Sheets/BottomSheet/BottomSheet/BottomSheet.d.ts +40 -0
- package/dist/components/Sheets/BottomSheet/BottomSheet/index.d.ts +2 -0
- package/dist/components/Sheets/BottomSheet/BottomSheet/index.js +1 -0
- package/dist/components/Sheets/BottomSheet/BottomSheet/types.d.ts +37 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/BottomSheetModal.d.ts +36 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/context.d.ts +15 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/index.js +1 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/types.d.ts +43 -0
- package/dist/components/Sheets/BottomSheet/index.d.ts +1 -0
- package/dist/components/Sheets/BottomSheet/index.js +3 -2
- package/dist/components/Sheets/SideSheet/SideSheet/SideSheet.d.ts +48 -0
- package/dist/components/Sheets/SideSheet/SideSheet/SideSheetDialog.d.ts +45 -0
- package/dist/components/Sheets/SideSheet/SideSheet/index.d.ts +3 -0
- package/dist/components/Sheets/SideSheet/SideSheet/index.js +1 -0
- package/dist/components/Sheets/SideSheet/SideSheet/types.d.ts +102 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/SideSheetModal.d.ts +36 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/context.d.ts +20 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/index.js +1 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/types.d.ts +56 -0
- package/dist/components/Sheets/SideSheet/index.d.ts +1 -2
- package/dist/components/Sheets/SideSheet/index.js +3 -2
- package/dist/components/Sheets/core/layout.d.ts +11 -0
- package/dist/components/Sheets/index.d.ts +0 -2
- package/dist/components/Snackbar/SnackbarRegion.d.ts +50 -0
- package/dist/components/Snackbar/context.d.ts +38 -0
- package/dist/components/Snackbar/index.js +1 -2
- package/dist/components/Snackbar/types.d.ts +69 -0
- package/dist/components/Splash/Splash.d.ts +6 -0
- package/dist/components/Splash/index.js +1 -2
- package/dist/components/Splash/types.d.ts +10 -0
- package/dist/components/Splash/useSplash.d.ts +21 -0
- package/dist/components/Tabs/Tab/Tab.d.ts +33 -2
- package/dist/components/Tabs/Tab/index.js +1 -2
- package/dist/components/Tabs/TabList/TabList.d.ts +42 -1
- package/dist/components/Tabs/TabList/index.js +1 -2
- package/dist/components/Tabs/TabPanel/TabPanel.d.ts +28 -1
- package/dist/components/Tabs/TabPanel/index.js +1 -2
- package/dist/components/Tabs/TabPanels/TabPanels.d.ts +28 -1
- package/dist/components/Tabs/TabPanels/index.js +1 -2
- package/dist/components/Tabs/Tabs/Tabs.d.ts +43 -1
- package/dist/components/Tabs/Tabs/index.js +1 -2
- package/dist/components/Tag/Tag.d.ts +37 -0
- package/dist/components/Tag/core.d.ts +6 -0
- package/dist/components/Tag/index.js +1 -2
- package/dist/components/Tag/types.d.ts +48 -2
- package/dist/components/ThemeSelector/ThemeItem.d.ts +52 -2
- package/dist/components/ThemeSelector/ThemeProvider.d.ts +29 -2
- package/dist/components/ThemeSelector/ThemeSelector.d.ts +24 -0
- package/dist/components/ThemeSelector/core.d.ts +72 -4
- package/dist/components/ThemeSelector/index.d.ts +2 -0
- package/dist/components/ThemeSelector/index.js +1 -2
- package/dist/components/ThemeSelector/types.d.ts +110 -2
- package/dist/components/Toolbar/Toolbar.d.ts +47 -0
- package/dist/components/Toolbar/ToolbarToggleButtonGroup.d.ts +35 -1
- package/dist/components/Toolbar/index.js +1 -2
- package/dist/components/Toolbar/types.d.ts +60 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +56 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltip/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +27 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +31 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +22 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js.map +1 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts +26 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js.map +1 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/RichTooltipTrigger.d.ts +53 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.d.ts +1 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.js +11 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.js.map +1 -0
- package/dist/components/Tooltip/RichTooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/RichTooltip/index.js +2 -1
- package/dist/components/Tooltip/Tooltip/Tooltip.d.ts +35 -1
- package/dist/components/Tooltip/Tooltip/index.js +1 -2
- package/dist/components/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +29 -1
- package/dist/components/Tooltip/TooltipTrigger/index.js +1 -2
- package/dist/components/Tooltip/TooltipTrigger/index.js.map +1 -1
- package/dist/components/Tooltip/index.js +4 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +131 -139
- package/dist/index.js.map +1 -1
- package/dist/preview/AppBar/AppBar.d.ts +2 -0
- package/dist/preview/AppBar/index.d.ts +1 -0
- package/dist/preview/BottomSheet/BottomSheet.d.ts +6 -0
- package/dist/preview/BottomSheet/index.d.ts +1 -0
- package/dist/preview/Button/Button.d.ts +2 -0
- package/dist/preview/Button/index.d.ts +1 -0
- package/dist/preview/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/preview/ButtonGroup/index.d.ts +1 -0
- package/dist/preview/Calendar/Calendar.d.ts +2 -0
- package/dist/preview/Calendar/index.d.ts +1 -0
- package/dist/preview/Card/Card.d.ts +2 -0
- package/dist/preview/Card/index.d.ts +1 -0
- package/dist/preview/CenteredSlider/CenteredSlider.d.ts +2 -0
- package/dist/preview/CenteredSlider/index.d.ts +1 -0
- package/dist/preview/Checkbox/Checkbox.d.ts +2 -0
- package/dist/preview/Checkbox/index.d.ts +1 -0
- package/dist/preview/Config/Config.d.ts +8 -0
- package/dist/preview/Config/index.d.ts +1 -0
- package/dist/preview/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +2 -0
- package/dist/preview/ConnectedButtonGroup/index.d.ts +1 -0
- package/dist/preview/DateField/DateField.d.ts +6 -0
- package/dist/preview/DateField/index.d.ts +1 -0
- package/dist/preview/DatePicker/DatePicker.d.ts +2 -0
- package/dist/preview/DatePicker/index.d.ts +1 -0
- package/dist/preview/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/dist/preview/DateRangePicker/index.d.ts +1 -0
- package/dist/preview/Decorators/Decorators.d.ts +2 -0
- package/dist/preview/Decorators/index.d.ts +1 -0
- package/dist/preview/Dialog/Dialog.d.ts +2 -0
- package/dist/preview/Dialog/index.d.ts +1 -0
- package/dist/preview/Disclosure/Disclosure.d.ts +2 -0
- package/dist/preview/Disclosure/index.d.ts +1 -0
- package/dist/preview/Gradients/Gradients.d.ts +6 -0
- package/dist/preview/Gradients/index.d.ts +1 -0
- package/dist/preview/Icon/Icon.d.ts +2 -0
- package/dist/preview/Icon/index.d.ts +1 -0
- package/dist/preview/IconButton/IconButton.d.ts +2 -0
- package/dist/preview/IconButton/index.d.ts +1 -0
- package/dist/preview/Input/Input.d.ts +6 -0
- package/dist/preview/Input/index.d.ts +1 -0
- package/dist/preview/Link/Link.d.ts +2 -0
- package/dist/preview/Link/index.d.ts +1 -0
- package/dist/preview/List/List.d.ts +2 -0
- package/dist/preview/List/index.d.ts +1 -0
- package/dist/preview/Menu/Menu.d.ts +3 -0
- package/dist/preview/Menu/index.d.ts +1 -0
- package/dist/preview/Navigation/Navigation.d.ts +3 -0
- package/dist/preview/Navigation/index.d.ts +1 -0
- package/dist/preview/Radio/Radio.d.ts +2 -0
- package/dist/preview/Radio/index.d.ts +1 -0
- package/dist/preview/RangeCalendar/RangeCalendar.d.ts +2 -0
- package/dist/preview/RangeCalendar/index.d.ts +1 -0
- package/dist/preview/RangeSlider/RangeSlider.d.ts +2 -0
- package/dist/preview/RangeSlider/index.d.ts +1 -0
- package/dist/preview/SearchField/SearchField.d.ts +2 -0
- package/dist/preview/SearchField/index.d.ts +1 -0
- package/dist/preview/Select/Select.d.ts +2 -0
- package/dist/preview/Select/index.d.ts +1 -0
- package/dist/preview/SideSheet/SideSheet.d.ts +7 -0
- package/dist/preview/SideSheet/index.d.ts +1 -0
- package/dist/preview/Slider/Slider.d.ts +2 -0
- package/dist/preview/Slider/index.d.ts +1 -0
- package/dist/preview/Snackbar/Snackbar.d.ts +2 -0
- package/dist/preview/Snackbar/index.d.ts +1 -0
- package/dist/preview/SplitButton/SplitButton.d.ts +10 -0
- package/dist/preview/SplitButton/index.d.ts +1 -0
- package/dist/preview/Switch/Switch.d.ts +2 -0
- package/dist/preview/Switch/index.d.ts +1 -0
- package/dist/preview/Tabs/Tabs.d.ts +7 -0
- package/dist/preview/Tabs/index.d.ts +1 -0
- package/dist/preview/Tags/Tags.d.ts +2 -0
- package/dist/preview/Tags/index.d.ts +1 -0
- package/dist/preview/TextArea/TextArea.d.ts +6 -0
- package/dist/preview/TextArea/index.d.ts +1 -0
- package/dist/preview/ThemeSelector/ThemeSelector.d.ts +2 -0
- package/dist/preview/ThemeSelector/index.d.ts +1 -0
- package/dist/preview/TimeField/TimeField.d.ts +6 -0
- package/dist/preview/TimeField/index.d.ts +1 -0
- package/dist/preview/Toolbar/Toolbar.d.ts +10 -0
- package/dist/preview/Toolbar/index.d.ts +1 -0
- package/dist/preview/Tooltip/Tooltip.d.ts +2 -0
- package/dist/preview/Tooltip/index.d.ts +1 -0
- package/dist/utils/gradients/gradients.d.ts +97 -0
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/ref/ref.d.ts +35 -2
- package/dist/utils/scroll/scroll.d.ts +67 -4
- package/dist/utils/tapTarget/tapTarget.d.ts +57 -0
- package/dist/utils/theme/build.d.ts +24 -0
- package/dist/utils/theme/types.d.ts +70 -0
- package/dist/utils/theme/useTheme.d.ts +40 -0
- package/dist/utils/typography/base.d.ts +68 -0
- package/dist/utils/typography/core.d.ts +16 -0
- package/dist/utils/typography/fluid.d.ts +36 -0
- package/package.json +24 -26
- package/dist/chunks/useGlobalListeners +0 -294
- package/dist/chunks/useGlobalListeners.map +0 -1
- package/dist/chunks/usePress +0 -535
- package/dist/chunks/usePress.map +0 -1
- package/dist/components/Image/Image.d.ts +0 -2
- package/dist/components/Image/index.d.ts +0 -2
- package/dist/components/Image/index.js +0 -29
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/types.d.ts +0 -9
- package/dist/components/Sheets/BottomSheet/BottomSheet.d.ts +0 -2
- package/dist/components/Sheets/BottomSheetModal/BottomSheetModal.d.ts +0 -2
- package/dist/components/Sheets/BottomSheetModal/context.d.ts +0 -5
- package/dist/components/Sheets/BottomSheetModal/index.js +0 -2
- package/dist/components/Sheets/BottomSheetModal/types.d.ts +0 -5
- package/dist/components/Sheets/SideSheet/SideSheet.d.ts +0 -2
- package/dist/components/Sheets/SideSheet/SideSheetDialog.d.ts +0 -2
- package/dist/components/Sheets/SideSheet/types.d.ts +0 -8
- package/dist/components/Sheets/SideSheetModal/SideSheetModal.d.ts +0 -2
- package/dist/components/Sheets/SideSheetModal/context.d.ts +0 -7
- package/dist/components/Sheets/SideSheetModal/index.js +0 -2
- package/dist/components/Sheets/SideSheetModal/types.d.ts +0 -7
- package/dist/utils/form/form.d.ts +0 -13
- package/dist/utils/form/index.d.ts +0 -1
- /package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/index.d.ts +0 -0
- /package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/index.d.ts +0 -0
|
@@ -1,2 +1,28 @@
|
|
|
1
1
|
import { CheckboxProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A checkbox control implementing Material Design 3 Checkbox guidelines.
|
|
4
|
+
*
|
|
5
|
+
* Supports unchecked, checked, and indeterminate states with animated SVG paths,
|
|
6
|
+
* accessible keyboard activation, state layers, and flexible label positioning.
|
|
7
|
+
* Built on React Aria's `CheckboxField` and `CheckboxButton` components.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { Checkbox } from "@adgytec/web-ui-components";
|
|
12
|
+
*
|
|
13
|
+
* <Checkbox isSelected={agree} onChange={setAgree}>
|
|
14
|
+
* I accept the terms and conditions
|
|
15
|
+
* </Checkbox>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* // Indeterminate checkbox with start label placement
|
|
21
|
+
* import { Checkbox } from "@adgytec/web-ui-components";
|
|
22
|
+
*
|
|
23
|
+
* <Checkbox isIndeterminate labelPlacement="start">
|
|
24
|
+
* Select all items
|
|
25
|
+
* </Checkbox>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
2
28
|
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A container managing a set of related [`Checkbox`](src/components/Input/Checkbox/Checkbox.tsx) controls.
|
|
4
|
+
*
|
|
5
|
+
* Coordinates group selection values, accessible group labels, helper descriptions,
|
|
6
|
+
* and error validation messages.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { CheckboxGroup, Checkbox } from "@adgytec/web-ui-components";
|
|
11
|
+
*
|
|
12
|
+
* <CheckboxGroup label="Notification Preferences">
|
|
13
|
+
* <Checkbox value="email">Email</Checkbox>
|
|
14
|
+
* <Checkbox value="sms">SMS</Checkbox>
|
|
15
|
+
* <Checkbox value="push">Push notifications</Checkbox>
|
|
16
|
+
* </CheckboxGroup>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
2
19
|
export declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { CheckboxLabelPlacement } from './types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Configuration context value passed down from [`CheckboxGroup`](src/components/Input/Checkbox/CheckboxGroup.tsx) to child [`Checkbox`](src/components/Input/Checkbox/Checkbox.tsx) components.
|
|
4
|
+
*/
|
|
5
|
+
export interface CheckboxGroupContextValue {
|
|
6
|
+
/** Inherited label placement for child checkbox items. */
|
|
3
7
|
labelPlacement?: CheckboxLabelPlacement;
|
|
4
|
-
|
|
5
|
-
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Context communicating group-level styling configurations to nested checkboxes.
|
|
11
|
+
*/
|
|
6
12
|
export declare const CheckboxGroupContext: import('react').Context<CheckboxGroupContextValue>;
|
|
@@ -1,14 +1,41 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CheckboxField, CheckboxGroup } from 'react-aria-components';
|
|
3
3
|
import { CoreInputProps } from '../core';
|
|
4
|
+
/**
|
|
5
|
+
* Alignment of the checkbox label text relative to the indicator box.
|
|
6
|
+
*
|
|
7
|
+
* - `"start"`: Label precedes the checkbox indicator.
|
|
8
|
+
* - `"end"`: Label follows the checkbox indicator (default).
|
|
9
|
+
*/
|
|
4
10
|
export type CheckboxLabelPlacement = "start" | "end";
|
|
11
|
+
/**
|
|
12
|
+
* Props for the [`CheckboxGroup`](src/components/Input/Checkbox/CheckboxGroup.tsx) component.
|
|
13
|
+
*
|
|
14
|
+
* Extends React Aria's `CheckboxGroup` props (excluding `children`) and [`CoreInputProps`](src/components/Input/core/types.ts).
|
|
15
|
+
*/
|
|
5
16
|
export interface CheckboxGroupProps extends Omit<React.ComponentPropsWithRef<typeof CheckboxGroup>, "children">, CoreInputProps {
|
|
17
|
+
/** The child checkboxes or custom content rendered inside the group. */
|
|
6
18
|
children?: ReactNode;
|
|
7
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Default label placement applied to all child checkboxes within the group.
|
|
21
|
+
* Can be overridden per individual [`Checkbox`](src/components/Input/Checkbox/Checkbox.tsx).
|
|
22
|
+
*
|
|
23
|
+
* @default "end"
|
|
24
|
+
*/
|
|
8
25
|
labelPlacement?: CheckboxLabelPlacement;
|
|
9
|
-
containerStateLayer?: boolean;
|
|
10
26
|
}
|
|
11
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Props for the [`Checkbox`](src/components/Input/Checkbox/Checkbox.tsx) component.
|
|
29
|
+
*
|
|
30
|
+
* Extends all properties from React Aria's `CheckboxField`, including selection states,
|
|
31
|
+
* form submission, indeterminate state, validation, and accessibility.
|
|
32
|
+
*/
|
|
33
|
+
export interface CheckboxProps extends React.ComponentPropsWithRef<typeof CheckboxField> {
|
|
34
|
+
/**
|
|
35
|
+
* Alignment of the label text relative to the indicator box.
|
|
36
|
+
* Overrides the group-level setting if nested inside a [`CheckboxGroup`](src/components/Input/Checkbox/CheckboxGroup.tsx).
|
|
37
|
+
*
|
|
38
|
+
* @default "end"
|
|
39
|
+
*/
|
|
12
40
|
labelPlacement?: CheckboxLabelPlacement;
|
|
13
|
-
containerStateLayer?: boolean;
|
|
14
41
|
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import { DateValue } from 'react-aria-components';
|
|
2
2
|
import { DateFieldProps } from './types';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* An accessible segmented date input field allowing users to enter dates by editing day, month, and year segments.
|
|
5
|
+
*
|
|
6
|
+
* Automatically handles locale-specific date formatting, keyboard increment/decrement,
|
|
7
|
+
* validation constraints, helper descriptions, and error feedback.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { DateField } from '@adgytec/web-ui-components';
|
|
12
|
+
*
|
|
13
|
+
* <DateField
|
|
14
|
+
* label="Birth date"
|
|
15
|
+
* description="Enter in your local date format."
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const DateField: <T extends DateValue>({ label, description, errorMessage, showDescriptionOnInvalid, className, ref, ...props }: DateFieldProps<T>) => import('react').JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { c as i, d as a, i as o, l as s, n as c, o as l, r as u, s as d } from "
|
|
|
6
6
|
import f from "clsx";
|
|
7
7
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
8
8
|
import { DateField as g, DateInput as _, DateSegment as v } from "react-aria-components";
|
|
9
|
-
|
|
9
|
+
// src/components/Input/DateField/DateField.tsx
|
|
10
10
|
var y = ({ label: y, description: b, errorMessage: x, showDescriptionOnInvalid: S = !1, className: C, ref: w, ...T }) => /* @__PURE__ */ m(g, {
|
|
11
11
|
className: (e) => f(c, i, typeof C == "function" ? C(e) : C),
|
|
12
12
|
...T,
|
|
@@ -34,7 +34,6 @@ var y = ({ label: y, description: b, errorMessage: x, showDescriptionOnInvalid:
|
|
|
34
34
|
] });
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
//#endregion
|
|
38
37
|
export { y as DateField };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Input/DateField/DateField.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport {\n DateField as AriaDateField,\n DateInput,\n DateSegment,\n type DateValue,\n} from \"react-aria-components\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../core\";\nimport { Description } from \"../Description\";\nimport { FieldError } from \"../FieldError\";\nimport { Label } from \"../Label\";\nimport type { DateFieldProps } from \"./types\";\n\nexport const DateField = <T extends DateValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n ...props\n}: DateFieldProps<T>) => {\n return (\n <AriaDateField\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <DateInput\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n </>\n );\n }}\n </AriaDateField>\n );\n};\n"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaDateField","clsx","_Fragment","Label","FieldError","typography","FieldError$1","Label$1","InputGroupStyles","UnsetStyles","DateSegmentStyles","SupportingTextStyles","Colors","EditorInputStyles","DateInputStyles","EditorStyles","clsx$1","DateField$1","DateField","props","className","renderProps","showDescription","description","isInvalid","showDescriptionOnInvalid","Fragment","label","DateInput","DateSegment","Description","errorMessage"],"sources":["../../../../src/components/Input/DateField/DateField.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport {\n DateField as AriaDateField,\n DateInput,\n DateSegment,\n type DateValue,\n} from \"react-aria-components\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../core\";\nimport { Description } from \"../Description\";\nimport { FieldError } from \"../FieldError\";\nimport { Label } from \"../Label\";\nimport type { DateFieldProps } from \"./types\";\n\n/**\n * An accessible segmented date input field allowing users to enter dates by editing day, month, and year segments.\n *\n * Automatically handles locale-specific date formatting, keyboard increment/decrement,\n * validation constraints, helper descriptions, and error feedback.\n *\n * @example\n * ```tsx\n * import { DateField } from '@adgytec/web-ui-components';\n *\n * <DateField\n * label=\"Birth date\"\n * description=\"Enter in your local date format.\"\n * />\n * ```\n */\nexport const DateField = <T extends DateValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n ...props\n}: DateFieldProps<T>) => {\n return (\n <AriaDateField\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <DateInput\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n </>\n );\n }}\n </AriaDateField>\n );\n};\n"],"mappings":";;;;;;;;;AAuCA,IAAakB,KAAkC,EAC3C,UACA,gBACA,iBACA,8BAA2B,IAC3B,cACA,QACA,GAAGC,QAGC,kBAACnB,GAAD;CACI,YAAY,MACRC,EACIW,GACAJ,GACA,OAAOY,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;CAEJ,GAAID;CAEF,WAAA,EAAE,mBAAgB;EAChB,IAAMG,IACFC,MACC,CAACC,KAAcA,KAAaC;EAEjC,OACI,kBAAAvB,GAAA,EAAA,UAAA;GACKyB,KAAS,kBAACxB,GAAD,EAAA,UAAQwB,EAAa,CAAA;GAE/B,kBAACC,GAAD;IACS;IACL,WAAW3B,EACPQ,GACAM,GACAF,GACAR,EAAW,WACXS,CACJ;IACA,mBAAiB;IAEf,WAAA,MACE,kBAACe,GAAD;KACI,WAAW5B,EACPS,GACAL,EAAW,SACf;KACS;IAAQ,CAAA;GAGlB,CAAA;GAEViB,KACG,kBAACQ,GAAD;IAAa,WAAW7B,EAAKU,CAAoB;IAC5C,UAAAY;GACQ,CAAA;GAEjB,kBAACnB,GAAD;IAAY,WAAWH,EAAKU,CAAoB;IAC3C,UAAAoB;GACO,CAAA;EAChB,EAAA,CAAA;CAER;AACW,CAAA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { DateFieldProps as AriaDateFieldProps, DateInput, DateValue } from 'react-aria-components';
|
|
2
2
|
import { RefProp } from '../../../utils';
|
|
3
3
|
import { CoreInputProps } from '../core';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the {@link DateField} component.
|
|
6
|
+
* Extends React Aria's {@link AriaDateFieldProps}, {@link CoreInputProps}, and native date input ref.
|
|
7
|
+
*/
|
|
4
8
|
export interface DateFieldProps<T extends DateValue> extends Omit<AriaDateFieldProps<T>, "children">, CoreInputProps, RefProp<typeof DateInput> {
|
|
5
9
|
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import { DateValue } from 'react-aria-components';
|
|
2
2
|
import { DatePickerProps } from './types';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A date picker component combining a segmented date input field with a dropdown {@link Calendar} popover.
|
|
5
|
+
*
|
|
6
|
+
* Implements Material Design 3 Date Picker guidelines, providing both typed manual input and interactive
|
|
7
|
+
* calendar date selection, with locale-sensitive formatting and validation.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { DatePicker } from '@adgytec/web-ui-components';
|
|
12
|
+
*
|
|
13
|
+
* <DatePicker
|
|
14
|
+
* label="Appointment Date"
|
|
15
|
+
* description="Choose a date for your visit."
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const DatePicker: <T extends DateValue>({ label, description, errorMessage, showDescriptionOnInvalid, className, ref, weekdayStyle, ...props }: DatePickerProps<T>) => import('react').JSX.Element;
|
|
@@ -11,7 +11,7 @@ import _ from "clsx";
|
|
|
11
11
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
12
12
|
import { DateInput as x, DatePicker as S, DateSegment as C, Group as w } from "react-aria-components";
|
|
13
13
|
import { CalendarDays as T } from "lucide-react";
|
|
14
|
-
|
|
14
|
+
// src/components/Input/DatePicker/DatePicker/DatePicker.tsx
|
|
15
15
|
var E = ({ label: E, description: D, errorMessage: O, showDescriptionOnInvalid: k = !1, className: A, ref: j, weekdayStyle: M, ...N }) => /* @__PURE__ */ y(S, {
|
|
16
16
|
className: (e) => _(l, a, typeof A == "function" ? A(e) : A),
|
|
17
17
|
...N,
|
|
@@ -53,7 +53,6 @@ var E = ({ label: E, description: D, errorMessage: O, showDescriptionOnInvalid:
|
|
|
53
53
|
] });
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
//#endregion
|
|
57
56
|
export { E as DatePicker };
|
|
58
57
|
|
|
59
58
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Input/DatePicker/DatePicker/DatePicker.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { CalendarDays } from \"lucide-react\";\nimport {\n DatePicker as AriaDatePicker,\n DateInput,\n DateSegment,\n type DateValue,\n Group,\n} from \"react-aria-components\";\nimport { Calendar } from \"@/components/Calendar\";\nimport { Popover } from \"@/components/Popover\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../../core\";\nimport { Description } from \"../../Description\";\nimport { FieldError } from \"../../FieldError\";\nimport { InputButton } from \"../../Input\";\nimport { Label } from \"../../Label\";\nimport { DatePickerGroupStyles, DatePickerPopoverStyles } from \"../core\";\nimport type { DatePickerProps } from \"./types\";\n\nexport const DatePicker = <T extends DateValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n weekdayStyle,\n ...props\n}: DatePickerProps<T>) => {\n return (\n <AriaDatePicker\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid, isDisabled, isOpen }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <Group\n className={clsx(\n EditorStyles,\n DatePickerGroupStyles\n )}\n data-trailing={true}\n data-open={isOpen || undefined}\n data-date-input={true}\n >\n <DateInput\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n\n <InputButton\n icon={CalendarDays}\n isDisabled={isDisabled}\n data-invalid={isInvalid || undefined}\n />\n </Group>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n\n <Popover className={clsx(DatePickerPopoverStyles)}>\n <Calendar weekdayStyle={weekdayStyle} />\n </Popover>\n </>\n );\n }}\n </AriaDatePicker>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaDatePicker","clsx","_Fragment","Label","FieldError","Popover","Calendar","typography","Calendar$1","FieldError$1","Label$1","InputGroupStyles","UnsetStyles","DateSegmentStyles","SupportingTextStyles","Colors","EditorInputStyles","DateInputStyles","EditorStyles","Popover$1","InputButton","DatePickerPopoverStyles","DatePickerGroupStyles","clsx$1","DatePicker$1","DatePicker","props","className","renderProps","showDescription","description","isInvalid","showDescriptionOnInvalid","Fragment","label","Group","isOpen","DateInput","DateSegment","CalendarDays","Description","errorMessage"],"sources":["../../../../../src/components/Input/DatePicker/DatePicker/DatePicker.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { CalendarDays } from \"lucide-react\";\nimport {\n DatePicker as AriaDatePicker,\n DateInput,\n DateSegment,\n type DateValue,\n Group,\n} from \"react-aria-components\";\nimport { Calendar } from \"@/components/Calendar\";\nimport { Popover } from \"@/components/Popover\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../../core\";\nimport { Description } from \"../../Description\";\nimport { FieldError } from \"../../FieldError\";\nimport { InputButton } from \"../../Input\";\nimport { Label } from \"../../Label\";\nimport { DatePickerGroupStyles, DatePickerPopoverStyles } from \"../core\";\nimport type { DatePickerProps } from \"./types\";\n\n/**\n * A date picker component combining a segmented date input field with a dropdown {@link Calendar} popover.\n *\n * Implements Material Design 3 Date Picker guidelines, providing both typed manual input and interactive\n * calendar date selection, with locale-sensitive formatting and validation.\n *\n * @example\n * ```tsx\n * import { DatePicker } from '@adgytec/web-ui-components';\n *\n * <DatePicker\n * label=\"Appointment Date\"\n * description=\"Choose a date for your visit.\"\n * />\n * ```\n */\nexport const DatePicker = <T extends DateValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n weekdayStyle,\n ...props\n}: DatePickerProps<T>) => {\n return (\n <AriaDatePicker\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid, isDisabled, isOpen }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <Group\n className={clsx(\n EditorStyles,\n DatePickerGroupStyles\n )}\n data-trailing={true}\n data-open={isOpen || undefined}\n data-date-input={true}\n >\n <DateInput\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n\n <InputButton\n icon={CalendarDays}\n isDisabled={isDisabled}\n data-invalid={isInvalid || undefined}\n />\n </Group>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n\n <Popover className={clsx(DatePickerPopoverStyles)}>\n <Calendar weekdayStyle={weekdayStyle} />\n </Popover>\n </>\n );\n }}\n </AriaDatePicker>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AA6CA,IAAayB,KAAmC,EAC5C,UACA,gBACA,iBACA,8BAA2B,IAC3B,cACA,QACA,iBACA,GAAGC,QAGC,kBAAC1B,GAAD;CACI,YAAY,MACRC,EACIc,GACAJ,GACA,OAAOgB,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;CAEJ,GAAID;CAEF,WAAA,EAAE,cAAW,eAAY,gBAAa;EACpC,IAAMG,IACFC,MACC,CAACC,KAAcA,KAAaC;EAEjC,OACI,kBAAA9B,GAAA,EAAA,UAAA;GACKgC,KAAS,kBAAC/B,GAAD,EAAA,UAAQ+B,EAAa,CAAA;GAE/B,kBAACC,GAAD;IACI,WAAWlC,EACPiB,GACAI,CACJ;IACA,iBAAe;IACf,aAAWc,KAAU,KAAA;IACrB,mBAAiB;IAPrB,UAAA,CASI,kBAACC,GAAD;KACS;KACL,WAAWpC,EACPW,GACAI,GACAT,EAAW,WACXU,CACJ;KACA,mBAAiB;KAEf,WAAA,MACE,kBAACqB,GAAD;MACI,WAAWrC,EACPY,GACAN,EAAW,SACf;MACS;KAAQ,CAAA;IAGlB,CAAA,GAEX,kBAACa,GAAD;KACI,MAAMmB;KACM;KACZ,gBAAcR,KAAa,KAAA;IAAU,CAAA,CAEtC;;GAENF,KACG,kBAACW,GAAD;IAAa,WAAWvC,EAAKa,CAAoB;IAC5C,UAAAgB;GACQ,CAAA;GAEjB,kBAAC1B,GAAD;IAAY,WAAWH,EAAKa,CAAoB;IAC3C,UAAA2B;GACO,CAAA;GAEZ,kBAACpC,GAAD;IAAS,WAAWJ,EAAKoB,CAAuB;IAC5C,UAAA,kBAACf,GAAD,EAAwB,gBAAa,CAAA;GAChC,CAAA;EACb,EAAA,CAAA;CAER;AACY,CAAA"}
|
|
@@ -2,6 +2,16 @@ import { DatePickerProps as AriaDatePickerProps, DateInput, DateValue } from 're
|
|
|
2
2
|
import { WeekdayStyle } from '../../../Calendar/core';
|
|
3
3
|
import { RefProp } from '../../../../utils';
|
|
4
4
|
import { CoreInputProps } from '../../core';
|
|
5
|
+
/**
|
|
6
|
+
* Props for the {@link DatePicker} component.
|
|
7
|
+
* Extends React Aria's {@link AriaDatePickerProps}, {@link CoreInputProps}, and native date input ref.
|
|
8
|
+
*/
|
|
5
9
|
export interface DatePickerProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, "children">, CoreInputProps, RefProp<typeof DateInput> {
|
|
10
|
+
/**
|
|
11
|
+
* Formatting style for weekday column headers in the calendar popover.
|
|
12
|
+
*
|
|
13
|
+
* - `"narrow"`: Typically a single character (e.g. "S", "M", "T").
|
|
14
|
+
* - `"short"`: Abbreviated weekday name (e.g. "Sun", "Mon", "Tue").
|
|
15
|
+
*/
|
|
6
16
|
weekdayStyle?: WeekdayStyle;
|
|
7
17
|
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import { DateValue } from 'react-aria-components';
|
|
2
2
|
import { DateRangePickerProps } from './types';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A date range picker component allowing users to select a start and end date using dual segmented date inputs or a dropdown {@link RangeCalendar} popover.
|
|
5
|
+
*
|
|
6
|
+
* Implements Material Design 3 Date Range Picker guidelines, providing accessible keyboard navigation,
|
|
7
|
+
* custom range highlighting, and validation feedback.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { DateRangePicker } from '@adgytec/web-ui-components';
|
|
12
|
+
*
|
|
13
|
+
* <DateRangePicker
|
|
14
|
+
* label="Travel Dates"
|
|
15
|
+
* description="Select departure and return dates."
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const DateRangePicker: <T extends DateValue>({ label, description, errorMessage, showDescriptionOnInvalid, className, ref, weekdayStyle, ...props }: DateRangePickerProps<T>) => import('react').JSX.Element;
|
|
@@ -11,7 +11,7 @@ import v from "clsx";
|
|
|
11
11
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
12
12
|
import { DateInput as S, DateRangePicker as C, DateSegment as w, Group as T } from "react-aria-components";
|
|
13
13
|
import { CalendarDays as E } from "lucide-react";
|
|
14
|
-
|
|
14
|
+
// src/components/Input/DatePicker/DateRangePicker/DateRangePicker.tsx
|
|
15
15
|
var D = ({ label: D, description: O, errorMessage: k, showDescriptionOnInvalid: A = !1, className: j, ref: M, weekdayStyle: N, ...P }) => /* @__PURE__ */ b(C, {
|
|
16
16
|
className: (e) => v(l, a, typeof j == "function" ? j(e) : j),
|
|
17
17
|
...P,
|
|
@@ -72,7 +72,6 @@ var D = ({ label: D, description: O, errorMessage: k, showDescriptionOnInvalid:
|
|
|
72
72
|
] });
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
//#endregion
|
|
76
75
|
export { D as DateRangePicker };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["segment"],"sources":["../../../../../src/components/Input/DatePicker/DateRangePicker/DateRangePicker.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { CalendarDays } from \"lucide-react\";\nimport {\n DateRangePicker as AriaRangeDatePicker,\n DateInput,\n DateSegment,\n type DateValue,\n Group,\n} from \"react-aria-components\";\nimport { RangeCalendar } from \"@/components/Calendar\";\nimport { Popover } from \"@/components/Popover\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../../core\";\nimport { Description } from \"../../Description\";\nimport { FieldError } from \"../../FieldError\";\nimport { InputButton } from \"../../Input\";\nimport { Label } from \"../../Label\";\nimport {\n DatePickerGroupStyles,\n DatePickerPopoverStyles,\n DateRangePickerDateInputGroupStyles,\n} from \"../core\";\nimport type { DateRangePickerProps } from \"./types\";\n\nexport const DateRangePicker = <T extends DateValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n weekdayStyle,\n ...props\n}: DateRangePickerProps<T>) => {\n return (\n <AriaRangeDatePicker\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid, isDisabled, isOpen }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <Group\n className={clsx(\n EditorStyles,\n DatePickerGroupStyles\n )}\n data-trailing={true}\n data-open={isOpen || undefined}\n data-date-input={true}\n >\n <div\n className={clsx(\n DateRangePickerDateInputGroupStyles\n )}\n >\n <DateInput\n slot=\"start\"\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n\n <span aria-hidden=\"true\">–</span>\n\n <DateInput\n slot=\"end\"\n className={clsx(\n UnsetStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n </div>\n\n <InputButton\n icon={CalendarDays}\n isDisabled={isDisabled}\n data-invalid={isInvalid || undefined}\n />\n </Group>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n\n <Popover className={clsx(DatePickerPopoverStyles)}>\n <RangeCalendar weekdayStyle={weekdayStyle} />\n </Popover>\n </>\n );\n }}\n </AriaRangeDatePicker>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["segment","AriaRangeDatePicker","clsx","_Fragment","Label","FieldError","Popover","RangeCalendar","typography","RangeCalendar$1","FieldError$1","Label$1","InputGroupStyles","UnsetStyles","DateSegmentStyles","SupportingTextStyles","Colors","EditorInputStyles","DateInputStyles","EditorStyles","Popover$1","InputButton","DatePickerPopoverStyles","DateRangePickerDateInputGroupStyles","DatePickerGroupStyles","clsx$1","DateRangePicker$1","DateRangePicker","props","className","renderProps","showDescription","description","isInvalid","showDescriptionOnInvalid","Fragment","label","Group","isOpen","DateInput","DateSegment","segment_0","CalendarDays","Description","errorMessage"],"sources":["../../../../../src/components/Input/DatePicker/DateRangePicker/DateRangePicker.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { CalendarDays } from \"lucide-react\";\nimport {\n DateRangePicker as AriaRangeDatePicker,\n DateInput,\n DateSegment,\n type DateValue,\n Group,\n} from \"react-aria-components\";\nimport { RangeCalendar } from \"@/components/Calendar\";\nimport { Popover } from \"@/components/Popover\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../../core\";\nimport { Description } from \"../../Description\";\nimport { FieldError } from \"../../FieldError\";\nimport { InputButton } from \"../../Input\";\nimport { Label } from \"../../Label\";\nimport {\n DatePickerGroupStyles,\n DatePickerPopoverStyles,\n DateRangePickerDateInputGroupStyles,\n} from \"../core\";\nimport type { DateRangePickerProps } from \"./types\";\n\n/**\n * A date range picker component allowing users to select a start and end date using dual segmented date inputs or a dropdown {@link RangeCalendar} popover.\n *\n * Implements Material Design 3 Date Range Picker guidelines, providing accessible keyboard navigation,\n * custom range highlighting, and validation feedback.\n *\n * @example\n * ```tsx\n * import { DateRangePicker } from '@adgytec/web-ui-components';\n *\n * <DateRangePicker\n * label=\"Travel Dates\"\n * description=\"Select departure and return dates.\"\n * />\n * ```\n */\nexport const DateRangePicker = <T extends DateValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n weekdayStyle,\n ...props\n}: DateRangePickerProps<T>) => {\n return (\n <AriaRangeDatePicker\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid, isDisabled, isOpen }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <Group\n className={clsx(\n EditorStyles,\n DatePickerGroupStyles\n )}\n data-trailing={true}\n data-open={isOpen || undefined}\n data-date-input={true}\n >\n <div\n className={clsx(\n DateRangePickerDateInputGroupStyles\n )}\n >\n <DateInput\n slot=\"start\"\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n\n <span aria-hidden=\"true\">–</span>\n\n <DateInput\n slot=\"end\"\n className={clsx(\n UnsetStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n )}\n </DateInput>\n </div>\n\n <InputButton\n icon={CalendarDays}\n isDisabled={isDisabled}\n data-invalid={isInvalid || undefined}\n />\n </Group>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n\n <Popover className={clsx(DatePickerPopoverStyles)}>\n <RangeCalendar weekdayStyle={weekdayStyle} />\n </Popover>\n </>\n );\n }}\n </AriaRangeDatePicker>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAiDA,IAAa2B,KAAwC,EACjD,UACA,gBACA,iBACA,8BAA2B,IAC3B,cACA,QACA,iBACA,GAAGC,QAGC,kBAAC3B,GAAD;CACI,YAAY,MACRC,EACIc,GACAJ,GACA,OAAOiB,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;CAEJ,GAAID;CAEF,WAAA,EAAE,cAAW,eAAY,gBAAa;EACpC,IAAMG,IACFC,MACC,CAACC,KAAcA,KAAaC;EAEjC,OACI,kBAAA/B,GAAA,EAAA,UAAA;GACKiC,KAAS,kBAAChC,GAAD,EAAA,UAAQgC,EAAa,CAAA;GAE/B,kBAACC,GAAD;IACI,WAAWnC,EACPiB,GACAK,CACJ;IACA,iBAAe;IACf,aAAWc,KAAU,KAAA;IACrB,mBAAiB;IAPrB,UAAA,CASI,kBAAC,OAAD;KACI,WAAWpC,EACPqB,CACJ;KAHJ,UAAA;MAKI,kBAACgB,GAAD;OACI,MAAK;OACA;OACL,WAAWrC,EACPW,GACAI,GACAT,EAAW,WACXU,CACJ;OACA,mBAAiB;OAEf,WAAA,MACE,kBAACsB,GAAD;QACI,WAAWtC,EACPY,GACAN,EAAW,SACf;QACS;OAAQ,CAAA;MAGlB,CAAA;MAEX,kBAAC,QAAD;OAAM,eAAY;OAAO,UAAA;MAAO,CAAA;MAEhC,kBAAC+B,GAAD;OACI,MAAK;OACL,WAAWrC,EACPW,GACAI,GACAT,EAAW,WACXU,CACJ;OACA,mBAAiB;OAEflB,WAAAA,MACE,kBAACwC,GAAD;QACI,WAAWtC,EACPY,GACAN,EAAW,SACf;QACA,SAASR;OAAQ,CAAA;MAGlB,CAAA;KACV;IAEL,CAAA,GAAA,kBAACqB,GAAD;KACI,MAAMqB;KACM;KACZ,gBAAcT,KAAa,KAAA;IAAU,CAAA,CAEtC;;GAENF,KACG,kBAACY,GAAD;IAAa,WAAWzC,EAAKa,CAAoB;IAC5C,UAAAiB;GACQ,CAAA;GAEjB,kBAAC3B,GAAD;IAAY,WAAWH,EAAKa,CAAoB;IAC3C,UAAA6B;GACO,CAAA;GAEZ,kBAACtC,GAAD;IAAS,WAAWJ,EAAKoB,CAAuB;IAC5C,UAAA,kBAACf,GAAD,EAA6B,gBAAa,CAAA;GACrC,CAAA;EACb,EAAA,CAAA;CAER;AACiB,CAAA"}
|
|
@@ -2,6 +2,16 @@ import { DateRangePickerProps as AriaDateRangePickerProps, DateInput, DateValue
|
|
|
2
2
|
import { WeekdayStyle } from '../../../Calendar/core';
|
|
3
3
|
import { RefProp } from '../../../../utils';
|
|
4
4
|
import { CoreInputProps } from '../../core';
|
|
5
|
+
/**
|
|
6
|
+
* Props for the {@link DateRangePicker} component.
|
|
7
|
+
* Extends React Aria's {@link AriaDateRangePickerProps}, {@link CoreInputProps}, and native start date input ref.
|
|
8
|
+
*/
|
|
5
9
|
export interface DateRangePickerProps<T extends DateValue> extends Omit<AriaDateRangePickerProps<T>, "children">, CoreInputProps, RefProp<typeof DateInput> {
|
|
10
|
+
/**
|
|
11
|
+
* Formatting style for weekday column headers in the range calendar popover.
|
|
12
|
+
*
|
|
13
|
+
* - `"narrow"`: Typically a single character (e.g. "S", "M", "T").
|
|
14
|
+
* - `"short"`: Abbreviated weekday name (e.g. "Sun", "Mon", "Tue").
|
|
15
|
+
*/
|
|
6
16
|
weekdayStyle?: WeekdayStyle;
|
|
7
17
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** CSS class for the date picker popover container. */
|
|
1
2
|
export declare const DatePickerPopoverStyles: string;
|
|
3
|
+
/** CSS class for the date picker input group container. */
|
|
2
4
|
export declare const DatePickerGroupStyles: string;
|
|
5
|
+
/** CSS class for the date range picker input group container. */
|
|
3
6
|
export declare const DateRangePickerDateInputGroupStyles: string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { n as DatePickerGroupStyles, e as DatePickerPopoverStyles, t as DateRangePickerDateInputGroupStyles };
|
|
1
|
+
export { t as DatePickerGroupStyles, n as DatePickerPopoverStyles, r as DateRangePickerDateInputGroupStyles } from "../../../../chunks/core5";
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { Text } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link Description} component.
|
|
4
|
+
* Extends React Aria's {@link Text} props.
|
|
5
|
+
*/
|
|
6
|
+
export interface DescriptionProps extends React.ComponentPropsWithRef<typeof Text> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Informative supporting text placed beneath an input field.
|
|
10
|
+
*
|
|
11
|
+
* Automatically bound via `slot="description"` for accessibility screen reader announcements.
|
|
12
|
+
*/
|
|
13
|
+
export declare const Description: React.FC<DescriptionProps>;
|
|
@@ -3,7 +3,7 @@ import { t } from "../../../chunks/base";
|
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { Text as i } from "react-aria-components";
|
|
6
|
-
|
|
6
|
+
// src/components/Input/Description/Description.tsx
|
|
7
7
|
var a = e(), o = (e) => {
|
|
8
8
|
let o = (0, a.c)(8), s, c;
|
|
9
9
|
if (o[0] !== e) {
|
|
@@ -19,7 +19,6 @@ var a = e(), o = (e) => {
|
|
|
19
19
|
...c
|
|
20
20
|
}), o[5] = c, o[6] = l, o[7] = u) : u = o[7], u;
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { o as Description };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Input/Description/Description.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Text } from \"react-aria-components\";\nimport { typography } from \"@/utils/typography\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","clsx$1","import_compiler_runtime","Description","$","className","props","t0","t1","_","t2","typography","Text"],"sources":["../../../../src/components/Input/Description/Description.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Text } from \"react-aria-components\";\nimport { typography } from \"@/utils/typography\";\n\n/**\n * Props for the {@link Description} component.\n * Extends React Aria's {@link Text} props.\n */\nexport interface DescriptionProps\n extends React.ComponentPropsWithRef<typeof Text> {}\n\n/**\n * Informative supporting text placed beneath an input field.\n *\n * Automatically bound via `slot=\"description\"` for accessibility screen reader announcements.\n */\nexport const Description: React.FC<DescriptionProps> = ({\n className,\n slot: _,\n ...props\n}) => {\n return (\n <Text\n slot=\"description\"\n className={clsx(typography.labelMedium, className)}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;A,aAgBaK,KAA0C,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAAO,GAAAC;CAAA,IAAAF,EAAA,OAAAG,GAAA;EAAC,IAAA,EAAA,WAAAC,GAAA,MAAAC,GAAA,GAAAC,MAAAH;EAIvD,AAJuD,IAAAC,GAAA,IAAAE,GAIvD,EAAA,KAAAH,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,OAAA,AAAA,IAAAF,EAAA,IAAA,IAAAA,EAAA;CAAA,IAAAI;CAAA,AAAAJ,EAAA,OAAAC,IAI6D,IAAAD,EAAA,MAAvC,IAAAL,EAAKY,EAAU,aAAcN,CAAS,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAE;CAEpD,OAFoDN,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KAFtD,IAAA,kBAACI,GAAD;EACS,MAAA;EACM,WAAAJ;EAAuC,GAC9CF;CAAK,CAAA,GACX,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAE,KAAA,IAAAN,EAAA,IAJFM;AAIE"}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { FieldError as AriaFieldError } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link FieldError} component.
|
|
4
|
+
* Extends React Aria's {@link AriaFieldError} props.
|
|
5
|
+
*/
|
|
6
|
+
export interface FieldErrorProps extends React.ComponentPropsWithRef<typeof AriaFieldError> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Renders error messages when an input component fails validation.
|
|
10
|
+
*
|
|
11
|
+
* Automatically displays validation feedback according to Material Design 3 error styles.
|
|
12
|
+
*/
|
|
13
|
+
export declare const FieldError: React.FC<FieldErrorProps>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as FieldError };
|
|
1
|
+
export { t as FieldError } from "../../../chunks/FieldError";
|
|
@@ -1,2 +1,29 @@
|
|
|
1
1
|
import { InputProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A single-line text input field implementing Material Design 3 Text Field guidelines.
|
|
4
|
+
*
|
|
5
|
+
* Supports accessible labels, helper descriptions, error messages, prefix/suffix text,
|
|
6
|
+
* leading icons, trailing actions via {@link InputButton}, and character counter indicators.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { Input, InputButton } from '@adgytec/web-ui-components';
|
|
11
|
+
* import { Eye, Mail } from 'lucide-react';
|
|
12
|
+
*
|
|
13
|
+
* // Basic text input with label and helper text
|
|
14
|
+
* <Input
|
|
15
|
+
* label="Email Address"
|
|
16
|
+
* placeholder="user@example.com"
|
|
17
|
+
* leadingIcon={Mail}
|
|
18
|
+
* description="We'll never share your email."
|
|
19
|
+
* />
|
|
20
|
+
*
|
|
21
|
+
* // Password field with trailing visibility button
|
|
22
|
+
* <Input
|
|
23
|
+
* label="Password"
|
|
24
|
+
* type="password"
|
|
25
|
+
* trailing={<InputButton icon={Eye} onPress={() => {}} />}
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
2
29
|
export declare const Input: React.FC<InputProps>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { IconButtonProps } from '../../Button';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link InputButton} component.
|
|
4
|
+
* Extends {@link IconButtonProps} omitting fixed size, color, and width configurations.
|
|
5
|
+
*/
|
|
6
|
+
export interface InputButtonProps extends Omit<IconButtonProps, "color" | "size" | "width"> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* An action button tailored for placement within an {@link Input} container (e.g. password visibility toggle, clear button).
|
|
10
|
+
*/
|
|
11
|
+
export declare const InputButton: React.FC<InputButtonProps>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Injects input validation and disabled states into child {@link InputButton} elements.
|
|
4
|
+
*
|
|
5
|
+
* @param params - Configuration containing `node`, `isInvalid`, and `isDisabled`.
|
|
6
|
+
* @returns Cloned element with attached state data attributes, or the original node if not an InputButton.
|
|
7
|
+
*/
|
|
2
8
|
export declare function addStateAttrsToInputButton({ node, isInvalid, isDisabled, }: {
|
|
3
9
|
node: ReactNode;
|
|
4
10
|
isInvalid: boolean;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { t as Input, e as InputButton };
|
|
1
|
+
export { t as Input, n as InputButton } from "../../../chunks/Input2";
|
|
@@ -3,16 +3,36 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { TextFieldProps as AriaTextFieldProps, Input } from 'react-aria-components';
|
|
4
4
|
import { RefProp } from '../../../utils';
|
|
5
5
|
import { CoreInputProps } from '../core';
|
|
6
|
+
/**
|
|
7
|
+
* Render prop type for input adornments such as prefix, suffix, and trailing elements.
|
|
8
|
+
* Can be static React nodes or a render function providing current interaction states.
|
|
9
|
+
*/
|
|
6
10
|
export type InputRenderProp = ReactNode | (({ isDisabled, isInvalid, }: {
|
|
7
11
|
isDisabled: boolean;
|
|
8
12
|
isInvalid: boolean;
|
|
9
13
|
}) => ReactNode);
|
|
14
|
+
/**
|
|
15
|
+
* Props for the {@link Input} component.
|
|
16
|
+
* Extends React Aria's {@link AriaTextFieldProps}, {@link CoreInputProps}, and native input element ref.
|
|
17
|
+
*/
|
|
10
18
|
export interface InputProps extends Omit<AriaTextFieldProps, "children">, CoreInputProps, RefProp<typeof Input> {
|
|
19
|
+
/** Placeholder text displayed when the input field is empty. */
|
|
11
20
|
placeholder?: string;
|
|
21
|
+
/** Text direction for the editable input area (e.g. `"ltr"`, `"rtl"`). */
|
|
12
22
|
editorDir?: string;
|
|
23
|
+
/** Content or render prop displayed immediately before the editable text input. */
|
|
13
24
|
prefix?: InputRenderProp;
|
|
25
|
+
/** Content or render prop displayed immediately after the editable text input. */
|
|
14
26
|
suffix?: InputRenderProp;
|
|
27
|
+
/** Leading Lucide icon displayed at the far start of the input container. */
|
|
15
28
|
leadingIcon?: LucideIcon;
|
|
29
|
+
/** Trailing content, such as action buttons or status indicators, displayed at the far end of the input container. */
|
|
16
30
|
trailing?: InputRenderProp;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to display the current character count below the field.
|
|
33
|
+
* Requires `maxLength` to display the limit ratio.
|
|
34
|
+
*
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
17
37
|
showCharacterCount?: boolean;
|
|
18
38
|
}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { Label as AriaLabel } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link Label} component.
|
|
4
|
+
* Extends React Aria's {@link AriaLabel} props.
|
|
5
|
+
*/
|
|
6
|
+
export interface LabelProps extends React.ComponentPropsWithRef<typeof AriaLabel> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Accessible field label rendered above or adjacent to an input component.
|
|
10
|
+
*
|
|
11
|
+
* Implements Material Design 3 `labelLarge` typography.
|
|
12
|
+
*/
|
|
13
|
+
export declare const Label: React.FC<LabelProps>;
|
|
@@ -3,7 +3,7 @@ import { t } from "../../../chunks/base";
|
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { Label as i } from "react-aria-components";
|
|
6
|
-
|
|
6
|
+
// src/components/Input/Label/Label.tsx
|
|
7
7
|
var a = e(), o = (e) => {
|
|
8
8
|
let o = (0, a.c)(8), s, c;
|
|
9
9
|
o[0] === e ? (s = o[1], c = o[2]) : ({className: s, ...c} = e, o[0] = e, o[1] = s, o[2] = c);
|
|
@@ -16,7 +16,6 @@ var a = e(), o = (e) => {
|
|
|
16
16
|
...c
|
|
17
17
|
}), o[5] = c, o[6] = l, o[7] = u) : u = o[7], u;
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { o as Label };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Input/Label/Label.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Label as AriaLabel } from \"react-aria-components\";\nimport { typography } from \"@/utils/typography\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","AriaLabel","require_compiler_runtime","clsx$1","Label$1","import_compiler_runtime","Label","$","className","props","t0","t1","typography","t2"],"sources":["../../../../src/components/Input/Label/Label.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Label as AriaLabel } from \"react-aria-components\";\nimport { typography } from \"@/utils/typography\";\n\n/**\n * Props for the {@link Label} component.\n * Extends React Aria's {@link AriaLabel} props.\n */\nexport interface LabelProps\n extends React.ComponentPropsWithRef<typeof AriaLabel> {}\n\n/**\n * Accessible field label rendered above or adjacent to an input component.\n *\n * Implements Material Design 3 `labelLarge` typography.\n */\nexport const Label: React.FC<LabelProps> = ({ className, ...props }) => {\n return (\n <AriaLabel\n slot=\"label\"\n className={clsx(typography.labelLarge, className)}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;A,aAgBaO,KAA8B,MAAA;CAAA,IAAAC,KAAA,GAAAR,EAAAA,EAAAA,CAAA,CAAA,GAAAS,GAAAC;CAAA,AAAAF,EAAA,OAAAG,KAAwB,IAAAH,EAAA,IAAA,IAAAA,EAAA,OAAvB,eAAA,GAAAE,KAAAC,GAAuB,EAAA,KAAAA,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAJ,EAAA,OAAAC,IAIN,IAAAD,EAAA,MAAtC,IAAAP,EAAKY,EAAU,YAAaJ,CAAS,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAE;CAEnD,OAFmDN,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KAFrD,IAAA,kBAACV,GAAD;EACS,MAAA;EACM,WAAAU;EAAsC,GAC7CF;CAAK,CAAA,GACX,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAE,KAAA,IAAAN,EAAA,IAJFM;AAIE"}
|