@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
|
@@ -15,6 +15,7 @@ var _size = require("../../styles/variables/_size");
|
|
|
15
15
|
var _space = require("../../styles/variables/_space");
|
|
16
16
|
var _classify = require("../../utils/classify");
|
|
17
17
|
var _makeClassNameComponent = require("../../utils/makeClassNameComponent");
|
|
18
|
+
var _qa = require("../../utils/qa");
|
|
18
19
|
var _CircularLoader = require("../CircularLoader");
|
|
19
20
|
var _DefaultRow = require("./DefaultRow");
|
|
20
21
|
var _DefaultTableHeader = require("./DefaultTableHeader");
|
|
@@ -63,8 +64,14 @@ function RowRenderer(_ref2) {
|
|
|
63
64
|
disabled,
|
|
64
65
|
classNames,
|
|
65
66
|
keyId,
|
|
66
|
-
onSelect
|
|
67
|
+
onSelect,
|
|
68
|
+
testId
|
|
67
69
|
} = _ref2;
|
|
70
|
+
// Generate a unique testId for this specific row
|
|
71
|
+
const rowTestId = (0, _qa.generateTestId)({
|
|
72
|
+
base: testId,
|
|
73
|
+
slot: `row-${keyId}`
|
|
74
|
+
});
|
|
68
75
|
return TableRow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(TableRow, {
|
|
69
76
|
data: data,
|
|
70
77
|
headers: headers
|
|
@@ -73,7 +80,8 @@ function RowRenderer(_ref2) {
|
|
|
73
80
|
extras: extras,
|
|
74
81
|
sortedKeys: sortedKeys,
|
|
75
82
|
selected: selected,
|
|
76
|
-
disabled: disabled
|
|
83
|
+
disabled: disabled,
|
|
84
|
+
testId: rowTestId
|
|
77
85
|
}, keyId) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_DefaultRow.DefaultRow, {
|
|
78
86
|
data: data,
|
|
79
87
|
extras: extras,
|
|
@@ -84,7 +92,8 @@ function RowRenderer(_ref2) {
|
|
|
84
92
|
classNames: {
|
|
85
93
|
tableRow: classNames?.tableRow,
|
|
86
94
|
checkbox: classNames?.checkbox
|
|
87
|
-
}
|
|
95
|
+
},
|
|
96
|
+
testId: rowTestId
|
|
88
97
|
}, keyId);
|
|
89
98
|
}
|
|
90
99
|
function TableWrapper(_ref3) {
|
|
@@ -107,15 +116,24 @@ function TableWrapper(_ref3) {
|
|
|
107
116
|
sortKey,
|
|
108
117
|
sortDirection,
|
|
109
118
|
handleSortClick,
|
|
110
|
-
handleHeaderCheckboxClick
|
|
119
|
+
handleHeaderCheckboxClick,
|
|
120
|
+
testId
|
|
111
121
|
} = _ref3;
|
|
112
122
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
123
|
className: (0, _classify.classify)(_TableModule.default.tableContainer, classNames?.wrapper),
|
|
114
124
|
"data-id": 'table-wrap',
|
|
125
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
126
|
+
base: testId,
|
|
127
|
+
slot: 'wrapper'
|
|
128
|
+
}),
|
|
115
129
|
ref: tableRef,
|
|
116
130
|
style: wrapperStyle,
|
|
117
131
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(BasicTable, {
|
|
118
132
|
"data-id": "basic-table",
|
|
133
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
134
|
+
base: testId,
|
|
135
|
+
slot: 'table'
|
|
136
|
+
}),
|
|
119
137
|
className: (0, _classify.classify)(className, {
|
|
120
138
|
[_TableModule.default.fullHeightTable]: isLoading || !entriesLength && !!emptyText
|
|
121
139
|
}, classNames?.table),
|
|
@@ -129,9 +147,17 @@ function TableWrapper(_ref3) {
|
|
|
129
147
|
disabled: disabled,
|
|
130
148
|
handleCheckboxClick: handleHeaderCheckboxClick,
|
|
131
149
|
stickyHeader: stickyHeader,
|
|
132
|
-
checked: selectedKeys == null || selectedKeys.length === 0 ? 'false' : selectedKeys.length < entriesLength ? 'mixed' : 'true'
|
|
150
|
+
checked: selectedKeys == null || selectedKeys.length === 0 ? 'false' : selectedKeys.length < entriesLength ? 'mixed' : 'true',
|
|
151
|
+
testId: (0, _qa.generateTestId)({
|
|
152
|
+
base: testId,
|
|
153
|
+
slot: 'header'
|
|
154
|
+
})
|
|
133
155
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(BasicTableBody, {
|
|
134
156
|
className: classNames?.tableBody,
|
|
157
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
158
|
+
base: testId,
|
|
159
|
+
slot: 'body'
|
|
160
|
+
}),
|
|
135
161
|
children: children
|
|
136
162
|
})]
|
|
137
163
|
})
|
|
@@ -168,7 +194,8 @@ function StaticTable(props) {
|
|
|
168
194
|
disabled,
|
|
169
195
|
customLoader,
|
|
170
196
|
borderRadius,
|
|
171
|
-
stickyHeader
|
|
197
|
+
stickyHeader,
|
|
198
|
+
testId
|
|
172
199
|
} = props;
|
|
173
200
|
|
|
174
201
|
// this is a fallback and honestly probably doesn't need the
|
|
@@ -204,11 +231,13 @@ function StaticTable(props) {
|
|
|
204
231
|
sortDirection: sortDirection,
|
|
205
232
|
handleSortClick: handleSortClick,
|
|
206
233
|
handleHeaderCheckboxClick: handleHeaderCheckboxClick,
|
|
234
|
+
testId: testId,
|
|
207
235
|
children: isLoading || !entries.length ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DefaultRow.EmptyRow, {
|
|
208
236
|
isLoading: isLoading,
|
|
209
237
|
emptyText: emptyText,
|
|
210
238
|
headersLength: handleHeaderCheckboxClick ? headers.length + 1 : headers.length,
|
|
211
|
-
customLoader: customLoader
|
|
239
|
+
customLoader: customLoader,
|
|
240
|
+
testId: testId
|
|
212
241
|
}) : mappedKeys.map(key => {
|
|
213
242
|
const data = entries.find(e => (0, _get.default)(e, idName) === key);
|
|
214
243
|
if (data == null) {
|
|
@@ -226,7 +255,8 @@ function StaticTable(props) {
|
|
|
226
255
|
selected: selected,
|
|
227
256
|
disabled: disabled || isRowDisabled,
|
|
228
257
|
classNames: classNames,
|
|
229
|
-
onSelect: selectedKeys != null ? _v => onSelect?.((0, _xor.default)(selectedKeys ?? [], [key])) : undefined
|
|
258
|
+
onSelect: selectedKeys != null ? _v => onSelect?.((0, _xor.default)(selectedKeys ?? [], [key])) : undefined,
|
|
259
|
+
testId: testId
|
|
230
260
|
});
|
|
231
261
|
})
|
|
232
262
|
});
|
|
@@ -256,7 +286,8 @@ function StaticTableVirtualized(props) {
|
|
|
256
286
|
customLoader,
|
|
257
287
|
borderRadius,
|
|
258
288
|
stickyHeader,
|
|
259
|
-
virtualizationOptions
|
|
289
|
+
virtualizationOptions,
|
|
290
|
+
testId
|
|
260
291
|
} = props;
|
|
261
292
|
const {
|
|
262
293
|
rowsCount,
|
|
@@ -366,11 +397,13 @@ function StaticTableVirtualized(props) {
|
|
|
366
397
|
sortDirection: sortDirection,
|
|
367
398
|
handleSortClick: handleSortClick,
|
|
368
399
|
handleHeaderCheckboxClick: handleHeaderCheckboxClick,
|
|
400
|
+
testId: testId,
|
|
369
401
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(VirtualizedStartRow, {}), isLoading || !entries.length ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DefaultRow.EmptyRow, {
|
|
370
402
|
isLoading: isLoading,
|
|
371
403
|
emptyText: emptyText,
|
|
372
404
|
headersLength: handleHeaderCheckboxClick ? headers.length + 1 : headers.length,
|
|
373
|
-
customLoader: customLoader
|
|
405
|
+
customLoader: customLoader,
|
|
406
|
+
testId: testId
|
|
374
407
|
}) : currRows.map(virtualRow => {
|
|
375
408
|
const key = virtualRow.key;
|
|
376
409
|
const data = entries[virtualRow.index];
|
|
@@ -389,7 +422,8 @@ function StaticTableVirtualized(props) {
|
|
|
389
422
|
selected: selected,
|
|
390
423
|
disabled: disabled || isRowDisabled,
|
|
391
424
|
classNames: classNames,
|
|
392
|
-
onSelect: selectedKeys != null ? _v => onSelect?.((0, _xor.default)(selectedKeys ?? [], [key])) : undefined
|
|
425
|
+
onSelect: selectedKeys != null ? _v => onSelect?.((0, _xor.default)(selectedKeys ?? [], [key])) : undefined,
|
|
426
|
+
testId: testId
|
|
393
427
|
});
|
|
394
428
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(VirtualizedEndRow, {}), isEndLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
395
429
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAQ9D,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAA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,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,qBAuDhC"}
|
|
@@ -283,6 +283,17 @@ export declare const TABLE_DOCS: {
|
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
};
|
|
286
|
+
readonly testId: {
|
|
287
|
+
readonly description: "Test ID for the component";
|
|
288
|
+
readonly control: {
|
|
289
|
+
readonly type: "text";
|
|
290
|
+
};
|
|
291
|
+
readonly table: {
|
|
292
|
+
readonly type: {
|
|
293
|
+
readonly summary: "string";
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
286
297
|
};
|
|
287
298
|
readonly parameters: {
|
|
288
299
|
readonly docs: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.docs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"Table.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.docs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8iBb,CAAC"}
|
|
@@ -292,6 +292,17 @@ const TABLE_DOCS = exports.TABLE_DOCS = {
|
|
|
292
292
|
summary: '() => void'
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
+
},
|
|
296
|
+
testId: {
|
|
297
|
+
description: 'Test ID for the component',
|
|
298
|
+
control: {
|
|
299
|
+
type: 'text'
|
|
300
|
+
},
|
|
301
|
+
table: {
|
|
302
|
+
type: {
|
|
303
|
+
summary: 'string'
|
|
304
|
+
}
|
|
305
|
+
}
|
|
295
306
|
}
|
|
296
307
|
},
|
|
297
308
|
parameters: {
|
|
@@ -33,7 +33,8 @@ function Table(props) {
|
|
|
33
33
|
onSort,
|
|
34
34
|
enableInternalSorting,
|
|
35
35
|
idName = 'id',
|
|
36
|
-
virtualizationOptions
|
|
36
|
+
virtualizationOptions,
|
|
37
|
+
testId
|
|
37
38
|
} = props;
|
|
38
39
|
|
|
39
40
|
/**
|
|
@@ -58,12 +59,14 @@ function Table(props) {
|
|
|
58
59
|
...sortableProps,
|
|
59
60
|
sortable: sortable,
|
|
60
61
|
entries: sortedEntries,
|
|
61
|
-
rowKeys: sortedKeys
|
|
62
|
+
rowKeys: sortedKeys,
|
|
63
|
+
testId: testId
|
|
62
64
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_StaticTable.StaticTable, {
|
|
63
65
|
...props,
|
|
64
66
|
...sortableProps,
|
|
65
67
|
sortable: sortable,
|
|
66
68
|
entries: sortedEntries,
|
|
67
|
-
rowKeys: sortedKeys
|
|
69
|
+
rowKeys: sortedKeys,
|
|
70
|
+
testId: testId
|
|
68
71
|
});
|
|
69
72
|
}
|
|
@@ -4,8 +4,13 @@ import type { SimpleButtonDropdownProps } from '../../components/ButtonDropdown'
|
|
|
4
4
|
export interface TableActionBarProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
+
testId?: string;
|
|
7
8
|
}
|
|
8
|
-
export declare const ButtonCta: ({ classNames, ...props }: ButtonProps
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export declare const ButtonCta: ({ classNames, testId, ...props }: ButtonProps & {
|
|
10
|
+
testId?: string;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export declare const DropdownCta: ({ classNames, testId, ...props }: SimpleButtonDropdownProps & {
|
|
13
|
+
testId?: string;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export declare const TableActionBar: ({ children, className, testId, ...props }: TableActionBarProps) => React.JSX.Element;
|
|
11
16
|
//# sourceMappingURL=TableActionBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableActionBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TableActionBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAEvD,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AAM7E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,GAAI,kCAIvB,WAAW,GAAG;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,sBAQjC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,kCAIzB,yBAAyB,GAAG;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,sBAQ/C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,2CAK5B,mBAAmB,sBAQrB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.TableActionBar = exports.DropdownCta = exports.ButtonCta = 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 _Button = require("../Button");
|
|
10
11
|
var _ButtonDropdown = require("../ButtonDropdown");
|
|
11
12
|
var _TableBarModule = _interopRequireDefault(require("./TableBar.module.css"));
|
|
@@ -15,11 +16,15 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
15
16
|
const ButtonCta = _ref => {
|
|
16
17
|
let {
|
|
17
18
|
classNames,
|
|
19
|
+
testId,
|
|
18
20
|
...props
|
|
19
21
|
} = _ref;
|
|
20
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
21
23
|
...props,
|
|
22
|
-
"data-testid":
|
|
24
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
25
|
+
base: testId,
|
|
26
|
+
slot: 'button-cta'
|
|
27
|
+
}),
|
|
23
28
|
type: "primary",
|
|
24
29
|
size: "small",
|
|
25
30
|
classNames: {
|
|
@@ -32,11 +37,15 @@ exports.ButtonCta = ButtonCta;
|
|
|
32
37
|
const DropdownCta = _ref2 => {
|
|
33
38
|
let {
|
|
34
39
|
classNames,
|
|
40
|
+
testId,
|
|
35
41
|
...props
|
|
36
42
|
} = _ref2;
|
|
37
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonDropdown.SimpleButtonDropdown, {
|
|
38
44
|
...props,
|
|
39
|
-
"data-testid":
|
|
45
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
46
|
+
base: testId,
|
|
47
|
+
slot: 'dropdown-cta'
|
|
48
|
+
}),
|
|
40
49
|
type: "primary",
|
|
41
50
|
size: "small",
|
|
42
51
|
classNames: {
|
|
@@ -50,12 +59,16 @@ const TableActionBar = _ref3 => {
|
|
|
50
59
|
let {
|
|
51
60
|
children,
|
|
52
61
|
className,
|
|
62
|
+
testId,
|
|
53
63
|
...props
|
|
54
64
|
} = _ref3;
|
|
55
65
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
66
|
...props,
|
|
57
67
|
className: (0, _classify.classify)(_TableBarModule.default.tableActionBar, className),
|
|
58
|
-
"data-testid":
|
|
68
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
69
|
+
base: testId,
|
|
70
|
+
slot: 'action-bar'
|
|
71
|
+
}),
|
|
59
72
|
children: children
|
|
60
73
|
});
|
|
61
74
|
};
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
export interface TableBottomBarProps {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
className?: string;
|
|
5
|
+
testId?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare const TableBottomBar: ({ children, className, ...props }: TableBottomBarProps) => React.JSX.Element;
|
|
7
|
+
export declare const TableBottomBar: ({ children, className, testId, ...props }: TableBottomBarProps) => React.JSX.Element;
|
|
7
8
|
//# sourceMappingURL=TableBottomBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBottomBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBottomBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TableBottomBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBottomBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,cAAc,GAAI,2CAK5B,mBAAmB,sBAQrB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.TableBottomBar = 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 _TableBarModule = _interopRequireDefault(require("./TableBar.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -14,12 +15,16 @@ const TableBottomBar = _ref => {
|
|
|
14
15
|
let {
|
|
15
16
|
children,
|
|
16
17
|
className,
|
|
18
|
+
testId,
|
|
17
19
|
...props
|
|
18
20
|
} = _ref;
|
|
19
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20
22
|
...props,
|
|
21
23
|
className: (0, _classify.classify)(_TableBarModule.default.tableBar, _TableBarModule.default.bottomBar, className),
|
|
22
|
-
"data-testid":
|
|
24
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
25
|
+
base: testId,
|
|
26
|
+
slot: 'bottom-bar'
|
|
27
|
+
}),
|
|
23
28
|
children: children
|
|
24
29
|
});
|
|
25
30
|
};
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
export interface TableTopBarProps {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
className?: string;
|
|
5
|
+
testId?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare const TableTopBar: ({ children, className, ...props }: TableTopBarProps) => React.JSX.Element;
|
|
7
|
+
export declare const TableTopBar: ({ children, className, testId, ...props }: TableTopBarProps) => React.JSX.Element;
|
|
7
8
|
//# sourceMappingURL=TableTopBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTopBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableTopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TableTopBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableTopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,2CAKzB,gBAAgB,sBAQlB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.TableTopBar = 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 _TableBarModule = _interopRequireDefault(require("./TableBar.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -14,12 +15,16 @@ const TableTopBar = _ref => {
|
|
|
14
15
|
let {
|
|
15
16
|
children,
|
|
16
17
|
className,
|
|
18
|
+
testId,
|
|
17
19
|
...props
|
|
18
20
|
} = _ref;
|
|
19
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20
22
|
...props,
|
|
21
23
|
className: (0, _classify.classify)(_TableBarModule.default.tableBar, _TableBarModule.default.topBar, className),
|
|
22
|
-
"data-testid":
|
|
24
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
25
|
+
base: testId,
|
|
26
|
+
slot: 'top-bar'
|
|
27
|
+
}),
|
|
23
28
|
children: children
|
|
24
29
|
});
|
|
25
30
|
};
|
|
@@ -31,6 +31,7 @@ export interface TabProps {
|
|
|
31
31
|
maxWidth?: string;
|
|
32
32
|
elevation?: ElevationType;
|
|
33
33
|
onClick?: (e: React.SyntheticEvent<HTMLElement>) => unknown;
|
|
34
|
+
testId?: string;
|
|
34
35
|
}
|
|
35
36
|
export declare const Tab: Flow.AbstractComponent<TabProps, HTMLButtonElement>;
|
|
36
37
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.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C;IAC1B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,GAAG,EAAE,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,CA6HjE,CAAC"}
|
|
@@ -34,6 +34,7 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
|
|
|
34
34
|
onClick,
|
|
35
35
|
maxWidth,
|
|
36
36
|
elevation,
|
|
37
|
+
testId,
|
|
37
38
|
...props
|
|
38
39
|
} = _ref;
|
|
39
40
|
const tabRef = React.useRef(null);
|
|
@@ -65,24 +66,28 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
|
|
|
65
66
|
},
|
|
66
67
|
tabIndex: disabled ? -1 : 0,
|
|
67
68
|
ref: tabRef,
|
|
69
|
+
testId: testId,
|
|
68
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
69
71
|
className: (0, _classify.classify)(_TabModule.default.iconTextWrap, {
|
|
70
72
|
[_TabModule.default.selected]: selected === true,
|
|
71
73
|
[_TabModule.default.disabled]: disabled === true
|
|
72
74
|
}, classNames?.iconTextWrap),
|
|
75
|
+
"data-testid": testId ? `${testId}__content` : undefined,
|
|
73
76
|
children: [iconName ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
74
77
|
name: iconName,
|
|
75
78
|
type: iconType,
|
|
76
79
|
size: size,
|
|
77
80
|
className: (0, _classify.classify)(_TabModule.default.icon, {
|
|
78
81
|
[_TabModule.default.disabled]: disabled === true
|
|
79
|
-
})
|
|
82
|
+
}),
|
|
83
|
+
testId: testId ? `${testId}__icon` : undefined
|
|
80
84
|
}) : null, label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
81
85
|
children: size === TAB_SIZE.medium ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.ButtonTextMedium, {
|
|
82
86
|
color: _typography.TEXT_COLORS.secondary,
|
|
83
87
|
className: (0, _classify.classify)(_TabModule.default.tabContainer, {
|
|
84
88
|
[_TabModule.default.disabled]: disabled === true
|
|
85
89
|
}),
|
|
90
|
+
testId: testId ? `${testId}__text` : undefined,
|
|
86
91
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
92
|
style: {
|
|
88
93
|
maxWidth
|
|
@@ -93,6 +98,7 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
|
|
|
93
98
|
body: label,
|
|
94
99
|
elevation
|
|
95
100
|
},
|
|
101
|
+
testId: testId ? `${testId}__tooltip` : undefined,
|
|
96
102
|
children: label
|
|
97
103
|
})
|
|
98
104
|
})
|
|
@@ -102,6 +108,7 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
|
|
|
102
108
|
[_TabModule.default.selected]: selected === true,
|
|
103
109
|
[_TabModule.default.disabled]: disabled === true
|
|
104
110
|
}),
|
|
111
|
+
testId: testId ? `${testId}__text` : undefined,
|
|
105
112
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
113
|
style: {
|
|
107
114
|
maxWidth
|
|
@@ -112,6 +119,7 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
|
|
|
112
119
|
body: label,
|
|
113
120
|
elevation
|
|
114
121
|
},
|
|
122
|
+
testId: testId ? `${testId}__tooltip` : undefined,
|
|
115
123
|
children: label
|
|
116
124
|
})
|
|
117
125
|
})
|
|
@@ -18,7 +18,8 @@ export interface TabDropdownProps {
|
|
|
18
18
|
selected?: boolean;
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
elevation?: ElevationType;
|
|
21
|
+
testId?: string;
|
|
21
22
|
}
|
|
22
|
-
export declare const TabDropdown: ({ anchorPosition, size, onOptionSelect, props, elevation, classNames, }: TabDropdownProps) => React.JSX.Element;
|
|
23
|
+
export declare const TabDropdown: ({ anchorPosition, size, onOptionSelect, props, elevation, classNames, testId, }: TabDropdownProps) => React.JSX.Element;
|
|
23
24
|
export {};
|
|
24
25
|
//# sourceMappingURL=TabDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TabDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE/D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAM1D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE;QACN,GAAG,EAAE,QAAQ,CAAC;QACd,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;IACF,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,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,iFAQzB,gBAAgB,sBAsElB,CAAC"}
|
|
@@ -10,6 +10,7 @@ var _space = require("../../../styles/variables/_space");
|
|
|
10
10
|
var _classify = require("../../../utils/classify");
|
|
11
11
|
var _clickAway = require("../../../utils/click-away");
|
|
12
12
|
var _mergeRefs = require("../../../utils/merge-refs");
|
|
13
|
+
var _qa = require("../../../utils/qa");
|
|
13
14
|
var _Menu = require("../../Menu");
|
|
14
15
|
var _Tab = require("../Tab");
|
|
15
16
|
var _Tooltip = require("../../Tooltip");
|
|
@@ -24,7 +25,8 @@ const TabDropdown = _ref => {
|
|
|
24
25
|
onOptionSelect,
|
|
25
26
|
props,
|
|
26
27
|
elevation = 'modal',
|
|
27
|
-
classNames
|
|
28
|
+
classNames,
|
|
29
|
+
testId
|
|
28
30
|
} = _ref;
|
|
29
31
|
const {
|
|
30
32
|
x,
|
|
@@ -49,7 +51,10 @@ const TabDropdown = _ref => {
|
|
|
49
51
|
triggerRef
|
|
50
52
|
} = _ref2;
|
|
51
53
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
52
|
-
"data-testid":
|
|
54
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
55
|
+
base: testId,
|
|
56
|
+
slot: 'dropdown'
|
|
57
|
+
}),
|
|
53
58
|
className: (0, _classify.classify)(_TabDropdownModule.default.tabDropdownContainer, classNames?.wrapper),
|
|
54
59
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tab.Tab, {
|
|
55
60
|
...props?.tab,
|
|
@@ -62,7 +67,11 @@ const TabDropdown = _ref => {
|
|
|
62
67
|
classNames: {
|
|
63
68
|
wrapper: _TabDropdownModule.default.dotTabWrapper,
|
|
64
69
|
iconTextWrap: _TabDropdownModule.default.dotTextWrap
|
|
65
|
-
}
|
|
70
|
+
},
|
|
71
|
+
testId: (0, _qa.generateTestId)({
|
|
72
|
+
base: testId,
|
|
73
|
+
slot: 'dropdown-tab'
|
|
74
|
+
})
|
|
66
75
|
}), isOpen && props?.menu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingPortal, {
|
|
67
76
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingFocusManager, {
|
|
68
77
|
modal: false,
|
|
@@ -71,6 +80,10 @@ const TabDropdown = _ref => {
|
|
|
71
80
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72
81
|
ref: (0, _mergeRefs.mergeRefs)([refs.setFloating, boundaryRef]),
|
|
73
82
|
className: _TabDropdownModule.default.menuWrapper,
|
|
83
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
84
|
+
base: testId,
|
|
85
|
+
slot: 'menu-wrapper'
|
|
86
|
+
}),
|
|
74
87
|
style: {
|
|
75
88
|
display: 'flex',
|
|
76
89
|
position: strategy,
|
|
@@ -85,7 +98,11 @@ const TabDropdown = _ref => {
|
|
|
85
98
|
clickAway();
|
|
86
99
|
},
|
|
87
100
|
size: props.menu.size || size,
|
|
88
|
-
onTabOut: clickAway
|
|
101
|
+
onTabOut: clickAway,
|
|
102
|
+
testId: (0, _qa.generateTestId)({
|
|
103
|
+
base: testId,
|
|
104
|
+
slot: 'menu'
|
|
105
|
+
})
|
|
89
106
|
})
|
|
90
107
|
})
|
|
91
108
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAuB1D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,KAAK,OAAO,CAAC;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CA8JtE,CAAC"}
|