@spaced-out/ui-design-system 0.5.10 → 0.5.12-beta.0
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/.storybook/public/component-parent-levels.json +77 -77
- package/CHANGELOG.md +22 -0
- package/lib/components/Accordion/Accordion.d.ts +1 -0
- package/lib/components/Accordion/Accordion.d.ts.map +1 -1
- package/lib/components/Accordion/Accordion.js +29 -4
- package/lib/components/Accordion/AccordionGroup.d.ts +2 -1
- package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -1
- package/lib/components/Accordion/AccordionGroup.js +13 -2
- package/lib/components/Avatar/Avatar.d.ts +3 -1
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.js +58 -11
- package/lib/components/AvatarGroup/AvatarGroup.d.ts +1 -0
- package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.js +27 -3
- package/lib/components/Badge/Badge.d.ts +1 -0
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Badge/Badge.js +22 -5
- package/lib/components/BadgedIcon/BadgedIcon.d.ts +2 -1
- package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -1
- package/lib/components/BadgedIcon/BadgedIcon.js +20 -4
- package/lib/components/Banner/Banner.d.ts +1 -0
- package/lib/components/Banner/Banner.d.ts.map +1 -1
- package/lib/components/Banner/Banner.js +2 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -1
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +6 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +31 -11
- package/lib/components/Button/Button.d.ts +1 -0
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +50 -6
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +1 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/ButtonDropdown.js +22 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +1 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +2 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +1 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +1 -1
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.js +2 -0
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +2 -1
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -1
- package/lib/components/ButtonTabs/ButtonTabDropdown.js +19 -2
- package/lib/components/ButtonTabs/ButtonTabs.d.ts +1 -0
- package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +1 -1
- package/lib/components/ButtonTabs/ButtonTabs.js +19 -4
- package/lib/components/Card/Card.d.ts +7 -5
- package/lib/components/Card/Card.d.ts.map +1 -1
- package/lib/components/Card/Card.js +33 -1
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +1 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +1 -1
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js +37 -5
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +2 -1
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -1
- package/lib/components/Charts/ColumnChart/ColumnChart.js +2 -0
- package/lib/components/Charts/DonutChart/DonutChart.d.ts +2 -1
- package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
- package/lib/components/Charts/DonutChart/DonutChart.js +2 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +2 -1
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -1
- package/lib/components/Charts/FunnelChart/FunnelChart.js +2 -0
- package/lib/components/Charts/LineChart/LineChart.d.ts +2 -1
- package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -1
- package/lib/components/Charts/LineChart/LineChart.js +2 -0
- package/lib/components/Charts/SankeyChart/SankeyChart.d.ts +2 -1
- package/lib/components/Charts/SankeyChart/SankeyChart.d.ts.map +1 -1
- package/lib/components/Charts/SankeyChart/SankeyChart.js +2 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +2 -1
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -1
- package/lib/components/Charts/SpiderChart/SpiderChart.js +2 -0
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts +2 -1
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts.map +1 -1
- package/lib/components/Charts/StackedBarChart/StackedBarChart.js +2 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts +13 -6
- package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -1
- package/lib/components/ChatBubble/ChatBubble.js +57 -14
- package/lib/components/Checkbox/Checkbox.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +34 -5
- package/lib/components/Checkbox/CheckboxGroup.d.ts +1 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
- package/lib/components/Checkbox/CheckboxGroup.js +21 -2
- package/lib/components/Chip/Chip.d.ts +1 -0
- package/lib/components/Chip/Chip.d.ts.map +1 -1
- package/lib/components/Chip/Chip.js +24 -3
- package/lib/components/CircularLoader/CircularLoader.d.ts +1 -0
- package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -1
- package/lib/components/CircularLoader/CircularLoader.js +7 -1
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +5 -2
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -1
- package/lib/components/CollapsibleCard/CollapsibleCard.js +46 -7
- package/lib/components/Combobox/Combobox.d.ts +1 -0
- package/lib/components/Combobox/Combobox.d.ts.map +1 -1
- package/lib/components/Combobox/Combobox.js +45 -3
- package/lib/components/DateRangePicker/Calendar.d.ts +2 -1
- package/lib/components/DateRangePicker/Calendar.d.ts.map +1 -1
- package/lib/components/DateRangePicker/Calendar.js +24 -2
- package/lib/components/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/lib/components/DateRangePicker/DateRangePicker.js +4 -2
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +1 -0
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -1
- package/lib/components/DateRangePicker/DateRangeWrapper.js +104 -14
- package/lib/components/DateRangePicker/Day.d.ts +2 -1
- package/lib/components/DateRangePicker/Day.d.ts.map +1 -1
- package/lib/components/DateRangePicker/Day.js +11 -1
- package/lib/components/Dialog/Dialog.d.ts +10 -5
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.js +76 -11
- package/lib/components/Dropdown/Dropdown.d.ts +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +19 -2
- package/lib/components/Dropdown/SimpleDropdown.d.ts +1 -0
- package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -1
- package/lib/components/Dropdown/SimpleDropdown.js +2 -0
- package/lib/components/EmptyState/EmptyState.d.ts +1 -0
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/lib/components/EmptyState/EmptyState.js +26 -1
- package/lib/components/ErrorMessage/ErrorMessage.d.ts +1 -0
- package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
- package/lib/components/ErrorMessage/ErrorMessage.js +30 -1
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +1 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -1
- package/lib/components/FileUpload/FileBlock/FileBlock.js +58 -10
- package/lib/components/FileUpload/FileUpload.d.ts +1 -0
- package/lib/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/lib/components/FileUpload/FileUpload.js +30 -4
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +1 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -1
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +18 -1
- package/lib/components/FocusManager/FocusManager.d.ts +1 -0
- package/lib/components/FocusManager/FocusManager.d.ts.map +1 -1
- package/lib/components/FocusManager/FocusManager.js +6 -1
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +2 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -1
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +11 -1
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +1 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -1
- package/lib/components/FormTitleWrapper/FormTitleWrapper.js +24 -3
- package/lib/components/Grid/Grid.d.ts +4 -2
- package/lib/components/Grid/Grid.d.ts.map +1 -1
- package/lib/components/Grid/Grid.js +13 -3
- package/lib/components/Icon/ClickableIcon.d.ts +2 -0
- package/lib/components/Icon/ClickableIcon.d.ts.map +1 -1
- package/lib/components/Icon/ClickableIcon.js +13 -1
- package/lib/components/Icon/Icon.d.ts +1 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Icon/Icon.docs.d.ts +11 -0
- package/lib/components/Icon/Icon.docs.d.ts.map +1 -1
- package/lib/components/Icon/Icon.docs.js +11 -0
- package/lib/components/Icon/Icon.js +7 -1
- package/lib/components/Icon/SemanticIcon.d.ts +2 -1
- package/lib/components/Icon/SemanticIcon.d.ts.map +1 -1
- package/lib/components/Icon/SemanticIcon.js +11 -1
- package/lib/components/InContextAlert/InContextAlert.d.ts +3 -1
- package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -1
- package/lib/components/InContextAlert/InContextAlert.js +58 -10
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts +1 -0
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts.map +1 -1
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.js +30 -3
- package/lib/components/InfinitePagination/InfinitePagination.d.ts +1 -0
- package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +1 -1
- package/lib/components/InfinitePagination/InfinitePagination.js +20 -3
- package/lib/components/InlineDropdown/InlineDropdown.d.ts +1 -0
- package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -1
- package/lib/components/InlineDropdown/InlineDropdown.js +27 -2
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +2 -1
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -1
- package/lib/components/InlineDropdown/SimpleInlineDropdown.js +2 -0
- package/lib/components/Input/Input.d.ts +1 -0
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/Input/Input.js +64 -0
- package/lib/components/KPIBox/KPIBox.d.ts +1 -0
- package/lib/components/KPIBox/KPIBox.d.ts.map +1 -1
- package/lib/components/KPIBox/KPIBox.js +27 -2
- package/lib/components/LinearLoader/LinearLoader.d.ts +1 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -1
- package/lib/components/LinearLoader/LinearLoader.js +7 -1
- package/lib/components/Link/Link.d.ts +1 -0
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +24 -2
- package/lib/components/Menu/Menu.d.ts +2 -0
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +64 -7
- package/lib/components/Menu/MenuOptionButton.d.ts +1 -0
- package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -1
- package/lib/components/Menu/MenuOptionButton.js +84 -8
- package/lib/components/Modal/Modal.d.ts +9 -5
- package/lib/components/Modal/Modal.d.ts.map +1 -1
- package/lib/components/Modal/Modal.js +48 -5
- package/lib/components/Notification/Notification.d.ts +1 -0
- package/lib/components/Notification/Notification.d.ts.map +1 -1
- package/lib/components/Notification/Notification.js +24 -4
- package/lib/components/OptionButton/OptionButton.d.ts +1 -0
- package/lib/components/OptionButton/OptionButton.d.ts.map +1 -1
- package/lib/components/OptionButton/OptionButton.js +20 -2
- package/lib/components/OptionButton/SimpleOptionButton.d.ts +2 -1
- package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -1
- package/lib/components/OptionButton/SimpleOptionButton.js +2 -0
- package/lib/components/PageTitle/PageTitle.d.ts +7 -3
- package/lib/components/PageTitle/PageTitle.d.ts.map +1 -1
- package/lib/components/PageTitle/PageTitle.js +41 -4
- package/lib/components/Pagination/Pagination.d.ts +2 -0
- package/lib/components/Pagination/Pagination.d.ts.map +1 -1
- package/lib/components/Pagination/Pagination.js +33 -3
- package/lib/components/Pagination/PaginationItem.d.ts.map +1 -1
- package/lib/components/Pagination/PaginationItem.js +31 -5
- package/lib/components/Panel/Panel.d.ts +7 -3
- package/lib/components/Panel/Panel.d.ts.map +1 -1
- package/lib/components/Panel/Panel.js +34 -4
- package/lib/components/ProgressDonut/ProgressDonut.d.ts +1 -0
- package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -1
- package/lib/components/ProgressDonut/ProgressDonut.js +11 -2
- package/lib/components/PromptChip/PromptChip.d.ts +3 -0
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
- package/lib/components/PromptChip/PromptChip.js +44 -7
- package/lib/components/PromptInput/PromptInput.d.ts +1 -0
- package/lib/components/PromptInput/PromptInput.d.ts.map +1 -1
- package/lib/components/PromptInput/PromptInput.js +24 -3
- package/lib/components/RadioButton/RadioButton.d.ts +1 -0
- package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/lib/components/RadioButton/RadioButton.js +14 -0
- package/lib/components/RadioButton/RadioGroup.d.ts +1 -0
- package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioButton/RadioGroup.js +17 -2
- package/lib/components/RadioTile/RadioTile.d.ts +1 -0
- package/lib/components/RadioTile/RadioTile.d.ts.map +1 -1
- package/lib/components/RadioTile/RadioTile.js +31 -6
- package/lib/components/RangeSlider/RangeSlider.d.ts +1 -0
- package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/lib/components/RangeSlider/RangeSlider.js +33 -4
- package/lib/components/Rating/Rating.d.ts +1 -0
- package/lib/components/Rating/Rating.d.ts.map +1 -1
- package/lib/components/Rating/Rating.js +22 -3
- package/lib/components/ScoreBar/ScoreBar.d.ts +1 -0
- package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -1
- package/lib/components/ScoreBar/ScoreBar.js +16 -2
- package/lib/components/SearchInput/SearchInput.d.ts +1 -0
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.js +20 -2
- package/lib/components/Separator/Separator.d.ts +1 -0
- package/lib/components/Separator/Separator.d.ts.map +1 -1
- package/lib/components/Separator/Separator.js +7 -2
- package/lib/components/Shimmer/Shimmer.d.ts +5 -2
- package/lib/components/Shimmer/Shimmer.d.ts.map +1 -1
- package/lib/components/Shimmer/Shimmer.js +39 -8
- package/lib/components/SideMenuLink/SideMenuLink.d.ts +1 -0
- package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -1
- package/lib/components/SideMenuLink/SideMenuLink.js +33 -3
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +6 -1
- package/lib/components/Stepper/Step/Step.d.ts +1 -0
- package/lib/components/Stepper/Step/Step.d.ts.map +1 -1
- package/lib/components/Stepper/Step/Step.js +30 -4
- package/lib/components/Stepper/Step/StepContent.d.ts +2 -1
- package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -1
- package/lib/components/Stepper/Step/StepContent.js +7 -1
- package/lib/components/Stepper/Step/StepLabel.d.ts +2 -1
- package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -1
- package/lib/components/Stepper/Step/StepLabel.js +7 -1
- package/lib/components/Stepper/Stepper.d.ts +1 -0
- package/lib/components/Stepper/Stepper.d.ts.map +1 -1
- package/lib/components/Stepper/Stepper.js +13 -2
- package/lib/components/StickyBar/StickyBar.d.ts +4 -2
- package/lib/components/StickyBar/StickyBar.d.ts.map +1 -1
- package/lib/components/StickyBar/StickyBar.js +16 -1
- package/lib/components/SubMenu/SubMenu.d.ts +1 -0
- package/lib/components/SubMenu/SubMenu.d.ts.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +21 -3
- package/lib/components/Table/Cell.d.ts +13 -7
- package/lib/components/Table/Cell.d.ts.map +1 -1
- package/lib/components/Table/Cell.js +40 -9
- package/lib/components/Table/DefaultRow.d.ts +5 -2
- package/lib/components/Table/DefaultRow.d.ts.map +1 -1
- package/lib/components/Table/DefaultRow.js +38 -6
- package/lib/components/Table/DefaultTableHeader.d.ts +2 -0
- package/lib/components/Table/DefaultTableHeader.d.ts.map +1 -1
- package/lib/components/Table/DefaultTableHeader.js +17 -2
- package/lib/components/Table/StaticTable.d.ts.map +1 -1
- package/lib/components/Table/StaticTable.js +45 -11
- package/lib/components/Table/Table.d.ts +1 -0
- package/lib/components/Table/Table.d.ts.map +1 -1
- package/lib/components/Table/Table.docs.d.ts +11 -0
- package/lib/components/Table/Table.docs.d.ts.map +1 -1
- package/lib/components/Table/Table.docs.js +11 -0
- package/lib/components/Table/Table.js +6 -3
- package/lib/components/Table/TableActionBar.d.ts +8 -3
- package/lib/components/Table/TableActionBar.d.ts.map +1 -1
- package/lib/components/Table/TableActionBar.js +16 -3
- package/lib/components/Table/TableBottomBar.d.ts +2 -1
- package/lib/components/Table/TableBottomBar.d.ts.map +1 -1
- package/lib/components/Table/TableBottomBar.js +6 -1
- package/lib/components/Table/TableTopBar.d.ts +2 -1
- package/lib/components/Table/TableTopBar.d.ts.map +1 -1
- package/lib/components/Table/TableTopBar.js +6 -1
- package/lib/components/Tabs/Tab/Tab.d.ts +1 -0
- package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -1
- package/lib/components/Tabs/Tab/Tab.js +9 -1
- package/lib/components/Tabs/TabList/TabDropdown.d.ts +2 -1
- package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +1 -1
- package/lib/components/Tabs/TabList/TabDropdown.js +21 -4
- package/lib/components/Tabs/TabList/TabList.d.ts +1 -0
- package/lib/components/Tabs/TabList/TabList.d.ts.map +1 -1
- package/lib/components/Tabs/TabList/TabList.js +20 -5
- package/lib/components/Text/Text.d.ts +2 -0
- package/lib/components/Text/Text.d.ts.map +1 -1
- package/lib/components/Text/Text.js +189 -27
- package/lib/components/TextTile/TextTile.d.ts +1 -0
- package/lib/components/TextTile/TextTile.d.ts.map +1 -1
- package/lib/components/TextTile/TextTile.js +24 -3
- package/lib/components/Textarea/Textarea.d.ts +1 -0
- package/lib/components/Textarea/Textarea.d.ts.map +1 -1
- package/lib/components/Textarea/Textarea.js +38 -0
- package/lib/components/Timeline/Timeline.d.ts +1 -0
- package/lib/components/Timeline/Timeline.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.js +14 -4
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +1 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -1
- package/lib/components/Timeline/TimelineItem/TimelineItem.js +44 -3
- package/lib/components/Toast/Toast.d.ts +6 -2
- package/lib/components/Toast/Toast.d.ts.map +1 -1
- package/lib/components/Toast/Toast.js +81 -14
- package/lib/components/Toggle/Toggle.d.ts +1 -0
- package/lib/components/Toggle/Toggle.d.ts.map +1 -1
- package/lib/components/Toggle/Toggle.js +18 -0
- package/lib/components/TokenListInput/TokenListInput.d.ts +1 -0
- package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -1
- package/lib/components/TokenListInput/TokenListInput.js +56 -7
- package/lib/components/TokenListInput/TokenValueChips.d.ts +2 -0
- package/lib/components/TokenListInput/TokenValueChips.d.ts.map +1 -1
- package/lib/components/TokenListInput/TokenValueChips.js +12 -3
- package/lib/components/Tooltip/Tooltip.d.ts +2 -1
- package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/lib/components/Tooltip/Tooltip.js +23 -1
- package/lib/components/Truncate/Truncate.d.ts +1 -0
- package/lib/components/Truncate/Truncate.d.ts.map +1 -1
- package/lib/components/Truncate/Truncate.js +12 -3
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +2 -1
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -1
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +15 -1
- package/lib/components/Typeahead/SimpleTypeahead.d.ts +1 -0
- package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -1
- package/lib/components/Typeahead/SimpleTypeahead.js +3 -1
- package/lib/components/Typeahead/Typeahead.d.ts +1 -0
- package/lib/components/Typeahead/Typeahead.d.ts.map +1 -1
- package/lib/components/Typeahead/Typeahead.js +19 -2
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +1 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -1
- package/lib/components/WeekdayPicker/WeekdayPicker.js +16 -4
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ type ClassNames = Readonly<{
|
|
|
13
13
|
export interface SimpleInlineDropdownRef {
|
|
14
14
|
selectedKeys?: Array<string>;
|
|
15
15
|
}
|
|
16
|
-
export interface SimpleInlineDropdownProps extends Omit<ButtonProps, 'elevation' | 'classNames' | 'anchorPosition' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'showLabelTooltip' | 'allowWrap' | 'onOptionSelect' | 'onMenuOpen' | 'onMenuClose' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef'> {
|
|
16
|
+
export interface SimpleInlineDropdownProps extends Omit<ButtonProps, 'elevation' | 'classNames' | 'anchorPosition' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'showLabelTooltip' | 'allowWrap' | 'onOptionSelect' | 'onMenuOpen' | 'onMenuClose' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef' | 'testId'> {
|
|
17
17
|
elevation?: ElevationType;
|
|
18
18
|
classNames?: ClassNames;
|
|
19
19
|
anchorPosition?: AnchorType;
|
|
@@ -33,6 +33,7 @@ export interface SimpleInlineDropdownProps extends Omit<ButtonProps, 'elevation'
|
|
|
33
33
|
resolveLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
34
34
|
resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
35
35
|
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
36
|
+
testId?: string;
|
|
36
37
|
}
|
|
37
38
|
export declare const SimpleInlineDropdown: Flow.AbstractComponent<SimpleInlineDropdownProps, SimpleInlineDropdownRef>;
|
|
38
39
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleInlineDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/InlineDropdown/SimpleInlineDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAM3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAE9D,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAG1D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,yBACf,SAAQ,IAAI,CACV,WAAW,EACT,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,kBAAkB,GAClB,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,aAAa,GACb,oBAAoB,GACpB,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,cAAc,GACd,uBAAuB,GACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"SimpleInlineDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/InlineDropdown/SimpleInlineDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAM3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAE9D,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,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AAC;IACpC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChE,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACzE,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAgHD,eAAO,MAAM,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,CACvD,yBAAyB,EACzB,uBAAuB,CAGxB,CAAC"}
|
|
@@ -33,6 +33,7 @@ const SimpleInlineDropdownBase = (props, ref) => {
|
|
|
33
33
|
clickAwayRef,
|
|
34
34
|
allowWrap = false,
|
|
35
35
|
elevation = 'modal',
|
|
36
|
+
testId,
|
|
36
37
|
...buttonProps
|
|
37
38
|
} = props;
|
|
38
39
|
const [btnText, setBtnText] = React.useState('');
|
|
@@ -71,6 +72,7 @@ const SimpleInlineDropdownBase = (props, ref) => {
|
|
|
71
72
|
onMenuClose: onMenuClose,
|
|
72
73
|
clickAwayRef: clickAwayRef,
|
|
73
74
|
elevation: elevation,
|
|
75
|
+
testId: testId,
|
|
74
76
|
menu: {
|
|
75
77
|
isFluid,
|
|
76
78
|
options,
|
|
@@ -70,6 +70,7 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
70
70
|
step?: string;
|
|
71
71
|
hideNumberSpinner?: boolean;
|
|
72
72
|
hidePasswordToggleIcon?: boolean;
|
|
73
|
+
testId?: string;
|
|
73
74
|
}
|
|
74
75
|
export declare const Input: Flow.AbstractComponent<InputProps, HTMLInputElement>;
|
|
75
76
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAOlD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAiB,MAAM,EAAE,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;EActB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,UACf,SAAQ,IAAI,CACV,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACzC,OAAO,GACP,UAAU,GACV,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,WAAW,GACX,SAAS,GACT,kBAAkB,GAClB,kBAAkB,GAClB,MAAM,GACN,UAAU,GACV,aAAa,GACb,QAAQ,GACR,OAAO,GACP,WAAW,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MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiRD,eAAO,MAAM,KAAK,EAEb,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Input = exports.INPUT_TYPES = exports.EXPONENT_CHARACTER_LIST = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = require("../../utils/classify");
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _Icon = require("../Icon");
|
|
10
11
|
var _Text = require("../Text");
|
|
11
12
|
var _InputModule = _interopRequireDefault(require("./Input.module.css"));
|
|
@@ -58,6 +59,7 @@ const Input_ = (props, ref) => {
|
|
|
58
59
|
disallowExponents,
|
|
59
60
|
hideNumberSpinner,
|
|
60
61
|
hidePasswordToggleIcon,
|
|
62
|
+
testId,
|
|
61
63
|
...inputProps
|
|
62
64
|
} = props;
|
|
63
65
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
@@ -80,23 +82,43 @@ const Input_ = (props, ref) => {
|
|
|
80
82
|
onKeyDown?.(e);
|
|
81
83
|
};
|
|
82
84
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
85
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
86
|
+
base: testId,
|
|
87
|
+
slot: 'root'
|
|
88
|
+
}),
|
|
83
89
|
className: (0, _classify.classify)(_InputModule.default.wrapper, {
|
|
84
90
|
[_InputModule.default.filled]: controlledInputFilled ?? false,
|
|
85
91
|
[_InputModule.default.withError]: error ?? false
|
|
86
92
|
}, classNames?.wrapper),
|
|
87
93
|
children: [Boolean(label) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
94
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
95
|
+
base: testId,
|
|
96
|
+
slot: 'label'
|
|
97
|
+
}),
|
|
88
98
|
className: _InputModule.default.info,
|
|
89
99
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
90
100
|
className: _InputModule.default.infoContent,
|
|
91
101
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
92
102
|
color: "secondary",
|
|
103
|
+
testId: (0, _qa.generateTestId)({
|
|
104
|
+
base: testId,
|
|
105
|
+
slot: 'labelText'
|
|
106
|
+
}),
|
|
93
107
|
children: label ?? ''
|
|
94
108
|
}), "\xA0", required && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
95
109
|
color: "danger",
|
|
110
|
+
testId: (0, _qa.generateTestId)({
|
|
111
|
+
base: testId,
|
|
112
|
+
slot: 'requiredIndicator'
|
|
113
|
+
}),
|
|
96
114
|
children: '*'
|
|
97
115
|
})]
|
|
98
116
|
})
|
|
99
117
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
118
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
119
|
+
base: testId,
|
|
120
|
+
slot: 'box'
|
|
121
|
+
}),
|
|
100
122
|
className: (0, _classify.classify)(_InputModule.default.box, {
|
|
101
123
|
[_InputModule.default.inputDisabled]: disabled ?? false,
|
|
102
124
|
[_InputModule.default.medium]: size === 'medium',
|
|
@@ -108,6 +130,10 @@ const Input_ = (props, ref) => {
|
|
|
108
130
|
onClick: !(disabled || locked) ? onContainerClick : undefined,
|
|
109
131
|
ref: boxRef,
|
|
110
132
|
children: [iconLeftName && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
133
|
+
testId: (0, _qa.generateTestId)({
|
|
134
|
+
base: testId,
|
|
135
|
+
slot: 'iconLeft'
|
|
136
|
+
}),
|
|
111
137
|
className: (0, _classify.classify)(classNames?.iconLeft),
|
|
112
138
|
name: iconLeftName,
|
|
113
139
|
color: disabled ? 'disabled' : 'secondary',
|
|
@@ -115,6 +141,10 @@ const Input_ = (props, ref) => {
|
|
|
115
141
|
type: iconLeftType
|
|
116
142
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
117
143
|
...inputProps,
|
|
144
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
145
|
+
base: testId,
|
|
146
|
+
slot: 'input'
|
|
147
|
+
}),
|
|
118
148
|
disabled: locked || disabled,
|
|
119
149
|
name: name,
|
|
120
150
|
ref: ref,
|
|
@@ -127,11 +157,16 @@ const Input_ = (props, ref) => {
|
|
|
127
157
|
readOnly: readOnly,
|
|
128
158
|
onKeyDown: handleKeyDown
|
|
129
159
|
}), type === 'color' && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
160
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
161
|
+
base: testId,
|
|
162
|
+
slot: 'colorText'
|
|
163
|
+
}),
|
|
130
164
|
className: (0, _classify.classify)(_InputModule.default.colorText, _InputModule.default[size], {
|
|
131
165
|
[_InputModule.default.hasValue]: value
|
|
132
166
|
}),
|
|
133
167
|
children: value ? value : placeholder
|
|
134
168
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(RightInputIcon, {
|
|
169
|
+
testId: testId,
|
|
135
170
|
isEmail: type === 'email',
|
|
136
171
|
isPassword: type === 'password',
|
|
137
172
|
showPassword: showPassword,
|
|
@@ -144,12 +179,24 @@ const Input_ = (props, ref) => {
|
|
|
144
179
|
className: classNames?.iconRight
|
|
145
180
|
})]
|
|
146
181
|
}), (Boolean(helperText) || error) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
182
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
183
|
+
base: testId,
|
|
184
|
+
slot: 'helperText'
|
|
185
|
+
}),
|
|
147
186
|
className: _InputModule.default.info,
|
|
148
187
|
children: error && errorText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodySmall, {
|
|
149
188
|
color: "danger",
|
|
189
|
+
testId: (0, _qa.generateTestId)({
|
|
190
|
+
base: testId,
|
|
191
|
+
slot: 'errorText'
|
|
192
|
+
}),
|
|
150
193
|
children: errorText
|
|
151
194
|
}) : typeof helperText === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodySmall, {
|
|
152
195
|
color: disabled ? 'disabled' : 'secondary',
|
|
196
|
+
testId: (0, _qa.generateTestId)({
|
|
197
|
+
base: testId,
|
|
198
|
+
slot: 'helperText'
|
|
199
|
+
}),
|
|
153
200
|
children: helperText
|
|
154
201
|
}) : helperText
|
|
155
202
|
})]
|
|
@@ -157,6 +204,7 @@ const Input_ = (props, ref) => {
|
|
|
157
204
|
};
|
|
158
205
|
const RightInputIcon = _ref => {
|
|
159
206
|
let {
|
|
207
|
+
testId,
|
|
160
208
|
isEmail,
|
|
161
209
|
isPassword,
|
|
162
210
|
showPassword,
|
|
@@ -169,6 +217,10 @@ const RightInputIcon = _ref => {
|
|
|
169
217
|
} = _ref;
|
|
170
218
|
if (isLocked) {
|
|
171
219
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
220
|
+
testId: (0, _qa.generateTestId)({
|
|
221
|
+
base: testId,
|
|
222
|
+
slot: 'iconRight'
|
|
223
|
+
}),
|
|
172
224
|
name: "lock",
|
|
173
225
|
color: isDisabled ? 'disabled' : 'secondary',
|
|
174
226
|
size: "small",
|
|
@@ -177,6 +229,10 @@ const RightInputIcon = _ref => {
|
|
|
177
229
|
}
|
|
178
230
|
if (isEmail) {
|
|
179
231
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
232
|
+
testId: (0, _qa.generateTestId)({
|
|
233
|
+
base: testId,
|
|
234
|
+
slot: 'iconRight'
|
|
235
|
+
}),
|
|
180
236
|
name: "at",
|
|
181
237
|
color: isDisabled ? 'disabled' : 'secondary',
|
|
182
238
|
size: "small",
|
|
@@ -186,6 +242,10 @@ const RightInputIcon = _ref => {
|
|
|
186
242
|
}
|
|
187
243
|
if (isPassword && showPasswordToggleIcon) {
|
|
188
244
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
245
|
+
testId: (0, _qa.generateTestId)({
|
|
246
|
+
base: testId,
|
|
247
|
+
slot: 'iconRight'
|
|
248
|
+
}),
|
|
189
249
|
name: showPassword ? 'eye-slash' : 'eye',
|
|
190
250
|
color: isDisabled ? 'disabled' : 'secondary',
|
|
191
251
|
size: "small",
|
|
@@ -198,6 +258,10 @@ const RightInputIcon = _ref => {
|
|
|
198
258
|
}
|
|
199
259
|
if (iconRightName) {
|
|
200
260
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
261
|
+
testId: (0, _qa.generateTestId)({
|
|
262
|
+
base: testId,
|
|
263
|
+
slot: 'iconRight'
|
|
264
|
+
}),
|
|
201
265
|
name: iconRightName || '',
|
|
202
266
|
color: isDisabled ? 'disabled' : 'secondary',
|
|
203
267
|
size: "small",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KPIBox.d.ts","sourceRoot":"","sources":["../../../src/components/KPIBox/KPIBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"KPIBox.d.ts","sourceRoot":"","sources":["../../../src/components/KPIBox/KPIBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAIxD,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAM5D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,cAAc,CAyEpE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.KPIBox = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _Icon = require("../Icon");
|
|
10
11
|
var _KPIBoxModule = _interopRequireDefault(require("./KPIBox.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -21,28 +22,52 @@ const KPIBox = exports.KPIBox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
21
22
|
iconName,
|
|
22
23
|
iconSize = 'large',
|
|
23
24
|
iconType = 'solid',
|
|
25
|
+
testId,
|
|
24
26
|
...props
|
|
25
27
|
} = _ref;
|
|
26
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
29
|
...props,
|
|
28
30
|
ref: ref,
|
|
29
|
-
"data-testid":
|
|
31
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
32
|
+
base: testId,
|
|
33
|
+
slot: 'root'
|
|
34
|
+
}),
|
|
30
35
|
className: (0, _classify.default)(_KPIBoxModule.default.wrapper, classNames?.wrapper),
|
|
31
36
|
children: [!!iconName && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.SemanticIcon, {
|
|
32
37
|
semantic: semantic,
|
|
33
38
|
name: iconName,
|
|
34
39
|
size: iconSize,
|
|
35
|
-
type: iconType
|
|
40
|
+
type: iconType,
|
|
41
|
+
testId: (0, _qa.generateTestId)({
|
|
42
|
+
base: testId,
|
|
43
|
+
slot: 'icon'
|
|
44
|
+
})
|
|
36
45
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
37
46
|
className: (0, _classify.default)(_KPIBoxModule.default.textContainer, classNames?.textContainer),
|
|
47
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
48
|
+
base: testId,
|
|
49
|
+
slot: 'content'
|
|
50
|
+
}),
|
|
38
51
|
children: [!!topContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
39
52
|
className: (0, _classify.default)(_KPIBoxModule.default.topFoldContent, classNames?.topFoldContent),
|
|
53
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
54
|
+
base: testId,
|
|
55
|
+
slot: 'top'
|
|
56
|
+
}),
|
|
40
57
|
children: topContent
|
|
41
58
|
}), !!middleContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
42
59
|
className: (0, _classify.default)(_KPIBoxModule.default.middleFoldContent, classNames?.middleFoldContent),
|
|
60
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
61
|
+
base: testId,
|
|
62
|
+
slot: 'middle'
|
|
63
|
+
}),
|
|
43
64
|
children: middleContent
|
|
44
65
|
}), !!bottomContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
66
|
className: (0, _classify.default)(_KPIBoxModule.default.bottomFoldContent, classNames?.bottomFoldContent),
|
|
67
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
68
|
+
base: testId,
|
|
69
|
+
slot: 'bottom'
|
|
70
|
+
}),
|
|
46
71
|
children: bottomContent
|
|
47
72
|
})]
|
|
48
73
|
})]
|
|
@@ -4,6 +4,7 @@ export interface LinearLoaderProps {
|
|
|
4
4
|
size?: 'large' | 'medium' | 'small';
|
|
5
5
|
className?: string;
|
|
6
6
|
indeterminate?: boolean;
|
|
7
|
+
testId?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare const LinearLoader: Flow.AbstractComponent<LinearLoaderProps, HTMLDivElement>;
|
|
9
10
|
//# sourceMappingURL=LinearLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinearLoader.d.ts","sourceRoot":"","sources":["../../../src/components/LinearLoader/LinearLoader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"LinearLoader.d.ts","sourceRoot":"","sources":["../../../src/components/LinearLoader/LinearLoader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,iBAAiB,EACjB,cAAc,CAqCf,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.LinearLoader = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = require("../../utils/classify");
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _LinearLoaderModule = _interopRequireDefault(require("./LinearLoader.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -15,9 +16,14 @@ const LinearLoader = exports.LinearLoader = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
15
16
|
value,
|
|
16
17
|
size = 'medium',
|
|
17
18
|
className,
|
|
18
|
-
indeterminate
|
|
19
|
+
indeterminate,
|
|
20
|
+
testId
|
|
19
21
|
} = _ref;
|
|
20
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
23
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
24
|
+
base: testId,
|
|
25
|
+
slot: 'loader'
|
|
26
|
+
}),
|
|
21
27
|
className: (0, _classify.classify)(_LinearLoaderModule.default.lineContainer, {
|
|
22
28
|
[_LinearLoaderModule.default.large]: size === 'large',
|
|
23
29
|
[_LinearLoaderModule.default.medium]: size === 'medium',
|
|
@@ -59,6 +59,7 @@ export interface BaseLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAncho
|
|
|
59
59
|
iconRightName?: string;
|
|
60
60
|
iconRightSize?: IconSize;
|
|
61
61
|
iconRightType?: IconType;
|
|
62
|
+
testId?: string;
|
|
62
63
|
/**
|
|
63
64
|
* IMPORTANT: If you are using `to` make sure to provide link component from your router
|
|
64
65
|
* if you want to prevent full page reloads in a Single Page Application (SPA).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMrD,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAM5D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;EAiBlB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAA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,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,WAAW,GAAG,eAAe,CAAC;IACpE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,CACpC,aAAa,EACb,iBAAiB,GAAG,IAAI,GAAG,SAAS,CACrC,CAAC;CACH;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CACvC,SAAS,EACT,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAiHrC,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.Link = exports.LINK_AS = exports.ANCHOR_TARGET = exports.ANCHOR_REL = vo
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _typography = require("../../types/typography");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _ConditionalWrapper = require("../ConditionalWrapper");
|
|
11
12
|
var _Icon = require("../Icon");
|
|
12
13
|
var _typographyModule = _interopRequireDefault(require("../../styles/typography.module.css"));
|
|
@@ -62,6 +63,7 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
62
63
|
tabIndex = 0,
|
|
63
64
|
disabled,
|
|
64
65
|
onClick,
|
|
66
|
+
testId,
|
|
65
67
|
linkComponent: LinkComponent = DefaultLink,
|
|
66
68
|
iconLeftName,
|
|
67
69
|
iconLeftSize = _Icon.ICON_SIZE.small,
|
|
@@ -101,7 +103,10 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
101
103
|
...props,
|
|
102
104
|
tabIndex: disabled ? -1 : tabIndex,
|
|
103
105
|
ref: linkRef,
|
|
104
|
-
|
|
106
|
+
testId: (0, _qa.generateTestId)({
|
|
107
|
+
base: testId,
|
|
108
|
+
slot: 'root'
|
|
109
|
+
}),
|
|
105
110
|
className: (0, _classify.default)(_typographyModule.default.link, _typographyModule.default[as], _typographyModule.default[color], {
|
|
106
111
|
[_typographyModule.default.underline]: underline && !(iconLeftName || iconRightName),
|
|
107
112
|
[_typographyModule.default.disabled]: disabled
|
|
@@ -114,6 +119,10 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
114
119
|
type: iconLeftType,
|
|
115
120
|
className: (0, _classify.default)(_typographyModule.default[color], {
|
|
116
121
|
[_typographyModule.default.disabled]: disabled
|
|
122
|
+
}),
|
|
123
|
+
testId: (0, _qa.generateTestId)({
|
|
124
|
+
base: testId,
|
|
125
|
+
slot: 'icon-left'
|
|
117
126
|
})
|
|
118
127
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
119
128
|
condition: Boolean(iconLeftName || iconRightName),
|
|
@@ -121,6 +130,10 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
121
130
|
className: (0, _classify.default)({
|
|
122
131
|
[_typographyModule.default.underline]: underline
|
|
123
132
|
}),
|
|
133
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
134
|
+
base: testId,
|
|
135
|
+
slot: 'text'
|
|
136
|
+
}),
|
|
124
137
|
children: children
|
|
125
138
|
}),
|
|
126
139
|
children: children
|
|
@@ -128,7 +141,11 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
128
141
|
name: iconRightName,
|
|
129
142
|
size: iconRightSize,
|
|
130
143
|
type: iconRightType,
|
|
131
|
-
className: _typographyModule.default[color]
|
|
144
|
+
className: _typographyModule.default[color],
|
|
145
|
+
testId: (0, _qa.generateTestId)({
|
|
146
|
+
base: testId,
|
|
147
|
+
slot: 'icon-right'
|
|
148
|
+
})
|
|
132
149
|
})]
|
|
133
150
|
});
|
|
134
151
|
});
|
|
@@ -137,6 +154,7 @@ const DefaultLink = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
137
154
|
children,
|
|
138
155
|
href,
|
|
139
156
|
to,
|
|
157
|
+
testId,
|
|
140
158
|
...props
|
|
141
159
|
} = _ref2;
|
|
142
160
|
const resolvedHref = to ?? href;
|
|
@@ -144,6 +162,10 @@ const DefaultLink = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
144
162
|
...props,
|
|
145
163
|
href: resolvedHref,
|
|
146
164
|
ref: ref,
|
|
165
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
166
|
+
base: testId,
|
|
167
|
+
slot: 'root'
|
|
168
|
+
}),
|
|
147
169
|
children: children
|
|
148
170
|
});
|
|
149
171
|
});
|
|
@@ -26,6 +26,7 @@ export interface MenuOption {
|
|
|
26
26
|
optionVariant?: MenuOptionsVariant;
|
|
27
27
|
keepMenuOpenOnOptionSelect?: boolean;
|
|
28
28
|
indeterminate?: boolean;
|
|
29
|
+
testId?: string;
|
|
29
30
|
}
|
|
30
31
|
export interface BaseMenuProps {
|
|
31
32
|
onSelect?: (option: MenuOption, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
|
|
@@ -52,6 +53,7 @@ export interface BaseMenuProps {
|
|
|
52
53
|
};
|
|
53
54
|
showLabelTooltip?: MenuLabelTooltip;
|
|
54
55
|
allowWrap?: boolean;
|
|
56
|
+
testId?: string;
|
|
55
57
|
}
|
|
56
58
|
export interface MenuOptionTypes {
|
|
57
59
|
options?: Array<MenuOption>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAGrD,OAAO,KAAK,EAAC,c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AAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1C,iBAAiB,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACjD;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC/C,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,eAAe;CAAG;AAEpE,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAsOD,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,cAAc,CAmF/D,CAAC"}
|
|
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactWindow = require("react-window");
|
|
9
9
|
var _classify = require("../../utils/classify");
|
|
10
10
|
var _menu = require("../../utils/menu");
|
|
11
|
+
var _qa = require("../../utils/qa");
|
|
11
12
|
var _MenuOptionButton = require("./MenuOptionButton");
|
|
12
13
|
var _SearchInput = require("../SearchInput");
|
|
13
14
|
var _Text = require("../Text");
|
|
@@ -29,6 +30,7 @@ const RenderOption = _ref => {
|
|
|
29
30
|
classNames,
|
|
30
31
|
searchText = '',
|
|
31
32
|
showResultText = true,
|
|
33
|
+
testId,
|
|
32
34
|
staticLabels = {
|
|
33
35
|
RESULT: 'result',
|
|
34
36
|
RESULTS: 'results',
|
|
@@ -57,6 +59,10 @@ const RenderOption = _ref => {
|
|
|
57
59
|
children: [allowSearch && showResultText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
58
60
|
className: _MenuModule.default.filterOptionsResultText,
|
|
59
61
|
color: "tertiary",
|
|
62
|
+
testId: (0, _qa.generateTestId)({
|
|
63
|
+
base: testId,
|
|
64
|
+
slot: 'result-text'
|
|
65
|
+
}),
|
|
60
66
|
children: finalResultText
|
|
61
67
|
}), virtualization && isVirtualizationEnabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactWindow.FixedSizeList, {
|
|
62
68
|
height: menuHeight || (size === 'medium' ? menuSizeMedium : menuSizeSmall),
|
|
@@ -75,7 +81,12 @@ const RenderOption = _ref => {
|
|
|
75
81
|
classNames: classNames,
|
|
76
82
|
style: style,
|
|
77
83
|
...restProps,
|
|
78
|
-
isLastItem: idx === optionsFiltered.length - 1
|
|
84
|
+
isLastItem: idx === optionsFiltered.length - 1,
|
|
85
|
+
testId: (0, _qa.generateTestId)({
|
|
86
|
+
base: testId,
|
|
87
|
+
slot: 'option',
|
|
88
|
+
index: idx.toString()
|
|
89
|
+
})
|
|
79
90
|
})
|
|
80
91
|
}, buttonOption.key);
|
|
81
92
|
}
|
|
@@ -84,7 +95,12 @@ const RenderOption = _ref => {
|
|
|
84
95
|
option: option,
|
|
85
96
|
classNames: classNames,
|
|
86
97
|
...restProps,
|
|
87
|
-
isLastItem: idx === optionsFiltered.length - 1
|
|
98
|
+
isLastItem: idx === optionsFiltered.length - 1,
|
|
99
|
+
testId: (0, _qa.generateTestId)({
|
|
100
|
+
base: testId,
|
|
101
|
+
slot: 'option',
|
|
102
|
+
index: idx.toString()
|
|
103
|
+
})
|
|
88
104
|
})
|
|
89
105
|
}, option.key))]
|
|
90
106
|
});
|
|
@@ -96,6 +112,10 @@ const RenderOption = _ref => {
|
|
|
96
112
|
children: [allowSearch && showResultText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
97
113
|
className: _MenuModule.default.filterOptionsResultText,
|
|
98
114
|
color: "tertiary",
|
|
115
|
+
testId: (0, _qa.generateTestId)({
|
|
116
|
+
base: testId,
|
|
117
|
+
slot: 'result-text'
|
|
118
|
+
}),
|
|
99
119
|
children: finalResultText
|
|
100
120
|
}), optionsFiltered.map((composeMenuOptions, index) =>
|
|
101
121
|
/*#__PURE__*/
|
|
@@ -107,7 +127,12 @@ const RenderOption = _ref => {
|
|
|
107
127
|
option: option,
|
|
108
128
|
classNames: classNames,
|
|
109
129
|
...restProps,
|
|
110
|
-
isLastItem: index === optionsFiltered.length - 1 && idx === composeMenuOptions.length - 1
|
|
130
|
+
isLastItem: index === optionsFiltered.length - 1 && idx === composeMenuOptions.length - 1,
|
|
131
|
+
testId: (0, _qa.generateTestId)({
|
|
132
|
+
base: testId,
|
|
133
|
+
slot: 'option',
|
|
134
|
+
index: `${index}-${idx}`
|
|
135
|
+
})
|
|
111
136
|
})
|
|
112
137
|
}, option.key))
|
|
113
138
|
}, index))]
|
|
@@ -120,6 +145,10 @@ const RenderOption = _ref => {
|
|
|
120
145
|
children: [allowSearch && showResultText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
121
146
|
className: _MenuModule.default.filterOptionsResultText,
|
|
122
147
|
color: "tertiary",
|
|
148
|
+
testId: (0, _qa.generateTestId)({
|
|
149
|
+
base: testId,
|
|
150
|
+
slot: 'result-text'
|
|
151
|
+
}),
|
|
123
152
|
children: finalResultText
|
|
124
153
|
}), optionsFiltered.map((optionsGroup, index) =>
|
|
125
154
|
/*#__PURE__*/
|
|
@@ -127,13 +156,23 @@ const RenderOption = _ref => {
|
|
|
127
156
|
(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
128
157
|
children: [!!optionsGroup.groupTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
129
158
|
className: (0, _classify.classify)(_MenuModule.default.groupTitleWrapper, classNames?.groupTitle),
|
|
159
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
160
|
+
base: testId,
|
|
161
|
+
slot: 'group-title',
|
|
162
|
+
index: index.toString()
|
|
163
|
+
}),
|
|
130
164
|
children: optionsGroup.groupTitle
|
|
131
165
|
}), optionsGroup.options?.map((option, idx) => /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
|
|
132
166
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuOptionButton.MenuOptionButton, {
|
|
133
167
|
option: option,
|
|
134
168
|
classNames: classNames,
|
|
135
169
|
...restProps,
|
|
136
|
-
isLastItem: index === optionsFiltered.length - 1 && idx === (optionsGroup.options && optionsGroup.options.length - 1)
|
|
170
|
+
isLastItem: index === optionsFiltered.length - 1 && idx === (optionsGroup.options && optionsGroup.options.length - 1),
|
|
171
|
+
testId: (0, _qa.generateTestId)({
|
|
172
|
+
base: testId,
|
|
173
|
+
slot: 'option',
|
|
174
|
+
index: `${index}-${idx}`
|
|
175
|
+
})
|
|
137
176
|
})
|
|
138
177
|
}, option.key))]
|
|
139
178
|
}, index))]
|
|
@@ -155,7 +194,8 @@ const Menu = exports.Menu = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
155
194
|
},
|
|
156
195
|
header,
|
|
157
196
|
footer,
|
|
158
|
-
staticLabels
|
|
197
|
+
staticLabels,
|
|
198
|
+
testId
|
|
159
199
|
} = props;
|
|
160
200
|
const [searchText, setSearchText] = React.useState('');
|
|
161
201
|
const {
|
|
@@ -182,20 +222,37 @@ const Menu = exports.Menu = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
182
222
|
maxHeight: menuHeight ? menuHeight + 'px' : ''
|
|
183
223
|
},
|
|
184
224
|
ref: ref,
|
|
225
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
226
|
+
base: testId,
|
|
227
|
+
slot: 'wrapper'
|
|
228
|
+
}),
|
|
185
229
|
children: [hasHeader && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
186
230
|
className: (0, _classify.classify)(_MenuModule.default.menuHeader, classNames?.header),
|
|
231
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
232
|
+
base: testId,
|
|
233
|
+
slot: 'header'
|
|
234
|
+
}),
|
|
187
235
|
children: header
|
|
188
236
|
}), allowSearch && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchInput.SearchInput, {
|
|
189
237
|
value: searchText,
|
|
190
238
|
onChange: e => setSearchText(e.target.value),
|
|
191
239
|
onClear: () => setSearchText(''),
|
|
192
240
|
size: size,
|
|
193
|
-
placeholder: staticLabels?.SEARCH_PLACEHOLDER ?? 'Search...'
|
|
241
|
+
placeholder: staticLabels?.SEARCH_PLACEHOLDER ?? 'Search...',
|
|
242
|
+
testId: (0, _qa.generateTestId)({
|
|
243
|
+
base: testId,
|
|
244
|
+
slot: 'search'
|
|
245
|
+
})
|
|
194
246
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(RenderOption, {
|
|
195
247
|
...props,
|
|
196
|
-
searchText: searchText
|
|
248
|
+
searchText: searchText,
|
|
249
|
+
testId: testId
|
|
197
250
|
}), hasFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
198
251
|
className: (0, _classify.classify)(_MenuModule.default.menuFooter, classNames?.footer),
|
|
252
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
253
|
+
base: testId,
|
|
254
|
+
slot: 'footer'
|
|
255
|
+
}),
|
|
199
256
|
children: footer
|
|
200
257
|
})]
|
|
201
258
|
});
|