@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,24 +0,0 @@
|
|
|
1
|
-
import type { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
import { CommonRef, HasClassName, HasTheme } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Defines the props of the component.
|
|
5
|
-
*/
|
|
6
|
-
export interface RawInputTextProps extends HasTheme, HasClassName {
|
|
7
|
-
value?: string;
|
|
8
|
-
type?: HTMLInputTypeAttribute;
|
|
9
|
-
name?: string | undefined;
|
|
10
|
-
ref?: CommonRef;
|
|
11
|
-
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
12
|
-
handleInput?: (value: string, name?: string, event?: any) => void;
|
|
13
|
-
handleFocus?: (event?: any) => void;
|
|
14
|
-
handleBlur?: (event?: any) => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Component default props.
|
|
18
|
-
*/
|
|
19
|
-
export declare const DEFAULT_PROPS: Partial<RawInputTextProps>;
|
|
20
|
-
/**
|
|
21
|
-
* Raw input text component
|
|
22
|
-
* (input element without any decoration)
|
|
23
|
-
*/
|
|
24
|
-
export declare const RawInputText: (props: RawInputTextProps) => import("react").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
export declare function setup({ component: RawInputText, decorators: { withValueOnChange, withWrapper }, }: SetupStoriesOptions<{
|
|
3
|
-
decorators: 'withValueOnChange' | 'withWrapper';
|
|
4
|
-
}>): {
|
|
5
|
-
meta: {
|
|
6
|
-
component: any;
|
|
7
|
-
args: Partial<import("./RawInputText").RawInputTextProps>;
|
|
8
|
-
decorators: ((story: any, context: any) => any)[];
|
|
9
|
-
};
|
|
10
|
-
Default: {};
|
|
11
|
-
WithPlaceholder: {
|
|
12
|
-
args: {
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -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
|
-
input: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CommonRef, HasClassName, HasTheme } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Defines the props of the component.
|
|
4
|
-
*/
|
|
5
|
-
export interface RawInputTextareaProps extends HasTheme, HasClassName {
|
|
6
|
-
value?: string;
|
|
7
|
-
rows?: number;
|
|
8
|
-
name?: string | undefined;
|
|
9
|
-
ref?: CommonRef;
|
|
10
|
-
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
11
|
-
handleInput?: (value: string, name?: string, event?: any) => void;
|
|
12
|
-
handleFocus?: (event?: any) => void;
|
|
13
|
-
handleBlur?: (event?: any) => void;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Component default props.
|
|
17
|
-
*/
|
|
18
|
-
export declare const DEFAULT_PROPS: Partial<RawInputTextareaProps>;
|
|
19
|
-
/**
|
|
20
|
-
* Raw input textarea component
|
|
21
|
-
* (textarea element without any decoration)
|
|
22
|
-
*/
|
|
23
|
-
export declare const RawInputTextarea: (props: RawInputTextareaProps) => import("react").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
export declare function setup({ component: RawInputTextarea, decorators: { withValueOnChange, withWrapper }, }: SetupStoriesOptions<{
|
|
3
|
-
decorators: 'withValueOnChange' | 'withWrapper';
|
|
4
|
-
}>): {
|
|
5
|
-
meta: {
|
|
6
|
-
component: any;
|
|
7
|
-
args: Partial<import("./RawInputTextarea").RawInputTextareaProps>;
|
|
8
|
-
decorators: ((story: any, context: any) => any)[];
|
|
9
|
-
};
|
|
10
|
-
Default: {};
|
|
11
|
-
WithMinimumRows: {
|
|
12
|
-
args: {
|
|
13
|
-
rows: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
WithPlaceholder: {
|
|
17
|
-
args: {
|
|
18
|
-
placeholder: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -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
|
-
textarea: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
export declare function setup({ component: TextField, components: { Chip, IconButton, Typography }, decorators: { withValueOnChange, withCombinations }, }: SetupStoriesOptions<{
|
|
3
|
-
decorators: 'withValueOnChange' | 'withCombinations';
|
|
4
|
-
components: {
|
|
5
|
-
Chip: any;
|
|
6
|
-
IconButton: any;
|
|
7
|
-
Typography: any;
|
|
8
|
-
};
|
|
9
|
-
}>): {
|
|
10
|
-
meta: {
|
|
11
|
-
component: any;
|
|
12
|
-
argTypes: {
|
|
13
|
-
clearButtonProps: {
|
|
14
|
-
control: boolean;
|
|
15
|
-
};
|
|
16
|
-
chips: {
|
|
17
|
-
control: boolean;
|
|
18
|
-
};
|
|
19
|
-
afterElement: {
|
|
20
|
-
control: boolean;
|
|
21
|
-
};
|
|
22
|
-
onClear: {
|
|
23
|
-
action: boolean;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
decorators: ((story: any, context: any) => any)[];
|
|
27
|
-
};
|
|
28
|
-
Default: {
|
|
29
|
-
args: {
|
|
30
|
-
value: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
Placeholder: {
|
|
34
|
-
args: {
|
|
35
|
-
value: string;
|
|
36
|
-
placeholder: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
LabelAndHelper: {
|
|
40
|
-
args: {
|
|
41
|
-
label: string;
|
|
42
|
-
helper: string;
|
|
43
|
-
value: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
CustomLabelAndHelper: {
|
|
47
|
-
render: (args: any) => import("react").JSX.Element;
|
|
48
|
-
};
|
|
49
|
-
NumberField: {
|
|
50
|
-
args: {
|
|
51
|
-
value: string;
|
|
52
|
-
type: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
TextareaField: {
|
|
56
|
-
args: {
|
|
57
|
-
value: string;
|
|
58
|
-
multiline: boolean;
|
|
59
|
-
minimumRows: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
Error: {
|
|
63
|
-
args: {
|
|
64
|
-
hasError: boolean;
|
|
65
|
-
error: string;
|
|
66
|
-
label: string;
|
|
67
|
-
helper: string;
|
|
68
|
-
value: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
Valid: {
|
|
72
|
-
args: {
|
|
73
|
-
isValid: boolean;
|
|
74
|
-
label: string;
|
|
75
|
-
helper: string;
|
|
76
|
-
value: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
MaxLength: {
|
|
80
|
-
args: {
|
|
81
|
-
value: string;
|
|
82
|
-
maxLength: number;
|
|
83
|
-
label: string;
|
|
84
|
-
helper: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
WithAfterElement: {
|
|
88
|
-
render: (args: any) => import("react").JSX.Element;
|
|
89
|
-
};
|
|
90
|
-
WithChips: {
|
|
91
|
-
render: (args: any) => import("react").JSX.Element;
|
|
92
|
-
};
|
|
93
|
-
Disabled: {
|
|
94
|
-
args: {
|
|
95
|
-
value: string;
|
|
96
|
-
label: string;
|
|
97
|
-
helper: string;
|
|
98
|
-
};
|
|
99
|
-
decorators: ((story: any, context: any) => any)[];
|
|
100
|
-
};
|
|
101
|
-
};
|
|
@@ -1,14 +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
|
-
element: HTMLElement;
|
|
8
|
-
inputNative: HTMLInputElement | HTMLTextAreaElement;
|
|
9
|
-
error: HTMLElement;
|
|
10
|
-
helper: HTMLElement;
|
|
11
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
12
|
-
};
|
|
13
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
14
|
-
export default _default;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { HasTheme, HasAriaDisabled, HasClassName, JSXElement, CommonRef, GenericProps, HasDisabled } from '../../types';
|
|
2
|
-
import { InputLabelProps } from '../InputLabel';
|
|
3
|
-
/**
|
|
4
|
-
* Defines the props of the component.
|
|
5
|
-
*/
|
|
6
|
-
export interface TextFieldProps extends HasClassName, HasTheme, HasAriaDisabled, HasDisabled {
|
|
7
|
-
/** Chip Group to be rendered before the main text input. */
|
|
8
|
-
chips?: JSXElement;
|
|
9
|
-
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
10
|
-
clearButtonProps?: GenericProps;
|
|
11
|
-
/** Error message. */
|
|
12
|
-
error?: string | JSXElement;
|
|
13
|
-
/** Whether we force the focus style or not. */
|
|
14
|
-
forceFocusStyle?: boolean;
|
|
15
|
-
/** Whether the text field is displayed with error style or not. */
|
|
16
|
-
hasError?: boolean;
|
|
17
|
-
/** Additional element to put at the end of the text field. */
|
|
18
|
-
afterElement?: JSXElement;
|
|
19
|
-
/** Helper text. */
|
|
20
|
-
helper?: string | JSXElement;
|
|
21
|
-
/** Icon (SVG path). */
|
|
22
|
-
icon?: string;
|
|
23
|
-
/** Native input id property (generated if not provided to link the label element). */
|
|
24
|
-
id?: string;
|
|
25
|
-
/** Generated helper id for accessibility attributes. */
|
|
26
|
-
helperId?: string;
|
|
27
|
-
/** Generated error id for accessibility attributes. */
|
|
28
|
-
errorId?: string;
|
|
29
|
-
/** Generated label id for accessibility attributes (used to link the clear button to the field label). */
|
|
30
|
-
labelId?: string;
|
|
31
|
-
/** Whether the component is required or not. */
|
|
32
|
-
isRequired?: boolean;
|
|
33
|
-
/** Whether the text field is displayed with valid style or not. */
|
|
34
|
-
isValid?: boolean;
|
|
35
|
-
/** Label text. */
|
|
36
|
-
label?: string;
|
|
37
|
-
/** Additional label props. */
|
|
38
|
-
labelProps?: InputLabelProps;
|
|
39
|
-
/** Max string length the input accepts (constrains the input and displays a character counter). */
|
|
40
|
-
maxLength?: number;
|
|
41
|
-
/** Whether the text field is a textarea or an input. */
|
|
42
|
-
multiline?: boolean;
|
|
43
|
-
/** Placeholder text. */
|
|
44
|
-
placeholder?: string;
|
|
45
|
-
/** Reference to the wrapper. */
|
|
46
|
-
textFieldRef?: CommonRef;
|
|
47
|
-
/** Value. */
|
|
48
|
-
value?: string;
|
|
49
|
-
/** Whether any part is disabled. */
|
|
50
|
-
isAnyDisabled?: boolean;
|
|
51
|
-
/** The input element (input or textarea). */
|
|
52
|
-
input: JSXElement;
|
|
53
|
-
/** Whether the input is focused. */
|
|
54
|
-
isFocus?: boolean;
|
|
55
|
-
/** IconButton component. */
|
|
56
|
-
IconButton: (props: Record<string, any>) => any;
|
|
57
|
-
/** Ref to the component root. */
|
|
58
|
-
ref?: CommonRef;
|
|
59
|
-
}
|
|
60
|
-
export type TextFieldPropsToOverride = 'input' | 'IconButton' | 'labelProps' | 'textFieldRef' | 'clearButtonProps' | 'helperId' | 'errorId' | 'labelId' | 'isAnyDisabled' | 'isFocus';
|
|
61
|
-
/**
|
|
62
|
-
* Generate unique accessibility IDs for helper and error texts.
|
|
63
|
-
* Combines them with any existing aria-describedby in priority order (error > helper > existing).
|
|
64
|
-
*
|
|
65
|
-
* @param helper Helper text content
|
|
66
|
-
* @param error Error text content
|
|
67
|
-
* @param generatedId Unique ID for this text field instance
|
|
68
|
-
* @param existingAriaDescribedBy Existing aria-describedby value to merge
|
|
69
|
-
* @return Object containing helperId, errorId, and combined describedById
|
|
70
|
-
*/
|
|
71
|
-
export declare function generateAccessibilityIds(helper: TextFieldProps['helper'], error: TextFieldProps['error'], generatedId: string, existingAriaDescribedBy?: string, label?: TextFieldProps['label']): {
|
|
72
|
-
helperId?: string;
|
|
73
|
-
errorId?: string;
|
|
74
|
-
describedById?: string;
|
|
75
|
-
labelId?: string;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* TextField component.
|
|
79
|
-
*
|
|
80
|
-
* @param props Component props.
|
|
81
|
-
* @param ref Component ref.
|
|
82
|
-
* @return React element.
|
|
83
|
-
*/
|
|
84
|
-
export declare const TextField: (props: TextFieldProps) => import("react").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LumxClassName } from '@lumx/core/js/types';
|
|
2
|
-
/**
|
|
3
|
-
* Component display name.
|
|
4
|
-
*/
|
|
5
|
-
export declare const COMPONENT_NAME = "TextField";
|
|
6
|
-
/**
|
|
7
|
-
* Component default class name and class prefix.
|
|
8
|
-
*/
|
|
9
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
10
|
-
/**
|
|
11
|
-
* Input native element class name.
|
|
12
|
-
*/
|
|
13
|
-
export declare const INPUT_NATIVE_CLASSNAME: string;
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
import { AspectRatio } from '../../constants';
|
|
3
|
-
import { ThumbnailObjectFit, ThumbnailVariant } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Setup Thumbnail stories for a specific framework (React or Vue).
|
|
6
|
-
* This function creates all the stories with the appropriate decorators.
|
|
7
|
-
*/
|
|
8
|
-
export declare function setup({ component: Thumbnail, decorators: { withNestedProps, withWrapper, withCombinations }, }: SetupStoriesOptions<{
|
|
9
|
-
decorators: 'withNestedProps' | 'withWrapper' | 'withCombinations';
|
|
10
|
-
}>): {
|
|
11
|
-
meta: {
|
|
12
|
-
component: any;
|
|
13
|
-
render: (args: any) => import("react").JSX.Element;
|
|
14
|
-
argTypes: {
|
|
15
|
-
image: {
|
|
16
|
-
control: {
|
|
17
|
-
type: "select" | "inline-radio";
|
|
18
|
-
};
|
|
19
|
-
options: string[];
|
|
20
|
-
mapping: Record<string, string> | undefined;
|
|
21
|
-
};
|
|
22
|
-
align: {
|
|
23
|
-
control: {
|
|
24
|
-
type: "select" | "inline-radio";
|
|
25
|
-
};
|
|
26
|
-
options: ("center" | "right" | "left")[];
|
|
27
|
-
mapping: Record<string, "center" | "right" | "left"> | undefined;
|
|
28
|
-
};
|
|
29
|
-
variant: {
|
|
30
|
-
control: {
|
|
31
|
-
type: "select" | "inline-radio";
|
|
32
|
-
};
|
|
33
|
-
options: ("squared" | "rounded")[];
|
|
34
|
-
mapping: Record<string, "squared" | "rounded"> | undefined;
|
|
35
|
-
};
|
|
36
|
-
aspectRatio: {
|
|
37
|
-
control: {
|
|
38
|
-
type: "select" | "inline-radio";
|
|
39
|
-
};
|
|
40
|
-
options: ("vertical" | "horizontal" | "original" | "panoramic" | "wide" | "square" | "free")[];
|
|
41
|
-
mapping: Record<string, "vertical" | "horizontal" | "original" | "panoramic" | "wide" | "square" | "free"> | undefined;
|
|
42
|
-
};
|
|
43
|
-
fallback: {
|
|
44
|
-
control: boolean;
|
|
45
|
-
};
|
|
46
|
-
'focusPoint.x': {
|
|
47
|
-
control: {
|
|
48
|
-
type: string;
|
|
49
|
-
max: number;
|
|
50
|
-
min: number;
|
|
51
|
-
step: number;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
'focusPoint.y': {
|
|
55
|
-
control: {
|
|
56
|
-
type: string;
|
|
57
|
-
max: number;
|
|
58
|
-
min: number;
|
|
59
|
-
step: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
decorators: ((story: any, context: any) => any)[];
|
|
64
|
-
args: {
|
|
65
|
-
align?: import("../../constants").HorizontalAlignment | undefined;
|
|
66
|
-
alt?: string | undefined;
|
|
67
|
-
aspectRatio?: AspectRatio | undefined;
|
|
68
|
-
badge?: import("react").ReactNode;
|
|
69
|
-
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
70
|
-
fallback?: import("react").ReactNode;
|
|
71
|
-
fillHeight?: boolean | undefined;
|
|
72
|
-
image?: string | undefined;
|
|
73
|
-
loadingState?: string | undefined;
|
|
74
|
-
imgProps?: import("react").ImgHTMLAttributes<HTMLImageElement> | undefined;
|
|
75
|
-
imgRef?: import("../../types").CommonRef;
|
|
76
|
-
ref?: import("../../types").CommonRef;
|
|
77
|
-
isLoading?: boolean | undefined;
|
|
78
|
-
objectFit?: ThumbnailObjectFit | undefined;
|
|
79
|
-
size?: import("./types").ThumbnailSize | undefined;
|
|
80
|
-
loading?: "eager" | "lazy" | undefined;
|
|
81
|
-
loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement> | undefined;
|
|
82
|
-
handleClick?: ((event: any) => void) | undefined;
|
|
83
|
-
handleKeyPress?: ((event: any) => void) | undefined;
|
|
84
|
-
variant?: ThumbnailVariant | undefined;
|
|
85
|
-
linkProps?: import("../../types").GenericProps | undefined;
|
|
86
|
-
focusPointStyle?: import("../../types").GenericProps | undefined;
|
|
87
|
-
disabledStateProps?: import("../../types").GenericProps | undefined;
|
|
88
|
-
isAnyDisabled?: boolean | undefined;
|
|
89
|
-
linkAs?: "a" | any;
|
|
90
|
-
'aria-label'?: string | undefined;
|
|
91
|
-
theme?: import("../../constants").Theme | undefined;
|
|
92
|
-
className?: string | undefined;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
/** Simple thumbnail taking the size of the original image */
|
|
96
|
-
Simple: {
|
|
97
|
-
args: {
|
|
98
|
-
image: string;
|
|
99
|
-
};
|
|
100
|
-
decorators: ((story: any, context: any) => any)[];
|
|
101
|
-
};
|
|
102
|
-
/** Loading state */
|
|
103
|
-
IsLoading: {
|
|
104
|
-
args: {
|
|
105
|
-
image: string;
|
|
106
|
-
isLoading: boolean;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
WithoutSource: {
|
|
110
|
-
args: {
|
|
111
|
-
image: string;
|
|
112
|
-
size: "xxl";
|
|
113
|
-
aspectRatio: "square";
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
/** Demonstrate the focus point X on a vertical thumbnail containing an horizontal image */
|
|
117
|
-
FocusPointVertical: {
|
|
118
|
-
args: {
|
|
119
|
-
aspectRatio: "vertical";
|
|
120
|
-
size: "xxl";
|
|
121
|
-
image: string;
|
|
122
|
-
'focusPoint.x': number;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
/** Demonstrate the focus point Y on a horizontal thumbnail containing an vertical image */
|
|
126
|
-
FocusPointHorizontal: {
|
|
127
|
-
args: {
|
|
128
|
-
aspectRatio: "horizontal";
|
|
129
|
-
size: "xxl";
|
|
130
|
-
image: string;
|
|
131
|
-
'focusPoint.y': number;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
/** Setting `onClick` to turn the thumbnail into a button */
|
|
135
|
-
AsButton: {
|
|
136
|
-
args: {
|
|
137
|
-
image: string;
|
|
138
|
-
};
|
|
139
|
-
argTypes: {
|
|
140
|
-
onClick: {
|
|
141
|
-
action: boolean;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
/** Setting `linkProps.href` to turn the thumbnail into a link */
|
|
146
|
-
AsLink: {
|
|
147
|
-
args: {
|
|
148
|
-
image: string;
|
|
149
|
-
linkProps: {
|
|
150
|
-
href: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
/** Combinations of fillHeight and ratios */
|
|
155
|
-
FillHeightAndRatio: {
|
|
156
|
-
args: {
|
|
157
|
-
image: string;
|
|
158
|
-
fillHeight: boolean;
|
|
159
|
-
};
|
|
160
|
-
decorators: ((story: any, context: any) => any)[];
|
|
161
|
-
};
|
|
162
|
-
/** Simple thumbnail with svg image */
|
|
163
|
-
WithSvgImages: {
|
|
164
|
-
args: {
|
|
165
|
-
image: string;
|
|
166
|
-
size: "xxl";
|
|
167
|
-
fillHeight: boolean;
|
|
168
|
-
'focusPoint.x': number;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
/** Thumbnail letter-boxing */
|
|
172
|
-
ObjectFit: {
|
|
173
|
-
args: {
|
|
174
|
-
size: "xl";
|
|
175
|
-
};
|
|
176
|
-
decorators: ((story: any, context: any) => any)[];
|
|
177
|
-
};
|
|
178
|
-
};
|
|
@@ -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
|
-
thumbnail: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { ImgHTMLAttributes } from 'react';
|
|
2
|
-
import { AspectRatio, HorizontalAlignment } from '@lumx/core/js/constants';
|
|
3
|
-
import type { GenericProps, HasTheme, CommonRef, JSXElement, LumxClassName, HasClassName } from '@lumx/core/js/types';
|
|
4
|
-
import { ThumbnailSize, ThumbnailVariant, ThumbnailObjectFit } from './types';
|
|
5
|
-
type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
6
|
-
/**
|
|
7
|
-
* Defines the props of the component.
|
|
8
|
-
*/
|
|
9
|
-
export interface ThumbnailProps extends HasTheme, HasClassName {
|
|
10
|
-
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
11
|
-
align?: HorizontalAlignment;
|
|
12
|
-
/** Image alternative text. */
|
|
13
|
-
alt: string;
|
|
14
|
-
/** Image aspect ratio. */
|
|
15
|
-
aspectRatio?: AspectRatio;
|
|
16
|
-
/** Badge. */
|
|
17
|
-
badge?: JSXElement;
|
|
18
|
-
/** Image cross origin resource policy. */
|
|
19
|
-
crossOrigin?: ImgHTMLProps['crossOrigin'];
|
|
20
|
-
/** Fallback icon (SVG path) or react node when image fails to load. */
|
|
21
|
-
fallback?: string | JSXElement;
|
|
22
|
-
/** Whether the thumbnail should fill it's parent size (requires flex parent) or not. */
|
|
23
|
-
fillHeight?: boolean;
|
|
24
|
-
/** Image URL. */
|
|
25
|
-
image: string;
|
|
26
|
-
loadingState: string;
|
|
27
|
-
/** Props to inject into the native <img> element. */
|
|
28
|
-
imgProps?: ImgHTMLProps;
|
|
29
|
-
/** Reference to the native <img> element. */
|
|
30
|
-
imgRef?: CommonRef;
|
|
31
|
-
ref?: CommonRef;
|
|
32
|
-
/** Set to true to force the display of the loading skeleton. */
|
|
33
|
-
isLoading?: boolean;
|
|
34
|
-
/** Set how the image should fit when its aspect ratio is constrained */
|
|
35
|
-
objectFit?: ThumbnailObjectFit;
|
|
36
|
-
/** Size variant of the component. */
|
|
37
|
-
size?: ThumbnailSize;
|
|
38
|
-
/** Image loading mode. */
|
|
39
|
-
loading?: 'eager' | 'lazy';
|
|
40
|
-
/** Ref of an existing placeholder image to display while loading. */
|
|
41
|
-
loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
|
|
42
|
-
/** On click callback. */
|
|
43
|
-
handleClick?: (event: any) => void;
|
|
44
|
-
/** On key press callback. */
|
|
45
|
-
handleKeyPress?: (event: any) => void;
|
|
46
|
-
/** Variant of the component. */
|
|
47
|
-
variant?: ThumbnailVariant;
|
|
48
|
-
/** Props to pass to the link wrapping the thumbnail. */
|
|
49
|
-
linkProps?: GenericProps;
|
|
50
|
-
focusPointStyle?: GenericProps;
|
|
51
|
-
disabledStateProps?: GenericProps;
|
|
52
|
-
isAnyDisabled?: boolean;
|
|
53
|
-
/** Custom react component for the link (can be used to inject react router Link). */
|
|
54
|
-
linkAs?: 'a' | any;
|
|
55
|
-
'aria-label'?: string;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Component display name.
|
|
59
|
-
*/
|
|
60
|
-
export declare const COMPONENT_NAME = "Thumbnail";
|
|
61
|
-
/**
|
|
62
|
-
* Component default class name and class prefix.
|
|
63
|
-
*/
|
|
64
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
65
|
-
export declare const block: {
|
|
66
|
-
(additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
67
|
-
(modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
68
|
-
}, element: {
|
|
69
|
-
(elem: string, additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
70
|
-
(elem: string, modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Component default props.
|
|
74
|
-
*/
|
|
75
|
-
export declare const DEFAULT_PROPS: Partial<ThumbnailProps>;
|
|
76
|
-
/**
|
|
77
|
-
* Thumbnail component.
|
|
78
|
-
*
|
|
79
|
-
* @param props Component props.
|
|
80
|
-
* @param ref Component ref.
|
|
81
|
-
* @return React element.
|
|
82
|
-
*/
|
|
83
|
-
export declare const Thumbnail: (props: ThumbnailProps) => import("react").JSX.Element;
|
|
84
|
-
export * from './utils';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { AspectRatio, Size } from '../../constants';
|
|
2
|
-
import { ValueOf } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
5
|
-
*/
|
|
6
|
-
export type FocusPoint = {
|
|
7
|
-
x?: number;
|
|
8
|
-
y?: number;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Loading attribute is not yet supported in typescript, so we need
|
|
12
|
-
* to add it in order to avoid a ts error.
|
|
13
|
-
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
14
|
-
*/
|
|
15
|
-
declare module 'react' {
|
|
16
|
-
interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
17
|
-
loading?: 'eager' | 'lazy';
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* All available aspect ratios.
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
|
-
export declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
25
|
-
/**
|
|
26
|
-
* Thumbnail sizes.
|
|
27
|
-
*/
|
|
28
|
-
export type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
29
|
-
/**
|
|
30
|
-
* Thumbnail variants.
|
|
31
|
-
*/
|
|
32
|
-
export declare const ThumbnailVariant: {
|
|
33
|
-
readonly squared: "squared";
|
|
34
|
-
readonly rounded: "rounded";
|
|
35
|
-
};
|
|
36
|
-
export type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
|
|
37
|
-
/**
|
|
38
|
-
* Thumbnail object fit.
|
|
39
|
-
*/
|
|
40
|
-
export declare const ThumbnailObjectFit: {
|
|
41
|
-
readonly cover: "cover";
|
|
42
|
-
readonly contain: "contain";
|
|
43
|
-
};
|
|
44
|
-
export type ThumbnailObjectFit = ValueOf<typeof ThumbnailObjectFit>;
|
|
45
|
-
export type LoadingState = 'isLoading' | 'isLoaded' | 'hasError';
|