@lumx/core 4.17.1-alpha.2 → 4.17.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/_internal/_virtual/_rolldown/runtime.js +13 -0
- package/{js → _internal/js}/constants/browser/index.d.ts +6 -3
- package/_internal/js/constants/browser/index.js +15 -0
- package/_internal/js/constants/className/index.d.ts +7 -0
- package/_internal/js/constants/className/index.js +7 -0
- package/{js/constants/components/index.js → _internal/js/constants/components/index.d.ts} +13 -12
- package/_internal/js/constants/components/index.js +27 -0
- package/_internal/js/constants/enums/index.d.ts +207 -0
- package/_internal/js/constants/enums/index.js +165 -0
- package/{js/constants/keycodes/index.js → _internal/js/constants/keycodes/index.d.ts} +12 -11
- package/_internal/js/constants/keycodes/index.js +39 -0
- package/_internal/js/types/AriaAttributes.d.ts +32 -0
- package/_internal/js/types/Booleanish.d.ts +4 -0
- package/_internal/js/types/Callback.d.ts +7 -0
- package/_internal/js/types/CommonRef.d.ts +4 -0
- package/_internal/js/types/Direction.d.ts +4 -0
- package/_internal/js/types/Falsy.d.ts +8 -0
- package/_internal/js/types/GenericProps.d.ts +14 -0
- package/_internal/js/types/HasAriaDisabled.d.ts +9 -0
- package/_internal/js/types/HasAriaLabelOrLabelledBy.d.ts +19 -0
- package/_internal/js/types/HasChecked.d.ts +9 -0
- package/_internal/js/types/HasClassName.d.ts +9 -0
- package/_internal/js/types/HasCloseMode.d.ts +10 -0
- package/_internal/js/types/HasDisabled.d.ts +9 -0
- package/_internal/js/types/HasPolymorphicAs.d.ts +12 -0
- package/_internal/js/types/HasRequiredLinkHref.d.ts +6 -0
- package/_internal/js/types/HasTheme.d.ts +11 -0
- package/_internal/js/types/HeadingElement.d.ts +5 -0
- package/_internal/js/types/JSXElement.d.ts +13 -0
- package/_internal/js/types/KebabCase.d.ts +5 -0
- package/_internal/js/types/LumxClassName.d.ts +7 -0
- package/{js → _internal/js}/types/NamedProps.d.ts +4 -3
- package/{js → _internal/js}/types/NestedComponents.d.ts +5 -2
- package/_internal/js/types/ObjectValues.d.ts +8 -0
- package/{js → _internal/js}/types/PartialBy.d.ts +5 -2
- package/_internal/js/types/Point.d.ts +10 -0
- package/_internal/js/types/Predicate.d.ts +5 -0
- package/_internal/js/types/RectSize.d.ts +10 -0
- package/_internal/js/types/Selector.d.ts +11 -0
- package/_internal/js/types/Spacing.d.ts +4 -0
- package/_internal/js/types/TextElement.d.ts +7 -0
- package/_internal/js/types/ValueOf.d.ts +5 -0
- package/_internal/js/types/jsx/PropsToOverride.d.ts +5 -0
- package/_internal/js/utils/_internal/color/resolveColorWithVariants.js +9 -0
- package/{js → _internal/js}/utils/classNames/action-area/index.d.ts +5 -4
- package/_internal/js/utils/classNames/action-area/index.js +22 -0
- package/_internal/js/utils/classNames/bem/block.d.ts +1 -0
- package/_internal/js/utils/classNames/bem/block.js +16 -0
- package/_internal/js/utils/classNames/bem/element.d.ts +1 -0
- package/_internal/js/utils/classNames/bem/element.js +7 -0
- package/_internal/js/utils/classNames/bem/index.d.ts +18 -0
- package/_internal/js/utils/classNames/bem/index.js +22 -0
- package/_internal/js/utils/classNames/bem/modifier.js +19 -0
- package/_internal/js/utils/classNames/bem/types.d.ts +15 -0
- package/{js → _internal/js}/utils/classNames/color/index.d.ts +8 -4
- package/_internal/js/utils/classNames/color/index.js +50 -0
- package/{js → _internal/js}/utils/classNames/spacing/index.d.ts +23 -18
- package/_internal/js/utils/classNames/spacing/index.js +75 -0
- package/_internal/js/utils/classNames/typography/index.d.ts +10 -0
- package/_internal/js/utils/classNames/typography/index.js +10 -0
- package/_internal/js/utils/classNames/visually-hidden/index.d.ts +8 -0
- package/_internal/js/utils/classNames/visually-hidden/index.js +9 -0
- package/{js → _internal/js}/utils/events/keyboard.d.ts +7 -5
- package/_internal/js/utils/events/keyboard.js +39 -0
- package/{js → _internal/js}/utils/events/swipe.d.ts +4 -1
- package/_internal/js/utils/events/swipe.js +58 -0
- package/_internal/js/utils/selectors/getWithSelector.d.ts +7 -0
- package/_internal/js/utils/selectors/getWithSelector.js +9 -0
- package/_internal/js/utils/selectors/groupBySelector.d.ts +10 -0
- package/_internal/js/utils/selectors/groupBySelector.js +21 -0
- package/js/constants/index.d.ts +6 -5
- package/js/constants/index.js +6 -5
- package/js/types/index.d.ts +31 -30
- package/js/types/index.js +0 -1
- package/js/utils/classNames/index.d.ts +14 -7
- package/js/utils/classNames/index.js +27 -7
- package/js/utils/disabledState/index.d.ts +17 -14
- package/js/utils/disabledState/index.js +9 -8
- package/js/utils/index.d.ts +6 -3
- package/js/utils/index.js +6 -6
- package/js/utils/selectors/index.d.ts +3 -2
- package/js/utils/selectors/index.js +3 -2
- package/package.json +6 -12
- package/_internal/DPnPEC08.js +0 -9
- package/js/components/AlertDialog/Stories.d.ts +0 -115
- package/js/components/AlertDialog/Tests.d.ts +0 -11
- package/js/components/AlertDialog/index.d.ts +0 -91
- package/js/components/Avatar/Stories.d.ts +0 -52
- package/js/components/Avatar/Tests.d.ts +0 -11
- package/js/components/Avatar/index.d.ts +0 -50
- package/js/components/Badge/BadgeWrapper.d.ts +0 -13
- package/js/components/Badge/BadgeWrapperStories.d.ts +0 -29
- package/js/components/Badge/BadgeWrapperTests.d.ts +0 -9
- package/js/components/Badge/Stories.d.ts +0 -46
- package/js/components/Badge/Tests.d.ts +0 -12
- package/js/components/Badge/index.d.ts +0 -37
- package/js/components/Button/Button.d.ts +0 -48
- package/js/components/Button/ButtonGroup.d.ts +0 -36
- package/js/components/Button/ButtonGroupStories.d.ts +0 -33
- package/js/components/Button/ButtonRoot.d.ts +0 -55
- package/js/components/Button/ButtonRootTests.d.ts +0 -12
- package/js/components/Button/IconButton.d.ts +0 -45
- package/js/components/Button/IconButtonStories.d.ts +0 -210
- package/js/components/Button/IconButtonTests.d.ts +0 -15
- package/js/components/Button/Stories.d.ts +0 -302
- package/js/components/Button/Tests.d.ts +0 -15
- package/js/components/Checkbox/Stories.d.ts +0 -89
- package/js/components/Checkbox/Tests.d.ts +0 -15
- package/js/components/Checkbox/index.d.ts +0 -49
- package/js/components/Chip/ChipGroup.d.ts +0 -35
- package/js/components/Chip/ChipGroupStories.d.ts +0 -17
- package/js/components/Chip/ChipGroupTests.d.ts +0 -11
- package/js/components/Chip/SelectionChipGroup.d.ts +0 -56
- package/js/components/Chip/SelectionChipGroupStories.d.ts +0 -54
- package/js/components/Chip/SelectionChipGroupTests.d.ts +0 -23
- package/js/components/Chip/Stories.d.ts +0 -127
- package/js/components/Chip/Tests.d.ts +0 -11
- package/js/components/Chip/index.d.ts +0 -81
- package/js/components/Chip/setupSelectionChipGroupEvents.d.ts +0 -28
- package/js/components/Combobox/ComboboxButton.d.ts +0 -57
- package/js/components/Combobox/ComboboxInput.d.ts +0 -57
- package/js/components/Combobox/ComboboxList.d.ts +0 -47
- package/js/components/Combobox/ComboboxOption.d.ts +0 -74
- package/js/components/Combobox/ComboboxOptionAction.d.ts +0 -35
- package/js/components/Combobox/ComboboxOptionMoreInfo.d.ts +0 -54
- package/js/components/Combobox/ComboboxOptionSkeleton.d.ts +0 -47
- package/js/components/Combobox/ComboboxOptionTests.d.ts +0 -24
- package/js/components/Combobox/ComboboxPopover.d.ts +0 -41
- package/js/components/Combobox/ComboboxSection.d.ts +0 -58
- package/js/components/Combobox/ComboboxState.d.ts +0 -99
- package/js/components/Combobox/Stories.d.ts +0 -167
- package/js/components/Combobox/TestStories.d.ts +0 -189
- package/js/components/Combobox/Tests.d.ts +0 -170
- package/js/components/Combobox/constants.d.ts +0 -2
- package/js/components/Combobox/index.d.ts +0 -25
- package/js/components/Combobox/setupCombobox.d.ts +0 -24
- package/js/components/Combobox/setupComboboxButton.d.ts +0 -16
- package/js/components/Combobox/setupComboboxInput.d.ts +0 -24
- package/js/components/Combobox/setupListbox.d.ts +0 -23
- package/js/components/Combobox/subscribeComboboxState.d.ts +0 -23
- package/js/components/Combobox/types.d.ts +0 -175
- package/js/components/Combobox/utils.d.ts +0 -30
- package/js/components/Dialog/Stories.d.ts +0 -97
- package/js/components/Dialog/Tests.d.ts +0 -12
- package/js/components/Dialog/index.d.ts +0 -99
- package/js/components/Divider/Stories.d.ts +0 -21
- package/js/components/Divider/Tests.d.ts +0 -12
- package/js/components/Divider/index.d.ts +0 -27
- package/js/components/DragHandle/Stories.d.ts +0 -18
- package/js/components/DragHandle/Tests.d.ts +0 -12
- package/js/components/DragHandle/index.d.ts +0 -27
- package/js/components/ExpansionPanel/Stories.d.ts +0 -67
- package/js/components/ExpansionPanel/Tests.d.ts +0 -12
- package/js/components/ExpansionPanel/index.d.ts +0 -70
- package/js/components/Flag/Stories.d.ts +0 -120
- package/js/components/Flag/Tests.d.ts +0 -14
- package/js/components/Flag/index.d.ts +0 -34
- package/js/components/FlexBox/Stories.d.ts +0 -116
- package/js/components/FlexBox/Tests.d.ts +0 -13
- package/js/components/FlexBox/constants.d.ts +0 -4
- package/js/components/FlexBox/index.d.ts +0 -54
- package/js/components/FlexBox/types.d.ts +0 -7
- package/js/components/GenericBlock/Stories.d.ts +0 -74
- package/js/components/GenericBlock/Tests.d.ts +0 -13
- package/js/components/GenericBlock/constants.d.ts +0 -19
- package/js/components/GenericBlock/index.d.ts +0 -85
- package/js/components/GridColumn/GridColumn.d.ts +0 -48
- package/js/components/GridColumn/GridColumnStories.d.ts +0 -45
- package/js/components/GridColumn/GridColumnTests.d.ts +0 -12
- package/js/components/GridColumn/index.d.ts +0 -2
- package/js/components/Heading/Stories.d.ts +0 -90
- package/js/components/Heading/Tests.d.ts +0 -11
- package/js/components/Heading/constants.d.ts +0 -21
- package/js/components/Heading/index.d.ts +0 -44
- package/js/components/Heading/utils.d.ts +0 -8
- package/js/components/Icon/Stories.d.ts +0 -156
- package/js/components/Icon/Tests.d.ts +0 -14
- package/js/components/Icon/constants.d.ts +0 -1
- package/js/components/Icon/index.d.ts +0 -41
- package/js/components/ImageBlock/ImageCaption.d.ts +0 -36
- package/js/components/ImageBlock/Stories.d.ts +0 -187
- package/js/components/ImageBlock/Tests.d.ts +0 -11
- package/js/components/ImageBlock/index.d.ts +0 -63
- package/js/components/InlineList/Stories.d.ts +0 -64
- package/js/components/InlineList/Tests.d.ts +0 -12
- package/js/components/InlineList/index.d.ts +0 -53
- package/js/components/InputHelper/Stories.d.ts +0 -35
- package/js/components/InputHelper/Tests.d.ts +0 -12
- package/js/components/InputHelper/constants.d.ts +0 -3
- package/js/components/InputHelper/index.d.ts +0 -26
- package/js/components/InputLabel/Stories.d.ts +0 -40
- package/js/components/InputLabel/Tests.d.ts +0 -12
- package/js/components/InputLabel/index.d.ts +0 -29
- package/js/components/Lightbox/Stories.d.ts +0 -40
- package/js/components/Lightbox/Tests.d.ts +0 -11
- package/js/components/Lightbox/index.d.ts +0 -68
- package/js/components/Link/Stories.d.ts +0 -282
- package/js/components/Link/Tests.d.ts +0 -8
- package/js/components/Link/index.d.ts +0 -47
- package/js/components/LinkPreview/Stories.d.ts +0 -61
- package/js/components/LinkPreview/Tests.d.ts +0 -15
- package/js/components/LinkPreview/index.d.ts +0 -53
- package/js/components/List/ListDivider.d.ts +0 -33
- package/js/components/List/ListDividerStories.d.ts +0 -17
- package/js/components/List/ListDividerTests.d.ts +0 -11
- package/js/components/List/ListItem.d.ts +0 -58
- package/js/components/List/ListItemAction.d.ts +0 -24
- package/js/components/List/ListItemActionTests.d.ts +0 -11
- package/js/components/List/ListItemStories.d.ts +0 -53
- package/js/components/List/ListItemTests.d.ts +0 -12
- package/js/components/List/ListSection.d.ts +0 -45
- package/js/components/List/ListSectionStories.d.ts +0 -125
- package/js/components/List/ListSectionTests.d.ts +0 -13
- package/js/components/List/ListStories.d.ts +0 -34
- package/js/components/List/ListTests.d.ts +0 -11
- package/js/components/List/index.d.ts +0 -39
- package/js/components/Menu/MenuButton.d.ts +0 -41
- package/js/components/Menu/MenuButtonStories.d.ts +0 -50
- package/js/components/Menu/MenuButtonTestStories.d.ts +0 -31
- package/js/components/Menu/MenuButtonTests.d.ts +0 -34
- package/js/components/Menu/MenuItem.d.ts +0 -26
- package/js/components/Menu/MenuItemTests.d.ts +0 -11
- package/js/components/Menu/MenuList.d.ts +0 -16
- package/js/components/Menu/MenuPopover.d.ts +0 -18
- package/js/components/Menu/MenuTrigger.d.ts +0 -23
- package/js/components/Menu/setupMenu.d.ts +0 -18
- package/js/components/Menu/types.d.ts +0 -40
- package/js/components/Menu/utils.d.ts +0 -9
- package/js/components/Message/Stories.d.ts +0 -119
- package/js/components/Message/Tests.d.ts +0 -14
- package/js/components/Message/index.d.ts +0 -75
- package/js/components/Mosaic/Stories.d.ts +0 -102
- package/js/components/Mosaic/Tests.d.ts +0 -13
- package/js/components/Mosaic/index.d.ts +0 -40
- package/js/components/Popover/Stories.d.ts +0 -156
- package/js/components/Popover/Tests.d.ts +0 -11
- package/js/components/Popover/constants.d.ts +0 -43
- package/js/components/Popover/index.d.ts +0 -120
- package/js/components/Popover/types.d.ts +0 -35
- package/js/components/Popover/utils/buildPopoverMiddleware.d.ts +0 -25
- package/js/components/Popover/utils/computeArrowStyles.d.ts +0 -5
- package/js/components/Popover/utils/getFloatingPlacement.d.ts +0 -7
- package/js/components/Popover/utils/index.d.ts +0 -5
- package/js/components/Popover/utils/parseAutoPlacement.d.ts +0 -22
- package/js/components/Popover/utils/parseFitWidth.d.ts +0 -4
- package/js/components/PopoverDialog/Stories.d.ts +0 -44
- package/js/components/PopoverDialog/Tests.d.ts +0 -11
- package/js/components/PopoverDialog/index.d.ts +0 -22
- package/js/components/ProgressCircular/Stories.d.ts +0 -30
- package/js/components/ProgressCircular/Tests.d.ts +0 -11
- package/js/components/ProgressCircular/index.d.ts +0 -52
- package/js/components/ProgressLinear/Stories.d.ts +0 -11
- package/js/components/ProgressLinear/Tests.d.ts +0 -11
- package/js/components/ProgressLinear/index.d.ts +0 -27
- package/js/components/RadioButton/Stories.d.ts +0 -78
- package/js/components/RadioButton/Tests.d.ts +0 -15
- package/js/components/RadioButton/index.d.ts +0 -45
- package/js/components/RadioGroup/index.d.ts +0 -34
- package/js/components/RawClickable/Tests.d.ts +0 -14
- package/js/components/RawClickable/index.d.ts +0 -14
- package/js/components/SelectButton/Stories.d.ts +0 -135
- package/js/components/SelectButton/TestStories.d.ts +0 -45
- package/js/components/SelectButton/Tests.d.ts +0 -34
- package/js/components/SelectButton/index.d.ts +0 -88
- package/js/components/SelectTextField/Stories.d.ts +0 -192
- package/js/components/SelectTextField/TestStories.d.ts +0 -39
- package/js/components/SelectTextField/Tests.d.ts +0 -38
- package/js/components/SelectTextField/index.d.ts +0 -87
- package/js/components/Skeleton/SkeletonCircle.d.ts +0 -32
- package/js/components/Skeleton/SkeletonCircleStories.d.ts +0 -43
- package/js/components/Skeleton/SkeletonCircleTests.d.ts +0 -12
- package/js/components/Skeleton/SkeletonRectangle.d.ts +0 -47
- package/js/components/Skeleton/SkeletonRectangleStories.d.ts +0 -83
- package/js/components/Skeleton/SkeletonRectangleTests.d.ts +0 -13
- package/js/components/Skeleton/SkeletonTypography.d.ts +0 -37
- package/js/components/Skeleton/SkeletonTypographyStories.d.ts +0 -53
- package/js/components/Skeleton/SkeletonTypographyTests.d.ts +0 -13
- package/js/components/Skeleton/index.d.ts +0 -3
- package/js/components/Switch/Stories.d.ts +0 -94
- package/js/components/Switch/Tests.d.ts +0 -15
- package/js/components/Switch/index.d.ts +0 -47
- package/js/components/Table/Stories.d.ts +0 -30
- package/js/components/Table/TableBody.d.ts +0 -25
- package/js/components/Table/TableCell.d.ts +0 -55
- package/js/components/Table/TableCellStories.d.ts +0 -47
- package/js/components/Table/TableCellTests.d.ts +0 -11
- package/js/components/Table/TableHeader.d.ts +0 -29
- package/js/components/Table/TableRow.d.ts +0 -35
- package/js/components/Table/TableRowStories.d.ts +0 -23
- package/js/components/Table/Tests.d.ts +0 -11
- package/js/components/Table/constants.d.ts +0 -9
- package/js/components/Table/index.d.ts +0 -27
- package/js/components/Tabs/Tab.d.ts +0 -70
- package/js/components/Tabs/TabList.d.ts +0 -39
- package/js/components/Tabs/TabListTests.d.ts +0 -12
- package/js/components/Tabs/TabPanel.d.ts +0 -43
- package/js/components/Tabs/TabPanelTests.d.ts +0 -11
- package/js/components/Tabs/TabProviderTestUtils.d.ts +0 -17
- package/js/components/Tabs/Tests.d.ts +0 -11
- package/js/components/Tabs/constants.d.ts +0 -4
- package/js/components/Tabs/state.d.ts +0 -34
- package/js/components/Text/Stories.d.ts +0 -164
- package/js/components/Text/Tests.d.ts +0 -10
- package/js/components/Text/index.d.ts +0 -935
- package/js/components/TextField/RawInputText.d.ts +0 -24
- package/js/components/TextField/RawInputTextStories.d.ts +0 -16
- package/js/components/TextField/RawInputTextTests.d.ts +0 -11
- package/js/components/TextField/RawInputTextarea.d.ts +0 -23
- package/js/components/TextField/RawInputTextareaStories.d.ts +0 -21
- package/js/components/TextField/RawInputTextareaTests.d.ts +0 -11
- package/js/components/TextField/Stories.d.ts +0 -101
- package/js/components/TextField/Tests.d.ts +0 -14
- package/js/components/TextField/TextField.d.ts +0 -84
- package/js/components/TextField/constants.d.ts +0 -13
- package/js/components/Thumbnail/Stories.d.ts +0 -178
- package/js/components/Thumbnail/Tests.d.ts +0 -11
- package/js/components/Thumbnail/index.d.ts +0 -84
- package/js/components/Thumbnail/types.d.ts +0 -45
- package/js/components/Thumbnail/utils.d.ts +0 -79
- package/js/components/TimePickerField/Stories.d.ts +0 -64
- package/js/components/TimePickerField/Tests.d.ts +0 -29
- package/js/components/TimePickerField/index.d.ts +0 -119
- package/js/components/Toolbar/Stories.d.ts +0 -29
- package/js/components/Toolbar/Tests.d.ts +0 -12
- package/js/components/Toolbar/index.d.ts +0 -33
- package/js/components/Tooltip/Stories.d.ts +0 -61
- package/js/components/Tooltip/TestStories.d.ts +0 -72
- package/js/components/Tooltip/Tests.d.ts +0 -11
- package/js/components/Tooltip/constants.d.ts +0 -10
- package/js/components/Tooltip/index.d.ts +0 -65
- package/js/components/Tooltip/tooltipOpenManager.d.ts +0 -21
- package/js/components/Uploader/Stories.d.ts +0 -116
- package/js/components/Uploader/Tests.d.ts +0 -14
- package/js/components/Uploader/index.d.ts +0 -79
- package/js/components/UserBlock/Stories.d.ts +0 -153
- package/js/components/UserBlock/Tests.d.ts +0 -13
- package/js/components/UserBlock/index.d.ts +0 -145
- package/js/constants/_internal/design-tokens.d.ts +0 -5421
- package/js/constants/browser/index.js +0 -14
- package/js/constants/className/index.d.ts +0 -4
- package/js/constants/className/index.js +0 -6
- package/js/constants/components/index.d.ts +0 -24
- package/js/constants/enums/index.d.ts +0 -210
- package/js/constants/enums/index.js +0 -164
- package/js/constants/keycodes/index.d.ts +0 -36
- package/js/types/AriaAttributes.d.ts +0 -29
- package/js/types/Booleanish.d.ts +0 -1
- package/js/types/Callback.d.ts +0 -4
- package/js/types/CommonRef.d.ts +0 -1
- package/js/types/Direction.d.ts +0 -1
- package/js/types/Falsy.d.ts +0 -5
- package/js/types/GenericProps.d.ts +0 -10
- package/js/types/HasAriaDisabled.d.ts +0 -5
- package/js/types/HasAriaLabelOrLabelledBy.d.ts +0 -17
- package/js/types/HasChecked.d.ts +0 -6
- package/js/types/HasClassName.d.ts +0 -6
- package/js/types/HasCloseMode.d.ts +0 -7
- package/js/types/HasDisabled.d.ts +0 -6
- package/js/types/HasPolymorphicAs.d.ts +0 -8
- package/js/types/HasRequiredLinkHref.d.ts +0 -3
- package/js/types/HasTheme.d.ts +0 -7
- package/js/types/HeadingElement.d.ts +0 -2
- package/js/types/JSXElement.d.ts +0 -9
- package/js/types/KebabCase.d.ts +0 -2
- package/js/types/LumxClassName.d.ts +0 -3
- package/js/types/ObjectValues.d.ts +0 -5
- package/js/types/Point.d.ts +0 -7
- package/js/types/Predicate.d.ts +0 -2
- package/js/types/RectSize.d.ts +0 -7
- package/js/types/Selector.d.ts +0 -11
- package/js/types/Spacing.d.ts +0 -1
- package/js/types/TextElement.d.ts +0 -3
- package/js/types/ValueOf.d.ts +0 -2
- package/js/types/jsx/PropsToOverride.d.ts +0 -2
- package/js/utils/ClickAway/TestStories.d.ts +0 -36
- package/js/utils/ClickAway/index.d.ts +0 -34
- package/js/utils/InfiniteScroll/TestStories.d.ts +0 -50
- package/js/utils/InfiniteScroll/index.d.ts +0 -21
- package/js/utils/InfiniteScroll/setupInfiniteScrollObserver.d.ts +0 -8
- package/js/utils/Portal/Stories.d.ts +0 -29
- package/js/utils/Portal/Tests.d.ts +0 -25
- package/js/utils/Portal/index.d.ts +0 -25
- package/js/utils/_internal/color/index.d.ts +0 -1
- package/js/utils/_internal/color/resolveColorWithVariants.d.ts +0 -3
- package/js/utils/action-area/Stories.d.ts +0 -38
- package/js/utils/browser/createSelectorTreeWalker.d.ts +0 -13
- package/js/utils/browser/css/combineSize.d.ts +0 -4
- package/js/utils/browser/css/resolveCssSize.d.ts +0 -4
- package/js/utils/browser/css/types.d.ts +0 -7
- package/js/utils/browser/isFocusVisible.d.ts +0 -2
- package/js/utils/browser/isHoverNotSupported.d.ts +0 -2
- package/js/utils/browser/isPrintableKey.d.ts +0 -7
- package/js/utils/browser/lastDescendant.d.ts +0 -2
- package/js/utils/browser/querySelectorInclusive.d.ts +0 -11
- package/js/utils/browser/trackContainerFocus.d.ts +0 -11
- package/js/utils/classNames/action-area/index.js +0 -21
- package/js/utils/classNames/bem/block.d.ts +0 -15
- package/js/utils/classNames/bem/block.js +0 -26
- package/js/utils/classNames/bem/element.d.ts +0 -16
- package/js/utils/classNames/bem/element.js +0 -7
- package/js/utils/classNames/bem/index.d.ts +0 -18
- package/js/utils/classNames/bem/index.js +0 -22
- package/js/utils/classNames/bem/modifier.d.ts +0 -13
- package/js/utils/classNames/bem/modifier.js +0 -21
- package/js/utils/classNames/bem/types.d.ts +0 -11
- package/js/utils/classNames/color/index.js +0 -51
- package/js/utils/classNames/spacing/index.js +0 -73
- package/js/utils/classNames/typography/index.d.ts +0 -6
- package/js/utils/classNames/typography/index.js +0 -9
- package/js/utils/classNames/visually-hidden/index.d.ts +0 -5
- package/js/utils/classNames/visually-hidden/index.js +0 -11
- package/js/utils/events/index.d.ts +0 -2
- package/js/utils/events/keyboard.js +0 -44
- package/js/utils/events/swipe.js +0 -79
- package/js/utils/focus/constants.d.ts +0 -10
- package/js/utils/focus/getFirstAndLastFocusable.d.ts +0 -13
- package/js/utils/focus/getFocusableElements.d.ts +0 -1
- package/js/utils/focus/index.d.ts +0 -4
- package/js/utils/focus/setupFocusTrap.d.ts +0 -28
- package/js/utils/focusNavigation/createActiveItemState.d.ts +0 -26
- package/js/utils/focusNavigation/createGridFocusNavigation.d.ts +0 -16
- package/js/utils/focusNavigation/createListFocusNavigation.d.ts +0 -15
- package/js/utils/focusNavigation/createPendingNavigation.d.ts +0 -7
- package/js/utils/focusNavigation/index.d.ts +0 -5
- package/js/utils/focusNavigation/setupRovingTabIndex.d.ts +0 -37
- package/js/utils/focusNavigation/types.d.ts +0 -68
- package/js/utils/function/listenerTower.d.ts +0 -13
- package/js/utils/iterable/first.d.ts +0 -2
- package/js/utils/locale/getCurrentLocale.d.ts +0 -7
- package/js/utils/locale/index.d.ts +0 -1
- package/js/utils/select/findOptionById.d.ts +0 -13
- package/js/utils/select/getOptionDisplayName.d.ts +0 -8
- package/js/utils/select/renderSelectOptions.d.ts +0 -7
- package/js/utils/select/toggleSelection.d.ts +0 -23
- package/js/utils/select/types.d.ts +0 -243
- package/js/utils/selectors/getWithSelector.d.ts +0 -3
- package/js/utils/selectors/getWithSelector.js +0 -14
- package/js/utils/selectors/groupBySelector.d.ts +0 -6
- package/js/utils/selectors/groupBySelector.js +0 -21
- package/js/utils/theme/invertTheme.d.ts +0 -3
- package/js/utils/time/buildTimeList.d.ts +0 -34
- package/js/utils/time/formatTime.d.ts +0 -6
- package/js/utils/time/getDateAtTime.d.ts +0 -8
- package/js/utils/time/index.d.ts +0 -8
- package/js/utils/time/isDateOnTime.d.ts +0 -8
- package/js/utils/time/parseTimeInput.d.ts +0 -16
- package/js/utils/time/snapTimeToBounds.d.ts +0 -7
- package/js/utils/time/timeOfDayMinutes.d.ts +0 -4
- package/js/utils/typeahead/index.d.ts +0 -37
- package/stories/controls/color.d.ts +0 -15
- package/stories/controls/element.d.ts +0 -16
- package/stories/controls/focusPoint.d.ts +0 -8
- package/stories/controls/icons.d.ts +0 -66
- package/stories/controls/image.d.ts +0 -96
- package/stories/controls/selectArgType.d.ts +0 -7
- package/stories/controls/theme.d.ts +0 -7
- package/stories/controls/typography.d.ts +0 -8
- package/stories/controls/withUndefined.d.ts +0 -1
- package/stories/types.d.ts +0 -67
- package/stories/utils/CombinationsTable.d.ts +0 -26
- package/stories/utils/ThemingVariablesTable.d.ts +0 -29
- package/stories/utils/combinations.d.ts +0 -100
- package/stories/utils/concatPath.d.ts +0 -10
- package/stories/utils/disableArgTypes.d.ts +0 -7
- package/stories/utils/initDemoShadowDOMPortal.d.ts +0 -5
- package/stories/utils/lorem.d.ts +0 -7
- package/stories/utils/themeVariables.d.ts +0 -39
- package/stories/utils/toFlattenProps.d.ts +0 -12
- package/stories/utils/withCategory.d.ts +0 -4
- package/testing/commonTestsSuiteTL.d.ts +0 -87
- package/testing/index.d.ts +0 -1
- package/testing/queries.d.ts +0 -4
- /package/{css → src/css}/_retro-compat-v2.css +0 -0
- /package/{css → src/css}/design-tokens.css +0 -0
- /package/{css → src/css}/material.css +0 -0
- /package/{scss → src/scss}/_components.scss +0 -0
- /package/{scss → src/scss}/_components_classes.scss +0 -0
- /package/{scss → src/scss}/_core.scss +0 -0
- /package/{scss → src/scss}/_core_classes.scss +0 -0
- /package/{scss → src/scss}/_design-tokens.scss +0 -0
- /package/{scss → src/scss}/_retro-compat-v2.scss +0 -0
- /package/{scss → src/scss}/components/avatar/_index.scss +0 -0
- /package/{scss → src/scss}/components/badge/_index.scss +0 -0
- /package/{scss → src/scss}/components/button/_index.scss +0 -0
- /package/{scss → src/scss}/components/button/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/button/_variables.scss +0 -0
- /package/{scss → src/scss}/components/checkbox/_index.scss +0 -0
- /package/{scss → src/scss}/components/checkbox/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/chip/_index.scss +0 -0
- /package/{scss → src/scss}/components/chip/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/chip/_variables.scss +0 -0
- /package/{scss → src/scss}/components/combobox/_index.scss +0 -0
- /package/{scss → src/scss}/components/comment-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/date-picker/_index.scss +0 -0
- /package/{scss → src/scss}/components/dialog/_index.scss +0 -0
- /package/{scss → src/scss}/components/dialog/_variables.scss +0 -0
- /package/{scss → src/scss}/components/divider/_index.scss +0 -0
- /package/{scss → src/scss}/components/divider/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/divider/_variables.scss +0 -0
- /package/{scss → src/scss}/components/drag-handle/_index.scss +0 -0
- /package/{scss → src/scss}/components/dropdown/_index.scss +0 -0
- /package/{scss → src/scss}/components/expansion-panel/_index.scss +0 -0
- /package/{scss → src/scss}/components/expansion-panel/_variables.scss +0 -0
- /package/{scss → src/scss}/components/flag/_index.scss +0 -0
- /package/{scss → src/scss}/components/flex-box/_index.scss +0 -0
- /package/{scss → src/scss}/components/generic-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/grid/_index.scss +0 -0
- /package/{scss → src/scss}/components/grid-column/_index.scss +0 -0
- /package/{scss → src/scss}/components/icon/_index.scss +0 -0
- /package/{scss → src/scss}/components/icon/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/icon/_variables.scss +0 -0
- /package/{scss → src/scss}/components/image-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/image-lightbox/_index.scss +0 -0
- /package/{scss → src/scss}/components/inline-list/_index.scss +0 -0
- /package/{scss → src/scss}/components/input-helper/_index.scss +0 -0
- /package/{scss → src/scss}/components/input-helper/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/input-helper/_variables.scss +0 -0
- /package/{scss → src/scss}/components/input-label/_index.scss +0 -0
- /package/{scss → src/scss}/components/input-label/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/lightbox/_index.scss +0 -0
- /package/{scss → src/scss}/components/lightbox/_variables.scss +0 -0
- /package/{scss → src/scss}/components/link/_index.scss +0 -0
- /package/{scss → src/scss}/components/link/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/link-preview/_index.scss +0 -0
- /package/{scss → src/scss}/components/list/_index.scss +0 -0
- /package/{scss → src/scss}/components/list/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/list/_variables.scss +0 -0
- /package/{scss → src/scss}/components/menu/_index.scss +0 -0
- /package/{scss → src/scss}/components/message/_index.scss +0 -0
- /package/{scss → src/scss}/components/mosaic/_index.scss +0 -0
- /package/{scss → src/scss}/components/navigation/_index.scss +0 -0
- /package/{scss → src/scss}/components/navigation/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/notification/_index.scss +0 -0
- /package/{scss → src/scss}/components/notification/_variables.scss +0 -0
- /package/{scss → src/scss}/components/notification-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/popover/_index.scss +0 -0
- /package/{scss → src/scss}/components/popover/_variables.scss +0 -0
- /package/{scss → src/scss}/components/post-block/_index.scss +0 -0
- /package/{scss → src/scss}/components/progress/_index.scss +0 -0
- /package/{scss → src/scss}/components/progress/_variables.scss +0 -0
- /package/{scss → src/scss}/components/progress-tracker/_index.scss +0 -0
- /package/{scss → src/scss}/components/progress-tracker/_variables.scss +0 -0
- /package/{scss → src/scss}/components/radio-button/_index.scss +0 -0
- /package/{scss → src/scss}/components/radio-button/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/select/_index.scss +0 -0
- /package/{scss → src/scss}/components/select/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/side-navigation/_index.scss +0 -0
- /package/{scss → src/scss}/components/side-navigation/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/skeleton/_index.scss +0 -0
- /package/{scss → src/scss}/components/skeleton/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/slider/_index.scss +0 -0
- /package/{scss → src/scss}/components/slideshow/_index.scss +0 -0
- /package/{scss → src/scss}/components/slideshow/_variables.scss +0 -0
- /package/{scss → src/scss}/components/switch/_index.scss +0 -0
- /package/{scss → src/scss}/components/switch/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/table/_index.scss +0 -0
- /package/{scss → src/scss}/components/table/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/tabs/_index.scss +0 -0
- /package/{scss → src/scss}/components/tabs/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/text/_index.scss +0 -0
- /package/{scss → src/scss}/components/text-field/_index.scss +0 -0
- /package/{scss → src/scss}/components/text-field/_mixins.scss +0 -0
- /package/{scss → src/scss}/components/text-field/_variables.scss +0 -0
- /package/{scss → src/scss}/components/thumbnail/_index.scss +0 -0
- /package/{scss → src/scss}/components/thumbnail/_variables.scss +0 -0
- /package/{scss → src/scss}/components/toolbar/_index.scss +0 -0
- /package/{scss → src/scss}/components/toolbar/_variables.scss +0 -0
- /package/{scss → src/scss}/components/tooltip/_index.scss +0 -0
- /package/{scss → src/scss}/components/tooltip/_variables.scss +0 -0
- /package/{scss → src/scss}/components/uploader/_index.scss +0 -0
- /package/{scss → src/scss}/components/user-block/_index.scss +0 -0
- /package/{scss → src/scss}/components-and-utils.scss +0 -0
- /package/{scss → src/scss}/core/_normalize.scss +0 -0
- /package/{scss → src/scss}/core/action-area/_index.scss +0 -0
- /package/{scss → src/scss}/core/base/_functions.scss +0 -0
- /package/{scss → src/scss}/core/base/_helpers.scss +0 -0
- /package/{scss → src/scss}/core/base/_index.scss +0 -0
- /package/{scss → src/scss}/core/base/_normalize.scss +0 -0
- /package/{scss → src/scss}/core/base/_variables.scss +0 -0
- /package/{scss → src/scss}/core/color/_functions.scss +0 -0
- /package/{scss → src/scss}/core/color/_index.scss +0 -0
- /package/{scss → src/scss}/core/color/_variables.scss +0 -0
- /package/{scss → src/scss}/core/elevation/_mixins.scss +0 -0
- /package/{scss → src/scss}/core/elevation/_variables.scss +0 -0
- /package/{scss → src/scss}/core/size/_variables.scss +0 -0
- /package/{scss → src/scss}/core/spacing/_index.scss +0 -0
- /package/{scss → src/scss}/core/spacing/_variables.scss +0 -0
- /package/{scss → src/scss}/core/state/_mixins.scss +0 -0
- /package/{scss → src/scss}/core/state/_variables.scss +0 -0
- /package/{scss → src/scss}/core/typography/_index.scss +0 -0
- /package/{scss → src/scss}/core/typography/_mixins.scss +0 -0
- /package/{scss → src/scss}/core/typography/_variables.scss +0 -0
- /package/{scss → src/scss}/lumx.scss +0 -0
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import type { FocusNavigationController } from '../../utils/focusNavigation';
|
|
2
|
-
/** Section visibility state tracked per registration. */
|
|
3
|
-
export interface SectionState {
|
|
4
|
-
hidden: boolean;
|
|
5
|
-
'aria-hidden': boolean;
|
|
6
|
-
}
|
|
7
|
-
/** Registration entry for a section element. */
|
|
8
|
-
export interface SectionRegistration {
|
|
9
|
-
callback: (state: SectionState) => void;
|
|
10
|
-
last: SectionState;
|
|
11
|
-
}
|
|
12
|
-
/** Registration entry for an option element. */
|
|
13
|
-
export interface OptionRegistration {
|
|
14
|
-
callback: (isFiltered: boolean) => void;
|
|
15
|
-
lastFiltered: boolean;
|
|
16
|
-
}
|
|
17
|
-
/** Map of combobox event names to their payload types. */
|
|
18
|
-
export interface ComboboxEventMap {
|
|
19
|
-
/** Fired when the combobox open state changes. Payload: whether the combobox is open. */
|
|
20
|
-
open: boolean;
|
|
21
|
-
/** Fired when the active descendant changes (visual focus). Payload: the option id or null. */
|
|
22
|
-
activeDescendantChange: string | null;
|
|
23
|
-
/**
|
|
24
|
-
* Fired when the visible option count changes.
|
|
25
|
-
* Payload: the number of visible options plus the current input value.
|
|
26
|
-
*/
|
|
27
|
-
optionsChange: {
|
|
28
|
-
optionsLength: number;
|
|
29
|
-
inputValue?: string;
|
|
30
|
-
} | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Fired immediately when the aggregate loading state changes (skeleton count transitions
|
|
33
|
-
* between 0 and >0). Used for empty suppression in ComboboxState and for aria-busy on the listbox.
|
|
34
|
-
*/
|
|
35
|
-
loadingChange: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Fired after a 500ms debounce when loading persists, or immediately when loading ends.
|
|
38
|
-
* Used to control the loading message text in the live region (ComboboxState).
|
|
39
|
-
*/
|
|
40
|
-
loadingAnnouncement: boolean;
|
|
41
|
-
}
|
|
42
|
-
/** Callbacks provided by the consumer (React/Vue) to react to combobox state changes. */
|
|
43
|
-
export interface ComboboxCallbacks {
|
|
44
|
-
/** Called when an option is selected (click or keyboard). */
|
|
45
|
-
onSelect?(option: {
|
|
46
|
-
value: string;
|
|
47
|
-
}): void;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Behavioral options for input-mode combobox (autocomplete/filter pattern).
|
|
51
|
-
* Shared between the core JSX template props (`ComboboxInputProps`) and the
|
|
52
|
-
* runtime controller options (`SetupComboboxInputOptions`).
|
|
53
|
-
*/
|
|
54
|
-
export interface ComboboxInputOptions {
|
|
55
|
-
/**
|
|
56
|
-
* Controls how the combobox filters options as the user types.
|
|
57
|
-
*
|
|
58
|
-
* - `'auto'` (default) — Options are automatically filtered client-side.
|
|
59
|
-
* - `'manual'` — Filtering is the consumer's responsibility.
|
|
60
|
-
* - `'off'` — Like `'manual'`, but the input is rendered as `readOnly`
|
|
61
|
-
* and `openOnFocus` defaults to `true`.
|
|
62
|
-
*/
|
|
63
|
-
filter?: 'auto' | 'manual' | 'off';
|
|
64
|
-
/**
|
|
65
|
-
* When true, the combobox opens automatically when the input receives focus.
|
|
66
|
-
* When false (default, unless `filter` is `'off'`), the combobox only opens
|
|
67
|
-
* on click, typing, or keyboard navigation.
|
|
68
|
-
*
|
|
69
|
-
* @default false (true when filter is 'off')
|
|
70
|
-
*/
|
|
71
|
-
openOnFocus?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Controls what happens to the input value when an option is selected.
|
|
74
|
-
*
|
|
75
|
-
* - `'fill'` (default) — The input is updated with the selected option value via `onChange`.
|
|
76
|
-
* - `'keep'` — The input value is left unchanged; `onChange` is not called.
|
|
77
|
-
* Useful when the component manages the displayed value independently (e.g. showing
|
|
78
|
-
* an option display name rather than the raw option ID). The filter still resets.
|
|
79
|
-
* - `'clear'` — The input is cleared (empty string) via `onChange` after selection.
|
|
80
|
-
* Useful for multi-select patterns where typing starts fresh after each pick.
|
|
81
|
-
*
|
|
82
|
-
* @default 'fill'
|
|
83
|
-
*/
|
|
84
|
-
selectionMode?: 'fill' | 'keep' | 'clear';
|
|
85
|
-
}
|
|
86
|
-
/** Handle returned by `setupCombobox`. Used by framework wrappers and mode controllers. */
|
|
87
|
-
export interface ComboboxHandle {
|
|
88
|
-
/** Register the trigger element. Returns a cleanup function. */
|
|
89
|
-
registerTrigger(trigger: HTMLInputElement | HTMLButtonElement): () => void;
|
|
90
|
-
/** Register the listbox/grid element. Returns a cleanup function. */
|
|
91
|
-
registerListbox(listbox: HTMLElement): () => void;
|
|
92
|
-
/** Tear down all listeners and state. */
|
|
93
|
-
destroy(): void;
|
|
94
|
-
/** Subscribe to a combobox event. Returns an unsubscribe function. */
|
|
95
|
-
subscribe<K extends keyof ComboboxEventMap>(event: K, callback: (value: ComboboxEventMap[K]) => void): () => void;
|
|
96
|
-
/** The current trigger element (may be null before registration). */
|
|
97
|
-
readonly trigger: HTMLInputElement | HTMLButtonElement | null;
|
|
98
|
-
/** The current listbox/grid element (may be null before registration). */
|
|
99
|
-
readonly listbox: HTMLElement | null;
|
|
100
|
-
/** The focus navigation controller. */
|
|
101
|
-
readonly focusNav: FocusNavigationController | null;
|
|
102
|
-
/** Whether the popup is open. */
|
|
103
|
-
readonly isOpen: boolean;
|
|
104
|
-
/** Whether multi-select mode. */
|
|
105
|
-
readonly isMultiSelect: boolean;
|
|
106
|
-
/** Whether any skeleton placeholders are currently registered (loading). */
|
|
107
|
-
readonly isLoading: boolean;
|
|
108
|
-
/** Set the open state, update ARIA, fire callback. */
|
|
109
|
-
setIsOpen(isOpen: boolean): void;
|
|
110
|
-
/** Select an option (or null to clear), fire callback. */
|
|
111
|
-
select(option: HTMLElement | null): void;
|
|
112
|
-
/**
|
|
113
|
-
* Replay the pending navigation intent stored on the focus navigation controller via
|
|
114
|
-
* its `goTo` resolver. Called by the framework wrapper after the option children
|
|
115
|
-
* commit (keyboard opens from the closed state defer navigation until then). No-op
|
|
116
|
-
* when nothing is pending.
|
|
117
|
-
*/
|
|
118
|
-
flushPendingNavigation(): void;
|
|
119
|
-
/**
|
|
120
|
-
* Register an option DOM element for filter notifications.
|
|
121
|
-
* The element's textContent is used as the searchable text.
|
|
122
|
-
* The callback is invoked immediately with the current filter state,
|
|
123
|
-
* and again whenever the filter changes.
|
|
124
|
-
* Returns a cleanup function that unregisters the option.
|
|
125
|
-
*/
|
|
126
|
-
registerOption(element: HTMLElement, onFilterChange: (isFiltered: boolean) => void): () => void;
|
|
127
|
-
/**
|
|
128
|
-
* Set the current filter value and notify all registered options of their match state.
|
|
129
|
-
* Options whose text does not start with the filter value are notified with isFiltered=true.
|
|
130
|
-
* An empty filter value clears filtering (all options become visible).
|
|
131
|
-
*/
|
|
132
|
-
setFilter(filterValue: string): void;
|
|
133
|
-
/**
|
|
134
|
-
* Re-evaluate the filter state of a single registered option.
|
|
135
|
-
* Call this after the option's `data-value` or textContent has been updated
|
|
136
|
-
* (e.g. after a framework re-render) to ensure its filtered/visible state
|
|
137
|
-
* is consistent with the current filter value.
|
|
138
|
-
*/
|
|
139
|
-
refilterOption(element: HTMLElement): void;
|
|
140
|
-
/**
|
|
141
|
-
* Register a section DOM element for state notifications.
|
|
142
|
-
* The callback is invoked immediately with the current state, and again whenever
|
|
143
|
-
* the state changes after a filter update or option un/registration.
|
|
144
|
-
*
|
|
145
|
-
* - `hidden`: true when all registered options are filtered out (keeps children mounted
|
|
146
|
-
* but invisible to the user and screen readers).
|
|
147
|
-
* - `aria-hidden`: true when the section has no registered options at all (skeleton-only).
|
|
148
|
-
* The section stays visually rendered but is hidden from assistive technology —
|
|
149
|
-
* the live region (`ComboboxState`) handles the loading announcement instead.
|
|
150
|
-
*
|
|
151
|
-
* At most one of `hidden` / `aria-hidden` is true at a time.
|
|
152
|
-
*
|
|
153
|
-
* Returns a cleanup function that unregisters the section.
|
|
154
|
-
*/
|
|
155
|
-
registerSection(element: HTMLElement, onChange: (state: {
|
|
156
|
-
hidden: boolean;
|
|
157
|
-
'aria-hidden': boolean;
|
|
158
|
-
}) => void): () => void;
|
|
159
|
-
/**
|
|
160
|
-
* Register a skeleton placeholder. Increments the internal skeleton counter.
|
|
161
|
-
* When the counter transitions from 0 to >0, fires `loadingChange` immediately
|
|
162
|
-
* and schedules `loadingAnnouncement` after 500ms. Returns a cleanup function
|
|
163
|
-
* that decrements the counter (and fires the reverse transitions when reaching 0).
|
|
164
|
-
*/
|
|
165
|
-
registerSkeleton(): () => void;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Callback invoked when the trigger is attached and the abort controller is ready.
|
|
169
|
-
*
|
|
170
|
-
* The callback can optionally return a mode-specific keydown hook. When returned,
|
|
171
|
-
* it is called before the shared keydown handler; return `true` to indicate the
|
|
172
|
-
* event was handled (the caller will call `stopPropagation`/`preventDefault`)
|
|
173
|
-
* and skip the shared logic.
|
|
174
|
-
*/
|
|
175
|
-
export type OnTriggerAttach = (handle: ComboboxHandle, signal: AbortSignal) => ((event: KeyboardEvent) => boolean) | void;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { OptionRegistration, SectionRegistration } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Get the value for a combobox option element.
|
|
4
|
-
* Uses `data-value` when set; falls back to the element's trimmed `textContent`.
|
|
5
|
-
*
|
|
6
|
-
* This is the *selection* value , which may differ from the visible label
|
|
7
|
-
*/
|
|
8
|
-
export declare function getOptionValue(option: HTMLElement): string;
|
|
9
|
-
/**
|
|
10
|
-
* Get the visible label for a combobox option element (its trimmed `textContent`).
|
|
11
|
-
*
|
|
12
|
-
* Used for typeahead matching: the user types the characters they see, which is the
|
|
13
|
-
* option's label — not its `data-value` (which can be an unrelated id).
|
|
14
|
-
*/
|
|
15
|
-
export declare function getOptionLabel(option: HTMLElement): string;
|
|
16
|
-
/** Returns true when an option carries aria-disabled="true". */
|
|
17
|
-
export declare function isOptionDisabled(option: HTMLElement): boolean;
|
|
18
|
-
/** Returns true when the cell is NOT the first gridcell in its row (i.e., it's an action cell). */
|
|
19
|
-
export declare function isActionCell(cell: HTMLElement): boolean;
|
|
20
|
-
export declare const isSelected: (el: Element) => boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Compute the current state of a section and notify when it changed.
|
|
23
|
-
*
|
|
24
|
-
* Section state:
|
|
25
|
-
* - `hidden`: true when the section has registered options but all are filtered out.
|
|
26
|
-
* - `aria-hidden`: true when the section has no registered options at all (skeleton-only).
|
|
27
|
-
*
|
|
28
|
-
* At most one of `hidden` / `aria-hidden` is true at a time.
|
|
29
|
-
*/
|
|
30
|
-
export declare function notifySection(sectionElement: HTMLElement, sectionRegistrations: Map<HTMLElement, SectionRegistration>, optionRegistrations: Map<HTMLElement, OptionRegistration>, force?: boolean): void;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
/**
|
|
3
|
-
* Core stories for the Dialog component.
|
|
4
|
-
*
|
|
5
|
-
* Dialog is interactive (open/close state, focus trap, etc.) and requires
|
|
6
|
-
* framework-specific rendering for refs and state management.
|
|
7
|
-
* A `render` function is provided per framework to handle this.
|
|
8
|
-
*/
|
|
9
|
-
export declare function setup({ component: Dialog, render, decorators: { withChromaticForceScreenSize }, }: SetupStoriesOptions<{
|
|
10
|
-
decorators: 'withChromaticForceScreenSize';
|
|
11
|
-
}>): {
|
|
12
|
-
meta: {
|
|
13
|
-
component: any;
|
|
14
|
-
render: any;
|
|
15
|
-
parameters: {
|
|
16
|
-
chromatic: {
|
|
17
|
-
pauseAnimationAtEnd: boolean;
|
|
18
|
-
delay: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
decorators: ((story: any, context: any) => any)[];
|
|
22
|
-
args: Partial<import(".").DialogProps>;
|
|
23
|
-
argTypes: {
|
|
24
|
-
size: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "select" | "inline-radio";
|
|
27
|
-
};
|
|
28
|
-
options: ("big" | "tiny" | "regular" | "huge")[];
|
|
29
|
-
mapping: Record<string, "big" | "tiny" | "regular" | "huge"> | undefined;
|
|
30
|
-
};
|
|
31
|
-
onVisibilityChange: {
|
|
32
|
-
action: boolean;
|
|
33
|
-
};
|
|
34
|
-
children: {
|
|
35
|
-
control: boolean;
|
|
36
|
-
};
|
|
37
|
-
closeMode: {
|
|
38
|
-
control: {
|
|
39
|
-
type: "inline-radio";
|
|
40
|
-
};
|
|
41
|
-
options: string[];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
Default: {
|
|
46
|
-
args: {
|
|
47
|
-
children: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
Loading: {
|
|
51
|
-
args: {
|
|
52
|
-
isLoading: boolean;
|
|
53
|
-
children: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
WithHeaderFooter: {
|
|
57
|
-
args: {
|
|
58
|
-
header: string;
|
|
59
|
-
footer: string;
|
|
60
|
-
children: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
ForceDivider: {
|
|
64
|
-
args: {
|
|
65
|
-
forceFooterDivider: boolean;
|
|
66
|
-
forceHeaderDivider: boolean;
|
|
67
|
-
header: string;
|
|
68
|
-
footer: string;
|
|
69
|
-
children: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
LongContent: {
|
|
73
|
-
args: {
|
|
74
|
-
children: string;
|
|
75
|
-
header: string;
|
|
76
|
-
footer: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
PreventAutoClose: {
|
|
80
|
-
args: {
|
|
81
|
-
preventAutoClose: boolean;
|
|
82
|
-
children: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
PreventCloseOnEscape: {
|
|
86
|
-
args: {
|
|
87
|
-
preventCloseOnEscape: boolean;
|
|
88
|
-
children: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
PreventCloseOnClick: {
|
|
92
|
-
args: {
|
|
93
|
-
preventCloseOnClick: boolean;
|
|
94
|
-
children: string;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
};
|
|
@@ -1,12 +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
|
-
dialog: HTMLElement | null;
|
|
8
|
-
container: HTMLElement | null;
|
|
9
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
12
|
-
export default _default;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { CommonRef, HasClassName, JSXElement, LumxClassName, GenericProps } from '../../types';
|
|
2
|
-
import { Size } from '../../constants';
|
|
3
|
-
export interface BaseDialogProps {
|
|
4
|
-
/** Footer content. */
|
|
5
|
-
footer?: JSXElement;
|
|
6
|
-
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
7
|
-
forceFooterDivider?: boolean;
|
|
8
|
-
/** Header content. */
|
|
9
|
-
header?: JSXElement;
|
|
10
|
-
/** Whether the divider between the dialog content and the header is always displayed (instead of showing it on scroll). */
|
|
11
|
-
forceHeaderDivider?: boolean;
|
|
12
|
-
/** Whether the indefinite progress indicator over the dialog content is displayed or not. */
|
|
13
|
-
isLoading?: boolean;
|
|
14
|
-
/** Whether the component is open or not. */
|
|
15
|
-
isOpen?: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Defines the props of the component.
|
|
19
|
-
*/
|
|
20
|
-
export interface DialogProps extends HasClassName, BaseDialogProps {
|
|
21
|
-
/** Reference to the root element. */
|
|
22
|
-
ref?: CommonRef;
|
|
23
|
-
/** Whether the component is still visible (e.g. during close animation). */
|
|
24
|
-
isVisible?: boolean;
|
|
25
|
-
/** Reference to the dialog content element. */
|
|
26
|
-
contentRef?: CommonRef;
|
|
27
|
-
/** Size variant. */
|
|
28
|
-
size?: DialogSizes;
|
|
29
|
-
/** Z-axis position. */
|
|
30
|
-
zIndex?: number;
|
|
31
|
-
/** Additional props for the dialog container element. */
|
|
32
|
-
dialogProps?: GenericProps;
|
|
33
|
-
/** On close callback. */
|
|
34
|
-
handleClose?(): void;
|
|
35
|
-
/** Whether to prevent closing on click away. */
|
|
36
|
-
shouldPreventCloseOnClickAway?: boolean;
|
|
37
|
-
/** Refs used for click-away detection. */
|
|
38
|
-
clickAwayRefs?: any;
|
|
39
|
-
/** Ref for the root wrapper element. */
|
|
40
|
-
rootRef?: CommonRef;
|
|
41
|
-
/** Ref for the inner section element. */
|
|
42
|
-
wrapperRef?: CommonRef;
|
|
43
|
-
/** Whether the header sentinel is out of view (controls header divider). */
|
|
44
|
-
hasTopIntersection: boolean | null;
|
|
45
|
-
/** Whether the footer sentinel is out of view (controls footer divider). */
|
|
46
|
-
hasBottomIntersection: boolean | null;
|
|
47
|
-
/** Props forwarded from a child <header> element. */
|
|
48
|
-
headerChildProps?: GenericProps;
|
|
49
|
-
/** Content extracted from a child <header> element. */
|
|
50
|
-
headerChildContent?: JSXElement;
|
|
51
|
-
/** Props forwarded from a child <footer> element. */
|
|
52
|
-
footerChildProps?: GenericProps;
|
|
53
|
-
/** Content extracted from a child <footer> element. */
|
|
54
|
-
footerChildContent?: JSXElement;
|
|
55
|
-
/** Dialog body content. */
|
|
56
|
-
content?: JSXElement;
|
|
57
|
-
/** Ref setter for the top scroll sentinel element. */
|
|
58
|
-
setSentinelTop?: any;
|
|
59
|
-
/** Ref setter for the bottom scroll sentinel element. */
|
|
60
|
-
setSentinelBottom?: any;
|
|
61
|
-
/** Portal component for rendering outside the DOM hierarchy. */
|
|
62
|
-
Portal: any;
|
|
63
|
-
/** HeadingLevelProvider component. */
|
|
64
|
-
HeadingLevelProvider: any;
|
|
65
|
-
/** ThemeProvider component. */
|
|
66
|
-
ThemeProvider: any;
|
|
67
|
-
/** ClickAwayProvider component. */
|
|
68
|
-
ClickAwayProvider: any;
|
|
69
|
-
/** ProgressCircular component */
|
|
70
|
-
ProgressCircular: any;
|
|
71
|
-
}
|
|
72
|
-
export type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
73
|
-
/**
|
|
74
|
-
* Component display name.
|
|
75
|
-
*/
|
|
76
|
-
export declare const COMPONENT_NAME = "Dialog";
|
|
77
|
-
/**
|
|
78
|
-
* Component default class name and class prefix.
|
|
79
|
-
*/
|
|
80
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
81
|
-
export declare const block: {
|
|
82
|
-
(additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
83
|
-
(modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
84
|
-
}, element: {
|
|
85
|
-
(elem: string, additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
86
|
-
(elem: string, modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Component default props.
|
|
90
|
-
*/
|
|
91
|
-
export declare const DEFAULT_PROPS: Partial<DialogProps>;
|
|
92
|
-
/**
|
|
93
|
-
* Dialog component.
|
|
94
|
-
*
|
|
95
|
-
* @param props Component props.
|
|
96
|
-
* @param ref Component ref.
|
|
97
|
-
* @return React element.
|
|
98
|
-
*/
|
|
99
|
-
export declare const Dialog: (props: DialogProps) => import("react").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
/**
|
|
3
|
-
* Setup Divider stories for a specific framework (React or Vue).
|
|
4
|
-
* This function creates all the stories with the appropriate decorators.
|
|
5
|
-
* Framework-specific render functions or args can be injected via `overrides`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function setup({ component: Divider, }: SetupStoriesOptions<{
|
|
8
|
-
decorators?: never;
|
|
9
|
-
}>): {
|
|
10
|
-
meta: {
|
|
11
|
-
component: any;
|
|
12
|
-
render: (args: any) => import("react").JSX.Element;
|
|
13
|
-
args: {
|
|
14
|
-
ref?: import("../../types").CommonRef;
|
|
15
|
-
theme?: import("../../constants").Theme | undefined;
|
|
16
|
-
className?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
/** Default divider */
|
|
20
|
-
Default: {};
|
|
21
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
import { DividerProps } from '.';
|
|
3
|
-
type SetupProps = Partial<DividerProps>;
|
|
4
|
-
/**
|
|
5
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
6
|
-
*/
|
|
7
|
-
export declare const setup: (propsOverride: SetupProps | undefined, { render, ...options }: SetupOptions<DividerProps>) => {
|
|
8
|
-
divider: HTMLElement;
|
|
9
|
-
props: DividerProps;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: (renderOptions: SetupOptions<DividerProps>) => void;
|
|
12
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { LumxClassName, HasTheme, HasClassName, CommonRef } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Defines the props of the component.
|
|
4
|
-
*/
|
|
5
|
-
export interface DividerProps extends HasTheme, HasClassName {
|
|
6
|
-
/** reference to the root element */
|
|
7
|
-
ref?: CommonRef;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component display name.
|
|
11
|
-
*/
|
|
12
|
-
export declare const COMPONENT_NAME = "Divider";
|
|
13
|
-
/**
|
|
14
|
-
* Component default class name and class prefix.
|
|
15
|
-
*/
|
|
16
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
17
|
-
/**
|
|
18
|
-
* Component default props.
|
|
19
|
-
*/
|
|
20
|
-
export declare const DEFAULT_PROPS: Partial<DividerProps>;
|
|
21
|
-
/**
|
|
22
|
-
* Divider component.
|
|
23
|
-
*
|
|
24
|
-
* @param props Component props.
|
|
25
|
-
* @return JSX element.
|
|
26
|
-
*/
|
|
27
|
-
export declare const Divider: (props: DividerProps) => import("react").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
export declare function setup({ component: DragHandle, decorators: { withCombinations }, }: SetupStoriesOptions<{
|
|
3
|
-
decorators: 'withCombinations';
|
|
4
|
-
}>): {
|
|
5
|
-
meta: {
|
|
6
|
-
component: any;
|
|
7
|
-
render: (args: any) => import("react").JSX.Element;
|
|
8
|
-
args: {
|
|
9
|
-
ref?: import("../../types").CommonRef;
|
|
10
|
-
theme?: import("../../constants").Theme | undefined;
|
|
11
|
-
className?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
Default: {};
|
|
15
|
-
AllThemes: {
|
|
16
|
-
decorators: ((story: any, context: any) => any)[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
import { DragHandleProps } from '.';
|
|
3
|
-
type SetupProps = Partial<DragHandleProps>;
|
|
4
|
-
/**
|
|
5
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
6
|
-
*/
|
|
7
|
-
export declare const setup: (propsOverride: SetupProps | undefined, { render, ...options }: SetupOptions<DragHandleProps>) => {
|
|
8
|
-
handle: HTMLElement;
|
|
9
|
-
props: DragHandleProps;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: (renderOptions: SetupOptions<DragHandleProps>) => void;
|
|
12
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { LumxClassName, HasTheme, HasClassName, CommonRef } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Defines the props of the component.
|
|
4
|
-
*/
|
|
5
|
-
export interface DragHandleProps extends HasTheme, HasClassName {
|
|
6
|
-
/** Reference to the root element */
|
|
7
|
-
ref?: CommonRef;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component display name.
|
|
11
|
-
*/
|
|
12
|
-
export declare const COMPONENT_NAME = "DragHandle";
|
|
13
|
-
/**
|
|
14
|
-
* Component default class name and class prefix.
|
|
15
|
-
*/
|
|
16
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
17
|
-
/**
|
|
18
|
-
* Component default props.
|
|
19
|
-
*/
|
|
20
|
-
export declare const DEFAULT_PROPS: Partial<DragHandleProps>;
|
|
21
|
-
/**
|
|
22
|
-
* DragHandle component.
|
|
23
|
-
*
|
|
24
|
-
* @param props Component props.
|
|
25
|
-
* @return JSX element.
|
|
26
|
-
*/
|
|
27
|
-
export declare const DragHandle: (props: DragHandleProps) => import("react").JSX.Element;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
/**
|
|
3
|
-
* Setup ExpansionPanel stories for a specific framework (React or Vue).
|
|
4
|
-
* Framework-specific components (Text, StatefulExpansionPanel, etc.) are injected via `components`.
|
|
5
|
-
* StatefulExpansionPanel is a framework-specific wrapper that manages isOpen state per instance,
|
|
6
|
-
* enabling each panel to toggle independently.
|
|
7
|
-
*/
|
|
8
|
-
export declare function setup({ component: ExpansionPanel, components: { Text, StatefulExpansionPanel }, decorators: { withNestedProps }, }: SetupStoriesOptions<{
|
|
9
|
-
decorators: 'withNestedProps';
|
|
10
|
-
components: {
|
|
11
|
-
Text: any;
|
|
12
|
-
StatefulExpansionPanel: any;
|
|
13
|
-
};
|
|
14
|
-
}>): {
|
|
15
|
-
meta: {
|
|
16
|
-
component: any;
|
|
17
|
-
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
18
|
-
args: {
|
|
19
|
-
'toggleButtonProps.label': string;
|
|
20
|
-
label: string;
|
|
21
|
-
hasBackground?: boolean | undefined;
|
|
22
|
-
hasHeaderDivider?: boolean | undefined;
|
|
23
|
-
isOpen?: boolean | undefined;
|
|
24
|
-
handleOpen?: ((event: any) => void) | undefined;
|
|
25
|
-
handleClose?: ((event: any) => void) | undefined;
|
|
26
|
-
toggleButtonProps?: any;
|
|
27
|
-
handleToggleOpen?: ((shouldOpen: boolean, event: any) => void) | undefined;
|
|
28
|
-
children?: import("react").ReactNode;
|
|
29
|
-
ref?: import("../../types").CommonRef;
|
|
30
|
-
wrapperRef?: import("../../types").CommonRef;
|
|
31
|
-
headerProps?: import("../../types").GenericProps | undefined;
|
|
32
|
-
headerContent?: import("react").ReactNode;
|
|
33
|
-
dragHandle?: import("react").ReactNode;
|
|
34
|
-
content?: import("react").ReactNode;
|
|
35
|
-
footer?: import("react").ReactNode;
|
|
36
|
-
IconButton?: any;
|
|
37
|
-
isChildrenVisible?: boolean | undefined;
|
|
38
|
-
className?: string | undefined;
|
|
39
|
-
closeMode?: "hide" | "unmount" | undefined;
|
|
40
|
-
theme?: import("../../constants").Theme | undefined;
|
|
41
|
-
};
|
|
42
|
-
decorators: ((story: any, context: any) => any)[];
|
|
43
|
-
};
|
|
44
|
-
Default: {};
|
|
45
|
-
HasBackground: {
|
|
46
|
-
args: {
|
|
47
|
-
hasBackground: boolean;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
HasHeaderDivider: {
|
|
51
|
-
args: {
|
|
52
|
-
isOpen: boolean;
|
|
53
|
-
hasBackground: boolean;
|
|
54
|
-
hasHeaderDivider: boolean;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
Nested: {
|
|
58
|
-
args: {};
|
|
59
|
-
render: ({ children, isOpen, ...args }: any) => import("react").JSX.Element;
|
|
60
|
-
};
|
|
61
|
-
HideChildren: {
|
|
62
|
-
args: {
|
|
63
|
-
hasBackground: boolean;
|
|
64
|
-
closeMode: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
@@ -1,12 +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
|
-
element: HTMLElement;
|
|
7
|
-
header: HTMLElement | null;
|
|
8
|
-
props: any;
|
|
9
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
12
|
-
export default _default;
|