@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
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# LumApps Design System (LumX)
|
|
2
|
+
|
|
3
|
+
The framework-agnostic foundation of LumX. Provides design tokens, SCSS styles, shared TypeScript types, and component definitions consumed by `@lumx/react` and `@lumx/vue`.
|
|
4
|
+
|
|
5
|
+
## What's included
|
|
6
|
+
|
|
7
|
+
- **Design tokens** — CSS custom properties (`--lumx-*`) and SCSS variables for color, typography, spacing, and more
|
|
8
|
+
- **SCSS** — BEM component styles, mixins, and base styles (typography, elevation, etc.)
|
|
9
|
+
- **TypeScript types** — Shared interfaces (`GenericProps`, `HasTheme`, `HasDisabled`, etc.)
|
|
10
|
+
- **Component definitions** — Framework-agnostic JSX component shapes that React/Vue wrappers consume
|
|
11
|
+
- **Utilities** — Class name helpers, focus management, portal, and more
|
|
12
|
+
|
|
13
|
+
## Documentation
|
|
14
|
+
|
|
15
|
+
You can find an online version of the demo and documentation site at https://design.lumapps.com.
|
|
16
|
+
|
|
17
|
+
## Copyright and license
|
|
18
|
+
|
|
19
|
+
Code and documentation copyright 2019 LumApps. Code released under the [MIT license](LICENSE.md).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
//#region src/js/constants/browser/index.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Check if we are running in a true browser (not SSR and not jsdom test environment).
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
+
declare const IS_BROWSER: boolean;
|
|
5
6
|
/**
|
|
6
7
|
* Optional global `window` instance (not defined when running SSR).
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
declare const WINDOW: (Window & typeof globalThis) | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* Optional global `document` instance (not defined when running SSR).
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
declare const DOCUMENT: Document | undefined;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { DOCUMENT, IS_BROWSER, WINDOW };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/js/constants/browser/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Check if we are running in a true browser (not SSR and not jsdom test environment).
|
|
4
|
+
*/
|
|
5
|
+
var IS_BROWSER = typeof window !== "undefined" && !window.navigator.userAgent.includes("jsdom");
|
|
6
|
+
/**
|
|
7
|
+
* Optional global `window` instance (not defined when running SSR).
|
|
8
|
+
*/
|
|
9
|
+
var WINDOW = typeof window !== "undefined" ? window : void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Optional global `document` instance (not defined when running SSR).
|
|
12
|
+
*/
|
|
13
|
+
var DOCUMENT = typeof document !== "undefined" ? document : void 0;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { DOCUMENT, IS_BROWSER, WINDOW };
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
+
//#region src/js/constants/components/index.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Animation duration constants. Take into consideration that if you change one of these variables,
|
|
3
4
|
* you need to update their scss counterpart as well
|
|
4
5
|
*/
|
|
5
|
-
const DIALOG_TRANSITION_DURATION = 400;
|
|
6
|
-
const EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
7
|
-
const NOTIFICATION_TRANSITION_DURATION = 200;
|
|
8
|
-
const SLIDESHOW_TRANSITION_DURATION = 5000;
|
|
6
|
+
declare const DIALOG_TRANSITION_DURATION = 400;
|
|
7
|
+
declare const EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
8
|
+
declare const NOTIFICATION_TRANSITION_DURATION = 200;
|
|
9
|
+
declare const SLIDESHOW_TRANSITION_DURATION = 5000;
|
|
9
10
|
/**
|
|
10
11
|
* Delay on hover after which we open or close the tooltip.
|
|
11
12
|
* Only applies to devices supporting pointer hover.
|
|
12
13
|
*/
|
|
13
|
-
const TOOLTIP_HOVER_DELAY
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
declare const TOOLTIP_HOVER_DELAY: {
|
|
15
|
+
open: number;
|
|
16
|
+
close: number;
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* Delay on long press after which we open or close the tooltip.
|
|
19
20
|
* Only applies to devices not supporting pointer hover.
|
|
20
21
|
*/
|
|
21
|
-
const TOOLTIP_LONG_PRESS_DELAY
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
declare const TOOLTIP_LONG_PRESS_DELAY: {
|
|
23
|
+
open: number;
|
|
24
|
+
close: number;
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
-
export { DIALOG_TRANSITION_DURATION, EXPANSION_PANEL_TRANSITION_DURATION, NOTIFICATION_TRANSITION_DURATION, SLIDESHOW_TRANSITION_DURATION, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY };
|
|
26
|
+
//#endregion
|
|
27
|
+
export { DIALOG_TRANSITION_DURATION, EXPANSION_PANEL_TRANSITION_DURATION, NOTIFICATION_TRANSITION_DURATION, SLIDESHOW_TRANSITION_DURATION, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/js/constants/components/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Animation duration constants. Take into consideration that if you change one of these variables,
|
|
4
|
+
* you need to update their scss counterpart as well
|
|
5
|
+
*/
|
|
6
|
+
var DIALOG_TRANSITION_DURATION = 400;
|
|
7
|
+
var EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
8
|
+
var NOTIFICATION_TRANSITION_DURATION = 200;
|
|
9
|
+
var SLIDESHOW_TRANSITION_DURATION = 5e3;
|
|
10
|
+
/**
|
|
11
|
+
* Delay on hover after which we open or close the tooltip.
|
|
12
|
+
* Only applies to devices supporting pointer hover.
|
|
13
|
+
*/
|
|
14
|
+
var TOOLTIP_HOVER_DELAY = {
|
|
15
|
+
open: 500,
|
|
16
|
+
close: 500
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Delay on long press after which we open or close the tooltip.
|
|
20
|
+
* Only applies to devices not supporting pointer hover.
|
|
21
|
+
*/
|
|
22
|
+
var TOOLTIP_LONG_PRESS_DELAY = {
|
|
23
|
+
open: 250,
|
|
24
|
+
close: 3e3
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { DIALOG_TRANSITION_DURATION, EXPANSION_PANEL_TRANSITION_DURATION, NOTIFICATION_TRANSITION_DURATION, SLIDESHOW_TRANSITION_DURATION, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { ValueOf } from "../../types/ValueOf.js";
|
|
2
|
+
|
|
3
|
+
//#region src/js/constants/enums/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Alignments.
|
|
6
|
+
*/
|
|
7
|
+
declare const Alignment: {
|
|
8
|
+
readonly bottom: "bottom";
|
|
9
|
+
readonly center: "center";
|
|
10
|
+
readonly end: "end";
|
|
11
|
+
readonly left: "left";
|
|
12
|
+
readonly right: "right";
|
|
13
|
+
readonly spaceAround: "space-around";
|
|
14
|
+
readonly spaceBetween: "space-between";
|
|
15
|
+
readonly spaceEvenly: "space-evenly";
|
|
16
|
+
readonly start: "start";
|
|
17
|
+
readonly top: "top";
|
|
18
|
+
};
|
|
19
|
+
type Alignment = ValueOf<typeof Alignment>;
|
|
20
|
+
type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
|
|
21
|
+
type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
|
|
22
|
+
declare const Theme: {
|
|
23
|
+
readonly light: "light";
|
|
24
|
+
readonly dark: "dark";
|
|
25
|
+
};
|
|
26
|
+
type Theme = ValueOf<typeof Theme>;
|
|
27
|
+
declare const Size: {
|
|
28
|
+
readonly xxs: "xxs";
|
|
29
|
+
readonly xs: "xs";
|
|
30
|
+
readonly s: "s";
|
|
31
|
+
readonly m: "m";
|
|
32
|
+
readonly l: "l";
|
|
33
|
+
readonly xl: "xl";
|
|
34
|
+
readonly xxl: "xxl";
|
|
35
|
+
readonly tiny: "tiny";
|
|
36
|
+
readonly regular: "regular";
|
|
37
|
+
readonly medium: "medium";
|
|
38
|
+
readonly big: "big";
|
|
39
|
+
readonly huge: "huge";
|
|
40
|
+
};
|
|
41
|
+
type Size = ValueOf<typeof Size>;
|
|
42
|
+
type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
43
|
+
type AbstractSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
44
|
+
declare const Orientation: {
|
|
45
|
+
readonly horizontal: "horizontal";
|
|
46
|
+
readonly vertical: "vertical";
|
|
47
|
+
};
|
|
48
|
+
type Orientation = ValueOf<typeof Orientation>;
|
|
49
|
+
declare const Emphasis: {
|
|
50
|
+
readonly low: "low";
|
|
51
|
+
readonly medium: "medium";
|
|
52
|
+
readonly high: "high";
|
|
53
|
+
};
|
|
54
|
+
type Emphasis = ValueOf<typeof Emphasis>;
|
|
55
|
+
/**
|
|
56
|
+
* List of typographies that can't be customized.
|
|
57
|
+
*/
|
|
58
|
+
declare const TypographyInterface: {
|
|
59
|
+
readonly overline: "overline";
|
|
60
|
+
readonly caption: "caption";
|
|
61
|
+
readonly body1: "body1";
|
|
62
|
+
readonly body2: "body2";
|
|
63
|
+
readonly subtitle1: "subtitle1";
|
|
64
|
+
readonly subtitle2: "subtitle2";
|
|
65
|
+
readonly title: "title";
|
|
66
|
+
readonly headline: "headline";
|
|
67
|
+
readonly display1: "display1";
|
|
68
|
+
};
|
|
69
|
+
type TypographyInterface = ValueOf<typeof TypographyInterface>;
|
|
70
|
+
/**
|
|
71
|
+
* List of title typographies that can be customized (via CSS variables).
|
|
72
|
+
*/
|
|
73
|
+
declare const TypographyTitleCustom: {
|
|
74
|
+
readonly title1: "custom-title1";
|
|
75
|
+
readonly title2: "custom-title2";
|
|
76
|
+
readonly title3: "custom-title3";
|
|
77
|
+
readonly title4: "custom-title4";
|
|
78
|
+
readonly title5: "custom-title5";
|
|
79
|
+
readonly title6: "custom-title6";
|
|
80
|
+
};
|
|
81
|
+
type TypographyTitleCustom = ValueOf<typeof TypographyTitleCustom>;
|
|
82
|
+
/**
|
|
83
|
+
* List of typographies that can be customized (via CSS variables).
|
|
84
|
+
*/
|
|
85
|
+
declare const TypographyCustom: {
|
|
86
|
+
readonly intro: "custom-intro";
|
|
87
|
+
readonly 'body-large': "custom-body-large";
|
|
88
|
+
readonly body: "custom-body";
|
|
89
|
+
readonly quote: "custom-quote";
|
|
90
|
+
readonly 'publish-info': "custom-publish-info";
|
|
91
|
+
readonly button: "custom-button";
|
|
92
|
+
readonly title1: "custom-title1";
|
|
93
|
+
readonly title2: "custom-title2";
|
|
94
|
+
readonly title3: "custom-title3";
|
|
95
|
+
readonly title4: "custom-title4";
|
|
96
|
+
readonly title5: "custom-title5";
|
|
97
|
+
readonly title6: "custom-title6";
|
|
98
|
+
};
|
|
99
|
+
type TypographyCustom = ValueOf<typeof TypographyCustom>;
|
|
100
|
+
/**
|
|
101
|
+
* List of all typographies.
|
|
102
|
+
*/
|
|
103
|
+
declare const Typography: {
|
|
104
|
+
readonly custom: {
|
|
105
|
+
readonly intro: "custom-intro";
|
|
106
|
+
readonly 'body-large': "custom-body-large";
|
|
107
|
+
readonly body: "custom-body";
|
|
108
|
+
readonly quote: "custom-quote";
|
|
109
|
+
readonly 'publish-info': "custom-publish-info";
|
|
110
|
+
readonly button: "custom-button";
|
|
111
|
+
readonly title1: "custom-title1";
|
|
112
|
+
readonly title2: "custom-title2";
|
|
113
|
+
readonly title3: "custom-title3";
|
|
114
|
+
readonly title4: "custom-title4";
|
|
115
|
+
readonly title5: "custom-title5";
|
|
116
|
+
readonly title6: "custom-title6";
|
|
117
|
+
};
|
|
118
|
+
readonly overline: "overline";
|
|
119
|
+
readonly caption: "caption";
|
|
120
|
+
readonly body1: "body1";
|
|
121
|
+
readonly body2: "body2";
|
|
122
|
+
readonly subtitle1: "subtitle1";
|
|
123
|
+
readonly subtitle2: "subtitle2";
|
|
124
|
+
readonly title: "title";
|
|
125
|
+
readonly headline: "headline";
|
|
126
|
+
readonly display1: "display1";
|
|
127
|
+
};
|
|
128
|
+
type Typography = TypographyInterface | TypographyCustom;
|
|
129
|
+
/**
|
|
130
|
+
* All available aspect ratios.
|
|
131
|
+
*/
|
|
132
|
+
declare const AspectRatio: {
|
|
133
|
+
/** Intrinsic content ratio. */readonly original: "original"; /** Ratio 3:1 */
|
|
134
|
+
readonly panoramic: "panoramic"; /** Ratio 16:9 */
|
|
135
|
+
readonly wide: "wide"; /** Ratio 3:2 */
|
|
136
|
+
readonly horizontal: "horizontal"; /** Ratio 3:2 */
|
|
137
|
+
readonly vertical: "vertical"; /** Ratio 1:1 */
|
|
138
|
+
readonly square: "square"; /** Ratio constrained by the parent. */
|
|
139
|
+
readonly free: "free";
|
|
140
|
+
};
|
|
141
|
+
type AspectRatio = ValueOf<typeof AspectRatio>;
|
|
142
|
+
/**
|
|
143
|
+
* Semantic info about the purpose of the component
|
|
144
|
+
*/
|
|
145
|
+
declare const Kind: {
|
|
146
|
+
readonly info: "info";
|
|
147
|
+
readonly success: "success";
|
|
148
|
+
readonly warning: "warning";
|
|
149
|
+
readonly error: "error";
|
|
150
|
+
};
|
|
151
|
+
type Kind = ValueOf<typeof Kind>;
|
|
152
|
+
/**
|
|
153
|
+
* All available white-space values
|
|
154
|
+
* */
|
|
155
|
+
declare const WhiteSpace: {
|
|
156
|
+
normal: string;
|
|
157
|
+
nowrap: string;
|
|
158
|
+
pre: string;
|
|
159
|
+
'pre-wrap': string;
|
|
160
|
+
'pre-line': string;
|
|
161
|
+
'break-spaces': string;
|
|
162
|
+
};
|
|
163
|
+
type WhiteSpace = ValueOf<typeof WhiteSpace>;
|
|
164
|
+
/**
|
|
165
|
+
* See SCSS variable $lumx-color-palette
|
|
166
|
+
*/
|
|
167
|
+
declare const ColorPalette: {
|
|
168
|
+
readonly primary: "primary";
|
|
169
|
+
readonly secondary: "secondary";
|
|
170
|
+
readonly blue: "blue";
|
|
171
|
+
readonly dark: "dark";
|
|
172
|
+
readonly green: "green";
|
|
173
|
+
readonly yellow: "yellow";
|
|
174
|
+
readonly red: "red";
|
|
175
|
+
readonly light: "light";
|
|
176
|
+
readonly grey: "grey";
|
|
177
|
+
};
|
|
178
|
+
type ColorPalette = ValueOf<typeof ColorPalette>;
|
|
179
|
+
type Color = ColorPalette | string;
|
|
180
|
+
/**
|
|
181
|
+
* See SCSS variable $lumx-color-variants
|
|
182
|
+
*/
|
|
183
|
+
declare const ColorVariant: {
|
|
184
|
+
readonly D1: "D1";
|
|
185
|
+
readonly D2: "D2";
|
|
186
|
+
readonly L1: "L1";
|
|
187
|
+
readonly L2: "L2";
|
|
188
|
+
readonly L3: "L3";
|
|
189
|
+
readonly L4: "L4";
|
|
190
|
+
readonly L5: "L5";
|
|
191
|
+
readonly L6: "L6";
|
|
192
|
+
readonly N: "N";
|
|
193
|
+
};
|
|
194
|
+
type ColorVariant = ValueOf<typeof ColorVariant>;
|
|
195
|
+
/** ColorPalette with all possible color variant combination */
|
|
196
|
+
type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
197
|
+
declare const REAL_SIZE_FOR_LUMX_SIZE: {
|
|
198
|
+
xxs: number;
|
|
199
|
+
xs: number;
|
|
200
|
+
s: number;
|
|
201
|
+
m: number;
|
|
202
|
+
l: number;
|
|
203
|
+
xl: number;
|
|
204
|
+
xxl: number;
|
|
205
|
+
};
|
|
206
|
+
//#endregion
|
|
207
|
+
export { AbstractSize, Alignment, AspectRatio, Color, ColorPalette, ColorVariant, ColorWithVariants, Emphasis, GlobalSize, HorizontalAlignment, Kind, Orientation, REAL_SIZE_FOR_LUMX_SIZE, Size, Theme, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, VerticalAlignment, WhiteSpace };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
//#region src/js/constants/enums/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Alignments.
|
|
4
|
+
*/
|
|
5
|
+
var Alignment = {
|
|
6
|
+
bottom: "bottom",
|
|
7
|
+
center: "center",
|
|
8
|
+
end: "end",
|
|
9
|
+
left: "left",
|
|
10
|
+
right: "right",
|
|
11
|
+
spaceAround: "space-around",
|
|
12
|
+
spaceBetween: "space-between",
|
|
13
|
+
spaceEvenly: "space-evenly",
|
|
14
|
+
start: "start",
|
|
15
|
+
top: "top"
|
|
16
|
+
};
|
|
17
|
+
var Theme = {
|
|
18
|
+
light: "light",
|
|
19
|
+
dark: "dark"
|
|
20
|
+
};
|
|
21
|
+
var Size = {
|
|
22
|
+
xxs: "xxs",
|
|
23
|
+
xs: "xs",
|
|
24
|
+
s: "s",
|
|
25
|
+
m: "m",
|
|
26
|
+
l: "l",
|
|
27
|
+
xl: "xl",
|
|
28
|
+
xxl: "xxl",
|
|
29
|
+
tiny: "tiny",
|
|
30
|
+
regular: "regular",
|
|
31
|
+
medium: "medium",
|
|
32
|
+
big: "big",
|
|
33
|
+
huge: "huge"
|
|
34
|
+
};
|
|
35
|
+
var Orientation = {
|
|
36
|
+
horizontal: "horizontal",
|
|
37
|
+
vertical: "vertical"
|
|
38
|
+
};
|
|
39
|
+
var Emphasis = {
|
|
40
|
+
low: "low",
|
|
41
|
+
medium: "medium",
|
|
42
|
+
high: "high"
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* List of typographies that can't be customized.
|
|
46
|
+
*/
|
|
47
|
+
var TypographyInterface = {
|
|
48
|
+
overline: "overline",
|
|
49
|
+
caption: "caption",
|
|
50
|
+
body1: "body1",
|
|
51
|
+
body2: "body2",
|
|
52
|
+
subtitle1: "subtitle1",
|
|
53
|
+
subtitle2: "subtitle2",
|
|
54
|
+
title: "title",
|
|
55
|
+
headline: "headline",
|
|
56
|
+
display1: "display1"
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* List of title typographies that can be customized (via CSS variables).
|
|
60
|
+
*/
|
|
61
|
+
var TypographyTitleCustom = {
|
|
62
|
+
title1: "custom-title1",
|
|
63
|
+
title2: "custom-title2",
|
|
64
|
+
title3: "custom-title3",
|
|
65
|
+
title4: "custom-title4",
|
|
66
|
+
title5: "custom-title5",
|
|
67
|
+
title6: "custom-title6"
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* List of typographies that can be customized (via CSS variables).
|
|
71
|
+
*/
|
|
72
|
+
var TypographyCustom = {
|
|
73
|
+
...TypographyTitleCustom,
|
|
74
|
+
intro: "custom-intro",
|
|
75
|
+
"body-large": "custom-body-large",
|
|
76
|
+
body: "custom-body",
|
|
77
|
+
quote: "custom-quote",
|
|
78
|
+
"publish-info": "custom-publish-info",
|
|
79
|
+
button: "custom-button"
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* List of all typographies.
|
|
83
|
+
*/
|
|
84
|
+
var Typography = {
|
|
85
|
+
...TypographyInterface,
|
|
86
|
+
custom: TypographyCustom
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* All available aspect ratios.
|
|
90
|
+
*/
|
|
91
|
+
var AspectRatio = {
|
|
92
|
+
/** Intrinsic content ratio. */
|
|
93
|
+
original: "original",
|
|
94
|
+
/** Ratio 3:1 */
|
|
95
|
+
panoramic: "panoramic",
|
|
96
|
+
/** Ratio 16:9 */
|
|
97
|
+
wide: "wide",
|
|
98
|
+
/** Ratio 3:2 */
|
|
99
|
+
horizontal: "horizontal",
|
|
100
|
+
/** Ratio 3:2 */
|
|
101
|
+
vertical: "vertical",
|
|
102
|
+
/** Ratio 1:1 */
|
|
103
|
+
square: "square",
|
|
104
|
+
/** Ratio constrained by the parent. */
|
|
105
|
+
free: "free"
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Semantic info about the purpose of the component
|
|
109
|
+
*/
|
|
110
|
+
var Kind = {
|
|
111
|
+
info: "info",
|
|
112
|
+
success: "success",
|
|
113
|
+
warning: "warning",
|
|
114
|
+
error: "error"
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* All available white-space values
|
|
118
|
+
* */
|
|
119
|
+
var WhiteSpace = {
|
|
120
|
+
normal: "normal",
|
|
121
|
+
nowrap: "nowrap",
|
|
122
|
+
pre: "pre",
|
|
123
|
+
"pre-wrap": "pre-wrap",
|
|
124
|
+
"pre-line": "pre-line",
|
|
125
|
+
"break-spaces": "break-spaces"
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* See SCSS variable $lumx-color-palette
|
|
129
|
+
*/
|
|
130
|
+
var ColorPalette = {
|
|
131
|
+
primary: "primary",
|
|
132
|
+
secondary: "secondary",
|
|
133
|
+
blue: "blue",
|
|
134
|
+
dark: "dark",
|
|
135
|
+
green: "green",
|
|
136
|
+
yellow: "yellow",
|
|
137
|
+
red: "red",
|
|
138
|
+
light: "light",
|
|
139
|
+
grey: "grey"
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* See SCSS variable $lumx-color-variants
|
|
143
|
+
*/
|
|
144
|
+
var ColorVariant = {
|
|
145
|
+
D1: "D1",
|
|
146
|
+
D2: "D2",
|
|
147
|
+
L1: "L1",
|
|
148
|
+
L2: "L2",
|
|
149
|
+
L3: "L3",
|
|
150
|
+
L4: "L4",
|
|
151
|
+
L5: "L5",
|
|
152
|
+
L6: "L6",
|
|
153
|
+
N: "N"
|
|
154
|
+
};
|
|
155
|
+
var REAL_SIZE_FOR_LUMX_SIZE = {
|
|
156
|
+
[Size.xxs]: 14,
|
|
157
|
+
[Size.xs]: 20,
|
|
158
|
+
[Size.s]: 24,
|
|
159
|
+
[Size.m]: 36,
|
|
160
|
+
[Size.l]: 64,
|
|
161
|
+
[Size.xl]: 128,
|
|
162
|
+
[Size.xxl]: 256
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
165
|
+
export { Alignment, AspectRatio, ColorPalette, ColorVariant, Emphasis, Kind, Orientation, REAL_SIZE_FOR_LUMX_SIZE, Size, Theme, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, WhiteSpace };
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
+
//#region src/js/constants/keycodes/index.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* The down key code.
|
|
3
4
|
*/
|
|
4
|
-
const DOWN_KEY_CODE = 40;
|
|
5
|
+
declare const DOWN_KEY_CODE = 40;
|
|
5
6
|
/**
|
|
6
7
|
* The enter/return key code.
|
|
7
8
|
*/
|
|
8
|
-
const ENTER_KEY_CODE = 13;
|
|
9
|
+
declare const ENTER_KEY_CODE = 13;
|
|
9
10
|
/**
|
|
10
11
|
* The space key code.
|
|
11
12
|
*/
|
|
12
|
-
const SPACE_KEY_CODE = 32;
|
|
13
|
+
declare const SPACE_KEY_CODE = 32;
|
|
13
14
|
/**
|
|
14
15
|
* The escape key code.
|
|
15
16
|
*/
|
|
16
|
-
const ESCAPE_KEY_CODE = 27;
|
|
17
|
+
declare const ESCAPE_KEY_CODE = 27;
|
|
17
18
|
/**
|
|
18
19
|
* The left key code.
|
|
19
20
|
*/
|
|
20
|
-
const LEFT_KEY_CODE = 37;
|
|
21
|
+
declare const LEFT_KEY_CODE = 37;
|
|
21
22
|
/**
|
|
22
23
|
* The right key code.
|
|
23
24
|
*/
|
|
24
|
-
const RIGHT_KEY_CODE = 39;
|
|
25
|
+
declare const RIGHT_KEY_CODE = 39;
|
|
25
26
|
/**
|
|
26
27
|
* The tab key code.
|
|
27
28
|
*/
|
|
28
|
-
const TAB_KEY_CODE = 9;
|
|
29
|
+
declare const TAB_KEY_CODE = 9;
|
|
29
30
|
/**
|
|
30
31
|
* The up key code.
|
|
31
32
|
*/
|
|
32
|
-
const UP_KEY_CODE = 38;
|
|
33
|
+
declare const UP_KEY_CODE = 38;
|
|
33
34
|
/**
|
|
34
35
|
* The up key code.
|
|
35
36
|
*/
|
|
36
|
-
const BACKSPACE_KEY_CODE = 8;
|
|
37
|
-
|
|
38
|
-
export { BACKSPACE_KEY_CODE, DOWN_KEY_CODE, ENTER_KEY_CODE, ESCAPE_KEY_CODE, LEFT_KEY_CODE, RIGHT_KEY_CODE, SPACE_KEY_CODE, TAB_KEY_CODE, UP_KEY_CODE };
|
|
37
|
+
declare const BACKSPACE_KEY_CODE = 8;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { BACKSPACE_KEY_CODE, DOWN_KEY_CODE, ENTER_KEY_CODE, ESCAPE_KEY_CODE, LEFT_KEY_CODE, RIGHT_KEY_CODE, SPACE_KEY_CODE, TAB_KEY_CODE, UP_KEY_CODE };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/js/constants/keycodes/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* The down key code.
|
|
4
|
+
*/
|
|
5
|
+
var DOWN_KEY_CODE = 40;
|
|
6
|
+
/**
|
|
7
|
+
* The enter/return key code.
|
|
8
|
+
*/
|
|
9
|
+
var ENTER_KEY_CODE = 13;
|
|
10
|
+
/**
|
|
11
|
+
* The space key code.
|
|
12
|
+
*/
|
|
13
|
+
var SPACE_KEY_CODE = 32;
|
|
14
|
+
/**
|
|
15
|
+
* The escape key code.
|
|
16
|
+
*/
|
|
17
|
+
var ESCAPE_KEY_CODE = 27;
|
|
18
|
+
/**
|
|
19
|
+
* The left key code.
|
|
20
|
+
*/
|
|
21
|
+
var LEFT_KEY_CODE = 37;
|
|
22
|
+
/**
|
|
23
|
+
* The right key code.
|
|
24
|
+
*/
|
|
25
|
+
var RIGHT_KEY_CODE = 39;
|
|
26
|
+
/**
|
|
27
|
+
* The tab key code.
|
|
28
|
+
*/
|
|
29
|
+
var TAB_KEY_CODE = 9;
|
|
30
|
+
/**
|
|
31
|
+
* The up key code.
|
|
32
|
+
*/
|
|
33
|
+
var UP_KEY_CODE = 38;
|
|
34
|
+
/**
|
|
35
|
+
* The up key code.
|
|
36
|
+
*/
|
|
37
|
+
var BACKSPACE_KEY_CODE = 8;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { BACKSPACE_KEY_CODE, DOWN_KEY_CODE, ENTER_KEY_CODE, ESCAPE_KEY_CODE, LEFT_KEY_CODE, RIGHT_KEY_CODE, SPACE_KEY_CODE, TAB_KEY_CODE, UP_KEY_CODE };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/js/types/AriaAttributes.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* ARIA attributes type for components.
|
|
4
|
+
* All attributes are optional.
|
|
5
|
+
*
|
|
6
|
+
* This is a custom interface containing only the ARIA attributes
|
|
7
|
+
* actually used in the @lumx/core components, avoiding dependency on React types.
|
|
8
|
+
*/
|
|
9
|
+
interface AriaAttributes {
|
|
10
|
+
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
|
|
11
|
+
'aria-expanded'?: boolean | 'true' | 'false';
|
|
12
|
+
/** Indicates the availability and type of interactive popup element that can be triggered by the element. */
|
|
13
|
+
'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
14
|
+
/** Indicates the current "pressed" state of toggle buttons. */
|
|
15
|
+
'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
|
|
16
|
+
/** Defines a string value that labels the current element. */
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
/** Identifies the element (or elements) that labels the current element. */
|
|
19
|
+
'aria-labelledby'?: string;
|
|
20
|
+
/** Identifies the element (or elements) that describes the object. */
|
|
21
|
+
'aria-describedby'?: string;
|
|
22
|
+
/** Indicates whether the element is exposed to an accessibility API. */
|
|
23
|
+
'aria-hidden'?: boolean | 'true' | 'false';
|
|
24
|
+
/** Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. */
|
|
25
|
+
'aria-disabled'?: boolean | 'true' | 'false';
|
|
26
|
+
/** Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. */
|
|
27
|
+
'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
|
|
28
|
+
/** Indicates whether items in a table or grid are sorted in ascending or descending order. */
|
|
29
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { AriaAttributes };
|