@lumx/core 4.17.1-alpha.1 → 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 -186
- package/js/components/Combobox/Tests.d.ts +0 -169
- 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 -166
- 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,55 +0,0 @@
|
|
|
1
|
-
import { ColorPalette, Emphasis, Size } from '../../constants';
|
|
2
|
-
import { HasTheme, HasAriaDisabled, AriaAttributes, HasClassName } from '../../types';
|
|
3
|
-
import { BaseClickableProps } from '../RawClickable';
|
|
4
|
-
/**
|
|
5
|
-
* Button size definition.
|
|
6
|
-
*/
|
|
7
|
-
export type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
8
|
-
export interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
9
|
-
/** Color variant. */
|
|
10
|
-
color?: ColorPalette;
|
|
11
|
-
/** Emphasis variant. */
|
|
12
|
-
emphasis?: Emphasis;
|
|
13
|
-
/** Whether or not the button has a background color in low emphasis. */
|
|
14
|
-
hasBackground?: boolean;
|
|
15
|
-
/** Native anchor href property. It determines whether the Button will be a <button> or an <a>. */
|
|
16
|
-
href?: string;
|
|
17
|
-
/** Whether the component is disabled or not. */
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
/** Whether the component is selected or not (unsupported in `high` emphasis). */
|
|
20
|
-
isSelected?: boolean;
|
|
21
|
-
/** Native button name property. */
|
|
22
|
-
name?: string;
|
|
23
|
-
/** Size variant. */
|
|
24
|
-
size?: ButtonSize;
|
|
25
|
-
/** Native anchor target property. */
|
|
26
|
-
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
27
|
-
/** Native button type. */
|
|
28
|
-
type?: 'submit' | 'reset' | 'button' | undefined;
|
|
29
|
-
/** Custom component for the link (can be used to inject router Link). */
|
|
30
|
-
linkAs?: 'a' | any;
|
|
31
|
-
/** whether the button is dispalyed in full width or not */
|
|
32
|
-
fullWidth?: boolean;
|
|
33
|
-
/** whether the button is currently active or not */
|
|
34
|
-
isActive?: boolean;
|
|
35
|
-
/** whether the button is currently focused or not */
|
|
36
|
-
isFocused?: boolean;
|
|
37
|
-
/** whether the button is currently focused or not */
|
|
38
|
-
isHovered?: boolean;
|
|
39
|
-
}
|
|
40
|
-
export interface ButtonRootProps extends BaseButtonProps {
|
|
41
|
-
variant: 'button' | 'icon';
|
|
42
|
-
}
|
|
43
|
-
export declare const BUTTON_WRAPPER_CLASSNAME = "lumx-button-wrapper";
|
|
44
|
-
export declare const BUTTON_CLASSNAME = "lumx-button";
|
|
45
|
-
/**
|
|
46
|
-
* ButtonRoot component.
|
|
47
|
-
*
|
|
48
|
-
* @param props Component props.
|
|
49
|
-
* @return JSX Element.
|
|
50
|
-
*/
|
|
51
|
-
export declare const ButtonRoot: {
|
|
52
|
-
(props: ButtonRootProps): import("react").JSX.Element;
|
|
53
|
-
displayName: string;
|
|
54
|
-
defaultProps: {};
|
|
55
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '@lumx/core/testing';
|
|
2
|
-
import { ButtonRootProps } from './ButtonRoot';
|
|
3
|
-
type SetupProps = Partial<ButtonRootProps>;
|
|
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<ButtonRootProps>) => {
|
|
8
|
-
props: any;
|
|
9
|
-
button: HTMLElement;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: (renderOptions: SetupOptions<ButtonRootProps>) => void;
|
|
12
|
-
export default _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { BaseButtonProps } from './ButtonRoot';
|
|
2
|
-
import type { LumxClassName } from '../../types';
|
|
3
|
-
export interface IconButtonProps extends BaseButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* Icon (SVG path).
|
|
6
|
-
* If `image` is also set, `image` will be used instead.
|
|
7
|
-
*/
|
|
8
|
-
icon?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Image (image url).
|
|
11
|
-
* Has priority over `icon`.
|
|
12
|
-
*/
|
|
13
|
-
image?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Label text (required for a11y purpose).
|
|
16
|
-
* If you really don't want an aria-label, you can set an empty label (this is not recommended).
|
|
17
|
-
*/
|
|
18
|
-
label: string;
|
|
19
|
-
/** text to be displayed on hover */
|
|
20
|
-
title?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Component display name.
|
|
24
|
-
*/
|
|
25
|
-
export declare const COMPONENT_NAME = "IconButton";
|
|
26
|
-
/**
|
|
27
|
-
* Component default class name and class prefix.
|
|
28
|
-
*/
|
|
29
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
30
|
-
/**
|
|
31
|
-
* Component default props.
|
|
32
|
-
*/
|
|
33
|
-
export declare const DEFAULT_PROPS: Partial<IconButtonProps>;
|
|
34
|
-
/**
|
|
35
|
-
* IconButton component.
|
|
36
|
-
*
|
|
37
|
-
* @param props Component props.
|
|
38
|
-
* @return JSX element.
|
|
39
|
-
*/
|
|
40
|
-
export declare const IconButton: {
|
|
41
|
-
(props: IconButtonProps): import("react").JSX.Element;
|
|
42
|
-
displayName: string;
|
|
43
|
-
className: "lumx-icon-button";
|
|
44
|
-
defaultProps: Partial<IconButtonProps>;
|
|
45
|
-
};
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { Emphasis } from '@lumx/core/js/constants';
|
|
2
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
3
|
-
import { ButtonSize } from './ButtonRoot';
|
|
4
|
-
/**
|
|
5
|
-
* Setup IconButton stories for a specific framework (React or Vue).
|
|
6
|
-
* This function creates all the stories with the appropriate decorators.
|
|
7
|
-
* Framework-specific components are injected via `components`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function setup({ component: IconButton, decorators: { withCombinations, withThemedBackground }, }: SetupStoriesOptions<{
|
|
10
|
-
decorators: 'withCombinations' | 'withThemedBackground';
|
|
11
|
-
}>): {
|
|
12
|
-
meta: {
|
|
13
|
-
component: any;
|
|
14
|
-
render: (args: any) => import("react").JSX.Element;
|
|
15
|
-
argTypes: {
|
|
16
|
-
isSelected: {
|
|
17
|
-
control: string;
|
|
18
|
-
};
|
|
19
|
-
isDisabled: {
|
|
20
|
-
control: string;
|
|
21
|
-
};
|
|
22
|
-
hasBackground: {
|
|
23
|
-
control: string;
|
|
24
|
-
};
|
|
25
|
-
emphasis: {
|
|
26
|
-
control: {
|
|
27
|
-
type: "select" | "inline-radio";
|
|
28
|
-
};
|
|
29
|
-
options: ("medium" | "low" | "high")[];
|
|
30
|
-
mapping: Record<string, "medium" | "low" | "high"> | undefined;
|
|
31
|
-
};
|
|
32
|
-
size: {
|
|
33
|
-
control: {
|
|
34
|
-
type: "select" | "inline-radio";
|
|
35
|
-
};
|
|
36
|
-
options: ButtonSize[];
|
|
37
|
-
mapping: Record<string, ButtonSize> | undefined;
|
|
38
|
-
};
|
|
39
|
-
icon: {
|
|
40
|
-
control: {
|
|
41
|
-
type: string;
|
|
42
|
-
};
|
|
43
|
-
options: {
|
|
44
|
-
undefined: undefined;
|
|
45
|
-
mdiAbTesting: string;
|
|
46
|
-
mdiAbjadArabic: string;
|
|
47
|
-
mdiAccount: string;
|
|
48
|
-
mdiAccountBox: string;
|
|
49
|
-
mdiAlert: string;
|
|
50
|
-
mdiAlertCircle: string;
|
|
51
|
-
mdiArrowDown: string;
|
|
52
|
-
mdiArrowUp: string;
|
|
53
|
-
mdiAtom: string;
|
|
54
|
-
mdiBee: string;
|
|
55
|
-
mdiBell: string;
|
|
56
|
-
mdiBullhornOutline: string;
|
|
57
|
-
mdiCheck: string;
|
|
58
|
-
mdiCheckCircle: string;
|
|
59
|
-
mdiChevronDown: string;
|
|
60
|
-
mdiChevronLeft: string;
|
|
61
|
-
mdiChevronRight: string;
|
|
62
|
-
mdiChevronUp: string;
|
|
63
|
-
mdiClose: string;
|
|
64
|
-
mdiCloseCircle: string;
|
|
65
|
-
mdiDelete: string;
|
|
66
|
-
mdiDotsHorizontal: string;
|
|
67
|
-
mdiDragVertical: string;
|
|
68
|
-
mdiEarth: string;
|
|
69
|
-
mdiEmail: string;
|
|
70
|
-
mdiEye: string;
|
|
71
|
-
mdiFileEdit: string;
|
|
72
|
-
mdiFlag: string;
|
|
73
|
-
mdiFolder: string;
|
|
74
|
-
mdiFolderGoogleDrive: string;
|
|
75
|
-
mdiFoodApple: string;
|
|
76
|
-
mdiGoogleCirclesExtended: string;
|
|
77
|
-
mdiHeart: string;
|
|
78
|
-
mdiHome: string;
|
|
79
|
-
mdiImageBroken: string;
|
|
80
|
-
mdiInformation: string;
|
|
81
|
-
mdiLink: string;
|
|
82
|
-
mdiMagnifyMinusOutline: string;
|
|
83
|
-
mdiMagnifyPlusOutline: string;
|
|
84
|
-
mdiMenuDown: string;
|
|
85
|
-
mdiMessageTextOutline: string;
|
|
86
|
-
mdiMinus: string;
|
|
87
|
-
mdiOpenInNew: string;
|
|
88
|
-
mdiPauseCircleOutline: string;
|
|
89
|
-
mdiPencil: string;
|
|
90
|
-
mdiPlay: string;
|
|
91
|
-
mdiPlayCircleOutline: string;
|
|
92
|
-
mdiPlus: string;
|
|
93
|
-
mdiRadioboxBlank: string;
|
|
94
|
-
mdiRadioboxMarked: string;
|
|
95
|
-
mdiReply: string;
|
|
96
|
-
mdiSend: string;
|
|
97
|
-
mdiStar: string;
|
|
98
|
-
mdiTextBox: string;
|
|
99
|
-
mdiTextBoxPlus: string;
|
|
100
|
-
mdiTram: string;
|
|
101
|
-
mdiTranslate: string;
|
|
102
|
-
mdiViewList: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
color: {
|
|
106
|
-
control: {
|
|
107
|
-
type: "select" | "inline-radio";
|
|
108
|
-
};
|
|
109
|
-
options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
|
|
110
|
-
mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
|
|
111
|
-
};
|
|
112
|
-
ref: {
|
|
113
|
-
table: {
|
|
114
|
-
disable: boolean;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
onClick: {
|
|
118
|
-
action: boolean;
|
|
119
|
-
table: {
|
|
120
|
-
disable: boolean;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
linkAs: {
|
|
124
|
-
table: {
|
|
125
|
-
disable: boolean;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
className: {
|
|
129
|
-
table: {
|
|
130
|
-
disable: boolean;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
target: {
|
|
134
|
-
if: {
|
|
135
|
-
arg: string;
|
|
136
|
-
exists: boolean;
|
|
137
|
-
};
|
|
138
|
-
control: {
|
|
139
|
-
type: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
type: {
|
|
143
|
-
if: {
|
|
144
|
-
arg: string;
|
|
145
|
-
exists: boolean;
|
|
146
|
-
};
|
|
147
|
-
control: {
|
|
148
|
-
type: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
args: {
|
|
153
|
-
label: string;
|
|
154
|
-
icon: string;
|
|
155
|
-
image?: string | undefined;
|
|
156
|
-
title?: string | undefined;
|
|
157
|
-
color?: import("@lumx/core/js/constants").ColorPalette | undefined;
|
|
158
|
-
emphasis?: Emphasis | undefined;
|
|
159
|
-
hasBackground?: boolean | undefined;
|
|
160
|
-
href?: string | undefined;
|
|
161
|
-
isDisabled?: boolean | undefined;
|
|
162
|
-
isSelected?: boolean | undefined;
|
|
163
|
-
name?: string | undefined;
|
|
164
|
-
size?: ButtonSize | undefined;
|
|
165
|
-
target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
|
|
166
|
-
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
167
|
-
linkAs?: "a" | any;
|
|
168
|
-
fullWidth?: boolean | undefined;
|
|
169
|
-
isActive?: boolean | undefined;
|
|
170
|
-
isFocused?: boolean | undefined;
|
|
171
|
-
isHovered?: boolean | undefined;
|
|
172
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
173
|
-
'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
174
|
-
'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined;
|
|
175
|
-
'aria-label'?: string | undefined;
|
|
176
|
-
className?: string | undefined;
|
|
177
|
-
theme?: import("@lumx/core/js/constants").Theme | undefined;
|
|
178
|
-
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
179
|
-
children?: import("react").ReactNode;
|
|
180
|
-
handleClick?: ((event?: any) => void) | undefined;
|
|
181
|
-
handleKeyPress?: ((event?: any) => void) | undefined;
|
|
182
|
-
ref?: import("../../types").CommonRef;
|
|
183
|
-
disabled?: boolean | undefined;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
Default: {};
|
|
187
|
-
WithImage: {
|
|
188
|
-
argTypes: {
|
|
189
|
-
control: {
|
|
190
|
-
type: "select" | "inline-radio";
|
|
191
|
-
};
|
|
192
|
-
options: string[];
|
|
193
|
-
mapping: Record<string, string> | undefined;
|
|
194
|
-
};
|
|
195
|
-
args: {
|
|
196
|
-
image: string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
IconStateVariations: {
|
|
200
|
-
args: {};
|
|
201
|
-
argTypes: {
|
|
202
|
-
[k: string]: {
|
|
203
|
-
table: {
|
|
204
|
-
disable: boolean;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
decorators: ((story: any, context: any) => any)[];
|
|
209
|
-
};
|
|
210
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '@lumx/core/testing';
|
|
2
|
-
import { IconButtonProps } from './IconButton';
|
|
3
|
-
type SetupProps = Partial<IconButtonProps>;
|
|
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<IconButtonProps>) => {
|
|
8
|
-
props: any;
|
|
9
|
-
iconButton: HTMLElement;
|
|
10
|
-
icon: HTMLElement | null;
|
|
11
|
-
img: HTMLElement | null;
|
|
12
|
-
wrapper: Partial<import("@lumx/core/testing").SetupResult>;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: (renderOptions: SetupOptions<IconButtonProps>) => void;
|
|
15
|
-
export default _default;
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
import { Emphasis, Theme } from '@lumx/core/js/constants';
|
|
2
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
3
|
-
import { ButtonSize } from './ButtonRoot';
|
|
4
|
-
export declare const excludeCombination: ({ isSelected, emphasis, hasBackground }: any) => boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Setup Button stories for a specific framework (React or Vue).
|
|
7
|
-
* This function creates all the stories with the appropriate decorators.
|
|
8
|
-
* Framework-specific components are injected via `components`.
|
|
9
|
-
*/
|
|
10
|
-
export declare function setup({ component: Button, decorators: { withCombinations, withThemedBackground }, }: SetupStoriesOptions<{
|
|
11
|
-
decorators: 'withCombinations' | 'withThemedBackground';
|
|
12
|
-
}>): {
|
|
13
|
-
meta: {
|
|
14
|
-
component: any;
|
|
15
|
-
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
16
|
-
argTypes: {
|
|
17
|
-
isSelected: {
|
|
18
|
-
control: string;
|
|
19
|
-
if: {
|
|
20
|
-
arg: string;
|
|
21
|
-
eq: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
isDisabled: {
|
|
25
|
-
control: string;
|
|
26
|
-
};
|
|
27
|
-
hasBackground: {
|
|
28
|
-
control: string;
|
|
29
|
-
if: {
|
|
30
|
-
arg: string;
|
|
31
|
-
eq: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
emphasis: {
|
|
35
|
-
control: {
|
|
36
|
-
type: "select" | "inline-radio";
|
|
37
|
-
};
|
|
38
|
-
options: ("medium" | "low" | "high")[];
|
|
39
|
-
mapping: Record<string, "medium" | "low" | "high"> | undefined;
|
|
40
|
-
};
|
|
41
|
-
size: {
|
|
42
|
-
control: {
|
|
43
|
-
type: "select" | "inline-radio";
|
|
44
|
-
};
|
|
45
|
-
options: ButtonSize[];
|
|
46
|
-
mapping: Record<string, ButtonSize> | undefined;
|
|
47
|
-
};
|
|
48
|
-
rightIcon: {
|
|
49
|
-
control: {
|
|
50
|
-
type: string;
|
|
51
|
-
};
|
|
52
|
-
options: {
|
|
53
|
-
undefined: undefined;
|
|
54
|
-
mdiAbTesting: string;
|
|
55
|
-
mdiAbjadArabic: string;
|
|
56
|
-
mdiAccount: string;
|
|
57
|
-
mdiAccountBox: string;
|
|
58
|
-
mdiAlert: string;
|
|
59
|
-
mdiAlertCircle: string;
|
|
60
|
-
mdiArrowDown: string;
|
|
61
|
-
mdiArrowUp: string;
|
|
62
|
-
mdiAtom: string;
|
|
63
|
-
mdiBee: string;
|
|
64
|
-
mdiBell: string;
|
|
65
|
-
mdiBullhornOutline: string;
|
|
66
|
-
mdiCheck: string;
|
|
67
|
-
mdiCheckCircle: string;
|
|
68
|
-
mdiChevronDown: string;
|
|
69
|
-
mdiChevronLeft: string;
|
|
70
|
-
mdiChevronRight: string;
|
|
71
|
-
mdiChevronUp: string;
|
|
72
|
-
mdiClose: string;
|
|
73
|
-
mdiCloseCircle: string;
|
|
74
|
-
mdiDelete: string;
|
|
75
|
-
mdiDotsHorizontal: string;
|
|
76
|
-
mdiDragVertical: string;
|
|
77
|
-
mdiEarth: string;
|
|
78
|
-
mdiEmail: string;
|
|
79
|
-
mdiEye: string;
|
|
80
|
-
mdiFileEdit: string;
|
|
81
|
-
mdiFlag: string;
|
|
82
|
-
mdiFolder: string;
|
|
83
|
-
mdiFolderGoogleDrive: string;
|
|
84
|
-
mdiFoodApple: string;
|
|
85
|
-
mdiGoogleCirclesExtended: string;
|
|
86
|
-
mdiHeart: string;
|
|
87
|
-
mdiHome: string;
|
|
88
|
-
mdiImageBroken: string;
|
|
89
|
-
mdiInformation: string;
|
|
90
|
-
mdiLink: string;
|
|
91
|
-
mdiMagnifyMinusOutline: string;
|
|
92
|
-
mdiMagnifyPlusOutline: string;
|
|
93
|
-
mdiMenuDown: string;
|
|
94
|
-
mdiMessageTextOutline: string;
|
|
95
|
-
mdiMinus: string;
|
|
96
|
-
mdiOpenInNew: string;
|
|
97
|
-
mdiPauseCircleOutline: string;
|
|
98
|
-
mdiPencil: string;
|
|
99
|
-
mdiPlay: string;
|
|
100
|
-
mdiPlayCircleOutline: string;
|
|
101
|
-
mdiPlus: string;
|
|
102
|
-
mdiRadioboxBlank: string;
|
|
103
|
-
mdiRadioboxMarked: string;
|
|
104
|
-
mdiReply: string;
|
|
105
|
-
mdiSend: string;
|
|
106
|
-
mdiStar: string;
|
|
107
|
-
mdiTextBox: string;
|
|
108
|
-
mdiTextBoxPlus: string;
|
|
109
|
-
mdiTram: string;
|
|
110
|
-
mdiTranslate: string;
|
|
111
|
-
mdiViewList: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
leftIcon: {
|
|
115
|
-
control: {
|
|
116
|
-
type: string;
|
|
117
|
-
};
|
|
118
|
-
options: {
|
|
119
|
-
undefined: undefined;
|
|
120
|
-
mdiAbTesting: string;
|
|
121
|
-
mdiAbjadArabic: string;
|
|
122
|
-
mdiAccount: string;
|
|
123
|
-
mdiAccountBox: string;
|
|
124
|
-
mdiAlert: string;
|
|
125
|
-
mdiAlertCircle: string;
|
|
126
|
-
mdiArrowDown: string;
|
|
127
|
-
mdiArrowUp: string;
|
|
128
|
-
mdiAtom: string;
|
|
129
|
-
mdiBee: string;
|
|
130
|
-
mdiBell: string;
|
|
131
|
-
mdiBullhornOutline: string;
|
|
132
|
-
mdiCheck: string;
|
|
133
|
-
mdiCheckCircle: string;
|
|
134
|
-
mdiChevronDown: string;
|
|
135
|
-
mdiChevronLeft: string;
|
|
136
|
-
mdiChevronRight: string;
|
|
137
|
-
mdiChevronUp: string;
|
|
138
|
-
mdiClose: string;
|
|
139
|
-
mdiCloseCircle: string;
|
|
140
|
-
mdiDelete: string;
|
|
141
|
-
mdiDotsHorizontal: string;
|
|
142
|
-
mdiDragVertical: string;
|
|
143
|
-
mdiEarth: string;
|
|
144
|
-
mdiEmail: string;
|
|
145
|
-
mdiEye: string;
|
|
146
|
-
mdiFileEdit: string;
|
|
147
|
-
mdiFlag: string;
|
|
148
|
-
mdiFolder: string;
|
|
149
|
-
mdiFolderGoogleDrive: string;
|
|
150
|
-
mdiFoodApple: string;
|
|
151
|
-
mdiGoogleCirclesExtended: string;
|
|
152
|
-
mdiHeart: string;
|
|
153
|
-
mdiHome: string;
|
|
154
|
-
mdiImageBroken: string;
|
|
155
|
-
mdiInformation: string;
|
|
156
|
-
mdiLink: string;
|
|
157
|
-
mdiMagnifyMinusOutline: string;
|
|
158
|
-
mdiMagnifyPlusOutline: string;
|
|
159
|
-
mdiMenuDown: string;
|
|
160
|
-
mdiMessageTextOutline: string;
|
|
161
|
-
mdiMinus: string;
|
|
162
|
-
mdiOpenInNew: string;
|
|
163
|
-
mdiPauseCircleOutline: string;
|
|
164
|
-
mdiPencil: string;
|
|
165
|
-
mdiPlay: string;
|
|
166
|
-
mdiPlayCircleOutline: string;
|
|
167
|
-
mdiPlus: string;
|
|
168
|
-
mdiRadioboxBlank: string;
|
|
169
|
-
mdiRadioboxMarked: string;
|
|
170
|
-
mdiReply: string;
|
|
171
|
-
mdiSend: string;
|
|
172
|
-
mdiStar: string;
|
|
173
|
-
mdiTextBox: string;
|
|
174
|
-
mdiTextBoxPlus: string;
|
|
175
|
-
mdiTram: string;
|
|
176
|
-
mdiTranslate: string;
|
|
177
|
-
mdiViewList: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
color: {
|
|
181
|
-
control: {
|
|
182
|
-
type: "select" | "inline-radio";
|
|
183
|
-
};
|
|
184
|
-
options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
|
|
185
|
-
mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
|
|
186
|
-
};
|
|
187
|
-
ref: {
|
|
188
|
-
table: {
|
|
189
|
-
disable: boolean;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
onClick: {
|
|
193
|
-
action: boolean;
|
|
194
|
-
table: {
|
|
195
|
-
disable: boolean;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
linkAs: {
|
|
199
|
-
table: {
|
|
200
|
-
disable: boolean;
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
className: {
|
|
204
|
-
table: {
|
|
205
|
-
disable: boolean;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
target: {
|
|
209
|
-
if: {
|
|
210
|
-
arg: string;
|
|
211
|
-
exists: boolean;
|
|
212
|
-
};
|
|
213
|
-
control: {
|
|
214
|
-
type: string;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
type: {
|
|
218
|
-
if: {
|
|
219
|
-
arg: string;
|
|
220
|
-
exists: boolean;
|
|
221
|
-
};
|
|
222
|
-
control: {
|
|
223
|
-
type: string;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
args: {
|
|
228
|
-
children: string;
|
|
229
|
-
leftIcon?: string | undefined;
|
|
230
|
-
rightIcon?: string | undefined;
|
|
231
|
-
fullWidth?: boolean | undefined;
|
|
232
|
-
color?: import("@lumx/core/js/constants").ColorPalette | undefined;
|
|
233
|
-
emphasis?: Emphasis | undefined;
|
|
234
|
-
hasBackground?: boolean | undefined;
|
|
235
|
-
href?: string | undefined;
|
|
236
|
-
isDisabled?: boolean | undefined;
|
|
237
|
-
isSelected?: boolean | undefined;
|
|
238
|
-
name?: string | undefined;
|
|
239
|
-
size?: ButtonSize | undefined;
|
|
240
|
-
target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
|
|
241
|
-
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
242
|
-
linkAs?: "a" | any;
|
|
243
|
-
isActive?: boolean | undefined;
|
|
244
|
-
isFocused?: boolean | undefined;
|
|
245
|
-
isHovered?: boolean | undefined;
|
|
246
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
247
|
-
'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
248
|
-
'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined;
|
|
249
|
-
'aria-label'?: string | undefined;
|
|
250
|
-
className?: string | undefined;
|
|
251
|
-
theme?: Theme | undefined;
|
|
252
|
-
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
253
|
-
handleClick?: ((event?: any) => void) | undefined;
|
|
254
|
-
handleKeyPress?: ((event?: any) => void) | undefined;
|
|
255
|
-
ref?: import("../../types").CommonRef;
|
|
256
|
-
disabled?: boolean | undefined;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
/** Default button */
|
|
260
|
-
Base: {
|
|
261
|
-
args: {
|
|
262
|
-
children: string;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
/** All combinations of size and emphasis */
|
|
266
|
-
SizeAndEmphasis: {
|
|
267
|
-
args: {
|
|
268
|
-
children: string;
|
|
269
|
-
};
|
|
270
|
-
argTypes: {
|
|
271
|
-
[k: string]: {
|
|
272
|
-
table: {
|
|
273
|
-
disable: boolean;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
decorators: ((story: any, context: any) => any)[];
|
|
278
|
-
};
|
|
279
|
-
/** Setting a href to transform the button into a link. */
|
|
280
|
-
LinkButton: {
|
|
281
|
-
args: {
|
|
282
|
-
href: string;
|
|
283
|
-
children: string;
|
|
284
|
-
};
|
|
285
|
-
decorators: ((story: any, context: any) => any)[];
|
|
286
|
-
};
|
|
287
|
-
/** Check button style variations (color, states, emphasis, etc.) */
|
|
288
|
-
StateVariations: {
|
|
289
|
-
args: {
|
|
290
|
-
children: string;
|
|
291
|
-
rightIcon: string;
|
|
292
|
-
};
|
|
293
|
-
argTypes: {
|
|
294
|
-
[k: string]: {
|
|
295
|
-
table: {
|
|
296
|
-
disable: boolean;
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
decorators: ((story: any, context: any) => any)[];
|
|
301
|
-
};
|
|
302
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
type SetupProps = Partial<ButtonProps>;
|
|
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<ButtonProps>) => {
|
|
8
|
-
props: any;
|
|
9
|
-
button: HTMLElement;
|
|
10
|
-
buttonWrapper: HTMLElement | null;
|
|
11
|
-
icons: HTMLElement[];
|
|
12
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: (renderOptions: SetupOptions<ButtonProps>) => void;
|
|
15
|
-
export default _default;
|