@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,4 +1,31 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link ThemeProvider} component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ThemeProviderProps {
|
|
6
|
+
/**
|
|
7
|
+
* Application content to be rendered inside the provider.
|
|
8
|
+
*/
|
|
3
9
|
children?: ReactNode;
|
|
4
|
-
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Top-level provider component that synchronizes the application root with the current theme settings.
|
|
13
|
+
*
|
|
14
|
+
* Subscribes to the theme state via {@link useTheme} (mode, dark mode calculation,
|
|
15
|
+
* contrast level, and monochrome setting) and dynamically assigns the computed theme
|
|
16
|
+
* string to the `data-theme` attribute of `document.documentElement`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import { ThemeProvider } from "@adgytec/web-ui-components";
|
|
21
|
+
*
|
|
22
|
+
* export function App() {
|
|
23
|
+
* return (
|
|
24
|
+
* <ThemeProvider>
|
|
25
|
+
* <MainContent />
|
|
26
|
+
* </ThemeProvider>
|
|
27
|
+
* );
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
import { ThemeSelectorProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Settings UI component for managing application theme appearance.
|
|
4
|
+
*
|
|
5
|
+
* Provides user controls for:
|
|
6
|
+
* - **Theme Mode**: Connected button group with `"System"`, `"Light"`, and `"Dark"` options.
|
|
7
|
+
* - **Theme Contrast**: Connected button group with `"Standard"`, `"Medium"`, and `"High"` options (disabled when monochrome is active).
|
|
8
|
+
* - **Monochrome Mode**: An interactive {@link Switch} to toggle neutral grayscale styling.
|
|
9
|
+
*
|
|
10
|
+
* Directly connects to {@link useTheme} to read and update theme settings, which are
|
|
11
|
+
* persisted to local storage and applied to `document.documentElement` by {@link ThemeProvider}.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { ThemeProvider, ThemeSelector } from "@adgytec/web-ui-components";
|
|
16
|
+
*
|
|
17
|
+
* export function SettingsMenu() {
|
|
18
|
+
* return (
|
|
19
|
+
* <ThemeProvider>
|
|
20
|
+
* <ThemeSelector />
|
|
21
|
+
* </ThemeProvider>
|
|
22
|
+
* );
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
2
26
|
export declare const ThemeSelector: React.FC<ThemeSelectorProps>;
|
|
@@ -1,13 +1,71 @@
|
|
|
1
1
|
import { Key } from 'react-aria-components';
|
|
2
2
|
import { ThemeContrast, ThemeMode } from '../../utils';
|
|
3
3
|
import { ThemeContrastTranslations, ThemeModeTranslations } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Generates an array of theme mode options with translated labels.
|
|
6
|
+
*
|
|
7
|
+
* @param modeDetails - Translations for theme mode labels (`system`, `light`, `dark`).
|
|
8
|
+
* @returns Array of mode items with `id` and localized `value`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const items = modeItems({
|
|
13
|
+
* heading: "Theme Mode",
|
|
14
|
+
* system: "System",
|
|
15
|
+
* light: "Light",
|
|
16
|
+
* dark: "Dark",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
4
20
|
export declare const modeItems: (modeDetails: ThemeModeTranslations) => {
|
|
5
21
|
id: ThemeMode;
|
|
6
22
|
value: string;
|
|
7
23
|
}[];
|
|
24
|
+
/**
|
|
25
|
+
* Generates an array of theme contrast options with translated labels.
|
|
26
|
+
*
|
|
27
|
+
* @param contrastDetails - Translations for contrast level labels (`standard`, `medium`, `high`).
|
|
28
|
+
* @returns Array of contrast items with `id` and localized `value`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* const items = contrastItems({
|
|
33
|
+
* heading: "Contrast",
|
|
34
|
+
* standard: "Standard",
|
|
35
|
+
* medium: "Medium",
|
|
36
|
+
* high: "High",
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
8
40
|
export declare const contrastItems: (contrastDetails: ThemeContrastTranslations) => {
|
|
9
41
|
id: ThemeContrast;
|
|
10
42
|
value: string;
|
|
11
43
|
}[];
|
|
44
|
+
/**
|
|
45
|
+
* Type guard function to check if a React Aria `Key` is a valid {@link ThemeMode}.
|
|
46
|
+
*
|
|
47
|
+
* @param value - The key to test.
|
|
48
|
+
* @returns `true` if `value` is `"system"`, `"light"`, or `"dark"`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* if (isThemeMode(selectedKey)) {
|
|
53
|
+
* setMode(selectedKey);
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
12
57
|
export declare function isThemeMode(value: Key): value is ThemeMode;
|
|
58
|
+
/**
|
|
59
|
+
* Type guard function to check if a React Aria `Key` is a valid {@link ThemeContrast}.
|
|
60
|
+
*
|
|
61
|
+
* @param value - The key to test.
|
|
62
|
+
* @returns `true` if `value` is `"standard"`, `"medium"`, or `"high"`.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* if (isThemeContrast(selectedKey)) {
|
|
67
|
+
* setContrast(selectedKey);
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
13
71
|
export declare function isThemeContrast(value: Key): value is ThemeContrast;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../../chunks/ThemeSelector";
|
|
2
|
+
export { i as ThemeItem, n as ThemeProvider, o as ThemeSelector, t as contrastItems, e as isThemeContrast, r as isThemeMode, a as modeItems };
|
|
@@ -1,22 +1,89 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Base translation interface providing a section heading and optional description.
|
|
3
|
+
*/
|
|
4
|
+
export interface ThemeBaseTranslations {
|
|
5
|
+
/**
|
|
6
|
+
* Section title heading text.
|
|
7
|
+
*/
|
|
2
8
|
heading: string;
|
|
9
|
+
/**
|
|
10
|
+
* Optional explanatory text describing the setting.
|
|
11
|
+
*/
|
|
3
12
|
description?: string;
|
|
4
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Translations for the Theme Mode section of {@link ThemeSelector}.
|
|
16
|
+
*/
|
|
5
17
|
export interface ThemeModeTranslations extends ThemeBaseTranslations {
|
|
18
|
+
/**
|
|
19
|
+
* Label for the system preference mode.
|
|
20
|
+
*/
|
|
6
21
|
system: string;
|
|
22
|
+
/**
|
|
23
|
+
* Label for the light theme mode.
|
|
24
|
+
*/
|
|
7
25
|
light: string;
|
|
26
|
+
/**
|
|
27
|
+
* Label for the dark theme mode.
|
|
28
|
+
*/
|
|
8
29
|
dark: string;
|
|
9
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Translations for the Theme Contrast section of {@link ThemeSelector}.
|
|
33
|
+
*/
|
|
10
34
|
export interface ThemeContrastTranslations extends ThemeBaseTranslations {
|
|
35
|
+
/**
|
|
36
|
+
* Label for the standard contrast option.
|
|
37
|
+
*/
|
|
11
38
|
standard: string;
|
|
39
|
+
/**
|
|
40
|
+
* Label for the medium contrast option.
|
|
41
|
+
*/
|
|
12
42
|
medium: string;
|
|
43
|
+
/**
|
|
44
|
+
* Label for the high contrast option.
|
|
45
|
+
*/
|
|
13
46
|
high: string;
|
|
14
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Translations for the Monochrome toggle section of {@link ThemeSelector}.
|
|
50
|
+
*/
|
|
15
51
|
export interface ThemeMonochromeTranslations extends ThemeBaseTranslations {
|
|
16
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Props for the {@link ThemeSelector} component.
|
|
55
|
+
* Allows customization and localization of headings, descriptions, and button labels.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```tsx
|
|
59
|
+
* import { ThemeSelector } from "@adgytec/web-ui-components";
|
|
60
|
+
*
|
|
61
|
+
* export function Example() {
|
|
62
|
+
* return (
|
|
63
|
+
* <ThemeSelector
|
|
64
|
+
* modeDetails={{
|
|
65
|
+
* heading: "Appearance",
|
|
66
|
+
* description: "Customize how the app looks.",
|
|
67
|
+
* system: "Auto",
|
|
68
|
+
* light: "Day",
|
|
69
|
+
* dark: "Night",
|
|
70
|
+
* }}
|
|
71
|
+
* />
|
|
72
|
+
* );
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
17
76
|
export type ThemeSelectorProps = {
|
|
77
|
+
/**
|
|
78
|
+
* Custom text and translations for the Theme Mode section.
|
|
79
|
+
*/
|
|
18
80
|
modeDetails?: ThemeModeTranslations;
|
|
81
|
+
/**
|
|
82
|
+
* Custom text and translations for the Theme Contrast section.
|
|
83
|
+
*/
|
|
19
84
|
contrastDetails?: ThemeContrastTranslations;
|
|
85
|
+
/**
|
|
86
|
+
* Custom text and translations for the Monochrome toggle section.
|
|
87
|
+
*/
|
|
20
88
|
monochromeDetails?: ThemeMonochromeTranslations;
|
|
21
89
|
};
|
|
22
|
-
export {};
|
|
@@ -1,2 +1,49 @@
|
|
|
1
1
|
import { ToolbarProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Container for a set of related action buttons, toggle buttons, and dividers, following
|
|
4
|
+
* [Material 3 Toolbar](https://m3.material.io/) design patterns.
|
|
5
|
+
*
|
|
6
|
+
* Extends React Aria Components `Toolbar` with Material 3 styling and interactive behaviors:
|
|
7
|
+
* - Manages single-tab-stop keyboard navigation across action items using arrow keys.
|
|
8
|
+
* - Supports horizontal and vertical orientations via the `orientation` prop.
|
|
9
|
+
* - Supports docked and elevated floating display variants via `variant`.
|
|
10
|
+
* - Provides `"standard"` (surface container) and `"vibrant"` (primary container) color themes via `color`.
|
|
11
|
+
* - Automatically adjusts button borders, shadows, and colors to seamlessly fit the toolbar surface.
|
|
12
|
+
*
|
|
13
|
+
* Configurable CSS tokens:
|
|
14
|
+
* - `--md-toolbar-background`: Background color of the toolbar.
|
|
15
|
+
* - `--md-toolbar-button-background`: Background color for buttons within the toolbar.
|
|
16
|
+
* - `--md-toolbar-toggle-button-background`: Background color for toggle buttons.
|
|
17
|
+
* - `--md-toolbar-toggle-button-selected-background`: Background color for selected toggle buttons.
|
|
18
|
+
* - `--md-toolbar-button-color`: Text and icon color for buttons within the toolbar.
|
|
19
|
+
* - `--md-toolbar-toggle-button-color`: Text and icon color for toggle buttons within the toolbar.
|
|
20
|
+
* - `--md-toolbar-toggle-button-selected-color`: Text and icon color for selected toggle buttons.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* import {
|
|
25
|
+
* Divider,
|
|
26
|
+
* IconButton,
|
|
27
|
+
* ToggleIconButton,
|
|
28
|
+
* Toolbar,
|
|
29
|
+
* ToolbarToggleButtonGroup,
|
|
30
|
+
* } from "@adgytec/web-ui-components";
|
|
31
|
+
* import { AlignCenter, AlignLeft, AlignRight, Bold, Italic } from "lucide-react";
|
|
32
|
+
*
|
|
33
|
+
* export function EditorToolbar() {
|
|
34
|
+
* return (
|
|
35
|
+
* <Toolbar aria-label="Editor actions" variant="floating">
|
|
36
|
+
* <ToolbarToggleButtonGroup selectionMode="single">
|
|
37
|
+
* <ToggleIconButton id="left" icon={AlignLeft} aria-label="Align left" />
|
|
38
|
+
* <ToggleIconButton id="center" icon={AlignCenter} aria-label="Align center" />
|
|
39
|
+
* <ToggleIconButton id="right" icon={AlignRight} aria-label="Align right" />
|
|
40
|
+
* </ToolbarToggleButtonGroup>
|
|
41
|
+
* <Divider orientation="vertical" />
|
|
42
|
+
* <IconButton icon={Bold} aria-label="Bold" />
|
|
43
|
+
* <IconButton icon={Italic} aria-label="Italic" />
|
|
44
|
+
* </Toolbar>
|
|
45
|
+
* );
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
2
49
|
export declare const Toolbar: React.FC<ToolbarProps>;
|
|
@@ -1,2 +1,36 @@
|
|
|
1
1
|
import { ToggleButtonGroup } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link ToolbarToggleButtonGroup} component.
|
|
4
|
+
* Extends React Aria Components `ToggleButtonGroup` props.
|
|
5
|
+
*/
|
|
6
|
+
export interface ToolbarToggleButtonGroupProps extends React.ComponentPropsWithRef<typeof ToggleButtonGroup> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Section wrapper for grouping toggle buttons inside a {@link Toolbar}.
|
|
10
|
+
*
|
|
11
|
+
* Extends React Aria Components `ToggleButtonGroup` to arrange grouped toggle buttons
|
|
12
|
+
* (e.g. alignment choices, text format styles) with appropriate toolbar spacing,
|
|
13
|
+
* selection handling, and orientation alignment.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import {
|
|
18
|
+
* ToggleIconButton,
|
|
19
|
+
* Toolbar,
|
|
20
|
+
* ToolbarToggleButtonGroup,
|
|
21
|
+
* } from "@adgytec/web-ui-components";
|
|
22
|
+
* import { Bold, Italic } from "lucide-react";
|
|
23
|
+
*
|
|
24
|
+
* export function Example() {
|
|
25
|
+
* return (
|
|
26
|
+
* <Toolbar aria-label="Text styles">
|
|
27
|
+
* <ToolbarToggleButtonGroup selectionMode="multiple" aria-label="Format">
|
|
28
|
+
* <ToggleIconButton id="bold" icon={Bold} aria-label="Bold" />
|
|
29
|
+
* <ToggleIconButton id="italic" icon={Italic} aria-label="Italic" />
|
|
30
|
+
* </ToolbarToggleButtonGroup>
|
|
31
|
+
* </Toolbar>
|
|
32
|
+
* );
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const ToolbarToggleButtonGroup: React.FC<ToolbarToggleButtonGroupProps>;
|
|
@@ -1,7 +1,67 @@
|
|
|
1
1
|
import { Toolbar } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Visual variant of the toolbar container.
|
|
4
|
+
*
|
|
5
|
+
* - `"docked"`: Standard toolbar attached or positioned flush without drop shadow.
|
|
6
|
+
* - `"floating"`: Floating toolbar elevated with an elevation shadow (`--md-sys-elevation-shadow-3`).
|
|
7
|
+
*/
|
|
2
8
|
export type ToolbarVariant = "docked" | "floating";
|
|
9
|
+
/**
|
|
10
|
+
* Color scheme applied to the toolbar and its contained controls.
|
|
11
|
+
*
|
|
12
|
+
* - `"standard"`: Neutral theme using surface container tones.
|
|
13
|
+
* - `"vibrant"`: Accent theme using primary container tones.
|
|
14
|
+
*/
|
|
3
15
|
export type ToolbarColor = "standard" | "vibrant";
|
|
16
|
+
/**
|
|
17
|
+
* Props for the {@link Toolbar} component.
|
|
18
|
+
* Extends React Aria Components `Toolbar` props with variant and color options.
|
|
19
|
+
*
|
|
20
|
+
* Usage recommendations:
|
|
21
|
+
* - Use small-sized buttons (e.g. `size="small"` or `IconButton` / `ToggleIconButton`).
|
|
22
|
+
* - For vertical orientation, use `IconButton` or `ToggleIconButton`.
|
|
23
|
+
* - To group toggle buttons, use `ToolbarToggleButtonGroup` instead of standard button groups.
|
|
24
|
+
* - For dividers within horizontal toolbars, use `<Divider orientation="vertical" />`.
|
|
25
|
+
*
|
|
26
|
+
* Configurable CSS tokens:
|
|
27
|
+
* - `--md-toolbar-background`: Background color of the toolbar.
|
|
28
|
+
* - `--md-toolbar-button-background`: Background color for buttons within the toolbar.
|
|
29
|
+
* - `--md-toolbar-toggle-button-background`: Background color for toggle buttons.
|
|
30
|
+
* - `--md-toolbar-toggle-button-selected-background`: Background color for selected toggle buttons.
|
|
31
|
+
* - `--md-toolbar-button-color`: Text and icon color for buttons within the toolbar.
|
|
32
|
+
* - `--md-toolbar-toggle-button-color`: Text and icon color for toggle buttons within the toolbar.
|
|
33
|
+
* - `--md-toolbar-toggle-button-selected-color`: Text and icon color for selected toggle buttons.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* import {
|
|
38
|
+
* IconButton,
|
|
39
|
+
* Toolbar,
|
|
40
|
+
* } from "@adgytec/web-ui-components";
|
|
41
|
+
* import { Bold, Italic, Underline } from "lucide-react";
|
|
42
|
+
*
|
|
43
|
+
* export function Example() {
|
|
44
|
+
* return (
|
|
45
|
+
* <Toolbar aria-label="Text formatting" variant="floating" color="standard">
|
|
46
|
+
* <IconButton icon={Bold} aria-label="Bold" />
|
|
47
|
+
* <IconButton icon={Italic} aria-label="Italic" />
|
|
48
|
+
* <IconButton icon={Underline} aria-label="Underline" />
|
|
49
|
+
* </Toolbar>
|
|
50
|
+
* );
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
4
54
|
export interface ToolbarProps extends React.ComponentPropsWithRef<typeof Toolbar> {
|
|
55
|
+
/**
|
|
56
|
+
* Visual variant of the toolbar.
|
|
57
|
+
*
|
|
58
|
+
* @default "docked"
|
|
59
|
+
*/
|
|
5
60
|
variant?: ToolbarVariant;
|
|
61
|
+
/**
|
|
62
|
+
* Color scheme applied to the toolbar and its child actions.
|
|
63
|
+
*
|
|
64
|
+
* @default "standard"
|
|
65
|
+
*/
|
|
6
66
|
color?: ToolbarColor;
|
|
7
67
|
}
|
|
@@ -1 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Props for the {@link RichTooltip} component.
|
|
3
|
+
* Extends standard `HTMLDivElement` attributes.
|
|
4
|
+
*
|
|
5
|
+
* Configurable CSS tokens:
|
|
6
|
+
* - `--md-rich-tooltip-background`: Background color of the rich tooltip (`var(--md-sys-color-surface-container)`).
|
|
7
|
+
* - `--md-rich-tooltip-color`: Text color of the rich tooltip (`var(--md-sys-color-on-surface-variant)`).
|
|
8
|
+
*/
|
|
9
|
+
export interface RichTooltipProps extends React.ComponentPropsWithRef<"div"> {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Container component implementing [Material 3 Rich Tooltips](https://m3.material.io/components/tooltips/overview#89f33800-4f51-4043-9884-219159f427f7).
|
|
13
|
+
*
|
|
14
|
+
* Rich tooltips provide contextual information, descriptive subheads, body copy, and optional actions.
|
|
15
|
+
* Typically rendered inside a `Popover` component triggered by a `DialogTrigger`.
|
|
16
|
+
*
|
|
17
|
+
* Configurable CSS tokens:
|
|
18
|
+
* - `--md-rich-tooltip-background`: Background color of the rich tooltip (`var(--md-sys-color-surface-container)`).
|
|
19
|
+
* - `--md-rich-tooltip-color`: Text color of the rich tooltip (`var(--md-sys-color-on-surface-variant)`).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* import {
|
|
24
|
+
* Button,
|
|
25
|
+
* Popover,
|
|
26
|
+
* RichTooltip,
|
|
27
|
+
* RichTooltipActions,
|
|
28
|
+
* RichTooltipInfo,
|
|
29
|
+
* RichTooltipSubhead,
|
|
30
|
+
* RichTooltipText,
|
|
31
|
+
* } from "@adgytec/web-ui-components";
|
|
32
|
+
* import { DialogTrigger } from "react-aria-components";
|
|
33
|
+
*
|
|
34
|
+
* export function Example() {
|
|
35
|
+
* return (
|
|
36
|
+
* <DialogTrigger>
|
|
37
|
+
* <Button label="More Info" />
|
|
38
|
+
* <Popover>
|
|
39
|
+
* <RichTooltip>
|
|
40
|
+
* <RichTooltipInfo>
|
|
41
|
+
* <RichTooltipSubhead>Feature Overview</RichTooltipSubhead>
|
|
42
|
+
* <RichTooltipText>
|
|
43
|
+
* Detailed explanation of this feature and its benefits.
|
|
44
|
+
* </RichTooltipText>
|
|
45
|
+
* </RichTooltipInfo>
|
|
46
|
+
* <RichTooltipActions>
|
|
47
|
+
* <Button label="Learn More" size="small" color="text" />
|
|
48
|
+
* </RichTooltipActions>
|
|
49
|
+
* </RichTooltip>
|
|
50
|
+
* </Popover>
|
|
51
|
+
* </DialogTrigger>
|
|
52
|
+
* );
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare const RichTooltip: React.FC<RichTooltipProps>;
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Props for the {@link RichTooltipActions} component.
|
|
3
|
+
* Extends standard `HTMLDivElement` attributes.
|
|
4
|
+
*/
|
|
5
|
+
export interface RichTooltipActionsProps extends React.ComponentPropsWithRef<"div"> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Action button container for a {@link RichTooltip}.
|
|
9
|
+
*
|
|
10
|
+
* Renders action elements at the bottom of the rich tooltip with proper horizontal alignment and spacing.
|
|
11
|
+
* Recommended to contain buttons with `size="small"` and `color="text"`.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { Button, RichTooltipActions } from "@adgytec/web-ui-components";
|
|
16
|
+
*
|
|
17
|
+
* export function Example() {
|
|
18
|
+
* return (
|
|
19
|
+
* <RichTooltipActions>
|
|
20
|
+
* <Button label="Dismiss" size="small" color="text" />
|
|
21
|
+
* <Button label="Learn More" size="small" color="text" />
|
|
22
|
+
* </RichTooltipActions>
|
|
23
|
+
* );
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const RichTooltipActions: React.FC<RichTooltipActionsProps>;
|
package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts
CHANGED
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Props for the {@link RichTooltipInfo} component.
|
|
3
|
+
* Extends standard `HTMLDivElement` attributes.
|
|
4
|
+
*/
|
|
5
|
+
export interface RichTooltipInfoProps extends React.ComponentPropsWithRef<"div"> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Text content container for a {@link RichTooltip}.
|
|
9
|
+
*
|
|
10
|
+
* Houses the {@link RichTooltipSubhead} title and {@link RichTooltipText} description
|
|
11
|
+
* with proper Material 3 padding and spacing.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import {
|
|
16
|
+
* RichTooltipInfo,
|
|
17
|
+
* RichTooltipSubhead,
|
|
18
|
+
* RichTooltipText,
|
|
19
|
+
* } from "@adgytec/web-ui-components";
|
|
20
|
+
*
|
|
21
|
+
* export function Example() {
|
|
22
|
+
* return (
|
|
23
|
+
* <RichTooltipInfo>
|
|
24
|
+
* <RichTooltipSubhead>Header Title</RichTooltipSubhead>
|
|
25
|
+
* <RichTooltipText>Informative description goes here.</RichTooltipText>
|
|
26
|
+
* </RichTooltipInfo>
|
|
27
|
+
* );
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const RichTooltipInfo: React.FC<RichTooltipInfoProps>;
|
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
import { Heading } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link RichTooltipSubhead} component.
|
|
4
|
+
* Extends React Aria Components `Heading` props.
|
|
5
|
+
*/
|
|
6
|
+
export interface RichTooltipSubheadProps extends React.ComponentPropsWithRef<typeof Heading> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Heading title component for a {@link RichTooltip}.
|
|
10
|
+
*
|
|
11
|
+
* Extends React Aria Components `Heading` and styles the title text using
|
|
12
|
+
* Material 3 `typography.titleSmall`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { RichTooltipSubhead } from "@adgytec/web-ui-components";
|
|
17
|
+
*
|
|
18
|
+
* export function Example() {
|
|
19
|
+
* return <RichTooltipSubhead>New Feature Available</RichTooltipSubhead>;
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const RichTooltipSubhead: React.FC<RichTooltipSubheadProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Heading } from \"react-aria-components\";\nimport { typography } from \"@/utils\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","clsx$1","import_compiler_runtime","RichTooltipSubhead","$","className","props","t0","t1","typography","t2","Heading"],"sources":["../../../../../../src/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Heading } from \"react-aria-components\";\nimport { typography } from \"@/utils\";\n\n/**\n * Props for the {@link RichTooltipSubhead} component.\n * Extends React Aria Components `Heading` props.\n */\nexport interface RichTooltipSubheadProps\n extends React.ComponentPropsWithRef<typeof Heading> {}\n\n/**\n * Heading title component for a {@link RichTooltip}.\n *\n * Extends React Aria Components `Heading` and styles the title text using\n * Material 3 `typography.titleSmall`.\n *\n * @example\n * ```tsx\n * import { RichTooltipSubhead } from \"@adgytec/web-ui-components\";\n *\n * export function Example() {\n * return <RichTooltipSubhead>New Feature Available</RichTooltipSubhead>;\n * }\n * ```\n */\nexport const RichTooltipSubhead: React.FC<RichTooltipSubheadProps> = ({\n className,\n ...props\n}) => {\n return (\n <Heading\n className={clsx(typography.titleSmall, className)}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;aA0BaK,KAAwD,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAAO,GAAAC;CAAA,AAAAF,EAAA,OAAAG,KAGpE,IAAAH,EAAA,IAAA,IAAAA,EAAA,OAHqE,eAAA,GAAAE,KAAAC,GAGrE,EAAA,KAAAA,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAJ,EAAA,OAAAC,IAG4D,IAAAD,EAAA,MAAtC,IAAAL,EAAKU,EAAU,YAAaJ,CAAS,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAE;CAEnD,OAFmDN,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KADrD,IAAA,kBAACG,GAAD;EACe,WAAAH;EAAsC,GAC7CF;CAAK,CAAA,GACX,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAE,KAAA,IAAAN,EAAA,IAHFM;AAGE"}
|
package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
1
|
import { Text } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link RichTooltipText} component.
|
|
4
|
+
* Extends React Aria Components `Text` props.
|
|
5
|
+
*/
|
|
6
|
+
export interface RichTooltipTextProps extends React.ComponentPropsWithRef<typeof Text> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Body text component for a {@link RichTooltip}.
|
|
10
|
+
*
|
|
11
|
+
* Extends React Aria Components `Text` and styles the body copy using
|
|
12
|
+
* Material 3 `typography.bodyMedium`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { RichTooltipText } from "@adgytec/web-ui-components";
|
|
17
|
+
*
|
|
18
|
+
* export function Example() {
|
|
19
|
+
* return (
|
|
20
|
+
* <RichTooltipText>
|
|
21
|
+
* Rich tooltips provide additional context and details.
|
|
22
|
+
* </RichTooltipText>
|
|
23
|
+
* );
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const RichTooltipText: React.FC<RichTooltipTextProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Text } from \"react-aria-components\";\nimport { typography } from \"@/utils\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","clsx","require_compiler_runtime","clsx$1","import_compiler_runtime","RichTooltipText","$","className","props","t0","t1","typography","t2","Text"],"sources":["../../../../../../src/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Text } from \"react-aria-components\";\nimport { typography } from \"@/utils\";\n\n/**\n * Props for the {@link RichTooltipText} component.\n * Extends React Aria Components `Text` props.\n */\nexport interface RichTooltipTextProps\n extends React.ComponentPropsWithRef<typeof Text> {}\n\n/**\n * Body text component for a {@link RichTooltip}.\n *\n * Extends React Aria Components `Text` and styles the body copy using\n * Material 3 `typography.bodyMedium`.\n *\n * @example\n * ```tsx\n * import { RichTooltipText } from \"@adgytec/web-ui-components\";\n *\n * export function Example() {\n * return (\n * <RichTooltipText>\n * Rich tooltips provide additional context and details.\n * </RichTooltipText>\n * );\n * }\n * ```\n */\nexport const RichTooltipText: React.FC<RichTooltipTextProps> = ({\n className,\n ...props\n}) => {\n return (\n <Text className={clsx(typography.bodyMedium, className)} {...props} />\n );\n};\n"],"mappings":";;;;;;aA8BaK,KAAkD,MAAA;CAAA,IAAAC,KAAA,GAAAN,EAAAA,EAAAA,CAAA,CAAA,GAAAO,GAAAC;CAAA,AAAAF,EAAA,OAAAG,KAG9D,IAAAH,EAAA,IAAA,IAAAA,EAAA,OAH+D,eAAA,GAAAE,KAAAC,GAG/D,EAAA,KAAAA,GAAA,EAAA,KAAAF,GAAA,EAAA,KAAAC;CAAA,IAAAE;CAAA,AAAAJ,EAAA,OAAAC,IAE8D,IAAAD,EAAA,MAAtC,IAAAL,EAAKU,EAAU,YAAaJ,CAAS,GAAC,EAAA,KAAAA,GAAA,EAAA,KAAAG;CAAA,IAAAE;CAAe,OAAfN,EAAA,OAAAE,KAAAF,EAAA,OAAAI,KAAvD,IAAA,kBAACG,GAAD;EAAiB,WAAAH;EAAsC,GAAMF;CAAK,CAAA,GAAI,EAAA,KAAAA,GAAA,EAAA,KAAAE,GAAA,EAAA,KAAAE,KAAA,IAAAN,EAAA,IAAtEM;AAAsE"}
|
|
@@ -1,2 +1,36 @@
|
|
|
1
1
|
import { Tooltip as AriaTooltip } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link Tooltip} component.
|
|
4
|
+
* Extends React Aria Components `Tooltip` props.
|
|
5
|
+
*
|
|
6
|
+
* Configurable CSS tokens:
|
|
7
|
+
* - `--md-tooltip-background`: Background color of the tooltip (`var(--md-sys-color-inverse-surface)`).
|
|
8
|
+
* - `--md-tooltip-color`: Text color of the tooltip (`var(--md-sys-color-inverse-on-surface)`).
|
|
9
|
+
*/
|
|
10
|
+
export interface TooltipProps extends React.ComponentPropsWithRef<typeof AriaTooltip> {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Plain tooltip component implementing [Material 3 Tooltips](https://m3.material.io/components/tooltips/overview).
|
|
14
|
+
*
|
|
15
|
+
* Provides brief, informative text messages when hovering, focusing, or long-pressing an element.
|
|
16
|
+
* Supports smooth directional entrance/exit slide transitions and opacity fading based on `data-placement`.
|
|
17
|
+
*
|
|
18
|
+
* Configurable CSS tokens:
|
|
19
|
+
* - `--md-tooltip-background`: Background color of the tooltip (`var(--md-sys-color-inverse-surface)`).
|
|
20
|
+
* - `--md-tooltip-color`: Text color of the tooltip (`var(--md-sys-color-inverse-on-surface)`).
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* import { Button, Tooltip, TooltipTrigger } from "@adgytec/web-ui-components";
|
|
25
|
+
*
|
|
26
|
+
* export function Example() {
|
|
27
|
+
* return (
|
|
28
|
+
* <TooltipTrigger>
|
|
29
|
+
* <Button label="Save Changes" />
|
|
30
|
+
* <Tooltip placement="top">Saves the current document</Tooltip>
|
|
31
|
+
* </TooltipTrigger>
|
|
32
|
+
* );
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -1,2 +1,30 @@
|
|
|
1
1
|
import { TooltipTrigger as AriaTooltipTrigger } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link TooltipTrigger} component.
|
|
4
|
+
* Extends React Aria Components `TooltipTrigger` props.
|
|
5
|
+
*/
|
|
6
|
+
export interface TooltipTriggerProps extends React.ComponentPropsWithRef<typeof AriaTooltipTrigger> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Wraps an interactive trigger element (such as a button) and a {@link Tooltip}
|
|
10
|
+
* to manage hover, focus, and long-press display states.
|
|
11
|
+
*
|
|
12
|
+
* Extends React Aria Components `TooltipTrigger` with default Material 3 delays:
|
|
13
|
+
* - `delay = 250` (milliseconds before opening on hover/focus)
|
|
14
|
+
* - `closeDelay = 150` (milliseconds before closing after pointer leaves)
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Button, Tooltip, TooltipTrigger } from "@adgytec/web-ui-components";
|
|
19
|
+
*
|
|
20
|
+
* export function Example() {
|
|
21
|
+
* return (
|
|
22
|
+
* <TooltipTrigger>
|
|
23
|
+
* <Button label="Hover me" />
|
|
24
|
+
* <Tooltip>Helpful information</Tooltip>
|
|
25
|
+
* </TooltipTrigger>
|
|
26
|
+
* );
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const TooltipTrigger: React.FC<TooltipTriggerProps>;
|