@adgytec/adgytec-web-ui-components 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +2 -2
- package/dist/assets/CalendarCell.css +1 -1
- package/dist/assets/CalendarMenuItem.css +1 -1
- package/dist/assets/ListTrailingText.css +1 -0
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/core7.css +1 -1
- package/dist/chunks/ActionDialog.map +1 -1
- package/dist/chunks/AppBar +42 -42
- package/dist/chunks/AppBar.map +1 -1
- package/dist/chunks/AppBarAction.map +1 -1
- package/dist/chunks/AppBarAvatar.map +1 -1
- package/dist/chunks/AppBarHeadline.map +1 -1
- package/dist/chunks/BaseCalendar +69 -63
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/BottomSheet.map +1 -1
- package/dist/chunks/BottomSheetModal.map +1 -1
- package/dist/chunks/ButtonGroup.map +1 -1
- package/dist/chunks/CalendarCell +25 -39
- package/dist/chunks/CalendarCell.map +1 -1
- package/dist/chunks/CalendarGrid.map +1 -1
- package/dist/chunks/CalendarMenuItem +1 -1
- package/dist/chunks/CalendarMenuItem.map +1 -1
- package/dist/chunks/Card.map +1 -1
- package/dist/chunks/CardIcon.map +1 -1
- package/dist/chunks/CenteredSlider.map +1 -1
- package/dist/chunks/ComboBox.map +1 -1
- package/dist/chunks/ComboBoxPopover.map +1 -1
- package/dist/chunks/ComboBoxTrigger +592 -62
- package/dist/chunks/ComboBoxTrigger.map +1 -1
- package/dist/chunks/ConnectedButtonGroup +13 -10
- package/dist/chunks/ConnectedButtonGroup.map +1 -1
- package/dist/chunks/Dialog.map +1 -1
- package/dist/chunks/Disclosure.map +1 -1
- package/dist/chunks/DisclosureGroup.map +1 -1
- package/dist/chunks/DisclosureHeader.map +1 -1
- package/dist/chunks/DisclosurePanel.map +1 -1
- package/dist/chunks/Divider.map +1 -1
- package/dist/chunks/FieldError.map +1 -1
- package/dist/chunks/GridBackgroundDecorator.map +1 -1
- package/dist/chunks/Icon.map +1 -1
- package/dist/chunks/Input.map +1 -1
- package/dist/chunks/Input2 +2 -1
- package/dist/chunks/Input2.map +1 -1
- package/dist/chunks/ListAction +13 -0
- package/dist/chunks/ListAction.map +1 -0
- package/dist/chunks/ListAvatar.map +1 -1
- package/dist/chunks/ListBox.map +1 -1
- package/dist/chunks/ListIcon.map +1 -1
- package/dist/chunks/ListItem.map +1 -1
- package/dist/chunks/ListLabelText.map +1 -1
- package/dist/chunks/ListMedia.map +1 -1
- package/dist/chunks/ListOverlineText.map +1 -1
- package/dist/chunks/ListSupportingText.map +1 -1
- package/dist/chunks/ListTrailingText +21 -0
- package/dist/chunks/ListTrailingText.map +1 -0
- package/dist/chunks/Loader.map +1 -1
- package/dist/chunks/MenuPopover.map +1 -1
- package/dist/chunks/Modal.map +1 -1
- package/dist/chunks/ModalOverlay.map +1 -1
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +5 -2
- package/dist/chunks/NavigationScrollContainer.map +1 -1
- package/dist/chunks/NavigationSection.map +1 -1
- package/dist/chunks/NavigationSectionLabel.map +1 -1
- package/dist/chunks/Popover.map +1 -1
- package/dist/chunks/RadialGlowDecorator.map +1 -1
- package/dist/chunks/Radio.map +1 -1
- package/dist/chunks/RichTooltip.map +1 -1
- package/dist/chunks/RichTooltipActions.map +1 -1
- package/dist/chunks/RichTooltipInfo.map +1 -1
- package/dist/chunks/SearchField.map +1 -1
- package/dist/chunks/SelectPopover.map +1 -1
- package/dist/chunks/SelectTrigger.map +1 -1
- package/dist/chunks/SideSheet +7 -7
- package/dist/chunks/SideSheet.map +1 -1
- package/dist/chunks/SideSheetModal.map +1 -1
- package/dist/chunks/Slider.map +1 -1
- package/dist/chunks/SliderOutput.map +1 -1
- package/dist/chunks/SliderStops +3 -3
- package/dist/chunks/SliderStops.map +1 -1
- package/dist/chunks/SliderThumb.map +1 -1
- package/dist/chunks/Snackbar.map +1 -1
- package/dist/chunks/SplitButton +13 -10
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +8 -7
- package/dist/chunks/SplitButtonTrigger.map +1 -1
- package/dist/chunks/SubmenuPopover.map +1 -1
- package/dist/chunks/Switch.map +1 -1
- package/dist/chunks/Tab.map +1 -1
- package/dist/chunks/TabList.map +1 -1
- package/dist/chunks/TabPanel.map +1 -1
- package/dist/chunks/TabPanels.map +1 -1
- package/dist/chunks/Tabs.map +1 -1
- package/dist/chunks/Tag.map +1 -1
- package/dist/chunks/ThemeSelector +75 -71
- package/dist/chunks/ThemeSelector.map +1 -1
- package/dist/chunks/Toolbar.map +1 -1
- package/dist/chunks/Tooltip.map +1 -1
- package/dist/chunks/base.map +1 -1
- package/dist/chunks/compiler-runtime +2 -2
- package/dist/chunks/compiler-runtime.map +1 -1
- package/dist/chunks/context.map +1 -1
- package/dist/chunks/core +27 -25
- package/dist/chunks/core.map +1 -1
- package/dist/chunks/core2.map +1 -1
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/core4.map +1 -1
- package/dist/chunks/core5.map +1 -1
- package/dist/chunks/core6 +11 -11
- package/dist/chunks/core6.map +1 -1
- package/dist/chunks/core7.map +1 -1
- package/dist/chunks/core8.map +1 -1
- package/dist/chunks/core9.map +1 -1
- package/dist/chunks/navContext.map +1 -1
- package/dist/chunks/tapTarget.map +1 -1
- package/dist/chunks/types.map +1 -1
- package/dist/chunks/useHover +460 -153
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/useSplash +17 -19
- package/dist/chunks/useSplash.map +1 -1
- package/dist/components/AppBar/AppBar/AppBar.d.ts +29 -0
- package/dist/components/AppBar/AppBar/types.d.ts +29 -4
- package/dist/components/AppBar/AppBarAction/AppBarAction.d.ts +19 -1
- package/dist/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +20 -1
- package/dist/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +19 -1
- package/dist/components/AppBar/AppBarState/AppBarState.d.ts +28 -2
- package/dist/components/AppBar/AppBarState/context.d.ts +37 -0
- package/dist/components/AppBar/AppBarState/index.js +16 -10
- package/dist/components/AppBar/AppBarState/index.js.map +1 -1
- package/dist/components/AppBar/core/alignment.d.ts +6 -0
- package/dist/components/AppBar/core/context.d.ts +16 -0
- package/dist/components/AppBar/core/index.js.map +1 -1
- package/dist/components/AppBar/core/size.d.ts +13 -0
- package/dist/components/AppBar/index.js +7 -7
- package/dist/components/Button/Button/Button.d.ts +17 -0
- package/dist/components/Button/Button/index.js.map +1 -1
- package/dist/components/Button/Button/types.d.ts +4 -0
- package/dist/components/Button/ButtonGroups/ButtonGroup/ButtonGroup.d.ts +17 -0
- package/dist/components/Button/ButtonGroups/ButtonGroup/types.d.ts +24 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/context.d.ts +22 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js.map +1 -1
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.d.ts +5 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.d.ts +5 -0
- package/dist/components/Button/ButtonGroups/ConnectedButton/ConnectedButton.d.ts +13 -0
- package/dist/components/Button/ButtonGroups/ConnectedButton/types.d.ts +19 -1
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +18 -0
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/types.d.ts +24 -0
- package/dist/components/Button/IconButton/IconButton.d.ts +21 -0
- package/dist/components/Button/IconButton/index.js.map +1 -1
- package/dist/components/Button/IconButton/types.d.ts +4 -0
- package/dist/components/Button/LinkButton/LinkButton.d.ts +15 -0
- package/dist/components/Button/LinkButton/index.js.map +1 -1
- package/dist/components/Button/LinkButton/types.d.ts +4 -0
- package/dist/components/Button/LinkIconButton/LinkIconButton.d.ts +19 -0
- package/dist/components/Button/LinkIconButton/index.js.map +1 -1
- package/dist/components/Button/LinkIconButton/types.d.ts +4 -0
- package/dist/components/Button/SplitButton/SplitButton/SplitButton.d.ts +24 -0
- package/dist/components/Button/SplitButton/SplitButton/types.d.ts +23 -0
- package/dist/components/Button/SplitButton/SplitButtonContext/context.d.ts +11 -0
- package/dist/components/Button/SplitButton/SplitButtonContext/index.js.map +1 -1
- package/dist/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.d.ts +5 -0
- package/dist/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.d.ts +15 -0
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js +2 -2
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js.map +1 -1
- package/dist/components/Button/SplitButton/SplitButtonPrimary/types.d.ts +11 -0
- package/dist/components/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.d.ts +19 -0
- package/dist/components/Button/SplitButton/SplitButtonTrigger/types.d.ts +5 -0
- package/dist/components/Button/SplitButton/core/size.d.ts +13 -0
- package/dist/components/Button/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/components/Button/ToggleButton/index.js.map +1 -1
- package/dist/components/Button/ToggleButton/types.d.ts +14 -0
- package/dist/components/Button/ToggleIconButton/ToggleIconButton.d.ts +21 -0
- package/dist/components/Button/ToggleIconButton/index.js.map +1 -1
- package/dist/components/Button/ToggleIconButton/types.d.ts +9 -0
- package/dist/components/Button/core/button.d.ts +33 -0
- package/dist/components/Button/core/color.d.ts +38 -0
- package/dist/components/Button/core/shape.d.ts +6 -0
- package/dist/components/Button/core/sizes.d.ts +26 -0
- package/dist/components/Button/core/useButtonConfig.d.ts +25 -0
- package/dist/components/Button/core/variant.d.ts +6 -0
- package/dist/components/Button/core/width.d.ts +7 -0
- package/dist/components/Button/core/withTooltip.d.ts +9 -2
- package/dist/components/Calendar/BaseCalendar/BaseCalendar.d.ts +23 -2
- package/dist/components/Calendar/Calendar/Calendar.d.ts +39 -2
- package/dist/components/Calendar/Calendar/index.js +18 -12
- package/dist/components/Calendar/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/CalendarCell/CalendarCell.d.ts +14 -2
- package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts +12 -2
- package/dist/components/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +12 -1
- package/dist/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js +2 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js.map +1 -1
- package/dist/components/Calendar/CalendarYearMenu/CalendarYearMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarYearMenu/index.js.map +1 -1
- package/dist/components/Calendar/RangeCalendar/RangeCalendar.d.ts +40 -2
- package/dist/components/Calendar/RangeCalendar/index.js +19 -15
- package/dist/components/Calendar/RangeCalendar/index.js.map +1 -1
- package/dist/components/Calendar/core/calendar.d.ts +26 -0
- package/dist/components/Calendar/core/useCalendarState.d.ts +15 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Calendar/index.js +4 -3
- package/dist/components/Card/Card/Card.d.ts +20 -0
- package/dist/components/Card/Card/types.d.ts +23 -0
- package/dist/components/Card/CardIcon/CardIcon.d.ts +25 -1
- package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +46 -7
- package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +53 -6
- package/dist/components/Dialog/ActionDialog/ActionDialog.d.ts +33 -0
- package/dist/components/Dialog/ActionDialog/types.d.ts +28 -2
- package/dist/components/Dialog/Dialog/Dialog.d.ts +32 -1
- package/dist/components/Dialog/Modal/Modal.d.ts +24 -1
- package/dist/components/Dialog/ModalOverlay/ModalOverlay.d.ts +25 -1
- package/dist/components/Dialog/core/context.d.ts +8 -0
- package/dist/components/Dialog/core/index.js.map +1 -1
- package/dist/components/Dialog/core/typography.d.ts +9 -0
- package/dist/components/Disclosure/Disclosure/Disclosure.d.ts +25 -1
- package/dist/components/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +50 -2
- package/dist/components/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +31 -2
- package/dist/components/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +31 -2
- package/dist/components/Disclosure/context/context.d.ts +11 -2
- package/dist/components/Disclosure/context/index.js.map +1 -1
- package/dist/components/Disclosure/context/useDisclosureTypographyContext.d.ts +18 -2
- package/dist/components/Divider/Divider.d.ts +30 -1
- package/dist/components/Icon/Icon.d.ts +29 -0
- package/dist/components/Icon/types.d.ts +28 -0
- package/dist/components/Input/CharacterCount/CharacterCount.d.ts +11 -2
- package/dist/components/Input/CharacterCount/index.js.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +15 -0
- package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +17 -0
- package/dist/components/Input/Checkbox/context.d.ts +10 -2
- package/dist/components/Input/Checkbox/types.d.ts +42 -0
- package/dist/components/Input/DateField/DateField.d.ts +17 -1
- package/dist/components/Input/DateField/index.js.map +1 -1
- package/dist/components/Input/DateField/types.d.ts +4 -0
- package/dist/components/Input/DatePicker/DatePicker/DatePicker.d.ts +17 -1
- package/dist/components/Input/DatePicker/DatePicker/index.js.map +1 -1
- package/dist/components/Input/DatePicker/DatePicker/types.d.ts +10 -0
- package/dist/components/Input/DatePicker/DateRangePicker/DateRangePicker.d.ts +17 -1
- package/dist/components/Input/DatePicker/DateRangePicker/index.js.map +1 -1
- package/dist/components/Input/DatePicker/DateRangePicker/types.d.ts +10 -0
- package/dist/components/Input/DatePicker/core/datePicker.d.ts +3 -0
- package/dist/components/Input/Description/Description.d.ts +12 -1
- package/dist/components/Input/Description/index.js.map +1 -1
- package/dist/components/Input/FieldError/FieldError.d.ts +12 -1
- package/dist/components/Input/Input/Input.d.ts +27 -0
- package/dist/components/Input/Input/InputButton.d.ts +10 -1
- package/dist/components/Input/Input/handleInputButton.d.ts +6 -0
- package/dist/components/Input/Input/types.d.ts +20 -0
- package/dist/components/Input/Label/Label.d.ts +12 -1
- package/dist/components/Input/Label/index.js.map +1 -1
- package/dist/components/Input/Radio/Radio.d.ts +16 -0
- package/dist/components/Input/Radio/RadioGroup.d.ts +17 -0
- package/dist/components/Input/Radio/context.d.ts +10 -2
- package/dist/components/Input/Radio/types.d.ts +40 -0
- package/dist/components/Input/SearchField/SearchField.d.ts +16 -0
- package/dist/components/Input/SearchField/types.d.ts +9 -0
- package/dist/components/Input/Select/ComboBox/ComboBox.d.ts +29 -1
- package/dist/components/Input/Select/ComboBox/context.d.ts +3 -0
- package/dist/components/Input/Select/ComboBox/types.d.ts +9 -0
- package/dist/components/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +10 -1
- package/dist/components/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +10 -2
- package/dist/components/Input/Select/Select/Select.d.ts +29 -1
- package/dist/components/Input/Select/Select/index.js.map +1 -1
- package/dist/components/Input/Select/Select/types.d.ts +4 -0
- package/dist/components/Input/Select/SelectItem/SelectItem.d.ts +19 -0
- package/dist/components/Input/Select/SelectItem/index.js.map +1 -1
- package/dist/components/Input/Select/SelectItem/types.d.ts +9 -0
- package/dist/components/Input/Select/SelectList/SelectList.d.ts +14 -2
- package/dist/components/Input/Select/SelectList/index.js.map +1 -1
- package/dist/components/Input/Select/SelectListSection/SelectListSection.d.ts +4 -1
- package/dist/components/Input/Select/SelectListSection/index.js.map +1 -1
- package/dist/components/Input/Select/SelectListSectionHeader/SelectListSectionHeader.d.ts +3 -0
- package/dist/components/Input/Select/SelectListSectionHeader/index.js.map +1 -1
- package/dist/components/Input/Select/SelectPopover/SelectPopover.d.ts +10 -1
- package/dist/components/Input/Select/SelectTrigger/SelectTrigger.d.ts +10 -1
- package/dist/components/Input/Slider/CenteredSlider/CenteredSlider.d.ts +23 -1
- package/dist/components/Input/Slider/CenteredSlider/types.d.ts +6 -0
- package/dist/components/Input/Slider/RangeSlider/RangeSlider.d.ts +24 -1
- package/dist/components/Input/Slider/RangeSlider/index.js.map +1 -1
- package/dist/components/Input/Slider/RangeSlider/types.d.ts +9 -0
- package/dist/components/Input/Slider/Slider/Slider.d.ts +24 -1
- package/dist/components/Input/Slider/Slider/types.d.ts +13 -0
- package/dist/components/Input/Slider/SliderOutput/SliderOutput.d.ts +19 -1
- package/dist/components/Input/Slider/SliderStops/SliderStops.d.ts +18 -0
- package/dist/components/Input/Slider/SliderStops/core.d.ts +54 -10
- package/dist/components/Input/Slider/SliderStops/types.d.ts +38 -0
- package/dist/components/Input/Slider/SliderThumb/SliderThumb.d.ts +32 -2
- package/dist/components/Input/Slider/SliderThumb/context.d.ts +20 -0
- package/dist/components/Input/Slider/core/color.d.ts +1 -0
- package/dist/components/Input/Slider/core/size.d.ts +12 -0
- package/dist/components/Input/Slider/core/slider.d.ts +44 -0
- package/dist/components/Input/Slider/core/variant.d.ts +10 -0
- package/dist/components/Input/Switch/Switch.d.ts +15 -0
- package/dist/components/Input/Switch/types.d.ts +33 -0
- package/dist/components/Input/TextArea/TextArea.d.ts +19 -0
- package/dist/components/Input/TextArea/index.js.map +1 -1
- package/dist/components/Input/TextArea/types.d.ts +11 -0
- package/dist/components/Input/TimeField/TimeField.d.ts +17 -1
- package/dist/components/Input/TimeField/index.js.map +1 -1
- package/dist/components/Input/TimeField/types.d.ts +4 -0
- package/dist/components/Input/core/input.d.ts +15 -0
- package/dist/components/Input/core/textField.d.ts +13 -0
- package/dist/components/Input/hooks/index.js.map +1 -1
- package/dist/components/Input/hooks/useControllableState.d.ts +17 -2
- package/dist/components/List/ListAction/ListAction.d.ts +23 -1
- package/dist/components/List/ListAction/index.d.ts +1 -1
- package/dist/components/List/ListAction/index.js +2 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -1
- package/dist/components/List/ListBox/ListBox.d.ts +28 -1
- package/dist/components/List/ListBox/types.d.ts +15 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +19 -1
- package/dist/components/List/ListItem/ListItem.d.ts +34 -0
- package/dist/components/List/ListItem/types.d.ts +21 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +16 -1
- package/dist/components/List/ListMedia/ListMedia.d.ts +20 -0
- package/dist/components/List/ListMedia/types.d.ts +32 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +16 -1
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +16 -1
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +16 -1
- package/dist/components/List/ListTrailingText/index.d.ts +1 -1
- package/dist/components/List/ListTrailingText/index.js +2 -0
- package/dist/components/List/index.js +11 -9
- package/dist/components/Loader/Loader.d.ts +26 -1
- package/dist/components/Menu/Menu/Menu.d.ts +31 -1
- package/dist/components/Menu/Menu/index.js.map +1 -1
- package/dist/components/Menu/Menu/types.d.ts +18 -0
- package/dist/components/Menu/MenuItem/MenuItem.d.ts +22 -0
- package/dist/components/Menu/MenuItem/index.js.map +1 -1
- package/dist/components/Menu/MenuItem/types.d.ts +24 -0
- package/dist/components/Menu/MenuPopover/MenuPopover.d.ts +21 -1
- package/dist/components/Menu/MenuSection/MenuSection.d.ts +23 -1
- package/dist/components/Menu/MenuSection/index.js.map +1 -1
- package/dist/components/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +16 -1
- package/dist/components/Menu/MenuSectionHeader/index.js.map +1 -1
- package/dist/components/Menu/MenuShortcut/MenuShortcut.d.ts +16 -1
- package/dist/components/Menu/MenuShortcut/index.js.map +1 -1
- package/dist/components/Menu/MenuTrailingText/MenuTrailingText.d.ts +16 -1
- package/dist/components/Menu/MenuTrailingText/index.js.map +1 -1
- package/dist/components/Menu/MenuTrigger/MenuTrigger.d.ts +43 -2
- package/dist/components/Menu/MenuTrigger/index.js.map +1 -1
- package/dist/components/Menu/SubmenuPopover/SubmenuPopover.d.ts +22 -1
- package/dist/components/Menu/context/context.d.ts +13 -0
- package/dist/components/Menu/context/index.js.map +1 -1
- package/dist/components/Menu/context/useMenuConfigContext.d.ts +6 -0
- package/dist/components/Menu/core/color.d.ts +20 -0
- package/dist/components/Menu/core/layout.d.ts +17 -0
- package/dist/components/Menu/core/menu.d.ts +18 -0
- package/dist/components/Navigation/Navigation/Navigation.d.ts +28 -0
- package/dist/components/Navigation/Navigation/navContext.d.ts +19 -0
- package/dist/components/Navigation/Navigation/navRenderingContext.d.ts +16 -0
- package/dist/components/Navigation/Navigation/types.d.ts +28 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +15 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationButton/types.d.ts +9 -0
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +21 -2
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +15 -0
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/types.d.ts +5 -0
- package/dist/components/Navigation/NavigationItem/core/navigationItem.d.ts +22 -0
- package/dist/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +22 -1
- package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +24 -1
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +16 -1
- package/dist/components/Navigation/NavigationState/NavigationState.d.ts +27 -2
- package/dist/components/Navigation/NavigationState/context.d.ts +31 -0
- package/dist/components/Navigation/NavigationState/index.d.ts +1 -0
- package/dist/components/Navigation/NavigationState/index.js.map +1 -1
- package/dist/components/Navigation/NavigationState/types.d.ts +12 -0
- package/dist/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +35 -2
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -1
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +40 -2
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
- package/dist/components/Navigation/core/navLabelContext.d.ts +6 -0
- package/dist/components/Navigation/core/navigation.d.ts +9 -0
- package/dist/components/Navigation/core/navigationInfo.d.ts +19 -0
- package/dist/components/Popover/Popover.d.ts +34 -1
- package/dist/components/Sheets/BottomSheet/BottomSheet.d.ts +40 -2
- package/dist/components/Sheets/BottomSheet/index.d.ts +1 -0
- package/dist/components/Sheets/BottomSheet/types.d.ts +37 -0
- package/dist/components/Sheets/BottomSheetModal/BottomSheetModal.d.ts +34 -0
- package/dist/components/Sheets/BottomSheetModal/context.d.ts +10 -0
- package/dist/components/Sheets/BottomSheetModal/types.d.ts +38 -0
- package/dist/components/Sheets/SideSheet/SideSheet.d.ts +46 -0
- package/dist/components/Sheets/SideSheet/SideSheetDialog.d.ts +43 -0
- package/dist/components/Sheets/SideSheet/types.d.ts +96 -2
- package/dist/components/Sheets/SideSheetModal/SideSheetModal.d.ts +34 -0
- package/dist/components/Sheets/SideSheetModal/context.d.ts +13 -0
- package/dist/components/Sheets/SideSheetModal/types.d.ts +49 -0
- package/dist/components/Sheets/core/layout.d.ts +11 -0
- package/dist/components/Snackbar/SnackbarRegion.d.ts +50 -0
- package/dist/components/Snackbar/context.d.ts +38 -0
- package/dist/components/Snackbar/types.d.ts +69 -0
- package/dist/components/Splash/Splash.d.ts +6 -0
- package/dist/components/Splash/types.d.ts +10 -0
- package/dist/components/Splash/useSplash.d.ts +21 -0
- package/dist/components/Tabs/Tab/Tab.d.ts +33 -2
- package/dist/components/Tabs/TabList/TabList.d.ts +42 -1
- package/dist/components/Tabs/TabPanel/TabPanel.d.ts +28 -1
- package/dist/components/Tabs/TabPanels/TabPanels.d.ts +28 -1
- package/dist/components/Tabs/Tabs/Tabs.d.ts +43 -1
- package/dist/components/Tag/Tag.d.ts +37 -0
- package/dist/components/Tag/core.d.ts +6 -0
- package/dist/components/Tag/types.d.ts +48 -2
- package/dist/components/ThemeSelector/ThemeItem.d.ts +46 -2
- package/dist/components/ThemeSelector/ThemeProvider.d.ts +29 -2
- package/dist/components/ThemeSelector/ThemeSelector.d.ts +24 -0
- package/dist/components/ThemeSelector/core.d.ts +58 -0
- package/dist/components/ThemeSelector/index.d.ts +2 -0
- package/dist/components/ThemeSelector/index.js +2 -2
- package/dist/components/ThemeSelector/types.d.ts +69 -2
- package/dist/components/Toolbar/Toolbar.d.ts +47 -0
- package/dist/components/Toolbar/ToolbarToggleButtonGroup.d.ts +35 -1
- package/dist/components/Toolbar/types.d.ts +60 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +56 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +27 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +31 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +22 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js.map +1 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts +26 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js.map +1 -1
- package/dist/components/Tooltip/Tooltip/Tooltip.d.ts +35 -1
- package/dist/components/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +29 -1
- package/dist/components/Tooltip/TooltipTrigger/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +129 -137
- package/dist/index.js.map +1 -1
- package/dist/utils/gradients/gradients.d.ts +97 -0
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/ref/ref.d.ts +35 -2
- package/dist/utils/scroll/scroll.d.ts +67 -4
- package/dist/utils/tapTarget/tapTarget.d.ts +57 -0
- package/dist/utils/theme/build.d.ts +24 -0
- package/dist/utils/theme/types.d.ts +70 -0
- package/dist/utils/theme/useTheme.d.ts +40 -0
- package/dist/utils/typography/base.d.ts +68 -0
- package/dist/utils/typography/core.d.ts +16 -0
- package/dist/utils/typography/fluid.d.ts +36 -0
- package/package.json +23 -25
- package/dist/chunks/useGlobalListeners +0 -294
- package/dist/chunks/useGlobalListeners.map +0 -1
- package/dist/chunks/usePress +0 -535
- package/dist/chunks/usePress.map +0 -1
- package/dist/components/Image/Image.d.ts +0 -2
- package/dist/components/Image/index.d.ts +0 -2
- package/dist/components/Image/index.js +0 -29
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/types.d.ts +0 -9
- package/dist/utils/form/form.d.ts +0 -13
- package/dist/utils/form/index.d.ts +0 -1
|
@@ -1,2 +1,35 @@
|
|
|
1
1
|
import { Popover as AriaPopover } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`Popover`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/Popover/Popover.tsx) component.
|
|
4
|
+
*
|
|
5
|
+
* Extends all properties from React Aria's `Popover`, including positioning (`placement`, `offset`, `crossOffset`),
|
|
6
|
+
* portal containers, and entry/exit transition states.
|
|
7
|
+
*/
|
|
8
|
+
export interface PopoverProps extends React.ComponentPropsWithRef<typeof AriaPopover> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Overlay surface container that presents content anchored to a trigger element.
|
|
12
|
+
*
|
|
13
|
+
* Built on React Aria's `Popover` with Material Design 3 surface colors, shadow elevation,
|
|
14
|
+
* and built-in entry/exit animations responsive to placement directions.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import {
|
|
19
|
+
* Popover,
|
|
20
|
+
* Button,
|
|
21
|
+
* DialogTrigger,
|
|
22
|
+
* Dialog,
|
|
23
|
+
* } from "@adgytec/web-ui-components";
|
|
24
|
+
*
|
|
25
|
+
* <DialogTrigger>
|
|
26
|
+
* <Button label="Open Popover" />
|
|
27
|
+
* <Popover>
|
|
28
|
+
* <Dialog>
|
|
29
|
+
* <p>This is the content inside the popover.</p>
|
|
30
|
+
* </Dialog>
|
|
31
|
+
* </Popover>
|
|
32
|
+
* </DialogTrigger>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const Popover: React.FC<PopoverProps>;
|
|
@@ -1,2 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { BottomSheetProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Content container for bottom sheets, conforming to
|
|
4
|
+
* [Material 3 Bottom Sheets](https://m3.material.io/components/bottom-sheets/overview).
|
|
5
|
+
*
|
|
6
|
+
* Renders inside a React Aria `Dialog` within `DialogContext` (value: `true`), anchoring
|
|
7
|
+
* content to the bottom of the viewport with responsive maximum width and height.
|
|
8
|
+
* Consumes {@link BottomSheetContext} to apply `data-layout` for standard or detached layouts.
|
|
9
|
+
*
|
|
10
|
+
* Configurable CSS tokens:
|
|
11
|
+
* - `--md-bottom-sheet-background`: Background color of the bottom sheet (`var(--md-sys-color-surface-container-low)`).
|
|
12
|
+
* - `--md-bottom-sheet-color`: Text color of the bottom sheet (`var(--md-sys-color-on-surface)`).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
17
|
+
* import {
|
|
18
|
+
* BottomSheet,
|
|
19
|
+
* BottomSheetModal,
|
|
20
|
+
* Button,
|
|
21
|
+
* ModalOverlay,
|
|
22
|
+
* } from "@adgytec/web-ui-components";
|
|
23
|
+
*
|
|
24
|
+
* export function Example() {
|
|
25
|
+
* return (
|
|
26
|
+
* <DialogTrigger>
|
|
27
|
+
* <Button label="Open Bottom Sheet" />
|
|
28
|
+
* <ModalOverlay>
|
|
29
|
+
* <BottomSheetModal layout="standard">
|
|
30
|
+
* <BottomSheet>
|
|
31
|
+
* <p>This is the bottom sheet content.</p>
|
|
32
|
+
* </BottomSheet>
|
|
33
|
+
* </BottomSheetModal>
|
|
34
|
+
* </ModalOverlay>
|
|
35
|
+
* </DialogTrigger>
|
|
36
|
+
* );
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare const BottomSheet: React.FC<BottomSheetProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Dialog } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link BottomSheet} component.
|
|
4
|
+
* Extends React Aria Components `Dialog` props for bottom sheet content containers.
|
|
5
|
+
*
|
|
6
|
+
* Configurable CSS tokens:
|
|
7
|
+
* - `--md-bottom-sheet-background`: Background color of the bottom sheet (`var(--md-sys-color-surface-container-low)`).
|
|
8
|
+
* - `--md-bottom-sheet-color`: Text color of the bottom sheet (`var(--md-sys-color-on-surface)`).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
13
|
+
* import {
|
|
14
|
+
* BottomSheet,
|
|
15
|
+
* BottomSheetModal,
|
|
16
|
+
* Button,
|
|
17
|
+
* ModalOverlay,
|
|
18
|
+
* } from "@adgytec/web-ui-components";
|
|
19
|
+
*
|
|
20
|
+
* export function Example() {
|
|
21
|
+
* return (
|
|
22
|
+
* <DialogTrigger>
|
|
23
|
+
* <Button label="Open Sheet" />
|
|
24
|
+
* <ModalOverlay>
|
|
25
|
+
* <BottomSheetModal layout="standard">
|
|
26
|
+
* <BottomSheet>
|
|
27
|
+
* <p>Bottom sheet content goes here.</p>
|
|
28
|
+
* </BottomSheet>
|
|
29
|
+
* </BottomSheetModal>
|
|
30
|
+
* </ModalOverlay>
|
|
31
|
+
* </DialogTrigger>
|
|
32
|
+
* );
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export interface BottomSheetProps extends React.ComponentPropsWithRef<typeof Dialog> {
|
|
37
|
+
}
|
|
@@ -1,2 +1,36 @@
|
|
|
1
1
|
import { BottomSheetModalProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Modal container for a bottom sheet ({@link BottomSheet}).
|
|
4
|
+
*
|
|
5
|
+
* Implements [Material 3 Bottom Sheets](https://m3.material.io/components/bottom-sheets/overview)
|
|
6
|
+
* positioning and animations using React Aria Components `Modal`. Sets `data-layout` attribute
|
|
7
|
+
* to control slide-up entrance/exit animations and viewport margin styling, and provides layout
|
|
8
|
+
* configuration to children through {@link BottomSheetContext}.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
13
|
+
* import {
|
|
14
|
+
* BottomSheet,
|
|
15
|
+
* BottomSheetModal,
|
|
16
|
+
* Button,
|
|
17
|
+
* ModalOverlay,
|
|
18
|
+
* } from "@adgytec/web-ui-components";
|
|
19
|
+
*
|
|
20
|
+
* export function Example() {
|
|
21
|
+
* return (
|
|
22
|
+
* <DialogTrigger>
|
|
23
|
+
* <Button label="Open Bottom Sheet" />
|
|
24
|
+
* <ModalOverlay>
|
|
25
|
+
* <BottomSheetModal layout="standard">
|
|
26
|
+
* <BottomSheet>
|
|
27
|
+
* <p>This is the bottom sheet content.</p>
|
|
28
|
+
* </BottomSheet>
|
|
29
|
+
* </BottomSheetModal>
|
|
30
|
+
* </ModalOverlay>
|
|
31
|
+
* </DialogTrigger>
|
|
32
|
+
* );
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
2
36
|
export declare const BottomSheetModal: React.FC<BottomSheetModalProps>;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { SheetLayout } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* Context value passed from {@link BottomSheetModal} to descendant {@link BottomSheet} components.
|
|
4
|
+
*/
|
|
2
5
|
export type BottomSheetContextValue = {
|
|
6
|
+
/**
|
|
7
|
+
* Current layout style (`"standard"` or `"detached"`).
|
|
8
|
+
*/
|
|
3
9
|
layout: SheetLayout;
|
|
4
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* React context providing layout configuration for bottom sheets.
|
|
13
|
+
* Default value is `layout: "standard"`.
|
|
14
|
+
*/
|
|
5
15
|
export declare const BottomSheetContext: import('react').Context<BottomSheetContextValue>;
|
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
import { Modal } from 'react-aria-components';
|
|
2
2
|
import { SheetLayout } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link BottomSheetModal} component.
|
|
5
|
+
* Extends React Aria Components `Modal` props with bottom-sheet layout configurations.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
10
|
+
* import {
|
|
11
|
+
* BottomSheet,
|
|
12
|
+
* BottomSheetModal,
|
|
13
|
+
* Button,
|
|
14
|
+
* ModalOverlay,
|
|
15
|
+
* } from "@adgytec/web-ui-components";
|
|
16
|
+
*
|
|
17
|
+
* export function Example() {
|
|
18
|
+
* return (
|
|
19
|
+
* <DialogTrigger>
|
|
20
|
+
* <Button label="Open Sheet" />
|
|
21
|
+
* <ModalOverlay>
|
|
22
|
+
* <BottomSheetModal layout="standard">
|
|
23
|
+
* <BottomSheet>
|
|
24
|
+
* <p>Bottom sheet content.</p>
|
|
25
|
+
* </BottomSheet>
|
|
26
|
+
* </BottomSheetModal>
|
|
27
|
+
* </ModalOverlay>
|
|
28
|
+
* </DialogTrigger>
|
|
29
|
+
* );
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
3
33
|
export interface BottomSheetModalProps extends React.ComponentPropsWithRef<typeof Modal> {
|
|
34
|
+
/**
|
|
35
|
+
* Layout style of the bottom sheet.
|
|
36
|
+
*
|
|
37
|
+
* - `"standard"`: Attached to the bottom edge of the viewport.
|
|
38
|
+
* - `"detached"`: Floating with margin and rounded corners on all edges.
|
|
39
|
+
*
|
|
40
|
+
* @default "standard"
|
|
41
|
+
*/
|
|
4
42
|
layout?: SheetLayout;
|
|
5
43
|
}
|
|
@@ -1,2 +1,48 @@
|
|
|
1
1
|
import { SideSheetProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* High-level content container for side sheets, conforming to
|
|
4
|
+
* [Material 3 Side Sheets](https://m3.material.io/components/side-sheets/overview).
|
|
5
|
+
*
|
|
6
|
+
* Provides a standard structured side sheet layout containing:
|
|
7
|
+
* - A top header with an optional `headline` (`typography.titleLarge`) and a built-in close `IconButton` (`X`).
|
|
8
|
+
* - A scrollable `main` content area.
|
|
9
|
+
* - An optional bottom `actions` footer, automatically aligned with the sheet's alignment setting.
|
|
10
|
+
*
|
|
11
|
+
* Configurable CSS tokens:
|
|
12
|
+
* - `--md-side-sheet-background`: Background color of the side sheet (`var(--md-sys-color-surface-container-low)`).
|
|
13
|
+
* - `--md-side-sheet-color`: Text color of the side sheet (`var(--md-sys-color-on-surface)`).
|
|
14
|
+
* - `--md-side-sheet-headline-color`: Color of the side sheet headline (`var(--md-sys-color-on-surface-variant)`).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
19
|
+
* import {
|
|
20
|
+
* Button,
|
|
21
|
+
* ModalOverlay,
|
|
22
|
+
* SideSheet,
|
|
23
|
+
* SideSheetModal,
|
|
24
|
+
* } from "@adgytec/web-ui-components";
|
|
25
|
+
*
|
|
26
|
+
* export function Example() {
|
|
27
|
+
* return (
|
|
28
|
+
* <DialogTrigger>
|
|
29
|
+
* <Button label="Open Side Sheet" />
|
|
30
|
+
* <ModalOverlay>
|
|
31
|
+
* <SideSheetModal alignment="end" layout="standard">
|
|
32
|
+
* <SideSheet
|
|
33
|
+
* headline="Side Sheet Title"
|
|
34
|
+
* actions={[
|
|
35
|
+
* <Button key="save" label="Save" onPress={() => {}} />,
|
|
36
|
+
* <Button key="cancel" label="Cancel" variant="outline" onPress={() => {}} />,
|
|
37
|
+
* ]}
|
|
38
|
+
* >
|
|
39
|
+
* <p>This is the side sheet content.</p>
|
|
40
|
+
* </SideSheet>
|
|
41
|
+
* </SideSheetModal>
|
|
42
|
+
* </ModalOverlay>
|
|
43
|
+
* </DialogTrigger>
|
|
44
|
+
* );
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
2
48
|
export declare const SideSheet: React.FC<SideSheetProps>;
|
|
@@ -1,2 +1,45 @@
|
|
|
1
1
|
import { SideSheetDialogProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Low-level dialog container for side sheets, useful for custom layout structures.
|
|
4
|
+
*
|
|
5
|
+
* Consumes {@link SideSheetContext} to apply appropriate `data-alignment` and `data-layout`
|
|
6
|
+
* attributes for responsive positioning, border radiuses, and size constraints.
|
|
7
|
+
* Also provides `DialogContext` with `true` for modal integration.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { DialogTrigger, Header, Heading } from "react-aria-components";
|
|
12
|
+
* import {
|
|
13
|
+
* Button,
|
|
14
|
+
* IconButton,
|
|
15
|
+
* ModalOverlay,
|
|
16
|
+
* SideSheetDialog,
|
|
17
|
+
* SideSheetModal,
|
|
18
|
+
* } from "@adgytec/web-ui-components";
|
|
19
|
+
* import { X } from "lucide-react";
|
|
20
|
+
*
|
|
21
|
+
* export function Example() {
|
|
22
|
+
* return (
|
|
23
|
+
* <DialogTrigger>
|
|
24
|
+
* <Button label="Open Custom Sheet" />
|
|
25
|
+
* <ModalOverlay>
|
|
26
|
+
* <SideSheetModal alignment="end" layout="standard">
|
|
27
|
+
* <SideSheetDialog>
|
|
28
|
+
* {({ close }) => (
|
|
29
|
+
* <>
|
|
30
|
+
* <Header>
|
|
31
|
+
* <Heading slot="title">Custom Title</Heading>
|
|
32
|
+
* <IconButton icon={X} onPress={close} aria-label="Close" />
|
|
33
|
+
* </Header>
|
|
34
|
+
* <div>Custom content goes here.</div>
|
|
35
|
+
* </>
|
|
36
|
+
* )}
|
|
37
|
+
* </SideSheetDialog>
|
|
38
|
+
* </SideSheetModal>
|
|
39
|
+
* </ModalOverlay>
|
|
40
|
+
* </DialogTrigger>
|
|
41
|
+
* );
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
2
45
|
export declare const SideSheetDialog: React.FC<SideSheetDialogProps>;
|
|
@@ -1,8 +1,102 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { Dialog, DialogRenderProps } from 'react-aria-components';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link SideSheetDialog} component.
|
|
5
|
+
* Extends React Aria Components `Dialog` props for low-level custom side sheet layouts.
|
|
6
|
+
*
|
|
7
|
+
* Configurable CSS tokens:
|
|
8
|
+
* - `--md-side-sheet-background`: Background color of the side sheet (`var(--md-sys-color-surface-container-low)`).
|
|
9
|
+
* - `--md-side-sheet-color`: Text color of the side sheet (`var(--md-sys-color-on-surface)`).
|
|
10
|
+
* - `--md-side-sheet-headline-color`: Color of the side sheet headline (`var(--md-sys-color-on-surface-variant)`).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* import { DialogTrigger, Header, Heading } from "react-aria-components";
|
|
15
|
+
* import {
|
|
16
|
+
* Button,
|
|
17
|
+
* IconButton,
|
|
18
|
+
* ModalOverlay,
|
|
19
|
+
* SideSheetDialog,
|
|
20
|
+
* SideSheetModal,
|
|
21
|
+
* } from "@adgytec/web-ui-components";
|
|
22
|
+
* import { X } from "lucide-react";
|
|
23
|
+
*
|
|
24
|
+
* export function Example() {
|
|
25
|
+
* return (
|
|
26
|
+
* <DialogTrigger>
|
|
27
|
+
* <Button label="Open Sheet" />
|
|
28
|
+
* <ModalOverlay>
|
|
29
|
+
* <SideSheetModal alignment="end">
|
|
30
|
+
* <SideSheetDialog>
|
|
31
|
+
* {({ close }) => (
|
|
32
|
+
* <>
|
|
33
|
+
* <Header>
|
|
34
|
+
* <Heading slot="title">Custom Layout</Heading>
|
|
35
|
+
* <IconButton icon={X} onPress={close} aria-label="Close" />
|
|
36
|
+
* </Header>
|
|
37
|
+
* <div>Content goes here</div>
|
|
38
|
+
* </>
|
|
39
|
+
* )}
|
|
40
|
+
* </SideSheetDialog>
|
|
41
|
+
* </SideSheetModal>
|
|
42
|
+
* </ModalOverlay>
|
|
43
|
+
* </DialogTrigger>
|
|
44
|
+
* );
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
3
48
|
export interface SideSheetDialogProps extends React.ComponentPropsWithRef<typeof Dialog> {
|
|
4
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Props for the {@link SideSheet} component.
|
|
52
|
+
* Extends React Aria Components `Dialog` props with optional headline and footer action buttons.
|
|
53
|
+
*
|
|
54
|
+
* Configurable CSS tokens:
|
|
55
|
+
* - `--md-side-sheet-background`: Background color of the side sheet (`var(--md-sys-color-surface-container-low)`).
|
|
56
|
+
* - `--md-side-sheet-color`: Text color of the side sheet (`var(--md-sys-color-on-surface)`).
|
|
57
|
+
* - `--md-side-sheet-headline-color`: Color of the side sheet headline (`var(--md-sys-color-on-surface-variant)`).
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
62
|
+
* import {
|
|
63
|
+
* Button,
|
|
64
|
+
* ModalOverlay,
|
|
65
|
+
* SideSheet,
|
|
66
|
+
* SideSheetModal,
|
|
67
|
+
* } from "@adgytec/web-ui-components";
|
|
68
|
+
*
|
|
69
|
+
* export function Example() {
|
|
70
|
+
* return (
|
|
71
|
+
* <DialogTrigger>
|
|
72
|
+
* <Button label="Open Filters" />
|
|
73
|
+
* <ModalOverlay>
|
|
74
|
+
* <SideSheetModal alignment="end" layout="standard">
|
|
75
|
+
* <SideSheet
|
|
76
|
+
* headline="Filter Items"
|
|
77
|
+
* actions={[
|
|
78
|
+
* <Button key="apply" label="Apply" onPress={() => {}} />,
|
|
79
|
+
* <Button key="reset" label="Reset" variant="outline" onPress={() => {}} />,
|
|
80
|
+
* ]}
|
|
81
|
+
* >
|
|
82
|
+
* <p>Filter options go here.</p>
|
|
83
|
+
* </SideSheet>
|
|
84
|
+
* </SideSheetModal>
|
|
85
|
+
* </ModalOverlay>
|
|
86
|
+
* </DialogTrigger>
|
|
87
|
+
* );
|
|
88
|
+
* }
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
5
91
|
export interface SideSheetProps extends React.ComponentPropsWithRef<typeof Dialog> {
|
|
92
|
+
/**
|
|
93
|
+
* Optional headline text or element displayed in the side sheet header.
|
|
94
|
+
* Rendered inside a React Aria `Heading` using `typography.titleLarge`.
|
|
95
|
+
*/
|
|
6
96
|
headline?: ReactNode;
|
|
7
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Optional action buttons rendered in the bottom action bar.
|
|
99
|
+
* Can be an array of React nodes or a render function receiving React Aria `DialogRenderProps` (such as `close`).
|
|
100
|
+
*/
|
|
101
|
+
actions?: ReactNode[] | ((renderProps: DialogRenderProps) => ReactNode[]);
|
|
8
102
|
}
|
|
@@ -1,2 +1,36 @@
|
|
|
1
1
|
import { SideSheetModalProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Modal container for a side sheet ({@link SideSheet} or {@link SideSheetDialog}).
|
|
4
|
+
*
|
|
5
|
+
* Implements [Material 3 Side Sheets](https://m3.material.io/components/side-sheets/overview)
|
|
6
|
+
* positioning and animations using React Aria Components `Modal`. Sets `data-alignment` and
|
|
7
|
+
* `data-layout` attributes to control entry/exit slide animations and viewport anchoring,
|
|
8
|
+
* and provides layout and alignment configurations to children through {@link SideSheetContext}.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
13
|
+
* import {
|
|
14
|
+
* Button,
|
|
15
|
+
* ModalOverlay,
|
|
16
|
+
* SideSheet,
|
|
17
|
+
* SideSheetModal,
|
|
18
|
+
* } from "@adgytec/web-ui-components";
|
|
19
|
+
*
|
|
20
|
+
* export function Example() {
|
|
21
|
+
* return (
|
|
22
|
+
* <DialogTrigger>
|
|
23
|
+
* <Button label="Open Details" />
|
|
24
|
+
* <ModalOverlay>
|
|
25
|
+
* <SideSheetModal alignment="end" layout="standard">
|
|
26
|
+
* <SideSheet headline="Details">
|
|
27
|
+
* <p>Side sheet content goes here.</p>
|
|
28
|
+
* </SideSheet>
|
|
29
|
+
* </SideSheetModal>
|
|
30
|
+
* </ModalOverlay>
|
|
31
|
+
* </DialogTrigger>
|
|
32
|
+
* );
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
2
36
|
export declare const SideSheetModal: React.FC<SideSheetModalProps>;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { SheetLayout } from '../core';
|
|
2
2
|
import { SideSheetAlignment } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Context value passed from {@link SideSheetModal} to descendant side sheet components like {@link SideSheetDialog} and {@link SideSheet}.
|
|
5
|
+
*/
|
|
3
6
|
export type SideSheetContextValue = {
|
|
7
|
+
/**
|
|
8
|
+
* Current layout style (`"standard"` or `"detached"`).
|
|
9
|
+
*/
|
|
4
10
|
layout: SheetLayout;
|
|
11
|
+
/**
|
|
12
|
+
* Current alignment edge (`"start"` or `"end"`).
|
|
13
|
+
*/
|
|
5
14
|
alignment: SideSheetAlignment;
|
|
6
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* React context providing layout and alignment properties for side sheets.
|
|
18
|
+
* Default values are `layout: "standard"` and `alignment: "end"`.
|
|
19
|
+
*/
|
|
7
20
|
export declare const SideSheetContext: import('react').Context<SideSheetContextValue>;
|
|
@@ -1,7 +1,56 @@
|
|
|
1
1
|
import { Modal } from 'react-aria-components';
|
|
2
2
|
import { SheetLayout } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* Alignment edge for a side sheet on the screen.
|
|
5
|
+
*
|
|
6
|
+
* - `"start"`: Anchors to the inline-start edge of the viewport (left in LTR, right in RTL).
|
|
7
|
+
* - `"end"`: Anchors to the inline-end edge of the viewport (right in LTR, left in RTL).
|
|
8
|
+
*/
|
|
3
9
|
export type SideSheetAlignment = "start" | "end";
|
|
10
|
+
/**
|
|
11
|
+
* Props for the {@link SideSheetModal} component.
|
|
12
|
+
* Extends React Aria Components `Modal` props with side-sheet layout and alignment configurations.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
17
|
+
* import {
|
|
18
|
+
* Button,
|
|
19
|
+
* ModalOverlay,
|
|
20
|
+
* SideSheet,
|
|
21
|
+
* SideSheetModal,
|
|
22
|
+
* } from "@adgytec/web-ui-components";
|
|
23
|
+
*
|
|
24
|
+
* export function Example() {
|
|
25
|
+
* return (
|
|
26
|
+
* <DialogTrigger>
|
|
27
|
+
* <Button label="Open Sheet" />
|
|
28
|
+
* <ModalOverlay>
|
|
29
|
+
* <SideSheetModal alignment="end" layout="standard">
|
|
30
|
+
* <SideSheet headline="Details">
|
|
31
|
+
* <p>Side sheet content.</p>
|
|
32
|
+
* </SideSheet>
|
|
33
|
+
* </SideSheetModal>
|
|
34
|
+
* </ModalOverlay>
|
|
35
|
+
* </DialogTrigger>
|
|
36
|
+
* );
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
4
40
|
export interface SideSheetModalProps extends React.ComponentPropsWithRef<typeof Modal> {
|
|
41
|
+
/**
|
|
42
|
+
* Side of the screen where the side sheet appears.
|
|
43
|
+
*
|
|
44
|
+
* @default "end"
|
|
45
|
+
*/
|
|
5
46
|
alignment?: SideSheetAlignment;
|
|
47
|
+
/**
|
|
48
|
+
* Layout style of the side sheet.
|
|
49
|
+
*
|
|
50
|
+
* - `"standard"`: Attached to the screen edge.
|
|
51
|
+
* - `"detached"`: Floating with margin and rounded corners on all edges.
|
|
52
|
+
*
|
|
53
|
+
* @default "standard"
|
|
54
|
+
*/
|
|
6
55
|
layout?: SheetLayout;
|
|
7
56
|
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout styles for Material 3 sheets (`SideSheet` and `BottomSheet`).
|
|
3
|
+
*
|
|
4
|
+
* - `"standard"`: The sheet is attached directly to the edge(s) of the viewport (no outer margins; corners on the attachment edge are square).
|
|
5
|
+
* - `"detached"`: The sheet has outer margins separating it from the viewport edges and features rounded corners on all sides, appearing as a floating container.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* const layout: SheetLayout = "detached";
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
1
12
|
export type SheetLayout = "standard" | "detached";
|
|
@@ -1,2 +1,52 @@
|
|
|
1
1
|
import { SnackbarRegionProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Root region component for managing and rendering [Material 3 Snackbars](https://m3.material.io/components/snackbar/overview).
|
|
4
|
+
*
|
|
5
|
+
* Wraps your application or a section of it to provide a snackbar context via {@link SnackbarQueueContext}.
|
|
6
|
+
* Renders an underlying React Aria `ToastRegion` fixed at the bottom center of the viewport (elevated with
|
|
7
|
+
* high z-index), displaying queued snackbar notifications with supporting text, optional actions,
|
|
8
|
+
* and an optional dismiss button.
|
|
9
|
+
*
|
|
10
|
+
* Configurable CSS tokens:
|
|
11
|
+
* - `--md-snackbar-background`: Background color of the snackbar (`var(--md-sys-color-inverse-surface)`).
|
|
12
|
+
* - `--md-snackbar-color`: Text and icon color of the snackbar (`var(--md-sys-color-inverse-on-surface)`).
|
|
13
|
+
* - `--md-snackbar-action-color`: Text color of the action button (`var(--md-sys-color-inverse-primary)`).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import {
|
|
18
|
+
* Button,
|
|
19
|
+
* SnackbarRegion,
|
|
20
|
+
* useSnackbarQueue,
|
|
21
|
+
* } from "@adgytec/web-ui-components";
|
|
22
|
+
*
|
|
23
|
+
* function NotificationTrigger() {
|
|
24
|
+
* const queue = useSnackbarQueue();
|
|
25
|
+
*
|
|
26
|
+
* const showNotification = () => {
|
|
27
|
+
* queue.add(
|
|
28
|
+
* {
|
|
29
|
+
* supportingText: "File uploaded successfully.",
|
|
30
|
+
* action: (
|
|
31
|
+
* <Button color="text" onPress={() => console.log("View")}>
|
|
32
|
+
* View
|
|
33
|
+
* </Button>
|
|
34
|
+
* ),
|
|
35
|
+
* },
|
|
36
|
+
* { timeout: 5000 }
|
|
37
|
+
* );
|
|
38
|
+
* };
|
|
39
|
+
*
|
|
40
|
+
* return <Button onPress={showNotification}>Upload</Button>;
|
|
41
|
+
* }
|
|
42
|
+
*
|
|
43
|
+
* export function App() {
|
|
44
|
+
* return (
|
|
45
|
+
* <SnackbarRegion maxVisibleSnackbars={1}>
|
|
46
|
+
* <NotificationTrigger />
|
|
47
|
+
* </SnackbarRegion>
|
|
48
|
+
* );
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
2
52
|
export declare const SnackbarRegion: React.FC<SnackbarRegionProps>;
|
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
import { UNSTABLE_ToastQueue as ToastQueue } from 'react-aria-components';
|
|
2
2
|
import { SnackbarContent } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* React context holding the active `ToastQueue` instance for snackbars,
|
|
5
|
+
* or `null` if accessed outside a {@link SnackbarRegion}.
|
|
6
|
+
*/
|
|
3
7
|
export declare const SnackbarQueueContext: import('react').Context<ToastQueue<SnackbarContent> | null>;
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the active snackbar queue from any child component within a {@link SnackbarRegion}.
|
|
10
|
+
*
|
|
11
|
+
* Returns the underlying React Aria `ToastQueue` instance, allowing components
|
|
12
|
+
* to enqueue new snackbars, dismiss existing ones, or inspect the queue.
|
|
13
|
+
*
|
|
14
|
+
* @throws {Error} If called outside of a {@link SnackbarRegion}.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Button, useSnackbarQueue } from "@adgytec/web-ui-components";
|
|
19
|
+
*
|
|
20
|
+
* export function CopyButton({ text }: { text: string }) {
|
|
21
|
+
* const snackbarQueue = useSnackbarQueue();
|
|
22
|
+
*
|
|
23
|
+
* const handleCopy = async () => {
|
|
24
|
+
* await navigator.clipboard.writeText(text);
|
|
25
|
+
* snackbarQueue.add(
|
|
26
|
+
* {
|
|
27
|
+
* supportingText: "Copied to clipboard",
|
|
28
|
+
* action: (
|
|
29
|
+
* <Button color="text" onPress={() => console.log("Undo")}>
|
|
30
|
+
* Undo
|
|
31
|
+
* </Button>
|
|
32
|
+
* ),
|
|
33
|
+
* },
|
|
34
|
+
* { timeout: 4000 }
|
|
35
|
+
* );
|
|
36
|
+
* };
|
|
37
|
+
*
|
|
38
|
+
* return <Button onPress={handleCopy}>Copy</Button>;
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
4
42
|
export declare function useSnackbarQueue(): ToastQueue<SnackbarContent>;
|