@adgytec/adgytec-web-ui-components 2.3.0 → 2.4.0
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/README.md +27 -16
- package/dist/App.d.ts +1 -2
- package/dist/assets/BottomSheetModal.css +1 -1
- package/dist/assets/CalendarCell.css +1 -1
- package/dist/assets/CalendarMenuItem.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/ListItem.css +1 -1
- package/dist/assets/ListTrailingText.css +1 -0
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/SideSheetModal.css +1 -1
- package/dist/assets/Switch.css +1 -1
- package/dist/assets/ThemeSelector.css +1 -1
- package/dist/assets/core7.css +1 -1
- package/dist/chunks/ActionDialog +0 -1
- package/dist/chunks/ActionDialog.map +1 -1
- package/dist/chunks/AppBar +42 -43
- package/dist/chunks/AppBar.map +1 -1
- package/dist/chunks/AppBarAction +0 -1
- package/dist/chunks/AppBarAction.map +1 -1
- package/dist/chunks/AppBarAvatar +1 -2
- package/dist/chunks/AppBarAvatar.map +1 -1
- package/dist/chunks/AppBarHeadline +1 -2
- package/dist/chunks/AppBarHeadline.map +1 -1
- package/dist/chunks/BaseCalendar +65 -68
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/BottomSheet +1 -2
- package/dist/chunks/BottomSheet.map +1 -1
- package/dist/chunks/BottomSheetModal +1 -2
- package/dist/chunks/BottomSheetModal.map +1 -1
- package/dist/chunks/ButtonGroup +1 -2
- package/dist/chunks/ButtonGroup.map +1 -1
- package/dist/chunks/CalendarCell +25 -40
- package/dist/chunks/CalendarCell.map +1 -1
- package/dist/chunks/CalendarGrid +1 -2
- package/dist/chunks/CalendarGrid.map +1 -1
- package/dist/chunks/CalendarMenuItem +2 -3
- package/dist/chunks/CalendarMenuItem.map +1 -1
- package/dist/chunks/Card +4 -5
- package/dist/chunks/Card.map +1 -1
- package/dist/chunks/CardIcon +1 -2
- package/dist/chunks/CardIcon.map +1 -1
- package/dist/chunks/CenteredSlider +1 -2
- package/dist/chunks/CenteredSlider.map +1 -1
- package/dist/chunks/ComboBox +1 -2
- package/dist/chunks/ComboBox.map +1 -1
- package/dist/chunks/ComboBoxPopover +0 -1
- package/dist/chunks/ComboBoxPopover.map +1 -1
- package/dist/chunks/ComboBoxTrigger +575 -63
- package/dist/chunks/ComboBoxTrigger.map +1 -1
- package/dist/chunks/ConnectedButtonGroup +13 -11
- package/dist/chunks/ConnectedButtonGroup.map +1 -1
- package/dist/chunks/Dialog +1 -2
- package/dist/chunks/Dialog.map +1 -1
- package/dist/chunks/Disclosure +1 -2
- package/dist/chunks/Disclosure.map +1 -1
- package/dist/chunks/DisclosureGroup +1 -2
- package/dist/chunks/DisclosureGroup.map +1 -1
- package/dist/chunks/DisclosureHeader +1 -2
- package/dist/chunks/DisclosureHeader.map +1 -1
- package/dist/chunks/DisclosurePanel +1 -2
- package/dist/chunks/DisclosurePanel.map +1 -1
- package/dist/chunks/Divider +1 -2
- package/dist/chunks/Divider.map +1 -1
- package/dist/chunks/FieldError +1 -2
- package/dist/chunks/FieldError.map +1 -1
- package/dist/chunks/GridBackgroundDecorator +0 -1
- package/dist/chunks/GridBackgroundDecorator.map +1 -1
- package/dist/chunks/Icon +1 -2
- package/dist/chunks/Icon.map +1 -1
- package/dist/chunks/Input +67 -78
- package/dist/chunks/Input.map +1 -1
- package/dist/chunks/Input2 +6 -9
- package/dist/chunks/Input2.map +1 -1
- package/dist/chunks/ListAction +12 -0
- package/dist/chunks/ListAction.map +1 -0
- package/dist/chunks/ListAvatar +1 -2
- package/dist/chunks/ListAvatar.map +1 -1
- package/dist/chunks/ListBox +12 -9
- package/dist/chunks/ListBox.map +1 -1
- package/dist/chunks/ListIcon +1 -2
- package/dist/chunks/ListIcon.map +1 -1
- package/dist/chunks/ListItem +62 -49
- package/dist/chunks/ListItem.map +1 -1
- package/dist/chunks/ListLabelText +1 -2
- package/dist/chunks/ListLabelText.map +1 -1
- package/dist/chunks/ListMedia +0 -1
- package/dist/chunks/ListMedia.map +1 -1
- package/dist/chunks/ListOverlineText +1 -2
- package/dist/chunks/ListOverlineText.map +1 -1
- package/dist/chunks/ListSupportingText +1 -2
- package/dist/chunks/ListSupportingText.map +1 -1
- package/dist/chunks/ListTrailingText +20 -0
- package/dist/chunks/ListTrailingText.map +1 -0
- package/dist/chunks/Loader +1 -2
- package/dist/chunks/Loader.map +1 -1
- package/dist/chunks/MenuPopover +1 -2
- package/dist/chunks/MenuPopover.map +1 -1
- package/dist/chunks/Modal +1 -2
- package/dist/chunks/Modal.map +1 -1
- package/dist/chunks/ModalOverlay +1 -2
- package/dist/chunks/ModalOverlay.map +1 -1
- package/dist/chunks/Navigation +2 -4
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +7 -6
- package/dist/chunks/NavigationScrollContainer.map +1 -1
- package/dist/chunks/NavigationSection +1 -2
- package/dist/chunks/NavigationSection.map +1 -1
- package/dist/chunks/NavigationSectionLabel +1 -2
- package/dist/chunks/NavigationSectionLabel.map +1 -1
- package/dist/chunks/Popover +1 -2
- package/dist/chunks/Popover.map +1 -1
- package/dist/chunks/RadialGlowDecorator +0 -1
- package/dist/chunks/RadialGlowDecorator.map +1 -1
- package/dist/chunks/Radio +57 -70
- package/dist/chunks/Radio.map +1 -1
- package/dist/chunks/RichTooltip +1 -2
- package/dist/chunks/RichTooltip.map +1 -1
- package/dist/chunks/RichTooltipActions +1 -2
- package/dist/chunks/RichTooltipActions.map +1 -1
- package/dist/chunks/RichTooltipInfo +1 -2
- package/dist/chunks/RichTooltipInfo.map +1 -1
- package/dist/chunks/SearchField +0 -1
- package/dist/chunks/SearchField.map +1 -1
- package/dist/chunks/SelectPopover +1 -2
- package/dist/chunks/SelectPopover.map +1 -1
- package/dist/chunks/SelectTrigger +1 -2
- package/dist/chunks/SelectTrigger.map +1 -1
- package/dist/chunks/SideSheet +8 -9
- package/dist/chunks/SideSheet.map +1 -1
- package/dist/chunks/SideSheetModal +2 -3
- package/dist/chunks/SideSheetModal.map +1 -1
- package/dist/chunks/Slider +0 -1
- package/dist/chunks/Slider.map +1 -1
- package/dist/chunks/SliderOutput +1 -2
- package/dist/chunks/SliderOutput.map +1 -1
- package/dist/chunks/SliderStops +4 -5
- package/dist/chunks/SliderStops.map +1 -1
- package/dist/chunks/SliderThumb +0 -1
- package/dist/chunks/SliderThumb.map +1 -1
- package/dist/chunks/Snackbar +1 -2
- package/dist/chunks/Snackbar.map +1 -1
- package/dist/chunks/SplitButton +14 -12
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +9 -9
- package/dist/chunks/SplitButtonTrigger.map +1 -1
- package/dist/chunks/SubmenuPopover +0 -1
- package/dist/chunks/SubmenuPopover.map +1 -1
- package/dist/chunks/Switch +47 -48
- package/dist/chunks/Switch.map +1 -1
- package/dist/chunks/Tab +1 -2
- package/dist/chunks/Tab.map +1 -1
- package/dist/chunks/TabList +1 -2
- package/dist/chunks/TabList.map +1 -1
- package/dist/chunks/TabPanel +1 -2
- package/dist/chunks/TabPanel.map +1 -1
- package/dist/chunks/TabPanels +1 -2
- package/dist/chunks/TabPanels.map +1 -1
- package/dist/chunks/Tabs +1 -2
- package/dist/chunks/Tabs.map +1 -1
- package/dist/chunks/Tag +1 -2
- package/dist/chunks/Tag.map +1 -1
- package/dist/chunks/ThemeSelector +117 -89
- package/dist/chunks/ThemeSelector.map +1 -1
- package/dist/chunks/Toolbar +0 -1
- package/dist/chunks/Toolbar.map +1 -1
- package/dist/chunks/Tooltip +0 -1
- package/dist/chunks/Tooltip.map +1 -1
- package/dist/chunks/base +1 -2
- package/dist/chunks/base.map +1 -1
- package/dist/chunks/compiler-runtime +4 -5
- package/dist/chunks/compiler-runtime.map +1 -1
- package/dist/chunks/context +1 -2
- package/dist/chunks/context.map +1 -1
- package/dist/chunks/core +30 -31
- package/dist/chunks/core.map +1 -1
- package/dist/chunks/core2 +0 -1
- package/dist/chunks/core2.map +1 -1
- package/dist/chunks/core3 +2 -5
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/core4 +0 -1
- package/dist/chunks/core4.map +1 -1
- package/dist/chunks/core5 +0 -1
- package/dist/chunks/core5.map +1 -1
- package/dist/chunks/core6 +14 -15
- package/dist/chunks/core6.map +1 -1
- package/dist/chunks/core7 +2 -5
- package/dist/chunks/core7.map +1 -1
- package/dist/chunks/core8 +1 -3
- package/dist/chunks/core8.map +1 -1
- package/dist/chunks/core9 +0 -1
- package/dist/chunks/core9.map +1 -1
- package/dist/chunks/navContext +1 -2
- package/dist/chunks/navContext.map +1 -1
- package/dist/chunks/tapTarget +0 -1
- package/dist/chunks/tapTarget.map +1 -1
- package/dist/chunks/types +1 -2
- package/dist/chunks/types.map +1 -1
- package/dist/chunks/useHover +430 -161
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/useSplash +18 -21
- package/dist/chunks/useSplash.map +1 -1
- package/dist/components/AppBar/AppBar/AppBar.d.ts +29 -0
- package/dist/components/AppBar/AppBar/index.js +1 -2
- package/dist/components/AppBar/AppBar/types.d.ts +29 -4
- package/dist/components/AppBar/AppBarAction/AppBarAction.d.ts +19 -1
- package/dist/components/AppBar/AppBarAction/index.js +1 -2
- package/dist/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +20 -1
- package/dist/components/AppBar/AppBarAvatar/index.js +1 -2
- package/dist/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +19 -1
- package/dist/components/AppBar/AppBarHeadline/index.js +1 -2
- 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 -12
- 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 +2 -4
- 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 +1 -2
- 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/index.js +1 -2
- 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 +3 -6
- 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/index.js +1 -2
- 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/index.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/index.js +1 -2
- 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 +2 -4
- 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 +3 -4
- 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/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButtonTrigger/types.d.ts +5 -0
- package/dist/components/Button/SplitButton/core/index.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/index.js +1 -2
- 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/BaseCalendar/index.js +1 -2
- package/dist/components/Calendar/Calendar/Calendar.d.ts +39 -2
- package/dist/components/Calendar/Calendar/index.js +19 -14
- package/dist/components/Calendar/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/CalendarCell/CalendarCell.d.ts +14 -2
- package/dist/components/Calendar/CalendarCell/index.js +1 -2
- package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts +12 -2
- package/dist/components/Calendar/CalendarGrid/index.js +1 -2
- package/dist/components/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +12 -1
- package/dist/components/Calendar/CalendarMenuItem/index.js +1 -2
- package/dist/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +14 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js +3 -4
- 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 +1 -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 +20 -17
- 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/index.js +1 -2
- 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/Card/CardIcon/index.js +1 -2
- package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +46 -7
- package/dist/components/Decorators/GridBackgroundDecorator/index.js +1 -2
- package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +53 -6
- package/dist/components/Decorators/RadialGlowDecorator/index.js +1 -2
- package/dist/components/Dialog/ActionDialog/ActionDialog.d.ts +33 -0
- package/dist/components/Dialog/ActionDialog/index.js +1 -2
- package/dist/components/Dialog/ActionDialog/types.d.ts +28 -2
- package/dist/components/Dialog/Dialog/Dialog.d.ts +32 -1
- package/dist/components/Dialog/Dialog/index.js +1 -2
- package/dist/components/Dialog/Modal/Modal.d.ts +24 -1
- package/dist/components/Dialog/Modal/index.js +1 -2
- package/dist/components/Dialog/ModalOverlay/ModalOverlay.d.ts +25 -1
- package/dist/components/Dialog/ModalOverlay/index.js +1 -2
- package/dist/components/Dialog/core/context.d.ts +8 -0
- package/dist/components/Dialog/core/index.js +2 -4
- 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/Disclosure/index.js +1 -2
- package/dist/components/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +50 -2
- package/dist/components/Disclosure/DisclosureGroup/index.js +1 -2
- package/dist/components/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +31 -2
- package/dist/components/Disclosure/DisclosureHeader/index.js +1 -2
- package/dist/components/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +31 -2
- package/dist/components/Disclosure/DisclosurePanel/index.js +1 -2
- package/dist/components/Disclosure/context/context.d.ts +11 -2
- package/dist/components/Disclosure/context/index.js +1 -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/Divider/index.js +1 -2
- package/dist/components/Icon/Icon.d.ts +29 -0
- package/dist/components/Icon/index.js +1 -2
- 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 +1 -2
- package/dist/components/Input/CharacterCount/index.js.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +26 -0
- package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +17 -0
- package/dist/components/Input/Checkbox/context.d.ts +9 -3
- package/dist/components/Input/Checkbox/types.d.ts +32 -5
- package/dist/components/Input/DateField/DateField.d.ts +17 -1
- package/dist/components/Input/DateField/index.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/DatePicker/core/index.js +1 -2
- package/dist/components/Input/Description/Description.d.ts +12 -1
- package/dist/components/Input/Description/index.js +1 -2
- package/dist/components/Input/Description/index.js.map +1 -1
- package/dist/components/Input/FieldError/FieldError.d.ts +12 -1
- package/dist/components/Input/FieldError/index.js +1 -2
- 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/index.js +1 -2
- 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 +1 -2
- package/dist/components/Input/Label/index.js.map +1 -1
- package/dist/components/Input/Radio/Radio.d.ts +17 -0
- package/dist/components/Input/Radio/RadioGroup.d.ts +17 -0
- package/dist/components/Input/Radio/context.d.ts +9 -3
- package/dist/components/Input/Radio/index.js +1 -2
- package/dist/components/Input/Radio/types.d.ts +32 -6
- package/dist/components/Input/SearchField/SearchField.d.ts +16 -0
- package/dist/components/Input/SearchField/index.js +1 -2
- 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/index.js +1 -2
- 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/ComboBoxPopover/index.js +1 -2
- package/dist/components/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +10 -2
- package/dist/components/Input/Select/ComboBoxTrigger/index.js +1 -2
- package/dist/components/Input/Select/Select/Select.d.ts +29 -1
- package/dist/components/Input/Select/Select/index.js +1 -2
- 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 +1 -2
- 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 +1 -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 +1 -2
- 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 +1 -2
- 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/SelectPopover/index.js +1 -2
- package/dist/components/Input/Select/SelectTrigger/SelectTrigger.d.ts +10 -1
- package/dist/components/Input/Select/SelectTrigger/index.js +1 -2
- package/dist/components/Input/Slider/CenteredSlider/CenteredSlider.d.ts +23 -1
- package/dist/components/Input/Slider/CenteredSlider/index.js +1 -2
- 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 +1 -2
- 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/index.js +1 -2
- 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/SliderOutput/index.js +1 -2
- 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/index.js +1 -2
- 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/SliderThumb/index.js +1 -2
- package/dist/components/Input/Slider/core/color.d.ts +1 -0
- package/dist/components/Input/Slider/core/index.js +1 -2
- 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 +32 -0
- package/dist/components/Input/Switch/index.js +1 -2
- package/dist/components/Input/Switch/types.d.ts +35 -3
- package/dist/components/Input/TextArea/TextArea.d.ts +19 -0
- package/dist/components/Input/TextArea/index.js +1 -2
- 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 +1 -2
- 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/index.js +1 -2
- 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 +1 -2
- 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 +1 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -1
- package/dist/components/List/ListAvatar/index.js +1 -2
- package/dist/components/List/ListBox/ListBox.d.ts +28 -1
- package/dist/components/List/ListBox/index.js +1 -2
- package/dist/components/List/ListBox/types.d.ts +27 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +19 -1
- package/dist/components/List/ListIcon/index.js +1 -2
- package/dist/components/List/ListItem/ListItem.d.ts +35 -0
- package/dist/components/List/ListItem/index.js +1 -2
- package/dist/components/List/ListItem/types.d.ts +34 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +16 -1
- package/dist/components/List/ListLabelText/index.js +1 -2
- package/dist/components/List/ListMedia/ListMedia.d.ts +20 -0
- package/dist/components/List/ListMedia/index.js +1 -2
- package/dist/components/List/ListMedia/types.d.ts +32 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +16 -1
- package/dist/components/List/ListOverlineText/index.js +1 -2
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +16 -1
- package/dist/components/List/ListSupportingText/index.js +1 -2
- 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 +1 -0
- package/dist/components/List/core/context.d.ts +18 -0
- package/dist/components/List/core/index.d.ts +2 -0
- package/dist/components/List/core/index.js +9 -0
- package/dist/components/List/core/index.js.map +1 -0
- package/dist/components/List/core/selectionIndicator.d.ts +8 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +12 -9
- package/dist/components/Loader/Loader.d.ts +26 -1
- package/dist/components/Loader/index.js +1 -2
- package/dist/components/Menu/Menu/Menu.d.ts +31 -1
- package/dist/components/Menu/Menu/index.js +1 -2
- 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 +1 -2
- 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/MenuPopover/index.js +1 -2
- package/dist/components/Menu/MenuSection/MenuSection.d.ts +23 -1
- package/dist/components/Menu/MenuSection/index.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -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/SubmenuPopover/index.js +1 -2
- package/dist/components/Menu/context/context.d.ts +13 -0
- package/dist/components/Menu/context/index.js +2 -4
- 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/index.js +1 -2
- 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 +1 -2
- 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 +1 -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 +1 -2
- 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/index.js +1 -2
- 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/NavigationScrollContainer/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +24 -1
- package/dist/components/Navigation/NavigationSection/NavigationSection/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +16 -1
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/index.js +1 -2
- 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 +2 -4
- 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 +1 -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 +1 -2
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
- package/dist/components/Navigation/core/index.js +1 -2
- 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/Popover/index.js +1 -2
- package/dist/components/Sheets/BottomSheet/BottomSheet/BottomSheet.d.ts +40 -0
- package/dist/components/Sheets/BottomSheet/BottomSheet/index.d.ts +2 -0
- package/dist/components/Sheets/BottomSheet/BottomSheet/index.js +1 -0
- package/dist/components/Sheets/BottomSheet/BottomSheet/types.d.ts +37 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/BottomSheetModal.d.ts +36 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/context.d.ts +15 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/index.js +1 -0
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/types.d.ts +43 -0
- package/dist/components/Sheets/BottomSheet/index.d.ts +1 -0
- package/dist/components/Sheets/BottomSheet/index.js +3 -2
- package/dist/components/Sheets/SideSheet/SideSheet/SideSheet.d.ts +48 -0
- package/dist/components/Sheets/SideSheet/SideSheet/SideSheetDialog.d.ts +45 -0
- package/dist/components/Sheets/SideSheet/SideSheet/index.d.ts +3 -0
- package/dist/components/Sheets/SideSheet/SideSheet/index.js +1 -0
- package/dist/components/Sheets/SideSheet/SideSheet/types.d.ts +102 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/SideSheetModal.d.ts +36 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/context.d.ts +20 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/index.js +1 -0
- package/dist/components/Sheets/SideSheet/SideSheetModal/types.d.ts +56 -0
- package/dist/components/Sheets/SideSheet/index.d.ts +1 -2
- package/dist/components/Sheets/SideSheet/index.js +3 -2
- package/dist/components/Sheets/core/layout.d.ts +11 -0
- package/dist/components/Sheets/index.d.ts +0 -2
- package/dist/components/Snackbar/SnackbarRegion.d.ts +50 -0
- package/dist/components/Snackbar/context.d.ts +38 -0
- package/dist/components/Snackbar/index.js +1 -2
- package/dist/components/Snackbar/types.d.ts +69 -0
- package/dist/components/Splash/Splash.d.ts +6 -0
- package/dist/components/Splash/index.js +1 -2
- 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/Tab/index.js +1 -2
- package/dist/components/Tabs/TabList/TabList.d.ts +42 -1
- package/dist/components/Tabs/TabList/index.js +1 -2
- package/dist/components/Tabs/TabPanel/TabPanel.d.ts +28 -1
- package/dist/components/Tabs/TabPanel/index.js +1 -2
- package/dist/components/Tabs/TabPanels/TabPanels.d.ts +28 -1
- package/dist/components/Tabs/TabPanels/index.js +1 -2
- package/dist/components/Tabs/Tabs/Tabs.d.ts +43 -1
- package/dist/components/Tabs/Tabs/index.js +1 -2
- package/dist/components/Tag/Tag.d.ts +37 -0
- package/dist/components/Tag/core.d.ts +6 -0
- package/dist/components/Tag/index.js +1 -2
- package/dist/components/Tag/types.d.ts +48 -2
- package/dist/components/ThemeSelector/ThemeItem.d.ts +52 -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 +72 -4
- package/dist/components/ThemeSelector/index.d.ts +2 -0
- package/dist/components/ThemeSelector/index.js +1 -2
- package/dist/components/ThemeSelector/types.d.ts +110 -2
- package/dist/components/Toolbar/Toolbar.d.ts +47 -0
- package/dist/components/Toolbar/ToolbarToggleButtonGroup.d.ts +35 -1
- package/dist/components/Toolbar/index.js +1 -2
- 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/RichTooltip/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +27 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +31 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +22 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js +1 -2
- 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 +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js.map +1 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/RichTooltipTrigger.d.ts +53 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.d.ts +1 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.js +11 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.js.map +1 -0
- package/dist/components/Tooltip/RichTooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/RichTooltip/index.js +2 -1
- package/dist/components/Tooltip/Tooltip/Tooltip.d.ts +35 -1
- package/dist/components/Tooltip/Tooltip/index.js +1 -2
- package/dist/components/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +29 -1
- package/dist/components/Tooltip/TooltipTrigger/index.js +1 -2
- package/dist/components/Tooltip/TooltipTrigger/index.js.map +1 -1
- package/dist/components/Tooltip/index.js +4 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +131 -139
- package/dist/index.js.map +1 -1
- package/dist/preview/AppBar/AppBar.d.ts +2 -0
- package/dist/preview/AppBar/index.d.ts +1 -0
- package/dist/preview/BottomSheet/BottomSheet.d.ts +6 -0
- package/dist/preview/BottomSheet/index.d.ts +1 -0
- package/dist/preview/Button/Button.d.ts +2 -0
- package/dist/preview/Button/index.d.ts +1 -0
- package/dist/preview/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/preview/ButtonGroup/index.d.ts +1 -0
- package/dist/preview/Calendar/Calendar.d.ts +2 -0
- package/dist/preview/Calendar/index.d.ts +1 -0
- package/dist/preview/Card/Card.d.ts +2 -0
- package/dist/preview/Card/index.d.ts +1 -0
- package/dist/preview/CenteredSlider/CenteredSlider.d.ts +2 -0
- package/dist/preview/CenteredSlider/index.d.ts +1 -0
- package/dist/preview/Checkbox/Checkbox.d.ts +2 -0
- package/dist/preview/Checkbox/index.d.ts +1 -0
- package/dist/preview/Config/Config.d.ts +8 -0
- package/dist/preview/Config/index.d.ts +1 -0
- package/dist/preview/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +2 -0
- package/dist/preview/ConnectedButtonGroup/index.d.ts +1 -0
- package/dist/preview/DateField/DateField.d.ts +6 -0
- package/dist/preview/DateField/index.d.ts +1 -0
- package/dist/preview/DatePicker/DatePicker.d.ts +2 -0
- package/dist/preview/DatePicker/index.d.ts +1 -0
- package/dist/preview/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/dist/preview/DateRangePicker/index.d.ts +1 -0
- package/dist/preview/Decorators/Decorators.d.ts +2 -0
- package/dist/preview/Decorators/index.d.ts +1 -0
- package/dist/preview/Dialog/Dialog.d.ts +2 -0
- package/dist/preview/Dialog/index.d.ts +1 -0
- package/dist/preview/Disclosure/Disclosure.d.ts +2 -0
- package/dist/preview/Disclosure/index.d.ts +1 -0
- package/dist/preview/Gradients/Gradients.d.ts +6 -0
- package/dist/preview/Gradients/index.d.ts +1 -0
- package/dist/preview/Icon/Icon.d.ts +2 -0
- package/dist/preview/Icon/index.d.ts +1 -0
- package/dist/preview/IconButton/IconButton.d.ts +2 -0
- package/dist/preview/IconButton/index.d.ts +1 -0
- package/dist/preview/Input/Input.d.ts +6 -0
- package/dist/preview/Input/index.d.ts +1 -0
- package/dist/preview/Link/Link.d.ts +2 -0
- package/dist/preview/Link/index.d.ts +1 -0
- package/dist/preview/List/List.d.ts +2 -0
- package/dist/preview/List/index.d.ts +1 -0
- package/dist/preview/Menu/Menu.d.ts +3 -0
- package/dist/preview/Menu/index.d.ts +1 -0
- package/dist/preview/Navigation/Navigation.d.ts +3 -0
- package/dist/preview/Navigation/index.d.ts +1 -0
- package/dist/preview/Radio/Radio.d.ts +2 -0
- package/dist/preview/Radio/index.d.ts +1 -0
- package/dist/preview/RangeCalendar/RangeCalendar.d.ts +2 -0
- package/dist/preview/RangeCalendar/index.d.ts +1 -0
- package/dist/preview/RangeSlider/RangeSlider.d.ts +2 -0
- package/dist/preview/RangeSlider/index.d.ts +1 -0
- package/dist/preview/SearchField/SearchField.d.ts +2 -0
- package/dist/preview/SearchField/index.d.ts +1 -0
- package/dist/preview/Select/Select.d.ts +2 -0
- package/dist/preview/Select/index.d.ts +1 -0
- package/dist/preview/SideSheet/SideSheet.d.ts +7 -0
- package/dist/preview/SideSheet/index.d.ts +1 -0
- package/dist/preview/Slider/Slider.d.ts +2 -0
- package/dist/preview/Slider/index.d.ts +1 -0
- package/dist/preview/Snackbar/Snackbar.d.ts +2 -0
- package/dist/preview/Snackbar/index.d.ts +1 -0
- package/dist/preview/SplitButton/SplitButton.d.ts +10 -0
- package/dist/preview/SplitButton/index.d.ts +1 -0
- package/dist/preview/Switch/Switch.d.ts +2 -0
- package/dist/preview/Switch/index.d.ts +1 -0
- package/dist/preview/Tabs/Tabs.d.ts +7 -0
- package/dist/preview/Tabs/index.d.ts +1 -0
- package/dist/preview/Tags/Tags.d.ts +2 -0
- package/dist/preview/Tags/index.d.ts +1 -0
- package/dist/preview/TextArea/TextArea.d.ts +6 -0
- package/dist/preview/TextArea/index.d.ts +1 -0
- package/dist/preview/ThemeSelector/ThemeSelector.d.ts +2 -0
- package/dist/preview/ThemeSelector/index.d.ts +1 -0
- package/dist/preview/TimeField/TimeField.d.ts +6 -0
- package/dist/preview/TimeField/index.d.ts +1 -0
- package/dist/preview/Toolbar/Toolbar.d.ts +10 -0
- package/dist/preview/Toolbar/index.d.ts +1 -0
- package/dist/preview/Tooltip/Tooltip.d.ts +2 -0
- package/dist/preview/Tooltip/index.d.ts +1 -0
- 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 +24 -26
- 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/components/Sheets/BottomSheet/BottomSheet.d.ts +0 -2
- package/dist/components/Sheets/BottomSheetModal/BottomSheetModal.d.ts +0 -2
- package/dist/components/Sheets/BottomSheetModal/context.d.ts +0 -5
- package/dist/components/Sheets/BottomSheetModal/index.js +0 -2
- package/dist/components/Sheets/BottomSheetModal/types.d.ts +0 -5
- package/dist/components/Sheets/SideSheet/SideSheet.d.ts +0 -2
- package/dist/components/Sheets/SideSheet/SideSheetDialog.d.ts +0 -2
- package/dist/components/Sheets/SideSheet/types.d.ts +0 -8
- package/dist/components/Sheets/SideSheetModal/SideSheetModal.d.ts +0 -2
- package/dist/components/Sheets/SideSheetModal/context.d.ts +0 -7
- package/dist/components/Sheets/SideSheetModal/index.js +0 -2
- package/dist/components/Sheets/SideSheetModal/types.d.ts +0 -7
- package/dist/utils/form/form.d.ts +0 -13
- package/dist/utils/form/index.d.ts +0 -1
- /package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/index.d.ts +0 -0
- /package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/index.d.ts +0 -0
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
import { ToggleButtonGroup } from 'react-aria-components';
|
|
2
2
|
import { ButtonIconPlacement, ButtonShape, ButtonSize, ConnectedButtonGroupColor } from '../../core';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link ConnectedButtonGroup} component.
|
|
5
|
+
* Extends React Aria's {@link ToggleButtonGroup} (excluding orientation) with connected button styling presets.
|
|
6
|
+
*/
|
|
3
7
|
export interface ConnectedButtonGroupProps extends Omit<React.ComponentPropsWithRef<typeof ToggleButtonGroup>, "orientation"> {
|
|
8
|
+
/**
|
|
9
|
+
* Size preset applied across all connected buttons in the group.
|
|
10
|
+
*
|
|
11
|
+
* @default "small"
|
|
12
|
+
*/
|
|
4
13
|
size?: ButtonSize;
|
|
14
|
+
/**
|
|
15
|
+
* Corner rounding shape for the outer boundaries of the connected group.
|
|
16
|
+
*
|
|
17
|
+
* @default "round"
|
|
18
|
+
*/
|
|
5
19
|
shape?: ButtonShape;
|
|
20
|
+
/**
|
|
21
|
+
* Visual color style variant applied to buttons in the connected group.
|
|
22
|
+
*
|
|
23
|
+
* @default "filled"
|
|
24
|
+
*/
|
|
6
25
|
color?: ConnectedButtonGroupColor;
|
|
26
|
+
/**
|
|
27
|
+
* Default icon placement relative to label for connected buttons.
|
|
28
|
+
*
|
|
29
|
+
* @default "start"
|
|
30
|
+
*/
|
|
7
31
|
iconPlacement?: ButtonIconPlacement;
|
|
8
32
|
}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
import { IconButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A compact, icon-only button implementing Material Design 3 Icon Buttons.
|
|
4
|
+
*
|
|
5
|
+
* Designed for space-constrained UI elements, actions, toolbars, and controls that can
|
|
6
|
+
* be clearly represented by an icon alone. Automatically swaps the icon with a `Loader`
|
|
7
|
+
* spinner when `isPending` is active.
|
|
8
|
+
*
|
|
9
|
+
* Extends React Aria's `Button`. Always provide an accessible `aria-label` or `aria-labelledby`
|
|
10
|
+
* attribute for screen reader accessibility.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <IconButton
|
|
15
|
+
* icon={Settings}
|
|
16
|
+
* color="tonal"
|
|
17
|
+
* tooltip="Settings"
|
|
18
|
+
* aria-label="Settings"
|
|
19
|
+
* onPress={() => openSettings()}
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
2
23
|
export declare const IconButton: React.FC<IconButtonProps>;
|
|
@@ -6,7 +6,7 @@ import { c as a, d as o, f as s, l as c, n as l, o as u, p as d, s as f, t as p,
|
|
|
6
6
|
import { clsx as h } from "clsx";
|
|
7
7
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
8
8
|
import { Button as v } from "react-aria-components";
|
|
9
|
-
|
|
9
|
+
// src/components/Button/IconButton/IconButton.tsx
|
|
10
10
|
var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon: w, onPress: T, className: E, ...D }) => {
|
|
11
11
|
let { buttonColor: O, buttonShape: k, buttonSize: A } = l({
|
|
12
12
|
size: y,
|
|
@@ -48,7 +48,6 @@ var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon:
|
|
|
48
48
|
}
|
|
49
49
|
}), C);
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { y as IconButton };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { IconButtonProps } from \"./types\";\n\nexport const IconButton: React.FC<IconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaButton","TapTarget","Loader","Splash","useSplash","buttonSizeConfig","ButtonCore","ButtonReset","buttonColorBase","useButtonConfig","ButtonSizeBase","newButtonBaseDataAttrs","IconButtonIconSizeMapping","withTooltip","buttonColorConfig","IconButton","props","onPress","iconButtonDataAttrs","buttonShape","buttonSize","buttonColor","width","Button","handlePress","clsx","className","renderProps","dataAttrs","isHovered","isDisabled","isFocused","isFocusVisible","isPressed","iconSize","splashInfo","isPending","icon","Icon","tooltip"],"sources":["../../../../src/components/Button/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { IconButtonProps } from \"./types\";\n\n/**\n * A compact, icon-only button implementing Material Design 3 Icon Buttons.\n *\n * Designed for space-constrained UI elements, actions, toolbars, and controls that can\n * be clearly represented by an icon alone. Automatically swaps the icon with a `Loader`\n * spinner when `isPending` is active.\n *\n * Extends React Aria's `Button`. Always provide an accessible `aria-label` or `aria-labelledby`\n * attribute for screen reader accessibility.\n *\n * @example\n * ```tsx\n * <IconButton\n * icon={Settings}\n * color=\"tonal\"\n * tooltip=\"Settings\"\n * aria-label=\"Settings\"\n * onPress={() => openSettings()}\n * />\n * ```\n */\nexport const IconButton: React.FC<IconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;AA0CA,IAAae,KAAyC,EAClD,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAGC,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAeP,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgBL,EAAUa,CAAO,GAQ/CC,IAAsB;EACxB,GAPwBP,EAAuB;GAC/C,OAAOQ;GACP,MAAMC;GACN,OAAOC;EACX,CAGO;EACH,cAAcC;EACd,oBAAoB;CACxB;CAEA,OAAOT,EACH,kBAACb,GAAD;EACI,SAASwB;EACT,YAAY,MACRC,EACIlB,GACAN,GACAI,EAAiBe,CAAU,GAC3BN,EAAkBO,CAAW,GAC7B,OAAOK,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;EAEJ,GAAIV;EACJ,GAAIE;EACJ,eAAA;EAEE,WAAA,EACE,cACA,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAMU,IAAY;IACd,GAAGV;IACH,gBAAgBW,KAAa,KAAA;IAC7B,iBAAiBC,KAAc,KAAA;IAC/B,gBAAgBC,KAAa,KAAA;IAC7B,sBAAsBC,KAAkB,KAAA;IACxC,gBAAgBC,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEMC,IAAWtB,EAA0BQ;GAC3C,OACI,kBAAC,QAAD;IACI,WAAWK,EACPnB,GACAE,GACAE,CACJ;IACA,GAAIkB;IANR,UAAA,CAQKO,KAAc,kBAAChC,GAAD,EAAQ,GAAIgC,EAAW,CAAA,GACrCC,IACG,kBAAClC,GAAD,EAAQ,MAAMgC,EAAS,CAAA,IAEvBG,KAAQ,kBAACC,GAAD;KAAY;KAAM,MAAMJ;IAAS,CAAA,CAE3C;;EAEd;CACQ,CAAA,GACZK,CACJ;AACJ"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Button } from 'react-aria-components';
|
|
2
2
|
import { IconButtonBaseProps } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link IconButton} component.
|
|
5
|
+
* Combines React Aria's {@link Button} props (omitting `children`) with {@link IconButtonBaseProps}.
|
|
6
|
+
*/
|
|
3
7
|
export interface IconButtonProps extends Omit<React.ComponentPropsWithRef<typeof Button>, "children">, IconButtonBaseProps {
|
|
4
8
|
}
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
import { LinkButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A link component styled to look and behave like a Material Design 3 button.
|
|
4
|
+
*
|
|
5
|
+
* Used for navigation actions that should visually appear as standard buttons.
|
|
6
|
+
* Renders an accessible anchor element underneath via React Aria's `Link`,
|
|
7
|
+
* supporting native link behaviors (`href`, `target`, `rel`), keyboard activation,
|
|
8
|
+
* ripple splash animations, icons, and tooltips.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <LinkButton href="https://example.com" target="_blank" icon={ExternalLink} iconPlacement="end">
|
|
13
|
+
* Visit Website
|
|
14
|
+
* </LinkButton>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
2
17
|
export declare const LinkButton: React.FC<LinkButtonProps>;
|
|
@@ -6,7 +6,7 @@ import { a, c as o, d as s, f as c, i as l, l as u, n as d, o as f, p, t as m, u
|
|
|
6
6
|
import { clsx as g } from "clsx";
|
|
7
7
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
8
|
import { Link as y } from "react-aria-components";
|
|
9
|
-
|
|
9
|
+
// src/components/Button/LinkButton/LinkButton.tsx
|
|
10
10
|
var b = e(), x = (e) => {
|
|
11
11
|
let x = (0, b.c)(41), S, C, w, T, E, D, O, k, A, j;
|
|
12
12
|
x[0] === e ? (S = x[1], C = x[2], w = x[3], T = x[4], E = x[5], D = x[6], O = x[7], k = x[8], A = x[9], j = x[10]) : ({size: A, shape: k, color: w, tooltip: j, icon: T, children: S, onPress: D, className: C, iconPlacement: E, ...O} = e, x[0] = e, x[1] = S, x[2] = C, x[3] = w, x[4] = T, x[5] = E, x[6] = D, x[7] = O, x[8] = k, x[9] = A, x[10] = j);
|
|
@@ -63,7 +63,6 @@ var b = e(), x = (e) => {
|
|
|
63
63
|
let G;
|
|
64
64
|
return x[38] !== W || x[39] !== j ? (G = m(W, j), x[38] = W, x[39] = j, x[40] = G) : G = x[40], G;
|
|
65
65
|
};
|
|
66
|
-
//#endregion
|
|
67
66
|
export { x as LinkButton };
|
|
68
67
|
|
|
69
68
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["renderProps","icon","iconSize","handlePress"],"sources":["../../../../src/components/Button/LinkButton/LinkButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkButtonProps } from \"./types\";\n\nexport const LinkButton: React.FC<LinkButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n className,\n iconPlacement,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n data-link-button\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = icon && <Icon icon={icon} size={iconSize} />;\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["renderProps","icon","iconSize","handlePress","_c","require_compiler_runtime","Icon","Splash","useSplash","buttonSizeConfig","ButtonCore","ButtonReset","ButtonIconSizeMapping","buttonColorBase","useButtonConfig","ButtonSizeBase","withTooltip","buttonColorConfig","import_compiler_runtime","LinkButton","$","children","className","color","icon","iconPlacement","onPress","props","shape","size","tooltip","t0","t1","isChildFunc","t2","buttonColor","buttonShape","buttonSize","newButtonBaseDataAttrs","baseButtonDataAttrs","t3","clsx","TapTarget","renderProps","t4","buttonIconPlacement","splashInfo","renderProps_0","dataAttrs","isHovered","isDisabled","isFocused","isFocusVisible","isPressed","iconSize","iconComp","ButtonLabelTextMapping","t5","handlePress","Link","t6"],"sources":["../../../../src/components/Button/LinkButton/LinkButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkButtonProps } from \"./types\";\n\n/**\n * A link component styled to look and behave like a Material Design 3 button.\n *\n * Used for navigation actions that should visually appear as standard buttons.\n * Renders an accessible anchor element underneath via React Aria's `Link`,\n * supporting native link behaviors (`href`, `target`, `rel`), keyboard activation,\n * ripple splash animations, icons, and tooltips.\n *\n * @example\n * ```tsx\n * <LinkButton href=\"https://example.com\" target=\"_blank\" icon={ExternalLink} iconPlacement=\"end\">\n * Visit Website\n * </LinkButton>\n * ```\n */\nexport const LinkButton: React.FC<LinkButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n className,\n iconPlacement,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n data-link-button\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = icon && <Icon icon={icon} size={iconSize} />;\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;A,aAoCamB,KAAwC,MAAA;CAAA,IAAAC,KAAA,GAAAhB,EAAAA,EAAAA,CAAA,EAAA,GAAAiB,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;CAAA,AAAAV,EAAA,OAAAW,KAWpD,IAAAX,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,IAAA,IAAAA,EAAA,QAXqD,4GAAA,GAAAO,KAAAI,GAWrD,EAAA,KAAAA,GAAA,EAAA,KAAAV,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,KAAAC,GAAA,EAAA,MAAAC;CAAA,IAAAE;CAAA,AAAAZ,EAAA,QAAAG,KAAAH,EAAA,QAAAK,KAAAL,EAAA,QAAAQ,KAAAR,EAAA,QAAAS,KAEuB,IAAA;EAAA;EAAA;EAAA;EAAA;CAKhB,GAAC,EAAA,MAAAN,GAAA,EAAA,MAAAE,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAG,KAAA,IAAAZ,EAAA;CANL,IAAA,EAAA,gBAAA,gBAAA,eAAA,2BACIN,EAAgBkB,CAKf,GAEL,EAAA,eAAA,mBAAoCxB,EAAUkB,CAAO,GACrDO,IAAoB,OAAOZ,KAAa,YAAWa;CAAA,AAAAd,EAAA,QAAAe,KAAAf,EAAA,QAAAgB,KAAAhB,EAAA,QAAAiB,KAEvB,IAAAC,EAAuB;EAAA,OACxCF;EAAW,MACZC;EAAU,OACTF;CACX,CAAC,GAAC,EAAA,MAAAA,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAC,GAAA,EAAA,MAAAH,KAAA,IAAAd,EAAA;CAJF,IAAAmB,IAA4BL,GAIzBM;CAAA,AAAApB,EAAA,QAAAe,KAAAf,EAAA,QAAAiB,KAAAjB,EAAA,QAAAE,KAKgB,KAAA,MACPmB,EACI9B,GACA+B,GACAjC,EAAiB4B,CAAU,GAC3BpB,EAAkBkB,CAAW,GAC7B,OAAOb,KAAc,aACfA,EAAUqB,CACF,IAFdrB,CAGJ,GAAC,EAAA,MAAAa,GAAA,EAAA,MAAAE,GAAA,EAAA,MAAAf,GAAA,EAAA,MAAAkB,KAAA,IAAApB,EAAA;CAAA,IAAAwB;CAAA,AAAAxB,EAAA,QAAAmB,KAAAnB,EAAA,QAAAyB,KAAAzB,EAAA,QAAAiB,KAAAjB,EAAA,QAAAC,KAAAD,EAAA,QAAAI,KAAAJ,EAAA,QAAAa,KAAAb,EAAA,QAAA0B,KAOJ,KAAA,MAAA;EACG,IAAA,EAAA,eAAA,mBAAA,cAAA,cAAA,iBAMI9C,GAEJgD,IAAkB;GAAA,GACXT;GAAmB,gBACNU,KAAA,KAAA;GAAsB,iBACrBC,KAAA,KAAA;GAAuB,gBACxBC,KAAA,KAAA;GAAsB,sBAChBC,KAAA,KAAA;GAA2B,gBACjCC,KAAA,KAAA;GAAsB,sBAChB;EAC1B,GAEAC,IAAiB1C,EAAsByB,IACvCkB,IAAiB/B,KAAQ,kBAAClB,GAAD;GAAY;GAAYJ,MAAAoD;EAAQ,CAAA;EAAK,OAG1D,kBAAA,QAAA;GACe,WAAAb,EACP/B,GACAG,GACAE,GACAyC,EAAuBnB,EAC3B;GAAC,GACGW;GAPR,UAAA;IASKF,KAAc,kBAACvC,GAAD,EAAO,GAAKuC,EAAU,CAAA;IAEpCD,MAAwB,WAAxBU;IAEAtB,IAAcZ,EAASrB,CAAsB,IAA7CqB;IAEAwB,MAAwB,SAAxBU;GACE;;CAAA,GAEd,EAAA,MAAAhB,GAAA,EAAA,MAAAM,GAAA,EAAA,MAAAR,GAAA,EAAA,MAAAhB,GAAA,EAAA,MAAAG,GAAA,EAAA,MAAAS,GAAA,EAAA,MAAAa,GAAA,EAAA,MAAAF,KAAA,IAAAxB,EAAA;CAAA,IAAAqC;CAAA,AAAArC,EAAA,QAAAmB,KAAAnB,EAAA,QAAAsC,KAAAtC,EAAA,QAAAO,KAAAP,EAAA,QAAAoB,KAAApB,EAAA,QAAAwB,KA3DL,IAAA,kBAACe,GAAD;EACaxD,SAAAuD;EACE,WAAAlB;EASN,GAEDb;EAAK,GACLY;EACJ,eAAA;EACA,oBAAA;EAEC,UAAAK;CAlBA,CAAA,GA4DE,EAAA,MAAAL,GAAA,EAAA,MAAAmB,GAAA,EAAA,MAAA/B,GAAA,EAAA,MAAAa,GAAA,EAAA,MAAAI,GAAA,EAAA,MAAAa,KAAA,IAAArC,EAAA;CAAA,IAAAwC;CAEV,OAFUxC,EAAA,QAAAqC,KAAArC,EAAA,QAAAU,KA7DJ,IAAAd,EACHyC,GA6DA3B,CACJ,GAAC,EAAA,MAAA2B,GAAA,EAAA,MAAA3B,GAAA,EAAA,MAAA8B,KAAA,IAAAxC,EAAA,KA/DMwC;AA+DN"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Link } from 'react-aria-components';
|
|
2
2
|
import { ButtonBaseProps } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link LinkButton} component.
|
|
5
|
+
* Combines React Aria's {@link Link} props with shared {@link ButtonBaseProps}.
|
|
6
|
+
*/
|
|
3
7
|
export interface LinkButtonProps extends React.ComponentPropsWithRef<typeof Link>, ButtonBaseProps {
|
|
4
8
|
}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
1
|
import { LinkIconButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A link component styled as a compact Material Design 3 icon button.
|
|
4
|
+
*
|
|
5
|
+
* Used for icon-only navigation actions (such as external social links, repository links,
|
|
6
|
+
* or compact icon navigation). Built on top of React Aria's `Link`.
|
|
7
|
+
*
|
|
8
|
+
* Always provide an accessible `aria-label` or `aria-labelledby` attribute for screen reader accessibility.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <LinkIconButton
|
|
13
|
+
* href="https://github.com"
|
|
14
|
+
* target="_blank"
|
|
15
|
+
* icon={Github}
|
|
16
|
+
* tooltip="GitHub Profile"
|
|
17
|
+
* aria-label="GitHub Profile"
|
|
18
|
+
* />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
2
21
|
export declare const LinkIconButton: React.FC<LinkIconButtonProps>;
|
|
@@ -5,7 +5,7 @@ import { c as i, d as a, f as o, l as s, n as c, o as l, p as u, s as d, t as f,
|
|
|
5
5
|
import { clsx as m } from "clsx";
|
|
6
6
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
7
|
import { Link as _ } from "react-aria-components";
|
|
8
|
-
|
|
8
|
+
// src/components/Button/LinkIconButton/LinkIconButton.tsx
|
|
9
9
|
var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, icon: C, onPress: w, className: T, ...E }) => {
|
|
10
10
|
let { buttonColor: D, buttonShape: O, buttonSize: k } = c({
|
|
11
11
|
size: v,
|
|
@@ -48,7 +48,6 @@ var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, icon:
|
|
|
48
48
|
}
|
|
49
49
|
}), S);
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { v as LinkIconButton };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/LinkIconButton/LinkIconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkIconButtonProps } from \"./types\";\n\nexport const LinkIconButton: React.FC<LinkIconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n data-link-button\n >\n {({\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {icon && <Icon icon={icon} size={iconSize} />}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["TapTarget","useSplash","buttonSizeConfig","ButtonCore","ButtonReset","buttonColorBase","useButtonConfig","ButtonSizeBase","newButtonBaseDataAttrs","IconButtonIconSizeMapping","withTooltip","buttonColorConfig","LinkIconButton","props","onPress","iconButtonDataAttrs","buttonShape","buttonSize","buttonColor","width","Link","handlePress","clsx","className","renderProps","dataAttrs","isHovered","isDisabled","isFocused","isFocusVisible","isPressed","iconSize","splashInfo","Splash","icon","Icon","tooltip"],"sources":["../../../../src/components/Button/LinkIconButton/LinkIconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkIconButtonProps } from \"./types\";\n\n/**\n * A link component styled as a compact Material Design 3 icon button.\n *\n * Used for icon-only navigation actions (such as external social links, repository links,\n * or compact icon navigation). Built on top of React Aria's `Link`.\n *\n * Always provide an accessible `aria-label` or `aria-labelledby` attribute for screen reader accessibility.\n *\n * @example\n * ```tsx\n * <LinkIconButton\n * href=\"https://github.com\"\n * target=\"_blank\"\n * icon={Github}\n * tooltip=\"GitHub Profile\"\n * aria-label=\"GitHub Profile\"\n * />\n * ```\n */\nexport const LinkIconButton: React.FC<LinkIconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n data-link-button\n >\n {({\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {icon && <Icon icon={icon} size={iconSize} />}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;AAuCA,IAAaY,KAAiD,EAC1D,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAGC,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAeP,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgBL,EAAUa,CAAO,GAQ/CC,IAAsB;EACxB,GAPwBP,EAAuB;GAC/C,OAAOQ;GACP,MAAMC;GACN,OAAOC;EACX,CAGO;EACH,cAAcC;EACd,oBAAoB;CACxB;CAEA,OAAOT,EACH,kBAACU,GAAD;EACI,SAASC;EACT,YAAY,MACRC,EACIlB,GACAJ,GACAE,EAAiBe,CAAU,GAC3BN,EAAkBO,CAAW,GAC7B,OAAOK,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;EAEJ,GAAIV;EACJ,GAAIE;EACJ,eAAA;EACA,oBAAA;EAEE,WAAA,EACE,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAMU,IAAY;IACd,GAAGV;IACH,gBAAgBW,KAAa,KAAA;IAC7B,iBAAiBC,KAAc,KAAA;IAC/B,gBAAgBC,KAAa,KAAA;IAC7B,sBAAsBC,KAAkB,KAAA;IACxC,gBAAgBC,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEMC,IAAWtB,EAA0BQ;GAC3C,OACI,kBAAC,QAAD;IACI,WAAWK,EACPnB,GACAE,GACAE,CACJ;IACA,GAAIkB;IANR,UAAA,CAQKO,KAAc,kBAACC,GAAD,EAAQ,GAAID,EAAW,CAAA,GACrCE,KAAQ,kBAACC,GAAD;KAAY;KAAM,MAAMJ;IAAS,CAAA,CACxC;;EAEd;CACE,CAAA,GACNK,CACJ;AACJ"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Link } from 'react-aria-components';
|
|
2
2
|
import { IconButtonBaseProps } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link LinkIconButton} component.
|
|
5
|
+
* Combines React Aria's {@link Link} props (omitting `children`) with {@link IconButtonBaseProps}.
|
|
6
|
+
*/
|
|
3
7
|
export interface LinkIconButtonProps extends Omit<React.ComponentPropsWithRef<typeof Link>, "children">, IconButtonBaseProps {
|
|
4
8
|
}
|
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
import { SplitButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A composite button container implementing Material Design 3 Split Buttons.
|
|
4
|
+
*
|
|
5
|
+
* Couples a primary action button ({@link SplitButtonPrimary}) with an adjacent dropdown menu trigger
|
|
6
|
+
* ({@link SplitButtonTrigger}) inside an accessible React Aria `Toolbar`.
|
|
7
|
+
* Synchronizes size, color variant, disabled, and pending states across both button parts via context.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <SplitButton color="tonal">
|
|
12
|
+
* <SplitButtonPrimary icon={Save} onPress={handleSave}>
|
|
13
|
+
* Save
|
|
14
|
+
* </SplitButtonPrimary>
|
|
15
|
+
* <MenuTrigger>
|
|
16
|
+
* <SplitButtonTrigger aria-label="More save options" />
|
|
17
|
+
* <MenuPopover>
|
|
18
|
+
* <Menu>
|
|
19
|
+
* <MenuItem label="Save as draft" />
|
|
20
|
+
* </Menu>
|
|
21
|
+
* </MenuPopover>
|
|
22
|
+
* </MenuTrigger>
|
|
23
|
+
* </SplitButton>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
2
26
|
export declare const SplitButton: React.FC<SplitButtonProps>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as SplitButton };
|
|
1
|
+
export { t as SplitButton } from "../../../../chunks/SplitButton";
|
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { Toolbar } from 'react-aria-components';
|
|
3
3
|
import { ButtonSize, SplitButtonColor } from '../../core';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the {@link SplitButton} container component.
|
|
6
|
+
* Extends React Aria's {@link Toolbar} props with split button styling and shared state.
|
|
7
|
+
*/
|
|
4
8
|
export interface SplitButtonProps extends Omit<React.ComponentPropsWithRef<typeof Toolbar>, "orientation" | "children" | "className" | "style"> {
|
|
9
|
+
/**
|
|
10
|
+
* Visual color style variant applied to both primary and trigger buttons.
|
|
11
|
+
*
|
|
12
|
+
* @default "filled"
|
|
13
|
+
*/
|
|
5
14
|
color?: SplitButtonColor;
|
|
15
|
+
/**
|
|
16
|
+
* Size preset applied to both primary and trigger buttons.
|
|
17
|
+
*
|
|
18
|
+
* @default "small"
|
|
19
|
+
*/
|
|
6
20
|
size?: ButtonSize;
|
|
21
|
+
/**
|
|
22
|
+
* Global loading state applied to both primary and trigger buttons.
|
|
23
|
+
*/
|
|
7
24
|
isPending?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Global disabled state applied to both primary and trigger buttons.
|
|
27
|
+
*/
|
|
8
28
|
isDisabled?: boolean;
|
|
29
|
+
/** Primary button and menu trigger components. */
|
|
9
30
|
children?: ReactNode;
|
|
31
|
+
/** Optional CSS class name for the container element. */
|
|
10
32
|
className?: string;
|
|
33
|
+
/** Optional inline styles for the container element. */
|
|
11
34
|
style?: CSSProperties;
|
|
12
35
|
}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { ButtonSize, SplitButtonColor } from '../../core';
|
|
2
|
+
/**
|
|
3
|
+
* Context state shared across all components of a {@link SplitButton}.
|
|
4
|
+
*/
|
|
2
5
|
export type SplitButtonState = {
|
|
6
|
+
/** Whether both primary action and trigger buttons are currently in a pending state. */
|
|
3
7
|
isPending?: boolean;
|
|
8
|
+
/** Whether both primary action and trigger buttons are currently disabled. */
|
|
4
9
|
isDisabled?: boolean;
|
|
10
|
+
/** Uniform size preset for the split button pair. */
|
|
5
11
|
size: ButtonSize;
|
|
12
|
+
/** Visual color style variant applied to both split button parts. */
|
|
6
13
|
color: SplitButtonColor;
|
|
7
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* React Context providing size, color, pending, and disabled state from
|
|
17
|
+
* a parent `SplitButton` container to `SplitButtonPrimary` and `SplitButtonTrigger`.
|
|
18
|
+
*/
|
|
8
19
|
export declare const SplitButtonContext: import('react').Context<SplitButtonState>;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { createContext as e, useContext as t } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/Button/SplitButton/SplitButtonContext/context.ts
|
|
3
3
|
var n = e({
|
|
4
4
|
size: "small",
|
|
5
5
|
color: "filled"
|
|
6
6
|
});
|
|
7
|
-
|
|
8
|
-
//#region src/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.ts
|
|
7
|
+
// src/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.ts
|
|
9
8
|
function r() {
|
|
10
9
|
return t(n);
|
|
11
10
|
}
|
|
12
|
-
//#endregion
|
|
13
11
|
export { n as SplitButtonContext, r as useSplitButtonContext };
|
|
14
12
|
|
|
15
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonContext/context.ts","../../../../../src/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { ButtonSize, SplitButtonColor } from \"../../core\";\n\nexport type SplitButtonState = {\n isPending?: boolean;\n isDisabled?: boolean;\n\n size: ButtonSize;\n color: SplitButtonColor;\n};\n\nexport const SplitButtonContext = createContext<SplitButtonState>({\n size: \"small\",\n color: \"filled\",\n});\n","import { useContext } from \"react\";\nimport { SplitButtonContext } from \"./context\";\n\nexport function useSplitButtonContext() {\n return useContext(SplitButtonContext);\n}\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","names":["SplitButtonContext","createContext","useSplitButtonContext","useContext"],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonContext/context.ts","../../../../../src/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { ButtonSize, SplitButtonColor } from \"../../core\";\n\n/**\n * Context state shared across all components of a {@link SplitButton}.\n */\nexport type SplitButtonState = {\n /** Whether both primary action and trigger buttons are currently in a pending state. */\n isPending?: boolean;\n /** Whether both primary action and trigger buttons are currently disabled. */\n isDisabled?: boolean;\n\n /** Uniform size preset for the split button pair. */\n size: ButtonSize;\n /** Visual color style variant applied to both split button parts. */\n color: SplitButtonColor;\n};\n\n/**\n * React Context providing size, color, pending, and disabled state from\n * a parent `SplitButton` container to `SplitButtonPrimary` and `SplitButtonTrigger`.\n */\nexport const SplitButtonContext = createContext<SplitButtonState>({\n size: \"small\",\n color: \"filled\",\n});\n","import { useContext } from \"react\";\nimport { SplitButtonContext } from \"./context\";\n\n/**\n * Accesses the enclosing {@link SplitButtonContext} state.\n *\n * @returns The configuration and state provided by the nearest parent `SplitButton`. Defaults to small/filled if unnested.\n */\nexport function useSplitButtonContext() {\n return useContext(SplitButtonContext);\n}\n"],"mappings":";;AAsBA,IAAaA,IAAqBC,EAAgC;CAC9D,MAAM;CACN,OAAO;AACX,CAAC;;ACjBD,SAAOC,IAAA;CAAA,OACIC,EAAWH,CAAkB;AAAC"}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accesses the enclosing {@link SplitButtonContext} state.
|
|
3
|
+
*
|
|
4
|
+
* @returns The configuration and state provided by the nearest parent `SplitButton`. Defaults to small/filled if unnested.
|
|
5
|
+
*/
|
|
1
6
|
export declare function useSplitButtonContext(): import('./context').SplitButtonState;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
import { SplitButtonPrimaryProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The primary action button within a {@link SplitButton}.
|
|
4
|
+
*
|
|
5
|
+
* Inherits visual styling (size and color) and states (disabled, pending)
|
|
6
|
+
* from the parent `SplitButtonContext`.
|
|
7
|
+
* Extends React Aria's `Button` and supports ripple splash animations, icons,
|
|
8
|
+
* loading spinner substitution when pending, and tooltips.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <SplitButtonPrimary icon={Save} onPress={() => handleSave()}>
|
|
13
|
+
* Save
|
|
14
|
+
* </SplitButtonPrimary>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
2
17
|
export declare const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps>;
|
|
@@ -8,12 +8,12 @@ import { useSplitButtonContext as m } from "../SplitButtonContext/index.js";
|
|
|
8
8
|
import { clsx as h } from "clsx";
|
|
9
9
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
10
10
|
import { Button as v } from "react-aria-components";
|
|
11
|
-
|
|
11
|
+
// src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx
|
|
12
12
|
var y = ({ tooltip: y, icon: b, children: x, onPress: S, isDisabled: C, isPending: w, className: T, iconPlacement: E = "start", ...D }) => {
|
|
13
|
-
let O = m(), { splashInfo: k, handlePress: A } = i(S), j = typeof x == "function", M = w || O.isPending;
|
|
13
|
+
let O = m(), { splashInfo: k, handlePress: A } = i(S), j = typeof x == "function", M = w || O.isPending, N = C || O.isDisabled;
|
|
14
14
|
return u(/* @__PURE__ */ g(v, {
|
|
15
15
|
onPress: A,
|
|
16
|
-
isDisabled:
|
|
16
|
+
isDisabled: N,
|
|
17
17
|
isPending: M,
|
|
18
18
|
...D,
|
|
19
19
|
className: (t) => h(s, e, p, d(O.color), typeof T == "function" ? T(t) : T),
|
|
@@ -44,7 +44,6 @@ var y = ({ tooltip: y, icon: b, children: x, onPress: S, isDisabled: C, isPendin
|
|
|
44
44
|
}
|
|
45
45
|
}), y);
|
|
46
46
|
};
|
|
47
|
-
//#endregion
|
|
48
47
|
export { y as SplitButtonPrimary };
|
|
49
48
|
|
|
50
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["renderProps","isDisabled"],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n buttonColorConfig,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n SplitButtonPrimaryBase,\n buttonColorConfig(splitButtonState.color),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n SplitButtonVariantBase,\n ButtonLabelTextMapping[splitButtonState.size]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {iconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["renderProps","isDisabled","AriaButton","TapTarget","Loader","Splash","useSplash","ButtonCore","ButtonReset","ButtonIconSizeMapping","withTooltip","buttonColorConfig","SplitButtonVariantBase","SplitButtonPrimaryBase","SplitButtonPrimary","props","splitButtonState","useSplitButtonContext","onPress","isChildFunc","children","pending","isPending","disabled","isDisabled","Button","handlePress","clsx","className","renderProps","isDisabled_0","renderProps_0","dataAttrs","isHovered","isFocused","isFocusVisible","isPressed","iconSize","iconComp","icon","Icon","buttonColorBase","ButtonLabelTextMapping","splashInfo","iconPlacement","tooltip"],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n buttonColorConfig,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\n/**\n * The primary action button within a {@link SplitButton}.\n *\n * Inherits visual styling (size and color) and states (disabled, pending)\n * from the parent `SplitButtonContext`.\n * Extends React Aria's `Button` and supports ripple splash animations, icons,\n * loading spinner substitution when pending, and tooltips.\n *\n * @example\n * ```tsx\n * <SplitButtonPrimary icon={Save} onPress={() => handleSave()}>\n * Save\n * </SplitButtonPrimary>\n * ```\n */\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n SplitButtonPrimaryBase,\n buttonColorConfig(splitButtonState.color),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n SplitButtonVariantBase,\n ButtonLabelTextMapping[splitButtonState.size]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {iconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;;AAmCA,IAAac,KAAyD,EAClE,YACA,SACA,aACA,YACA,eACA,cACA,cACA,mBAAgB,SAChB,GAAGC,QACD;CACF,IAAMC,IAAmBC,EAAsB,GAEzC,EAAE,eAAY,mBAAgBX,EAAUY,CAAO,GAC/CC,IAAc,OAAOC,KAAa,YAElCC,IAAUC,KAAaN,EAAiB,WACxCO,IAAWC,KAAcR,EAAiB;CAEhD,OAAON,EACH,kBAACR,GAAD;EACI,SAASwB;EACT,YAAYH;EACZ,WAAWF;EACX,GAAIN;EACJ,YAAY,MACRY,EACInB,GACAL,GACAU,GACAF,EAAkBK,EAAiB,KAAK,GACxC,OAAOY,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;EAEJ,eAAA;EACA,6BAAA;EAEE5B,WAAAA,MAAgB;GACd,IAAM,EACF,YAAAC,GACA,mBACA,cACA,cACA,iBACAD,GAEEgC,IAAY;IACd,gBAAgBC,KAAa,KAAA;IAC7B,iBAAiBhC,KAAc,KAAA;IAC/B,gBAAgBiC,KAAa,KAAA;IAC7B,sBAAsBC,KAAkB,KAAA;IACxC,gBAAgBC,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEMC,IAAW5B,EAAsBO,EAAiB,OAClDsB,IAAWtC,EAAY,YACzB,kBAACI,GAAD,EAAQ,MAAMiC,EAAS,CAAA,IAEvBE,KAAQ,kBAACC,GAAD;IAAY;IAAM,MAAMH;GAAS,CAAA;GAG7C,OACI,kBAAC,QAAD;IACI,WAAWV,EACPpB,GACAkC,GACA7B,GACA8B,EAAuB1B,EAAiB,KAC5C;IACA,GAAIgB;IAPR,UAAA;KASKW,KAAc,kBAACtC,GAAD,EAAQ,GAAIsC,EAAW,CAAA;KAErCC,MAAkB,WAAWN;KAE7BnB,IAAcC,EAASpB,CAAW,IAAIoB;KAEtCwB,MAAkB,SAASN;IAC1B;;EAEd;CACQ,CAAA,GACZO,CACJ;AACJ"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
2
|
import { Button } from 'react-aria-components';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link SplitButtonPrimary} component.
|
|
5
|
+
* Extends React Aria's {@link Button} props with tooltip, icon, and icon placement.
|
|
6
|
+
*/
|
|
3
7
|
export interface SplitButtonPrimaryProps extends React.ComponentPropsWithRef<typeof Button> {
|
|
8
|
+
/** Optional tooltip text displayed on hover. */
|
|
4
9
|
tooltip?: string;
|
|
10
|
+
/** An optional icon to display within the button. */
|
|
5
11
|
icon?: LucideIcon;
|
|
12
|
+
/**
|
|
13
|
+
* The position of the icon relative to the text.
|
|
14
|
+
*
|
|
15
|
+
* @default "start"
|
|
16
|
+
*/
|
|
6
17
|
iconPlacement?: "start" | "end";
|
|
7
18
|
}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
1
|
import { SplitButtonTriggerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The dropdown menu trigger button within a {@link SplitButton}.
|
|
4
|
+
*
|
|
5
|
+
* Renders a chevron icon indicating that more actions are available in an adjacent menu.
|
|
6
|
+
* Inherits visual styling (size and color) and states (disabled, pending) from the parent `SplitButtonContext`.
|
|
7
|
+
* Typically wrapped inside a `MenuTrigger` component alongside a `MenuPopover`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <MenuTrigger>
|
|
12
|
+
* <SplitButtonTrigger aria-label="More options" />
|
|
13
|
+
* <MenuPopover>
|
|
14
|
+
* <Menu>
|
|
15
|
+
* <MenuItem label="Export" />
|
|
16
|
+
* </Menu>
|
|
17
|
+
* </MenuPopover>
|
|
18
|
+
* </MenuTrigger>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
2
21
|
export declare const SplitButtonTrigger: React.FC<SplitButtonTriggerProps>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as SplitButtonTrigger };
|
|
1
|
+
export { t as SplitButtonTrigger } from "../../../../chunks/SplitButtonTrigger";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Button } from 'react-aria-components';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the {@link SplitButtonTrigger} component.
|
|
4
|
+
* Extends React Aria's {@link Button} props (omitting `children`) with tooltip support.
|
|
5
|
+
*/
|
|
2
6
|
export interface SplitButtonTriggerProps extends Omit<React.ComponentPropsWithRef<typeof Button>, "children"> {
|
|
7
|
+
/** Optional tooltip text displayed on hover. */
|
|
3
8
|
tooltip?: string;
|
|
4
9
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { i as SplitButtonPrimaryBase, n as SplitButtonTriggerBase, r as SplitButtonTriggerIconSize, t as SplitButtonVariantBase, e as splitButtonSizeConfig };
|
|
1
|
+
export { t as SplitButtonPrimaryBase, n as SplitButtonTriggerBase, r as SplitButtonTriggerIconSize, i as SplitButtonVariantBase, a as splitButtonSizeConfig } from "../../../../chunks/core2";
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { ButtonSize } from '../../core';
|
|
2
|
+
/**
|
|
3
|
+
* Maps each {@link ButtonSize} preset to its corresponding chevron icon size in pixels
|
|
4
|
+
* for {@link SplitButtonTrigger}.
|
|
5
|
+
*/
|
|
2
6
|
export declare const SplitButtonTriggerIconSize: Record<ButtonSize, number>;
|
|
7
|
+
/**
|
|
8
|
+
* Resolves the CSS module class name for a given split button size preset.
|
|
9
|
+
*
|
|
10
|
+
* @param size - The button size preset.
|
|
11
|
+
* @returns The CSS module class name for the split button container size.
|
|
12
|
+
*/
|
|
3
13
|
export declare const splitButtonSizeConfig: (size: ButtonSize) => string;
|
|
14
|
+
/** Base CSS module class name for split button container sizing. */
|
|
4
15
|
export declare const SplitButtonVariantBase: string;
|
|
16
|
+
/** Base CSS module class name for the primary action button part of a split button. */
|
|
5
17
|
export declare const SplitButtonPrimaryBase: string;
|
|
18
|
+
/** Base CSS module class name for the menu trigger button part of a split button. */
|
|
6
19
|
export declare const SplitButtonTriggerBase: string;
|
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
import { ToggleButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A two-state toggle button implementing Material Design 3 Toggle Button guidelines.
|
|
4
|
+
*
|
|
5
|
+
* Allows users to toggle between active/selected and inactive/unselected states.
|
|
6
|
+
* Supports swapping between `icon` and `selectedIcon` based on current selection state,
|
|
7
|
+
* flexible sizing, shapes, and Material 3 toggle button color variants.
|
|
8
|
+
*
|
|
9
|
+
* Built on top of React Aria's `ToggleButton`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <ToggleButton
|
|
14
|
+
* icon={Bookmark}
|
|
15
|
+
* selectedIcon={BookmarkCheck}
|
|
16
|
+
* isSelected={isBookmarked}
|
|
17
|
+
* onChange={setIsBookmarked}
|
|
18
|
+
* >
|
|
19
|
+
* Bookmark
|
|
20
|
+
* </ToggleButton>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
2
23
|
export declare const ToggleButton: React.FC<ToggleButtonProps>;
|