@adgytec/adgytec-web-ui-components 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +2 -2
- package/dist/assets/CalendarCell.css +1 -1
- package/dist/assets/CalendarMenuItem.css +1 -1
- package/dist/assets/ListTrailingText.css +1 -0
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/core7.css +1 -1
- package/dist/chunks/ActionDialog.map +1 -1
- package/dist/chunks/AppBar +42 -42
- package/dist/chunks/AppBar.map +1 -1
- package/dist/chunks/AppBarAction.map +1 -1
- package/dist/chunks/AppBarAvatar.map +1 -1
- package/dist/chunks/AppBarHeadline.map +1 -1
- package/dist/chunks/BaseCalendar +69 -63
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/BottomSheet.map +1 -1
- package/dist/chunks/BottomSheetModal.map +1 -1
- package/dist/chunks/ButtonGroup.map +1 -1
- package/dist/chunks/CalendarCell +25 -39
- package/dist/chunks/CalendarCell.map +1 -1
- package/dist/chunks/CalendarGrid.map +1 -1
- package/dist/chunks/CalendarMenuItem +1 -1
- package/dist/chunks/CalendarMenuItem.map +1 -1
- package/dist/chunks/Card.map +1 -1
- package/dist/chunks/CardIcon.map +1 -1
- package/dist/chunks/CenteredSlider.map +1 -1
- package/dist/chunks/ComboBox.map +1 -1
- package/dist/chunks/ComboBoxPopover.map +1 -1
- package/dist/chunks/ComboBoxTrigger +592 -62
- package/dist/chunks/ComboBoxTrigger.map +1 -1
- package/dist/chunks/ConnectedButtonGroup +13 -10
- package/dist/chunks/ConnectedButtonGroup.map +1 -1
- package/dist/chunks/Dialog.map +1 -1
- package/dist/chunks/Disclosure.map +1 -1
- package/dist/chunks/DisclosureGroup.map +1 -1
- package/dist/chunks/DisclosureHeader.map +1 -1
- package/dist/chunks/DisclosurePanel.map +1 -1
- package/dist/chunks/Divider.map +1 -1
- package/dist/chunks/FieldError.map +1 -1
- package/dist/chunks/GridBackgroundDecorator.map +1 -1
- package/dist/chunks/Icon.map +1 -1
- package/dist/chunks/Input.map +1 -1
- package/dist/chunks/Input2 +2 -1
- package/dist/chunks/Input2.map +1 -1
- package/dist/chunks/ListAction +13 -0
- package/dist/chunks/ListAction.map +1 -0
- package/dist/chunks/ListAvatar.map +1 -1
- package/dist/chunks/ListBox.map +1 -1
- package/dist/chunks/ListIcon.map +1 -1
- package/dist/chunks/ListItem.map +1 -1
- package/dist/chunks/ListLabelText.map +1 -1
- package/dist/chunks/ListMedia.map +1 -1
- package/dist/chunks/ListOverlineText.map +1 -1
- package/dist/chunks/ListSupportingText.map +1 -1
- package/dist/chunks/ListTrailingText +21 -0
- package/dist/chunks/ListTrailingText.map +1 -0
- package/dist/chunks/Loader.map +1 -1
- package/dist/chunks/MenuPopover.map +1 -1
- package/dist/chunks/Modal.map +1 -1
- package/dist/chunks/ModalOverlay.map +1 -1
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +5 -2
- package/dist/chunks/NavigationScrollContainer.map +1 -1
- package/dist/chunks/NavigationSection.map +1 -1
- package/dist/chunks/NavigationSectionLabel.map +1 -1
- package/dist/chunks/Popover.map +1 -1
- package/dist/chunks/RadialGlowDecorator.map +1 -1
- package/dist/chunks/Radio.map +1 -1
- package/dist/chunks/RichTooltip.map +1 -1
- package/dist/chunks/RichTooltipActions.map +1 -1
- package/dist/chunks/RichTooltipInfo.map +1 -1
- package/dist/chunks/SearchField.map +1 -1
- package/dist/chunks/SelectPopover.map +1 -1
- package/dist/chunks/SelectTrigger.map +1 -1
- package/dist/chunks/SideSheet +7 -7
- package/dist/chunks/SideSheet.map +1 -1
- package/dist/chunks/SideSheetModal.map +1 -1
- package/dist/chunks/Slider.map +1 -1
- package/dist/chunks/SliderOutput.map +1 -1
- package/dist/chunks/SliderStops +3 -3
- package/dist/chunks/SliderStops.map +1 -1
- package/dist/chunks/SliderThumb.map +1 -1
- package/dist/chunks/Snackbar.map +1 -1
- package/dist/chunks/SplitButton +13 -10
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +8 -7
- package/dist/chunks/SplitButtonTrigger.map +1 -1
- package/dist/chunks/SubmenuPopover.map +1 -1
- package/dist/chunks/Switch.map +1 -1
- package/dist/chunks/Tab.map +1 -1
- package/dist/chunks/TabList.map +1 -1
- package/dist/chunks/TabPanel.map +1 -1
- package/dist/chunks/TabPanels.map +1 -1
- package/dist/chunks/Tabs.map +1 -1
- package/dist/chunks/Tag.map +1 -1
- package/dist/chunks/ThemeSelector +75 -71
- package/dist/chunks/ThemeSelector.map +1 -1
- package/dist/chunks/Toolbar.map +1 -1
- package/dist/chunks/Tooltip.map +1 -1
- package/dist/chunks/base.map +1 -1
- package/dist/chunks/compiler-runtime +2 -2
- package/dist/chunks/compiler-runtime.map +1 -1
- package/dist/chunks/context.map +1 -1
- package/dist/chunks/core +27 -25
- package/dist/chunks/core.map +1 -1
- package/dist/chunks/core2.map +1 -1
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/core4.map +1 -1
- package/dist/chunks/core5.map +1 -1
- package/dist/chunks/core6 +11 -11
- package/dist/chunks/core6.map +1 -1
- package/dist/chunks/core7.map +1 -1
- package/dist/chunks/core8.map +1 -1
- package/dist/chunks/core9.map +1 -1
- package/dist/chunks/navContext.map +1 -1
- package/dist/chunks/tapTarget.map +1 -1
- package/dist/chunks/types.map +1 -1
- package/dist/chunks/useHover +460 -153
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/useSplash +17 -19
- package/dist/chunks/useSplash.map +1 -1
- package/dist/components/AppBar/AppBar/AppBar.d.ts +29 -0
- package/dist/components/AppBar/AppBar/types.d.ts +29 -4
- package/dist/components/AppBar/AppBarAction/AppBarAction.d.ts +19 -1
- package/dist/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +20 -1
- package/dist/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +19 -1
- package/dist/components/AppBar/AppBarState/AppBarState.d.ts +28 -2
- package/dist/components/AppBar/AppBarState/context.d.ts +37 -0
- package/dist/components/AppBar/AppBarState/index.js +16 -10
- package/dist/components/AppBar/AppBarState/index.js.map +1 -1
- package/dist/components/AppBar/core/alignment.d.ts +6 -0
- package/dist/components/AppBar/core/context.d.ts +16 -0
- package/dist/components/AppBar/core/index.js.map +1 -1
- package/dist/components/AppBar/core/size.d.ts +13 -0
- package/dist/components/AppBar/index.js +7 -7
- package/dist/components/Button/Button/Button.d.ts +17 -0
- package/dist/components/Button/Button/index.js.map +1 -1
- package/dist/components/Button/Button/types.d.ts +4 -0
- package/dist/components/Button/ButtonGroups/ButtonGroup/ButtonGroup.d.ts +17 -0
- package/dist/components/Button/ButtonGroups/ButtonGroup/types.d.ts +24 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/context.d.ts +22 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js.map +1 -1
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.d.ts +5 -0
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.d.ts +5 -0
- package/dist/components/Button/ButtonGroups/ConnectedButton/ConnectedButton.d.ts +13 -0
- package/dist/components/Button/ButtonGroups/ConnectedButton/types.d.ts +19 -1
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +18 -0
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/types.d.ts +24 -0
- package/dist/components/Button/IconButton/IconButton.d.ts +21 -0
- package/dist/components/Button/IconButton/index.js.map +1 -1
- package/dist/components/Button/IconButton/types.d.ts +4 -0
- package/dist/components/Button/LinkButton/LinkButton.d.ts +15 -0
- package/dist/components/Button/LinkButton/index.js.map +1 -1
- package/dist/components/Button/LinkButton/types.d.ts +4 -0
- package/dist/components/Button/LinkIconButton/LinkIconButton.d.ts +19 -0
- package/dist/components/Button/LinkIconButton/index.js.map +1 -1
- package/dist/components/Button/LinkIconButton/types.d.ts +4 -0
- package/dist/components/Button/SplitButton/SplitButton/SplitButton.d.ts +24 -0
- package/dist/components/Button/SplitButton/SplitButton/types.d.ts +23 -0
- package/dist/components/Button/SplitButton/SplitButtonContext/context.d.ts +11 -0
- package/dist/components/Button/SplitButton/SplitButtonContext/index.js.map +1 -1
- package/dist/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.d.ts +5 -0
- package/dist/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.d.ts +15 -0
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js +2 -2
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js.map +1 -1
- package/dist/components/Button/SplitButton/SplitButtonPrimary/types.d.ts +11 -0
- package/dist/components/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.d.ts +19 -0
- package/dist/components/Button/SplitButton/SplitButtonTrigger/types.d.ts +5 -0
- package/dist/components/Button/SplitButton/core/size.d.ts +13 -0
- package/dist/components/Button/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/components/Button/ToggleButton/index.js.map +1 -1
- package/dist/components/Button/ToggleButton/types.d.ts +14 -0
- package/dist/components/Button/ToggleIconButton/ToggleIconButton.d.ts +21 -0
- package/dist/components/Button/ToggleIconButton/index.js.map +1 -1
- package/dist/components/Button/ToggleIconButton/types.d.ts +9 -0
- package/dist/components/Button/core/button.d.ts +33 -0
- package/dist/components/Button/core/color.d.ts +38 -0
- package/dist/components/Button/core/shape.d.ts +6 -0
- package/dist/components/Button/core/sizes.d.ts +26 -0
- package/dist/components/Button/core/useButtonConfig.d.ts +25 -0
- package/dist/components/Button/core/variant.d.ts +6 -0
- package/dist/components/Button/core/width.d.ts +7 -0
- package/dist/components/Button/core/withTooltip.d.ts +9 -2
- package/dist/components/Calendar/BaseCalendar/BaseCalendar.d.ts +23 -2
- package/dist/components/Calendar/Calendar/Calendar.d.ts +39 -2
- package/dist/components/Calendar/Calendar/index.js +18 -12
- package/dist/components/Calendar/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/CalendarCell/CalendarCell.d.ts +14 -2
- package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts +12 -2
- package/dist/components/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +12 -1
- package/dist/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js +2 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js.map +1 -1
- package/dist/components/Calendar/CalendarYearMenu/CalendarYearMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarYearMenu/index.js.map +1 -1
- package/dist/components/Calendar/RangeCalendar/RangeCalendar.d.ts +40 -2
- package/dist/components/Calendar/RangeCalendar/index.js +19 -15
- package/dist/components/Calendar/RangeCalendar/index.js.map +1 -1
- package/dist/components/Calendar/core/calendar.d.ts +26 -0
- package/dist/components/Calendar/core/useCalendarState.d.ts +15 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Calendar/index.js +4 -3
- package/dist/components/Card/Card/Card.d.ts +20 -0
- package/dist/components/Card/Card/types.d.ts +23 -0
- package/dist/components/Card/CardIcon/CardIcon.d.ts +25 -1
- package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +46 -7
- package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +53 -6
- package/dist/components/Dialog/ActionDialog/ActionDialog.d.ts +33 -0
- package/dist/components/Dialog/ActionDialog/types.d.ts +28 -2
- package/dist/components/Dialog/Dialog/Dialog.d.ts +32 -1
- package/dist/components/Dialog/Modal/Modal.d.ts +24 -1
- package/dist/components/Dialog/ModalOverlay/ModalOverlay.d.ts +25 -1
- package/dist/components/Dialog/core/context.d.ts +8 -0
- package/dist/components/Dialog/core/index.js.map +1 -1
- package/dist/components/Dialog/core/typography.d.ts +9 -0
- package/dist/components/Disclosure/Disclosure/Disclosure.d.ts +25 -1
- package/dist/components/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +50 -2
- package/dist/components/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +31 -2
- package/dist/components/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +31 -2
- package/dist/components/Disclosure/context/context.d.ts +11 -2
- package/dist/components/Disclosure/context/index.js.map +1 -1
- package/dist/components/Disclosure/context/useDisclosureTypographyContext.d.ts +18 -2
- package/dist/components/Divider/Divider.d.ts +30 -1
- package/dist/components/Icon/Icon.d.ts +29 -0
- package/dist/components/Icon/types.d.ts +28 -0
- package/dist/components/Input/CharacterCount/CharacterCount.d.ts +11 -2
- package/dist/components/Input/CharacterCount/index.js.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +15 -0
- package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +17 -0
- package/dist/components/Input/Checkbox/context.d.ts +10 -2
- package/dist/components/Input/Checkbox/types.d.ts +42 -0
- package/dist/components/Input/DateField/DateField.d.ts +17 -1
- package/dist/components/Input/DateField/index.js.map +1 -1
- package/dist/components/Input/DateField/types.d.ts +4 -0
- package/dist/components/Input/DatePicker/DatePicker/DatePicker.d.ts +17 -1
- package/dist/components/Input/DatePicker/DatePicker/index.js.map +1 -1
- package/dist/components/Input/DatePicker/DatePicker/types.d.ts +10 -0
- package/dist/components/Input/DatePicker/DateRangePicker/DateRangePicker.d.ts +17 -1
- package/dist/components/Input/DatePicker/DateRangePicker/index.js.map +1 -1
- package/dist/components/Input/DatePicker/DateRangePicker/types.d.ts +10 -0
- package/dist/components/Input/DatePicker/core/datePicker.d.ts +3 -0
- package/dist/components/Input/Description/Description.d.ts +12 -1
- package/dist/components/Input/Description/index.js.map +1 -1
- package/dist/components/Input/FieldError/FieldError.d.ts +12 -1
- package/dist/components/Input/Input/Input.d.ts +27 -0
- package/dist/components/Input/Input/InputButton.d.ts +10 -1
- package/dist/components/Input/Input/handleInputButton.d.ts +6 -0
- package/dist/components/Input/Input/types.d.ts +20 -0
- package/dist/components/Input/Label/Label.d.ts +12 -1
- package/dist/components/Input/Label/index.js.map +1 -1
- package/dist/components/Input/Radio/Radio.d.ts +16 -0
- package/dist/components/Input/Radio/RadioGroup.d.ts +17 -0
- package/dist/components/Input/Radio/context.d.ts +10 -2
- package/dist/components/Input/Radio/types.d.ts +40 -0
- package/dist/components/Input/SearchField/SearchField.d.ts +16 -0
- package/dist/components/Input/SearchField/types.d.ts +9 -0
- package/dist/components/Input/Select/ComboBox/ComboBox.d.ts +29 -1
- package/dist/components/Input/Select/ComboBox/context.d.ts +3 -0
- package/dist/components/Input/Select/ComboBox/types.d.ts +9 -0
- package/dist/components/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +10 -1
- package/dist/components/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +10 -2
- package/dist/components/Input/Select/Select/Select.d.ts +29 -1
- package/dist/components/Input/Select/Select/index.js.map +1 -1
- package/dist/components/Input/Select/Select/types.d.ts +4 -0
- package/dist/components/Input/Select/SelectItem/SelectItem.d.ts +19 -0
- package/dist/components/Input/Select/SelectItem/index.js.map +1 -1
- package/dist/components/Input/Select/SelectItem/types.d.ts +9 -0
- package/dist/components/Input/Select/SelectList/SelectList.d.ts +14 -2
- package/dist/components/Input/Select/SelectList/index.js.map +1 -1
- package/dist/components/Input/Select/SelectListSection/SelectListSection.d.ts +4 -1
- package/dist/components/Input/Select/SelectListSection/index.js.map +1 -1
- package/dist/components/Input/Select/SelectListSectionHeader/SelectListSectionHeader.d.ts +3 -0
- package/dist/components/Input/Select/SelectListSectionHeader/index.js.map +1 -1
- package/dist/components/Input/Select/SelectPopover/SelectPopover.d.ts +10 -1
- package/dist/components/Input/Select/SelectTrigger/SelectTrigger.d.ts +10 -1
- package/dist/components/Input/Slider/CenteredSlider/CenteredSlider.d.ts +23 -1
- package/dist/components/Input/Slider/CenteredSlider/types.d.ts +6 -0
- package/dist/components/Input/Slider/RangeSlider/RangeSlider.d.ts +24 -1
- package/dist/components/Input/Slider/RangeSlider/index.js.map +1 -1
- package/dist/components/Input/Slider/RangeSlider/types.d.ts +9 -0
- package/dist/components/Input/Slider/Slider/Slider.d.ts +24 -1
- package/dist/components/Input/Slider/Slider/types.d.ts +13 -0
- package/dist/components/Input/Slider/SliderOutput/SliderOutput.d.ts +19 -1
- package/dist/components/Input/Slider/SliderStops/SliderStops.d.ts +18 -0
- package/dist/components/Input/Slider/SliderStops/core.d.ts +54 -10
- package/dist/components/Input/Slider/SliderStops/types.d.ts +38 -0
- package/dist/components/Input/Slider/SliderThumb/SliderThumb.d.ts +32 -2
- package/dist/components/Input/Slider/SliderThumb/context.d.ts +20 -0
- package/dist/components/Input/Slider/core/color.d.ts +1 -0
- package/dist/components/Input/Slider/core/size.d.ts +12 -0
- package/dist/components/Input/Slider/core/slider.d.ts +44 -0
- package/dist/components/Input/Slider/core/variant.d.ts +10 -0
- package/dist/components/Input/Switch/Switch.d.ts +15 -0
- package/dist/components/Input/Switch/types.d.ts +33 -0
- package/dist/components/Input/TextArea/TextArea.d.ts +19 -0
- package/dist/components/Input/TextArea/index.js.map +1 -1
- package/dist/components/Input/TextArea/types.d.ts +11 -0
- package/dist/components/Input/TimeField/TimeField.d.ts +17 -1
- package/dist/components/Input/TimeField/index.js.map +1 -1
- package/dist/components/Input/TimeField/types.d.ts +4 -0
- package/dist/components/Input/core/input.d.ts +15 -0
- package/dist/components/Input/core/textField.d.ts +13 -0
- package/dist/components/Input/hooks/index.js.map +1 -1
- package/dist/components/Input/hooks/useControllableState.d.ts +17 -2
- package/dist/components/List/ListAction/ListAction.d.ts +23 -1
- package/dist/components/List/ListAction/index.d.ts +1 -1
- package/dist/components/List/ListAction/index.js +2 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -1
- package/dist/components/List/ListBox/ListBox.d.ts +28 -1
- package/dist/components/List/ListBox/types.d.ts +15 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +19 -1
- package/dist/components/List/ListItem/ListItem.d.ts +34 -0
- package/dist/components/List/ListItem/types.d.ts +21 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +16 -1
- package/dist/components/List/ListMedia/ListMedia.d.ts +20 -0
- package/dist/components/List/ListMedia/types.d.ts +32 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +16 -1
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +16 -1
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +16 -1
- package/dist/components/List/ListTrailingText/index.d.ts +1 -1
- package/dist/components/List/ListTrailingText/index.js +2 -0
- package/dist/components/List/index.js +11 -9
- package/dist/components/Loader/Loader.d.ts +26 -1
- package/dist/components/Menu/Menu/Menu.d.ts +31 -1
- package/dist/components/Menu/Menu/index.js.map +1 -1
- package/dist/components/Menu/Menu/types.d.ts +18 -0
- package/dist/components/Menu/MenuItem/MenuItem.d.ts +22 -0
- package/dist/components/Menu/MenuItem/index.js.map +1 -1
- package/dist/components/Menu/MenuItem/types.d.ts +24 -0
- package/dist/components/Menu/MenuPopover/MenuPopover.d.ts +21 -1
- package/dist/components/Menu/MenuSection/MenuSection.d.ts +23 -1
- package/dist/components/Menu/MenuSection/index.js.map +1 -1
- package/dist/components/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +16 -1
- package/dist/components/Menu/MenuSectionHeader/index.js.map +1 -1
- package/dist/components/Menu/MenuShortcut/MenuShortcut.d.ts +16 -1
- package/dist/components/Menu/MenuShortcut/index.js.map +1 -1
- package/dist/components/Menu/MenuTrailingText/MenuTrailingText.d.ts +16 -1
- package/dist/components/Menu/MenuTrailingText/index.js.map +1 -1
- package/dist/components/Menu/MenuTrigger/MenuTrigger.d.ts +43 -2
- package/dist/components/Menu/MenuTrigger/index.js.map +1 -1
- package/dist/components/Menu/SubmenuPopover/SubmenuPopover.d.ts +22 -1
- package/dist/components/Menu/context/context.d.ts +13 -0
- package/dist/components/Menu/context/index.js.map +1 -1
- package/dist/components/Menu/context/useMenuConfigContext.d.ts +6 -0
- package/dist/components/Menu/core/color.d.ts +20 -0
- package/dist/components/Menu/core/layout.d.ts +17 -0
- package/dist/components/Menu/core/menu.d.ts +18 -0
- package/dist/components/Navigation/Navigation/Navigation.d.ts +28 -0
- package/dist/components/Navigation/Navigation/navContext.d.ts +19 -0
- package/dist/components/Navigation/Navigation/navRenderingContext.d.ts +16 -0
- package/dist/components/Navigation/Navigation/types.d.ts +28 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +15 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationButton/types.d.ts +9 -0
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +21 -2
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +15 -0
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/types.d.ts +5 -0
- package/dist/components/Navigation/NavigationItem/core/navigationItem.d.ts +22 -0
- package/dist/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +22 -1
- package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +24 -1
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +16 -1
- package/dist/components/Navigation/NavigationState/NavigationState.d.ts +27 -2
- package/dist/components/Navigation/NavigationState/context.d.ts +31 -0
- package/dist/components/Navigation/NavigationState/index.d.ts +1 -0
- package/dist/components/Navigation/NavigationState/index.js.map +1 -1
- package/dist/components/Navigation/NavigationState/types.d.ts +12 -0
- package/dist/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +35 -2
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -1
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +40 -2
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
- package/dist/components/Navigation/core/navLabelContext.d.ts +6 -0
- package/dist/components/Navigation/core/navigation.d.ts +9 -0
- package/dist/components/Navigation/core/navigationInfo.d.ts +19 -0
- package/dist/components/Popover/Popover.d.ts +34 -1
- package/dist/components/Sheets/BottomSheet/BottomSheet.d.ts +40 -2
- package/dist/components/Sheets/BottomSheet/index.d.ts +1 -0
- package/dist/components/Sheets/BottomSheet/types.d.ts +37 -0
- package/dist/components/Sheets/BottomSheetModal/BottomSheetModal.d.ts +34 -0
- package/dist/components/Sheets/BottomSheetModal/context.d.ts +10 -0
- package/dist/components/Sheets/BottomSheetModal/types.d.ts +38 -0
- package/dist/components/Sheets/SideSheet/SideSheet.d.ts +46 -0
- package/dist/components/Sheets/SideSheet/SideSheetDialog.d.ts +43 -0
- package/dist/components/Sheets/SideSheet/types.d.ts +96 -2
- package/dist/components/Sheets/SideSheetModal/SideSheetModal.d.ts +34 -0
- package/dist/components/Sheets/SideSheetModal/context.d.ts +13 -0
- package/dist/components/Sheets/SideSheetModal/types.d.ts +49 -0
- package/dist/components/Sheets/core/layout.d.ts +11 -0
- package/dist/components/Snackbar/SnackbarRegion.d.ts +50 -0
- package/dist/components/Snackbar/context.d.ts +38 -0
- package/dist/components/Snackbar/types.d.ts +69 -0
- package/dist/components/Splash/Splash.d.ts +6 -0
- package/dist/components/Splash/types.d.ts +10 -0
- package/dist/components/Splash/useSplash.d.ts +21 -0
- package/dist/components/Tabs/Tab/Tab.d.ts +33 -2
- package/dist/components/Tabs/TabList/TabList.d.ts +42 -1
- package/dist/components/Tabs/TabPanel/TabPanel.d.ts +28 -1
- package/dist/components/Tabs/TabPanels/TabPanels.d.ts +28 -1
- package/dist/components/Tabs/Tabs/Tabs.d.ts +43 -1
- package/dist/components/Tag/Tag.d.ts +37 -0
- package/dist/components/Tag/core.d.ts +6 -0
- package/dist/components/Tag/types.d.ts +48 -2
- package/dist/components/ThemeSelector/ThemeItem.d.ts +46 -2
- package/dist/components/ThemeSelector/ThemeProvider.d.ts +29 -2
- package/dist/components/ThemeSelector/ThemeSelector.d.ts +24 -0
- package/dist/components/ThemeSelector/core.d.ts +58 -0
- package/dist/components/ThemeSelector/index.d.ts +2 -0
- package/dist/components/ThemeSelector/index.js +2 -2
- package/dist/components/ThemeSelector/types.d.ts +69 -2
- package/dist/components/Toolbar/Toolbar.d.ts +47 -0
- package/dist/components/Toolbar/ToolbarToggleButtonGroup.d.ts +35 -1
- package/dist/components/Toolbar/types.d.ts +60 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +56 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +27 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +31 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +22 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js.map +1 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts +26 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js.map +1 -1
- package/dist/components/Tooltip/Tooltip/Tooltip.d.ts +35 -1
- package/dist/components/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +29 -1
- package/dist/components/Tooltip/TooltipTrigger/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +129 -137
- package/dist/index.js.map +1 -1
- package/dist/utils/gradients/gradients.d.ts +97 -0
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/ref/ref.d.ts +35 -2
- package/dist/utils/scroll/scroll.d.ts +67 -4
- package/dist/utils/tapTarget/tapTarget.d.ts +57 -0
- package/dist/utils/theme/build.d.ts +24 -0
- package/dist/utils/theme/types.d.ts +70 -0
- package/dist/utils/theme/useTheme.d.ts +40 -0
- package/dist/utils/typography/base.d.ts +68 -0
- package/dist/utils/typography/core.d.ts +16 -0
- package/dist/utils/typography/fluid.d.ts +36 -0
- package/package.json +23 -25
- package/dist/chunks/useGlobalListeners +0 -294
- package/dist/chunks/useGlobalListeners.map +0 -1
- package/dist/chunks/usePress +0 -535
- package/dist/chunks/usePress.map +0 -1
- package/dist/components/Image/Image.d.ts +0 -2
- package/dist/components/Image/index.d.ts +0 -2
- package/dist/components/Image/index.js +0 -29
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/types.d.ts +0 -9
- package/dist/utils/form/form.d.ts +0 -13
- package/dist/utils/form/index.d.ts +0 -1
|
@@ -1,10 +1,73 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Options for calculating normalized scroll progress.
|
|
3
|
+
*/
|
|
4
|
+
export interface ScrollProgressOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Current vertical scroll position of the container in pixels (`element.scrollTop`).
|
|
7
|
+
*/
|
|
2
8
|
scrollTop: number;
|
|
9
|
+
/**
|
|
10
|
+
* Total scrollable height of the container content in pixels (`element.scrollHeight`).
|
|
11
|
+
*/
|
|
3
12
|
scrollHeight: number;
|
|
13
|
+
/**
|
|
14
|
+
* Inner height of the container viewport in pixels (`element.clientHeight`).
|
|
15
|
+
*/
|
|
4
16
|
clientHeight: number;
|
|
5
|
-
}
|
|
6
|
-
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Calculates normalized vertical scroll progress as a ratio between `0` (top) and `1` (bottom).
|
|
20
|
+
*
|
|
21
|
+
* Automatically clamped between `0` and `1` to prevent out-of-bounds values caused by
|
|
22
|
+
* elastic over-scrolling / rubber-banding on mobile (iOS/Safari) and trackpads.
|
|
23
|
+
* If the container content is not scrollable (i.e. `scrollHeight <= clientHeight`), returns `0`.
|
|
24
|
+
*
|
|
25
|
+
* @param options - Container dimension and scroll position values.
|
|
26
|
+
* @returns Normalized scroll progress clamped between `0` and `1`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const progress = getScrollProgress({
|
|
31
|
+
* scrollTop: element.scrollTop,
|
|
32
|
+
* scrollHeight: element.scrollHeight,
|
|
33
|
+
* clientHeight: element.clientHeight,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function getScrollProgress({ scrollHeight, scrollTop, clientHeight, }: ScrollProgressOptions): number;
|
|
38
|
+
/**
|
|
39
|
+
* Options for calculating vertical scroll position from a normalized progress ratio.
|
|
40
|
+
*/
|
|
41
|
+
export interface ScrollTopFromProgressOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Normalized scroll progress ratio between `0` and `1`.
|
|
44
|
+
*/
|
|
7
45
|
progress: number;
|
|
46
|
+
/**
|
|
47
|
+
* Total scrollable height of the container content in pixels (`element.scrollHeight`).
|
|
48
|
+
*/
|
|
8
49
|
scrollHeight: number;
|
|
50
|
+
/**
|
|
51
|
+
* Inner height of the container viewport in pixels (`element.clientHeight`).
|
|
52
|
+
*/
|
|
9
53
|
clientHeight: number;
|
|
10
|
-
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Calculates the target `scrollTop` in pixels from a normalized scroll progress ratio (`0` to `1`).
|
|
57
|
+
*
|
|
58
|
+
* Commonly used to restore saved scroll positions across renders, layout changes, or navigation state updates.
|
|
59
|
+
* Guarantees a non-negative return value (`>= 0`), and clamps input progress to `[0, 1]`.
|
|
60
|
+
*
|
|
61
|
+
* @param options - Container dimensions and normalized progress value.
|
|
62
|
+
* @returns The vertical scroll offset in pixels (`scrollTop`), guaranteed to be `>= 0`.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* element.scrollTop = getScrollTopFromProgress({
|
|
67
|
+
* progress: 0.5,
|
|
68
|
+
* scrollHeight: element.scrollHeight,
|
|
69
|
+
* clientHeight: element.clientHeight,
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getScrollTopFromProgress({ scrollHeight, progress, clientHeight, }: ScrollTopFromProgressOptions): number;
|
|
@@ -1,2 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS class name that ensures an element meets the minimum accessible touch target size (48x48px / 48dp)
|
|
3
|
+
* using an invisible centered `::after` pseudo-element.
|
|
4
|
+
*
|
|
5
|
+
* Implements WCAG Target Size recommendations (48x48px minimum touch area) for small or compact
|
|
6
|
+
* interactive elements without affecting the visual layout or dimensions of the element itself.
|
|
7
|
+
*
|
|
8
|
+
* Automatically collapses to `0px` when the element has the `[data-disabled]` attribute.
|
|
9
|
+
*
|
|
10
|
+
* Extensively used across interactive controls including buttons, icon buttons, checkboxes,
|
|
11
|
+
* radio buttons, switches, and avatar triggers.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* If the element or an ancestor container applies `overflow: hidden` or `contain: paint`,
|
|
15
|
+
* the pseudo-element's expanded hit area will be clipped to that boundary.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { TapTarget } from "@/utils";
|
|
20
|
+
* import clsx from "clsx";
|
|
21
|
+
*
|
|
22
|
+
* function CustomIconButton({ icon: Icon, onClick }) {
|
|
23
|
+
* return (
|
|
24
|
+
* <button type="button" className={clsx("icon-button", TapTarget)} onClick={onClick}>
|
|
25
|
+
* <Icon />
|
|
26
|
+
* </button>
|
|
27
|
+
* );
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
1
31
|
export declare const TapTarget: string;
|
|
32
|
+
/**
|
|
33
|
+
* CSS class name that ensures an element meets the minimum accessible touch target size (48x48px / 48dp)
|
|
34
|
+
* using an invisible centered `::before` pseudo-element.
|
|
35
|
+
*
|
|
36
|
+
* Alternative to {@link TapTarget} for components where the `::after` pseudo-element is already reserved
|
|
37
|
+
* or in use (such as for focus rings, badges, or ripples).
|
|
38
|
+
*
|
|
39
|
+
* Automatically collapses to `0px` when the element has the `[data-disabled]` attribute.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* If the element or an ancestor container applies `overflow: hidden` or `contain: paint`,
|
|
43
|
+
* the pseudo-element's expanded hit area will be clipped to that boundary.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* import { TapTargetBefore } from "@/utils";
|
|
48
|
+
* import clsx from "clsx";
|
|
49
|
+
*
|
|
50
|
+
* function CustomAction({ onClick, children }) {
|
|
51
|
+
* return (
|
|
52
|
+
* <button type="button" className={clsx("custom-action", TapTargetBefore)} onClick={onClick}>
|
|
53
|
+
* {children}
|
|
54
|
+
* </button>
|
|
55
|
+
* );
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
2
59
|
export declare const TapTargetBefore: string;
|
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
import { ThemeBuildOptions } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Generates the theme string suffix or identifier based on current theme settings.
|
|
4
|
+
*
|
|
5
|
+
* This identifier corresponds to the theme definition classes and data attributes
|
|
6
|
+
* (such as `data-theme="..."`) applied to the root element (`document.documentElement` or body).
|
|
7
|
+
*
|
|
8
|
+
* - Monochrome modes produce `"monochrome-dark"` or `"monochrome-light"`.
|
|
9
|
+
* - Standard contrast modes produce `"dark"` or `"light"`.
|
|
10
|
+
* - Elevated contrast modes produce `"dark-medium-contrast"`, `"dark-high-contrast"`,
|
|
11
|
+
* `"light-medium-contrast"`, or `"light-high-contrast"`.
|
|
12
|
+
*
|
|
13
|
+
* @param options - Theme configuration flags (dark mode, monochrome, contrast).
|
|
14
|
+
* @returns Formatted theme string (e.g. `"dark"`, `"light-high-contrast"`, `"monochrome-dark"`).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const themeString = buildThemeString({
|
|
19
|
+
* isDarkMode: true,
|
|
20
|
+
* isMonochrome: false,
|
|
21
|
+
* contrast: "high",
|
|
22
|
+
* });
|
|
23
|
+
* // returns "dark-high-contrast"
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
2
26
|
export declare const buildThemeString: ({ isDarkMode, isMonochrome, contrast, }: ThemeBuildOptions) => string;
|
|
@@ -1,25 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported theme modes:
|
|
3
|
+
* - `"system"`: Follows the operating system / browser `(prefers-color-scheme: dark)` preference.
|
|
4
|
+
* - `"dark"`: Forces dark theme mode.
|
|
5
|
+
* - `"light"`: Forces light theme mode.
|
|
6
|
+
*/
|
|
1
7
|
export type ThemeMode = "system" | "dark" | "light";
|
|
8
|
+
/**
|
|
9
|
+
* Supported theme contrast levels:
|
|
10
|
+
* - `"standard"`: Default Material You contrast level.
|
|
11
|
+
* - `"medium"`: Increased contrast for improved legibility.
|
|
12
|
+
* - `"high"`: Highest contrast level for maximum accessibility.
|
|
13
|
+
*/
|
|
2
14
|
export type ThemeContrast = "standard" | "medium" | "high";
|
|
15
|
+
/**
|
|
16
|
+
* Configuration options for the {@link useTheme} hook.
|
|
17
|
+
*/
|
|
3
18
|
export type ThemeOptions = {
|
|
19
|
+
/**
|
|
20
|
+
* Initial theme mode. Defaults to `"system"`.
|
|
21
|
+
*/
|
|
4
22
|
defaultThemeMode?: ThemeMode;
|
|
23
|
+
/**
|
|
24
|
+
* Initial contrast level. Defaults to `"standard"`.
|
|
25
|
+
*/
|
|
5
26
|
defaultContrast?: ThemeContrast;
|
|
27
|
+
/**
|
|
28
|
+
* Whether monochrome mode is initially enabled. Defaults to `false`.
|
|
29
|
+
*/
|
|
6
30
|
isMonochrome?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Key used to persist theme settings in `localStorage`. Defaults to `"application-theme"`.
|
|
33
|
+
*/
|
|
7
34
|
localStorageKey?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to initialize state with the stored `localStorage` / media query value during hydration. Defaults to `true`.
|
|
37
|
+
*/
|
|
8
38
|
initializeWithValue?: boolean;
|
|
9
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Persisted theme state stored in `localStorage`.
|
|
42
|
+
*/
|
|
10
43
|
export type ThemeStorage = {
|
|
44
|
+
/**
|
|
45
|
+
* Configured theme mode (`"system"`, `"dark"`, or `"light"`).
|
|
46
|
+
*/
|
|
11
47
|
mode: ThemeMode;
|
|
48
|
+
/**
|
|
49
|
+
* Configured contrast level (`"standard"`, `"medium"`, or `"high"`).
|
|
50
|
+
*/
|
|
12
51
|
contrast: ThemeContrast;
|
|
52
|
+
/**
|
|
53
|
+
* Whether monochrome mode is enabled.
|
|
54
|
+
*/
|
|
13
55
|
isMonochrome: boolean;
|
|
14
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Object returned by the {@link useTheme} hook providing theme state and updater functions.
|
|
59
|
+
*/
|
|
15
60
|
export type ThemeReturn = ThemeStorage & {
|
|
61
|
+
/**
|
|
62
|
+
* Resolved boolean indicating whether dark mode is currently active
|
|
63
|
+
* (evaluates the OS preference when `mode === "system"`).
|
|
64
|
+
*/
|
|
16
65
|
isDarkMode: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Updates the theme mode (`"system"`, `"dark"`, or `"light"`).
|
|
68
|
+
*/
|
|
17
69
|
setMode: (mode: ThemeMode) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Updates the contrast level (`"standard"`, `"medium"`, or `"high"`).
|
|
72
|
+
*/
|
|
18
73
|
setContrast: (contrast: ThemeContrast) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Toggles monochrome mode on or off.
|
|
76
|
+
*/
|
|
19
77
|
setMonochrome: (isMonochrome: boolean) => void;
|
|
20
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Options passed to {@link buildThemeString} to generate the theme identifier.
|
|
81
|
+
*/
|
|
21
82
|
export type ThemeBuildOptions = {
|
|
83
|
+
/**
|
|
84
|
+
* Contrast level (`"standard"`, `"medium"`, or `"high"`).
|
|
85
|
+
*/
|
|
22
86
|
contrast: ThemeContrast;
|
|
87
|
+
/**
|
|
88
|
+
* Whether dark mode is active.
|
|
89
|
+
*/
|
|
23
90
|
isDarkMode: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether monochrome mode is active.
|
|
93
|
+
*/
|
|
24
94
|
isMonochrome: boolean;
|
|
25
95
|
};
|
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
import { ThemeOptions, ThemeReturn } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* React hook that manages the application theme state with `localStorage` persistence
|
|
4
|
+
* and automatic synchronization with system preferences.
|
|
5
|
+
*
|
|
6
|
+
* Tracks theme mode (`"system"`, `"dark"`, `"light"`), contrast level (`"standard"`,
|
|
7
|
+
* `"medium"`, `"high"`), and monochrome mode. When `mode` is set to `"system"`,
|
|
8
|
+
* `isDarkMode` dynamically listens to the OS `(prefers-color-scheme: dark)` media query.
|
|
9
|
+
*
|
|
10
|
+
* All setter callbacks (`setMode`, `setContrast`, `setMonochrome`) are referentially stable
|
|
11
|
+
* via `useCallback`.
|
|
12
|
+
*
|
|
13
|
+
* @param options - Configuration options for initial defaults and storage key.
|
|
14
|
+
* @returns Current theme state and updater functions.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { useTheme, buildThemeString } from '@adgytec/web-ui-components';
|
|
19
|
+
* import { useEffect } from 'react';
|
|
20
|
+
*
|
|
21
|
+
* function App() {
|
|
22
|
+
* const theme = useTheme();
|
|
23
|
+
*
|
|
24
|
+
* useEffect(() => {
|
|
25
|
+
* const themeString = buildThemeString({
|
|
26
|
+
* isDarkMode: theme.isDarkMode,
|
|
27
|
+
* isMonochrome: theme.isMonochrome,
|
|
28
|
+
* contrast: theme.contrast,
|
|
29
|
+
* });
|
|
30
|
+
* document.documentElement.setAttribute('data-theme', themeString);
|
|
31
|
+
* }, [theme.isDarkMode, theme.isMonochrome, theme.contrast]);
|
|
32
|
+
*
|
|
33
|
+
* return (
|
|
34
|
+
* <div>
|
|
35
|
+
* <button onClick={() => theme.setMode('dark')}>Dark Mode</button>
|
|
36
|
+
* <button onClick={() => theme.setContrast('high')}>High Contrast</button>
|
|
37
|
+
* </div>
|
|
38
|
+
* );
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
2
42
|
export declare function useTheme({ defaultThemeMode, defaultContrast, isMonochrome, localStorageKey, initializeWithValue, }?: ThemeOptions): ThemeReturn;
|
|
@@ -1,33 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard typography variants based on Material Design 3 guidelines.
|
|
3
|
+
*
|
|
4
|
+
* Maps typography roles to pre-defined CSS class names configuring font-family,
|
|
5
|
+
* font-size, line-height, letter-spacing, and font-weight.
|
|
6
|
+
*
|
|
7
|
+
* Each role is available in two forms:
|
|
8
|
+
* - **Standard**: The default type scale definition.
|
|
9
|
+
* - **Emphasized**: A heavier font-weight variant (e.g., medium/semi-bold/bold) for emphasis.
|
|
10
|
+
*
|
|
11
|
+
* ### Categories:
|
|
12
|
+
* - **Display**: Large, expressive short text (e.g. hero stats, numbers).
|
|
13
|
+
* - **Headline**: High-emphasis titles for main screens or sections.
|
|
14
|
+
* - **Title**: Medium-emphasis headers for cards, dialogs, and list items.
|
|
15
|
+
* - **Body**: Longer passages, descriptive copy, and form inputs.
|
|
16
|
+
* - **Label**: Compact utility styles for buttons, chips, tabs, and form field captions.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import { typography } from '@adgytec/web-ui-components';
|
|
21
|
+
* import clsx from 'clsx';
|
|
22
|
+
*
|
|
23
|
+
* function Heading() {
|
|
24
|
+
* return (
|
|
25
|
+
* <h1 className={clsx(typography.headlineLarge)}>
|
|
26
|
+
* Dashboard Overview
|
|
27
|
+
* </h1>
|
|
28
|
+
* );
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
1
32
|
export declare const typography: {
|
|
33
|
+
/** Large display style (57px) for high-impact, short hero text. */
|
|
2
34
|
readonly displayLarge: "typography-display-large";
|
|
35
|
+
/** Emphasized (heavier weight) variant of `displayLarge`. */
|
|
3
36
|
readonly displayLargeEmphasized: "typography-display-large-emphasized";
|
|
37
|
+
/** Medium display style (45px) for prominent short text. */
|
|
4
38
|
readonly displayMedium: "typography-display-medium";
|
|
39
|
+
/** Emphasized (heavier weight) variant of `displayMedium`. */
|
|
5
40
|
readonly displayMediumEmphasized: "typography-display-medium-emphasized";
|
|
41
|
+
/** Small display style (36px) for compact hero headings. */
|
|
6
42
|
readonly displaySmall: "typography-display-small";
|
|
43
|
+
/** Emphasized (heavier weight) variant of `displaySmall`. */
|
|
7
44
|
readonly displaySmallEmphasized: "typography-display-small-emphasized";
|
|
45
|
+
/** Large headline style (32px) for primary screen and section titles. */
|
|
8
46
|
readonly headlineLarge: "typography-headline-large";
|
|
47
|
+
/** Emphasized (heavier weight) variant of `headlineLarge`. */
|
|
9
48
|
readonly headlineLargeEmphasized: "typography-headline-large-emphasized";
|
|
49
|
+
/** Medium headline style (28px) for secondary screen titles. */
|
|
10
50
|
readonly headlineMedium: "typography-headline-medium";
|
|
51
|
+
/** Emphasized (heavier weight) variant of `headlineMedium`. */
|
|
11
52
|
readonly headlineMediumEmphasized: "typography-headline-medium-emphasized";
|
|
53
|
+
/** Small headline style (24px) for tertiary screen titles. */
|
|
12
54
|
readonly headlineSmall: "typography-headline-small";
|
|
55
|
+
/** Emphasized (heavier weight) variant of `headlineSmall`. */
|
|
13
56
|
readonly headlineSmallEmphasized: "typography-headline-small-emphasized";
|
|
57
|
+
/** Large title style (22px) for top-level card titles, app bars, and dialog headers. */
|
|
14
58
|
readonly titleLarge: "typography-title-large";
|
|
59
|
+
/** Emphasized (heavier weight) variant of `titleLarge`. */
|
|
15
60
|
readonly titleLargeEmphasized: "typography-title-large-emphasized";
|
|
61
|
+
/** Medium title style (16px) for section headers and prominent list items. */
|
|
16
62
|
readonly titleMedium: "typography-title-medium";
|
|
63
|
+
/** Emphasized (heavier weight) variant of `titleMedium`. */
|
|
17
64
|
readonly titleMediumEmphasized: "typography-title-medium-emphasized";
|
|
65
|
+
/** Small title style (14px) for compact card headers, subheads, and tabs. */
|
|
18
66
|
readonly titleSmall: "typography-title-small";
|
|
67
|
+
/** Emphasized (heavier weight) variant of `titleSmall`. */
|
|
19
68
|
readonly titleSmallEmphasized: "typography-title-small-emphasized";
|
|
69
|
+
/** Large body style (16px) for primary body text, article paragraphs, and form inputs. */
|
|
20
70
|
readonly bodyLarge: "typography-body-large";
|
|
71
|
+
/** Emphasized (heavier weight) variant of `bodyLarge`. */
|
|
21
72
|
readonly bodyLargeEmphasized: "typography-body-large-emphasized";
|
|
73
|
+
/** Medium body style (14px) for secondary descriptions and supporting text. */
|
|
22
74
|
readonly bodyMedium: "typography-body-medium";
|
|
75
|
+
/** Emphasized (heavier weight) variant of `bodyMedium`. */
|
|
23
76
|
readonly bodyMediumEmphasized: "typography-body-medium-emphasized";
|
|
77
|
+
/** Small body style (12px) for compact descriptions, disclaimers, and legal text. */
|
|
24
78
|
readonly bodySmall: "typography-body-small";
|
|
79
|
+
/** Emphasized (heavier weight) variant of `bodySmall`. */
|
|
25
80
|
readonly bodySmallEmphasized: "typography-body-small-emphasized";
|
|
81
|
+
/** Large label style (14px) for buttons, navigation items, chips, and field labels. */
|
|
26
82
|
readonly labelLarge: "typography-label-large";
|
|
83
|
+
/** Emphasized (heavier weight) variant of `labelLarge`. */
|
|
27
84
|
readonly labelLargeEmphasized: "typography-label-large-emphasized";
|
|
85
|
+
/** Medium label style (12px) for helper text, tooltips, tags, and character counts. */
|
|
28
86
|
readonly labelMedium: "typography-label-medium";
|
|
87
|
+
/** Emphasized (heavier weight) variant of `labelMedium`. */
|
|
29
88
|
readonly labelMediumEmphasized: "typography-label-medium-emphasized";
|
|
89
|
+
/** Small label style (11px) for overline text, timestamps, and compact metadata. */
|
|
30
90
|
readonly labelSmall: "typography-label-small";
|
|
91
|
+
/** Emphasized (heavier weight) variant of `labelSmall`. */
|
|
31
92
|
readonly labelSmallEmphasized: "typography-label-small-emphasized";
|
|
32
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* Union of all standard typography CSS class name values in {@link typography}.
|
|
96
|
+
*/
|
|
33
97
|
export type TypographyVariant = (typeof typography)[keyof typeof typography];
|
|
98
|
+
/**
|
|
99
|
+
* Union of all standard typography role keys in {@link typography}.
|
|
100
|
+
*/
|
|
101
|
+
export type TypographyKey = keyof typeof typography;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import { TypographyVariant } from './base';
|
|
2
2
|
import { FluidTypographyVariant } from './fluid';
|
|
3
|
+
/**
|
|
4
|
+
* Universal typography type representing any valid typography CSS class name in the design system.
|
|
5
|
+
*
|
|
6
|
+
* Combines both standard Material Design 3 variants ({@link TypographyVariant}) and responsive fluid variants ({@link FluidTypographyVariant}).
|
|
7
|
+
* Commonly used across component props that allow customizable typography styling (e.g. `labelTypography`, `titleTypography`, `panelTypography`).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import type { Typography } from '@/utils';
|
|
12
|
+
*
|
|
13
|
+
* interface CustomHeaderProps {
|
|
14
|
+
* title: string;
|
|
15
|
+
* titleTypography?: Typography;
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
3
19
|
export type Typography = TypographyVariant | FluidTypographyVariant;
|
|
@@ -1,9 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fluid typography variants that scale smoothly between minimum and maximum viewport sizes.
|
|
3
|
+
*
|
|
4
|
+
* Implemented using CSS `clamp()` to dynamically interpolate font size and line height
|
|
5
|
+
* according to screen width without jarring breakpoint jumps.
|
|
6
|
+
*
|
|
7
|
+
* Available for Display and Headline roles where responsive scaling produces the most
|
|
8
|
+
* impactful visual balance across mobile, tablet, and desktop viewports.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { fluidTypography } from '@adgytec/web-ui-components';
|
|
13
|
+
* import clsx from 'clsx';
|
|
14
|
+
*
|
|
15
|
+
* function HeroBanner() {
|
|
16
|
+
* return (
|
|
17
|
+
* <h1 className={clsx(fluidTypography.displayLarge)}>
|
|
18
|
+
* Fluid Responsive Title
|
|
19
|
+
* </h1>
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
1
24
|
export declare const fluidTypography: {
|
|
25
|
+
/** Large fluid display style smoothly scaling with viewport width. */
|
|
2
26
|
readonly displayLarge: "typography-display-large-fluid";
|
|
27
|
+
/** Medium fluid display style smoothly scaling with viewport width. */
|
|
3
28
|
readonly displayMedium: "typography-display-medium-fluid";
|
|
29
|
+
/** Small fluid display style smoothly scaling with viewport width. */
|
|
4
30
|
readonly displaySmall: "typography-display-small-fluid";
|
|
31
|
+
/** Large fluid headline style smoothly scaling with viewport width. */
|
|
5
32
|
readonly headlineLarge: "typography-headline-large-fluid";
|
|
33
|
+
/** Medium fluid headline style smoothly scaling with viewport width. */
|
|
6
34
|
readonly headlineMedium: "typography-headline-medium-fluid";
|
|
35
|
+
/** Small fluid headline style smoothly scaling with viewport width. */
|
|
7
36
|
readonly headlineSmall: "typography-headline-small-fluid";
|
|
8
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* Union of all fluid typography CSS class name values in {@link fluidTypography}.
|
|
40
|
+
*/
|
|
9
41
|
export type FluidTypographyVariant = (typeof fluidTypography)[keyof typeof fluidTypography];
|
|
42
|
+
/**
|
|
43
|
+
* Union of all fluid typography role keys in {@link fluidTypography}.
|
|
44
|
+
*/
|
|
45
|
+
export type FluidTypographyKey = keyof typeof fluidTypography;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adgytec/adgytec-web-ui-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css"
|
|
@@ -48,39 +48,37 @@
|
|
|
48
48
|
"react-aria-components": ">=1.17.0",
|
|
49
49
|
"react-dom": ">=19.2.3",
|
|
50
50
|
"react-transition-group": "^4.4.5",
|
|
51
|
-
"usehooks-ts": ">=3.1.1"
|
|
52
|
-
"zod": ">=4.3.5"
|
|
51
|
+
"usehooks-ts": ">=3.1.1"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@biomejs/biome": "^2.5.
|
|
56
|
-
"@internationalized/date": "^3.12.
|
|
57
|
-
"@rolldown/plugin-babel": "^0.2.
|
|
58
|
-
"@types/node": "^26.
|
|
59
|
-
"@types/react": "^19.
|
|
60
|
-
"@types/react-dom": "^19.
|
|
54
|
+
"@biomejs/biome": "^2.5.15",
|
|
55
|
+
"@internationalized/date": "^3.12.4",
|
|
56
|
+
"@rolldown/plugin-babel": "^0.2.4",
|
|
57
|
+
"@types/node": "^26.6.4",
|
|
58
|
+
"@types/react": "^19.3.0",
|
|
59
|
+
"@types/react-dom": "^19.3.0",
|
|
61
60
|
"@types/react-transition-group": "^4.4.12",
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
61
|
+
"@typescript/typescript6": "^6.0.2",
|
|
62
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
63
|
+
"autoprefixer": "^10.6.1",
|
|
64
64
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
65
65
|
"clsx": "^2.1.1",
|
|
66
66
|
"glob": "^13.0.6",
|
|
67
|
-
"globals": "^17.
|
|
68
|
-
"lightningcss": "^1.
|
|
69
|
-
"lucide-react": "^1.
|
|
70
|
-
"postcss-nesting": "^14.0.
|
|
71
|
-
"react": "^19.
|
|
72
|
-
"react-aria": "^3.
|
|
73
|
-
"react-aria-components": "^1.
|
|
74
|
-
"react-dom": "^19.
|
|
67
|
+
"globals": "^17.13.0",
|
|
68
|
+
"lightningcss": "^1.33.0",
|
|
69
|
+
"lucide-react": "^1.51.0",
|
|
70
|
+
"postcss-nesting": "^14.0.2",
|
|
71
|
+
"react": "^19.3.0",
|
|
72
|
+
"react-aria": "^3.52.1",
|
|
73
|
+
"react-aria-components": "^1.21.1",
|
|
74
|
+
"react-dom": "^19.3.0",
|
|
75
75
|
"react-transition-group": "^4.4.5",
|
|
76
76
|
"sonda": "^0.14.0",
|
|
77
|
-
"typescript": "~
|
|
77
|
+
"typescript": "~7.0.2",
|
|
78
|
+
"unplugin-dts": "^1.1.2",
|
|
78
79
|
"usehooks-ts": "^3.1.1",
|
|
79
|
-
"vite": "^8.
|
|
80
|
-
"vite-plugin-
|
|
81
|
-
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
82
|
-
"vite-plugin-static-copy": "^4.1.1",
|
|
83
|
-
"zod": "^4.4.3"
|
|
80
|
+
"vite": "^8.3.2",
|
|
81
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
84
82
|
},
|
|
85
83
|
"author": {
|
|
86
84
|
"name": "Adgytec",
|