@adgytec/adgytec-web-ui-components 2.2.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/AppBarHeadline.css +1 -1
- package/dist/assets/CalendarCell.css +1 -1
- package/dist/assets/CalendarMenuItem.css +1 -1
- package/dist/assets/Card.css +1 -0
- package/dist/assets/CardIcon.css +1 -0
- package/dist/assets/ConnectedButtonGroup.css +1 -1
- package/dist/assets/ListAvatar.css +1 -0
- package/dist/assets/ListBox.css +1 -0
- package/dist/assets/ListIcon.css +1 -0
- package/dist/assets/ListItem.css +1 -0
- package/dist/assets/ListLabelText.css +1 -0
- package/dist/assets/ListMedia.css +1 -0
- package/dist/assets/ListOverlineText.css +1 -0
- package/dist/assets/ListSupportingText.css +1 -0
- package/dist/assets/ListTrailingText.css +1 -0
- package/dist/assets/NavigationScrollContainer.css +1 -1
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/Snackbar.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 +2 -2
- 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 +22 -0
- package/dist/chunks/Card.map +1 -0
- package/dist/chunks/CardIcon +23 -0
- package/dist/chunks/CardIcon.map +1 -0
- 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 +19 -16
- 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 +20 -0
- package/dist/chunks/ListAvatar.map +1 -0
- package/dist/chunks/ListBox +16 -0
- package/dist/chunks/ListBox.map +1 -0
- package/dist/chunks/ListIcon +21 -0
- package/dist/chunks/ListIcon.map +1 -0
- package/dist/chunks/ListItem +63 -0
- package/dist/chunks/ListItem.map +1 -0
- package/dist/chunks/ListLabelText +22 -0
- package/dist/chunks/ListLabelText.map +1 -0
- package/dist/chunks/ListMedia +15 -0
- package/dist/chunks/ListMedia.map +1 -0
- package/dist/chunks/ListOverlineText +21 -0
- package/dist/chunks/ListOverlineText.map +1 -0
- package/dist/chunks/ListSupportingText +22 -0
- package/dist/chunks/ListSupportingText.map +1 -0
- 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 +20 -20
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +48 -32
- 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 +18 -27
- 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 +6 -0
- package/dist/chunks/types.map +1 -0
- 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 +22 -0
- package/dist/components/{Image → Card/Card}/index.d.ts +1 -1
- package/dist/components/Card/Card/index.js +3 -0
- package/dist/components/Card/Card/types.d.ts +30 -0
- package/dist/components/Card/CardIcon/CardIcon.d.ts +26 -0
- package/dist/components/Card/CardIcon/index.d.ts +1 -0
- package/dist/components/Card/CardIcon/index.js +2 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- 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 +24 -0
- package/dist/components/List/ListAction/index.d.ts +1 -0
- package/dist/components/List/ListAction/index.js +2 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -0
- package/dist/components/List/ListAvatar/index.d.ts +1 -0
- package/dist/components/List/ListAvatar/index.js +2 -0
- package/dist/components/List/ListBox/ListBox.d.ts +29 -0
- package/dist/components/List/ListBox/index.d.ts +2 -0
- package/dist/components/List/ListBox/index.js +2 -0
- package/dist/components/List/ListBox/types.d.ts +20 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +20 -0
- package/dist/components/List/ListIcon/index.d.ts +1 -0
- package/dist/components/List/ListIcon/index.js +2 -0
- package/dist/components/List/ListItem/ListItem.d.ts +36 -0
- package/dist/components/List/ListItem/index.d.ts +2 -0
- package/dist/components/List/ListItem/index.js +2 -0
- package/dist/components/List/ListItem/types.d.ts +30 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +17 -0
- package/dist/components/List/ListLabelText/index.d.ts +1 -0
- package/dist/components/List/ListLabelText/index.js +2 -0
- package/dist/components/List/ListMedia/ListMedia.d.ts +22 -0
- package/dist/components/List/ListMedia/index.d.ts +2 -0
- package/dist/components/List/ListMedia/index.js +2 -0
- package/dist/components/List/ListMedia/types.d.ts +42 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +17 -0
- package/dist/components/List/ListOverlineText/index.d.ts +1 -0
- package/dist/components/List/ListOverlineText/index.js +2 -0
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +17 -0
- package/dist/components/List/ListSupportingText/index.d.ts +1 -0
- package/dist/components/List/ListSupportingText/index.js +2 -0
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +17 -0
- package/dist/components/List/ListTrailingText/index.d.ts +1 -0
- package/dist/components/List/ListTrailingText/index.js +2 -0
- package/dist/components/List/index.d.ts +10 -0
- package/dist/components/List/index.js +11 -0
- 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 +32 -1
- package/dist/components/Navigation/NavigationState/index.d.ts +1 -0
- package/dist/components/Navigation/NavigationState/index.js +61 -2
- package/dist/components/Navigation/NavigationState/index.js.map +1 -0
- 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 +4 -4
- 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 +5 -5
- 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/Navigation/index.js +2 -2
- 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 +2 -1
- package/dist/index.js +131 -125
- 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/NavigationState +0 -69
- package/dist/chunks/NavigationState.map +0 -1
- 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.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,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>;
|
|
@@ -1,10 +1,79 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Content payload and options for a snackbar item in the queue.
|
|
4
|
+
* Passed to `queue.add(content, options)`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* const queue = useSnackbarQueue();
|
|
9
|
+
*
|
|
10
|
+
* queue.add(
|
|
11
|
+
* {
|
|
12
|
+
* supportingText: "Message sent successfully.",
|
|
13
|
+
* action: (
|
|
14
|
+
* <Button color="text" onPress={() => console.log("Undo")}>
|
|
15
|
+
* Undo
|
|
16
|
+
* </Button>
|
|
17
|
+
* ),
|
|
18
|
+
* hideCloseAction: false,
|
|
19
|
+
* },
|
|
20
|
+
* { timeout: 5000 }
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export type SnackbarContent = {
|
|
25
|
+
/**
|
|
26
|
+
* Whether to hide the default close ("X") icon button.
|
|
27
|
+
* When `false` or omitted, a close icon button is automatically rendered.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
3
31
|
hideCloseAction?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Main message or descriptive text for the snackbar.
|
|
34
|
+
* Styled using Material 3 `typography.bodyMedium`.
|
|
35
|
+
*/
|
|
4
36
|
supportingText: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Optional action element (such as a text button) rendered alongside the supporting text.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* action: <Button color="text" onPress={handleUndo}>Undo</Button>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
5
45
|
action?: ReactNode;
|
|
6
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Props for the {@link SnackbarRegion} component.
|
|
49
|
+
*
|
|
50
|
+
* Configurable CSS tokens:
|
|
51
|
+
* - `--md-snackbar-background`: Background color of the snackbar (`var(--md-sys-color-inverse-surface)`).
|
|
52
|
+
* - `--md-snackbar-color`: Text and icon color of the snackbar (`var(--md-sys-color-inverse-on-surface)`).
|
|
53
|
+
* - `--md-snackbar-action-color`: Text color of the action button (`var(--md-sys-color-inverse-primary)`).
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```tsx
|
|
57
|
+
* import { SnackbarRegion } from "@adgytec/web-ui-components";
|
|
58
|
+
*
|
|
59
|
+
* export function RootLayout({ children }: { children: React.ReactNode }) {
|
|
60
|
+
* return (
|
|
61
|
+
* <SnackbarRegion maxVisibleSnackbars={1}>
|
|
62
|
+
* {children}
|
|
63
|
+
* </SnackbarRegion>
|
|
64
|
+
* );
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
7
68
|
export interface SnackbarRegionProps {
|
|
69
|
+
/**
|
|
70
|
+
* Application content wrapped by the snackbar region.
|
|
71
|
+
*/
|
|
8
72
|
children?: ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* The maximum number of snackbars displayed simultaneously in the region.
|
|
75
|
+
*
|
|
76
|
+
* @default 1
|
|
77
|
+
*/
|
|
9
78
|
maxVisibleSnackbars?: number;
|
|
10
79
|
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { SplashProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Material Design ripple splash animation element.
|
|
4
|
+
*
|
|
5
|
+
* Rendered absolutely inside an `overflow: clip` container at the press position coordinates `(x, y)`
|
|
6
|
+
* and expands outward, dissolving when the CSS keyframe animation completes.
|
|
7
|
+
*/
|
|
2
8
|
export declare const Splash: React.FC<SplashProps>;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* State object representing an active ripple splash animation.
|
|
3
|
+
*/
|
|
1
4
|
export interface SplashState {
|
|
5
|
+
/** Unique incremental identifier for keying the ripple animation instance. */
|
|
2
6
|
id: number;
|
|
7
|
+
/** Horizontal position (in pixels) of the pointer interaction relative to the element. */
|
|
3
8
|
x: number;
|
|
9
|
+
/** Vertical position (in pixels) of the pointer interaction relative to the element. */
|
|
4
10
|
y: number;
|
|
11
|
+
/** Callback triggered when the ripple CSS animation finishes, cleaning up state. */
|
|
5
12
|
onAnimationEnd: () => void;
|
|
6
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Props for the {@link Splash} component.
|
|
16
|
+
*/
|
|
7
17
|
export interface SplashProps extends SplashState {
|
|
8
18
|
}
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { PressEvent } from 'react-aria-components';
|
|
2
2
|
import { SplashState } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook that coordinates Material Design ripple splash animation state on pointer press.
|
|
5
|
+
*
|
|
6
|
+
* Captures press coordinates from React Aria's {@link PressEvent} and generates active {@link SplashState},
|
|
7
|
+
* automatically cleaning up the ripple element once the CSS expansion animation finishes.
|
|
8
|
+
*
|
|
9
|
+
* @param onPress - Optional consumer press handler invoked alongside splash creation.
|
|
10
|
+
* @returns Object containing `splashInfo` (active ripple data or `null`) and stable `handlePress` callback.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const { splashInfo, handlePress } = useSplash(onPress);
|
|
15
|
+
*
|
|
16
|
+
* return (
|
|
17
|
+
* <AriaButton onPress={handlePress}>
|
|
18
|
+
* {splashInfo && <Splash {...splashInfo} />}
|
|
19
|
+
* Label
|
|
20
|
+
* </AriaButton>
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
3
24
|
export declare const useSplash: (onPress?: (e: PressEvent) => void) => {
|
|
4
25
|
splashInfo: SplashState | null;
|
|
5
26
|
handlePress: (e: PressEvent) => void;
|
|
@@ -1,7 +1,38 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { Tab as AriaTab } from 'react-aria-components';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Props for the {@link Tab} component.
|
|
6
|
+
* Extends React Aria Components `Tab` props (omitting raw `children` in favor of `label` and `icon`).
|
|
7
|
+
*/
|
|
8
|
+
export interface TabProps extends Omit<React.ComponentPropsWithRef<typeof AriaTab>, "children"> {
|
|
9
|
+
/**
|
|
10
|
+
* Text label to display inside the tab.
|
|
11
|
+
*/
|
|
5
12
|
label?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Optional icon displayed alongside the tab label.
|
|
15
|
+
*/
|
|
6
16
|
icon?: LucideIcon;
|
|
7
|
-
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An individual interactive tab button within a {@link TabList}, conforming to
|
|
20
|
+
* [Material 3 Tabs](https://m3.material.io/components/tabs/overview).
|
|
21
|
+
*
|
|
22
|
+
* Extends React Aria Components `Tab` with Material 3 styling, supporting:
|
|
23
|
+
* - A text `label` and an optional `icon` (rendered via {@link Icon}).
|
|
24
|
+
* - Interactive ripple feedback via {@link Splash}.
|
|
25
|
+
* - An animated {@link SelectionIndicator} that underlines or highlights the active tab.
|
|
26
|
+
* - State layer feedback on hover, focus-visible, and pressed states.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* import { Tab } from "@adgytec/web-ui-components";
|
|
31
|
+
* import { Home } from "lucide-react";
|
|
32
|
+
*
|
|
33
|
+
* export function Example() {
|
|
34
|
+
* return <Tab id="home" label="Home" icon={Home} />;
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare const Tab: React.FC<TabProps>;
|
|
@@ -1,2 +1,43 @@
|
|
|
1
1
|
import { TabList as AriaTabList } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link TabList} component.
|
|
4
|
+
* Extends React Aria Components `TabList` props.
|
|
5
|
+
*
|
|
6
|
+
* Configurable CSS tokens:
|
|
7
|
+
* - `--md-tabs-color`: Text and icon color for inactive tabs (`var(--md-sys-color-on-surface-variant)`).
|
|
8
|
+
* - `--md-tabs-active-color`: Text and icon color for the active tab (`var(--md-sys-color-on-surface)`).
|
|
9
|
+
* - `--md-tabs-active-indicator-color`: Color of the selection indicator line (`var(--md-sys-color-primary)`).
|
|
10
|
+
* - `--md-tab-list-divider-color`: Color of the divider line below or beside the tab list (`var(--md-sys-color-surface-variant)`).
|
|
11
|
+
*/
|
|
12
|
+
export interface TabListProps<T extends object = object> extends React.ComponentPropsWithRef<typeof AriaTabList<T>> {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Container for interactive {@link Tab} elements, conforming to
|
|
16
|
+
* [Material 3 Tabs](https://m3.material.io/components/tabs/overview).
|
|
17
|
+
*
|
|
18
|
+
* Extends React Aria Components `TabList` with Material 3 styling, active selection
|
|
19
|
+
* indicator positioning, and divider styling for horizontal and vertical orientations.
|
|
20
|
+
*
|
|
21
|
+
* Configurable CSS tokens:
|
|
22
|
+
* - `--md-tabs-color`: Text and icon color for inactive tabs (`var(--md-sys-color-on-surface-variant)`).
|
|
23
|
+
* - `--md-tabs-active-color`: Text and icon color for the active tab (`var(--md-sys-color-on-surface)`).
|
|
24
|
+
* - `--md-tabs-active-indicator-color`: Color of the selection indicator line (`var(--md-sys-color-primary)`).
|
|
25
|
+
* - `--md-tab-list-divider-color`: Color of the divider line below or beside the tab list (`var(--md-sys-color-surface-variant)`).
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import { Tab, TabList } from "@adgytec/web-ui-components";
|
|
30
|
+
* import { Home, Settings, User } from "lucide-react";
|
|
31
|
+
*
|
|
32
|
+
* export function NavigationTabList() {
|
|
33
|
+
* return (
|
|
34
|
+
* <TabList aria-label="Account Tabs">
|
|
35
|
+
* <Tab id="home" label="Home" icon={Home} />
|
|
36
|
+
* <Tab id="profile" label="Profile" icon={User} />
|
|
37
|
+
* <Tab id="settings" label="Settings" icon={Settings} />
|
|
38
|
+
* </TabList>
|
|
39
|
+
* );
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const TabList: <T extends object>({ className, ...props }: TabListProps<T>) => import('react').JSX.Element;
|
|
@@ -1,2 +1,29 @@
|
|
|
1
1
|
import { TabPanel as AriaTabPanel } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link TabPanel} component.
|
|
4
|
+
* Extends React Aria Components `TabPanel` props.
|
|
5
|
+
*/
|
|
6
|
+
export interface TabPanelProps extends React.ComponentPropsWithRef<typeof AriaTabPanel> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Content panel associated with a specific {@link Tab}, conforming to
|
|
10
|
+
* [Material 3 Tabs](https://m3.material.io/components/tabs/overview).
|
|
11
|
+
*
|
|
12
|
+
* Extends React Aria Components `TabPanel` with Material 3 styling and smooth
|
|
13
|
+
* fade entrance animations when the tab becomes active.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { TabPanel } from "@adgytec/web-ui-components";
|
|
18
|
+
*
|
|
19
|
+
* export function PanelExample() {
|
|
20
|
+
* return (
|
|
21
|
+
* <TabPanel id="profile">
|
|
22
|
+
* <h3>User Profile</h3>
|
|
23
|
+
* <p>Manage user profile information here.</p>
|
|
24
|
+
* </TabPanel>
|
|
25
|
+
* );
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const TabPanel: React.FC<TabPanelProps>;
|
|
@@ -1,2 +1,29 @@
|
|
|
1
1
|
import { TabPanels as AriaTabPanels } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link TabPanels} component.
|
|
4
|
+
* Extends React Aria Components `TabPanels` props.
|
|
5
|
+
*/
|
|
6
|
+
export interface TabPanelsProps<T extends object = object> extends React.ComponentPropsWithRef<typeof AriaTabPanels<T>> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Container for {@link TabPanel} elements in a {@link Tabs} structure, conforming to
|
|
10
|
+
* [Material 3 Tabs](https://m3.material.io/components/tabs/overview).
|
|
11
|
+
*
|
|
12
|
+
* Extends React Aria Components `TabPanels` and provides coordinated smooth height transitions
|
|
13
|
+
* when switching between tab panels.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { TabPanel, TabPanels } from "@adgytec/web-ui-components";
|
|
18
|
+
*
|
|
19
|
+
* export function PanelsExample() {
|
|
20
|
+
* return (
|
|
21
|
+
* <TabPanels>
|
|
22
|
+
* <TabPanel id="account">Account settings content</TabPanel>
|
|
23
|
+
* <TabPanel id="security">Security settings content</TabPanel>
|
|
24
|
+
* </TabPanels>
|
|
25
|
+
* );
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const TabPanels: <T extends object>({ className, ...props }: TabPanelsProps<T>) => import('react').JSX.Element;
|
|
@@ -1,2 +1,44 @@
|
|
|
1
1
|
import { Tabs as AriaTabs } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link Tabs} component.
|
|
4
|
+
* Extends React Aria Components `Tabs` props.
|
|
5
|
+
*/
|
|
6
|
+
export interface TabsProps extends React.ComponentPropsWithRef<typeof AriaTabs> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Main container for organizing content into high-level categories based on
|
|
10
|
+
* [Material 3 Tabs](https://m3.material.io/components/tabs/overview).
|
|
11
|
+
*
|
|
12
|
+
* Extends React Aria Components `Tabs` to manage tab selection state, keyboard navigation,
|
|
13
|
+
* and layout orientation (horizontal or vertical).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import {
|
|
18
|
+
* Tab,
|
|
19
|
+
* TabList,
|
|
20
|
+
* TabPanel,
|
|
21
|
+
* TabPanels,
|
|
22
|
+
* Tabs,
|
|
23
|
+
* } from "@adgytec/web-ui-components";
|
|
24
|
+
* import { Home, Settings, User } from "lucide-react";
|
|
25
|
+
*
|
|
26
|
+
* export function Example() {
|
|
27
|
+
* return (
|
|
28
|
+
* <Tabs defaultSelectedKey="home">
|
|
29
|
+
* <TabList aria-label="Navigation">
|
|
30
|
+
* <Tab id="home" label="Home" icon={Home} />
|
|
31
|
+
* <Tab id="profile" label="Profile" icon={User} />
|
|
32
|
+
* <Tab id="settings" label="Settings" icon={Settings} />
|
|
33
|
+
* </TabList>
|
|
34
|
+
* <TabPanels>
|
|
35
|
+
* <TabPanel id="home">Home content goes here.</TabPanel>
|
|
36
|
+
* <TabPanel id="profile">Profile content goes here.</TabPanel>
|
|
37
|
+
* <TabPanel id="settings">Settings content goes here.</TabPanel>
|
|
38
|
+
* </TabPanels>
|
|
39
|
+
* </Tabs>
|
|
40
|
+
* );
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
@@ -1,2 +1,39 @@
|
|
|
1
1
|
import { TagProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Compact interactive element representing an attribute, entity, or action, based on
|
|
4
|
+
* [Material 3 Chips](https://m3.material.io/components/chips/overview).
|
|
5
|
+
*
|
|
6
|
+
* Extends React Aria Components `Tag` with Material 3 styling and interactive behaviors:
|
|
7
|
+
* - Renders a text `label` using `typography.labelLarge`.
|
|
8
|
+
* - Supports an optional leading `icon` or circular `avatar`.
|
|
9
|
+
* - When selected, dynamically displays a checkmark icon unless an avatar is present.
|
|
10
|
+
* - Supports removable tags by rendering a built-in remove icon button (`X`) when `allowsRemoving` is true.
|
|
11
|
+
* - Interactive ripple feedback via {@link Splash}.
|
|
12
|
+
*
|
|
13
|
+
* Configurable CSS tokens:
|
|
14
|
+
* - `--md-chip-background-color`: Background color of the tag (`var(--md-sys-color-surface-container-low)`).
|
|
15
|
+
* - `--md-chip-selected-background-color`: Background color when selected (`var(--md-sys-color-secondary-container)`).
|
|
16
|
+
* - `--md-chip-icon-color`: Color of the leading icon (`var(--md-sys-color-primary)`).
|
|
17
|
+
* - `--md-chip-selected-icon-color`: Color of the icon when selected (`var(--md-sys-color-on-secondary-container)`).
|
|
18
|
+
* - `--md-chip-label-color`: Text color of the label (`var(--md-sys-color-on-surface-variant)`).
|
|
19
|
+
* - `--md-chip-selected-label-color`: Text color when selected (`var(--md-sys-color-on-secondary-container)`).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* import { Tag } from "@adgytec/web-ui-components";
|
|
24
|
+
* import { TagGroup, TagList } from "react-aria-components";
|
|
25
|
+
* import { PlaneTakeoff, ShoppingCart } from "lucide-react";
|
|
26
|
+
*
|
|
27
|
+
* export function Example() {
|
|
28
|
+
* return (
|
|
29
|
+
* <TagGroup aria-label="Categories" selectionMode="multiple">
|
|
30
|
+
* <TagList>
|
|
31
|
+
* <Tag id="travel" label="Travel" icon={PlaneTakeoff} />
|
|
32
|
+
* <Tag id="shopping" label="Shopping" icon={ShoppingCart} />
|
|
33
|
+
* </TagList>
|
|
34
|
+
* </TagGroup>
|
|
35
|
+
* );
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
2
39
|
export declare const Tag: React.FC<TagProps>;
|
|
@@ -1,8 +1,54 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
import { Tag } from 'react-aria-components';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the {@link Tag} component.
|
|
6
|
+
* Extends React Aria Components `Tag` props (omitting raw `children` in favor of structured `label`, `icon`, and `avatar`).
|
|
7
|
+
*
|
|
8
|
+
* Configurable CSS tokens:
|
|
9
|
+
* - `--md-chip-background-color`: Background color of the tag in its default state (`var(--md-sys-color-surface-container-low)`).
|
|
10
|
+
* - `--md-chip-selected-background-color`: Background color of the tag when selected (`var(--md-sys-color-secondary-container)`).
|
|
11
|
+
* - `--md-chip-icon-color`: Color of the icon in its default state (`var(--md-sys-color-primary)`).
|
|
12
|
+
* - `--md-chip-selected-icon-color`: Color of the icon when selected (`var(--md-sys-color-on-secondary-container)`).
|
|
13
|
+
* - `--md-chip-label-color`: Color of the label text in its default state (`var(--md-sys-color-on-surface-variant)`).
|
|
14
|
+
* - `--md-chip-selected-label-color`: Color of the label text when selected (`var(--md-sys-color-on-secondary-container)`).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Tag } from "@adgytec/web-ui-components";
|
|
19
|
+
* import { User } from "lucide-react";
|
|
20
|
+
*
|
|
21
|
+
* export function Example() {
|
|
22
|
+
* return (
|
|
23
|
+
* <Tag
|
|
24
|
+
* id="user-profile"
|
|
25
|
+
* label="Profile"
|
|
26
|
+
* icon={User}
|
|
27
|
+
* />
|
|
28
|
+
* );
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
4
32
|
export interface TagProps extends Omit<React.ComponentPropsWithRef<typeof Tag>, "children"> {
|
|
33
|
+
/**
|
|
34
|
+
* Text content displayed within the tag.
|
|
35
|
+
*/
|
|
5
36
|
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* Optional icon displayed at the start of the tag.
|
|
39
|
+
* When the tag is selected in a selection group, this icon is automatically replaced by a checkmark.
|
|
40
|
+
* If both `icon` and `avatar` are provided, `avatar` takes precedence.
|
|
41
|
+
*/
|
|
6
42
|
icon?: LucideIcon;
|
|
7
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Optional avatar element displayed at the start of the tag.
|
|
45
|
+
* Rendered inside a circular constraint container (`24px`).
|
|
46
|
+
* Takes precedence over `icon` when both are provided.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* avatar={<img src="/avatar.png" alt="Jane" />}
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
avatar?: ReactNode;
|
|
8
54
|
}
|
|
@@ -1,8 +1,52 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link ThemeItem} component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ThemeItemProps {
|
|
6
|
+
/**
|
|
7
|
+
* Section title heading text.
|
|
8
|
+
*/
|
|
3
9
|
heading: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional explanatory text describing the setting.
|
|
12
|
+
*/
|
|
4
13
|
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Interactive control element(s) (e.g. connected button groups or switches) associated with the item.
|
|
16
|
+
*/
|
|
5
17
|
children?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Optional custom CSS class name applied to the container.
|
|
20
|
+
*/
|
|
6
21
|
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to render inline `span` elements instead of block `div` elements.
|
|
24
|
+
* Useful when nesting inside a label or interactive component like `Switch`.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
7
28
|
useInline?: boolean;
|
|
8
|
-
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Layout helper component for a single setting item within {@link ThemeSelector}.
|
|
32
|
+
*
|
|
33
|
+
* Renders a styled heading (`typography.titleMedium`), an optional description (`typography.bodyMedium`),
|
|
34
|
+
* and the child controls. Supports both block rendering and inline `span` rendering.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* import { ThemeItem } from "@adgytec/web-ui-components";
|
|
39
|
+
*
|
|
40
|
+
* export function SettingRow() {
|
|
41
|
+
* return (
|
|
42
|
+
* <ThemeItem
|
|
43
|
+
* heading="Appearance"
|
|
44
|
+
* description="Select your preferred color mode."
|
|
45
|
+
* >
|
|
46
|
+
* <Controls />
|
|
47
|
+
* </ThemeItem>
|
|
48
|
+
* );
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare const ThemeItem: React.FC<ThemeItemProps>;
|