@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","clsx","AriaMenuSection","require_compiler_runtime","MenuSectionStyles","clsx$1","MenuSection$1","import_compiler_runtime","MenuSection","$","className","props","t0","t1","t2"],"sources":["../../../../src/components/Menu/MenuSection/MenuSection.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { MenuSection as AriaMenuSection } from \"react-aria-components\";\nimport { MenuSectionStyles } from \"../core\";\n\n/**\n * Props for the [`MenuSection`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","AriaMenuSection","require_compiler_runtime","MenuSectionStyles","clsx$1","MenuSection$1","import_compiler_runtime","MenuSection","$","className","props","t0","t1","t2"],"sources":["../../../../src/components/Menu/MenuSection/MenuSection.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { MenuSection as AriaMenuSection } from \"react-aria-components\";\nimport { MenuSectionStyles } from \"../core\";\n\n/**\n * Props for the [`MenuSection`](src/components/Menu/MenuSection/MenuSection.tsx) component.\n */\nexport interface MenuSectionProps<T extends object>\n extends React.ComponentPropsWithRef<typeof AriaMenuSection<T>> {}\n\n/**\n * Groups related menu items into logical sections within a [`Menu`](src/components/Menu/Menu/Menu.tsx).\n *\n * Typically contains a [`MenuSectionHeader`](src/components/Menu/MenuSectionHeader/MenuSectionHeader.tsx)\n * and one or more [`MenuItem`](src/components/Menu/MenuItem/MenuItem.tsx) components.\n *\n * @example\n * ```tsx\n * import { MenuSection, MenuSectionHeader, MenuItem } from \"@adgytec/web-ui-components\";\n *\n * <MenuSection>\n * <MenuSectionHeader>Document Actions</MenuSectionHeader>\n * <MenuItem label=\"Print\" />\n * <MenuItem label=\"Export as PDF\" />\n * </MenuSection>\n * ```\n */\nexport const MenuSection = <T extends object>({\n className,\n ...props\n}: MenuSectionProps<T>) => {\n return (\n <AriaMenuSection\n className={clsx(MenuSectionStyles, className)}\n {...props}\n data-menu-section\n />\n );\n};\n"],"mappings":";;;;;;A,aA2BaQ,KAAc,MAAA;CAAA,IAAAC,KAAA,GAAAT,EAAAA,EAAAA,CAAA,CAAA,GAAAU,GAAAC;CAAA,AAAAF,EAAA,OAAAG,KAGL,IAAAH,EAAA,IAAA,IAAAA,EAAA,OAHwB,eAAA,GAAAE,KAAAC,GAGxB,EAAA,KAAAA,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAJ,EAAA,OAAAC,IAGmC,IAAAD,EAAA,MAAlC,IAAAR,EAAKG,GAAmBM,CAAS,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAC;CAG/C,OAH+CL,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KADjD,IAAA,kBAACX,GAAD;EACe,WAAAW;EAAkC,GACzCF;EACJ,qBAAA;CAAiB,CAAA,GACnB,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAC,KAAA,IAAAL,EAAA,IAJFK;AAIE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Props for the [`MenuSectionHeader`](
|
|
2
|
+
* Props for the [`MenuSectionHeader`](src/components/Menu/MenuSectionHeader/MenuSectionHeader.tsx) component.
|
|
3
3
|
*/
|
|
4
4
|
export interface MenuSectionHeaderProps extends React.ComponentPropsWithRef<"header"> {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* Section header title rendered at the top of a [`MenuSection`](
|
|
7
|
+
* Section header title rendered at the top of a [`MenuSection`](src/components/Menu/MenuSection/MenuSection.tsx).
|
|
8
8
|
*
|
|
9
9
|
* Styled with Material Design 3 `labelLarge` typography and accessible section header semantics.
|
|
10
10
|
*
|
|
@@ -4,7 +4,7 @@ import { i as n } from "../../../chunks/core6";
|
|
|
4
4
|
import r from "clsx";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
import { Header as a } from "react-aria-components";
|
|
7
|
-
|
|
7
|
+
// src/components/Menu/MenuSectionHeader/MenuSectionHeader.tsx
|
|
8
8
|
var o = e(), s = (e) => {
|
|
9
9
|
let s = (0, o.c)(8), c, l;
|
|
10
10
|
s[0] === e ? (c = s[1], l = s[2]) : ({className: c, ...l} = e, s[0] = e, s[1] = c, s[2] = l);
|
|
@@ -16,7 +16,6 @@ var o = e(), s = (e) => {
|
|
|
16
16
|
...l
|
|
17
17
|
}), s[5] = l, s[6] = u, s[7] = d) : d = s[7], d;
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { s as MenuSectionHeader };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","MenuSectionHeaderStyles","clsx$1","import_compiler_runtime","MenuSectionHeader","$","className","props","t0","t1","typography","t2","Header"],"sources":["../../../../src/components/Menu/MenuSectionHeader/MenuSectionHeader.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Header } from \"react-aria-components\";\nimport { typography } from \"@/utils\";\nimport { MenuSectionHeaderStyles } from \"../core\";\n\n/**\n * Props for the [`MenuSectionHeader`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","MenuSectionHeaderStyles","clsx$1","import_compiler_runtime","MenuSectionHeader","$","className","props","t0","t1","typography","t2","Header"],"sources":["../../../../src/components/Menu/MenuSectionHeader/MenuSectionHeader.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Header } from \"react-aria-components\";\nimport { typography } from \"@/utils\";\nimport { MenuSectionHeaderStyles } from \"../core\";\n\n/**\n * Props for the [`MenuSectionHeader`](src/components/Menu/MenuSectionHeader/MenuSectionHeader.tsx) component.\n */\nexport interface MenuSectionHeaderProps\n extends React.ComponentPropsWithRef<\"header\"> {}\n\n/**\n * Section header title rendered at the top of a [`MenuSection`](src/components/Menu/MenuSection/MenuSection.tsx).\n *\n * Styled with Material Design 3 `labelLarge` typography and accessible section header semantics.\n *\n * @example\n * ```tsx\n * <MenuSectionHeader>Preferences</MenuSectionHeader>\n * ```\n */\nexport const MenuSectionHeader: React.FC<MenuSectionHeaderProps> = ({\n className,\n ...props\n}) => {\n return (\n <Header\n className={clsx(\n typography.labelLarge,\n MenuSectionHeaderStyles,\n className\n )}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;A,aAqBaM,KAAsD,MAAA;CAAA,IAAAC,KAAA,GAAAP,EAAAA,EAAAA,CAAA,CAAA,GAAAQ,GAAAC;CAAA,AAAAF,EAAA,OAAAG,KAGlE,IAAAH,EAAA,IAAA,IAAAA,EAAA,OAHmE,eAAA,GAAAE,KAAAC,GAGnE,EAAA,KAAAA,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAJ,EAAA,OAAAC,IAOY,IAAAD,EAAA,MAJU,IAAAN,EACPW,EAAU,YACVT,GACAK,CACJ,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAE;CAEH,OAFGN,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KALL,IAAA,kBAACG,GAAD;EACe,WAAAH;EAIV,GACGF;CAAK,CAAA,GACX,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAE,KAAA,IAAAN,EAAA,IAPFM;AAOE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Props for the [`MenuShortcut`](
|
|
2
|
+
* Props for the [`MenuShortcut`](src/components/Menu/MenuShortcut/MenuShortcut.tsx) component.
|
|
3
3
|
*/
|
|
4
4
|
export interface MenuShortcutProps extends React.ComponentPropsWithRef<"kbd"> {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* Keyboard shortcut badge (`<kbd>`) displayed at the trailing edge of a [`MenuItem`](
|
|
7
|
+
* Keyboard shortcut badge (`<kbd>`) displayed at the trailing edge of a [`MenuItem`](src/components/Menu/MenuItem/MenuItem.tsx).
|
|
8
8
|
*
|
|
9
9
|
* Styled with Material Design 3 `labelLarge` typography and appropriate contrast.
|
|
10
10
|
*
|
|
@@ -2,7 +2,7 @@ import { t as e } from "../../../chunks/compiler-runtime";
|
|
|
2
2
|
import { t } from "../../../chunks/base";
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Menu/MenuShortcut/MenuShortcut.tsx
|
|
6
6
|
var i = e(), a = (e) => {
|
|
7
7
|
let a = (0, i.c)(8), o, s;
|
|
8
8
|
a[0] === e ? (o = a[1], s = a[2]) : ({className: o, ...s} = e, a[0] = e, a[1] = o, a[2] = s);
|
|
@@ -14,7 +14,6 @@ var i = e(), a = (e) => {
|
|
|
14
14
|
...s
|
|
15
15
|
}), a[5] = s, a[6] = c, a[7] = l) : l = a[7], l;
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { a as MenuShortcut };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","clsx$1","import_compiler_runtime","MenuShortcut","$","className","props","t0","t1","typography","t2"],"sources":["../../../../src/components/Menu/MenuShortcut/MenuShortcut.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { typography } from \"@/utils/typography\";\n\n/**\n * Props for the [`MenuShortcut`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","clsx$1","import_compiler_runtime","MenuShortcut","$","className","props","t0","t1","typography","t2"],"sources":["../../../../src/components/Menu/MenuShortcut/MenuShortcut.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { typography } from \"@/utils/typography\";\n\n/**\n * Props for the [`MenuShortcut`](src/components/Menu/MenuShortcut/MenuShortcut.tsx) component.\n */\nexport interface MenuShortcutProps extends React.ComponentPropsWithRef<\"kbd\"> {}\n\n/**\n * Keyboard shortcut badge (`<kbd>`) displayed at the trailing edge of a [`MenuItem`](src/components/Menu/MenuItem/MenuItem.tsx).\n *\n * Styled with Material Design 3 `labelLarge` typography and appropriate contrast.\n *\n * @example\n * ```tsx\n * <MenuShortcut>⌘S</MenuShortcut>\n * ```\n */\nexport const MenuShortcut: React.FC<MenuShortcutProps> = ({\n className,\n ...props\n}) => {\n return (\n <kbd className={clsx(typography.labelLarge, className)} {...props} />\n );\n};\n"],"mappings":";;;;;A,aAkBaK,KAA4C,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAAO,GAAAC;CAAA,AAAAF,EAAA,OAAAG,KAGxD,IAAAH,EAAA,IAAA,IAAAA,EAAA,OAHyD,eAAA,GAAAE,KAAAC,GAGzD,EAAA,KAAAA,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAJ,EAAA,OAAAC,IAE6D,IAAAD,EAAA,MAAtC,IAAAL,EAAKU,EAAU,YAAaJ,CAAS,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAE;CAAe,OAAfN,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KAAtD,IAAA,kBAAA,OAAA;EAAgB,WAAAA;EAAsC,GAAMF;CAAK,CAAA,GAAI,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAE,KAAA,IAAAN,EAAA,IAArEM;AAAqE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Props for the [`MenuTrailingText`](
|
|
2
|
+
* Props for the [`MenuTrailingText`](src/components/Menu/MenuTrailingText/MenuTrailingText.tsx) component.
|
|
3
3
|
*/
|
|
4
4
|
export interface MenuTrailingTextProps extends React.ComponentPropsWithRef<"p"> {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* Secondary metadata or descriptive text placed at the trailing edge of a [`MenuItem`](
|
|
7
|
+
* Secondary metadata or descriptive text placed at the trailing edge of a [`MenuItem`](src/components/Menu/MenuItem/MenuItem.tsx).
|
|
8
8
|
*
|
|
9
9
|
* Styled with Material Design 3 `labelLarge` typography.
|
|
10
10
|
*
|
|
@@ -2,7 +2,7 @@ import { t as e } from "../../../chunks/compiler-runtime";
|
|
|
2
2
|
import { t } from "../../../chunks/base";
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Menu/MenuTrailingText/MenuTrailingText.tsx
|
|
6
6
|
var i = e(), a = (e) => {
|
|
7
7
|
let a = (0, i.c)(8), o, s;
|
|
8
8
|
a[0] === e ? (o = a[1], s = a[2]) : ({className: o, ...s} = e, a[0] = e, a[1] = o, a[2] = s);
|
|
@@ -14,7 +14,6 @@ var i = e(), a = (e) => {
|
|
|
14
14
|
...s
|
|
15
15
|
}), a[5] = s, a[6] = c, a[7] = l) : l = a[7], l;
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { a as MenuTrailingText };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","clsx$1","import_compiler_runtime","MenuTrailingText","$","className","props","t0","t1","typography","t2"],"sources":["../../../../src/components/Menu/MenuTrailingText/MenuTrailingText.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { typography } from \"@/utils/typography\";\n\n/**\n * Props for the [`MenuTrailingText`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","clsx$1","import_compiler_runtime","MenuTrailingText","$","className","props","t0","t1","typography","t2"],"sources":["../../../../src/components/Menu/MenuTrailingText/MenuTrailingText.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { typography } from \"@/utils/typography\";\n\n/**\n * Props for the [`MenuTrailingText`](src/components/Menu/MenuTrailingText/MenuTrailingText.tsx) component.\n */\nexport interface MenuTrailingTextProps\n extends React.ComponentPropsWithRef<\"p\"> {}\n\n/**\n * Secondary metadata or descriptive text placed at the trailing edge of a [`MenuItem`](src/components/Menu/MenuItem/MenuItem.tsx).\n *\n * Styled with Material Design 3 `labelLarge` typography.\n *\n * @example\n * ```tsx\n * <MenuTrailingText>New</MenuTrailingText>\n * ```\n */\nexport const MenuTrailingText: React.FC<MenuTrailingTextProps> = ({\n className,\n ...props\n}) => {\n return <p className={clsx(typography.labelLarge, className)} {...props} />;\n};\n"],"mappings":";;;;;A,aAmBaK,KAAoD,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAAO,GAAAC;CAAA,AAAAF,EAAA,OAAAG,KAGhE,IAAAH,EAAA,IAAA,IAAAA,EAAA,OAHiE,eAAA,GAAAE,KAAAC,GAGjE,EAAA,KAAAA,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAJ,EAAA,OAAAC,IAC8D,IAAAD,EAAA,MAAtC,IAAAL,EAAKU,EAAU,YAAaJ,CAAS,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAE;CAAe,OAAfN,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KAApD,IAAA,kBAAA,KAAA;EAAc,WAAAA;EAAsC,GAAMF;CAAK,CAAA,GAAI,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAE,KAAA,IAAAN,EAAA,IAAnEM;AAAmE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuTrigger as AriaMenuTrigger } from 'react-aria-components';
|
|
2
2
|
import { MenuColor, MenuLayout } from '../core';
|
|
3
3
|
/**
|
|
4
|
-
* Props for the [`MenuTrigger`](
|
|
4
|
+
* Props for the [`MenuTrigger`](src/components/Menu/MenuTrigger/MenuTrigger.tsx) component.
|
|
5
5
|
*/
|
|
6
6
|
export interface MenuTriggerProps extends React.ComponentPropsWithRef<typeof AriaMenuTrigger> {
|
|
7
7
|
/**
|
|
@@ -20,8 +20,8 @@ export interface MenuTriggerProps extends React.ComponentPropsWithRef<typeof Ari
|
|
|
20
20
|
/**
|
|
21
21
|
* Container component that manages menu visibility and trigger interaction states.
|
|
22
22
|
*
|
|
23
|
-
* Wraps React Aria's `MenuTrigger` and provides [`MenuConfigContext`](
|
|
24
|
-
* to configure the color scheme and layout density across descendant [`Menu`](
|
|
23
|
+
* Wraps React Aria's `MenuTrigger` and provides [`MenuConfigContext`](src/components/Menu/context/context.ts)
|
|
24
|
+
* to configure the color scheme and layout density across descendant [`Menu`](src/components/Menu/Menu/Menu.tsx) components.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```tsx
|
|
@@ -2,7 +2,7 @@ import { t as e } from "../../../chunks/compiler-runtime";
|
|
|
2
2
|
import { MenuConfigContext as t } from "../context/index.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { MenuTrigger as r } from "react-aria-components";
|
|
5
|
-
|
|
5
|
+
// src/components/Menu/MenuTrigger/MenuTrigger.tsx
|
|
6
6
|
var i = e(), a = (e) => {
|
|
7
7
|
let a = (0, i.c)(12), o, s, c;
|
|
8
8
|
a[0] === e ? (o = a[1], s = a[2], c = a[3]) : ({color: o, layout: s, ...c} = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c);
|
|
@@ -19,7 +19,6 @@ var i = e(), a = (e) => {
|
|
|
19
19
|
children: u
|
|
20
20
|
}), a[9] = l, a[10] = u, a[11] = d) : d = a[11], d;
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { a as MenuTrigger };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","AriaMenuTrigger","require_compiler_runtime","MenuTrigger$1","import_compiler_runtime","MenuTrigger","$","color","layout","props","t0","t1","t2","t3","MenuConfigContext"],"sources":["../../../../src/components/Menu/MenuTrigger/MenuTrigger.tsx"],"sourcesContent":["import { MenuTrigger as AriaMenuTrigger } from \"react-aria-components\";\nimport { MenuConfigContext } from \"../context\";\nimport type { MenuColor, MenuLayout } from \"../core\";\n\n/**\n * Props for the [`MenuTrigger`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","AriaMenuTrigger","require_compiler_runtime","MenuTrigger$1","import_compiler_runtime","MenuTrigger","$","color","layout","props","t0","t1","t2","t3","MenuConfigContext"],"sources":["../../../../src/components/Menu/MenuTrigger/MenuTrigger.tsx"],"sourcesContent":["import { MenuTrigger as AriaMenuTrigger } from \"react-aria-components\";\nimport { MenuConfigContext } from \"../context\";\nimport type { MenuColor, MenuLayout } from \"../core\";\n\n/**\n * Props for the [`MenuTrigger`](src/components/Menu/MenuTrigger/MenuTrigger.tsx) component.\n */\nexport interface MenuTriggerProps\n extends React.ComponentPropsWithRef<typeof AriaMenuTrigger> {\n /**\n * Sets the default color scheme for child menus.\n *\n * @default \"standard\"\n */\n color?: MenuColor;\n\n /**\n * Sets the default layout density for child menus.\n *\n * @default \"standard\"\n */\n layout?: MenuLayout;\n}\n\n/**\n * Container component that manages menu visibility and trigger interaction states.\n *\n * Wraps React Aria's `MenuTrigger` and provides [`MenuConfigContext`](src/components/Menu/context/context.ts)\n * to configure the color scheme and layout density across descendant [`Menu`](src/components/Menu/Menu/Menu.tsx) components.\n *\n * @example\n * ```tsx\n * import {\n * MenuTrigger,\n * Button,\n * MenuPopover,\n * Menu,\n * MenuItem,\n * } from \"@adgytec/web-ui-components\";\n *\n * <MenuTrigger color=\"vibrant\">\n * <Button label=\"Open Menu\" />\n * <MenuPopover>\n * <Menu>\n * <MenuItem label=\"Item 1\" />\n * <MenuItem label=\"Item 2\" />\n * </Menu>\n * </MenuPopover>\n * </MenuTrigger>\n * ```\n */\nexport const MenuTrigger: React.FC<MenuTriggerProps> = ({\n color,\n layout,\n ...props\n}) => {\n return (\n <MenuConfigContext value={{ color, layout }}>\n <AriaMenuTrigger {...props} />\n </MenuConfigContext>\n );\n};\n"],"mappings":";;;;;A,aAmDaK,KAA0C,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,EAAA,GAAAO,GAAAC,GAAAC;CAAA,AAAAH,EAAA,OAAAI,KAItD,IAAAJ,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OAJuD,sBAAA,GAAAG,KAAAC,GAIvD,EAAA,KAAAA,GAAA,EAAA,KAAAH,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAL,EAAA,OAAAC,KAAAD,EAAA,OAAAE,KAEiC,IAAA;EAAA;EAAA;CAAgB,GAAC,EAAA,KAAAD,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAG,KAAA,IAAAL,EAAA;CAAA,IAAAM;CAAA,AAAAN,EAAA,OAAAG,IACT,IAAAH,EAAA,MAA9B,IAAA,kBAACL,GAAD,EAAgB,GAAKQ,EAAK,CAAA,GAAI,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAC;CACd,OADcP,EAAA,OAAAK,KAAAL,EAAA,QAAAM,KADlC,IAAA,kBAACE,GAAD;EAA0B,OAAAH;EACtB,UAAAC;CADc,CAAA,GAEE,EAAA,KAAAD,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAC,KAAA,IAAAP,EAAA,KAFpBO;AAEoB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Popover } from '../../Popover';
|
|
2
2
|
/**
|
|
3
|
-
* Props for the [`SubmenuPopover`](
|
|
3
|
+
* Props for the [`SubmenuPopover`](src/components/Menu/SubmenuPopover/SubmenuPopover.tsx) component.
|
|
4
4
|
*/
|
|
5
5
|
export interface SubmenuPopoverProps extends React.ComponentPropsWithRef<typeof Popover> {
|
|
6
6
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as SubmenuPopover };
|
|
1
|
+
export { t as SubmenuPopover } from "../../../chunks/SubmenuPopover";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MenuColor, MenuLayout } from '../core';
|
|
2
2
|
/**
|
|
3
|
-
* Configuration options propagated from [`MenuTrigger`](
|
|
3
|
+
* Configuration options propagated from [`MenuTrigger`](src/components/Menu/MenuTrigger/MenuTrigger.tsx)
|
|
4
4
|
* down to child menus.
|
|
5
5
|
*/
|
|
6
6
|
export type MenuConfigContextValue = {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { createContext as e, useContext as t } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/Menu/context/context.ts
|
|
3
3
|
var n = e({});
|
|
4
|
-
|
|
5
|
-
//#region src/components/Menu/context/useMenuConfigContext.ts
|
|
4
|
+
// src/components/Menu/context/useMenuConfigContext.ts
|
|
6
5
|
function r() {
|
|
7
6
|
return t(n);
|
|
8
7
|
}
|
|
9
|
-
//#endregion
|
|
10
8
|
export { n as MenuConfigContext, r as useMenuConfigContext };
|
|
11
9
|
|
|
12
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["MenuConfigContext","createContext","useMenuConfigContext","useContext"],"sources":["../../../../src/components/Menu/context/context.ts","../../../../src/components/Menu/context/useMenuConfigContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { MenuColor, MenuLayout } from \"../core\";\n\n/**\n * Configuration options propagated from [`MenuTrigger`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["MenuConfigContext","createContext","useMenuConfigContext","useContext"],"sources":["../../../../src/components/Menu/context/context.ts","../../../../src/components/Menu/context/useMenuConfigContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { MenuColor, MenuLayout } from \"../core\";\n\n/**\n * Configuration options propagated from [`MenuTrigger`](src/components/Menu/MenuTrigger/MenuTrigger.tsx)\n * down to child menus.\n */\nexport type MenuConfigContextValue = {\n /**\n * Color scheme for the menu surface and items.\n */\n color?: MenuColor;\n /**\n * Layout density for the menu items.\n */\n layout?: MenuLayout;\n};\n\n/**\n * React context providing menu configuration (`color` and `layout`) to nested menus.\n */\nexport const MenuConfigContext = createContext<MenuConfigContextValue>({});\n","import { useContext } from \"react\";\nimport { MenuConfigContext } from \"./context\";\n\n/**\n * Hook to access the current menu configuration (`color` and `layout`) provided by an ancestor\n * [`MenuTrigger`](src/components/Menu/MenuTrigger/MenuTrigger.tsx).\n *\n * @returns The current {@link MenuConfigContextValue}.\n */\nexport function useMenuConfigContext() {\n return useContext(MenuConfigContext);\n}\n"],"mappings":";;AAqBA,IAAaA,IAAoBC,EAAsC,CAAC,CAAC;;ACZzE,SAAOC,IAAA;CAAA,OACIC,EAAWH,CAAiB;AAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hook to access the current menu configuration (`color` and `layout`) provided by an ancestor
|
|
3
|
-
* [`MenuTrigger`](
|
|
3
|
+
* [`MenuTrigger`](src/components/Menu/MenuTrigger/MenuTrigger.tsx).
|
|
4
4
|
*
|
|
5
5
|
* @returns The current {@link MenuConfigContextValue}.
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@ export declare const menuItemBaseColor: string;
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const menuItemLabelColor: string;
|
|
15
15
|
/**
|
|
16
|
-
* Resolves the CSS class corresponding to a given [`MenuColor`](
|
|
16
|
+
* Resolves the CSS class corresponding to a given [`MenuColor`](src/components/Menu/core/color.ts#L8) variant.
|
|
17
17
|
*
|
|
18
18
|
* @param color - The selected color variant.
|
|
19
19
|
* @returns The CSS class name.
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { u as MenuBaseLayout, t as MenuItemIconSize, d as MenuItemLeadingStyles, o as MenuItemStyles, l as MenuItemTrailingStyles, i as MenuSectionHeaderStyles, e as MenuSectionStyles, s as MenuStyles, f as menuBaseColor, n as menuColorConfig, r as menuItemBaseColor, c as menuItemLabelColor, a as menuLayoutConfig };
|
|
1
|
+
export { s as MenuBaseLayout, c as MenuItemIconSize, t as MenuItemLeadingStyles, n as MenuItemStyles, r as MenuItemTrailingStyles, i as MenuSectionHeaderStyles, a as MenuSectionStyles, o as MenuStyles, u as menuBaseColor, d as menuColorConfig, f as menuItemBaseColor, p as menuItemLabelColor, l as menuLayoutConfig } from "../../../chunks/core6";
|
|
@@ -13,7 +13,7 @@ export declare const MenuItemIconSize = 20;
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const MenuBaseLayout: string;
|
|
15
15
|
/**
|
|
16
|
-
* Resolves the CSS class corresponding to a given [`MenuLayout`](
|
|
16
|
+
* Resolves the CSS class corresponding to a given [`MenuLayout`](src/components/Menu/core/layout.ts#L8) variant.
|
|
17
17
|
*
|
|
18
18
|
* @param layout - The layout density variant.
|
|
19
19
|
* @returns The CSS class name.
|
|
@@ -4,7 +4,7 @@ import { NavigationProps } from './types';
|
|
|
4
4
|
*
|
|
5
5
|
* Coordinates navigation header titles, dialog/drawer modal close buttons, scroll position synchronization,
|
|
6
6
|
* and context providers for link/button active states and portal-rendered sub-navigation panels.
|
|
7
|
-
* Automatically provides a [`NavigationState`](
|
|
7
|
+
* Automatically provides a [`NavigationState`](src/components/Navigation/NavigationState/NavigationState.tsx)
|
|
8
8
|
* if not already nested within one.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
@@ -18,7 +18,7 @@ export type NavigationContextType = {
|
|
|
18
18
|
export declare const NavigationContext: import('react').Context<NavigationContextType | null>;
|
|
19
19
|
/**
|
|
20
20
|
* Hook to access active state predicates (`isLinkActive` and `isButtonActive`) from the parent
|
|
21
|
-
* [`Navigation`](
|
|
21
|
+
* [`Navigation`](src/components/Navigation/Navigation/Navigation.tsx) container.
|
|
22
22
|
*
|
|
23
23
|
* @throws If called outside of a `Navigation` component.
|
|
24
24
|
* @returns The current {@link NavigationContextType}.
|
|
@@ -13,9 +13,9 @@ export type NavigationRenderingContextType = {
|
|
|
13
13
|
export declare const NavigationRenderingContext: import('react').Context<NavigationRenderingContextType | null>;
|
|
14
14
|
/**
|
|
15
15
|
* Hook to access the parent navigation container element used for portal mounting of
|
|
16
|
-
* [`SubNavigation`](
|
|
16
|
+
* [`SubNavigation`](src/components/Navigation/SubNavigation/SubNavigation/SubNavigation.tsx).
|
|
17
17
|
*
|
|
18
|
-
* @throws If called outside of a [`Navigation`](
|
|
18
|
+
* @throws If called outside of a [`Navigation`](src/components/Navigation/Navigation/Navigation.tsx) component.
|
|
19
19
|
* @returns The current {@link NavigationRenderingContextType}.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useNavigationContainer(): NavigationRenderingContextType;
|
|
@@ -8,7 +8,7 @@ export type IsLinkActive = (href?: string) => boolean;
|
|
|
8
8
|
*/
|
|
9
9
|
export type IsButtonActive = (prefix?: string) => boolean;
|
|
10
10
|
/**
|
|
11
|
-
* Props for the root [`Navigation`](
|
|
11
|
+
* Props for the root [`Navigation`](src/components/Navigation/Navigation/Navigation.tsx) container component.
|
|
12
12
|
*/
|
|
13
13
|
export interface NavigationProps extends React.ComponentPropsWithRef<"nav"> {
|
|
14
14
|
/**
|
|
@@ -16,12 +16,12 @@ export interface NavigationProps extends React.ComponentPropsWithRef<"nav"> {
|
|
|
16
16
|
*/
|
|
17
17
|
label?: ReactNode;
|
|
18
18
|
/**
|
|
19
|
-
* Callback function used by child [`NavigationLink`](
|
|
19
|
+
* Callback function used by child [`NavigationLink`](src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.tsx)
|
|
20
20
|
* components to determine their active state from their `href`.
|
|
21
21
|
*/
|
|
22
22
|
isLinkActive?: IsLinkActive;
|
|
23
23
|
/**
|
|
24
|
-
* Callback function used by child [`NavigationButton`](
|
|
24
|
+
* Callback function used by child [`NavigationButton`](src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.tsx)
|
|
25
25
|
* components to determine their active state from their `prefix`.
|
|
26
26
|
*/
|
|
27
27
|
isButtonActive?: IsButtonActive;
|
|
@@ -2,7 +2,7 @@ import { NavigationButtonProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Button navigation item component.
|
|
4
4
|
*
|
|
5
|
-
* Typically used as an action trigger within a [`SubNavigationTrigger`](
|
|
5
|
+
* Typically used as an action trigger within a [`SubNavigationTrigger`](src/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.tsx)
|
|
6
6
|
* to open a nested sub-navigation panel. Automatically evaluates active state matching based on its `prefix`,
|
|
7
7
|
* switches between resting and active icons, and inherits labels from parent triggers.
|
|
8
8
|
*
|
|
@@ -7,7 +7,7 @@ import { clsx as o } from "clsx";
|
|
|
7
7
|
import { useContext as s } from "react";
|
|
8
8
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
9
|
import { Button as u } from "react-aria-components";
|
|
10
|
-
|
|
10
|
+
// src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.tsx
|
|
11
11
|
var d = e(), f = (e) => {
|
|
12
12
|
let f = (0, d.c)(24), p, m, h, g, _, v, y;
|
|
13
13
|
f[0] === e ? (p = f[1], m = f[2], h = f[3], g = f[4], _ = f[5], v = f[6], y = f[7]) : ({className: m, icon: h, activeIcon: p, label: _, prefix: v, isActive: g, ...y} = e, f[0] = e, f[1] = p, f[2] = m, f[3] = h, f[4] = g, f[5] = _, f[6] = v, f[7] = y);
|
|
@@ -30,7 +30,6 @@ var d = e(), f = (e) => {
|
|
|
30
30
|
children: [D, w]
|
|
31
31
|
}), f[18] = w, f[19] = y, f[20] = T, f[21] = E, f[22] = D, f[23] = O) : O = f[23], O;
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
export { f as NavigationButton };
|
|
35
34
|
|
|
36
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["icon","activeIcon","buttonActive","buttonLabel","_c","require_compiler_runtime","NavigationItemStyles","NavigationItemLabelTypography","import_compiler_runtime","NavigationButton","$","activeIcon","className","icon","isActive","label","prefix","props","t0","useNavigationContext","t1","isButtonActive","buttonActive","triggerLabel","useContext","NavLabelContext","buttonLabel","t2","clsx","renderProps","t3","t4","NavigationItemIconRenderer","t5","Button"],"sources":["../../../../../src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { useContext } from \"react\";\nimport { Button } from \"react-aria-components\";\nimport { NavLabelContext } from \"../../core\";\nimport { useNavigationContext } from \"../../Navigation/navContext\";\nimport { NavigationItemLabelTypography, NavigationItemStyles } from \"../core\";\nimport { NavigationItemIconRenderer } from \"../NavigationItemIconRenderer\";\nimport type { NavigationButtonProps } from \"./types\";\n\n/**\n * Button navigation item component.\n *\n * Typically used as an action trigger within a [`SubNavigationTrigger`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["icon","activeIcon","buttonActive","buttonLabel","_c","require_compiler_runtime","NavigationItemStyles","NavigationItemLabelTypography","import_compiler_runtime","NavigationButton","$","activeIcon","className","icon","isActive","label","prefix","props","t0","useNavigationContext","t1","isButtonActive","buttonActive","triggerLabel","useContext","NavLabelContext","buttonLabel","t2","clsx","renderProps","t3","t4","NavigationItemIconRenderer","t5","Button"],"sources":["../../../../../src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { useContext } from \"react\";\nimport { Button } from \"react-aria-components\";\nimport { NavLabelContext } from \"../../core\";\nimport { useNavigationContext } from \"../../Navigation/navContext\";\nimport { NavigationItemLabelTypography, NavigationItemStyles } from \"../core\";\nimport { NavigationItemIconRenderer } from \"../NavigationItemIconRenderer\";\nimport type { NavigationButtonProps } from \"./types\";\n\n/**\n * Button navigation item component.\n *\n * Typically used as an action trigger within a [`SubNavigationTrigger`](src/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.tsx)\n * to open a nested sub-navigation panel. Automatically evaluates active state matching based on its `prefix`,\n * switches between resting and active icons, and inherits labels from parent triggers.\n *\n * @example\n * ```tsx\n * import { NavigationButton } from \"@adgytec/web-ui-components\";\n * import { Briefcase } from \"lucide-react\";\n *\n * <NavigationButton icon={Briefcase} prefix=\"/projects\" label=\"Projects\" />\n * ```\n */\nexport const NavigationButton: React.FC<NavigationButtonProps> = ({\n className,\n icon,\n activeIcon,\n label,\n prefix,\n isActive,\n ...props\n}) => {\n const { isButtonActive } = useNavigationContext();\n const buttonActive =\n typeof isActive === \"function\"\n ? isActive(prefix)\n : (isActive ?? isButtonActive?.(prefix));\n\n const triggerLabel = useContext(NavLabelContext);\n const buttonLabel = label ?? triggerLabel;\n\n return (\n <Button\n className={(renderProps) =>\n clsx(\n NavigationItemStyles,\n NavigationItemLabelTypography,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n slot=\"open\"\n data-active={buttonActive || undefined}\n >\n <NavigationItemIconRenderer\n icon={icon}\n activeIcon={activeIcon}\n isActive={buttonActive}\n />\n {buttonLabel}\n </Button>\n );\n};\n"],"mappings":";;;;;;;;;;A,aAwBaS,KAAoD,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,EAAA,GAAAO,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;CAAA,AAAAP,EAAA,OAAAQ,KAQhE,IAAAR,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OARiE,yEAAA,GAAAO,KAAAC,GAQjE,EAAA,KAAAA,GAAA,EAAA,KAAAP,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CACG,IAAA,EAAA,sBAA2BE,EAAqB,GAAEC;CAAA,AAAAV,EAAA,OAAAI,KAAAJ,EAAA,OAAAW,KAAAX,EAAA,QAAAM,KAE9C,IAAA,OAAOF,KAAa,aACdA,EAASE,CAC4B,IAApCF,KAAYO,IAAiBL,CAAM,GAAE,EAAA,KAAAF,GAAA,EAAA,KAAAO,GAAA,EAAA,MAAAL,GAAA,EAAA,MAAAI,KAAA,IAAAV,EAAA;CAHhD,IAAAY,IACIF,GAIJG,IAAqBC,EAAWC,CAAe,GAC/CC,IAAoBX,KAAAQ,GAAsBI;CAAA,AAAAjB,EAAA,QAAAE,IAW7B,IAAAF,EAAA,OAPM,KAAA,MACPkB,EACItB,GACAC,GACA,OAAOK,KAAc,aACfA,EAAUiB,CACF,IAFdjB,CAGJ,GAAC,EAAA,MAAAA,GAAA,EAAA,MAAAe;CAIQ,IAAAG,IAAAR,KAAA,KAAA,GAAyBS;CAAA,AAAArB,EAAA,QAAAC,KAAAD,EAAA,QAAAY,KAAAZ,EAAA,QAAAG,KAEtC,IAAA,kBAACmB,GAAD;EACU;EACM;EACF9B,UAAAoB;CAAY,CAAA,GACxB,EAAA,MAAAX,GAAA,EAAA,MAAAW,GAAA,EAAA,MAAAT,GAAA,EAAA,MAAAkB,KAAA,IAAArB,EAAA;CAAA,IAAAuB;CAEG,OAFHvB,EAAA,QAAAgB,KAAAhB,EAAA,QAAAO,KAAAP,EAAA,QAAAiB,KAAAjB,EAAA,QAAAoB,KAAApB,EAAA,QAAAqB,KAlBN,IAAA,kBAACG,GAAD;EACe,WAAAP;EAON,GAEDV;EACC,MAAA;EACQ,eAAAa;EAZjB,UAAA,CAcIC,GAKCL,CAnBE;C,IAoBE,EAAA,MAAAA,GAAA,EAAA,MAAAT,GAAA,EAAA,MAAAU,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAE,KAAA,IAAAvB,EAAA,KApBTuB;AAoBS"}
|
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { Button } from 'react-aria-components';
|
|
3
3
|
import { NavigationItemProps } from '../core';
|
|
4
4
|
/**
|
|
5
|
-
* Props for the [`NavigationButton`](
|
|
5
|
+
* Props for the [`NavigationButton`](src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.tsx) component.
|
|
6
6
|
*/
|
|
7
7
|
export interface NavigationButtonProps extends Omit<React.ComponentPropsWithRef<typeof Button>, "children" | "slot">, Omit<NavigationItemProps, "label"> {
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@ export interface NavigationButtonProps extends Omit<React.ComponentPropsWithRef<
|
|
|
10
10
|
*/
|
|
11
11
|
prefix?: string;
|
|
12
12
|
/**
|
|
13
|
-
* Button label content. If omitted, falls back to the label provided to [`SubNavigationTrigger`](
|
|
13
|
+
* Button label content. If omitted, falls back to the label provided to [`SubNavigationTrigger`](src/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.tsx).
|
|
14
14
|
*/
|
|
15
15
|
label?: ReactNode;
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
2
|
/**
|
|
3
|
-
* Props for the [`NavigationItemIconRenderer`](
|
|
3
|
+
* Props for the [`NavigationItemIconRenderer`](src/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.tsx) component.
|
|
4
4
|
*/
|
|
5
5
|
export interface NavigationItemIconRendererProps {
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../../../../chunks/compiler-runtime";
|
|
2
2
|
import { t } from "../../../../chunks/Icon";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.tsx
|
|
5
5
|
var r = e(), i = (e) => {
|
|
6
6
|
let i = (0, r.c)(2), { icon: a } = e, o;
|
|
7
7
|
return i[0] === a ? o = i[1] : (o = /* @__PURE__ */ n(t, {
|
|
@@ -28,7 +28,6 @@ var r = e(), i = (e) => {
|
|
|
28
28
|
}
|
|
29
29
|
return null;
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { a as NavigationItemIconRenderer };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["icon","activeIcon","_c","require_compiler_runtime","import_compiler_runtime","IconRenderer","$","t0","t1","icon","Icon","NavigationItemIconRenderer","isActive","activeIcon"],"sources":["../../../../../src/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.tsx"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\nimport { Icon } from \"@/components/Icon\";\n\nconst IconRenderer: React.FC<{ icon: LucideIcon }> = ({ icon }) => {\n return <Icon icon={icon} size={24} data-nav-icon />;\n};\n\n/**\n * Props for the [`NavigationItemIconRenderer`](
|
|
1
|
+
{"version":3,"file":"index.js","names":["icon","activeIcon","_c","require_compiler_runtime","import_compiler_runtime","IconRenderer","$","t0","t1","icon","Icon","NavigationItemIconRenderer","isActive","activeIcon"],"sources":["../../../../../src/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.tsx"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\nimport { Icon } from \"@/components/Icon\";\n\nconst IconRenderer: React.FC<{ icon: LucideIcon }> = ({ icon }) => {\n return <Icon icon={icon} size={24} data-nav-icon />;\n};\n\n/**\n * Props for the [`NavigationItemIconRenderer`](src/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.tsx) component.\n */\nexport interface NavigationItemIconRendererProps {\n /**\n * Icon displayed when the item is in its inactive/resting state.\n */\n icon?: LucideIcon;\n\n /**\n * Alternate icon displayed when the item is active.\n */\n activeIcon?: LucideIcon;\n\n /**\n * Whether the parent navigation item is currently active.\n */\n isActive?: boolean;\n}\n\n/**\n * Internal icon renderer for navigation items.\n *\n * Renders a standard 24px icon with automatic fallback between `activeIcon` (when `isActive` is true)\n * and the resting `icon`.\n */\nexport const NavigationItemIconRenderer: React.FC<\n NavigationItemIconRendererProps\n> = ({ icon, activeIcon, isActive }) => {\n if (isActive) {\n if (activeIcon) return <IconRenderer icon={activeIcon} />;\n if (icon) return <IconRenderer icon={icon} />;\n\n return null;\n }\n\n if (icon) return <IconRenderer icon={icon} />;\n return null;\n};\n"],"mappings":";;;;A,aAGMK,KAA+C,MAAA;CAAA,IAAAC,KAAA,GAAAJ,EAAAA,EAAAA,CAAA,CAAA,GAAC,EAAA,YAAAK,GAAQC;CACP,OADOF,EAAA,OAAAG,IACP,IAAAH,EAAA,MAA5C,IAAA,kBAACI,GAAD;EAAY;EAAY,MAAA;EAAI,iBAAA;CAAa,CAAA,GAAG,EAAA,KAAAD,GAAA,EAAA,KAAAD,IAA5CA;AAA4C,GA6B1CG,KAET,MAAA;CAAA,IAAAL,KAAA,GAAAJ,EAAAA,EAAAA,CAAA,CAAA,GAAC,EAAA,SAAA,eAAA,gBAAAK;CACD,IAAIK,GAAQ;EACR,IAAIC,GAAU;GAAA,IAAAL;GAA2C,OAA3CF,EAAA,OAAAO,IAA2C,IAAAP,EAAA,MAAlC,IAAA,kBAACD,GAAD,EAAoBJ,MAAAY,EAAU,CAAA,GAAI,EAAA,KAAAA,GAAA,EAAA,KAAAL,IAAlCA;EAAkC;EACzD,IAAIC,GAAI;GAAA,IAAAD;GAAqC,OAArCF,EAAA,OAAAG,IAAqC,IAAAH,EAAA,MAA5B,IAAA,kBAACD,GAAD,EAAoB,QAAI,CAAA,GAAI,EAAA,KAAAI,GAAA,EAAA,KAAAD,IAA5BA;EAA4B;EAAC,OAEvC;CAAI;CAGf,IAAIC,GAAI;EAAA,IAAAD;EAAqC,OAArCF,EAAA,OAAAG,IAAqC,IAAAH,EAAA,MAA5B,IAAA,kBAACD,GAAD,EAAoB,QAAI,CAAA,GAAI,EAAA,KAAAI,GAAA,EAAA,KAAAD,IAA5BA;CAA4B;CAAC,OACvC;AAAI"}
|
|
@@ -5,7 +5,7 @@ import { NavigationItemIconRenderer as i } from "../NavigationItemIconRenderer/i
|
|
|
5
5
|
import a from "clsx";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
import { Link as c } from "react-aria-components";
|
|
8
|
-
|
|
8
|
+
// src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.tsx
|
|
9
9
|
var l = e(), u = (e) => {
|
|
10
10
|
let u = (0, l.c)(25), d, f, p, m, h, g, _;
|
|
11
11
|
u[0] === e ? (d = u[1], f = u[2], p = u[3], m = u[4], h = u[5], g = u[6], _ = u[7]) : ({className: f, icon: m, activeIcon: d, label: g, href: p, isActive: h, ..._} = e, u[0] = e, u[1] = d, u[2] = f, u[3] = p, u[4] = m, u[5] = h, u[6] = g, u[7] = _);
|
|
@@ -28,7 +28,6 @@ var l = e(), u = (e) => {
|
|
|
28
28
|
children: [C, g]
|
|
29
29
|
}), u[18] = p, u[19] = g, u[20] = _, u[21] = x, u[22] = S, u[23] = C, u[24] = w) : w = u[24], w;
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { u as NavigationLink };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["icon","activeIcon","linkActive","href","label","_c","clsx","require_compiler_runtime","useNavigationContext","NavigationItemLabelTypography","clsx$1","import_compiler_runtime","NavigationLink","$","activeIcon","className","href","icon","isActive","label","props","t0","t1","isLinkActive","linkActive","t2","NavigationItemStyles","renderProps","t3","t4","NavigationItemIconRenderer","t5","Link"],"sources":["../../../../../src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { useNavigationContext } from \"../../Navigation/navContext\";\nimport { NavigationItemLabelTypography, NavigationItemStyles } from \"../core\";\nimport { NavigationItemIconRenderer } from \"../NavigationItemIconRenderer\";\nimport type { NavigationLinkProps } from \"./types\";\n\n/**\n * Anchor-based navigation item component.\n *\n * Renders an accessible navigation link that evaluates active URL state matching (using `href`),\n * automatically toggles between resting and active icons, and applies Material Design 3\n * active state pill backgrounds.\n *\n * @example\n * ```tsx\n * import { NavigationLink } from \"@adgytec/web-ui-components\";\n * import { Home } from \"lucide-react\";\n *\n * <NavigationLink href=\"/dashboard\" label=\"Dashboard\" icon={Home} />\n * ```\n */\nexport const NavigationLink: React.FC<NavigationLinkProps> = ({\n className,\n icon,\n activeIcon,\n label,\n href,\n isActive,\n ...props\n}) => {\n const { isLinkActive } = useNavigationContext();\n const linkActive =\n typeof isActive === \"function\"\n ? isActive(href)\n : (isActive ?? isLinkActive?.(href));\n\n return (\n <Link\n className={(renderProps) =>\n clsx(\n NavigationItemStyles,\n NavigationItemLabelTypography,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n href={href}\n {...props}\n data-active={linkActive || undefined}\n >\n <NavigationItemIconRenderer\n icon={icon}\n activeIcon={activeIcon}\n isActive={linkActive}\n />\n {label}\n </Link>\n );\n};\n"],"mappings":";;;;;;;;aAsBaY,KAAgD,MAAA;CAAA,IAAAC,KAAA,GAAAR,EAAAA,EAAAA,CAAA,EAAA,GAAAS,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;CAAA,AAAAP,EAAA,OAAAQ,KAQ5D,IAAAR,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OAR6D,uEAAA,GAAAO,KAAAC,GAQ7D,EAAA,KAAAA,GAAA,EAAA,KAAAP,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CACG,IAAA,EAAA,oBAAyBZ,EAAqB,GAAEc;CAAA,AAAAT,EAAA,OAAAG,KAAAH,EAAA,OAAAK,KAAAL,EAAA,QAAAU,KAE5C,IAAA,OAAOL,KAAa,aACdA,EAASF,CACwB,IAAhCE,KAAYK,IAAeP,CAAI,GAAE,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,MAAAK,GAAA,EAAA,MAAAD,KAAA,IAAAT,EAAA;CAH5C,IAAAW,IACIF,GAEyCG;CAAA,AAAAZ,EAAA,QAAAE,IAWhC,IAAAF,EAAA,OAPM,KAAA,MACPP,EACIoB,GACAjB,GACA,OAAOM,KAAc,aACfA,EAAUY,CACF,IAFdZ,CAGJ,GAAC,EAAA,MAAAA,GAAA,EAAA,MAAAU;CAIQ,IAAAG,IAAAJ,KAAA,KAAA,GAAuBK;CAAA,AAAAhB,EAAA,QAAAC,KAAAD,EAAA,QAAAI,KAAAJ,EAAA,QAAAW,KAEpC,IAAA,kBAACM,GAAD;EACU;EACM;EACF5B,UAAAsB;CAAU,CAAA,GACtB,EAAA,MAAAV,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAO,GAAA,EAAA,MAAAK,KAAA,IAAAhB,EAAA;CAAA,IAAAkB;CAEC,OAFDlB,EAAA,QAAAG,KAAAH,EAAA,QAAAM,KAAAN,EAAA,QAAAO,KAAAP,EAAA,QAAAY,KAAAZ,EAAA,QAAAe,KAAAf,EAAA,QAAAgB,KAlBN,IAAA,kBAACG,GAAD;EACe,WAAAP;EASL;EAAI,GACNL;EACS,eAAAQ;EAZjB,UAAA,CAcIC,GAKCV,CAnBA;
|
|
1
|
+
{"version":3,"file":"index.js","names":["icon","activeIcon","linkActive","href","label","_c","clsx","require_compiler_runtime","useNavigationContext","NavigationItemLabelTypography","clsx$1","import_compiler_runtime","NavigationLink","$","activeIcon","className","href","icon","isActive","label","props","t0","t1","isLinkActive","linkActive","t2","NavigationItemStyles","renderProps","t3","t4","NavigationItemIconRenderer","t5","Link"],"sources":["../../../../../src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { useNavigationContext } from \"../../Navigation/navContext\";\nimport { NavigationItemLabelTypography, NavigationItemStyles } from \"../core\";\nimport { NavigationItemIconRenderer } from \"../NavigationItemIconRenderer\";\nimport type { NavigationLinkProps } from \"./types\";\n\n/**\n * Anchor-based navigation item component.\n *\n * Renders an accessible navigation link that evaluates active URL state matching (using `href`),\n * automatically toggles between resting and active icons, and applies Material Design 3\n * active state pill backgrounds.\n *\n * @example\n * ```tsx\n * import { NavigationLink } from \"@adgytec/web-ui-components\";\n * import { Home } from \"lucide-react\";\n *\n * <NavigationLink href=\"/dashboard\" label=\"Dashboard\" icon={Home} />\n * ```\n */\nexport const NavigationLink: React.FC<NavigationLinkProps> = ({\n className,\n icon,\n activeIcon,\n label,\n href,\n isActive,\n ...props\n}) => {\n const { isLinkActive } = useNavigationContext();\n const linkActive =\n typeof isActive === \"function\"\n ? isActive(href)\n : (isActive ?? isLinkActive?.(href));\n\n return (\n <Link\n className={(renderProps) =>\n clsx(\n NavigationItemStyles,\n NavigationItemLabelTypography,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n href={href}\n {...props}\n data-active={linkActive || undefined}\n >\n <NavigationItemIconRenderer\n icon={icon}\n activeIcon={activeIcon}\n isActive={linkActive}\n />\n {label}\n </Link>\n );\n};\n"],"mappings":";;;;;;;;A,aAsBaY,KAAgD,MAAA;CAAA,IAAAC,KAAA,GAAAR,EAAAA,EAAAA,CAAA,EAAA,GAAAS,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;CAAA,AAAAP,EAAA,OAAAQ,KAQ5D,IAAAR,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,OAR6D,uEAAA,GAAAO,KAAAC,GAQ7D,EAAA,KAAAA,GAAA,EAAA,KAAAP,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC;CACG,IAAA,EAAA,oBAAyBZ,EAAqB,GAAEc;CAAA,AAAAT,EAAA,OAAAG,KAAAH,EAAA,OAAAK,KAAAL,EAAA,QAAAU,KAE5C,IAAA,OAAOL,KAAa,aACdA,EAASF,CACwB,IAAhCE,KAAYK,IAAeP,CAAI,GAAE,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,MAAAK,GAAA,EAAA,MAAAD,KAAA,IAAAT,EAAA;CAH5C,IAAAW,IACIF,GAEyCG;CAAA,AAAAZ,EAAA,QAAAE,IAWhC,IAAAF,EAAA,OAPM,KAAA,MACPP,EACIoB,GACAjB,GACA,OAAOM,KAAc,aACfA,EAAUY,CACF,IAFdZ,CAGJ,GAAC,EAAA,MAAAA,GAAA,EAAA,MAAAU;CAIQ,IAAAG,IAAAJ,KAAA,KAAA,GAAuBK;CAAA,AAAAhB,EAAA,QAAAC,KAAAD,EAAA,QAAAI,KAAAJ,EAAA,QAAAW,KAEpC,IAAA,kBAACM,GAAD;EACU;EACM;EACF5B,UAAAsB;CAAU,CAAA,GACtB,EAAA,MAAAV,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAO,GAAA,EAAA,MAAAK,KAAA,IAAAhB,EAAA;CAAA,IAAAkB;CAEC,OAFDlB,EAAA,QAAAG,KAAAH,EAAA,QAAAM,KAAAN,EAAA,QAAAO,KAAAP,EAAA,QAAAY,KAAAZ,EAAA,QAAAe,KAAAf,EAAA,QAAAgB,KAlBN,IAAA,kBAACG,GAAD;EACe,WAAAP;EASL;EAAI,GACNL;EACS,eAAAQ;EAZjB,UAAA,CAcIC,GAKCV,CAnBA;C,IAoBE,EAAA,MAAAH,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAK,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAE,KAAA,IAAAlB,EAAA,KApBPkB;AAoBO"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Link } from 'react-aria-components';
|
|
2
2
|
import { NavigationItemProps } from '../core';
|
|
3
3
|
/**
|
|
4
|
-
* Props for the [`NavigationLink`](
|
|
4
|
+
* Props for the [`NavigationLink`](src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.tsx) component.
|
|
5
5
|
*
|
|
6
|
-
* Extends React Aria's `Link` properties and [`NavigationItemProps`](
|
|
6
|
+
* Extends React Aria's `Link` properties and [`NavigationItemProps`](src/components/Navigation/NavigationItem/core/navigationItem.ts#L8).
|
|
7
7
|
*/
|
|
8
8
|
export interface NavigationLinkProps extends Omit<React.ComponentPropsWithRef<typeof Link>, "children">, NavigationItemProps {
|
|
9
9
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { t as NavigationItemLabelTypography, e as NavigationItemStyles };
|
|
1
|
+
export { t as NavigationItemLabelTypography, n as NavigationItemStyles } from "../../../../chunks/core9";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
/**
|
|
4
|
-
* Common configuration properties shared across navigation items ([`NavigationLink`](
|
|
5
|
-
* and [`NavigationButton`](
|
|
4
|
+
* Common configuration properties shared across navigation items ([`NavigationLink`](src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.tsx)
|
|
5
|
+
* and [`NavigationButton`](src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.tsx)).
|
|
6
6
|
*/
|
|
7
7
|
export interface NavigationItemProps {
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Props for the [`NavigationScrollContainer`](
|
|
2
|
+
* Props for the [`NavigationScrollContainer`](src/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.tsx) component.
|
|
3
3
|
*/
|
|
4
4
|
export interface NavigationScrollContainerProps extends React.ComponentPropsWithRef<"div"> {
|
|
5
5
|
}
|
|
@@ -7,7 +7,7 @@ export interface NavigationScrollContainerProps extends React.ComponentPropsWith
|
|
|
7
7
|
* Scrollable viewport container for navigation items and sections.
|
|
8
8
|
*
|
|
9
9
|
* Automatically records and restores scroll progress on mount and scroll events,
|
|
10
|
-
* coordinating with [`NavigationState`](
|
|
10
|
+
* coordinating with [`NavigationState`](src/components/Navigation/NavigationState/NavigationState.tsx)
|
|
11
11
|
* to keep scroll positions synchronized when navigating into and out of sub-menus.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as NavigationScrollContainer };
|
|
1
|
+
export { t as NavigationScrollContainer } from "../../../chunks/NavigationScrollContainer";
|
package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Props for the [`NavigationSection`](
|
|
2
|
+
* Props for the [`NavigationSection`](src/components/Navigation/NavigationSection/NavigationSection/NavigationSection.tsx) component.
|
|
3
3
|
*/
|
|
4
4
|
export interface NavigationSectionProps extends React.ComponentPropsWithRef<"section"> {
|
|
5
5
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as NavigationSection };
|
|
1
|
+
export { t as NavigationSection } from "../../../../chunks/NavigationSection";
|