@adgytec/adgytec-web-ui-components 2.3.1 → 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 +0 -1
- package/dist/assets/BottomSheetModal.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/Radio.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 +0 -1
- 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 +2 -11
- 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 +0 -1
- package/dist/chunks/CalendarCell.map +1 -1
- package/dist/chunks/CalendarGrid +1 -2
- package/dist/chunks/CalendarGrid.map +1 -1
- package/dist/chunks/CalendarMenuItem +1 -2
- 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 +182 -200
- package/dist/chunks/ComboBoxTrigger.map +1 -1
- package/dist/chunks/ConnectedButtonGroup +0 -1
- 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 +4 -8
- package/dist/chunks/Input2.map +1 -1
- package/dist/chunks/ListAction +0 -1
- package/dist/chunks/ListAction.map +1 -1
- 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 +1 -2
- package/dist/chunks/ListTrailingText.map +1 -1
- 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 +2 -4
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +1 -2
- 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 +109 -85
- 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/compiler-runtime +2 -3
- package/dist/chunks/context +1 -2
- package/dist/chunks/core +3 -6
- 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 +9 -10
- 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/useHover +187 -225
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/useSplash +1 -2
- package/dist/chunks/useSplash.map +1 -1
- package/dist/components/AppBar/AppBar/index.js +1 -2
- package/dist/components/AppBar/AppBarAction/index.js +1 -2
- package/dist/components/AppBar/AppBarAvatar/index.js +1 -2
- package/dist/components/AppBar/AppBarHeadline/index.js +1 -2
- package/dist/components/AppBar/AppBarState/index.js +2 -4
- package/dist/components/AppBar/AppBarState/index.js.map +1 -1
- package/dist/components/AppBar/core/index.js +2 -4
- package/dist/components/AppBar/core/index.js.map +1 -1
- package/dist/components/Button/Button/index.js +1 -2
- package/dist/components/Button/Button/index.js.map +1 -1
- package/dist/components/Button/ButtonGroups/ButtonGroup/index.js +1 -2
- 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/ConnectedButton/index.js +1 -2
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/index.js +1 -2
- package/dist/components/Button/IconButton/index.js +1 -2
- package/dist/components/Button/LinkButton/index.js +1 -2
- package/dist/components/Button/LinkButton/index.js.map +1 -1
- package/dist/components/Button/LinkIconButton/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButton/index.js +1 -2
- 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/SplitButtonPrimary/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButtonTrigger/index.js +1 -2
- package/dist/components/Button/SplitButton/core/index.js +1 -2
- package/dist/components/Button/ToggleButton/index.js +1 -2
- package/dist/components/Button/ToggleButton/index.js.map +1 -1
- package/dist/components/Button/ToggleIconButton/index.js +1 -2
- package/dist/components/Button/core/index.js +1 -2
- package/dist/components/Calendar/BaseCalendar/index.js +1 -2
- package/dist/components/Calendar/Calendar/index.js +1 -2
- package/dist/components/Calendar/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/CalendarCell/index.js +1 -2
- package/dist/components/Calendar/CalendarGrid/index.js +1 -2
- package/dist/components/Calendar/CalendarMenuItem/index.js +1 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js +1 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js.map +1 -1
- package/dist/components/Calendar/CalendarYearMenu/index.js +1 -2
- package/dist/components/Calendar/CalendarYearMenu/index.js.map +1 -1
- package/dist/components/Calendar/RangeCalendar/index.js +1 -2
- package/dist/components/Calendar/RangeCalendar/index.js.map +1 -1
- package/dist/components/Calendar/core/index.js +1 -2
- package/dist/components/Card/CardIcon/index.js +1 -2
- package/dist/components/Decorators/GridBackgroundDecorator/index.js +1 -2
- package/dist/components/Decorators/RadialGlowDecorator/index.js +1 -2
- package/dist/components/Dialog/ActionDialog/index.js +1 -2
- package/dist/components/Dialog/Dialog/index.js +1 -2
- package/dist/components/Dialog/Modal/index.js +1 -2
- package/dist/components/Dialog/ModalOverlay/index.js +1 -2
- package/dist/components/Dialog/core/index.js +2 -4
- package/dist/components/Dialog/core/index.js.map +1 -1
- package/dist/components/Disclosure/Disclosure/index.js +1 -2
- package/dist/components/Disclosure/DisclosureGroup/index.js +1 -2
- package/dist/components/Disclosure/DisclosureHeader/index.js +1 -2
- package/dist/components/Disclosure/DisclosurePanel/index.js +1 -2
- package/dist/components/Disclosure/context/index.js +1 -2
- package/dist/components/Disclosure/context/index.js.map +1 -1
- package/dist/components/Divider/index.js +1 -2
- package/dist/components/Icon/index.js +1 -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 +14 -3
- package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/components/Input/Checkbox/context.d.ts +2 -4
- package/dist/components/Input/Checkbox/types.d.ts +11 -26
- package/dist/components/Input/DateField/index.js +1 -2
- package/dist/components/Input/DatePicker/DatePicker/index.js +1 -2
- package/dist/components/Input/DatePicker/DateRangePicker/index.js +1 -2
- package/dist/components/Input/DatePicker/core/index.js +1 -2
- package/dist/components/Input/Description/index.js +1 -2
- package/dist/components/Input/Description/index.js.map +1 -1
- package/dist/components/Input/FieldError/index.js +1 -2
- package/dist/components/Input/Input/index.js +1 -2
- 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 +5 -4
- package/dist/components/Input/Radio/RadioGroup.d.ts +2 -2
- package/dist/components/Input/Radio/context.d.ts +2 -4
- package/dist/components/Input/Radio/index.js +1 -2
- package/dist/components/Input/Radio/types.d.ts +11 -25
- package/dist/components/Input/SearchField/index.js +1 -2
- package/dist/components/Input/Select/ComboBox/index.js +1 -2
- package/dist/components/Input/Select/ComboBoxPopover/index.js +1 -2
- package/dist/components/Input/Select/ComboBoxTrigger/index.js +1 -2
- package/dist/components/Input/Select/Select/index.js +1 -2
- package/dist/components/Input/Select/SelectItem/index.js +1 -2
- package/dist/components/Input/Select/SelectList/index.js +1 -2
- 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/index.js +1 -2
- package/dist/components/Input/Select/SelectListSectionHeader/index.js.map +1 -1
- package/dist/components/Input/Select/SelectPopover/index.js +1 -2
- package/dist/components/Input/Select/SelectTrigger/index.js +1 -2
- package/dist/components/Input/Slider/CenteredSlider/index.js +1 -2
- package/dist/components/Input/Slider/CenteredSlider/types.d.ts +1 -1
- package/dist/components/Input/Slider/RangeSlider/RangeSlider.d.ts +1 -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 +1 -1
- package/dist/components/Input/Slider/Slider/Slider.d.ts +1 -1
- package/dist/components/Input/Slider/Slider/index.js +1 -2
- package/dist/components/Input/Slider/Slider/types.d.ts +1 -1
- package/dist/components/Input/Slider/SliderOutput/SliderOutput.d.ts +2 -2
- package/dist/components/Input/Slider/SliderOutput/index.js +1 -2
- package/dist/components/Input/Slider/SliderStops/index.js +1 -2
- package/dist/components/Input/Slider/SliderStops/types.d.ts +1 -1
- package/dist/components/Input/Slider/SliderThumb/SliderThumb.d.ts +2 -2
- package/dist/components/Input/Slider/SliderThumb/context.d.ts +2 -2
- package/dist/components/Input/Slider/SliderThumb/index.js +1 -2
- package/dist/components/Input/Slider/core/index.js +1 -2
- package/dist/components/Input/Slider/core/slider.d.ts +3 -3
- package/dist/components/Input/Switch/Switch.d.ts +20 -3
- package/dist/components/Input/Switch/index.js +1 -2
- package/dist/components/Input/Switch/types.d.ts +11 -12
- package/dist/components/Input/TextArea/index.js +1 -2
- package/dist/components/Input/TimeField/index.js +1 -2
- package/dist/components/Input/core/index.js +1 -2
- package/dist/components/Input/hooks/index.js +1 -2
- package/dist/components/List/ListAction/ListAction.d.ts +2 -2
- package/dist/components/List/ListAction/index.js +1 -2
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +2 -2
- package/dist/components/List/ListAvatar/index.js +1 -2
- package/dist/components/List/ListBox/ListBox.d.ts +3 -3
- package/dist/components/List/ListBox/index.js +1 -2
- package/dist/components/List/ListBox/types.d.ts +14 -2
- package/dist/components/List/ListIcon/ListIcon.d.ts +2 -2
- package/dist/components/List/ListIcon/index.js +1 -2
- package/dist/components/List/ListItem/ListItem.d.ts +2 -1
- package/dist/components/List/ListItem/index.js +1 -2
- package/dist/components/List/ListItem/types.d.ts +17 -4
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +2 -2
- package/dist/components/List/ListLabelText/index.js +1 -2
- package/dist/components/List/ListMedia/ListMedia.d.ts +1 -1
- package/dist/components/List/ListMedia/index.js +1 -2
- package/dist/components/List/ListMedia/types.d.ts +2 -2
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +2 -2
- package/dist/components/List/ListOverlineText/index.js +1 -2
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +2 -2
- package/dist/components/List/ListSupportingText/index.js +1 -2
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +2 -2
- package/dist/components/List/ListTrailingText/index.js +1 -2
- 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 -11
- package/dist/components/Loader/Loader.d.ts +2 -2
- package/dist/components/Loader/index.js +1 -2
- 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 +3 -3
- package/dist/components/Menu/MenuItem/MenuItem.d.ts +2 -2
- 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 +3 -3
- package/dist/components/Menu/MenuPopover/MenuPopover.d.ts +3 -3
- package/dist/components/Menu/MenuPopover/index.js +1 -2
- package/dist/components/Menu/MenuSection/MenuSection.d.ts +4 -4
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +1 -1
- package/dist/components/Menu/SubmenuPopover/index.js +1 -2
- package/dist/components/Menu/context/context.d.ts +1 -1
- 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 +1 -1
- package/dist/components/Menu/core/color.d.ts +1 -1
- package/dist/components/Menu/core/index.js +1 -2
- package/dist/components/Menu/core/layout.d.ts +1 -1
- package/dist/components/Navigation/Navigation/Navigation.d.ts +1 -1
- package/dist/components/Navigation/Navigation/navContext.d.ts +1 -1
- package/dist/components/Navigation/Navigation/navRenderingContext.d.ts +2 -2
- package/dist/components/Navigation/Navigation/types.d.ts +3 -3
- package/dist/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +1 -1
- 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 +2 -2
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +1 -1
- 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/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/types.d.ts +2 -2
- package/dist/components/Navigation/NavigationItem/core/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/core/navigationItem.d.ts +2 -2
- package/dist/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +2 -2
- package/dist/components/Navigation/NavigationScrollContainer/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +1 -1
- package/dist/components/Navigation/NavigationSection/NavigationSection/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +2 -2
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/index.js +1 -2
- package/dist/components/Navigation/NavigationState/NavigationState.d.ts +2 -2
- package/dist/components/Navigation/NavigationState/context.d.ts +2 -2
- package/dist/components/Navigation/NavigationState/index.js +2 -4
- package/dist/components/Navigation/NavigationState/index.js.map +1 -1
- package/dist/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +2 -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 +3 -3
- 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/navigation.d.ts +2 -2
- package/dist/components/Navigation/core/navigationInfo.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/index.js +1 -2
- 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/{BottomSheetModal → BottomSheet/BottomSheetModal}/context.d.ts +1 -1
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/index.js +1 -0
- package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/types.d.ts +1 -1
- package/dist/components/Sheets/BottomSheet/index.d.ts +1 -1
- package/dist/components/Sheets/BottomSheet/index.js +3 -2
- 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/{SideSheetModal → SideSheet/SideSheetModal}/context.d.ts +1 -1
- package/dist/components/Sheets/SideSheet/SideSheetModal/index.js +1 -0
- package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/types.d.ts +1 -1
- package/dist/components/Sheets/SideSheet/index.d.ts +1 -2
- package/dist/components/Sheets/SideSheet/index.js +3 -2
- package/dist/components/Sheets/index.d.ts +0 -2
- package/dist/components/Snackbar/index.js +1 -2
- package/dist/components/Splash/index.js +1 -2
- package/dist/components/Tabs/Tab/index.js +1 -2
- package/dist/components/Tabs/TabList/index.js +1 -2
- package/dist/components/Tabs/TabPanel/index.js +1 -2
- package/dist/components/Tabs/TabPanels/index.js +1 -2
- package/dist/components/Tabs/Tabs/index.js +1 -2
- package/dist/components/Tag/index.js +1 -2
- package/dist/components/ThemeSelector/ThemeItem.d.ts +7 -1
- package/dist/components/ThemeSelector/ThemeSelector.d.ts +2 -2
- package/dist/components/ThemeSelector/core.d.ts +21 -11
- package/dist/components/ThemeSelector/index.js +1 -2
- package/dist/components/ThemeSelector/types.d.ts +41 -0
- package/dist/components/Toolbar/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +4 -4
- package/dist/components/Tooltip/RichTooltip/RichTooltip/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/index.js +1 -2
- 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/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/index.js +1 -2
- package/dist/components/Tooltip/TooltipTrigger/index.js +1 -2
- package/dist/components/Tooltip/index.js +4 -3
- package/dist/index.js +111 -111
- 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/package.json +13 -13
- package/dist/components/Sheets/BottomSheetModal/index.js +0 -2
- package/dist/components/Sheets/SideSheetModal/index.js +0 -2
- /package/dist/components/Sheets/BottomSheet/{BottomSheet.d.ts → BottomSheet/BottomSheet.d.ts} +0 -0
- /package/dist/components/Sheets/BottomSheet/{types.d.ts → BottomSheet/types.d.ts} +0 -0
- /package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/BottomSheetModal.d.ts +0 -0
- /package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/index.d.ts +0 -0
- /package/dist/components/Sheets/SideSheet/{SideSheet.d.ts → SideSheet/SideSheet.d.ts} +0 -0
- /package/dist/components/Sheets/SideSheet/{SideSheetDialog.d.ts → SideSheet/SideSheetDialog.d.ts} +0 -0
- /package/dist/components/Sheets/SideSheet/{types.d.ts → SideSheet/types.d.ts} +0 -0
- /package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/SideSheetModal.d.ts +0 -0
- /package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/index.d.ts +0 -0
|
@@ -5,7 +5,7 @@ import { n as r } from "../../../chunks/core3";
|
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import { ListBox as o, ListLayout as s, SelectionIndicator as c, Virtualizer as l } from "react-aria-components";
|
|
7
7
|
import { Check as u } from "lucide-react";
|
|
8
|
-
|
|
8
|
+
// src/components/Calendar/CalendarYearMenu/CalendarYearMenu.tsx
|
|
9
9
|
var d = e(), f = (e) => {
|
|
10
10
|
let f = (0, d.c)(9), { onSelection: p, years: m } = e, h = r(), g;
|
|
11
11
|
f[0] === h.focusedDate.year ? g = f[1] : (g = [h.focusedDate.year], f[0] = h.focusedDate.year, f[1] = g);
|
|
@@ -35,7 +35,6 @@ var d = e(), f = (e) => {
|
|
|
35
35
|
})
|
|
36
36
|
}), f[5] = g, f[6] = _, f[7] = m, f[8] = v) : v = f[8], v;
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { f as CalendarYearMenu };
|
|
40
39
|
|
|
41
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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":";;;;;;;;A,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;C,IAepB,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"}
|
|
@@ -4,7 +4,7 @@ import { t as n } from "../../../chunks/BaseCalendar";
|
|
|
4
4
|
import r from "clsx";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
import { RangeCalendar as a } from "react-aria-components";
|
|
7
|
-
|
|
7
|
+
// src/components/Calendar/RangeCalendar/RangeCalendar.tsx
|
|
8
8
|
var o = e(), s = (e) => {
|
|
9
9
|
let s = (0, o.c)(20), c, l, u, d, f, p, m;
|
|
10
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);
|
|
@@ -28,7 +28,6 @@ var o = e(), s = (e) => {
|
|
|
28
28
|
children: g
|
|
29
29
|
}), s[16] = p, s[17] = h, s[18] = g, s[19] = _) : _ = s[19], _;
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { s as RangeCalendar };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"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":";;;;;;;A,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,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { r as CalendarBaseStyles, t as defaultMaxYearIncrement, e as defaultMinYear, i as isRangeCalendarState, n as useCalendarState };
|
|
1
|
+
export { r as CalendarBaseStyles, i as defaultMaxYearIncrement, a as defaultMinYear, t as isRangeCalendarState, n as useCalendarState } from "../../../chunks/core3";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as CardIcon };
|
|
1
|
+
export { t as CardIcon } from "../../../chunks/CardIcon";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as GridBackgroundDecorator };
|
|
1
|
+
export { t as GridBackgroundDecorator } from "../../../chunks/GridBackgroundDecorator";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as RadialGlowDecorator };
|
|
1
|
+
export { t as RadialGlowDecorator } from "../../../chunks/RadialGlowDecorator";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as ActionDialog };
|
|
1
|
+
export { t as ActionDialog } from "../../../chunks/ActionDialog";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Dialog };
|
|
1
|
+
export { t as Dialog } from "../../../chunks/Dialog";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Modal };
|
|
1
|
+
export { t as Modal } from "../../../chunks/Modal";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as ModalOverlay };
|
|
1
|
+
export { t as ModalOverlay } from "../../../chunks/ModalOverlay";
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { t as e } from "../../../chunks/base";
|
|
2
2
|
import { createContext as t, useContext as n } from "react";
|
|
3
|
-
|
|
3
|
+
// src/components/Dialog/core/context.ts
|
|
4
4
|
var r = t(null);
|
|
5
5
|
function i() {
|
|
6
6
|
return n(r) === !0;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
//#region src/components/Dialog/core/typography.ts
|
|
8
|
+
// src/components/Dialog/core/typography.ts
|
|
10
9
|
var a = 24, o = e.headlineSmall, s = e.bodyMedium;
|
|
11
|
-
//#endregion
|
|
12
10
|
export { s as DialogBodyTypography, r as DialogContext, o as DialogHeadlineTypography, a as DialogIconSize, i as useInDialog };
|
|
13
11
|
|
|
14
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["typography","DialogContext","createContext","useInDialog","useContext","DialogIconSize","DialogHeadlineTypography","DialogBodyTypography"],"sources":["../../../../src/components/Dialog/core/context.ts","../../../../src/components/Dialog/core/typography.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\n/**\n * Context provided by the {@link Dialog} component to indicate whether children are rendered inside a dialog.\n */\nexport const DialogContext = createContext<boolean | null>(null);\n\n/**\n * Hook that returns whether the calling component is currently rendered within a {@link Dialog}.\n *\n * @returns `true` if within a Dialog context, otherwise `false`.\n */\nexport function useInDialog() {\n return useContext(DialogContext) === true;\n}\n","import { typography } from \"@/utils/typography\";\n\n/**\n * Standard icon size (in pixels) for icons rendered in a dialog header.\n */\nexport const DialogIconSize = 24;\n\n/**\n * Material Design 3 headline typography class for dialog titles (`headlineSmall`).\n */\nexport const DialogHeadlineTypography = typography.headlineSmall;\n\n/**\n * Material Design 3 body typography class for dialog content (`bodyMedium`).\n */\nexport const DialogBodyTypography = typography.bodyMedium;\n"],"mappings":";;;AAKA,IAAaC,IAAgBC,EAA8B,IAAI;AAO/D,SAAOC,IAAA;CAAA,OACIC,EAAWH,CAAa,MAAM;AAAI
|
|
1
|
+
{"version":3,"file":"index.js","names":["typography","DialogContext","createContext","useInDialog","useContext","DialogIconSize","DialogHeadlineTypography","DialogBodyTypography"],"sources":["../../../../src/components/Dialog/core/context.ts","../../../../src/components/Dialog/core/typography.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\n/**\n * Context provided by the {@link Dialog} component to indicate whether children are rendered inside a dialog.\n */\nexport const DialogContext = createContext<boolean | null>(null);\n\n/**\n * Hook that returns whether the calling component is currently rendered within a {@link Dialog}.\n *\n * @returns `true` if within a Dialog context, otherwise `false`.\n */\nexport function useInDialog() {\n return useContext(DialogContext) === true;\n}\n","import { typography } from \"@/utils/typography\";\n\n/**\n * Standard icon size (in pixels) for icons rendered in a dialog header.\n */\nexport const DialogIconSize = 24;\n\n/**\n * Material Design 3 headline typography class for dialog titles (`headlineSmall`).\n */\nexport const DialogHeadlineTypography = typography.headlineSmall;\n\n/**\n * Material Design 3 body typography class for dialog content (`bodyMedium`).\n */\nexport const DialogBodyTypography = typography.bodyMedium;\n"],"mappings":";;;AAKA,IAAaC,IAAgBC,EAA8B,IAAI;AAO/D,SAAOC,IAAA;CAAA,OACIC,EAAWH,CAAa,MAAM;AAAI;;ACR7C,IAAaI,IAAiB,IAKjBC,IAA2BN,EAAW,eAKtCO,IAAuBP,EAAW"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Disclosure };
|
|
1
|
+
export { t as Disclosure } from "../../../chunks/Disclosure";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as DisclosureGroup };
|
|
1
|
+
export { t as DisclosureGroup } from "../../../chunks/DisclosureGroup";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as DisclosureHeader };
|
|
1
|
+
export { t as DisclosureHeader } from "../../../chunks/DisclosureHeader";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as DisclosurePanel };
|
|
1
|
+
export { t as DisclosurePanel } from "../../../chunks/DisclosurePanel";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../../../chunks/compiler-runtime";
|
|
2
2
|
import { t } from "../../../chunks/base";
|
|
3
3
|
import { createContext as n, useContext as r } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/Disclosure/context/context.ts
|
|
5
5
|
var i = n({}), a = e();
|
|
6
6
|
function o(e) {
|
|
7
7
|
let n = (0, a.c)(3), { label: o, panel: s } = e, { label: c, panel: l } = r(i), u = o ?? c ?? t.titleMediumEmphasized, d = s ?? l ?? t.bodyLarge, f;
|
|
@@ -10,7 +10,6 @@ function o(e) {
|
|
|
10
10
|
panel: d
|
|
11
11
|
}, n[0] = u, n[1] = d, n[2] = f) : f = n[2], f;
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { i as DisclosureTypographyContext, o as useDisclosureTypographyContext };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","require_compiler_runtime","DisclosureTypographyContext","createContext","import_compiler_runtime","useDisclosureTypographyContext","$","t0","groupLabel","groupPanel","useContext","labelTypography","label","typography","panelTypography","panel","t1"],"sources":["../../../../src/components/Disclosure/context/context.ts","../../../../src/components/Disclosure/context/useDisclosureTypographyContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { Typography } from \"@/utils\";\n\n/**\n * Context value providing inherited typography styles for disclosure components within a group.\n */\nexport interface DisclosureTypographyContextValue {\n /** Typography applied to {@link DisclosureHeader} labels. */\n label?: Typography;\n /** Typography applied to {@link DisclosurePanel} content. */\n panel?: Typography;\n}\n\n/**\n * React Context used by {@link DisclosureGroup} to pass typography settings down to nested\n * {@link DisclosureHeader} and {@link DisclosurePanel} components.\n */\nexport const DisclosureTypographyContext =\n createContext<DisclosureTypographyContextValue>({});\n","import { useContext } from \"react\";\nimport { type Typography, typography } from \"@/utils\";\nimport { DisclosureTypographyContext } from \"./context\";\n\n/**\n * Parameters for the {@link useDisclosureTypographyContext} hook.\n */\nexport interface UseDisclosureTypographyContextProps {\n /** Optional label typography override passed directly to the component. */\n label?: Typography;\n /** Optional panel typography override passed directly to the component. */\n panel?: Typography;\n}\n\n/**\n * Resolves the active typography styles for disclosure headers and panels.\n *\n * Checks explicit component props first, then falls back to inherited values from\n * an enclosing {@link DisclosureGroup}, and finally defaults to Material 3 standard\n * typography (`typography.titleMediumEmphasized` for labels, `typography.bodyLarge` for panels).\n *\n * @param props - Explicit typography overrides from component props.\n * @returns An object containing resolved `label` and `panel` typography classes.\n */\nexport function useDisclosureTypographyContext({\n label,\n panel,\n}: UseDisclosureTypographyContextProps) {\n const { label: groupLabel, panel: groupPanel } = useContext(\n DisclosureTypographyContext\n );\n\n const labelTypography =\n label ?? groupLabel ?? typography.titleMediumEmphasized;\n const panelTypography = panel ?? groupPanel ?? typography.bodyLarge;\n\n return { label: labelTypography, panel: panelTypography };\n}\n"],"mappings":";;;;AAiBA,IAAaE,IACTC,EAAgD,CAAC,CAAC;ACMtD,SAAOE,EAAA,GAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAwC,EAAA,UAAA,aAAAO,GAI3C,EAAA,OAAAC,GAAA,OAAAC,MAAiDC,EAC7CR,CACJ,GAEAS,IACIC,KAAAJ,KAAuBK,EAAU,uBACrCC,IAAwBC,KAAAN,KAAuBI,EAAU,WAAWG;CAEX,OAFWV,EAAA,OAAAK,KAAAL,EAAA,OAAAQ,KAE7D,IAAA;EAAA,OAASH;EAAe,OAASG;CAAgB,GAAC,EAAA,KAAAH,GAAA,EAAA,KAAAG,GAAA,EAAA,KAAAE,KAAA,IAAAV,EAAA,IAAlDU;AAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","require_compiler_runtime","DisclosureTypographyContext","createContext","import_compiler_runtime","useDisclosureTypographyContext","$","t0","groupLabel","groupPanel","useContext","labelTypography","label","typography","panelTypography","panel","t1"],"sources":["../../../../src/components/Disclosure/context/context.ts","../../../../src/components/Disclosure/context/useDisclosureTypographyContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { Typography } from \"@/utils\";\n\n/**\n * Context value providing inherited typography styles for disclosure components within a group.\n */\nexport interface DisclosureTypographyContextValue {\n /** Typography applied to {@link DisclosureHeader} labels. */\n label?: Typography;\n /** Typography applied to {@link DisclosurePanel} content. */\n panel?: Typography;\n}\n\n/**\n * React Context used by {@link DisclosureGroup} to pass typography settings down to nested\n * {@link DisclosureHeader} and {@link DisclosurePanel} components.\n */\nexport const DisclosureTypographyContext =\n createContext<DisclosureTypographyContextValue>({});\n","import { useContext } from \"react\";\nimport { type Typography, typography } from \"@/utils\";\nimport { DisclosureTypographyContext } from \"./context\";\n\n/**\n * Parameters for the {@link useDisclosureTypographyContext} hook.\n */\nexport interface UseDisclosureTypographyContextProps {\n /** Optional label typography override passed directly to the component. */\n label?: Typography;\n /** Optional panel typography override passed directly to the component. */\n panel?: Typography;\n}\n\n/**\n * Resolves the active typography styles for disclosure headers and panels.\n *\n * Checks explicit component props first, then falls back to inherited values from\n * an enclosing {@link DisclosureGroup}, and finally defaults to Material 3 standard\n * typography (`typography.titleMediumEmphasized` for labels, `typography.bodyLarge` for panels).\n *\n * @param props - Explicit typography overrides from component props.\n * @returns An object containing resolved `label` and `panel` typography classes.\n */\nexport function useDisclosureTypographyContext({\n label,\n panel,\n}: UseDisclosureTypographyContextProps) {\n const { label: groupLabel, panel: groupPanel } = useContext(\n DisclosureTypographyContext\n );\n\n const labelTypography =\n label ?? groupLabel ?? typography.titleMediumEmphasized;\n const panelTypography = panel ?? groupPanel ?? typography.bodyLarge;\n\n return { label: labelTypography, panel: panelTypography };\n}\n"],"mappings":";;;;AAiBA,IAAaE,IACTC,EAAgD,CAAC,CAAC,G;ACMtD,SAAOE,EAAA,GAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAwC,EAAA,UAAA,aAAAO,GAI3C,EAAA,OAAAC,GAAA,OAAAC,MAAiDC,EAC7CR,CACJ,GAEAS,IACIC,KAAAJ,KAAuBK,EAAU,uBACrCC,IAAwBC,KAAAN,KAAuBI,EAAU,WAAWG;CAEX,OAFWV,EAAA,OAAAK,KAAAL,EAAA,OAAAQ,KAE7D,IAAA;EAAA,OAASH;EAAe,OAASG;CAAgB,GAAC,EAAA,KAAAH,GAAA,EAAA,KAAAG,GAAA,EAAA,KAAAE,KAAA,IAAAV,EAAA,IAAlDU;AAAkD"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Divider };
|
|
1
|
+
export { t as Divider } from "../../chunks/Divider";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Icon };
|
|
1
|
+
export { t as Icon } from "../../chunks/Icon";
|
|
@@ -3,7 +3,7 @@ import { t } from "../../../chunks/base";
|
|
|
3
3
|
import { t as n } from "../../../chunks/core4";
|
|
4
4
|
import r from "clsx";
|
|
5
5
|
import { jsxs as i } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/Input/CharacterCount/CharacterCount.tsx
|
|
7
7
|
var a = e(), o = (e) => {
|
|
8
8
|
let o = (0, a.c)(9), s, c, l;
|
|
9
9
|
o[0] === e ? (s = o[1], c = o[2], l = o[3]) : ({count: s, maxLength: c, ...l} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l);
|
|
@@ -16,7 +16,6 @@ var a = e(), o = (e) => {
|
|
|
16
16
|
children: [s, d]
|
|
17
17
|
}), o[5] = s, o[6] = l, o[7] = d, o[8] = f) : f = o[8], f;
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { o as CharacterCount };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["count","_c","clsx","require_compiler_runtime","CharacterCountStyles","clsx$1","import_compiler_runtime","CharacterCount","$","count","maxLength","props","t0","t1","typography","t2","t3"],"sources":["../../../../src/components/Input/CharacterCount/CharacterCount.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type RefProp, typography } from \"@/utils\";\nimport { CharacterCountStyles } from \"../core\";\n\n/**\n * Props for the {@link CharacterCount} component.\n */\nexport interface CharacterCountProps extends RefProp<\"span\"> {\n /** Current character count. */\n count: number;\n /** Optional maximum allowed character limit. */\n maxLength?: number;\n}\n\n/**\n * Displays the current character count and optional maximum character limit below text inputs.\n */\nexport const CharacterCount: React.FC<CharacterCountProps> = ({\n count,\n maxLength,\n ...props\n}) => {\n return (\n <span\n className={clsx(CharacterCountStyles, typography.labelMedium)}\n {...props}\n >\n {count}\n {maxLength !== undefined && `/${maxLength}`}\n </span>\n );\n};\n"],"mappings":";;;;;;aAiBaO,KAAgD,MAAA;CAAA,IAAAC,KAAA,GAAAP,EAAAA,EAAAA,CAAA,CAAA,GAAAQ,GAAAC,GAAAC;CAAA,AAAAH,EAAA,OAAAI,KAI5D,IAAAJ,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OAJ6D,yBAAA,GAAAG,KAAAC,GAI7D,EAAA,KAAAA,GAAA,EAAA,KAAAH,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAL,EAAA,OAAA,OAAA,IAAA,2BAAA,KAGsB,IAAAN,EAAKE,GAAsBU,EAAU,WAAY,GAAC,EAAA,KAAAD,KAAA,IAAAL,EAAA;CAI5D,IAAAO,IAAAL,MAAc,KAAA,KAAd,IAA+BA,KAAWM;CACxC,OADwCR,EAAA,OAAAC,KAAAD,EAAA,OAAAG,KAAAH,EAAA,OAAAO,KAL/C,IAAA,kBAAA,QAAA;EACe,WAAAF;EAAkD,GACzDF;EAFR,UAAA,CAIKF,GACAM,CACE;
|
|
1
|
+
{"version":3,"file":"index.js","names":["count","_c","clsx","require_compiler_runtime","CharacterCountStyles","clsx$1","import_compiler_runtime","CharacterCount","$","count","maxLength","props","t0","t1","typography","t2","t3"],"sources":["../../../../src/components/Input/CharacterCount/CharacterCount.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type RefProp, typography } from \"@/utils\";\nimport { CharacterCountStyles } from \"../core\";\n\n/**\n * Props for the {@link CharacterCount} component.\n */\nexport interface CharacterCountProps extends RefProp<\"span\"> {\n /** Current character count. */\n count: number;\n /** Optional maximum allowed character limit. */\n maxLength?: number;\n}\n\n/**\n * Displays the current character count and optional maximum character limit below text inputs.\n */\nexport const CharacterCount: React.FC<CharacterCountProps> = ({\n count,\n maxLength,\n ...props\n}) => {\n return (\n <span\n className={clsx(CharacterCountStyles, typography.labelMedium)}\n {...props}\n >\n {count}\n {maxLength !== undefined && `/${maxLength}`}\n </span>\n );\n};\n"],"mappings":";;;;;;A,aAiBaO,KAAgD,MAAA;CAAA,IAAAC,KAAA,GAAAP,EAAAA,EAAAA,CAAA,CAAA,GAAAQ,GAAAC,GAAAC;CAAA,AAAAH,EAAA,OAAAI,KAI5D,IAAAJ,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OAJ6D,yBAAA,GAAAG,KAAAC,GAI7D,EAAA,KAAAA,GAAA,EAAA,KAAAH,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAL,EAAA,OAAA,OAAA,IAAA,2BAAA,KAGsB,IAAAN,EAAKE,GAAsBU,EAAU,WAAY,GAAC,EAAA,KAAAD,KAAA,IAAAL,EAAA;CAI5D,IAAAO,IAAAL,MAAc,KAAA,KAAd,IAA+BA,KAAWM;CACxC,OADwCR,EAAA,OAAAC,KAAAD,EAAA,OAAAG,KAAAH,EAAA,OAAAO,KAL/C,IAAA,kBAAA,QAAA;EACe,WAAAF;EAAkD,GACzDF;EAFR,UAAA,CAIKF,GACAM,CACE;C,IAAA,EAAA,KAAAN,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAI,GAAA,EAAA,KAAAC,KAAA,IAAAR,EAAA,IANPQ;AAMO"}
|
|
@@ -2,16 +2,27 @@ import { CheckboxProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A checkbox control implementing Material Design 3 Checkbox guidelines.
|
|
4
4
|
*
|
|
5
|
-
* Supports unchecked, checked, and indeterminate states with
|
|
6
|
-
* accessible keyboard activation, and flexible label positioning.
|
|
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.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```tsx
|
|
10
|
-
* import { Checkbox } from
|
|
11
|
+
* import { Checkbox } from "@adgytec/web-ui-components";
|
|
11
12
|
*
|
|
12
13
|
* <Checkbox isSelected={agree} onChange={setAgree}>
|
|
13
14
|
* I accept the terms and conditions
|
|
14
15
|
* </Checkbox>
|
|
15
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
|
+
* ```
|
|
16
27
|
*/
|
|
17
28
|
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* A container managing a set of related
|
|
3
|
+
* A container managing a set of related [`Checkbox`](src/components/Input/Checkbox/Checkbox.tsx) controls.
|
|
4
4
|
*
|
|
5
5
|
* Coordinates group selection values, accessible group labels, helper descriptions,
|
|
6
|
-
* error validation messages
|
|
6
|
+
* and error validation messages.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```tsx
|
|
10
|
-
* import { CheckboxGroup, Checkbox } from
|
|
10
|
+
* import { CheckboxGroup, Checkbox } from "@adgytec/web-ui-components";
|
|
11
11
|
*
|
|
12
12
|
* <CheckboxGroup label="Notification Preferences">
|
|
13
13
|
* <Checkbox value="email">Email</Checkbox>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { CheckboxLabelPlacement } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
4
|
*/
|
|
5
5
|
export interface CheckboxGroupContextValue {
|
|
6
|
-
/** Inherited label placement. */
|
|
6
|
+
/** Inherited label placement for child checkbox items. */
|
|
7
7
|
labelPlacement?: CheckboxLabelPlacement;
|
|
8
|
-
/** Inherited container state layer flag. */
|
|
9
|
-
containerStateLayer?: boolean;
|
|
10
8
|
}
|
|
11
9
|
/**
|
|
12
10
|
* Context communicating group-level styling configurations to nested checkboxes.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CheckboxField, CheckboxGroup } from 'react-aria-components';
|
|
3
3
|
import { CoreInputProps } from '../core';
|
|
4
4
|
/**
|
|
5
5
|
* Alignment of the checkbox label text relative to the indicator box.
|
|
@@ -9,48 +9,33 @@ import { CoreInputProps } from '../core';
|
|
|
9
9
|
*/
|
|
10
10
|
export type CheckboxLabelPlacement = "start" | "end";
|
|
11
11
|
/**
|
|
12
|
-
* Props for the
|
|
13
|
-
*
|
|
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).
|
|
14
15
|
*/
|
|
15
16
|
export interface CheckboxGroupProps extends Omit<React.ComponentPropsWithRef<typeof CheckboxGroup>, "children">, CoreInputProps {
|
|
16
17
|
/** The child checkboxes or custom content rendered inside the group. */
|
|
17
18
|
children?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Vertical spacing (in pixels) between child checkbox items.
|
|
20
|
-
*
|
|
21
|
-
* @default 24
|
|
22
|
-
*/
|
|
23
|
-
checkboxItemsGap?: number;
|
|
24
19
|
/**
|
|
25
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).
|
|
26
22
|
*
|
|
27
23
|
* @default "end"
|
|
28
24
|
*/
|
|
29
25
|
labelPlacement?: CheckboxLabelPlacement;
|
|
30
|
-
/**
|
|
31
|
-
* When `true`, displays the state layer (hover, press, focus) across the entire checkbox container
|
|
32
|
-
* rather than only on the indicator box.
|
|
33
|
-
*
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
containerStateLayer?: boolean;
|
|
37
26
|
}
|
|
38
27
|
/**
|
|
39
|
-
* Props for the
|
|
40
|
-
*
|
|
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.
|
|
41
32
|
*/
|
|
42
|
-
export interface CheckboxProps extends React.ComponentPropsWithRef<typeof
|
|
33
|
+
export interface CheckboxProps extends React.ComponentPropsWithRef<typeof CheckboxField> {
|
|
43
34
|
/**
|
|
44
35
|
* Alignment of the label text relative to the indicator box.
|
|
45
|
-
* Overrides the group-level setting if nested inside a
|
|
36
|
+
* Overrides the group-level setting if nested inside a [`CheckboxGroup`](src/components/Input/Checkbox/CheckboxGroup.tsx).
|
|
46
37
|
*
|
|
47
38
|
* @default "end"
|
|
48
39
|
*/
|
|
49
40
|
labelPlacement?: CheckboxLabelPlacement;
|
|
50
|
-
/**
|
|
51
|
-
* When `true`, displays the state layer (hover, press, focus) across the entire checkbox container.
|
|
52
|
-
*
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
containerStateLayer?: boolean;
|
|
56
41
|
}
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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,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";
|
|
@@ -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":["_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":";;;;;;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
|
+
{"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 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as FieldError };
|
|
1
|
+
export { t as FieldError } from "../../../chunks/FieldError";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { t as Input, e as InputButton };
|
|
1
|
+
export { t as Input, n as InputButton } from "../../../chunks/Input2";
|
|
@@ -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":["_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":";;;;;;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"}
|
|
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"}
|
|
@@ -2,16 +2,17 @@ import { RadioProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A radio button control implementing Material Design 3 Radio guidelines.
|
|
4
4
|
*
|
|
5
|
-
* Designed for single-choice options within a
|
|
6
|
-
* selection dot scaling,
|
|
5
|
+
* Designed for single-choice options within a [`RadioGroup`](src/components/Input/Radio/RadioGroup.tsx).
|
|
6
|
+
* Features animated selection dot scaling, an accessible touch target, interaction state layers,
|
|
7
|
+
* and configurable label positioning. Built on React Aria's `RadioField` and `RadioButton`.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```tsx
|
|
10
|
-
* import { RadioGroup, Radio } from
|
|
11
|
+
* import { RadioGroup, Radio } from "@adgytec/web-ui-components";
|
|
11
12
|
*
|
|
12
13
|
* <RadioGroup label="Select an option">
|
|
13
14
|
* <Radio value="1">Option One</Radio>
|
|
14
|
-
* <Radio value="2">Option Two</Radio>
|
|
15
|
+
* <Radio value="2" labelPlacement="start">Option Two</Radio>
|
|
15
16
|
* </RadioGroup>
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RadioGroupProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* A container managing mutually exclusive
|
|
3
|
+
* A container managing mutually exclusive [`Radio`](src/components/Input/Radio/Radio.tsx) options.
|
|
4
4
|
*
|
|
5
5
|
* Coordinates single-selection radio values, keyboard navigation arrow-key roving,
|
|
6
6
|
* accessible labels, helper descriptions, and validation error messages.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```tsx
|
|
10
|
-
* import { RadioGroup, Radio } from
|
|
10
|
+
* import { RadioGroup, Radio } from "@adgytec/web-ui-components";
|
|
11
11
|
*
|
|
12
12
|
* <RadioGroup label="Delivery Speed" defaultValue="standard">
|
|
13
13
|
* <Radio value="standard">Standard (3-5 days)</Radio>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { RadioLabelPlacement } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Configuration context value passed down from [`RadioGroup`](src/components/Input/Radio/RadioGroup.tsx) to child [`Radio`](src/components/Input/Radio/Radio.tsx) components.
|
|
4
4
|
*/
|
|
5
5
|
export interface RadioGroupContextValue {
|
|
6
|
-
/** Inherited label placement. */
|
|
6
|
+
/** Inherited label placement for child radio items. */
|
|
7
7
|
labelPlacement?: RadioLabelPlacement;
|
|
8
|
-
/** Inherited container state layer flag. */
|
|
9
|
-
containerStateLayer?: boolean;
|
|
10
8
|
}
|
|
11
9
|
/**
|
|
12
10
|
* Context communicating group-level styling configurations to nested radio buttons.
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Radio, t as RadioGroup };
|
|
1
|
+
export { n as Radio, t as RadioGroup } from "../../../chunks/Radio";
|