@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,120 +0,0 @@
|
|
|
1
|
-
import type { JSXElement, HasTheme, HasClassName, HasCloseMode, CommonRef, LumxClassName } from '../../types';
|
|
2
|
-
import { Placement, FitAnchorWidth } from './constants';
|
|
3
|
-
import type { PopoverSizes, Elevation, Offset } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Shared popover props used by both React and Vue wrappers.
|
|
6
|
-
*
|
|
7
|
-
* Framework-specific props (ref types, children, callbacks) are added by each wrapper.
|
|
8
|
-
* The `anchorRef`, `boundaryRef`, `focusElement`, `parentElement`, `focusTrapZoneElement`
|
|
9
|
-
* are typed as `any` here because React uses `RefObject<HTMLElement>` while Vue uses
|
|
10
|
-
* raw `HTMLElement` — each framework narrows the type in its own props definition.
|
|
11
|
-
*/
|
|
12
|
-
export interface PopoverProps extends HasClassName, HasTheme, HasCloseMode {
|
|
13
|
-
/** Reference to the DOM element used to set the position of the popover. */
|
|
14
|
-
anchorRef?: CommonRef;
|
|
15
|
-
/** Customize the root element tag. */
|
|
16
|
-
as?: string;
|
|
17
|
-
/** Element which will act as boundary when opening the popover. */
|
|
18
|
-
boundaryRef?: CommonRef;
|
|
19
|
-
/** Whether a click anywhere out of the popover would close it. */
|
|
20
|
-
closeOnClickAway?: boolean;
|
|
21
|
-
/** Whether an escape key press would close the popover. */
|
|
22
|
-
closeOnEscape?: boolean;
|
|
23
|
-
/** Shadow elevation. */
|
|
24
|
-
elevation?: Elevation;
|
|
25
|
-
/**
|
|
26
|
-
* Manage popover width:
|
|
27
|
-
* - `maxWidth`: popover not bigger than anchor
|
|
28
|
-
* - `minWidth` or `true`: popover not smaller than anchor
|
|
29
|
-
* - `width`: popover equal to the anchor.
|
|
30
|
-
*/
|
|
31
|
-
fitToAnchorWidth?: FitAnchorWidth | boolean;
|
|
32
|
-
/** Constrain popover height to avoid overflowing the viewport. */
|
|
33
|
-
fitWithinViewportHeight?: boolean;
|
|
34
|
-
/** Element to focus when opening the popover. */
|
|
35
|
-
focusElement?: CommonRef;
|
|
36
|
-
/** Whether the focus should go back on the anchor when popover closes and focus is within. */
|
|
37
|
-
focusAnchorOnClose?: boolean;
|
|
38
|
-
/** Whether we put an arrow or not. */
|
|
39
|
-
hasArrow?: boolean;
|
|
40
|
-
/** Whether the popover is open or not. */
|
|
41
|
-
isOpen: boolean;
|
|
42
|
-
/** Offset placement relative to anchor. */
|
|
43
|
-
offset?: Offset;
|
|
44
|
-
/** Reference to the parent element that triggered the popover. */
|
|
45
|
-
parentElement?: CommonRef;
|
|
46
|
-
/** Placement relative to anchor. */
|
|
47
|
-
placement?: Placement;
|
|
48
|
-
/** Whether the popover should be rendered into a portal. */
|
|
49
|
-
usePortal?: boolean;
|
|
50
|
-
/** The element in which the focus trap should be set. Default to popover. */
|
|
51
|
-
focusTrapZoneElement?: CommonRef;
|
|
52
|
-
/** Z-axis position. */
|
|
53
|
-
zIndex?: number;
|
|
54
|
-
/** Whether the popover should trap the focus within itself. */
|
|
55
|
-
withFocusTrap?: boolean;
|
|
56
|
-
/** On close callback (on click away or Escape pressed). Framework wrappers provide their own type. */
|
|
57
|
-
handleClose?(): void;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Internal UI rendering props for the core Popover component.
|
|
61
|
-
* These are passed by the framework wrappers after processing the behavioral PopoverProps.
|
|
62
|
-
*/
|
|
63
|
-
export interface PopoverUIProps extends HasClassName, HasTheme, HasCloseMode, PopoverSizes {
|
|
64
|
-
/** Customize the root element tag. */
|
|
65
|
-
as?: string;
|
|
66
|
-
/** Content. */
|
|
67
|
-
children: JSXElement;
|
|
68
|
-
/** Shadow elevation. */
|
|
69
|
-
elevation?: Elevation;
|
|
70
|
-
/** Whether we put an arrow or not. */
|
|
71
|
-
hasArrow?: boolean;
|
|
72
|
-
/** Whether the popover is open or not. */
|
|
73
|
-
isOpen: boolean;
|
|
74
|
-
/** Resolved position (from floating UI). */
|
|
75
|
-
position?: Placement;
|
|
76
|
-
/** Computed popover styles (from floating UI). */
|
|
77
|
-
popoverStyle?: any;
|
|
78
|
-
/** Computed arrow styles (from floating UI). */
|
|
79
|
-
arrowStyle?: any;
|
|
80
|
-
/** Ref for the popover root element. */
|
|
81
|
-
ref?: CommonRef;
|
|
82
|
-
/** Ref setter for the arrow element. */
|
|
83
|
-
arrowRef?: CommonRef;
|
|
84
|
-
/** Whether to render into a portal. */
|
|
85
|
-
usePortal?: boolean;
|
|
86
|
-
/** Click-away callback (when closeOnClickAway is true). */
|
|
87
|
-
clickAwayCallback?: any;
|
|
88
|
-
/** Refs for click-away detection. */
|
|
89
|
-
clickAwayRefs?: any;
|
|
90
|
-
/** Unmount sentinel (React-specific, optional). */
|
|
91
|
-
unmountSentinel?: JSXElement;
|
|
92
|
-
}
|
|
93
|
-
/** Injected framework-specific components. */
|
|
94
|
-
export interface PopoverComponents {
|
|
95
|
-
/** Portal component for rendering outside the parent hierarchy. */
|
|
96
|
-
Portal: any;
|
|
97
|
-
/** ClickAwayProvider component for click-away detection. */
|
|
98
|
-
ClickAwayProvider: any;
|
|
99
|
-
/** ThemeProvider component for theme context isolation. */
|
|
100
|
-
ThemeProvider: any;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Component display name.
|
|
104
|
-
*/
|
|
105
|
-
export declare const COMPONENT_NAME = "Popover";
|
|
106
|
-
/**
|
|
107
|
-
* Component default class name and class prefix.
|
|
108
|
-
*/
|
|
109
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
110
|
-
/**
|
|
111
|
-
* Component default props (used by framework wrappers).
|
|
112
|
-
*/
|
|
113
|
-
export declare const DEFAULT_PROPS: Partial<PopoverProps>;
|
|
114
|
-
/**
|
|
115
|
-
* Popover core UI component.
|
|
116
|
-
*
|
|
117
|
-
* Framework-specific components (Portal, ClickAwayProvider, ThemeProvider) are passed
|
|
118
|
-
* as a second argument by the React/Vue wrappers.
|
|
119
|
-
*/
|
|
120
|
-
export declare const Popover: (props: PopoverUIProps, { Portal, ClickAwayProvider, ThemeProvider }: PopoverComponents) => import("react").JSX.Element | null;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { VHSize, PXSize } from '../../utils/browser/css/types';
|
|
2
|
-
import type { POPOVER_SIZES } from './constants';
|
|
3
|
-
/**
|
|
4
|
-
* Offset of the popover.
|
|
5
|
-
*/
|
|
6
|
-
export interface Offset {
|
|
7
|
-
/** Offset size along the reference. */
|
|
8
|
-
along?: number;
|
|
9
|
-
/** Offset size away from the reference. */
|
|
10
|
-
away?: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Popover elevation index.
|
|
14
|
-
*/
|
|
15
|
-
export type Elevation = 1 | 2 | 3 | 4 | 5;
|
|
16
|
-
/** Popover size value — pixel value, or "t-shirt" size token. */
|
|
17
|
-
export type PopoverSize = PXSize | (typeof POPOVER_SIZES)[number];
|
|
18
|
-
/** Popover height value — extends PopoverSize with viewport-relative unit. */
|
|
19
|
-
export type PopoverHeight = PopoverSize | VHSize;
|
|
20
|
-
/** Popover width value — same as PopoverSize (pixels or t-shirt only). */
|
|
21
|
-
export type PopoverWidth = PopoverSize;
|
|
22
|
-
export interface PopoverSizes {
|
|
23
|
-
/** Exact width (pixels or t-shirt size). Combines with `fitToAnchorWidth`: if both target the same CSS property, the explicit prop wins for `width`. */
|
|
24
|
-
width?: PopoverWidth;
|
|
25
|
-
/** Minimum width (pixels or t-shirt size). Combines with `fitToAnchorWidth='minWidth'` as `max(anchor, value)`. */
|
|
26
|
-
minWidth?: PopoverWidth;
|
|
27
|
-
/** Maximum width (pixels or t-shirt size). Combines with `fitToAnchorWidth='maxWidth'` as `min(anchor, value)`. */
|
|
28
|
-
maxWidth?: PopoverWidth;
|
|
29
|
-
/** Exact height (pixels, vh, or t-shirt size). */
|
|
30
|
-
height?: PopoverHeight;
|
|
31
|
-
/** Minimum height (pixels, vh, or t-shirt size). */
|
|
32
|
-
minHeight?: PopoverHeight;
|
|
33
|
-
/** Maximum height (pixels, vh, or t-shirt size). Combines with `fitWithinViewportHeight` as `min(maxHeight, available)`. */
|
|
34
|
-
maxHeight?: PopoverHeight;
|
|
35
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type Middleware } from '@floating-ui/dom';
|
|
2
|
-
import type { Offset, PopoverSizes } from '../types';
|
|
3
|
-
import { type parseAutoPlacement } from './parseAutoPlacement';
|
|
4
|
-
export interface BuildPopoverMiddlewareOptions extends PopoverSizes {
|
|
5
|
-
/** Offset from the anchor element. */
|
|
6
|
-
offset?: Offset;
|
|
7
|
-
/** Whether the popover has an arrow. */
|
|
8
|
-
hasArrow?: boolean;
|
|
9
|
-
/** CSS property to fit to anchor width ('minWidth', 'maxWidth', 'width'). Already parsed via `parseFitWidth`. */
|
|
10
|
-
fitWidth?: string;
|
|
11
|
-
/** Constrain popover height to avoid overflowing the viewport. */
|
|
12
|
-
fitWithinViewportHeight?: boolean;
|
|
13
|
-
/** Boundary element for overflow detection. */
|
|
14
|
-
boundary?: HTMLElement;
|
|
15
|
-
/** Parsed placement result from `parseAutoPlacement`. */
|
|
16
|
-
parsedPlacement: ReturnType<typeof parseAutoPlacement>;
|
|
17
|
-
/** Arrow element (required when hasArrow is true). */
|
|
18
|
-
arrowElement?: HTMLElement | null;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Build the floating-ui middleware array for popover positioning.
|
|
22
|
-
*
|
|
23
|
-
* Middleware order: offset → flip/autoPlacement → shift → size → arrow
|
|
24
|
-
*/
|
|
25
|
-
export declare function buildPopoverMiddleware(options: BuildPopoverMiddlewareOptions): Middleware[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Placement as FloatingPlacement } from '@floating-ui/dom';
|
|
2
|
-
import { type parseAutoPlacement } from './parseAutoPlacement';
|
|
3
|
-
/**
|
|
4
|
-
* Get the floating-ui placement from the parsed placement config.
|
|
5
|
-
* Returns undefined for auto-placement (floating-ui handles it via autoPlacement middleware).
|
|
6
|
-
*/
|
|
7
|
-
export declare function getFloatingPlacement(parsedPlacement: ReturnType<typeof parseAutoPlacement>): FloatingPlacement | undefined;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { parseAutoPlacement } from './parseAutoPlacement';
|
|
2
|
-
export { parseFitWidth } from './parseFitWidth';
|
|
3
|
-
export { buildPopoverMiddleware, type BuildPopoverMiddlewareOptions } from './buildPopoverMiddleware';
|
|
4
|
-
export { computeArrowStyles } from './computeArrowStyles';
|
|
5
|
-
export { getFloatingPlacement } from './getFloatingPlacement';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type Placement as FloatingPlacement } from '@floating-ui/dom';
|
|
2
|
-
import { type Placement } from '../constants';
|
|
3
|
-
/**
|
|
4
|
-
* Parse a Popover placement into floating-ui placement or auto-placement config.
|
|
5
|
-
*/
|
|
6
|
-
export declare function parseAutoPlacement(placement?: Placement): {
|
|
7
|
-
isAuto: true;
|
|
8
|
-
autoAlignment?: undefined;
|
|
9
|
-
floatingPlacement?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
isAuto: true;
|
|
12
|
-
autoAlignment: "start";
|
|
13
|
-
floatingPlacement?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
isAuto: true;
|
|
16
|
-
autoAlignment: "end";
|
|
17
|
-
floatingPlacement?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
floatingPlacement: FloatingPlacement;
|
|
20
|
-
isAuto: false;
|
|
21
|
-
autoAlignment?: undefined;
|
|
22
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
/**
|
|
3
|
-
* Core stories for the PopoverDialog component.
|
|
4
|
-
*
|
|
5
|
-
* Stories are interactive (open/close state, focus trap, etc.) and require
|
|
6
|
-
* framework-specific rendering for anchor refs and state management.
|
|
7
|
-
* A `render` function is provided per framework to handle this.
|
|
8
|
-
*
|
|
9
|
-
* The render function receives all args, which can include:
|
|
10
|
-
* - `label`: Accessible label for the dialog (aria-label)
|
|
11
|
-
* - Any other PopoverDialog props
|
|
12
|
-
*/
|
|
13
|
-
export declare function setup({ component: PopoverDialog, render }: SetupStoriesOptions): {
|
|
14
|
-
meta: {
|
|
15
|
-
component: any;
|
|
16
|
-
render: any;
|
|
17
|
-
parameters: {
|
|
18
|
-
chromatic: {
|
|
19
|
-
disableSnapshot: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
tags: string[];
|
|
23
|
-
argTypes: {
|
|
24
|
-
closeMode: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "select" | "inline-radio";
|
|
27
|
-
};
|
|
28
|
-
options: string[];
|
|
29
|
-
mapping: Record<string, string> | undefined;
|
|
30
|
-
};
|
|
31
|
-
anchorRef: {
|
|
32
|
-
control: boolean;
|
|
33
|
-
};
|
|
34
|
-
children: {
|
|
35
|
-
control: boolean;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
WithIconButtonTrigger: {
|
|
40
|
-
args: {
|
|
41
|
-
label: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
/**
|
|
3
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
4
|
-
*/
|
|
5
|
-
export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
|
|
6
|
-
props: any;
|
|
7
|
-
element: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { HasAriaLabelOrLabelledBy, LumxClassName } from '../../types';
|
|
2
|
-
import type { PopoverProps } from '../Popover';
|
|
3
|
-
/**
|
|
4
|
-
* PopoverDialog props.
|
|
5
|
-
* The PopoverDialog has the same props as the Popover but requires an accessible label.
|
|
6
|
-
*/
|
|
7
|
-
export type PopoverDialogProps = PopoverProps & HasAriaLabelOrLabelledBy & {
|
|
8
|
-
/** Accessible label for the dialog (alternative to aria-label prop). */
|
|
9
|
-
label?: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Component display name.
|
|
13
|
-
*/
|
|
14
|
-
export declare const COMPONENT_NAME = "PopoverDialog";
|
|
15
|
-
/**
|
|
16
|
-
* Component default class name and class prefix.
|
|
17
|
-
*/
|
|
18
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
19
|
-
/**
|
|
20
|
-
* Component default props.
|
|
21
|
-
*/
|
|
22
|
-
export declare const DEFAULT_PROPS: Partial<PopoverDialogProps>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
import { type ProgressCircularSize } from '.';
|
|
3
|
-
export declare function setup({ component, decorators: { withCombinations }, overrides, }: SetupStoriesOptions<{
|
|
4
|
-
overrides: 'Inline';
|
|
5
|
-
decorators: 'withCombinations';
|
|
6
|
-
}>): {
|
|
7
|
-
meta: {
|
|
8
|
-
component: any;
|
|
9
|
-
args: Partial<import(".").ProgressCircularProps>;
|
|
10
|
-
argTypes: {
|
|
11
|
-
size: {
|
|
12
|
-
control: {
|
|
13
|
-
type: "select" | "inline-radio";
|
|
14
|
-
};
|
|
15
|
-
options: ProgressCircularSize[];
|
|
16
|
-
mapping: Record<string, ProgressCircularSize> | undefined;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
/** Default progress circular */
|
|
21
|
-
Default: {};
|
|
22
|
-
/** All sizes */
|
|
23
|
-
AllSizes: {
|
|
24
|
-
decorators: ((story: any, context: any) => any)[];
|
|
25
|
-
};
|
|
26
|
-
/** Inline display variant to use inside text */
|
|
27
|
-
Inline: {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
/**
|
|
3
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
4
|
-
*/
|
|
5
|
-
export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
|
|
6
|
-
props: any;
|
|
7
|
-
element: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { CommonRef, GenericProps, HasClassName, HasTheme, LumxClassName } from '../../types';
|
|
2
|
-
import { Size } from '../../constants';
|
|
3
|
-
/**
|
|
4
|
-
* Progress sizes.
|
|
5
|
-
*/
|
|
6
|
-
export type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
|
|
7
|
-
/**
|
|
8
|
-
* Defines the props of the component.
|
|
9
|
-
*/
|
|
10
|
-
export interface ProgressCircularProps extends HasTheme, HasClassName {
|
|
11
|
-
/**
|
|
12
|
-
* Progress circular size.
|
|
13
|
-
*/
|
|
14
|
-
size?: ProgressCircularSize;
|
|
15
|
-
/**
|
|
16
|
-
* Progress display type (inline or block).
|
|
17
|
-
* @default 'block'
|
|
18
|
-
*/
|
|
19
|
-
display?: 'inline' | 'block';
|
|
20
|
-
/** Component ref */
|
|
21
|
-
ref?: CommonRef;
|
|
22
|
-
/** additional props for the svg */
|
|
23
|
-
svgProps?: GenericProps;
|
|
24
|
-
/** additional props for the circle */
|
|
25
|
-
circleProps?: GenericProps;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Component display name.
|
|
29
|
-
*/
|
|
30
|
-
export declare const COMPONENT_NAME = "ProgressCircular";
|
|
31
|
-
/**
|
|
32
|
-
* Component default class name and class prefix.
|
|
33
|
-
*/
|
|
34
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
35
|
-
export declare const block: {
|
|
36
|
-
(additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
37
|
-
(modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
38
|
-
}, element: {
|
|
39
|
-
(elem: string, additionalClasses: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
40
|
-
(elem: string, modifiers?: import("../../utils/classNames/bem/types").Modifier, additionalClasses?: import("../../utils/classNames/bem/types").AdditionalClasses): string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Component default props.
|
|
44
|
-
*/
|
|
45
|
-
export declare const DEFAULT_PROPS: Partial<ProgressCircularProps>;
|
|
46
|
-
/**
|
|
47
|
-
* ProgressCircular component.
|
|
48
|
-
*
|
|
49
|
-
* @param props Component props.
|
|
50
|
-
* @return JSX element.
|
|
51
|
-
*/
|
|
52
|
-
export declare const ProgressCircular: (props: ProgressCircularProps) => import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
export declare function setup({ component, }: SetupStoriesOptions<{
|
|
3
|
-
decorators?: never;
|
|
4
|
-
}>): {
|
|
5
|
-
meta: {
|
|
6
|
-
component: any;
|
|
7
|
-
args: Partial<import(".").ProgressLinearProps>;
|
|
8
|
-
};
|
|
9
|
-
/** Default progress linear */
|
|
10
|
-
Default: {};
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
/**
|
|
3
|
-
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
4
|
-
*/
|
|
5
|
-
export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
|
|
6
|
-
props: any;
|
|
7
|
-
element: HTMLElement;
|
|
8
|
-
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { CommonRef, HasClassName, HasTheme, LumxClassName } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Defines the props of the component.
|
|
4
|
-
*/
|
|
5
|
-
export interface ProgressLinearProps extends HasTheme, HasClassName {
|
|
6
|
-
/** Component ref */
|
|
7
|
-
ref?: CommonRef;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component display name.
|
|
11
|
-
*/
|
|
12
|
-
export declare const COMPONENT_NAME = "ProgressLinear";
|
|
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<ProgressLinearProps>;
|
|
21
|
-
/**
|
|
22
|
-
* ProgressLinear component.
|
|
23
|
-
*
|
|
24
|
-
* @param props Component props.
|
|
25
|
-
* @return JSX element.
|
|
26
|
-
*/
|
|
27
|
-
export declare const ProgressLinear: (props: ProgressLinearProps) => import("react").JSX.Element;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
-
/**
|
|
3
|
-
* Setup RadioButton 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: RadioButton, decorators: { withCombinations, withValueOnChange }, }: SetupStoriesOptions<{
|
|
8
|
-
decorators: 'withCombinations' | 'withValueOnChange';
|
|
9
|
-
}>): {
|
|
10
|
-
meta: {
|
|
11
|
-
component: any;
|
|
12
|
-
render: (args: any) => import("react").JSX.Element;
|
|
13
|
-
decorators: ((story: any, context: any) => any)[];
|
|
14
|
-
argTypes: {
|
|
15
|
-
onChange: {
|
|
16
|
-
action: boolean;
|
|
17
|
-
};
|
|
18
|
-
name: {
|
|
19
|
-
control: boolean;
|
|
20
|
-
};
|
|
21
|
-
value: {
|
|
22
|
-
control: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
args: {
|
|
26
|
-
isChecked: boolean;
|
|
27
|
-
name: string;
|
|
28
|
-
value: string;
|
|
29
|
-
helper?: string | undefined;
|
|
30
|
-
id?: string | undefined;
|
|
31
|
-
label?: import("react").ReactNode;
|
|
32
|
-
inputProps?: Record<string, any> | undefined;
|
|
33
|
-
inputRef?: import("../../types").CommonRef;
|
|
34
|
-
inputId?: string | undefined;
|
|
35
|
-
handleChange?: ((value?: string, name?: string, event?: any) => void) | undefined;
|
|
36
|
-
ref?: import("../../types").CommonRef;
|
|
37
|
-
theme?: import("../../constants").Theme | undefined;
|
|
38
|
-
className?: string | undefined;
|
|
39
|
-
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
40
|
-
isDisabled?: boolean | undefined;
|
|
41
|
-
disabled?: boolean | undefined;
|
|
42
|
-
checked?: boolean | undefined;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
/** Default radio button */
|
|
46
|
-
Default: {};
|
|
47
|
-
/** With label and helper */
|
|
48
|
-
LabelAndHelper: {
|
|
49
|
-
argTypes: {
|
|
50
|
-
label: {
|
|
51
|
-
control: string;
|
|
52
|
-
};
|
|
53
|
-
helper: {
|
|
54
|
-
control: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
args: {
|
|
58
|
-
label: string;
|
|
59
|
-
helper: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
/** Disabled */
|
|
63
|
-
Disabled: {
|
|
64
|
-
argTypes: {
|
|
65
|
-
isDisabled: {
|
|
66
|
-
control: boolean;
|
|
67
|
-
};
|
|
68
|
-
'aria-disabled': {
|
|
69
|
-
control: boolean;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
args: {
|
|
73
|
-
label: string;
|
|
74
|
-
helper: string;
|
|
75
|
-
};
|
|
76
|
-
decorators: ((story: any, context: any) => any)[];
|
|
77
|
-
};
|
|
78
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from '../../../testing';
|
|
2
|
-
import { RadioButtonProps } from '.';
|
|
3
|
-
type SetupProps = Partial<RadioButtonProps>;
|
|
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<RadioButtonProps>) => {
|
|
8
|
-
radioButton: HTMLElement;
|
|
9
|
-
helper: HTMLElement | null;
|
|
10
|
-
label: HTMLElement | null;
|
|
11
|
-
input: HTMLElement;
|
|
12
|
-
props: RadioButtonProps;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: (renderOptions: SetupOptions<RadioButtonProps>) => void;
|
|
15
|
-
export default _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { JSXElement, LumxClassName, HasTheme, HasAriaDisabled, HasDisabled, HasClassName, HasChecked, CommonRef } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Defines the props of the component.
|
|
4
|
-
*/
|
|
5
|
-
export interface RadioButtonProps extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
|
|
6
|
-
/** Helper text. */
|
|
7
|
-
helper?: string;
|
|
8
|
-
/** Native input id property. */
|
|
9
|
-
id?: string;
|
|
10
|
-
/** Label content. */
|
|
11
|
-
label?: JSXElement;
|
|
12
|
-
/** Native input name property. */
|
|
13
|
-
name?: string;
|
|
14
|
-
/** Native input value property. */
|
|
15
|
-
value?: string;
|
|
16
|
-
/** optional props for input */
|
|
17
|
-
inputProps?: Record<string, any>;
|
|
18
|
-
/** Native input ref. */
|
|
19
|
-
inputRef?: CommonRef;
|
|
20
|
-
/** Native input id. */
|
|
21
|
-
inputId: string;
|
|
22
|
-
/** On change callback. */
|
|
23
|
-
handleChange?(value?: string, name?: string, event?: any): void;
|
|
24
|
-
/** reference to the root element */
|
|
25
|
-
ref?: CommonRef;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Component display name.
|
|
29
|
-
*/
|
|
30
|
-
export declare const COMPONENT_NAME = "RadioButton";
|
|
31
|
-
/**
|
|
32
|
-
* Component default class name and class prefix.
|
|
33
|
-
*/
|
|
34
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
35
|
-
/**
|
|
36
|
-
* Component default props.
|
|
37
|
-
*/
|
|
38
|
-
export declare const DEFAULT_PROPS: Partial<RadioButtonProps>;
|
|
39
|
-
/**
|
|
40
|
-
* RadioButton component.
|
|
41
|
-
*
|
|
42
|
-
* @param props Component props.
|
|
43
|
-
* @return JSX element.
|
|
44
|
-
*/
|
|
45
|
-
export declare const RadioButton: (props: RadioButtonProps) => import("react").JSX.Element;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { JSXElement, LumxClassName, HasClassName, CommonRef } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Defines the props of the component.
|
|
4
|
-
*/
|
|
5
|
-
export interface RadioGroupProps extends HasClassName {
|
|
6
|
-
/** RadioButton elements */
|
|
7
|
-
children?: JSXElement;
|
|
8
|
-
/** reference to the root element */
|
|
9
|
-
ref?: CommonRef;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Component display name.
|
|
13
|
-
*/
|
|
14
|
-
export declare const COMPONENT_NAME = "RadioGroup";
|
|
15
|
-
/**
|
|
16
|
-
* Component default class name and class prefix.
|
|
17
|
-
*/
|
|
18
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
19
|
-
/**
|
|
20
|
-
* Component default props.
|
|
21
|
-
*/
|
|
22
|
-
export declare const DEFAULT_PROPS: Partial<RadioGroupProps>;
|
|
23
|
-
/**
|
|
24
|
-
* RadioGroup component.
|
|
25
|
-
*
|
|
26
|
-
* @param props Component props.
|
|
27
|
-
* @return JSX element.
|
|
28
|
-
*/
|
|
29
|
-
export declare const RadioGroup: {
|
|
30
|
-
(props: RadioGroupProps): import("react").JSX.Element;
|
|
31
|
-
displayName: string;
|
|
32
|
-
className: "lumx-radio-group";
|
|
33
|
-
defaultProps: Partial<RadioGroupProps>;
|
|
34
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RawClickableProps } from '.';
|
|
2
|
-
import { SetupOptions } from '../../../testing';
|
|
3
|
-
type SetupProps = Partial<RawClickableProps<any>>;
|
|
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, screen, ...options }: SetupOptions<RawClickableProps<any>>) => {
|
|
8
|
-
element: HTMLElement;
|
|
9
|
-
props: Omit<any, "ref"> & {
|
|
10
|
-
as?: any;
|
|
11
|
-
} & Record<string, unknown> & import(".").BaseClickableProps;
|
|
12
|
-
};
|
|
13
|
-
declare const _default: (renderOptions: SetupOptions<RawClickableProps<any>>) => void;
|
|
14
|
-
export default _default;
|