@spaced-out/ui-design-system 0.5.11 → 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/CHANGELOG.md +13 -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/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/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/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/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/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.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/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/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/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 +1 -0
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
- package/lib/components/PromptChip/PromptChip.js +42 -5
- 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/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/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/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/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/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/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,6 +13,7 @@ var _opacity = require("../../styles/variables/_opacity");
|
|
|
13
13
|
var _space = require("../../styles/variables/_space");
|
|
14
14
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
15
15
|
var _helpers = require("../../utils/helpers");
|
|
16
|
+
var _qa = require("../../utils/qa");
|
|
16
17
|
var _Button = require("../Button/Button");
|
|
17
18
|
var _Truncate = require("../Truncate/Truncate");
|
|
18
19
|
var _ModalModule = _interopRequireDefault(require("./Modal.module.css"));
|
|
@@ -42,21 +43,34 @@ const ModalHeader = _ref => {
|
|
|
42
43
|
children,
|
|
43
44
|
hideCloseBtn,
|
|
44
45
|
onCloseButtonClick,
|
|
45
|
-
className
|
|
46
|
+
className,
|
|
47
|
+
testId
|
|
46
48
|
} = _ref;
|
|
47
49
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
48
50
|
children: React.Children.count(children) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
51
|
className: (0, _classify.default)(_ModalModule.default.modalHeader, className),
|
|
52
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
53
|
+
base: testId,
|
|
54
|
+
slot: 'wrapper'
|
|
55
|
+
}),
|
|
50
56
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
57
|
className: _ModalModule.default.headerContent,
|
|
52
58
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
|
|
59
|
+
testId: (0, _qa.generateTestId)({
|
|
60
|
+
base: testId,
|
|
61
|
+
slot: 'title'
|
|
62
|
+
}),
|
|
53
63
|
children: children
|
|
54
64
|
})
|
|
55
65
|
}), !hideCloseBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
56
66
|
iconLeftName: "xmark",
|
|
57
67
|
type: "ghost",
|
|
58
68
|
onClick: onCloseButtonClick,
|
|
59
|
-
ariaLabel: "Close Button"
|
|
69
|
+
ariaLabel: "Close Button",
|
|
70
|
+
testId: (0, _qa.generateTestId)({
|
|
71
|
+
base: testId,
|
|
72
|
+
slot: 'close-button'
|
|
73
|
+
})
|
|
60
74
|
})]
|
|
61
75
|
})
|
|
62
76
|
});
|
|
@@ -65,10 +79,15 @@ exports.ModalHeader = ModalHeader;
|
|
|
65
79
|
const ModalBody = _ref2 => {
|
|
66
80
|
let {
|
|
67
81
|
children,
|
|
68
|
-
className
|
|
82
|
+
className,
|
|
83
|
+
testId
|
|
69
84
|
} = _ref2;
|
|
70
85
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
86
|
className: (0, _classify.default)(_ModalModule.default.modalBody, className),
|
|
87
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
88
|
+
base: testId,
|
|
89
|
+
slot: 'wrapper'
|
|
90
|
+
}),
|
|
72
91
|
children: children
|
|
73
92
|
});
|
|
74
93
|
};
|
|
@@ -76,13 +95,22 @@ exports.ModalBody = ModalBody;
|
|
|
76
95
|
const ModalFooter = _ref3 => {
|
|
77
96
|
let {
|
|
78
97
|
children,
|
|
79
|
-
classNames
|
|
98
|
+
classNames,
|
|
99
|
+
testId
|
|
80
100
|
} = _ref3;
|
|
81
101
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
82
102
|
children: React.Children.count(children) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
83
103
|
className: (0, _classify.default)(_ModalModule.default.modalFooter, classNames?.wrapper),
|
|
104
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
105
|
+
base: testId,
|
|
106
|
+
slot: 'wrapper'
|
|
107
|
+
}),
|
|
84
108
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
85
109
|
className: (0, _classify.default)(_ModalModule.default.modalFooterActions, classNames?.actions),
|
|
110
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
111
|
+
base: testId,
|
|
112
|
+
slot: 'actions'
|
|
113
|
+
}),
|
|
86
114
|
children: children
|
|
87
115
|
})
|
|
88
116
|
})
|
|
@@ -145,6 +173,7 @@ const Modal = _ref4 => {
|
|
|
145
173
|
initialFocus = -1,
|
|
146
174
|
customAnimation,
|
|
147
175
|
allowBackgroundInteraction = false,
|
|
176
|
+
testId,
|
|
148
177
|
// Size is not set to default for backward compatibility. Don't change if you don't know this.
|
|
149
178
|
size
|
|
150
179
|
} = _ref4;
|
|
@@ -233,6 +262,10 @@ const Modal = _ref4 => {
|
|
|
233
262
|
[_ModalModule.default.in]: isTransitioning,
|
|
234
263
|
[_ModalModule.default.open]: isOpen
|
|
235
264
|
}, classNames?.container),
|
|
265
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
266
|
+
base: testId,
|
|
267
|
+
slot: 'container'
|
|
268
|
+
}),
|
|
236
269
|
children: [!allowBackgroundInteraction && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
237
270
|
className: (0, _classify.default)(_ModalModule.default.backdrop, {
|
|
238
271
|
[_ModalModule.default.darkBackdrop]: !hideBackdrop
|
|
@@ -241,7 +274,11 @@ const Modal = _ref4 => {
|
|
|
241
274
|
style: {
|
|
242
275
|
opacity: styles?.opacity,
|
|
243
276
|
transition: styles?.transition
|
|
244
|
-
}
|
|
277
|
+
},
|
|
278
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
279
|
+
base: testId,
|
|
280
|
+
slot: 'backdrop'
|
|
281
|
+
})
|
|
245
282
|
}), isMounted && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
246
283
|
className: (0, _classify.default)(_ModalModule.default.modal, {
|
|
247
284
|
[_ModalModule.default.small]: size === 'small',
|
|
@@ -253,6 +290,10 @@ const Modal = _ref4 => {
|
|
|
253
290
|
// Transition styles
|
|
254
291
|
...styles
|
|
255
292
|
},
|
|
293
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
294
|
+
base: testId,
|
|
295
|
+
slot: 'content'
|
|
296
|
+
}),
|
|
256
297
|
children: children
|
|
257
298
|
})]
|
|
258
299
|
})
|
|
@@ -264,6 +305,7 @@ exports.Modal = Modal;
|
|
|
264
305
|
const FullScreenModal = _ref5 => {
|
|
265
306
|
let {
|
|
266
307
|
classNames,
|
|
308
|
+
testId,
|
|
267
309
|
...props
|
|
268
310
|
} = _ref5;
|
|
269
311
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Modal, {
|
|
@@ -271,6 +313,7 @@ const FullScreenModal = _ref5 => {
|
|
|
271
313
|
...classNames,
|
|
272
314
|
content: (0, _classify.default)(_ModalModule.default.fullscreenModalContainer, classNames?.content)
|
|
273
315
|
},
|
|
316
|
+
testId: testId,
|
|
274
317
|
...props
|
|
275
318
|
});
|
|
276
319
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Notification.d.ts","sour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,qBAAqB,EAAE,UAAU,CAAC;IAC/C,QAAQ,EAAE,wBAAwB,CAAC;CACpC;AAkED,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,iBAAiB,EACjB,cAAc,CA+Cf,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.Notification = exports.NOTIFICATION_SEMANTIC = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _typography = require("../../types/typography");
|
|
9
9
|
var _classify = require("../../utils/classify");
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Icon = require("../Icon");
|
|
11
12
|
var _Text = require("../Text");
|
|
12
13
|
var _NotificationModule = _interopRequireDefault(require("./Notification.module.css"));
|
|
@@ -28,7 +29,8 @@ const BaseNotification = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
28
29
|
iconLeftType = 'regular',
|
|
29
30
|
dismissable,
|
|
30
31
|
children,
|
|
31
|
-
onCloseClick
|
|
32
|
+
onCloseClick,
|
|
33
|
+
testId
|
|
32
34
|
} = props;
|
|
33
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
34
36
|
className: (0, _classify.classify)(_NotificationModule.default.baseContainer, {
|
|
@@ -38,14 +40,26 @@ const BaseNotification = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
38
40
|
[_NotificationModule.default.dismissable]: dismissable
|
|
39
41
|
}, classNames?.wrapper),
|
|
40
42
|
ref: ref,
|
|
43
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
44
|
+
base: testId,
|
|
45
|
+
slot: 'root'
|
|
46
|
+
}),
|
|
41
47
|
children: [iconLeftName ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
42
48
|
name: iconLeftName,
|
|
43
49
|
color: _typography.TEXT_COLORS.inversePrimary,
|
|
44
50
|
size: "small",
|
|
45
|
-
type: iconLeftType
|
|
51
|
+
type: iconLeftType,
|
|
52
|
+
testId: (0, _qa.generateTestId)({
|
|
53
|
+
base: testId,
|
|
54
|
+
slot: 'icon'
|
|
55
|
+
})
|
|
46
56
|
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleSmall, {
|
|
47
57
|
className: (0, _classify.classify)(classNames?.text),
|
|
48
58
|
color: _typography.TEXT_COLORS.inversePrimary,
|
|
59
|
+
testId: (0, _qa.generateTestId)({
|
|
60
|
+
base: testId,
|
|
61
|
+
slot: 'text'
|
|
62
|
+
}),
|
|
49
63
|
children: children
|
|
50
64
|
}), dismissable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
51
65
|
color: _typography.TEXT_COLORS.inversePrimary,
|
|
@@ -53,7 +67,11 @@ const BaseNotification = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
53
67
|
size: "small",
|
|
54
68
|
type: "regular",
|
|
55
69
|
onClick: onCloseClick,
|
|
56
|
-
className: _NotificationModule.default.closeIcon
|
|
70
|
+
className: _NotificationModule.default.closeIcon,
|
|
71
|
+
testId: (0, _qa.generateTestId)({
|
|
72
|
+
base: testId,
|
|
73
|
+
slot: 'close'
|
|
74
|
+
})
|
|
57
75
|
})]
|
|
58
76
|
});
|
|
59
77
|
});
|
|
@@ -65,7 +83,8 @@ const Notification = exports.Notification = /*#__PURE__*/React.forwardRef((props
|
|
|
65
83
|
iconLeftType,
|
|
66
84
|
dismissable,
|
|
67
85
|
children,
|
|
68
|
-
onCloseClick
|
|
86
|
+
onCloseClick,
|
|
87
|
+
testId
|
|
69
88
|
} = props;
|
|
70
89
|
|
|
71
90
|
// Type narrowing to safely access selfDismiss only when dismissable is true
|
|
@@ -85,6 +104,7 @@ const Notification = exports.Notification = /*#__PURE__*/React.forwardRef((props
|
|
|
85
104
|
semantic: semantic,
|
|
86
105
|
dismissable: dismissable,
|
|
87
106
|
onCloseClick: closeClickHandler,
|
|
107
|
+
testId: testId,
|
|
88
108
|
ref: ref,
|
|
89
109
|
children: children
|
|
90
110
|
})
|
|
@@ -27,6 +27,7 @@ export interface OptionButtonProps extends Omit<ButtonProps, 'menu' | 'anchorPos
|
|
|
27
27
|
tooltip?: OptionButtonTooltipProps;
|
|
28
28
|
classNames?: ClassNames;
|
|
29
29
|
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
30
|
+
testId?: string;
|
|
30
31
|
}
|
|
31
32
|
export declare const OptionButton: Flow.AbstractComponent<OptionButtonProps, HTMLDivElement>;
|
|
32
33
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionButton.d.ts","sourceRoot":"","sources":["../../../src/components/OptionButton/OptionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAGrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"OptionButton.d.ts","sourceRoot":"","sources":["../../../src/components/OptionButton/OptionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAGrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAG3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAEvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAG9D,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAM7D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAED,MAAM,WAAW,iBACf,SAAQ,IAAI,CACV,WAAW,EACT,MAAM,GACN,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,YAAY,GACZ,aAAa,GACb,SAAS,GACT,YAAY,GACZ,cAAc,CACjB;IACD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,cAAc,CAAC,EAAE,CACf,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAAC;IACb,aAAa,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC3D,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,iBAAiB,EACjB,cAAc,CA6Gf,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.OptionButton = 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 _Button = require("../Button");
|
|
10
11
|
var _ButtonDropdown = require("../ButtonDropdown");
|
|
11
12
|
var _ConditionalWrapper = require("../ConditionalWrapper");
|
|
@@ -34,7 +35,8 @@ const OptionButton = exports.OptionButton = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
34
35
|
actionType,
|
|
35
36
|
tooltip,
|
|
36
37
|
classNames,
|
|
37
|
-
clickAwayRef
|
|
38
|
+
clickAwayRef,
|
|
39
|
+
testId
|
|
38
40
|
} = _ref;
|
|
39
41
|
const [iconName, setIconName] = React.useState('chevron-down');
|
|
40
42
|
const [isMenuOpen, setIsMenuOpen] = React.useState(false);
|
|
@@ -43,11 +45,19 @@ const OptionButton = exports.OptionButton = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
43
45
|
[_OptionButtonModule.default.isFluid]: isFluid
|
|
44
46
|
}, classNames?.wrapper),
|
|
45
47
|
ref: ref,
|
|
48
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
49
|
+
base: testId,
|
|
50
|
+
slot: 'root'
|
|
51
|
+
}),
|
|
46
52
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
47
53
|
condition: Boolean(tooltip?.baseButton),
|
|
48
54
|
wrapper: children => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
49
55
|
...tooltip?.baseButton,
|
|
50
56
|
hidden: isMenuOpen ? true : tooltip?.optionsButton?.hidden,
|
|
57
|
+
testId: (0, _qa.generateTestId)({
|
|
58
|
+
base: testId,
|
|
59
|
+
slot: 'base-tooltip'
|
|
60
|
+
}),
|
|
51
61
|
children: children
|
|
52
62
|
}),
|
|
53
63
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
@@ -65,6 +75,10 @@ const OptionButton = exports.OptionButton = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
65
75
|
wrapper: (0, _classify.default)(_OptionButtonModule.default.leftButton, classNames?.baseButtonWrapper),
|
|
66
76
|
icon: classNames?.baseButtonIcon
|
|
67
77
|
},
|
|
78
|
+
testId: (0, _qa.generateTestId)({
|
|
79
|
+
base: testId,
|
|
80
|
+
slot: 'base-button'
|
|
81
|
+
}),
|
|
68
82
|
children: children
|
|
69
83
|
})
|
|
70
84
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonDropdown.ButtonDropdown, {
|
|
@@ -92,7 +106,11 @@ const OptionButton = exports.OptionButton = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
92
106
|
},
|
|
93
107
|
onOptionSelect: onOptionSelect,
|
|
94
108
|
size: size,
|
|
95
|
-
clickAwayRef: clickAwayRef
|
|
109
|
+
clickAwayRef: clickAwayRef,
|
|
110
|
+
testId: (0, _qa.generateTestId)({
|
|
111
|
+
base: testId,
|
|
112
|
+
slot: 'dropdown'
|
|
113
|
+
})
|
|
96
114
|
})]
|
|
97
115
|
});
|
|
98
116
|
});
|
|
@@ -17,7 +17,7 @@ type ClassNames = Readonly<{
|
|
|
17
17
|
export interface SimpleOptionButtonRef {
|
|
18
18
|
selectedKeys?: Array<string>;
|
|
19
19
|
}
|
|
20
|
-
export interface SimpleOptionButtonProps extends Omit<ButtonProps, 'classNames' | 'anchorPosition' | 'tooltip' | 'menuSize' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'showLabelTooltip' | 'allowWrap' | 'onOptionSelect' | 'onButtonClick' | 'onMenuOpen' | 'onMenuClose' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef'> {
|
|
20
|
+
export interface SimpleOptionButtonProps extends Omit<ButtonProps, 'classNames' | 'anchorPosition' | 'tooltip' | 'menuSize' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'showLabelTooltip' | 'allowWrap' | 'onOptionSelect' | 'onButtonClick' | 'onMenuOpen' | 'onMenuClose' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef' | 'testId'> {
|
|
21
21
|
classNames?: ClassNames;
|
|
22
22
|
anchorPosition?: AnchorType;
|
|
23
23
|
tooltip?: OptionButtonTooltipProps;
|
|
@@ -39,6 +39,7 @@ export interface SimpleOptionButtonProps extends Omit<ButtonProps, 'classNames'
|
|
|
39
39
|
resolveLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
40
40
|
resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
41
41
|
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
42
|
+
testId?: string;
|
|
42
43
|
}
|
|
43
44
|
export declare const SimpleOptionButton: Flow.AbstractComponent<SimpleOptionButtonProps, SimpleOptionButtonRef>;
|
|
44
45
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleOptionButton.d.ts","sourceRoot":"","sources":["../../../src/components/OptionButton/SimpleOptionButton.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;AAG3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,0CAA0C,CAAC;AAIvF,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,WAAW,EACT,YAAY,GACZ,gBAAgB,GAChB,SAAS,GACT,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,kBAAkB,GAClB,WAAW,GACX,gBAAgB,GAChB,eAAe,GACf,YAAY,GACZ,aAAa,GACb,cAAc,GACd,uBAAuB,GACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"SimpleOptionButton.d.ts","sourceRoot":"","sources":["../../../src/components/OptionButton/SimpleOptionButton.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;AAG3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,0CAA0C,CAAC;AAIvF,KAAK,UAAU,GAAG,Q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pC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,CACf,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAAC;IACb,aAAa,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC3D,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,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;AAuGD,eAAO,MAAM,kBAAkB,EAAE,IAAI,CAAC,iBAAiB,CACrD,uBAAuB,EACvB,qBAAqB,CAGtB,CAAC"}
|
|
@@ -34,6 +34,7 @@ const SimpleOptionButtonBase = (props, ref) => {
|
|
|
34
34
|
showLabelTooltip,
|
|
35
35
|
clickAwayRef,
|
|
36
36
|
allowWrap = false,
|
|
37
|
+
testId,
|
|
37
38
|
...buttonProps
|
|
38
39
|
} = props;
|
|
39
40
|
const [optionButtonSelectedKeys, setOptionButtonSelectedKeys] = React.useState(selectedKeys);
|
|
@@ -67,6 +68,7 @@ const SimpleOptionButtonBase = (props, ref) => {
|
|
|
67
68
|
onMenuOpen: onMenuOpen,
|
|
68
69
|
onMenuClose: onMenuClose,
|
|
69
70
|
clickAwayRef: clickAwayRef,
|
|
71
|
+
testId: testId,
|
|
70
72
|
menu: {
|
|
71
73
|
isFluid: false,
|
|
72
74
|
options,
|
|
@@ -11,6 +11,7 @@ export interface PageTitleProps {
|
|
|
11
11
|
pageNameKey?: string;
|
|
12
12
|
showBackButton?: boolean;
|
|
13
13
|
onBack?: () => void;
|
|
14
|
+
testId?: string;
|
|
14
15
|
}
|
|
15
16
|
export declare const PAGE_NAME_LIST: Readonly<{
|
|
16
17
|
dashboard: {
|
|
@@ -132,24 +133,27 @@ export declare const PAGE_NAME_LIST: Readonly<{
|
|
|
132
133
|
export interface TabSlotProps {
|
|
133
134
|
children?: React.ReactNode;
|
|
134
135
|
className: string;
|
|
136
|
+
testId?: string;
|
|
135
137
|
}
|
|
136
138
|
export declare const TabSlot: {
|
|
137
|
-
({ children, className, ...props }: TabSlotProps): React.JSX.Element;
|
|
139
|
+
({ children, className, testId, ...props }: TabSlotProps): React.JSX.Element;
|
|
138
140
|
displayName: string;
|
|
139
141
|
};
|
|
140
142
|
export interface RightSlotProps {
|
|
141
143
|
children?: React.ReactNode;
|
|
142
144
|
className?: string;
|
|
145
|
+
testId?: string;
|
|
143
146
|
}
|
|
144
147
|
export declare const RightSlot: {
|
|
145
|
-
({ children, ...props }: RightSlotProps): React.JSX.Element;
|
|
148
|
+
({ children, testId, ...props }: RightSlotProps): React.JSX.Element;
|
|
146
149
|
displayName: string;
|
|
147
150
|
};
|
|
148
151
|
export interface PageNameProps {
|
|
149
152
|
children?: React.ReactNode;
|
|
153
|
+
testId?: string;
|
|
150
154
|
}
|
|
151
155
|
export declare const PageName: {
|
|
152
|
-
({ children, ...props }: PageNameProps): React.JSX.Element;
|
|
156
|
+
({ children, testId, ...props }: PageNameProps): React.JSX.Element;
|
|
153
157
|
displayName: string;
|
|
154
158
|
};
|
|
155
159
|
export declare const PageTitle: Flow.AbstractComponent<PageTitleProps, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageTitle.d.ts","sourceRoot":"","sources":["../../../src/components/PageTitle/PageTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;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AAM,SAAS;qCAAkC,cAAc;;CAIrE,CAAC;AAIF,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ;qCAAkC,aAAa;;CAQnE,CAAC;AAIF,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CA8F1E,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.TabSlot = exports.RightSlot = exports.PageTitle = exports.PageName = exp
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _color = require("../../styles/variables/_color");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Button = require("../Button");
|
|
11
12
|
var _Icon = require("../Icon");
|
|
12
13
|
var _Text = require("../Text");
|
|
@@ -143,11 +144,16 @@ const TabSlot = _ref => {
|
|
|
143
144
|
let {
|
|
144
145
|
children,
|
|
145
146
|
className,
|
|
147
|
+
testId,
|
|
146
148
|
...props
|
|
147
149
|
} = _ref;
|
|
148
150
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
151
|
...props,
|
|
150
152
|
className: (0, _classify.default)(_PageTitleModule.default.tabSlot, className),
|
|
153
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
154
|
+
base: testId,
|
|
155
|
+
slot: 'wrapper'
|
|
156
|
+
}),
|
|
151
157
|
children: children
|
|
152
158
|
});
|
|
153
159
|
};
|
|
@@ -156,10 +162,15 @@ TabSlot.displayName = 'TabSlot';
|
|
|
156
162
|
const RightSlot = _ref2 => {
|
|
157
163
|
let {
|
|
158
164
|
children,
|
|
165
|
+
testId,
|
|
159
166
|
...props
|
|
160
167
|
} = _ref2;
|
|
161
168
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
162
169
|
...props,
|
|
170
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
171
|
+
base: testId,
|
|
172
|
+
slot: 'wrapper'
|
|
173
|
+
}),
|
|
163
174
|
children: children
|
|
164
175
|
});
|
|
165
176
|
};
|
|
@@ -168,11 +179,16 @@ RightSlot.displayName = 'RightSlot';
|
|
|
168
179
|
const PageName = _ref3 => {
|
|
169
180
|
let {
|
|
170
181
|
children,
|
|
182
|
+
testId,
|
|
171
183
|
...props
|
|
172
184
|
} = _ref3;
|
|
173
185
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
174
186
|
...props,
|
|
175
187
|
className: _PageTitleModule.default.pageTitle,
|
|
188
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
189
|
+
base: testId,
|
|
190
|
+
slot: 'wrapper'
|
|
191
|
+
}),
|
|
176
192
|
children: children
|
|
177
193
|
});
|
|
178
194
|
};
|
|
@@ -184,7 +200,8 @@ const PageTitle = exports.PageTitle = /*#__PURE__*/React.forwardRef((_ref4, ref)
|
|
|
184
200
|
children,
|
|
185
201
|
pageNameKey,
|
|
186
202
|
showBackButton,
|
|
187
|
-
onBack
|
|
203
|
+
onBack,
|
|
204
|
+
testId
|
|
188
205
|
} = _ref4;
|
|
189
206
|
const getNamedComp = comp => {
|
|
190
207
|
const childrenArray = React.Children.toArray(children);
|
|
@@ -206,7 +223,10 @@ const PageTitle = exports.PageTitle = /*#__PURE__*/React.forwardRef((_ref4, ref)
|
|
|
206
223
|
onBack?.();
|
|
207
224
|
};
|
|
208
225
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
209
|
-
"data-testid":
|
|
226
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
227
|
+
base: testId,
|
|
228
|
+
slot: 'wrapper'
|
|
229
|
+
}),
|
|
210
230
|
className: (0, _classify.default)(_PageTitleModule.default.pageTitleWrapper, classNames?.wrapper),
|
|
211
231
|
ref: ref,
|
|
212
232
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -217,14 +237,27 @@ const PageTitle = exports.PageTitle = /*#__PURE__*/React.forwardRef((_ref4, ref)
|
|
|
217
237
|
title: "Navigate Back",
|
|
218
238
|
delayMotionDuration: "slow",
|
|
219
239
|
placement: "top-start",
|
|
240
|
+
testId: (0, _qa.generateTestId)({
|
|
241
|
+
base: testId,
|
|
242
|
+
slot: 'back-tooltip'
|
|
243
|
+
}),
|
|
220
244
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
221
245
|
onClick: handleBack,
|
|
222
246
|
type: "tertiary",
|
|
223
247
|
iconLeftName: "chevron-left",
|
|
224
|
-
ariaLabel: "Navigate Back Button"
|
|
248
|
+
ariaLabel: "Navigate Back Button",
|
|
249
|
+
testId: (0, _qa.generateTestId)({
|
|
250
|
+
base: testId,
|
|
251
|
+
slot: 'back-button'
|
|
252
|
+
})
|
|
225
253
|
})
|
|
226
254
|
}), pageNameKey && PAGE_NAME_LIST[pageNameKey] ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(PageName, {
|
|
255
|
+
testId: testId,
|
|
227
256
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.TitleMedium, {
|
|
257
|
+
testId: (0, _qa.generateTestId)({
|
|
258
|
+
base: testId,
|
|
259
|
+
slot: 'title'
|
|
260
|
+
}),
|
|
228
261
|
children: [PAGE_NAME_LIST[pageNameKey].title, ' ']
|
|
229
262
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
230
263
|
type: PAGE_NAME_LIST[pageNameKey].iconType,
|
|
@@ -236,7 +269,11 @@ const PageTitle = exports.PageTitle = /*#__PURE__*/React.forwardRef((_ref4, ref)
|
|
|
236
269
|
'--fa-secondary-color': _color.colorIconSecondary,
|
|
237
270
|
'--fa-primary-opacity': '1.0',
|
|
238
271
|
'--fa-secondary-opacity': '1.0'
|
|
239
|
-
}
|
|
272
|
+
},
|
|
273
|
+
testId: (0, _qa.generateTestId)({
|
|
274
|
+
base: testId,
|
|
275
|
+
slot: 'icon'
|
|
276
|
+
})
|
|
240
277
|
})]
|
|
241
278
|
}) : getNamedComp('PageName')]
|
|
242
279
|
}), getNamedComp('TabSlot')]
|
|
@@ -27,6 +27,7 @@ export interface PaginationProps extends Omit<{
|
|
|
27
27
|
classNames?: ClassNames;
|
|
28
28
|
}>, PaginationBaseProps {
|
|
29
29
|
classNames?: ClassNames;
|
|
30
|
+
testId?: string;
|
|
30
31
|
}
|
|
31
32
|
export interface PaginationItemProps {
|
|
32
33
|
id: string;
|
|
@@ -35,6 +36,7 @@ export interface PaginationItemProps {
|
|
|
35
36
|
page: number | null | undefined;
|
|
36
37
|
selected: boolean;
|
|
37
38
|
type: PaginationItemType;
|
|
39
|
+
testId?: string;
|
|
38
40
|
}
|
|
39
41
|
export declare const Pagination: Flow.AbstractComponent<PaginationProps, HTMLDivElement>;
|
|
40
42
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAerD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,KAAK,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;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AAO,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,CA8Gf,CAAC"}
|
|
@@ -9,6 +9,7 @@ var _usePagination = require("../../hooks/usePagination");
|
|
|
9
9
|
var _useWindowSize = require("../../hooks/useWindowSize");
|
|
10
10
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
11
11
|
var _helpers = require("../../utils/helpers");
|
|
12
|
+
var _qa = require("../../utils/qa");
|
|
12
13
|
var _Dropdown = require("../Dropdown");
|
|
13
14
|
var _PaginationItem = require("./PaginationItem");
|
|
14
15
|
var _Text = require("../Text");
|
|
@@ -33,6 +34,7 @@ const Pagination = exports.Pagination = /*#__PURE__*/React.forwardRef((props, re
|
|
|
33
34
|
showFirstButton = style !== 'primary' && showExtraSecPaginationButtons,
|
|
34
35
|
showLastButton = style !== 'primary' && showExtraSecPaginationButtons,
|
|
35
36
|
staticPaginationLabel,
|
|
37
|
+
testId,
|
|
36
38
|
...restPaginationProps
|
|
37
39
|
} = props;
|
|
38
40
|
const showPageSelectionDropDown = style !== 'primary' && showExtraSecPaginationButtons;
|
|
@@ -57,13 +59,24 @@ const Pagination = exports.Pagination = /*#__PURE__*/React.forwardRef((props, re
|
|
|
57
59
|
}));
|
|
58
60
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
59
61
|
ref: ref,
|
|
60
|
-
"data-testid":
|
|
62
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
63
|
+
base: testId,
|
|
64
|
+
slot: 'root'
|
|
65
|
+
}),
|
|
61
66
|
className: (0, _classify.default)(_PaginationModule.default.wrapper, classNames?.wrapper),
|
|
62
67
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
63
68
|
className: (0, _classify.default)(_PaginationModule.default.childrenSlot, classNames?.children),
|
|
69
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
70
|
+
base: testId,
|
|
71
|
+
slot: 'children'
|
|
72
|
+
}),
|
|
64
73
|
children: children
|
|
65
74
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66
75
|
className: _PaginationModule.default.paginatorSlots,
|
|
76
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
77
|
+
base: testId,
|
|
78
|
+
slot: 'paginator-slots'
|
|
79
|
+
}),
|
|
67
80
|
children: [style === 'secondary' && showPageSelectionDropDown && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
68
81
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Dropdown.Dropdown, {
|
|
69
82
|
size: "small",
|
|
@@ -80,16 +93,33 @@ const Pagination = exports.Pagination = /*#__PURE__*/React.forwardRef((props, re
|
|
|
80
93
|
virtualization: menuVirtualization
|
|
81
94
|
},
|
|
82
95
|
dropdownInputText: currentPage.toString(),
|
|
83
|
-
onChange: option => onChange?.(parseInt(option.key))
|
|
96
|
+
onChange: option => onChange?.(parseInt(option.key)),
|
|
97
|
+
testId: (0, _qa.generateTestId)({
|
|
98
|
+
base: testId,
|
|
99
|
+
slot: 'dropdown'
|
|
100
|
+
})
|
|
84
101
|
}), !!totalPages && !!currentPage && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleExtraSmall, {
|
|
85
102
|
color: "tertiary",
|
|
86
103
|
className: _PaginationModule.default.secondaryLabel,
|
|
104
|
+
testId: (0, _qa.generateTestId)({
|
|
105
|
+
base: testId,
|
|
106
|
+
slot: 'label'
|
|
107
|
+
}),
|
|
87
108
|
children: staticPaginationLabel ? staticPaginationLabel : `of ${totalPages} ${totalPages > 1 ? 'Pages' : 'Page'}`
|
|
88
109
|
})]
|
|
89
110
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
90
111
|
className: (0, _classify.default)(_PaginationModule.default.paginatorSlot, classNames?.paginator),
|
|
112
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
113
|
+
base: testId,
|
|
114
|
+
slot: 'paginator'
|
|
115
|
+
}),
|
|
91
116
|
children: items?.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PaginationItem.PaginationItem, {
|
|
92
|
-
...item
|
|
117
|
+
...item,
|
|
118
|
+
testId: (0, _qa.generateTestId)({
|
|
119
|
+
base: testId,
|
|
120
|
+
slot: 'item',
|
|
121
|
+
index: item.id
|
|
122
|
+
})
|
|
93
123
|
}, item.id))
|
|
94
124
|
})]
|
|
95
125
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationItem.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/PaginationItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PaginationItem.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/PaginationItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AAM9E,eAAO,MAAM,gBAAgB,GAAI,OAAO,mBAAmB,kCA8G1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,sBAExD,CAAC"}
|