@lumx/core 4.17.1-alpha.2 → 4.17.1-alpha.3
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 +19 -0
- package/_internal/_virtual/_rolldown/runtime.js +13 -0
- package/{js → _internal/js}/constants/browser/index.d.ts +6 -3
- package/_internal/js/constants/browser/index.js +15 -0
- package/_internal/js/constants/className/index.d.ts +7 -0
- package/_internal/js/constants/className/index.js +7 -0
- package/{js/constants/components/index.js → _internal/js/constants/components/index.d.ts} +13 -12
- package/_internal/js/constants/components/index.js +27 -0
- package/_internal/js/constants/enums/index.d.ts +207 -0
- package/_internal/js/constants/enums/index.js +165 -0
- package/{js/constants/keycodes/index.js → _internal/js/constants/keycodes/index.d.ts} +12 -11
- package/_internal/js/constants/keycodes/index.js +39 -0
- package/_internal/js/types/AriaAttributes.d.ts +32 -0
- package/_internal/js/types/Booleanish.d.ts +4 -0
- package/_internal/js/types/Callback.d.ts +7 -0
- package/_internal/js/types/CommonRef.d.ts +4 -0
- package/_internal/js/types/Direction.d.ts +4 -0
- package/_internal/js/types/Falsy.d.ts +8 -0
- package/_internal/js/types/GenericProps.d.ts +14 -0
- package/_internal/js/types/HasAriaDisabled.d.ts +9 -0
- package/_internal/js/types/HasAriaLabelOrLabelledBy.d.ts +19 -0
- package/_internal/js/types/HasChecked.d.ts +9 -0
- package/_internal/js/types/HasClassName.d.ts +9 -0
- package/_internal/js/types/HasCloseMode.d.ts +10 -0
- package/_internal/js/types/HasDisabled.d.ts +9 -0
- package/_internal/js/types/HasPolymorphicAs.d.ts +12 -0
- package/_internal/js/types/HasRequiredLinkHref.d.ts +6 -0
- package/_internal/js/types/HasTheme.d.ts +11 -0
- package/_internal/js/types/HeadingElement.d.ts +5 -0
- package/_internal/js/types/JSXElement.d.ts +13 -0
- package/_internal/js/types/KebabCase.d.ts +5 -0
- package/_internal/js/types/LumxClassName.d.ts +7 -0
- package/{js → _internal/js}/types/NamedProps.d.ts +4 -3
- package/{js → _internal/js}/types/NestedComponents.d.ts +5 -2
- package/_internal/js/types/ObjectValues.d.ts +8 -0
- package/{js → _internal/js}/types/PartialBy.d.ts +5 -2
- package/_internal/js/types/Point.d.ts +10 -0
- package/_internal/js/types/Predicate.d.ts +5 -0
- package/_internal/js/types/RectSize.d.ts +10 -0
- package/_internal/js/types/Selector.d.ts +11 -0
- package/_internal/js/types/Spacing.d.ts +4 -0
- package/_internal/js/types/TextElement.d.ts +7 -0
- package/_internal/js/types/ValueOf.d.ts +5 -0
- package/_internal/js/types/jsx/PropsToOverride.d.ts +5 -0
- package/_internal/js/utils/_internal/color/resolveColorWithVariants.js +9 -0
- package/{js → _internal/js}/utils/classNames/action-area/index.d.ts +5 -4
- package/_internal/js/utils/classNames/action-area/index.js +22 -0
- package/_internal/js/utils/classNames/bem/block.d.ts +1 -0
- package/_internal/js/utils/classNames/bem/block.js +16 -0
- package/_internal/js/utils/classNames/bem/element.d.ts +1 -0
- package/_internal/js/utils/classNames/bem/element.js +7 -0
- package/_internal/js/utils/classNames/bem/index.d.ts +18 -0
- package/_internal/js/utils/classNames/bem/index.js +22 -0
- package/_internal/js/utils/classNames/bem/modifier.js +19 -0
- package/_internal/js/utils/classNames/bem/types.d.ts +15 -0
- package/{js → _internal/js}/utils/classNames/color/index.d.ts +8 -4
- package/_internal/js/utils/classNames/color/index.js +50 -0
- package/{js → _internal/js}/utils/classNames/spacing/index.d.ts +23 -18
- package/_internal/js/utils/classNames/spacing/index.js +75 -0
- package/_internal/js/utils/classNames/typography/index.d.ts +10 -0
- package/_internal/js/utils/classNames/typography/index.js +10 -0
- package/_internal/js/utils/classNames/visually-hidden/index.d.ts +8 -0
- package/_internal/js/utils/classNames/visually-hidden/index.js +9 -0
- package/{js → _internal/js}/utils/events/keyboard.d.ts +7 -5
- package/_internal/js/utils/events/keyboard.js +39 -0
- package/{js → _internal/js}/utils/events/swipe.d.ts +4 -1
- package/_internal/js/utils/events/swipe.js +58 -0
- package/_internal/js/utils/selectors/getWithSelector.d.ts +7 -0
- package/_internal/js/utils/selectors/getWithSelector.js +9 -0
- package/_internal/js/utils/selectors/groupBySelector.d.ts +10 -0
- package/_internal/js/utils/selectors/groupBySelector.js +21 -0
- package/js/constants/index.d.ts +6 -5
- package/js/constants/index.js +6 -5
- package/js/types/index.d.ts +31 -30
- package/js/types/index.js +0 -1
- package/js/utils/classNames/index.d.ts +14 -7
- package/js/utils/classNames/index.js +27 -7
- package/js/utils/disabledState/index.d.ts +17 -14
- package/js/utils/disabledState/index.js +9 -8
- package/js/utils/index.d.ts +6 -3
- package/js/utils/index.js +6 -6
- package/js/utils/selectors/index.d.ts +3 -2
- package/js/utils/selectors/index.js +3 -2
- package/package.json +6 -12
- package/_internal/DPnPEC08.js +0 -9
- package/js/components/AlertDialog/Stories.d.ts +0 -115
- package/js/components/AlertDialog/Tests.d.ts +0 -11
- package/js/components/AlertDialog/index.d.ts +0 -91
- package/js/components/Avatar/Stories.d.ts +0 -52
- package/js/components/Avatar/Tests.d.ts +0 -11
- package/js/components/Avatar/index.d.ts +0 -50
- package/js/components/Badge/BadgeWrapper.d.ts +0 -13
- package/js/components/Badge/BadgeWrapperStories.d.ts +0 -29
- package/js/components/Badge/BadgeWrapperTests.d.ts +0 -9
- package/js/components/Badge/Stories.d.ts +0 -46
- package/js/components/Badge/Tests.d.ts +0 -12
- package/js/components/Badge/index.d.ts +0 -37
- package/js/components/Button/Button.d.ts +0 -48
- package/js/components/Button/ButtonGroup.d.ts +0 -36
- package/js/components/Button/ButtonGroupStories.d.ts +0 -33
- package/js/components/Button/ButtonRoot.d.ts +0 -55
- package/js/components/Button/ButtonRootTests.d.ts +0 -12
- package/js/components/Button/IconButton.d.ts +0 -45
- package/js/components/Button/IconButtonStories.d.ts +0 -210
- package/js/components/Button/IconButtonTests.d.ts +0 -15
- package/js/components/Button/Stories.d.ts +0 -302
- package/js/components/Button/Tests.d.ts +0 -15
- package/js/components/Checkbox/Stories.d.ts +0 -89
- package/js/components/Checkbox/Tests.d.ts +0 -15
- package/js/components/Checkbox/index.d.ts +0 -49
- package/js/components/Chip/ChipGroup.d.ts +0 -35
- package/js/components/Chip/ChipGroupStories.d.ts +0 -17
- package/js/components/Chip/ChipGroupTests.d.ts +0 -11
- package/js/components/Chip/SelectionChipGroup.d.ts +0 -56
- package/js/components/Chip/SelectionChipGroupStories.d.ts +0 -54
- package/js/components/Chip/SelectionChipGroupTests.d.ts +0 -23
- package/js/components/Chip/Stories.d.ts +0 -127
- package/js/components/Chip/Tests.d.ts +0 -11
- package/js/components/Chip/index.d.ts +0 -81
- package/js/components/Chip/setupSelectionChipGroupEvents.d.ts +0 -28
- package/js/components/Combobox/ComboboxButton.d.ts +0 -57
- package/js/components/Combobox/ComboboxInput.d.ts +0 -57
- package/js/components/Combobox/ComboboxList.d.ts +0 -47
- package/js/components/Combobox/ComboboxOption.d.ts +0 -74
- package/js/components/Combobox/ComboboxOptionAction.d.ts +0 -35
- package/js/components/Combobox/ComboboxOptionMoreInfo.d.ts +0 -54
- package/js/components/Combobox/ComboboxOptionSkeleton.d.ts +0 -47
- package/js/components/Combobox/ComboboxOptionTests.d.ts +0 -24
- package/js/components/Combobox/ComboboxPopover.d.ts +0 -41
- package/js/components/Combobox/ComboboxSection.d.ts +0 -58
- package/js/components/Combobox/ComboboxState.d.ts +0 -99
- package/js/components/Combobox/Stories.d.ts +0 -167
- package/js/components/Combobox/TestStories.d.ts +0 -189
- package/js/components/Combobox/Tests.d.ts +0 -170
- package/js/components/Combobox/constants.d.ts +0 -2
- package/js/components/Combobox/index.d.ts +0 -25
- package/js/components/Combobox/setupCombobox.d.ts +0 -24
- package/js/components/Combobox/setupComboboxButton.d.ts +0 -16
- package/js/components/Combobox/setupComboboxInput.d.ts +0 -24
- package/js/components/Combobox/setupListbox.d.ts +0 -23
- package/js/components/Combobox/subscribeComboboxState.d.ts +0 -23
- package/js/components/Combobox/types.d.ts +0 -175
- package/js/components/Combobox/utils.d.ts +0 -30
- package/js/components/Dialog/Stories.d.ts +0 -97
- package/js/components/Dialog/Tests.d.ts +0 -12
- package/js/components/Dialog/index.d.ts +0 -99
- package/js/components/Divider/Stories.d.ts +0 -21
- package/js/components/Divider/Tests.d.ts +0 -12
- package/js/components/Divider/index.d.ts +0 -27
- package/js/components/DragHandle/Stories.d.ts +0 -18
- package/js/components/DragHandle/Tests.d.ts +0 -12
- package/js/components/DragHandle/index.d.ts +0 -27
- package/js/components/ExpansionPanel/Stories.d.ts +0 -67
- package/js/components/ExpansionPanel/Tests.d.ts +0 -12
- package/js/components/ExpansionPanel/index.d.ts +0 -70
- package/js/components/Flag/Stories.d.ts +0 -120
- package/js/components/Flag/Tests.d.ts +0 -14
- package/js/components/Flag/index.d.ts +0 -34
- package/js/components/FlexBox/Stories.d.ts +0 -116
- package/js/components/FlexBox/Tests.d.ts +0 -13
- package/js/components/FlexBox/constants.d.ts +0 -4
- package/js/components/FlexBox/index.d.ts +0 -54
- package/js/components/FlexBox/types.d.ts +0 -7
- package/js/components/GenericBlock/Stories.d.ts +0 -74
- package/js/components/GenericBlock/Tests.d.ts +0 -13
- package/js/components/GenericBlock/constants.d.ts +0 -19
- package/js/components/GenericBlock/index.d.ts +0 -85
- package/js/components/GridColumn/GridColumn.d.ts +0 -48
- package/js/components/GridColumn/GridColumnStories.d.ts +0 -45
- package/js/components/GridColumn/GridColumnTests.d.ts +0 -12
- package/js/components/GridColumn/index.d.ts +0 -2
- package/js/components/Heading/Stories.d.ts +0 -90
- package/js/components/Heading/Tests.d.ts +0 -11
- package/js/components/Heading/constants.d.ts +0 -21
- package/js/components/Heading/index.d.ts +0 -44
- package/js/components/Heading/utils.d.ts +0 -8
- package/js/components/Icon/Stories.d.ts +0 -156
- package/js/components/Icon/Tests.d.ts +0 -14
- package/js/components/Icon/constants.d.ts +0 -1
- package/js/components/Icon/index.d.ts +0 -41
- package/js/components/ImageBlock/ImageCaption.d.ts +0 -36
- package/js/components/ImageBlock/Stories.d.ts +0 -187
- package/js/components/ImageBlock/Tests.d.ts +0 -11
- package/js/components/ImageBlock/index.d.ts +0 -63
- package/js/components/InlineList/Stories.d.ts +0 -64
- package/js/components/InlineList/Tests.d.ts +0 -12
- package/js/components/InlineList/index.d.ts +0 -53
- package/js/components/InputHelper/Stories.d.ts +0 -35
- package/js/components/InputHelper/Tests.d.ts +0 -12
- package/js/components/InputHelper/constants.d.ts +0 -3
- package/js/components/InputHelper/index.d.ts +0 -26
- package/js/components/InputLabel/Stories.d.ts +0 -40
- package/js/components/InputLabel/Tests.d.ts +0 -12
- package/js/components/InputLabel/index.d.ts +0 -29
- package/js/components/Lightbox/Stories.d.ts +0 -40
- package/js/components/Lightbox/Tests.d.ts +0 -11
- package/js/components/Lightbox/index.d.ts +0 -68
- package/js/components/Link/Stories.d.ts +0 -282
- package/js/components/Link/Tests.d.ts +0 -8
- package/js/components/Link/index.d.ts +0 -47
- package/js/components/LinkPreview/Stories.d.ts +0 -61
- package/js/components/LinkPreview/Tests.d.ts +0 -15
- package/js/components/LinkPreview/index.d.ts +0 -53
- package/js/components/List/ListDivider.d.ts +0 -33
- package/js/components/List/ListDividerStories.d.ts +0 -17
- package/js/components/List/ListDividerTests.d.ts +0 -11
- package/js/components/List/ListItem.d.ts +0 -58
- package/js/components/List/ListItemAction.d.ts +0 -24
- package/js/components/List/ListItemActionTests.d.ts +0 -11
- package/js/components/List/ListItemStories.d.ts +0 -53
- package/js/components/List/ListItemTests.d.ts +0 -12
- package/js/components/List/ListSection.d.ts +0 -45
- package/js/components/List/ListSectionStories.d.ts +0 -125
- package/js/components/List/ListSectionTests.d.ts +0 -13
- package/js/components/List/ListStories.d.ts +0 -34
- package/js/components/List/ListTests.d.ts +0 -11
- package/js/components/List/index.d.ts +0 -39
- package/js/components/Menu/MenuButton.d.ts +0 -41
- package/js/components/Menu/MenuButtonStories.d.ts +0 -50
- package/js/components/Menu/MenuButtonTestStories.d.ts +0 -31
- package/js/components/Menu/MenuButtonTests.d.ts +0 -34
- package/js/components/Menu/MenuItem.d.ts +0 -26
- package/js/components/Menu/MenuItemTests.d.ts +0 -11
- package/js/components/Menu/MenuList.d.ts +0 -16
- package/js/components/Menu/MenuPopover.d.ts +0 -18
- package/js/components/Menu/MenuTrigger.d.ts +0 -23
- package/js/components/Menu/setupMenu.d.ts +0 -18
- package/js/components/Menu/types.d.ts +0 -40
- package/js/components/Menu/utils.d.ts +0 -9
- package/js/components/Message/Stories.d.ts +0 -119
- package/js/components/Message/Tests.d.ts +0 -14
- package/js/components/Message/index.d.ts +0 -75
- package/js/components/Mosaic/Stories.d.ts +0 -102
- package/js/components/Mosaic/Tests.d.ts +0 -13
- package/js/components/Mosaic/index.d.ts +0 -40
- package/js/components/Popover/Stories.d.ts +0 -156
- package/js/components/Popover/Tests.d.ts +0 -11
- package/js/components/Popover/constants.d.ts +0 -43
- package/js/components/Popover/index.d.ts +0 -120
- package/js/components/Popover/types.d.ts +0 -35
- package/js/components/Popover/utils/buildPopoverMiddleware.d.ts +0 -25
- package/js/components/Popover/utils/computeArrowStyles.d.ts +0 -5
- package/js/components/Popover/utils/getFloatingPlacement.d.ts +0 -7
- package/js/components/Popover/utils/index.d.ts +0 -5
- package/js/components/Popover/utils/parseAutoPlacement.d.ts +0 -22
- package/js/components/Popover/utils/parseFitWidth.d.ts +0 -4
- package/js/components/PopoverDialog/Stories.d.ts +0 -44
- package/js/components/PopoverDialog/Tests.d.ts +0 -11
- package/js/components/PopoverDialog/index.d.ts +0 -22
- package/js/components/ProgressCircular/Stories.d.ts +0 -30
- package/js/components/ProgressCircular/Tests.d.ts +0 -11
- package/js/components/ProgressCircular/index.d.ts +0 -52
- package/js/components/ProgressLinear/Stories.d.ts +0 -11
- package/js/components/ProgressLinear/Tests.d.ts +0 -11
- package/js/components/ProgressLinear/index.d.ts +0 -27
- package/js/components/RadioButton/Stories.d.ts +0 -78
- package/js/components/RadioButton/Tests.d.ts +0 -15
- package/js/components/RadioButton/index.d.ts +0 -45
- package/js/components/RadioGroup/index.d.ts +0 -34
- package/js/components/RawClickable/Tests.d.ts +0 -14
- package/js/components/RawClickable/index.d.ts +0 -14
- package/js/components/SelectButton/Stories.d.ts +0 -135
- package/js/components/SelectButton/TestStories.d.ts +0 -45
- package/js/components/SelectButton/Tests.d.ts +0 -34
- package/js/components/SelectButton/index.d.ts +0 -88
- package/js/components/SelectTextField/Stories.d.ts +0 -192
- package/js/components/SelectTextField/TestStories.d.ts +0 -39
- package/js/components/SelectTextField/Tests.d.ts +0 -38
- package/js/components/SelectTextField/index.d.ts +0 -87
- package/js/components/Skeleton/SkeletonCircle.d.ts +0 -32
- package/js/components/Skeleton/SkeletonCircleStories.d.ts +0 -43
- package/js/components/Skeleton/SkeletonCircleTests.d.ts +0 -12
- package/js/components/Skeleton/SkeletonRectangle.d.ts +0 -47
- package/js/components/Skeleton/SkeletonRectangleStories.d.ts +0 -83
- package/js/components/Skeleton/SkeletonRectangleTests.d.ts +0 -13
- package/js/components/Skeleton/SkeletonTypography.d.ts +0 -37
- package/js/components/Skeleton/SkeletonTypographyStories.d.ts +0 -53
- package/js/components/Skeleton/SkeletonTypographyTests.d.ts +0 -13
- package/js/components/Skeleton/index.d.ts +0 -3
- package/js/components/Switch/Stories.d.ts +0 -94
- package/js/components/Switch/Tests.d.ts +0 -15
- package/js/components/Switch/index.d.ts +0 -47
- package/js/components/Table/Stories.d.ts +0 -30
- package/js/components/Table/TableBody.d.ts +0 -25
- package/js/components/Table/TableCell.d.ts +0 -55
- package/js/components/Table/TableCellStories.d.ts +0 -47
- package/js/components/Table/TableCellTests.d.ts +0 -11
- package/js/components/Table/TableHeader.d.ts +0 -29
- package/js/components/Table/TableRow.d.ts +0 -35
- package/js/components/Table/TableRowStories.d.ts +0 -23
- package/js/components/Table/Tests.d.ts +0 -11
- package/js/components/Table/constants.d.ts +0 -9
- package/js/components/Table/index.d.ts +0 -27
- package/js/components/Tabs/Tab.d.ts +0 -70
- package/js/components/Tabs/TabList.d.ts +0 -39
- package/js/components/Tabs/TabListTests.d.ts +0 -12
- package/js/components/Tabs/TabPanel.d.ts +0 -43
- package/js/components/Tabs/TabPanelTests.d.ts +0 -11
- package/js/components/Tabs/TabProviderTestUtils.d.ts +0 -17
- package/js/components/Tabs/Tests.d.ts +0 -11
- package/js/components/Tabs/constants.d.ts +0 -4
- package/js/components/Tabs/state.d.ts +0 -34
- package/js/components/Text/Stories.d.ts +0 -164
- package/js/components/Text/Tests.d.ts +0 -10
- package/js/components/Text/index.d.ts +0 -935
- package/js/components/TextField/RawInputText.d.ts +0 -24
- package/js/components/TextField/RawInputTextStories.d.ts +0 -16
- package/js/components/TextField/RawInputTextTests.d.ts +0 -11
- package/js/components/TextField/RawInputTextarea.d.ts +0 -23
- package/js/components/TextField/RawInputTextareaStories.d.ts +0 -21
- package/js/components/TextField/RawInputTextareaTests.d.ts +0 -11
- package/js/components/TextField/Stories.d.ts +0 -101
- package/js/components/TextField/Tests.d.ts +0 -14
- package/js/components/TextField/TextField.d.ts +0 -84
- package/js/components/TextField/constants.d.ts +0 -13
- package/js/components/Thumbnail/Stories.d.ts +0 -178
- package/js/components/Thumbnail/Tests.d.ts +0 -11
- package/js/components/Thumbnail/index.d.ts +0 -84
- package/js/components/Thumbnail/types.d.ts +0 -45
- package/js/components/Thumbnail/utils.d.ts +0 -79
- package/js/components/TimePickerField/Stories.d.ts +0 -64
- package/js/components/TimePickerField/Tests.d.ts +0 -29
- package/js/components/TimePickerField/index.d.ts +0 -119
- package/js/components/Toolbar/Stories.d.ts +0 -29
- package/js/components/Toolbar/Tests.d.ts +0 -12
- package/js/components/Toolbar/index.d.ts +0 -33
- package/js/components/Tooltip/Stories.d.ts +0 -61
- package/js/components/Tooltip/TestStories.d.ts +0 -72
- package/js/components/Tooltip/Tests.d.ts +0 -11
- package/js/components/Tooltip/constants.d.ts +0 -10
- package/js/components/Tooltip/index.d.ts +0 -65
- package/js/components/Tooltip/tooltipOpenManager.d.ts +0 -21
- package/js/components/Uploader/Stories.d.ts +0 -116
- package/js/components/Uploader/Tests.d.ts +0 -14
- package/js/components/Uploader/index.d.ts +0 -79
- package/js/components/UserBlock/Stories.d.ts +0 -153
- package/js/components/UserBlock/Tests.d.ts +0 -13
- package/js/components/UserBlock/index.d.ts +0 -145
- package/js/constants/_internal/design-tokens.d.ts +0 -5421
- package/js/constants/browser/index.js +0 -14
- package/js/constants/className/index.d.ts +0 -4
- package/js/constants/className/index.js +0 -6
- package/js/constants/components/index.d.ts +0 -24
- package/js/constants/enums/index.d.ts +0 -210
- package/js/constants/enums/index.js +0 -164
- package/js/constants/keycodes/index.d.ts +0 -36
- package/js/types/AriaAttributes.d.ts +0 -29
- package/js/types/Booleanish.d.ts +0 -1
- package/js/types/Callback.d.ts +0 -4
- package/js/types/CommonRef.d.ts +0 -1
- package/js/types/Direction.d.ts +0 -1
- package/js/types/Falsy.d.ts +0 -5
- package/js/types/GenericProps.d.ts +0 -10
- package/js/types/HasAriaDisabled.d.ts +0 -5
- package/js/types/HasAriaLabelOrLabelledBy.d.ts +0 -17
- package/js/types/HasChecked.d.ts +0 -6
- package/js/types/HasClassName.d.ts +0 -6
- package/js/types/HasCloseMode.d.ts +0 -7
- package/js/types/HasDisabled.d.ts +0 -6
- package/js/types/HasPolymorphicAs.d.ts +0 -8
- package/js/types/HasRequiredLinkHref.d.ts +0 -3
- package/js/types/HasTheme.d.ts +0 -7
- package/js/types/HeadingElement.d.ts +0 -2
- package/js/types/JSXElement.d.ts +0 -9
- package/js/types/KebabCase.d.ts +0 -2
- package/js/types/LumxClassName.d.ts +0 -3
- package/js/types/ObjectValues.d.ts +0 -5
- package/js/types/Point.d.ts +0 -7
- package/js/types/Predicate.d.ts +0 -2
- package/js/types/RectSize.d.ts +0 -7
- package/js/types/Selector.d.ts +0 -11
- package/js/types/Spacing.d.ts +0 -1
- package/js/types/TextElement.d.ts +0 -3
- package/js/types/ValueOf.d.ts +0 -2
- package/js/types/jsx/PropsToOverride.d.ts +0 -2
- package/js/utils/ClickAway/TestStories.d.ts +0 -36
- package/js/utils/ClickAway/index.d.ts +0 -34
- package/js/utils/InfiniteScroll/TestStories.d.ts +0 -50
- package/js/utils/InfiniteScroll/index.d.ts +0 -21
- package/js/utils/InfiniteScroll/setupInfiniteScrollObserver.d.ts +0 -8
- package/js/utils/Portal/Stories.d.ts +0 -29
- package/js/utils/Portal/Tests.d.ts +0 -25
- package/js/utils/Portal/index.d.ts +0 -25
- package/js/utils/_internal/color/index.d.ts +0 -1
- package/js/utils/_internal/color/resolveColorWithVariants.d.ts +0 -3
- package/js/utils/action-area/Stories.d.ts +0 -38
- package/js/utils/browser/createSelectorTreeWalker.d.ts +0 -13
- package/js/utils/browser/css/combineSize.d.ts +0 -4
- package/js/utils/browser/css/resolveCssSize.d.ts +0 -4
- package/js/utils/browser/css/types.d.ts +0 -7
- package/js/utils/browser/isFocusVisible.d.ts +0 -2
- package/js/utils/browser/isHoverNotSupported.d.ts +0 -2
- package/js/utils/browser/isPrintableKey.d.ts +0 -7
- package/js/utils/browser/lastDescendant.d.ts +0 -2
- package/js/utils/browser/querySelectorInclusive.d.ts +0 -11
- package/js/utils/browser/trackContainerFocus.d.ts +0 -11
- package/js/utils/classNames/action-area/index.js +0 -21
- package/js/utils/classNames/bem/block.d.ts +0 -15
- package/js/utils/classNames/bem/block.js +0 -26
- package/js/utils/classNames/bem/element.d.ts +0 -16
- package/js/utils/classNames/bem/element.js +0 -7
- package/js/utils/classNames/bem/index.d.ts +0 -18
- package/js/utils/classNames/bem/index.js +0 -22
- package/js/utils/classNames/bem/modifier.d.ts +0 -13
- package/js/utils/classNames/bem/modifier.js +0 -21
- package/js/utils/classNames/bem/types.d.ts +0 -11
- package/js/utils/classNames/color/index.js +0 -51
- package/js/utils/classNames/spacing/index.js +0 -73
- package/js/utils/classNames/typography/index.d.ts +0 -6
- package/js/utils/classNames/typography/index.js +0 -9
- package/js/utils/classNames/visually-hidden/index.d.ts +0 -5
- package/js/utils/classNames/visually-hidden/index.js +0 -11
- package/js/utils/events/index.d.ts +0 -2
- package/js/utils/events/keyboard.js +0 -44
- package/js/utils/events/swipe.js +0 -79
- package/js/utils/focus/constants.d.ts +0 -10
- package/js/utils/focus/getFirstAndLastFocusable.d.ts +0 -13
- package/js/utils/focus/getFocusableElements.d.ts +0 -1
- package/js/utils/focus/index.d.ts +0 -4
- package/js/utils/focus/setupFocusTrap.d.ts +0 -28
- package/js/utils/focusNavigation/createActiveItemState.d.ts +0 -26
- package/js/utils/focusNavigation/createGridFocusNavigation.d.ts +0 -16
- package/js/utils/focusNavigation/createListFocusNavigation.d.ts +0 -15
- package/js/utils/focusNavigation/createPendingNavigation.d.ts +0 -7
- package/js/utils/focusNavigation/index.d.ts +0 -5
- package/js/utils/focusNavigation/setupRovingTabIndex.d.ts +0 -37
- package/js/utils/focusNavigation/types.d.ts +0 -68
- package/js/utils/function/listenerTower.d.ts +0 -13
- package/js/utils/iterable/first.d.ts +0 -2
- package/js/utils/locale/getCurrentLocale.d.ts +0 -7
- package/js/utils/locale/index.d.ts +0 -1
- package/js/utils/select/findOptionById.d.ts +0 -13
- package/js/utils/select/getOptionDisplayName.d.ts +0 -8
- package/js/utils/select/renderSelectOptions.d.ts +0 -7
- package/js/utils/select/toggleSelection.d.ts +0 -23
- package/js/utils/select/types.d.ts +0 -243
- package/js/utils/selectors/getWithSelector.d.ts +0 -3
- package/js/utils/selectors/getWithSelector.js +0 -14
- package/js/utils/selectors/groupBySelector.d.ts +0 -6
- package/js/utils/selectors/groupBySelector.js +0 -21
- package/js/utils/theme/invertTheme.d.ts +0 -3
- package/js/utils/time/buildTimeList.d.ts +0 -34
- package/js/utils/time/formatTime.d.ts +0 -6
- package/js/utils/time/getDateAtTime.d.ts +0 -8
- package/js/utils/time/index.d.ts +0 -8
- package/js/utils/time/isDateOnTime.d.ts +0 -8
- package/js/utils/time/parseTimeInput.d.ts +0 -16
- package/js/utils/time/snapTimeToBounds.d.ts +0 -7
- package/js/utils/time/timeOfDayMinutes.d.ts +0 -4
- package/js/utils/typeahead/index.d.ts +0 -37
- package/stories/controls/color.d.ts +0 -15
- package/stories/controls/element.d.ts +0 -16
- package/stories/controls/focusPoint.d.ts +0 -8
- package/stories/controls/icons.d.ts +0 -66
- package/stories/controls/image.d.ts +0 -96
- package/stories/controls/selectArgType.d.ts +0 -7
- package/stories/controls/theme.d.ts +0 -7
- package/stories/controls/typography.d.ts +0 -8
- package/stories/controls/withUndefined.d.ts +0 -1
- package/stories/types.d.ts +0 -67
- package/stories/utils/CombinationsTable.d.ts +0 -26
- package/stories/utils/ThemingVariablesTable.d.ts +0 -29
- package/stories/utils/combinations.d.ts +0 -100
- package/stories/utils/concatPath.d.ts +0 -10
- package/stories/utils/disableArgTypes.d.ts +0 -7
- package/stories/utils/initDemoShadowDOMPortal.d.ts +0 -5
- package/stories/utils/lorem.d.ts +0 -7
- package/stories/utils/themeVariables.d.ts +0 -39
- package/stories/utils/toFlattenProps.d.ts +0 -12
- package/stories/utils/withCategory.d.ts +0 -4
- package/testing/commonTestsSuiteTL.d.ts +0 -87
- package/testing/index.d.ts +0 -1
- package/testing/queries.d.ts +0 -4
- /package/{css → src/css}/_retro-compat-v2.css +0 -0
- /package/{css → src/css}/design-tokens.css +0 -0
- /package/{css → src/css}/material.css +0 -0
- /package/{scss → src/scss}/_components.scss +0 -0
- /package/{scss → src/scss}/_components_classes.scss +0 -0
- /package/{scss → src/scss}/_core.scss +0 -0
- /package/{scss → src/scss}/_core_classes.scss +0 -0
- /package/{scss → src/scss}/_design-tokens.scss +0 -0
- /package/{scss → src/scss}/_retro-compat-v2.scss +0 -0
- /package/{scss → src/scss}/components/avatar/_index.scss +0 -0
- /package/{scss → src/scss}/components/badge/_index.scss +0 -0
- /package/{scss → src/scss}/components/button/_index.scss +0 -0
- /package/{scss → src/scss}/components/button/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/button/_variables.scss +0 -0
- /package/{scss → src/scss}/components/checkbox/_index.scss +0 -0
- /package/{scss → src/scss}/components/checkbox/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/chip/_index.scss +0 -0
- /package/{scss → src/scss}/components/chip/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/chip/_variables.scss +0 -0
- /package/{scss → src/scss}/components/combobox/_index.scss +0 -0
- /package/{scss → src/scss}/components/comment-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/date-picker/_index.scss +0 -0
- /package/{scss → src/scss}/components/dialog/_index.scss +0 -0
- /package/{scss → src/scss}/components/dialog/_variables.scss +0 -0
- /package/{scss → src/scss}/components/divider/_index.scss +0 -0
- /package/{scss → src/scss}/components/divider/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/divider/_variables.scss +0 -0
- /package/{scss → src/scss}/components/drag-handle/_index.scss +0 -0
- /package/{scss → src/scss}/components/dropdown/_index.scss +0 -0
- /package/{scss → src/scss}/components/expansion-panel/_index.scss +0 -0
- /package/{scss → src/scss}/components/expansion-panel/_variables.scss +0 -0
- /package/{scss → src/scss}/components/flag/_index.scss +0 -0
- /package/{scss → src/scss}/components/flex-box/_index.scss +0 -0
- /package/{scss → src/scss}/components/generic-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/grid/_index.scss +0 -0
- /package/{scss → src/scss}/components/grid-column/_index.scss +0 -0
- /package/{scss → src/scss}/components/icon/_index.scss +0 -0
- /package/{scss → src/scss}/components/icon/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/icon/_variables.scss +0 -0
- /package/{scss → src/scss}/components/image-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/image-lightbox/_index.scss +0 -0
- /package/{scss → src/scss}/components/inline-list/_index.scss +0 -0
- /package/{scss → src/scss}/components/input-helper/_index.scss +0 -0
- /package/{scss → src/scss}/components/input-helper/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/input-helper/_variables.scss +0 -0
- /package/{scss → src/scss}/components/input-label/_index.scss +0 -0
- /package/{scss → src/scss}/components/input-label/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/lightbox/_index.scss +0 -0
- /package/{scss → src/scss}/components/lightbox/_variables.scss +0 -0
- /package/{scss → src/scss}/components/link/_index.scss +0 -0
- /package/{scss → src/scss}/components/link/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/link-preview/_index.scss +0 -0
- /package/{scss → src/scss}/components/list/_index.scss +0 -0
- /package/{scss → src/scss}/components/list/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/list/_variables.scss +0 -0
- /package/{scss → src/scss}/components/menu/_index.scss +0 -0
- /package/{scss → src/scss}/components/message/_index.scss +0 -0
- /package/{scss → src/scss}/components/mosaic/_index.scss +0 -0
- /package/{scss → src/scss}/components/navigation/_index.scss +0 -0
- /package/{scss → src/scss}/components/navigation/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/notification/_index.scss +0 -0
- /package/{scss → src/scss}/components/notification/_variables.scss +0 -0
- /package/{scss → src/scss}/components/notification-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/popover/_index.scss +0 -0
- /package/{scss → src/scss}/components/popover/_variables.scss +0 -0
- /package/{scss → src/scss}/components/post-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/progress/_index.scss +0 -0
- /package/{scss → src/scss}/components/progress/_variables.scss +0 -0
- /package/{scss → src/scss}/components/progress-tracker/_index.scss +0 -0
- /package/{scss → src/scss}/components/progress-tracker/_variables.scss +0 -0
- /package/{scss → src/scss}/components/radio-button/_index.scss +0 -0
- /package/{scss → src/scss}/components/radio-button/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/select/_index.scss +0 -0
- /package/{scss → src/scss}/components/select/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/side-navigation/_index.scss +0 -0
- /package/{scss → src/scss}/components/side-navigation/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/skeleton/_index.scss +0 -0
- /package/{scss → src/scss}/components/skeleton/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/slider/_index.scss +0 -0
- /package/{scss → src/scss}/components/slideshow/_index.scss +0 -0
- /package/{scss → src/scss}/components/slideshow/_variables.scss +0 -0
- /package/{scss → src/scss}/components/switch/_index.scss +0 -0
- /package/{scss → src/scss}/components/switch/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/table/_index.scss +0 -0
- /package/{scss → src/scss}/components/table/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/tabs/_index.scss +0 -0
- /package/{scss → src/scss}/components/tabs/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/text/_index.scss +0 -0
- /package/{scss → src/scss}/components/text-field/_index.scss +0 -0
- /package/{scss → src/scss}/components/text-field/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/text-field/_variables.scss +0 -0
- /package/{scss → src/scss}/components/thumbnail/_index.scss +0 -0
- /package/{scss → src/scss}/components/thumbnail/_variables.scss +0 -0
- /package/{scss → src/scss}/components/toolbar/_index.scss +0 -0
- /package/{scss → src/scss}/components/toolbar/_variables.scss +0 -0
- /package/{scss → src/scss}/components/tooltip/_index.scss +0 -0
- /package/{scss → src/scss}/components/tooltip/_variables.scss +0 -0
- /package/{scss → src/scss}/components/uploader/_index.scss +0 -0
- /package/{scss → src/scss}/components/user-block/_index.scss +0 -0
- /package/{scss → src/scss}/components-and-utils.scss +0 -0
- /package/{scss → src/scss}/core/_normalize.scss +0 -0
- /package/{scss → src/scss}/core/action-area/_index.scss +0 -0
- /package/{scss → src/scss}/core/base/_functions.scss +0 -0
- /package/{scss → src/scss}/core/base/_helpers.scss +0 -0
- /package/{scss → src/scss}/core/base/_index.scss +0 -0
- /package/{scss → src/scss}/core/base/_normalize.scss +0 -0
- /package/{scss → src/scss}/core/base/_variables.scss +0 -0
- /package/{scss → src/scss}/core/color/_functions.scss +0 -0
- /package/{scss → src/scss}/core/color/_index.scss +0 -0
- /package/{scss → src/scss}/core/color/_variables.scss +0 -0
- /package/{scss → src/scss}/core/elevation/_mixins.scss +0 -0
- /package/{scss → src/scss}/core/elevation/_variables.scss +0 -0
- /package/{scss → src/scss}/core/size/_variables.scss +0 -0
- /package/{scss → src/scss}/core/spacing/_index.scss +0 -0
- /package/{scss → src/scss}/core/spacing/_variables.scss +0 -0
- /package/{scss → src/scss}/core/state/_mixins.scss +0 -0
- /package/{scss → src/scss}/core/state/_variables.scss +0 -0
- /package/{scss → src/scss}/core/typography/_index.scss +0 -0
- /package/{scss → src/scss}/core/typography/_mixins.scss +0 -0
- /package/{scss → src/scss}/core/typography/_variables.scss +0 -0
- /package/{scss → src/scss}/lumx.scss +0 -0
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
/**
|
|
3
|
-
* Setup Checkbox stories for a specific framework (React or Vue).
|
|
4
|
-
* This function creates all the stories with the appropriate decorators.
|
|
5
|
-
* Framework-specific render functions or args can be injected via `overrides`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function setup({ component: Checkbox, decorators: { withCombinations, withValueOnChange }, }: SetupStoriesOptions<{
|
|
8
|
-
decorators: 'withCombinations' | 'withValueOnChange';
|
|
9
|
-
}>): {
|
|
10
|
-
meta: {
|
|
11
|
-
component: any;
|
|
12
|
-
render: (args: any) => import("react").JSX.Element;
|
|
13
|
-
decorators: ((story: any, context: any) => any)[];
|
|
14
|
-
argTypes: {
|
|
15
|
-
onChange: {
|
|
16
|
-
action: boolean;
|
|
17
|
-
};
|
|
18
|
-
name: {
|
|
19
|
-
control: boolean;
|
|
20
|
-
};
|
|
21
|
-
value: {
|
|
22
|
-
control: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
args: {
|
|
26
|
-
isChecked: boolean;
|
|
27
|
-
name: string;
|
|
28
|
-
value: string;
|
|
29
|
-
helper?: string | undefined;
|
|
30
|
-
id?: string | undefined;
|
|
31
|
-
label?: import("react").ReactNode;
|
|
32
|
-
inputProps?: Record<string, any> | undefined;
|
|
33
|
-
inputRef?: import("../../types").CommonRef;
|
|
34
|
-
inputId?: string | undefined;
|
|
35
|
-
handleChange?: ((isChecked: boolean, value?: string, name?: string, event?: any) => void) | undefined;
|
|
36
|
-
ref?: import("../../types").CommonRef;
|
|
37
|
-
theme?: import("../../constants").Theme | undefined;
|
|
38
|
-
className?: string | undefined;
|
|
39
|
-
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
40
|
-
isDisabled?: boolean | undefined;
|
|
41
|
-
disabled?: boolean | undefined;
|
|
42
|
-
checked?: boolean | undefined;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
/** Default checkbox */
|
|
46
|
-
Default: {};
|
|
47
|
-
/** With label and helper */
|
|
48
|
-
LabelAndHelper: {
|
|
49
|
-
argTypes: {
|
|
50
|
-
label: {
|
|
51
|
-
control: string;
|
|
52
|
-
};
|
|
53
|
-
helper: {
|
|
54
|
-
control: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
args: {
|
|
58
|
-
label: string;
|
|
59
|
-
helper: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
/** With intermediate state */
|
|
63
|
-
IntermediateState: {
|
|
64
|
-
argTypes: {
|
|
65
|
-
isChecked: {
|
|
66
|
-
control: boolean;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
args: {
|
|
70
|
-
isChecked: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
/** Disabled */
|
|
74
|
-
Disabled: {
|
|
75
|
-
argTypes: {
|
|
76
|
-
isDisabled: {
|
|
77
|
-
control: boolean;
|
|
78
|
-
};
|
|
79
|
-
'aria-disabled': {
|
|
80
|
-
control: boolean;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
args: {
|
|
84
|
-
label: string;
|
|
85
|
-
helper: string;
|
|
86
|
-
};
|
|
87
|
-
decorators: ((story: any, context: any) => any)[];
|
|
88
|
-
};
|
|
89
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
import { CheckboxProps } from '.';
|
|
3
|
-
type SetupProps = Partial<CheckboxProps>;
|
|
4
|
-
/**
|
|
5
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
6
|
-
*/
|
|
7
|
-
export declare const setup: (propsOverride: SetupProps | undefined, { render, ...options }: SetupOptions<CheckboxProps>) => {
|
|
8
|
-
checkbox: HTMLElement;
|
|
9
|
-
helper: HTMLElement | null;
|
|
10
|
-
label: HTMLElement | null;
|
|
11
|
-
input: HTMLElement;
|
|
12
|
-
props: CheckboxProps;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: (renderOptions: SetupOptions<CheckboxProps>) => void;
|
|
15
|
-
export default _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { JSXElement, LumxClassName, HasTheme, HasAriaDisabled, HasDisabled, HasClassName, HasChecked, CommonRef } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Intermediate state of checkbox.
|
|
4
|
-
*/
|
|
5
|
-
export declare const INTERMEDIATE_STATE = "intermediate";
|
|
6
|
-
/**
|
|
7
|
-
* Defines the props of the component.
|
|
8
|
-
*/
|
|
9
|
-
export interface CheckboxProps extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
|
|
10
|
-
/** Helper text. */
|
|
11
|
-
helper?: string;
|
|
12
|
-
/** Native input id property. */
|
|
13
|
-
id?: string;
|
|
14
|
-
/** Label text. */
|
|
15
|
-
label?: JSXElement;
|
|
16
|
-
/** Native input name property. */
|
|
17
|
-
name?: string;
|
|
18
|
-
/** Native input value property. */
|
|
19
|
-
value?: string;
|
|
20
|
-
/** optional props for input */
|
|
21
|
-
inputProps?: Record<string, any>;
|
|
22
|
-
/** Native input ref. */
|
|
23
|
-
inputRef?: CommonRef;
|
|
24
|
-
/** Native input id. */
|
|
25
|
-
inputId: string;
|
|
26
|
-
/** On change callback. */
|
|
27
|
-
handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
|
|
28
|
-
/** reference to the root element */
|
|
29
|
-
ref?: CommonRef;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Component display name.
|
|
33
|
-
*/
|
|
34
|
-
export declare const COMPONENT_NAME = "Checkbox";
|
|
35
|
-
/**
|
|
36
|
-
* Component default class name and class prefix.
|
|
37
|
-
*/
|
|
38
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
39
|
-
/**
|
|
40
|
-
* Component default props.
|
|
41
|
-
*/
|
|
42
|
-
export declare const DEFAULT_PROPS: Partial<CheckboxProps>;
|
|
43
|
-
/**
|
|
44
|
-
* Checkbox component.
|
|
45
|
-
*
|
|
46
|
-
* @param props Component props.
|
|
47
|
-
* @return JSX element.
|
|
48
|
-
*/
|
|
49
|
-
export declare const Checkbox: (props: CheckboxProps) => import("react").JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { HorizontalAlignment } from '../../constants';
|
|
2
|
-
import type { JSXElement, LumxClassName, HasClassName, CommonRef } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Defines the props of the component.
|
|
5
|
-
*/
|
|
6
|
-
export interface ChipGroupProps extends HasClassName {
|
|
7
|
-
/**
|
|
8
|
-
* Chip horizontal alignment.
|
|
9
|
-
* @deprecated
|
|
10
|
-
*/
|
|
11
|
-
align?: HorizontalAlignment;
|
|
12
|
-
/** Children */
|
|
13
|
-
children?: JSXElement;
|
|
14
|
-
/** reference to the root element */
|
|
15
|
-
ref?: CommonRef;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Component display name.
|
|
19
|
-
*/
|
|
20
|
-
export declare const COMPONENT_NAME = "ChipGroup";
|
|
21
|
-
/**
|
|
22
|
-
* Component default class name and class prefix.
|
|
23
|
-
*/
|
|
24
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
25
|
-
/**
|
|
26
|
-
* Component default props.
|
|
27
|
-
*/
|
|
28
|
-
export declare const DEFAULT_PROPS: Partial<ChipGroupProps>;
|
|
29
|
-
/**
|
|
30
|
-
* ChipGroup component.
|
|
31
|
-
*
|
|
32
|
-
* @param props Component props.
|
|
33
|
-
* @return JSX element.
|
|
34
|
-
*/
|
|
35
|
-
export declare const ChipGroup: (props: ChipGroupProps) => import("react").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
export declare function setup({ component: ChipGroup, components: { Chip }, }: SetupStoriesOptions<{
|
|
3
|
-
components: {
|
|
4
|
-
Chip: any;
|
|
5
|
-
};
|
|
6
|
-
}>): {
|
|
7
|
-
meta: {
|
|
8
|
-
component: any;
|
|
9
|
-
args: Partial<import("./ChipGroup").ChipGroupProps>;
|
|
10
|
-
};
|
|
11
|
-
Default: {
|
|
12
|
-
render: () => import("react").JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
Small: {
|
|
15
|
-
render: () => import("react").JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
/**
|
|
3
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
4
|
-
*/
|
|
5
|
-
export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
|
|
6
|
-
props: any;
|
|
7
|
-
chipGroup: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { LumxClassName, HasClassName, HasTheme } from '../../types';
|
|
2
|
-
import type { Selector } from '../../types/Selector';
|
|
3
|
-
import type { ChipProps } from '.';
|
|
4
|
-
/**
|
|
5
|
-
* Framework-specific components injected by React/Vue wrappers.
|
|
6
|
-
*/
|
|
7
|
-
export interface SelectionChipGroupComponents {
|
|
8
|
-
Chip: any;
|
|
9
|
-
ChipGroup: any;
|
|
10
|
-
Icon: any;
|
|
11
|
-
Text: any;
|
|
12
|
-
Tooltip: any;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Props that consumers can override per chip via getChipProps.
|
|
16
|
-
* Excludes internal/framework props that the core always controls.
|
|
17
|
-
*/
|
|
18
|
-
export type ChipOverrideProps = Pick<ChipProps, 'isDisabled' | 'color' | 'isHighlighted' | 'isSelected' | 'className' | 'before' | 'after'>;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the props of the component.
|
|
21
|
-
*/
|
|
22
|
-
export interface SelectionChipGroupProps<O> extends HasClassName, HasTheme {
|
|
23
|
-
/** Option object id selector (either a property name or a function to get the id) */
|
|
24
|
-
getOptionId: Selector<O>;
|
|
25
|
-
/** Option object name selector. Falls back to the id if not defined */
|
|
26
|
-
getOptionName?: Selector<O, string | undefined | null>;
|
|
27
|
-
/** Selected options array */
|
|
28
|
-
value?: O[];
|
|
29
|
-
/** Label for accessibility (aria-label on the listbox) */
|
|
30
|
-
label: string;
|
|
31
|
-
/** Label for the remove action (visually hidden text appended to each chip) */
|
|
32
|
-
chipRemoveLabel?: string;
|
|
33
|
-
/** Disabled state for all chips */
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
/** Customize chip props per option */
|
|
36
|
-
getChipProps?: (option: O) => Partial<ChipProps>;
|
|
37
|
-
/** Ref for the container element */
|
|
38
|
-
ref?: any;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Component display name.
|
|
42
|
-
*/
|
|
43
|
-
export declare const COMPONENT_NAME = "SelectionChipGroup";
|
|
44
|
-
/**
|
|
45
|
-
* Component default class name and class prefix.
|
|
46
|
-
*/
|
|
47
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
48
|
-
/**
|
|
49
|
-
* SelectionChipGroup component.
|
|
50
|
-
* Renders a listbox of removable selection chips using component injection for framework-agnostic rendering.
|
|
51
|
-
*
|
|
52
|
-
* @param props Component props.
|
|
53
|
-
* @param components Framework-specific components injected by the wrapper (Chip, ChipGroup, Icon, Tooltip).
|
|
54
|
-
* @return JSX element, or null when value is empty.
|
|
55
|
-
*/
|
|
56
|
-
export declare const SelectionChipGroup: <O>(props: SelectionChipGroupProps<O>, { Chip, ChipGroup, Icon, Text, Tooltip }: SelectionChipGroupComponents) => import("react").JSX.Element | null;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
declare const fruits: {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}[];
|
|
6
|
-
type FruitOption = (typeof fruits)[number];
|
|
7
|
-
export declare function setup({ component: SelectionChipGroup, decorators: { withValueOnChange, withResizableBox }, }: SetupStoriesOptions<{
|
|
8
|
-
decorators: 'withValueOnChange' | 'withResizableBox';
|
|
9
|
-
}>): {
|
|
10
|
-
meta: {
|
|
11
|
-
component: any;
|
|
12
|
-
args: {
|
|
13
|
-
value: {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}[];
|
|
17
|
-
getOptionId: string;
|
|
18
|
-
getOptionName: string;
|
|
19
|
-
label: string;
|
|
20
|
-
chipRemoveLabel: string;
|
|
21
|
-
};
|
|
22
|
-
decorators: ((story: any, context: any) => any)[];
|
|
23
|
-
};
|
|
24
|
-
Default: {};
|
|
25
|
-
Disabled: {
|
|
26
|
-
args: {
|
|
27
|
-
isDisabled: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
IndividuallyDisabled: {
|
|
31
|
-
args: {
|
|
32
|
-
getChipProps: (option: FruitOption) => {
|
|
33
|
-
isDisabled: boolean;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
Empty: {
|
|
38
|
-
args: {
|
|
39
|
-
value: never[];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
ConstrainedSpace: {
|
|
43
|
-
decorators: ((story: any, context: any) => any)[];
|
|
44
|
-
args: {
|
|
45
|
-
value: ({
|
|
46
|
-
id: string;
|
|
47
|
-
name: string;
|
|
48
|
-
} | {
|
|
49
|
-
name: string;
|
|
50
|
-
})[];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
/**
|
|
3
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
4
|
-
*/
|
|
5
|
-
export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
|
|
6
|
-
props: any;
|
|
7
|
-
selectionChipGroup: HTMLElement | null;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
interface CoreTestOptions extends SetupOptions<any> {
|
|
11
|
-
/**
|
|
12
|
-
* Render a stateful SelectionChipGroup that updates its own value on change.
|
|
13
|
-
* Should also render a sibling `<input>` element wired via `inputRef` so the
|
|
14
|
-
* keyboard navigation tests can assert focus fallback to the input.
|
|
15
|
-
*
|
|
16
|
-
* When provided, enables roving tabindex recovery and keyboard navigation tests.
|
|
17
|
-
*
|
|
18
|
-
* @param initialValue Optional initial value (defaults to all 3 testOptions).
|
|
19
|
-
*/
|
|
20
|
-
renderStateful?: (initialValue?: any[]) => void;
|
|
21
|
-
}
|
|
22
|
-
declare const _default: (renderOptions: CoreTestOptions) => void;
|
|
23
|
-
export default _default;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
export declare function setup({ component: Chip, components: { Icon }, decorators: { withCombinations, withThemedBackground, withTheming }, }: SetupStoriesOptions<{
|
|
3
|
-
decorators: 'withCombinations' | 'withThemedBackground' | 'withTheming';
|
|
4
|
-
components: {
|
|
5
|
-
Icon: any;
|
|
6
|
-
};
|
|
7
|
-
}>): {
|
|
8
|
-
meta: {
|
|
9
|
-
component: any;
|
|
10
|
-
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
11
|
-
args: import("lodash").Omit<Partial<import(".").ChipProps>, "theme">;
|
|
12
|
-
argTypes: {
|
|
13
|
-
size: {
|
|
14
|
-
control: {
|
|
15
|
-
type: "select" | "inline-radio";
|
|
16
|
-
};
|
|
17
|
-
options: ("s" | "m")[];
|
|
18
|
-
mapping: Record<string, "s" | "m"> | undefined;
|
|
19
|
-
};
|
|
20
|
-
before: {
|
|
21
|
-
control: boolean;
|
|
22
|
-
};
|
|
23
|
-
after: {
|
|
24
|
-
control: boolean;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
Default: {
|
|
29
|
-
args: {
|
|
30
|
-
children: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
ChipButton: {
|
|
34
|
-
args: {
|
|
35
|
-
children: string;
|
|
36
|
-
};
|
|
37
|
-
argTypes: {
|
|
38
|
-
onClick: {
|
|
39
|
-
action: boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
ChipLink: {
|
|
44
|
-
args: {
|
|
45
|
-
children: string;
|
|
46
|
-
href: string;
|
|
47
|
-
target: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
WithAfterAndBefore: {
|
|
51
|
-
argTypes: {
|
|
52
|
-
onBeforeClick: {
|
|
53
|
-
action: boolean;
|
|
54
|
-
};
|
|
55
|
-
onClick: {
|
|
56
|
-
action: boolean;
|
|
57
|
-
};
|
|
58
|
-
onAfterClick: {
|
|
59
|
-
action: boolean;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
63
|
-
args: {
|
|
64
|
-
children: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
ColorVariants: {
|
|
68
|
-
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
69
|
-
argTypes: {
|
|
70
|
-
onBeforeClick: {
|
|
71
|
-
action: boolean;
|
|
72
|
-
};
|
|
73
|
-
onClick: {
|
|
74
|
-
action: boolean;
|
|
75
|
-
};
|
|
76
|
-
onAfterClick: {
|
|
77
|
-
action: boolean;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
args: {
|
|
81
|
-
children: string;
|
|
82
|
-
};
|
|
83
|
-
decorators: ((story: any, context: any) => any)[];
|
|
84
|
-
};
|
|
85
|
-
SelectedVariants: {
|
|
86
|
-
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
87
|
-
argTypes: {
|
|
88
|
-
onBeforeClick: {
|
|
89
|
-
action: boolean;
|
|
90
|
-
};
|
|
91
|
-
onClick: {
|
|
92
|
-
action: boolean;
|
|
93
|
-
};
|
|
94
|
-
onAfterClick: {
|
|
95
|
-
action: boolean;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
args: {
|
|
99
|
-
children: string;
|
|
100
|
-
};
|
|
101
|
-
decorators: ((story: any, context: any) => any)[];
|
|
102
|
-
};
|
|
103
|
-
Disabled: {
|
|
104
|
-
args: {
|
|
105
|
-
children: string;
|
|
106
|
-
};
|
|
107
|
-
decorators: ((story: any, context: any) => any)[];
|
|
108
|
-
};
|
|
109
|
-
Theming: {
|
|
110
|
-
decorators: ((story: any, context: any) => any)[];
|
|
111
|
-
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
112
|
-
argTypes: {
|
|
113
|
-
onBeforeClick: {
|
|
114
|
-
action: boolean;
|
|
115
|
-
};
|
|
116
|
-
onClick: {
|
|
117
|
-
action: boolean;
|
|
118
|
-
};
|
|
119
|
-
onAfterClick: {
|
|
120
|
-
action: boolean;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
args: {
|
|
124
|
-
children: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
/**
|
|
3
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
4
|
-
*/
|
|
5
|
-
export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
|
|
6
|
-
props: any;
|
|
7
|
-
chip: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ColorPalette, Size } from '../../constants';
|
|
2
|
-
import { HasTheme, HasAriaDisabled, JSXElement, LumxClassName, HasClassName, HasDisabled, CommonRef, GenericProps } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Chip sizes.
|
|
5
|
-
*/
|
|
6
|
-
export type ChipSize = Extract<Size, 's' | 'm'>;
|
|
7
|
-
/**
|
|
8
|
-
* Defines the props of the component.
|
|
9
|
-
*/
|
|
10
|
-
export interface ChipProps extends HasClassName, HasDisabled, HasTheme, HasAriaDisabled {
|
|
11
|
-
/** A component to be rendered after the content. */
|
|
12
|
-
after?: JSXElement;
|
|
13
|
-
/** A component to be rendered before the content. */
|
|
14
|
-
before?: JSXElement;
|
|
15
|
-
/** Color variant. */
|
|
16
|
-
color?: ColorPalette;
|
|
17
|
-
/** Whether the component is clickable or not. */
|
|
18
|
-
isClickable?: boolean;
|
|
19
|
-
/** Whether the chip is currently in a highlighted state or not. */
|
|
20
|
-
isHighlighted?: boolean;
|
|
21
|
-
/** Whether the component is selected or not. */
|
|
22
|
-
isSelected?: boolean;
|
|
23
|
-
/** Size variant. */
|
|
24
|
-
size?: ChipSize;
|
|
25
|
-
/** href for the chip if it is a link */
|
|
26
|
-
href?: string;
|
|
27
|
-
/** reference to the root element */
|
|
28
|
-
ref?: CommonRef;
|
|
29
|
-
/** On "after" element clicked callback. */
|
|
30
|
-
handleAfterClick?: (event: any) => void;
|
|
31
|
-
/** On element key down callback. */
|
|
32
|
-
handleKeyDown?: (event: any) => void;
|
|
33
|
-
/** On "before" element clicked callback. */
|
|
34
|
-
handleBeforeClick?: (event: any) => void;
|
|
35
|
-
/** On element clicked callback. */
|
|
36
|
-
handleClick?: (event: any) => void;
|
|
37
|
-
/** name of the prop for handling key down events */
|
|
38
|
-
keyDownProp?: string;
|
|
39
|
-
/** name of the prop for tab index */
|
|
40
|
-
tabIndexProp?: string;
|
|
41
|
-
/** Children */
|
|
42
|
-
children?: JSXElement;
|
|
43
|
-
/** Props to apply when the component is in a disabled state. */
|
|
44
|
-
disabledStateProps: GenericProps;
|
|
45
|
-
/** Whether the "after" element has a click handler. */
|
|
46
|
-
hasAfterClick?: boolean;
|
|
47
|
-
/** Whether the "before" element has a click handler. */
|
|
48
|
-
hasBeforeClick?: boolean;
|
|
49
|
-
/** Whether the component has a main click handler. */
|
|
50
|
-
hasOnClick?: boolean;
|
|
51
|
-
/** Whether any part of the component is disabled. */
|
|
52
|
-
isAnyDisabled?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export type ChipPropsToOverride = 'disabledStateProps' | 'hasOnClick' | 'hasBeforeClick' | 'hasAfterClick' | 'before' | 'after' | 'keyDownProp' | 'tabIndexProp' | 'isAnyDisabled';
|
|
55
|
-
/**
|
|
56
|
-
* Component display name.
|
|
57
|
-
*/
|
|
58
|
-
export declare const COMPONENT_NAME = "Chip";
|
|
59
|
-
/**
|
|
60
|
-
* Component default class name and class prefix.
|
|
61
|
-
*/
|
|
62
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
63
|
-
export declare const block: {
|
|
64
|
-
(additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
65
|
-
(modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
66
|
-
}, element: {
|
|
67
|
-
(elem: string, additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
68
|
-
(elem: string, modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Component default props.
|
|
72
|
-
*/
|
|
73
|
-
export declare const DEFAULT_PROPS: Partial<ChipProps>;
|
|
74
|
-
/**
|
|
75
|
-
* Chip component.
|
|
76
|
-
*
|
|
77
|
-
* @param props Component props.
|
|
78
|
-
* @param ref Component ref.
|
|
79
|
-
* @return React element.
|
|
80
|
-
*/
|
|
81
|
-
export declare const Chip: (props: ChipProps) => import("react").JSX.Element;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Selector } from '../../types/Selector';
|
|
2
|
-
/**
|
|
3
|
-
* Options for setting up selection chip group event handlers.
|
|
4
|
-
* All option accessors are wrapped in getters so that React/Vue can provide
|
|
5
|
-
* reactive values without the core needing to know about reactivity systems.
|
|
6
|
-
*/
|
|
7
|
-
export interface SetupSelectionChipGroupEventsOptions<O> {
|
|
8
|
-
/** Getter for the current selected options array. */
|
|
9
|
-
getValue: () => O[] | undefined;
|
|
10
|
-
/** Getter for the option id selector. */
|
|
11
|
-
getOptionId: Selector<O>;
|
|
12
|
-
/** Callback when the option array changes. */
|
|
13
|
-
onChange: (newValue?: O[]) => void;
|
|
14
|
-
/** Getter for the chip group container element. */
|
|
15
|
-
getContainer: () => HTMLElement | null | undefined;
|
|
16
|
-
/** Getter for the associated input element (optional). */
|
|
17
|
-
getInput?: () => HTMLInputElement | null | undefined;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Attach delegated click and keydown event listeners on the chip group container,
|
|
21
|
-
* and optionally an input backspace handler.
|
|
22
|
-
*
|
|
23
|
-
* Uses addEventListener on the container element. Events bubble up from individual
|
|
24
|
-
* chips, so there is no need to re-attach listeners when chips change.
|
|
25
|
-
*
|
|
26
|
-
* @returns A cleanup function that removes all attached event listeners.
|
|
27
|
-
*/
|
|
28
|
-
export declare function setupSelectionChipGroupEvents<O>(options: SetupSelectionChipGroupEventsOptions<O>): () => void;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { CommonRef, HasClassName, JSXElement, LumxClassName } from '../../types';
|
|
2
|
-
import type { ComboboxCallbacks } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Label display mode for the ComboboxButton.
|
|
5
|
-
* - `'show-selection'`: Show the selected value if available, otherwise the label.
|
|
6
|
-
* - `'show-label'`: Always show the label.
|
|
7
|
-
* - `'show-tooltip'`: Show nothing in the button; label appears only in tooltip.
|
|
8
|
-
*/
|
|
9
|
-
export type ComboboxButtonLabelDisplayMode = 'show-selection' | 'show-label' | 'show-tooltip';
|
|
10
|
-
/**
|
|
11
|
-
* Defines the props for the core ComboboxButton template.
|
|
12
|
-
*/
|
|
13
|
-
export interface ComboboxButtonProps extends HasClassName, ComboboxCallbacks {
|
|
14
|
-
/** The label for the button (used for ARIA and tooltip). */
|
|
15
|
-
label: string;
|
|
16
|
-
/** The currently selected value to display. */
|
|
17
|
-
value?: string;
|
|
18
|
-
/** Controls how the label/value is displayed. */
|
|
19
|
-
labelDisplayMode?: ComboboxButtonLabelDisplayMode;
|
|
20
|
-
/** The ID of the listbox element (for aria-controls). */
|
|
21
|
-
listboxId?: string;
|
|
22
|
-
/** Whether the combobox is open. */
|
|
23
|
-
isOpen?: boolean;
|
|
24
|
-
/** ref to the root button element. */
|
|
25
|
-
ref?: CommonRef;
|
|
26
|
-
/** Custom render button */
|
|
27
|
-
renderButton?: (buttonProps: Record<string, any>) => JSXElement;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Injected framework-specific components for ComboboxButton rendering.
|
|
31
|
-
*/
|
|
32
|
-
export interface ComboboxButtonComponents {
|
|
33
|
-
/** Button component (framework-specific, e.g. React Button with theme/disabled handling). */
|
|
34
|
-
Button: any;
|
|
35
|
-
/** Tooltip wrapper component. */
|
|
36
|
-
Tooltip: any;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Component display name.
|
|
40
|
-
*/
|
|
41
|
-
export declare const COMPONENT_NAME = "ComboboxButton";
|
|
42
|
-
/**
|
|
43
|
-
* Component default class name and class prefix.
|
|
44
|
-
*/
|
|
45
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
46
|
-
/**
|
|
47
|
-
* ComboboxButton core template.
|
|
48
|
-
* Renders a Button with combobox ARIA attributes, wrapped in a Tooltip.
|
|
49
|
-
*
|
|
50
|
-
* Framework-specific components (Tooltip) are passed as a second argument
|
|
51
|
-
* by the React/Vue wrappers.
|
|
52
|
-
*
|
|
53
|
-
* @param props Component props.
|
|
54
|
-
* @param components Injected framework-specific components.
|
|
55
|
-
* @return JSX element.
|
|
56
|
-
*/
|
|
57
|
-
export declare const ComboboxButton: (props: ComboboxButtonProps, { Button, Tooltip }: ComboboxButtonComponents) => import("react").JSX.Element;
|