@adgytec/adgytec-web-ui-components 2.3.0 → 2.3.1
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/dist/App.d.ts +2 -2
- package/dist/assets/CalendarCell.css +1 -1
- package/dist/assets/CalendarMenuItem.css +1 -1
- package/dist/assets/ListTrailingText.css +1 -0
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/core7.css +1 -1
- package/dist/chunks/ActionDialog.map +1 -1
- package/dist/chunks/AppBar +42 -42
- package/dist/chunks/AppBar.map +1 -1
- package/dist/chunks/AppBarAction.map +1 -1
- package/dist/chunks/AppBarAvatar.map +1 -1
- package/dist/chunks/AppBarHeadline.map +1 -1
- package/dist/chunks/BaseCalendar +69 -63
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/BottomSheet.map +1 -1
- package/dist/chunks/BottomSheetModal.map +1 -1
- package/dist/chunks/ButtonGroup.map +1 -1
- package/dist/chunks/CalendarCell +25 -39
- package/dist/chunks/CalendarCell.map +1 -1
- package/dist/chunks/CalendarGrid.map +1 -1
- package/dist/chunks/CalendarMenuItem +1 -1
- package/dist/chunks/CalendarMenuItem.map +1 -1
- package/dist/chunks/Card.map +1 -1
- package/dist/chunks/CardIcon.map +1 -1
- package/dist/chunks/CenteredSlider.map +1 -1
- package/dist/chunks/ComboBox.map +1 -1
- package/dist/chunks/ComboBoxPopover.map +1 -1
- package/dist/chunks/ComboBoxTrigger +592 -62
- package/dist/chunks/ComboBoxTrigger.map +1 -1
- package/dist/chunks/ConnectedButtonGroup +13 -10
- package/dist/chunks/ConnectedButtonGroup.map +1 -1
- package/dist/chunks/Dialog.map +1 -1
- package/dist/chunks/Disclosure.map +1 -1
- package/dist/chunks/DisclosureGroup.map +1 -1
- package/dist/chunks/DisclosureHeader.map +1 -1
- package/dist/chunks/DisclosurePanel.map +1 -1
- package/dist/chunks/Divider.map +1 -1
- package/dist/chunks/FieldError.map +1 -1
- package/dist/chunks/GridBackgroundDecorator.map +1 -1
- package/dist/chunks/Icon.map +1 -1
- package/dist/chunks/Input.map +1 -1
- package/dist/chunks/Input2 +2 -1
- package/dist/chunks/Input2.map +1 -1
- package/dist/chunks/ListAction +13 -0
- package/dist/chunks/ListAction.map +1 -0
- package/dist/chunks/ListAvatar.map +1 -1
- package/dist/chunks/ListBox.map +1 -1
- package/dist/chunks/ListIcon.map +1 -1
- package/dist/chunks/ListItem.map +1 -1
- package/dist/chunks/ListLabelText.map +1 -1
- package/dist/chunks/ListMedia.map +1 -1
- package/dist/chunks/ListOverlineText.map +1 -1
- package/dist/chunks/ListSupportingText.map +1 -1
- package/dist/chunks/ListTrailingText +21 -0
- package/dist/chunks/ListTrailingText.map +1 -0
- package/dist/chunks/Loader.map +1 -1
- package/dist/chunks/MenuPopover.map +1 -1
- package/dist/chunks/Modal.map +1 -1
- package/dist/chunks/ModalOverlay.map +1 -1
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +5 -2
- package/dist/chunks/NavigationScrollContainer.map +1 -1
- package/dist/chunks/NavigationSection.map +1 -1
- package/dist/chunks/NavigationSectionLabel.map +1 -1
- package/dist/chunks/Popover.map +1 -1
- package/dist/chunks/RadialGlowDecorator.map +1 -1
- package/dist/chunks/Radio.map +1 -1
- package/dist/chunks/RichTooltip.map +1 -1
- package/dist/chunks/RichTooltipActions.map +1 -1
- package/dist/chunks/RichTooltipInfo.map +1 -1
- package/dist/chunks/SearchField.map +1 -1
- package/dist/chunks/SelectPopover.map +1 -1
- package/dist/chunks/SelectTrigger.map +1 -1
- package/dist/chunks/SideSheet +7 -7
- package/dist/chunks/SideSheet.map +1 -1
- package/dist/chunks/SideSheetModal.map +1 -1
- package/dist/chunks/Slider.map +1 -1
- package/dist/chunks/SliderOutput.map +1 -1
- package/dist/chunks/SliderStops +3 -3
- package/dist/chunks/SliderStops.map +1 -1
- package/dist/chunks/SliderThumb.map +1 -1
- package/dist/chunks/Snackbar.map +1 -1
- package/dist/chunks/SplitButton +13 -10
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +8 -7
- package/dist/chunks/SplitButtonTrigger.map +1 -1
- package/dist/chunks/SubmenuPopover.map +1 -1
- package/dist/chunks/Switch.map +1 -1
- package/dist/chunks/Tab.map +1 -1
- package/dist/chunks/TabList.map +1 -1
- package/dist/chunks/TabPanel.map +1 -1
- package/dist/chunks/TabPanels.map +1 -1
- package/dist/chunks/Tabs.map +1 -1
- package/dist/chunks/Tag.map +1 -1
- package/dist/chunks/ThemeSelector +75 -71
- package/dist/chunks/ThemeSelector.map +1 -1
- package/dist/chunks/Toolbar.map +1 -1
- package/dist/chunks/Tooltip.map +1 -1
- package/dist/chunks/base.map +1 -1
- package/dist/chunks/compiler-runtime +2 -2
- package/dist/chunks/compiler-runtime.map +1 -1
- package/dist/chunks/context.map +1 -1
- package/dist/chunks/core +27 -25
- package/dist/chunks/core.map +1 -1
- package/dist/chunks/core2.map +1 -1
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/core4.map +1 -1
- package/dist/chunks/core5.map +1 -1
- package/dist/chunks/core6 +11 -11
- package/dist/chunks/core6.map +1 -1
- package/dist/chunks/core7.map +1 -1
- package/dist/chunks/core8.map +1 -1
- package/dist/chunks/core9.map +1 -1
- package/dist/chunks/navContext.map +1 -1
- package/dist/chunks/tapTarget.map +1 -1
- package/dist/chunks/types.map +1 -1
- package/dist/chunks/useHover +460 -153
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/useSplash +17 -19
- package/dist/chunks/useSplash.map +1 -1
- package/dist/components/AppBar/AppBar/AppBar.d.ts +29 -0
- package/dist/components/AppBar/AppBar/types.d.ts +29 -4
- package/dist/components/AppBar/AppBarAction/AppBarAction.d.ts +19 -1
- package/dist/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +20 -1
- package/dist/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +19 -1
- 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 -10
- 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.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.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/types.d.ts +24 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/context.d.ts +22 -0
- 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/types.d.ts +19 -1
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +18 -0
- 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.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.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.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/types.d.ts +23 -0
- package/dist/components/Button/SplitButton/SplitButtonContext/context.d.ts +11 -0
- 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 +2 -2
- 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/types.d.ts +5 -0
- 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.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.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/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/Calendar/Calendar.d.ts +39 -2
- package/dist/components/Calendar/Calendar/index.js +18 -12
- package/dist/components/Calendar/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/CalendarCell/CalendarCell.d.ts +14 -2
- package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts +12 -2
- package/dist/components/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +12 -1
- package/dist/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js +2 -2
- 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.map +1 -1
- package/dist/components/Calendar/RangeCalendar/RangeCalendar.d.ts +40 -2
- package/dist/components/Calendar/RangeCalendar/index.js +19 -15
- 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/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/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +46 -7
- package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +53 -6
- package/dist/components/Dialog/ActionDialog/ActionDialog.d.ts +33 -0
- package/dist/components/Dialog/ActionDialog/types.d.ts +28 -2
- package/dist/components/Dialog/Dialog/Dialog.d.ts +32 -1
- package/dist/components/Dialog/Modal/Modal.d.ts +24 -1
- package/dist/components/Dialog/ModalOverlay/ModalOverlay.d.ts +25 -1
- package/dist/components/Dialog/core/context.d.ts +8 -0
- 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/DisclosureGroup/DisclosureGroup.d.ts +50 -2
- package/dist/components/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +31 -2
- package/dist/components/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +31 -2
- package/dist/components/Disclosure/context/context.d.ts +11 -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/Icon/Icon.d.ts +29 -0
- 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.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +15 -0
- package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +17 -0
- package/dist/components/Input/Checkbox/context.d.ts +10 -2
- package/dist/components/Input/Checkbox/types.d.ts +42 -0
- package/dist/components/Input/DateField/DateField.d.ts +17 -1
- 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.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.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/Description/Description.d.ts +12 -1
- package/dist/components/Input/Description/index.js.map +1 -1
- package/dist/components/Input/FieldError/FieldError.d.ts +12 -1
- 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/types.d.ts +20 -0
- package/dist/components/Input/Label/Label.d.ts +12 -1
- package/dist/components/Input/Label/index.js.map +1 -1
- package/dist/components/Input/Radio/Radio.d.ts +16 -0
- package/dist/components/Input/Radio/RadioGroup.d.ts +17 -0
- package/dist/components/Input/Radio/context.d.ts +10 -2
- package/dist/components/Input/Radio/types.d.ts +40 -0
- package/dist/components/Input/SearchField/SearchField.d.ts +16 -0
- 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/types.d.ts +9 -0
- package/dist/components/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +10 -1
- package/dist/components/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +10 -2
- package/dist/components/Input/Select/Select/Select.d.ts +29 -1
- 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.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.map +1 -1
- package/dist/components/Input/Select/SelectListSection/SelectListSection.d.ts +4 -1
- 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.map +1 -1
- package/dist/components/Input/Select/SelectPopover/SelectPopover.d.ts +10 -1
- package/dist/components/Input/Select/SelectTrigger/SelectTrigger.d.ts +10 -1
- package/dist/components/Input/Slider/CenteredSlider/CenteredSlider.d.ts +23 -1
- 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.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/types.d.ts +13 -0
- package/dist/components/Input/Slider/SliderOutput/SliderOutput.d.ts +19 -1
- 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/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/core/color.d.ts +1 -0
- 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 +15 -0
- package/dist/components/Input/Switch/types.d.ts +33 -0
- package/dist/components/Input/TextArea/TextArea.d.ts +19 -0
- 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.map +1 -1
- package/dist/components/Input/TimeField/types.d.ts +4 -0
- 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.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 +2 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -1
- package/dist/components/List/ListBox/ListBox.d.ts +28 -1
- package/dist/components/List/ListBox/types.d.ts +15 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +19 -1
- package/dist/components/List/ListItem/ListItem.d.ts +34 -0
- package/dist/components/List/ListItem/types.d.ts +21 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +16 -1
- package/dist/components/List/ListMedia/ListMedia.d.ts +20 -0
- package/dist/components/List/ListMedia/types.d.ts +32 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +16 -1
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +16 -1
- 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 +2 -0
- package/dist/components/List/index.js +11 -9
- package/dist/components/Loader/Loader.d.ts +26 -1
- package/dist/components/Menu/Menu/Menu.d.ts +31 -1
- 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.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/MenuSection/MenuSection.d.ts +23 -1
- 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.map +1 -1
- package/dist/components/Menu/MenuShortcut/MenuShortcut.d.ts +16 -1
- 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.map +1 -1
- package/dist/components/Menu/MenuTrigger/MenuTrigger.d.ts +43 -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/context/context.d.ts +13 -0
- 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/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.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.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +15 -0
- 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/navigationItem.d.ts +22 -0
- package/dist/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +22 -1
- package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +24 -1
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +16 -1
- 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.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.map +1 -1
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +40 -2
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
- 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/Sheets/BottomSheet/BottomSheet.d.ts +40 -2
- package/dist/components/Sheets/BottomSheet/index.d.ts +1 -0
- package/dist/components/Sheets/BottomSheet/types.d.ts +37 -0
- package/dist/components/Sheets/BottomSheetModal/BottomSheetModal.d.ts +34 -0
- package/dist/components/Sheets/BottomSheetModal/context.d.ts +10 -0
- package/dist/components/Sheets/BottomSheetModal/types.d.ts +38 -0
- package/dist/components/Sheets/SideSheet/SideSheet.d.ts +46 -0
- package/dist/components/Sheets/SideSheet/SideSheetDialog.d.ts +43 -0
- package/dist/components/Sheets/SideSheet/types.d.ts +96 -2
- package/dist/components/Sheets/SideSheetModal/SideSheetModal.d.ts +34 -0
- package/dist/components/Sheets/SideSheetModal/context.d.ts +13 -0
- package/dist/components/Sheets/SideSheetModal/types.d.ts +49 -0
- package/dist/components/Sheets/core/layout.d.ts +11 -0
- package/dist/components/Snackbar/SnackbarRegion.d.ts +50 -0
- package/dist/components/Snackbar/context.d.ts +38 -0
- package/dist/components/Snackbar/types.d.ts +69 -0
- package/dist/components/Splash/Splash.d.ts +6 -0
- 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/TabList/TabList.d.ts +42 -1
- package/dist/components/Tabs/TabPanel/TabPanel.d.ts +28 -1
- package/dist/components/Tabs/TabPanels/TabPanels.d.ts +28 -1
- package/dist/components/Tabs/Tabs/Tabs.d.ts +43 -1
- package/dist/components/Tag/Tag.d.ts +37 -0
- package/dist/components/Tag/core.d.ts +6 -0
- package/dist/components/Tag/types.d.ts +48 -2
- package/dist/components/ThemeSelector/ThemeItem.d.ts +46 -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 +58 -0
- package/dist/components/ThemeSelector/index.d.ts +2 -0
- package/dist/components/ThemeSelector/index.js +2 -2
- package/dist/components/ThemeSelector/types.d.ts +69 -2
- package/dist/components/Toolbar/Toolbar.d.ts +47 -0
- package/dist/components/Toolbar/ToolbarToggleButtonGroup.d.ts +35 -1
- 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/RichTooltipActions/RichTooltipActions.d.ts +27 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +31 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +22 -1
- 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.map +1 -1
- package/dist/components/Tooltip/Tooltip/Tooltip.d.ts +35 -1
- package/dist/components/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +29 -1
- package/dist/components/Tooltip/TooltipTrigger/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +129 -137
- package/dist/index.js.map +1 -1
- 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 +23 -25
- 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/utils/form/form.d.ts +0 -13
- package/dist/utils/form/index.d.ts +0 -1
|
@@ -1,9 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fundamental Material 3 button color styles shared across all button variants:
|
|
3
|
+
* - `"filled"`: High-emphasis solid surface with inverted text.
|
|
4
|
+
* - `"tonal"`: Medium-high emphasis filled container with primary-tonal background.
|
|
5
|
+
* - `"outlined"`: Medium-emphasis button with container outline and transparent background.
|
|
6
|
+
*/
|
|
1
7
|
export type CoreButtonColor = "filled" | "tonal" | "outlined";
|
|
8
|
+
/**
|
|
9
|
+
* Color variants supported by standard buttons (`Button`, `LinkButton`):
|
|
10
|
+
* - Includes {@link CoreButtonColor} (`"filled"`, `"tonal"`, `"outlined"`).
|
|
11
|
+
* - `"elevated"`: Low-emphasis surface container with shadow elevation.
|
|
12
|
+
* - `"text"`: Lowest-emphasis flat text button with transparent background.
|
|
13
|
+
*/
|
|
2
14
|
export type ButtonColor = CoreButtonColor | "elevated" | "text";
|
|
15
|
+
/**
|
|
16
|
+
* Color variants supported by toggle buttons (`ToggleButton`):
|
|
17
|
+
* - Includes {@link CoreButtonColor} plus `"elevated"`.
|
|
18
|
+
*/
|
|
3
19
|
export type ToggleButtonColor = CoreButtonColor | "elevated";
|
|
20
|
+
/**
|
|
21
|
+
* Color variants supported by icon buttons (`IconButton`, `LinkIconButton`):
|
|
22
|
+
* - Includes {@link CoreButtonColor} plus `"standard"` (unfilled, frameless icon).
|
|
23
|
+
*/
|
|
4
24
|
export type IconButtonColor = CoreButtonColor | "standard";
|
|
25
|
+
/**
|
|
26
|
+
* Color variants supported by split buttons (`SplitButton`):
|
|
27
|
+
* - Includes {@link CoreButtonColor} plus `"elevated"`.
|
|
28
|
+
*/
|
|
5
29
|
export type SplitButtonColor = CoreButtonColor | "elevated";
|
|
30
|
+
/**
|
|
31
|
+
* Color variants supported by connected button groups (`ConnectedButtonGroup`):
|
|
32
|
+
* - Includes {@link CoreButtonColor} plus `"elevated"`.
|
|
33
|
+
*/
|
|
6
34
|
export type ConnectedButtonGroupColor = CoreButtonColor | "elevated";
|
|
35
|
+
/**
|
|
36
|
+
* Union of all valid button color style names across all button components.
|
|
37
|
+
*/
|
|
7
38
|
export type AllButtonColor = ButtonColor | IconButtonColor | SplitButtonColor | ConnectedButtonGroupColor;
|
|
39
|
+
/**
|
|
40
|
+
* Resolves a button color style name to its CSS module class name.
|
|
41
|
+
*
|
|
42
|
+
* @param color - The button color identifier.
|
|
43
|
+
* @returns CSS class name applying the color styling rules.
|
|
44
|
+
*/
|
|
8
45
|
export declare const buttonColorConfig: (color: AllButtonColor) => string;
|
|
46
|
+
/** CSS class providing base color custom properties and transition states. */
|
|
9
47
|
export declare const buttonColorBase: string;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported corner rounding styles for button components.
|
|
3
|
+
*
|
|
4
|
+
* - `"round"`: Full border-radius (pill shape for labeled buttons, circular for icon buttons).
|
|
5
|
+
* - `"square"`: Slightly rounded rectangular corners.
|
|
6
|
+
*/
|
|
1
7
|
export type ButtonShape = "round" | "square";
|
|
@@ -1,6 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported size presets for button and button group components.
|
|
3
|
+
* Controls dimensions, typography, icon scale, and internal padding.
|
|
4
|
+
*/
|
|
1
5
|
export type ButtonSize = "extra-small" | "small" | "medium" | "large" | "extra-large";
|
|
6
|
+
/**
|
|
7
|
+
* Maps each {@link ButtonSize} preset to its recommended icon size in pixels
|
|
8
|
+
* for standard labeled buttons (with leading or trailing icons).
|
|
9
|
+
*/
|
|
2
10
|
export declare const ButtonIconSizeMapping: Record<ButtonSize, number>;
|
|
11
|
+
/**
|
|
12
|
+
* Maps each {@link ButtonSize} preset to its recommended icon size in pixels
|
|
13
|
+
* for icon-only buttons (e.g. `IconButton`, `ToggleIconButton`, `LinkIconButton`).
|
|
14
|
+
* Note that the `"small"` preset uses 24px for icon buttons compared to 20px in labeled buttons.
|
|
15
|
+
*/
|
|
3
16
|
export declare const IconButtonIconSizeMapping: Record<ButtonSize, number>;
|
|
17
|
+
/**
|
|
18
|
+
* Maps each {@link ButtonSize} preset to its typography token class name
|
|
19
|
+
* for button label text.
|
|
20
|
+
*/
|
|
4
21
|
export declare const ButtonLabelTextMapping: Record<ButtonSize, string>;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves the CSS module class name for a given button size preset.
|
|
24
|
+
*
|
|
25
|
+
* @param size - The button size preset to retrieve styling for.
|
|
26
|
+
* @returns The CSS module class name corresponding to the specified size.
|
|
27
|
+
*/
|
|
5
28
|
export declare const buttonSizeConfig: (size: ButtonSize) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Base CSS module class name applying common layout and sizing structure across buttons.
|
|
31
|
+
*/
|
|
6
32
|
export declare const ButtonSizeBase: string;
|
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
import { ButtonIconPlacement } from './button';
|
|
2
2
|
import { ButtonShape } from './shape';
|
|
3
3
|
import { ButtonSize } from './sizes';
|
|
4
|
+
/**
|
|
5
|
+
* Configuration options passed to {@link useButtonConfig} to resolve button styles.
|
|
6
|
+
*/
|
|
4
7
|
type ButtonConfigOptions<C extends string> = {
|
|
8
|
+
/** Explicit button size preset override. */
|
|
5
9
|
size?: ButtonSize;
|
|
10
|
+
/** Explicit button corner shape override. */
|
|
6
11
|
shape?: ButtonShape;
|
|
12
|
+
/** Explicit button color style override. */
|
|
7
13
|
color?: C;
|
|
14
|
+
/** Explicit icon placement override relative to label. */
|
|
8
15
|
iconPlacement?: ButtonIconPlacement;
|
|
9
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Resolves button configuration by prioritizing component-level props and falling back
|
|
19
|
+
* to contextual values from an ancestor `ButtonGroupContext` (or system defaults).
|
|
20
|
+
*
|
|
21
|
+
* @template C - String union of allowed color variant values for the button type.
|
|
22
|
+
* @param options - Component-level prop overrides.
|
|
23
|
+
* @returns Resolved visual configuration: `buttonSize`, `buttonShape`, `buttonColor`, and `buttonIconPlacement`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* const { buttonSize, buttonShape, buttonColor, buttonIconPlacement } = useButtonConfig({
|
|
28
|
+
* size,
|
|
29
|
+
* shape,
|
|
30
|
+
* color,
|
|
31
|
+
* iconPlacement,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
10
35
|
export declare function useButtonConfig<C extends string>({ size, shape, color, iconPlacement, }: ButtonConfigOptions<C>): {
|
|
11
36
|
buttonSize: ButtonSize;
|
|
12
37
|
buttonShape: ButtonShape;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base button style variant distinguishing standard push buttons from toggle state buttons.
|
|
3
|
+
*
|
|
4
|
+
* - `"default"`: Standard interactive push button styling.
|
|
5
|
+
* - `"toggle"`: Stateful button styling supporting active/pressed selection states.
|
|
6
|
+
*/
|
|
1
7
|
export type ButtonVariant = "default" | "toggle";
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Width sizing options for icon buttons.
|
|
3
|
+
*
|
|
4
|
+
* - `"narrow"`: Compact width variant for tighter layouts.
|
|
5
|
+
* - `"default"`: Standard square/circular aspect ratio matching button height.
|
|
6
|
+
* - `"wide"`: Expanded horizontal padding for larger tap targets or elongated pill buttons.
|
|
7
|
+
*/
|
|
1
8
|
export type IconButtonWidth = "narrow" | "default" | "wide";
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Conditionally wraps a React node in a tooltip trigger when tooltip text is provided.
|
|
4
|
+
*
|
|
5
|
+
* @param node - The React element to display (e.g. button or icon button).
|
|
6
|
+
* @param tooltip - The optional tooltip text to show on hover/focus. If omitted or empty, `node` is returned unwrapped.
|
|
7
|
+
* @returns The wrapped element with tooltip, or the original node if no tooltip was supplied.
|
|
8
|
+
*/
|
|
9
|
+
export declare const withTooltip: (node: ReactNode, tooltip?: string) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { WeekdayStyle } from '../core';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link BaseCalendar} component.
|
|
4
|
+
*/
|
|
5
|
+
export interface BaseCalendarProps {
|
|
6
|
+
/** Whether the calendar is operating in range selection mode. */
|
|
3
7
|
isRangeCalendar?: boolean;
|
|
8
|
+
/** Formatting style for weekday column headers. */
|
|
4
9
|
weekdayStyle?: WeekdayStyle;
|
|
5
|
-
|
|
10
|
+
/** Accessible label for the previous month button. */
|
|
11
|
+
previousMonthAriaLabel?: string;
|
|
12
|
+
/** Accessible label for the next month button. */
|
|
13
|
+
nextMonthAriaLabel?: string;
|
|
14
|
+
/** Accessible label for the previous year button. */
|
|
15
|
+
previousYearAriaLabel?: string;
|
|
16
|
+
/** Accessible label for the next year button. */
|
|
17
|
+
nextYearAriaLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Core calendar layout and view orchestrator.
|
|
21
|
+
*
|
|
22
|
+
* Manages the calendar header with navigation controls (prev/next month, prev/next year,
|
|
23
|
+
* month/year dropdown buttons), animated transitions between grid, month, and year views,
|
|
24
|
+
* and maintains anchor date state during view changes in range selection mode.
|
|
25
|
+
*/
|
|
26
|
+
export declare const BaseCalendar: React.FC<BaseCalendarProps>;
|
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
import { Calendar as AriaCalendar } from 'react-aria-components';
|
|
2
2
|
import { WeekdayStyle } from '../core';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Calendar} component.
|
|
5
|
+
* Extends React Aria's `Calendar` props (excluding `children`, `visibleDuration`, and `pageBehavior`).
|
|
6
|
+
*/
|
|
7
|
+
export interface CalendarProps extends Omit<React.ComponentPropsWithRef<typeof AriaCalendar>, "children" | "visibleDuration" | "pageBehavior"> {
|
|
8
|
+
/**
|
|
9
|
+
* Formatting style for weekday column headers in the calendar grid.
|
|
10
|
+
*
|
|
11
|
+
* - `"narrow"`: Typically a single character (e.g. "S", "M", "T").
|
|
12
|
+
* - `"short"`: Abbreviated weekday name (e.g. "Sun", "Mon", "Tue").
|
|
13
|
+
*/
|
|
4
14
|
weekdayStyle?: WeekdayStyle;
|
|
5
|
-
|
|
15
|
+
/** Accessible label for the previous month button. */
|
|
16
|
+
previousMonthAriaLabel?: string;
|
|
17
|
+
/** Accessible label for the next month button. */
|
|
18
|
+
nextMonthAriaLabel?: string;
|
|
19
|
+
/** Accessible label for the previous year button. */
|
|
20
|
+
previousYearAriaLabel?: string;
|
|
21
|
+
/** Accessible label for the next year button. */
|
|
22
|
+
nextYearAriaLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A single date selection calendar component implementing Material Design 3 Date Picker guidelines.
|
|
26
|
+
*
|
|
27
|
+
* Features an interactive date grid, fast month and year selector menus, localized date formatting,
|
|
28
|
+
* keyboard accessibility, and touch-responsive ripple effects. Built on top of React Aria's `Calendar`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* import { Calendar } from '@adgytec/web-ui-components';
|
|
33
|
+
* import { today, getLocalTimeZone } from '@internationalized/date';
|
|
34
|
+
*
|
|
35
|
+
* <Calendar
|
|
36
|
+
* aria-label="Appointment date"
|
|
37
|
+
* minValue={today(getLocalTimeZone())}
|
|
38
|
+
* onChange={(date) => console.log('Selected date:', date)}
|
|
39
|
+
* />
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare const Calendar: React.FC<CalendarProps>;
|
|
@@ -6,19 +6,25 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
6
6
|
import { Calendar as a } from "react-aria-components";
|
|
7
7
|
//#region src/components/Calendar/Calendar/Calendar.tsx
|
|
8
8
|
var o = e(), s = (e) => {
|
|
9
|
-
let s = (0, o.c)(
|
|
10
|
-
s[0] === e ? (c = s[1], l = s[2], u = s[3]) : ({weekdayStyle:
|
|
11
|
-
let
|
|
12
|
-
s[
|
|
13
|
-
let
|
|
14
|
-
s[
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
let s = (0, o.c)(20), c, l, u, d, f, p, m;
|
|
10
|
+
s[0] === e ? (c = s[1], l = s[2], u = s[3], d = s[4], f = s[5], p = s[6], m = s[7]) : ({weekdayStyle: m, className: c, previousMonthAriaLabel: d, nextMonthAriaLabel: l, previousYearAriaLabel: f, nextYearAriaLabel: u, ...p} = e, s[0] = e, s[1] = c, s[2] = l, s[3] = u, s[4] = d, s[5] = f, s[6] = p, s[7] = m);
|
|
11
|
+
let h;
|
|
12
|
+
s[8] === c ? h = s[9] : (h = (e) => r(t, typeof c == "function" ? c(e) : c), s[8] = c, s[9] = h);
|
|
13
|
+
let g;
|
|
14
|
+
s[10] !== l || s[11] !== u || s[12] !== d || s[13] !== f || s[14] !== m ? (g = /* @__PURE__ */ i(n, {
|
|
15
|
+
weekdayStyle: m,
|
|
16
|
+
previousMonthAriaLabel: d,
|
|
17
|
+
nextMonthAriaLabel: l,
|
|
18
|
+
previousYearAriaLabel: f,
|
|
19
|
+
nextYearAriaLabel: u
|
|
20
|
+
}), s[10] = l, s[11] = u, s[12] = d, s[13] = f, s[14] = m, s[15] = g) : g = s[15];
|
|
21
|
+
let _;
|
|
22
|
+
return s[16] !== p || s[17] !== h || s[18] !== g ? (_ = /* @__PURE__ */ i(a, {
|
|
23
|
+
className: h,
|
|
24
|
+
...p,
|
|
19
25
|
"data-calendar": !0,
|
|
20
|
-
children:
|
|
21
|
-
}), s[
|
|
26
|
+
children: g
|
|
27
|
+
}), s[16] = p, s[17] = h, s[18] = g, s[19] = _) : _ = s[19], _;
|
|
22
28
|
};
|
|
23
29
|
//#endregion
|
|
24
30
|
export { s as Calendar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["weekdayStyle"],"sources":["../../../../src/components/Calendar/Calendar/Calendar.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Calendar as AriaCalendar } from \"react-aria-components\";\nimport { BaseCalendar } from \"../BaseCalendar\";\nimport { CalendarBaseStyles, type WeekdayStyle } from \"../core\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["weekdayStyle","previousMonthAriaLabel","nextMonthAriaLabel","previousYearAriaLabel","nextYearAriaLabel","_c","clsx","AriaCalendar","require_compiler_runtime","CalendarBaseStyles","BaseCalendar","clsx$1","Calendar$1","import_compiler_runtime","Calendar","$","className","nextMonthAriaLabel","nextYearAriaLabel","previousMonthAriaLabel","previousYearAriaLabel","props","weekdayStyle","t0","t1","renderProps","t2","t3"],"sources":["../../../../src/components/Calendar/Calendar/Calendar.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Calendar as AriaCalendar } from \"react-aria-components\";\nimport { BaseCalendar } from \"../BaseCalendar\";\nimport { CalendarBaseStyles, type WeekdayStyle } from \"../core\";\n\n/**\n * Props for the {@link Calendar} component.\n * Extends React Aria's `Calendar` props (excluding `children`, `visibleDuration`, and `pageBehavior`).\n */\nexport interface CalendarProps\n extends Omit<\n React.ComponentPropsWithRef<typeof AriaCalendar>,\n \"children\" | \"visibleDuration\" | \"pageBehavior\"\n > {\n /**\n * Formatting style for weekday column headers in the calendar grid.\n *\n * - `\"narrow\"`: Typically a single character (e.g. \"S\", \"M\", \"T\").\n * - `\"short\"`: Abbreviated weekday name (e.g. \"Sun\", \"Mon\", \"Tue\").\n */\n weekdayStyle?: WeekdayStyle;\n\n /** Accessible label for the previous month button. */\n previousMonthAriaLabel?: string;\n\n /** Accessible label for the next month button. */\n nextMonthAriaLabel?: string;\n\n /** Accessible label for the previous year button. */\n previousYearAriaLabel?: string;\n\n /** Accessible label for the next year button. */\n nextYearAriaLabel?: string;\n}\n\n/**\n * A single date selection calendar component implementing Material Design 3 Date Picker guidelines.\n *\n * Features an interactive date grid, fast month and year selector menus, localized date formatting,\n * keyboard accessibility, and touch-responsive ripple effects. Built on top of React Aria's `Calendar`.\n *\n * @example\n * ```tsx\n * import { Calendar } from '@adgytec/web-ui-components';\n * import { today, getLocalTimeZone } from '@internationalized/date';\n *\n * <Calendar\n * aria-label=\"Appointment date\"\n * minValue={today(getLocalTimeZone())}\n * onChange={(date) => console.log('Selected date:', date)}\n * />\n * ```\n */\nexport const Calendar: React.FC<CalendarProps> = ({\n weekdayStyle,\n className,\n previousMonthAriaLabel,\n nextMonthAriaLabel,\n previousYearAriaLabel,\n nextYearAriaLabel,\n ...props\n}) => {\n return (\n <AriaCalendar\n className={(renderProps) =>\n clsx(\n CalendarBaseStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n data-calendar\n >\n <BaseCalendar\n weekdayStyle={weekdayStyle}\n previousMonthAriaLabel={previousMonthAriaLabel}\n nextMonthAriaLabel={nextMonthAriaLabel}\n previousYearAriaLabel={previousYearAriaLabel}\n nextYearAriaLabel={nextYearAriaLabel}\n />\n </AriaCalendar>\n );\n};\n"],"mappings":";;;;;;;aAqDac,KAAoC,MAAA;CAAA,IAAAC,KAAA,GAAAV,EAAAA,EAAAA,CAAA,EAAA,GAAAW,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;CAAA,AAAAP,EAAA,OAAAQ,KAQhD,IAAAR,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OARiD,kIAAA,GAAAM,KAAAE,GAQjD,EAAA,KAAAA,GAAA,EAAA,KAAAP,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAT,EAAA,OAAAC,IASgB,IAAAD,EAAA,MANM,KAAA,MACPT,EACIG,GACA,OAAOO,KAAc,aACfA,EAAUS,CACF,IAFdT,CAGJ,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAQ;CAAA,IAAAE;CAAA,AAAAX,EAAA,QAAAE,KAAAF,EAAA,QAAAG,KAAAH,EAAA,QAAAI,KAAAJ,EAAA,QAAAK,KAAAL,EAAA,QAAAO,KAKL,IAAA,kBAACZ,GAAD;EACkB;EACU;EACJ;EACG;EACJ;CAAiB,CAAA,GACtC,EAAA,MAAAO,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAE,GAAA,EAAA,MAAAI,KAAA,IAAAX,EAAA;CAAA,IAAAY;CACS,OADTZ,EAAA,QAAAM,KAAAN,EAAA,QAAAS,KAAAT,EAAA,QAAAW,KAlBN,IAAA,kBAACnB,GAAD;EACe,WAAAiB;EAMN,GAEDH;EACJ,iBAAA;EAEA,UAAAK;CAZS,CAAA,GAmBE,EAAA,MAAAL,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAE,GAAA,EAAA,MAAAC,KAAA,IAAAZ,EAAA,KAnBfY;AAmBe"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { CalendarCell as AriaCalendarCell } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link CalendarCell} component.
|
|
4
|
+
* Extends React Aria's `CalendarCell` props (excluding `children`).
|
|
5
|
+
*/
|
|
6
|
+
export interface CalendarCellProps extends Omit<React.ComponentPropsWithRef<typeof AriaCalendarCell>, "children"> {
|
|
7
|
+
/** Whether the cell is being rendered within a range calendar. */
|
|
3
8
|
isRangeCalendar?: boolean;
|
|
4
|
-
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* An individual date cell within the calendar grid.
|
|
12
|
+
*
|
|
13
|
+
* Handles day number rendering, selection indicators, range highlight backgrounds
|
|
14
|
+
* (selection start, in-between range, selection end), and disabled and outside-month styling.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CalendarCell: React.FC<CalendarCellProps>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { CalendarGrid as AriaCalendarGrid } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link CalendarGrid} component.
|
|
4
|
+
* Extends React Aria's `CalendarGrid` props (excluding `children` and `className`).
|
|
5
|
+
*/
|
|
6
|
+
export interface CalendarGridProps extends Omit<React.ComponentPropsWithRef<typeof AriaCalendarGrid>, "children" | "className"> {
|
|
7
|
+
/** Whether the calendar is operating in range selection mode. */
|
|
3
8
|
isRangeCalendar?: boolean;
|
|
4
|
-
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Renders the 7-column calendar date grid, including weekday column headers
|
|
12
|
+
* and day date cells.
|
|
13
|
+
*/
|
|
14
|
+
export declare const CalendarGrid: React.FC<CalendarGridProps>;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { ListBoxItem } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link CalendarMenuItem} component.
|
|
4
|
+
* Extends React Aria's {@link ListBoxItem} props.
|
|
5
|
+
*/
|
|
6
|
+
export interface CalendarMenuItemProps extends React.ComponentPropsWithRef<typeof ListBoxItem> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* An individual selectable item within the calendar month and year picker menus.
|
|
10
|
+
*
|
|
11
|
+
* Implements Material Design 3 selection styles, focus outlines, and typography.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CalendarMenuItem: React.FC<CalendarMenuItemProps>;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { MonthItem } from '../core';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link CalendarMonthMenu} component.
|
|
4
|
+
*/
|
|
5
|
+
export interface CalendarMonthMenuProps {
|
|
6
|
+
/** Callback invoked after a month item is selected to return to the calendar view. */
|
|
3
7
|
onSelection: () => void;
|
|
8
|
+
/** Array of selectable month objects to render in the virtualized list. */
|
|
4
9
|
months: MonthItem[];
|
|
5
|
-
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A virtualized list menu allowing users to quickly pick a month in the calendar.
|
|
13
|
+
*
|
|
14
|
+
* Automatically highlights the currently focused month with a checkmark, disables months
|
|
15
|
+
* that fall outside the allowable `minValue` / `maxValue` range, and shifts focused date on click.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CalendarMonthMenu: React.FC<CalendarMonthMenuProps>;
|
|
@@ -14,12 +14,12 @@ var d = e(), f = (e) => {
|
|
|
14
14
|
let r = h.focusedDate.set({
|
|
15
15
|
month: e.id,
|
|
16
16
|
day: 1
|
|
17
|
-
}), o = r.set({ day: r.calendar.getDaysInMonth(r) });
|
|
17
|
+
}), o = r.set({ day: r.calendar.getDaysInMonth(r) }), s = h.maxValue && r.compare(h.maxValue) > 0 || h.minValue && o.compare(h.minValue) < 0;
|
|
18
18
|
return /* @__PURE__ */ a(n, {
|
|
19
19
|
onPress: () => {
|
|
20
20
|
h.setFocusedDate(h.focusedDate.set({ month: e.id })), p();
|
|
21
21
|
},
|
|
22
|
-
isDisabled:
|
|
22
|
+
isDisabled: s ?? void 0,
|
|
23
23
|
textValue: e.formatted,
|
|
24
24
|
children: [/* @__PURE__ */ i(c, { children: /* @__PURE__ */ i(t, {
|
|
25
25
|
icon: u,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Check","ListLayout","months"],"sources":["../../../../src/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.tsx"],"sourcesContent":["import { Check } from \"lucide-react\";\nimport {\n ListBox,\n ListLayout,\n SelectionIndicator,\n Virtualizer,\n} from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { CalendarMenuItem } from \"../CalendarMenuItem\";\nimport { type MonthItem, useCalendarState } from \"../core\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["Check","ListLayout","months","_c","require_compiler_runtime","CalendarMenuItem","useCalendarState","import_compiler_runtime","CalendarMonthMenu","$","t0","state","t1","t2","onSelection","nextDate","item","endOfMonth","monthCompletelyInvalid","SelectionIndicator","Icon","Check","t3","months","Virtualizer","ListLayout","ListBox"],"sources":["../../../../src/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.tsx"],"sourcesContent":["import { Check } from \"lucide-react\";\nimport {\n ListBox,\n ListLayout,\n SelectionIndicator,\n Virtualizer,\n} from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { CalendarMenuItem } from \"../CalendarMenuItem\";\nimport { type MonthItem, useCalendarState } from \"../core\";\n\n/**\n * Props for the {@link CalendarMonthMenu} component.\n */\nexport interface CalendarMonthMenuProps {\n /** Callback invoked after a month item is selected to return to the calendar view. */\n onSelection: () => void;\n /** Array of selectable month objects to render in the virtualized list. */\n months: MonthItem[];\n}\n\n/**\n * A virtualized list menu allowing users to quickly pick a month in the calendar.\n *\n * Automatically highlights the currently focused month with a checkmark, disables months\n * that fall outside the allowable `minValue` / `maxValue` range, and shifts focused date on click.\n */\nexport const CalendarMonthMenu: React.FC<CalendarMonthMenuProps> = ({\n onSelection,\n months,\n}) => {\n const state = useCalendarState();\n\n return (\n <Virtualizer layout={ListLayout}>\n <ListBox\n aria-label=\"month selection\"\n autoFocus\n data-menu\n items={months}\n selectionMode=\"single\"\n selectedKeys={[state.focusedDate.month]}\n >\n {(item) => {\n const nextDate = state.focusedDate.set({\n month: item.id,\n day: 1,\n });\n\n const endOfMonth = nextDate.set({\n day: nextDate.calendar.getDaysInMonth(nextDate),\n });\n\n const monthCompletelyInvalid =\n (state.maxValue &&\n nextDate.compare(state.maxValue) > 0) ||\n (state.minValue &&\n endOfMonth.compare(state.minValue) < 0);\n\n return (\n <CalendarMenuItem\n onPress={() => {\n state.setFocusedDate(\n state.focusedDate.set({ month: item.id })\n );\n onSelection();\n }}\n isDisabled={monthCompletelyInvalid ?? undefined}\n textValue={item.formatted}\n >\n <SelectionIndicator>\n <Icon\n icon={Check}\n size={24}\n data-selected-icon\n />\n </SelectionIndicator>\n {item.formatted}\n </CalendarMenuItem>\n );\n }}\n </ListBox>\n </Virtualizer>\n );\n};\n"],"mappings":";;;;;;;;aA2BaQ,KAAsD,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAC,EAAA,gBAAA,cAAAO,GAIhEC,IAAcL,EAAiB,GAAEM;CAAA,AAAAH,EAAA,OAAAE,EAAA,YAAA,QAUkB,IAAAF,EAAA,MAAzB,IAAA,CAACE,EAAK,YAAY,KAAM,GAAC,EAAA,KAAAA,EAAA,YAAA,OAAA,EAAA,KAAAC;CAAA,IAAAC;CAAA,AAAAJ,EAAA,OAAAK,KAAAL,EAAA,OAAAE,KAEtC,KAAA,MAAA;EACG,IAAAI,IAAiBJ,EAAK,YAAY,IAAK;GAAA,OAC5BK,EAAI;GAAG,KACT;EACT,CAAC,GAEDC,IAAmBF,EAAQ,IAAK,EAAA,KACvBA,EAAQ,SAAS,eAAgBA,CAAQ,EAClD,CAAC,GAEDG,IACKP,EAAK,YACFI,EAAQ,QAASJ,EAAK,QAAS,IAAI,KACtCA,EAAK,YACFM,EAAU,QAASN,EAAK,QAAS,IAAI;EAAG,OAG5C,kBAACN,GAAD;GACa,eAAA;IAIL,AAHAM,EAAK,eACDA,EAAK,YAAY,IAAK,EAAA,OAASK,EAAI,GAAI,CAAC,CAC5C,GACAF,EAAY;GAAC;GAEL,YAAAI,KAAA,KAAA;GACD,WAAAF,EAAI;GARnB,UAAA,CAUI,kBAACG,GAAD,EAAA,UACI,kBAACC,GAAD;IACUpB,MAAAqB;IACA,MAAA;IACN,sBAAA;GAAkB,CAAA,EAJP,CAAA,GAOlBL,EAAI,SAjBQ;;CAkBE,GAE1B,EAAA,KAAAF,GAAA,EAAA,KAAAH,GAAA,EAAA,KAAAE,KAAA,IAAAJ,EAAA;CAAA,IAAAa;CAEK,OAFLb,EAAA,OAAAc,KAAAd,EAAA,OAAAG,KAAAH,EAAA,OAAAI,KA9CT,IAAA,kBAACW,GAAD;EAAqBvB,QAAAwB;EACjB,UAAA,kBAACC,GAAD;GACe,cAAA;GACX,WAAA;GACA,aAAA;GACOxB,OAAAqB;GACO,eAAA;GACA,cAAAX;GAEb,UAAAC;EARG,CAAA;CADA,CAAA,GAgDE,EAAA,KAAAU,GAAA,EAAA,KAAAX,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAS,KAAA,IAAAb,EAAA,IAhDda;AAgDc"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { YearItem } from '../core';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link CalendarYearMenu} component.
|
|
4
|
+
*/
|
|
5
|
+
export interface CalendarYearMenuProps {
|
|
6
|
+
/** Callback invoked after a year item is selected to return to the calendar view. */
|
|
3
7
|
onSelection: () => void;
|
|
8
|
+
/** Array of selectable year objects to render in the virtualized list. */
|
|
4
9
|
years: YearItem[];
|
|
5
|
-
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A virtualized list menu allowing users to quickly pick a year in the calendar.
|
|
13
|
+
*
|
|
14
|
+
* Automatically highlights the currently focused year with a checkmark and shifts the focused date
|
|
15
|
+
* on selection.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CalendarYearMenu: React.FC<CalendarYearMenuProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Check","ListLayout","years"],"sources":["../../../../src/components/Calendar/CalendarYearMenu/CalendarYearMenu.tsx"],"sourcesContent":["import { Check } from \"lucide-react\";\nimport {\n ListBox,\n ListLayout,\n SelectionIndicator,\n Virtualizer,\n} from \"react-aria-components\";\n\nimport { Icon } from \"@/components/Icon\";\nimport { CalendarMenuItem } from \"../CalendarMenuItem\";\nimport { useCalendarState, type YearItem } from \"../core\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["Check","ListLayout","years","_c","require_compiler_runtime","CalendarMenuItem","useCalendarState","import_compiler_runtime","CalendarYearMenu","$","t0","state","t1","t2","onSelection","item","SelectionIndicator","Icon","Check","t3","years","Virtualizer","ListLayout","ListBox"],"sources":["../../../../src/components/Calendar/CalendarYearMenu/CalendarYearMenu.tsx"],"sourcesContent":["import { Check } from \"lucide-react\";\nimport {\n ListBox,\n ListLayout,\n SelectionIndicator,\n Virtualizer,\n} from \"react-aria-components\";\n\nimport { Icon } from \"@/components/Icon\";\nimport { CalendarMenuItem } from \"../CalendarMenuItem\";\nimport { useCalendarState, type YearItem } from \"../core\";\n\n/**\n * Props for the {@link CalendarYearMenu} component.\n */\nexport interface CalendarYearMenuProps {\n /** Callback invoked after a year item is selected to return to the calendar view. */\n onSelection: () => void;\n /** Array of selectable year objects to render in the virtualized list. */\n years: YearItem[];\n}\n\n/**\n * A virtualized list menu allowing users to quickly pick a year in the calendar.\n *\n * Automatically highlights the currently focused year with a checkmark and shifts the focused date\n * on selection.\n */\nexport const CalendarYearMenu: React.FC<CalendarYearMenuProps> = ({\n onSelection,\n years,\n}) => {\n const state = useCalendarState();\n\n return (\n <Virtualizer layout={ListLayout}>\n <ListBox\n aria-label=\"year selection\"\n autoFocus\n data-menu\n items={years}\n selectionMode=\"single\"\n selectedKeys={[state.focusedDate.year]}\n >\n {(item) => (\n <CalendarMenuItem\n onPress={() => {\n state.setFocusedDate(\n state.focusedDate.set({ year: item.id })\n );\n onSelection();\n }}\n textValue={item.formatted}\n >\n <SelectionIndicator>\n <Icon icon={Check} size={24} data-selected-icon />\n </SelectionIndicator>\n\n {item.formatted}\n </CalendarMenuItem>\n )}\n </ListBox>\n </Virtualizer>\n );\n};\n"],"mappings":";;;;;;;;aA4BaQ,KAAoD,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAC,EAAA,gBAAA,aAAAO,GAI9DC,IAAcL,EAAiB,GAAEM;CAAA,AAAAH,EAAA,OAAAE,EAAA,YAAA,OAUiB,IAAAF,EAAA,MAAxB,IAAA,CAACE,EAAK,YAAY,IAAK,GAAC,EAAA,KAAAA,EAAA,YAAA,MAAA,EAAA,KAAAC;CAAA,IAAAC;CAAA,AAAAJ,EAAA,OAAAK,KAAAL,EAAA,OAAAE,KAErC,KAAA,MACG,kBAACN,GAAD;EACa,eAAA;GAIL,AAHAM,EAAK,eACDA,EAAK,YAAY,IAAK,EAAA,MAAQI,EAAI,GAAI,CAAC,CAC3C,GACAD,EAAY;EAAC;EAEN,WAAAC,EAAI;EAPnB,UAAA,CASI,kBAACC,GAAD,EAAA,UACI,kBAACC,GAAD;GAAYjB,MAAAkB;GAAa,MAAA;GAAI,sBAAA;EAAkB,CAAA,EADhC,CAAA,GAIlBH,EAAI,SAbQ;KAepB,EAAA,KAAAD,GAAA,EAAA,KAAAH,GAAA,EAAA,KAAAE,KAAA,IAAAJ,EAAA;CAAA,IAAAU;CAEK,OAFLV,EAAA,OAAAG,KAAAH,EAAA,OAAAI,KAAAJ,EAAA,OAAAW,KAzBT,IAAA,kBAACC,GAAD;EAAqBpB,QAAAqB;EACjB,UAAA,kBAACC,GAAD;GACe,cAAA;GACX,WAAA;GACA,aAAA;GACOrB,OAAAkB;GACO,eAAA;GACA,cAAAR;GAEb,UAAAC;EARG,CAAA;CADA,CAAA,GA2BE,EAAA,KAAAD,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAO,GAAA,EAAA,KAAAD,KAAA,IAAAV,EAAA,IA3BdU;AA2Bc"}
|
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
import { RangeCalendar as AriaRangeCalendar } from 'react-aria-components';
|
|
2
2
|
import { WeekdayStyle } from '../core';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link RangeCalendar} component.
|
|
5
|
+
* Extends React Aria's `RangeCalendar` props (excluding `children`, `visibleDuration`, and `pageBehavior`).
|
|
6
|
+
*/
|
|
7
|
+
export interface RangeCalendarProps extends Omit<React.ComponentPropsWithRef<typeof AriaRangeCalendar>, "children" | "visibleDuration" | "pageBehavior"> {
|
|
8
|
+
/**
|
|
9
|
+
* Formatting style for weekday column headers in the calendar grid.
|
|
10
|
+
*
|
|
11
|
+
* - `"narrow"`: Typically a single character (e.g. "S", "M", "T").
|
|
12
|
+
* - `"short"`: Abbreviated weekday name (e.g. "Sun", "Mon", "Tue").
|
|
13
|
+
*/
|
|
4
14
|
weekdayStyle?: WeekdayStyle;
|
|
5
|
-
|
|
15
|
+
/** Accessible label for the previous month button. */
|
|
16
|
+
previousMonthAriaLabel?: string;
|
|
17
|
+
/** Accessible label for the next month button. */
|
|
18
|
+
nextMonthAriaLabel?: string;
|
|
19
|
+
/** Accessible label for the previous year button. */
|
|
20
|
+
previousYearAriaLabel?: string;
|
|
21
|
+
/** Accessible label for the next year button. */
|
|
22
|
+
nextYearAriaLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A date range selection calendar component implementing Material Design 3 Date Range Picker guidelines.
|
|
26
|
+
*
|
|
27
|
+
* Allows users to select a continuous range of dates (start date and end date) with visual
|
|
28
|
+
* range indicators, quick month/year jumping menus, keyboard navigation, and localized formatting.
|
|
29
|
+
* Built on top of React Aria's `RangeCalendar`.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* import { RangeCalendar } from '@adgytec/web-ui-components';
|
|
34
|
+
* import { today, getLocalTimeZone } from '@internationalized/date';
|
|
35
|
+
*
|
|
36
|
+
* <RangeCalendar
|
|
37
|
+
* aria-label="Trip dates"
|
|
38
|
+
* minValue={today(getLocalTimeZone())}
|
|
39
|
+
* onChange={(range) => console.log('Selected range:', range.start, range.end)}
|
|
40
|
+
* />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const RangeCalendar: React.FC<RangeCalendarProps>;
|
|
@@ -6,23 +6,27 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
6
6
|
import { RangeCalendar as a } from "react-aria-components";
|
|
7
7
|
//#region src/components/Calendar/RangeCalendar/RangeCalendar.tsx
|
|
8
8
|
var o = e(), s = (e) => {
|
|
9
|
-
let s = (0, o.c)(
|
|
10
|
-
s[0] === e ? (c = s[1], l = s[2], u = s[3]) : ({weekdayStyle:
|
|
11
|
-
let
|
|
12
|
-
s[
|
|
13
|
-
let
|
|
14
|
-
s[
|
|
15
|
-
weekdayStyle:
|
|
16
|
-
isRangeCalendar: !0
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
let s = (0, o.c)(20), c, l, u, d, f, p, m;
|
|
10
|
+
s[0] === e ? (c = s[1], l = s[2], u = s[3], d = s[4], f = s[5], p = s[6], m = s[7]) : ({weekdayStyle: m, className: c, previousMonthAriaLabel: d, nextMonthAriaLabel: l, previousYearAriaLabel: f, nextYearAriaLabel: u, ...p} = e, s[0] = e, s[1] = c, s[2] = l, s[3] = u, s[4] = d, s[5] = f, s[6] = p, s[7] = m);
|
|
11
|
+
let h;
|
|
12
|
+
s[8] === c ? h = s[9] : (h = (e) => r(t, typeof c == "function" ? c(e) : c), s[8] = c, s[9] = h);
|
|
13
|
+
let g;
|
|
14
|
+
s[10] !== l || s[11] !== u || s[12] !== d || s[13] !== f || s[14] !== m ? (g = /* @__PURE__ */ i(n, {
|
|
15
|
+
weekdayStyle: m,
|
|
16
|
+
isRangeCalendar: !0,
|
|
17
|
+
previousMonthAriaLabel: d,
|
|
18
|
+
nextMonthAriaLabel: l,
|
|
19
|
+
previousYearAriaLabel: f,
|
|
20
|
+
nextYearAriaLabel: u
|
|
21
|
+
}), s[10] = l, s[11] = u, s[12] = d, s[13] = f, s[14] = m, s[15] = g) : g = s[15];
|
|
22
|
+
let _;
|
|
23
|
+
return s[16] !== p || s[17] !== h || s[18] !== g ? (_ = /* @__PURE__ */ i(a, {
|
|
24
|
+
className: h,
|
|
25
|
+
...p,
|
|
22
26
|
"data-calendar": !0,
|
|
23
27
|
"data-range-calendar": !0,
|
|
24
|
-
children:
|
|
25
|
-
}), s[
|
|
28
|
+
children: g
|
|
29
|
+
}), s[16] = p, s[17] = h, s[18] = g, s[19] = _) : _ = s[19], _;
|
|
26
30
|
};
|
|
27
31
|
//#endregion
|
|
28
32
|
export { s as RangeCalendar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["weekdayStyle"],"sources":["../../../../src/components/Calendar/RangeCalendar/RangeCalendar.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { RangeCalendar as AriaRangeCalendar } from \"react-aria-components\";\nimport { BaseCalendar } from \"../BaseCalendar\";\nimport { CalendarBaseStyles, type WeekdayStyle } from \"../core\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["weekdayStyle","previousMonthAriaLabel","nextMonthAriaLabel","previousYearAriaLabel","nextYearAriaLabel","_c","clsx","AriaRangeCalendar","require_compiler_runtime","CalendarBaseStyles","BaseCalendar","clsx$1","RangeCalendar$1","import_compiler_runtime","RangeCalendar","$","className","nextMonthAriaLabel","nextYearAriaLabel","previousMonthAriaLabel","previousYearAriaLabel","props","weekdayStyle","t0","t1","renderProps","t2","t3"],"sources":["../../../../src/components/Calendar/RangeCalendar/RangeCalendar.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { RangeCalendar as AriaRangeCalendar } from \"react-aria-components\";\nimport { BaseCalendar } from \"../BaseCalendar\";\nimport { CalendarBaseStyles, type WeekdayStyle } from \"../core\";\n\n/**\n * Props for the {@link RangeCalendar} component.\n * Extends React Aria's `RangeCalendar` props (excluding `children`, `visibleDuration`, and `pageBehavior`).\n */\nexport interface RangeCalendarProps\n extends Omit<\n React.ComponentPropsWithRef<typeof AriaRangeCalendar>,\n \"children\" | \"visibleDuration\" | \"pageBehavior\"\n > {\n /**\n * Formatting style for weekday column headers in the calendar grid.\n *\n * - `\"narrow\"`: Typically a single character (e.g. \"S\", \"M\", \"T\").\n * - `\"short\"`: Abbreviated weekday name (e.g. \"Sun\", \"Mon\", \"Tue\").\n */\n weekdayStyle?: WeekdayStyle;\n\n /** Accessible label for the previous month button. */\n previousMonthAriaLabel?: string;\n\n /** Accessible label for the next month button. */\n nextMonthAriaLabel?: string;\n\n /** Accessible label for the previous year button. */\n previousYearAriaLabel?: string;\n\n /** Accessible label for the next year button. */\n nextYearAriaLabel?: string;\n}\n\n/**\n * A date range selection calendar component implementing Material Design 3 Date Range Picker guidelines.\n *\n * Allows users to select a continuous range of dates (start date and end date) with visual\n * range indicators, quick month/year jumping menus, keyboard navigation, and localized formatting.\n * Built on top of React Aria's `RangeCalendar`.\n *\n * @example\n * ```tsx\n * import { RangeCalendar } from '@adgytec/web-ui-components';\n * import { today, getLocalTimeZone } from '@internationalized/date';\n *\n * <RangeCalendar\n * aria-label=\"Trip dates\"\n * minValue={today(getLocalTimeZone())}\n * onChange={(range) => console.log('Selected range:', range.start, range.end)}\n * />\n * ```\n */\nexport const RangeCalendar: React.FC<RangeCalendarProps> = ({\n weekdayStyle,\n className,\n previousMonthAriaLabel,\n nextMonthAriaLabel,\n previousYearAriaLabel,\n nextYearAriaLabel,\n ...props\n}) => {\n return (\n <AriaRangeCalendar\n className={(renderProps) =>\n clsx(\n CalendarBaseStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n data-calendar\n data-range-calendar\n >\n <BaseCalendar\n weekdayStyle={weekdayStyle}\n isRangeCalendar\n previousMonthAriaLabel={previousMonthAriaLabel}\n nextMonthAriaLabel={nextMonthAriaLabel}\n previousYearAriaLabel={previousYearAriaLabel}\n nextYearAriaLabel={nextYearAriaLabel}\n />\n </AriaRangeCalendar>\n );\n};\n"],"mappings":";;;;;;;aAsDac,KAA8C,MAAA;CAAA,IAAAC,KAAA,GAAAV,EAAAA,EAAAA,CAAA,EAAA,GAAAW,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;CAAA,AAAAP,EAAA,OAAAQ,KAQ1D,IAAAR,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OAR2D,kIAAA,GAAAM,KAAAE,GAQ3D,EAAA,KAAAA,GAAA,EAAA,KAAAP,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAT,EAAA,OAAAC,IASgB,IAAAD,EAAA,MANM,KAAA,MACPT,EACIG,GACA,OAAOO,KAAc,aACfA,EAAUS,CACF,IAFdT,CAGJ,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAQ;CAAA,IAAAE;CAAA,AAAAX,EAAA,QAAAE,KAAAF,EAAA,QAAAG,KAAAH,EAAA,QAAAI,KAAAJ,EAAA,QAAAK,KAAAL,EAAA,QAAAO,KAML,IAAA,kBAACZ,GAAD;EACkB;EACd,iBAAA;EACwB;EACJ;EACG;EACJ;CAAiB,CAAA,GACtC,EAAA,MAAAO,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAE,GAAA,EAAA,MAAAI,KAAA,IAAAX,EAAA;CAAA,IAAAY;CACc,OADdZ,EAAA,QAAAM,KAAAN,EAAA,QAAAS,KAAAT,EAAA,QAAAW,KApBN,IAAA,kBAACnB,GAAD;EACe,WAAAiB;EAMN,GAEDH;EACJ,iBAAA;EACA,uBAAA;EAEA,UAAAK;CAbc,CAAA,GAqBE,EAAA,MAAAL,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAE,GAAA,EAAA,MAAAC,KAAA,IAAAZ,EAAA,KArBpBY;AAqBoB"}
|
|
@@ -1,12 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base CSS module class name providing layout and styling tokens for calendar containers.
|
|
3
|
+
*/
|
|
1
4
|
export declare const CalendarBaseStyles: string;
|
|
5
|
+
/**
|
|
6
|
+
* Format style for weekday headers in the calendar grid.
|
|
7
|
+
*
|
|
8
|
+
* - `"narrow"`: Typically a single character (e.g. "S", "M", "T").
|
|
9
|
+
* - `"short"`: Abbreviated day name (e.g. "Sun", "Mon", "Tue").
|
|
10
|
+
*/
|
|
2
11
|
export type WeekdayStyle = "narrow" | "short";
|
|
12
|
+
/**
|
|
13
|
+
* Represents a selectable month item within the month picker menu.
|
|
14
|
+
*/
|
|
3
15
|
export interface MonthItem {
|
|
16
|
+
/** 1-based month index (1 for January through 12 for December). */
|
|
4
17
|
id: number;
|
|
18
|
+
/** Formatted localized month label (e.g. "January" or "Jan"). */
|
|
5
19
|
formatted: string;
|
|
6
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents a selectable year item within the year picker menu.
|
|
23
|
+
*/
|
|
7
24
|
export interface YearItem {
|
|
25
|
+
/** Full numeric year (e.g. 2026). */
|
|
8
26
|
id: number;
|
|
27
|
+
/** Formatted localized year string (e.g. "2026"). */
|
|
9
28
|
formatted: string;
|
|
10
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Default fallback minimum year used in the year selection menu when no `minValue` is specified.
|
|
32
|
+
*/
|
|
11
33
|
export declare const defaultMinYear = 1900;
|
|
34
|
+
/**
|
|
35
|
+
* Default number of years added to the current year when determining the maximum year
|
|
36
|
+
* in the year selection menu if no `maxValue` is specified.
|
|
37
|
+
*/
|
|
12
38
|
export declare const defaultMaxYearIncrement = 100;
|