@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Input/TimeField/TimeField.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport {\n TimeField as AriaTimeField,\n DateInput,\n DateSegment,\n type TimeValue,\n} from \"react-aria-components\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../core\";\nimport { Description } from \"../Description\";\nimport { FieldError } from \"../FieldError\";\nimport { Label } from \"../Label\";\nimport type { TimeFieldProps } from \"./types\";\n\nexport const TimeField = <T extends TimeValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n ...props\n}: TimeFieldProps<T>) => {\n return (\n <AriaTimeField\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <DateInput\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => {\n return (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n );\n }}\n </DateInput>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n </>\n );\n }}\n </AriaTimeField>\n );\n};\n"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaTimeField","clsx","_Fragment","Label","FieldError","typography","FieldError$1","Label$1","InputGroupStyles","UnsetStyles","DateSegmentStyles","SupportingTextStyles","Colors","EditorInputStyles","DateInputStyles","EditorStyles","clsx$1","TimeField$1","TimeField","props","className","renderProps","showDescription","description","isInvalid","showDescriptionOnInvalid","Fragment","label","DateInput","DateSegment","Description","errorMessage"],"sources":["../../../../src/components/Input/TimeField/TimeField.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport {\n TimeField as AriaTimeField,\n DateInput,\n DateSegment,\n type TimeValue,\n} from \"react-aria-components\";\nimport { typography } from \"@/utils\";\nimport {\n Colors,\n DateInputStyles,\n DateSegmentStyles,\n EditorInputStyles,\n EditorStyles,\n InputGroupStyles,\n SupportingTextStyles,\n UnsetStyles,\n} from \"../core\";\nimport { Description } from \"../Description\";\nimport { FieldError } from \"../FieldError\";\nimport { Label } from \"../Label\";\nimport type { TimeFieldProps } from \"./types\";\n\n/**\n * An accessible segmented time input field allowing users to enter time values by editing hour, minute, and AM/PM segments.\n *\n * Automatically formats time per locale and handles keyboard arrow adjustments,\n * helper descriptions, and validation errors.\n *\n * @example\n * ```tsx\n * import { TimeField } from '@adgytec/web-ui-components';\n *\n * <TimeField\n * label=\"Meeting Time\"\n * description=\"Select an hour and minute.\"\n * />\n * ```\n */\nexport const TimeField = <T extends TimeValue>({\n label,\n description,\n errorMessage,\n showDescriptionOnInvalid = false,\n className,\n ref,\n ...props\n}: TimeFieldProps<T>) => {\n return (\n <AriaTimeField\n className={(renderProps) =>\n clsx(\n Colors,\n InputGroupStyles,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n >\n {({ isInvalid }) => {\n const showDescription =\n description &&\n (!isInvalid || (isInvalid && showDescriptionOnInvalid));\n\n return (\n <>\n {label && <Label>{label}</Label>}\n\n <DateInput\n ref={ref}\n className={clsx(\n UnsetStyles,\n EditorStyles,\n EditorInputStyles,\n typography.bodyLarge,\n DateInputStyles\n )}\n data-date-input={true}\n >\n {(segment) => {\n return (\n <DateSegment\n className={clsx(\n DateSegmentStyles,\n typography.bodyLarge\n )}\n segment={segment}\n />\n );\n }}\n </DateInput>\n\n {showDescription && (\n <Description className={clsx(SupportingTextStyles)}>\n {description}\n </Description>\n )}\n <FieldError className={clsx(SupportingTextStyles)}>\n {errorMessage}\n </FieldError>\n </>\n );\n }}\n </AriaTimeField>\n );\n};\n"],"mappings":";;;;;;;;;AAuCA,IAAakB,KAAkC,EAC3C,UACA,gBACA,iBACA,8BAA2B,IAC3B,cACA,QACA,GAAGC,QAGC,kBAACnB,GAAD;CACI,YAAY,MACRC,EACIW,GACAJ,GACA,OAAOY,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;CAEJ,GAAID;CAEF,WAAA,EAAE,mBAAgB;EAChB,IAAMG,IACFC,MACC,CAACC,KAAcA,KAAaC;EAEjC,OACI,kBAAAvB,GAAA,EAAA,UAAA;GACKyB,KAAS,kBAACxB,GAAD,EAAA,UAAQwB,EAAa,CAAA;GAE/B,kBAACC,GAAD;IACS;IACL,WAAW3B,EACPQ,GACAM,GACAF,GACAR,EAAW,WACXS,CACJ;IACA,mBAAiB;IAEf,WAAA,MAEM,kBAACe,GAAD;KACI,WAAW5B,EACPS,GACAL,EAAW,SACf;KACS;IAAQ,CAAA;GAItB,CAAA;GAEViB,KACG,kBAACQ,GAAD;IAAa,WAAW7B,EAAKU,CAAoB;IAC5C,UAAAY;GACQ,CAAA;GAEjB,kBAACnB,GAAD;IAAY,WAAWH,EAAKU,CAAoB;IAC3C,UAAAoB;GACO,CAAA;EAChB,EAAA,CAAA;CAER;AACW,CAAA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TimeFieldProps as AriaTimeFieldProps, DateInput, TimeValue } from 'react-aria-components';
|
|
2
2
|
import { RefProp } from '../../../utils';
|
|
3
3
|
import { CoreInputProps } from '../core';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the {@link TimeField} component.
|
|
6
|
+
* Extends React Aria's {@link AriaTimeFieldProps}, {@link CoreInputProps}, and native time input ref.
|
|
7
|
+
*/
|
|
4
8
|
export interface TimeFieldProps<T extends TimeValue> extends Omit<AriaTimeFieldProps<T>, "children">, CoreInputProps, RefProp<typeof DateInput> {
|
|
5
9
|
}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ValidationResult } from 'react-aria-components';
|
|
3
|
+
/**
|
|
4
|
+
* Shared input wrapper props providing accessible labeling, descriptions, and error feedback.
|
|
5
|
+
*/
|
|
3
6
|
export interface CoreInputProps {
|
|
7
|
+
/** The accessible label displayed above or alongside the input control. */
|
|
4
8
|
label?: ReactNode;
|
|
9
|
+
/** Informative supporting text displayed below the input. */
|
|
5
10
|
description?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Error message content displayed when the input fails validation.
|
|
13
|
+
* Can be static content or a render function receiving the current {@link ValidationResult}.
|
|
14
|
+
*/
|
|
6
15
|
errorMessage?: ReactNode | ((validation: ValidationResult) => ReactNode);
|
|
16
|
+
/**
|
|
17
|
+
* Whether to continue displaying the {@link description} supporting text even when
|
|
18
|
+
* the input is invalid and rendering an error message.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
7
22
|
showDescriptionOnInvalid?: boolean;
|
|
8
23
|
}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard icon size (in pixels) for leading and trailing icons in text fields.
|
|
3
|
+
*/
|
|
1
4
|
export declare const TextFieldIconSize = 24;
|
|
5
|
+
/** CSS class resetting browser-default text field container styles. */
|
|
2
6
|
export declare const UnsetStyles: string;
|
|
7
|
+
/** CSS class providing color tokens for text fields. */
|
|
3
8
|
export declare const Colors: string;
|
|
9
|
+
/** CSS class for the composite input group container. */
|
|
4
10
|
export declare const InputGroupStyles: string;
|
|
11
|
+
/** CSS class for the editable input container. */
|
|
5
12
|
export declare const EditorStyles: string;
|
|
13
|
+
/** CSS class for the input element wrapper group. */
|
|
6
14
|
export declare const EditorInputGroupStyles: string;
|
|
15
|
+
/** CSS class for native `<input>` and `<textarea>` elements. */
|
|
7
16
|
export declare const EditorInputStyles: string;
|
|
17
|
+
/** CSS class for supporting text below text fields. */
|
|
8
18
|
export declare const SupportingTextStyles: string;
|
|
19
|
+
/** CSS class for the character count display. */
|
|
9
20
|
export declare const CharacterCountStyles: string;
|
|
21
|
+
/** CSS class for date field composite inputs. */
|
|
10
22
|
export declare const DateInputStyles: string;
|
|
23
|
+
/** CSS class for individual date segments within a date field. */
|
|
11
24
|
export declare const DateSegmentStyles: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Input/hooks/useControllableState.ts"],"sourcesContent":["import { useState } from \"react\";\n\nexport
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","require_compiler_runtime","import_compiler_runtime","useControllableState","$","t0","isControlled","value","t1","defaultValue","internalValue","setInternalValue","useState","currentValue","t2","onChange","val","setValue","t3"],"sources":["../../../../src/components/Input/hooks/useControllableState.ts"],"sourcesContent":["import { useState } from \"react\";\n\n/**\n * Options for the {@link useControllableState} hook.\n */\nexport interface UseControllableStateProps {\n /** Controlled value from props. */\n value?: string;\n /** Uncontrolled default value fallback. */\n defaultValue?: string;\n /** Change callback invoked when value updates. */\n onChange?: (value: string) => void;\n}\n\n/**\n * Custom hook to manage state that can operate in either controlled or uncontrolled mode.\n *\n * If `value` is passed, the hook operates in controlled mode; otherwise, it manages internal state.\n *\n * @param options - Controlled state options including `value`, `defaultValue`, and `onChange`.\n * @returns An object containing `currentValue` and `setValue`.\n */\nexport function useControllableState({\n value,\n defaultValue,\n onChange,\n}: UseControllableStateProps) {\n const isControlled = value !== undefined;\n\n const [internalValue, setInternalValue] = useState(\n () => defaultValue ?? \"\"\n );\n\n const currentValue = isControlled ? value : internalValue;\n\n const setValue = (val: string) => {\n onChange?.(val);\n\n if (!isControlled) {\n setInternalValue(val);\n }\n };\n\n return {\n currentValue,\n setValue,\n };\n}\n"],"mappings":";;;;AAsBA,SAAOG,EAAA,GAAA;CAAA,IAAAC,KAAA,GAAAJ,EAAAA,EAAAA,CAAA,CAAA,GAA8B,EAAA,UAAA,iBAAA,gBAAAK,GAKjCC,IAAqBC,MAAU,KAAA,GAAUC;CAAA,AAAAJ,EAAA,OAAAK,IAGb,IAAAL,EAAA,MAAxB,UAAMK,KAAA,IAAkB,EAAA,KAAAA,GAAA,EAAA,KAAAD;CAD5B,IAAA,CAAAE,GAAAC,KAA0CC,EACtCJ,CACJ,GAEAK,IAAqBP,IAAAC,IAAAG,GAAqCI;CAAA,AAAAV,EAAA,OAAAE,KAAAF,EAAA,OAAAW,KAEzC,KAAA,MAAA;EAGb,AAFAA,IAAWC,CAAG,GAETV,KACDK,EAAiBK,CAAG;CACvB,GACJ,EAAA,KAAAV,GAAA,EAAA,KAAAS,GAAA,EAAA,KAAAD,KAAA,IAAAV,EAAA;CAND,IAAAa,IAAiBH,GAMfI;CAKD,OALCd,EAAA,OAAAS,KAAAT,EAAA,OAAAa,KAEK,IAAA;EAAA;EAAA;CAGP,GAAC,EAAA,KAAAJ,GAAA,EAAA,KAAAI,GAAA,EAAA,KAAAC,KAAA,IAAAd,EAAA,IAHMc;AAGN"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Options for the {@link useControllableState} hook.
|
|
3
|
+
*/
|
|
4
|
+
export interface UseControllableStateProps {
|
|
5
|
+
/** Controlled value from props. */
|
|
2
6
|
value?: string;
|
|
7
|
+
/** Uncontrolled default value fallback. */
|
|
3
8
|
defaultValue?: string;
|
|
9
|
+
/** Change callback invoked when value updates. */
|
|
4
10
|
onChange?: (value: string) => void;
|
|
5
|
-
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Custom hook to manage state that can operate in either controlled or uncontrolled mode.
|
|
14
|
+
*
|
|
15
|
+
* If `value` is passed, the hook operates in controlled mode; otherwise, it manages internal state.
|
|
16
|
+
*
|
|
17
|
+
* @param options - Controlled state options including `value`, `defaultValue`, and `onChange`.
|
|
18
|
+
* @returns An object containing `currentValue` and `setValue`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useControllableState({ value, defaultValue, onChange, }: UseControllableStateProps): {
|
|
6
21
|
currentValue: string;
|
|
7
22
|
setValue: (val: string) => void;
|
|
8
23
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IconButtonProps } from '../../Button';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`ListAction`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListAction/ListAction.tsx) component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ListActionProps extends Omit<IconButtonProps, "size"> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Pre-configured trailing action icon button for a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
9
|
+
*
|
|
10
|
+
* Hardcodes `size="small"` while ensuring a full 48px touch target area for accessibility,
|
|
11
|
+
* defaulting to the `"standard"` icon button color style.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { MoreVertical } from "lucide-react";
|
|
16
|
+
*
|
|
17
|
+
* <ListAction
|
|
18
|
+
* icon={MoreVertical}
|
|
19
|
+
* aria-label="More options"
|
|
20
|
+
* onPress={() => handleOpenMenu()}
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const ListAction: React.FC<ListActionProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListAction';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the [`ListAvatar`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListAvatar/ListAvatar.tsx) component.
|
|
3
|
+
*/
|
|
4
|
+
export interface ListAvatarProps extends React.ComponentPropsWithRef<"div"> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Circular 40px avatar container for user initials or profile images inside a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
8
|
+
*
|
|
9
|
+
* Automatically styles text content with Material Design 3 `titleMedium` typography,
|
|
10
|
+
* and scales nested `<img>` elements with `object-fit: cover`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Initials avatar
|
|
15
|
+
* <ListAvatar>JD</ListAvatar>
|
|
16
|
+
*
|
|
17
|
+
* // Image avatar
|
|
18
|
+
* <ListAvatar>
|
|
19
|
+
* <img src="/avatars/user.jpg" alt="Jane Doe" />
|
|
20
|
+
* </ListAvatar>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const ListAvatar: React.FC<ListAvatarProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListAvatar';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ListBoxProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Material Design 3 List container component.
|
|
4
|
+
*
|
|
5
|
+
* Coordinates vertical indexing of items, keyboard navigation, single/multiple selection,
|
|
6
|
+
* and unified vertical alignment of leading media, text content, and trailing actions.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import {
|
|
11
|
+
* ListBox,
|
|
12
|
+
* ListItem,
|
|
13
|
+
* ListIcon,
|
|
14
|
+
* ListLabelText,
|
|
15
|
+
* ListSupportingText,
|
|
16
|
+
* } from "@adgytec/web-ui-components";
|
|
17
|
+
* import { Mail } from "lucide-react";
|
|
18
|
+
*
|
|
19
|
+
* <ListBox selectionMode="single">
|
|
20
|
+
* <ListItem
|
|
21
|
+
* id="inbox"
|
|
22
|
+
* leading={<ListIcon icon={Mail} />}
|
|
23
|
+
* label={<ListLabelText>Inbox</ListLabelText>}
|
|
24
|
+
* supporting={<ListSupportingText>2 unread messages</ListSupportingText>}
|
|
25
|
+
* />
|
|
26
|
+
* </ListBox>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const ListBox: <T extends object>({ alignY, className, ...props }: ListBoxProps<T>) => import('react').JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ListBox } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Vertical alignment options for elements (leading media, text content, and trailing actions)
|
|
4
|
+
* across list items in a [`ListBox`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListBox/ListBox.tsx).
|
|
5
|
+
*/
|
|
6
|
+
export type ListAlignY = "start" | "center" | "end";
|
|
7
|
+
/**
|
|
8
|
+
* Props for the [`ListBox`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListBox/ListBox.tsx) container component.
|
|
9
|
+
*
|
|
10
|
+
* Extends all properties from React Aria's `ListBox`, including selection modes, keyboard navigation,
|
|
11
|
+
* and collection props.
|
|
12
|
+
*/
|
|
13
|
+
export interface ListBoxProps<T extends object> extends React.ComponentPropsWithRef<typeof ListBox<T>> {
|
|
14
|
+
/**
|
|
15
|
+
* Vertical alignment of leading, text, and trailing elements across list items.
|
|
16
|
+
*
|
|
17
|
+
* @default "center"
|
|
18
|
+
*/
|
|
19
|
+
alignY?: ListAlignY;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Icon } from '../../Icon';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`ListIcon`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListIcon/ListIcon.tsx) component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ListIconProps extends Omit<React.ComponentPropsWithRef<typeof Icon>, "size" | "withText"> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Standardized leading icon component for a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
9
|
+
*
|
|
10
|
+
* Hardcodes a standard 20px dimension while dynamically inheriting the list item's
|
|
11
|
+
* text and interaction state colors.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { Mail } from "lucide-react";
|
|
16
|
+
*
|
|
17
|
+
* <ListIcon icon={Mail} />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const ListIcon: React.FC<ListIconProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListIcon';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ListItemProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Material Design 3 interactive list item component.
|
|
4
|
+
*
|
|
5
|
+
* Supports structured slot composition (`leading`, `overline`, `label`, `supporting`, `trailing`),
|
|
6
|
+
* dynamic corner radius morphing on hover/focus/selection, touch ripple splash feedback,
|
|
7
|
+
* and automatic synchronization with nested selection controls (`Checkbox` or `Switch` with `slot="selection"`).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import {
|
|
12
|
+
* ListItem,
|
|
13
|
+
* ListIcon,
|
|
14
|
+
* ListLabelText,
|
|
15
|
+
* ListSupportingText,
|
|
16
|
+
* ListAction,
|
|
17
|
+
* } from "@adgytec/web-ui-components";
|
|
18
|
+
* import { Star, Trash2 } from "lucide-react";
|
|
19
|
+
*
|
|
20
|
+
* <ListItem
|
|
21
|
+
* id="starred-email"
|
|
22
|
+
* leading={<ListIcon icon={Star} />}
|
|
23
|
+
* label={<ListLabelText>Project Roadmap</ListLabelText>}
|
|
24
|
+
* supporting={<ListSupportingText>Updated yesterday by Alex</ListSupportingText>}
|
|
25
|
+
* trailing={[
|
|
26
|
+
* <ListAction
|
|
27
|
+
* key="delete"
|
|
28
|
+
* icon={Trash2}
|
|
29
|
+
* aria-label="Delete item"
|
|
30
|
+
* onPress={() => handleDelete()}
|
|
31
|
+
* />,
|
|
32
|
+
* ]}
|
|
33
|
+
* />
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const ListItem: React.FC<ListItemProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ListBoxItem } from 'react-aria-components';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx) component.
|
|
5
|
+
*
|
|
6
|
+
* Utilizes a structured slot-based API (`leading`, `overline`, `label`, `supporting`, `trailing`)
|
|
7
|
+
* to lay out content following Material Design 3 List specifications.
|
|
8
|
+
*/
|
|
9
|
+
export interface ListItemProps extends Omit<React.ComponentPropsWithRef<typeof ListBoxItem>, "children"> {
|
|
10
|
+
/**
|
|
11
|
+
* Element rendered at the start of the list item (e.g. icon, avatar, thumbnail media, or selection checkbox).
|
|
12
|
+
*/
|
|
13
|
+
leading?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Eyebrow or overline text rendered above the primary label, typically [`ListOverlineText`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListOverlineText/ListOverlineText.tsx).
|
|
16
|
+
*/
|
|
17
|
+
overline?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* The primary label element of the list item, typically [`ListLabelText`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListLabelText/ListLabelText.tsx).
|
|
20
|
+
*/
|
|
21
|
+
label: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Secondary descriptive text rendered beneath the label, typically [`ListSupportingText`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListSupportingText/ListSupportingText.tsx).
|
|
24
|
+
*/
|
|
25
|
+
supporting?: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Array of elements rendered at the end of the list item (e.g. trailing metadata text, action buttons, or selection switches).
|
|
28
|
+
*/
|
|
29
|
+
trailing?: ReactNode[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Text } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`ListLabelText`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListLabelText/ListLabelText.tsx) component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ListLabelTextProps extends Omit<React.ComponentPropsWithRef<typeof Text>, "slot"> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Primary headline/label text component for a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
9
|
+
*
|
|
10
|
+
* Automatically binds to `slot="label"` with Material Design 3 `bodyLarge` typography.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ListLabelText>Notification Settings</ListLabelText>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const ListLabelText: React.FC<ListLabelTextProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListLabelText';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ListMediaProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Styled media container for thumbnail images and video previews within a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
4
|
+
*
|
|
5
|
+
* Automatically applies rounded corners and `object-fit: cover` to nested `<img>` or `<video>` elements.
|
|
6
|
+
* Supports dimension presets: `"image"` (56×56), `"video"` (100×56), and `"large-video"` (114×64).
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { ListMedia, ListMediaImageWidth, ListMediaImageHeight } from "@adgytec/web-ui-components";
|
|
11
|
+
*
|
|
12
|
+
* <ListMedia variant="image">
|
|
13
|
+
* <img
|
|
14
|
+
* src="https://picsum.photos/56/56"
|
|
15
|
+
* alt="Thumbnail"
|
|
16
|
+
* width={ListMediaImageWidth}
|
|
17
|
+
* height={ListMediaImageHeight}
|
|
18
|
+
* />
|
|
19
|
+
* </ListMedia>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const ListMedia: React.FC<ListMediaProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../../../chunks/ListMedia";
|
|
2
|
+
export { a as ListMedia, o as ListMediaImageHeight, n as ListMediaImageWidth, i as ListMediaLargeVideoHeight, t as ListMediaLargeVideoWidth, e as ListMediaVideoHeight, r as ListMediaVideoWidth };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Width in pixels for the `"image"` media variant (56px).
|
|
3
|
+
*/
|
|
4
|
+
export declare const ListMediaImageWidth = 56;
|
|
5
|
+
/**
|
|
6
|
+
* Height in pixels for the `"image"` media variant (56px).
|
|
7
|
+
*/
|
|
8
|
+
export declare const ListMediaImageHeight = 56;
|
|
9
|
+
/**
|
|
10
|
+
* Width in pixels for the standard `"video"` media variant (100px).
|
|
11
|
+
*/
|
|
12
|
+
export declare const ListMediaVideoWidth = 100;
|
|
13
|
+
/**
|
|
14
|
+
* Height in pixels for the standard `"video"` media variant (56px).
|
|
15
|
+
*/
|
|
16
|
+
export declare const ListMediaVideoHeight = 56;
|
|
17
|
+
/**
|
|
18
|
+
* Width in pixels for the `"large-video"` media variant (114px).
|
|
19
|
+
*/
|
|
20
|
+
export declare const ListMediaLargeVideoWidth = 114;
|
|
21
|
+
/**
|
|
22
|
+
* Height in pixels for the `"large-video"` media variant (64px).
|
|
23
|
+
*/
|
|
24
|
+
export declare const ListMediaLargeVideoHeight = 64;
|
|
25
|
+
/**
|
|
26
|
+
* Preset dimension variants for the [`ListMedia`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListMedia/ListMedia.tsx) container:
|
|
27
|
+
* - `"image"`: 56px × 56px square thumbnail.
|
|
28
|
+
* - `"video"`: 100px × 56px 16:9 aspect video preview.
|
|
29
|
+
* - `"large-video"`: 114px × 64px enlarged video preview.
|
|
30
|
+
*/
|
|
31
|
+
export type ListMediaVariant = "image" | "video" | "large-video";
|
|
32
|
+
/**
|
|
33
|
+
* Props for the [`ListMedia`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListMedia/ListMedia.tsx) container component.
|
|
34
|
+
*/
|
|
35
|
+
export interface ListMediaProps extends React.ComponentPropsWithRef<"div"> {
|
|
36
|
+
/**
|
|
37
|
+
* Preset dimension variant for the media thumbnail container.
|
|
38
|
+
*
|
|
39
|
+
* @default "image"
|
|
40
|
+
*/
|
|
41
|
+
variant?: ListMediaVariant;
|
|
42
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Text } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`ListOverlineText`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListOverlineText/ListOverlineText.tsx) component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ListOverlineTextProps extends React.ComponentPropsWithRef<typeof Text> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Eyebrow or overline category text component displayed above the label in a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
9
|
+
*
|
|
10
|
+
* Styled with Material Design 3 `labelSmall` typography.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ListOverlineText>Work</ListOverlineText>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const ListOverlineText: React.FC<ListOverlineTextProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListOverlineText';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Text } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`ListSupportingText`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListSupportingText/ListSupportingText.tsx) component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ListSupportingTextProps extends Omit<React.ComponentPropsWithRef<typeof Text>, "slot"> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Secondary descriptive text component placed beneath the label in a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
9
|
+
*
|
|
10
|
+
* Automatically binds to `slot="description"` with Material Design 3 `bodyMedium` typography.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ListSupportingText>Receive real-time alerts on your device.</ListSupportingText>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const ListSupportingText: React.FC<ListSupportingTextProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListSupportingText';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Text } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`ListTrailingText`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListTrailingText/ListTrailingText.tsx) component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ListTrailingTextProps extends React.ComponentPropsWithRef<typeof Text> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Trailing metadata or timestamp text component placed at the end of a [`ListItem`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/List/ListItem/ListItem.tsx).
|
|
9
|
+
*
|
|
10
|
+
* Styled with Material Design 3 `labelSmall` typography.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ListTrailingText>10:45 AM</ListTrailingText>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const ListTrailingText: React.FC<ListTrailingTextProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListTrailingText';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './ListAction';
|
|
2
|
+
export * from './ListAvatar';
|
|
3
|
+
export * from './ListBox';
|
|
4
|
+
export * from './ListIcon';
|
|
5
|
+
export * from './ListItem';
|
|
6
|
+
export * from './ListLabelText';
|
|
7
|
+
export * from './ListMedia';
|
|
8
|
+
export * from './ListOverlineText';
|
|
9
|
+
export * from './ListSupportingText';
|
|
10
|
+
export * from './ListTrailingText';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { t as e } from "../../chunks/ListAction";
|
|
2
|
+
import { t } from "../../chunks/ListAvatar";
|
|
3
|
+
import { t as n } from "../../chunks/ListBox";
|
|
4
|
+
import { t as r } from "../../chunks/ListIcon";
|
|
5
|
+
import { t as i } from "../../chunks/ListItem";
|
|
6
|
+
import { t as a } from "../../chunks/ListLabelText";
|
|
7
|
+
import { a as o, i as s, n as c, o as l, r as u, s as d, t as f } from "../../chunks/ListMedia";
|
|
8
|
+
import { t as p } from "../../chunks/ListOverlineText";
|
|
9
|
+
import { t as m } from "../../chunks/ListSupportingText";
|
|
10
|
+
import { t as h } from "../../chunks/ListTrailingText";
|
|
11
|
+
export { e as ListAction, t as ListAvatar, n as ListBox, r as ListIcon, i as ListItem, a as ListLabelText, d as ListMedia, f as ListMediaImageHeight, c as ListMediaImageWidth, u as ListMediaLargeVideoHeight, s as ListMediaLargeVideoWidth, o as ListMediaVideoHeight, l as ListMediaVideoWidth, p as ListOverlineText, m as ListSupportingText, h as ListTrailingText };
|
|
@@ -1,2 +1,27 @@
|
|
|
1
1
|
import { Icon } from '../Icon';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`Loader`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/Loader/Loader.tsx) component.
|
|
4
|
+
*
|
|
5
|
+
* Extends all properties from [`Icon`](file:///home/rohan/work/adgytec/adgytec-web-ui-components/src/components/Icon/Icon.tsx)
|
|
6
|
+
* while omitting `icon` (which is fixed to `LoaderCircle`) and internal `className`.
|
|
7
|
+
*/
|
|
8
|
+
export interface LoaderProps extends Omit<React.ComponentPropsWithRef<typeof Icon>, "icon" | "className"> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Circular spinning progress and activity indicator component.
|
|
12
|
+
*
|
|
13
|
+
* Built using Lucide's `LoaderCircle` icon with continuous 360-degree rotation animation
|
|
14
|
+
* to signal ongoing processes or background loading operations.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Loader } from "@adgytec/web-ui-components";
|
|
19
|
+
*
|
|
20
|
+
* // Default loader
|
|
21
|
+
* <Loader />
|
|
22
|
+
*
|
|
23
|
+
* // Custom size and color
|
|
24
|
+
* <Loader size={32} color="var(--md-sys-color-primary)" />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const Loader: React.FC<LoaderProps>;
|
|
@@ -1,2 +1,32 @@
|
|
|
1
1
|
import { MenuProps } from './types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Material Design 3 Menu component.
|
|
4
|
+
*
|
|
5
|
+
* Displays a list of choices on a temporary surface when users interact with a button,
|
|
6
|
+
* action, or other control. Supports single/multiple selection, submenus, keyboard navigation,
|
|
7
|
+
* and customizable color schemes and layout densities.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import {
|
|
12
|
+
* MenuTrigger,
|
|
13
|
+
* MenuPopover,
|
|
14
|
+
* Menu,
|
|
15
|
+
* MenuItem,
|
|
16
|
+
* Button,
|
|
17
|
+
* } from "@adgytec/web-ui-components";
|
|
18
|
+
* import { Settings, User, LogOut } from "lucide-react";
|
|
19
|
+
*
|
|
20
|
+
* <MenuTrigger>
|
|
21
|
+
* <Button label="Actions" />
|
|
22
|
+
* <MenuPopover>
|
|
23
|
+
* <Menu onAction={(key) => console.log(key)}>
|
|
24
|
+
* <MenuItem id="profile" label="Profile" leadingIcon={User} />
|
|
25
|
+
* <MenuItem id="settings" label="Settings" leadingIcon={Settings} />
|
|
26
|
+
* <MenuItem id="logout" label="Logout" leadingIcon={LogOut} />
|
|
27
|
+
* </Menu>
|
|
28
|
+
* </MenuPopover>
|
|
29
|
+
* </MenuTrigger>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const Menu: <T extends object>({ color, layout, className, ...props }: MenuProps<T>) => import('react').JSX.Element;
|