@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
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StepContent = 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 _StepperModule = _interopRequireDefault(require("../Stepper.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -16,7 +17,8 @@ const StepContent = _ref => {
|
|
|
16
17
|
classNames,
|
|
17
18
|
active,
|
|
18
19
|
completed = false,
|
|
19
|
-
disabled = false
|
|
20
|
+
disabled = false,
|
|
21
|
+
testId
|
|
20
22
|
} = _ref;
|
|
21
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
24
|
className: (0, _classify.classify)(_StepperModule.default.stepContentWrapper, {
|
|
@@ -24,6 +26,10 @@ const StepContent = _ref => {
|
|
|
24
26
|
[_StepperModule.default.completed]: completed,
|
|
25
27
|
[_StepperModule.default.disabled]: disabled
|
|
26
28
|
}, classNames?.wrapper),
|
|
29
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
30
|
+
base: testId,
|
|
31
|
+
slot: 'root'
|
|
32
|
+
}),
|
|
27
33
|
children: children
|
|
28
34
|
});
|
|
29
35
|
};
|
|
@@ -8,7 +8,8 @@ export interface StepLabelProps {
|
|
|
8
8
|
completed?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
classNames?: ClassNames;
|
|
11
|
+
testId?: string;
|
|
11
12
|
}
|
|
12
|
-
export declare const StepLabel: ({ children, classNames, active, completed, disabled, }: StepLabelProps) => React.JSX.Element;
|
|
13
|
+
export declare const StepLabel: ({ children, classNames, active, completed, disabled, testId, }: StepLabelProps) => React.JSX.Element;
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=StepLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StepLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,GAAI,gEAOvB,cAAc,sBAehB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StepLabel = 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 _StepperModule = _interopRequireDefault(require("../Stepper.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -16,7 +17,8 @@ const StepLabel = _ref => {
|
|
|
16
17
|
classNames,
|
|
17
18
|
active,
|
|
18
19
|
completed = false,
|
|
19
|
-
disabled = false
|
|
20
|
+
disabled = false,
|
|
21
|
+
testId
|
|
20
22
|
} = _ref;
|
|
21
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
24
|
className: (0, _classify.classify)(_StepperModule.default.stepLabelWrapper, {
|
|
@@ -24,6 +26,10 @@ const StepLabel = _ref => {
|
|
|
24
26
|
[_StepperModule.default.completed]: completed,
|
|
25
27
|
[_StepperModule.default.disabled]: disabled
|
|
26
28
|
}, classNames?.wrapper),
|
|
29
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
30
|
+
base: testId,
|
|
31
|
+
slot: 'root'
|
|
32
|
+
}),
|
|
27
33
|
children: children
|
|
28
34
|
});
|
|
29
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAkBH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAsEtE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Stepper = 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 _StepperModule = _interopRequireDefault(require("./Stepper.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -20,7 +21,8 @@ const Stepper = exports.Stepper = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
20
21
|
children,
|
|
21
22
|
orientation = 'horizontal',
|
|
22
23
|
classNames,
|
|
23
|
-
disabled = false
|
|
24
|
+
disabled = false,
|
|
25
|
+
testId
|
|
24
26
|
} = _ref;
|
|
25
27
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
26
28
|
const steps = childrenArray.map((step, index) => {
|
|
@@ -55,12 +57,21 @@ const Stepper = exports.Stepper = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
55
57
|
last: index + 1 === childrenArray.length,
|
|
56
58
|
active: index === activeStep,
|
|
57
59
|
allowClick: onClick && index !== activeStep && isLastStepCompleted,
|
|
58
|
-
disabled: disabledChild || disabled
|
|
60
|
+
disabled: disabledChild || disabled,
|
|
61
|
+
testId: (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'step',
|
|
64
|
+
index: index.toString()
|
|
65
|
+
})
|
|
59
66
|
});
|
|
60
67
|
});
|
|
61
68
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
62
69
|
className: (0, _classify.classify)(_StepperModule.default.stepperWrapper, _StepperModule.default[orientation], classNames?.wrapper),
|
|
63
70
|
ref: ref,
|
|
71
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
72
|
+
base: testId,
|
|
73
|
+
slot: 'root'
|
|
74
|
+
}),
|
|
64
75
|
children: steps
|
|
65
76
|
});
|
|
66
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SubMenu/SubMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"SubMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SubMenu/SubMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAO5D,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,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAwEtE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SubMenu = 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 _Icon = require("../Icon");
|
|
11
12
|
var _Text = require("../Text");
|
|
@@ -22,7 +23,8 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
22
23
|
titleIconSize,
|
|
23
24
|
titleIconType,
|
|
24
25
|
onClose,
|
|
25
|
-
showClose = false
|
|
26
|
+
showClose = false,
|
|
27
|
+
testId
|
|
26
28
|
} = _ref;
|
|
27
29
|
const childrenWithProps = React.Children.map(children, child => {
|
|
28
30
|
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -35,6 +37,10 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
35
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
36
38
|
className: (0, _classify.default)(_SubMenuModule.default.subMenuWrapper, classNames?.wrapper),
|
|
37
39
|
ref: ref,
|
|
40
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
41
|
+
base: testId,
|
|
42
|
+
slot: 'wrapper'
|
|
43
|
+
}),
|
|
38
44
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
39
45
|
className: _SubMenuModule.default.subMenuTitleAndButton,
|
|
40
46
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -44,10 +50,18 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
44
50
|
name: titleIcon,
|
|
45
51
|
type: titleIconType,
|
|
46
52
|
size: titleIconSize,
|
|
47
|
-
className: _SubMenuModule.default.titleIcon
|
|
53
|
+
className: _SubMenuModule.default.titleIcon,
|
|
54
|
+
testId: (0, _qa.generateTestId)({
|
|
55
|
+
base: testId,
|
|
56
|
+
slot: 'title-icon'
|
|
57
|
+
})
|
|
48
58
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleMedium, {
|
|
49
59
|
className: _SubMenuModule.default.subMenuHeader,
|
|
50
60
|
color: _Text.TEXT_COLORS.inversePrimary,
|
|
61
|
+
testId: (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'title'
|
|
64
|
+
}),
|
|
51
65
|
children: title
|
|
52
66
|
})]
|
|
53
67
|
}), showClose && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
@@ -60,7 +74,11 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60
74
|
classNames: {
|
|
61
75
|
wrapper: _SubMenuModule.default.subMenuCloseButton,
|
|
62
76
|
icon: _SubMenuModule.default.subMenuCloseIcon
|
|
63
|
-
}
|
|
77
|
+
},
|
|
78
|
+
testId: (0, _qa.generateTestId)({
|
|
79
|
+
base: testId,
|
|
80
|
+
slot: 'close-button'
|
|
81
|
+
})
|
|
64
82
|
})]
|
|
65
83
|
}), childrenWithProps]
|
|
66
84
|
});
|
|
@@ -5,33 +5,39 @@ interface CellsProps {
|
|
|
5
5
|
className?: string | null | undefined;
|
|
6
6
|
truncatedText?: React.ReactNode;
|
|
7
7
|
onClick?: (e: React.SyntheticEvent<HTMLElement>) => unknown;
|
|
8
|
+
testId?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const Cells: ({ children, className, ...rest }: CellsProps) => React.ReactElement<React.ComponentProps<"div">>;
|
|
10
|
-
export declare const Cell: ({ children, className, }: CellsProps) => React.ReactElement<React.ComponentProps<"div">>;
|
|
10
|
+
export declare const Cells: ({ children, className, testId, ...rest }: CellsProps) => React.ReactElement<React.ComponentProps<"div">>;
|
|
11
|
+
export declare const Cell: ({ children, className, testId, }: CellsProps) => React.ReactElement<React.ComponentProps<"div">>;
|
|
11
12
|
export declare const BasicSingleCell: ClassNameComponent<'td'>;
|
|
12
13
|
export declare const BasicDoubleCell: ClassNameComponent<'td'>;
|
|
13
14
|
export declare const PaddedContentCell: ClassNameComponent<'td'>;
|
|
14
15
|
export declare const PaddedDoubleContentCell: ClassNameComponent<'td'>;
|
|
15
|
-
export declare const SingleCell: ({ title, className, }: {
|
|
16
|
+
export declare const SingleCell: ({ title, className, testId, }: {
|
|
16
17
|
title: string;
|
|
17
18
|
icon?: React.ReactNode;
|
|
18
19
|
className?: string;
|
|
20
|
+
testId?: string;
|
|
19
21
|
}) => React.JSX.Element;
|
|
20
|
-
export declare const DoubleCell: ({ title, subtitle, className, }: {
|
|
22
|
+
export declare const DoubleCell: ({ title, subtitle, className, testId, }: {
|
|
21
23
|
title: React.ReactNode;
|
|
22
24
|
subtitle?: React.ReactNode;
|
|
23
25
|
className?: string;
|
|
26
|
+
testId?: string;
|
|
24
27
|
}) => React.JSX.Element;
|
|
25
|
-
export declare const DateCell: ({ date, className, }: {
|
|
28
|
+
export declare const DateCell: ({ date, className, testId, }: {
|
|
26
29
|
date: string | Date;
|
|
27
30
|
className?: string;
|
|
31
|
+
testId?: string;
|
|
28
32
|
}) => React.JSX.Element;
|
|
29
|
-
export declare const Monogram: ({ initials }: {
|
|
33
|
+
export declare const Monogram: ({ initials, testId, }: {
|
|
30
34
|
initials: string;
|
|
35
|
+
testId?: string;
|
|
31
36
|
}) => React.JSX.Element;
|
|
32
|
-
export declare const MonogramCell: ({ initials, className, }: {
|
|
37
|
+
export declare const MonogramCell: ({ initials, className, testId, }: {
|
|
33
38
|
initials: string;
|
|
34
39
|
className?: string;
|
|
40
|
+
testId?: string;
|
|
35
41
|
}) => React.JSX.Element;
|
|
36
42
|
export {};
|
|
37
43
|
//# sourceMappingURL=Cell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAUzE,UAAU,UAAU;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,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,KAAK,GAAI,0CAKnB,UAAU,KAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAQ7D,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,kCAIlB,UAAU,KAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,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fns/formatDistance"))
|
|
|
9
9
|
var _parseISO = _interopRequireDefault(require("date-fns/parseISO"));
|
|
10
10
|
var _classify = require("../../utils/classify");
|
|
11
11
|
var _makeClassNameComponent = require("../../utils/makeClassNameComponent");
|
|
12
|
+
var _qa = require("../../utils/qa");
|
|
12
13
|
var _Avatar = require("../Avatar");
|
|
13
14
|
var _Text = require("../Text");
|
|
14
15
|
var _TableModule = _interopRequireDefault(require("./Table.module.css"));
|
|
@@ -19,10 +20,15 @@ const Cells = _ref => {
|
|
|
19
20
|
let {
|
|
20
21
|
children,
|
|
21
22
|
className,
|
|
23
|
+
testId,
|
|
22
24
|
...rest
|
|
23
25
|
} = _ref;
|
|
24
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
25
27
|
className: (0, _classify.classify)(_TableModule.default.row, className),
|
|
28
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
29
|
+
base: testId,
|
|
30
|
+
slot: 'cells'
|
|
31
|
+
}),
|
|
26
32
|
...rest,
|
|
27
33
|
children: children
|
|
28
34
|
});
|
|
@@ -31,10 +37,15 @@ exports.Cells = Cells;
|
|
|
31
37
|
const Cell = _ref2 => {
|
|
32
38
|
let {
|
|
33
39
|
children,
|
|
34
|
-
className
|
|
40
|
+
className,
|
|
41
|
+
testId
|
|
35
42
|
} = _ref2;
|
|
36
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
44
|
className: (0, _classify.classify)(_TableModule.default.cell, className),
|
|
45
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
46
|
+
base: testId,
|
|
47
|
+
slot: 'cell'
|
|
48
|
+
}),
|
|
38
49
|
children: children
|
|
39
50
|
});
|
|
40
51
|
};
|
|
@@ -46,10 +57,15 @@ const PaddedDoubleContentCell = exports.PaddedDoubleContentCell = (0, _makeClass
|
|
|
46
57
|
const SingleCell = _ref3 => {
|
|
47
58
|
let {
|
|
48
59
|
title,
|
|
49
|
-
className
|
|
60
|
+
className,
|
|
61
|
+
testId
|
|
50
62
|
} = _ref3;
|
|
51
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaddedContentCell, {
|
|
52
64
|
className: className,
|
|
65
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
66
|
+
base: testId,
|
|
67
|
+
slot: 'single-cell'
|
|
68
|
+
}),
|
|
53
69
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyMedium, {
|
|
54
70
|
className: _TableModule.default.paddedTitleBlock,
|
|
55
71
|
children: title
|
|
@@ -61,10 +77,15 @@ const DoubleCell = _ref4 => {
|
|
|
61
77
|
let {
|
|
62
78
|
title,
|
|
63
79
|
subtitle,
|
|
64
|
-
className
|
|
80
|
+
className,
|
|
81
|
+
testId
|
|
65
82
|
} = _ref4;
|
|
66
83
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaddedDoubleContentCell, {
|
|
67
84
|
className: className,
|
|
85
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
86
|
+
base: testId,
|
|
87
|
+
slot: 'double-cell'
|
|
88
|
+
}),
|
|
68
89
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
69
90
|
className: _TableModule.default.paddedTitleBlock,
|
|
70
91
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyMedium, {
|
|
@@ -82,35 +103,45 @@ exports.DoubleCell = DoubleCell;
|
|
|
82
103
|
const DateCell = _ref5 => {
|
|
83
104
|
let {
|
|
84
105
|
date,
|
|
85
|
-
className
|
|
106
|
+
className,
|
|
107
|
+
testId
|
|
86
108
|
} = _ref5;
|
|
87
109
|
const parsedDate = typeof date === 'object' ? date : (0, _parseISO.default)(date);
|
|
88
110
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DoubleCell, {
|
|
89
111
|
title: `${parsedDate.getMonth() + 1} / ${parsedDate.getDate() + 1} / ${parsedDate.getFullYear()}`,
|
|
90
112
|
subtitle: `${(0, _formatDistance.default)(parsedDate, new Date())} ago`,
|
|
91
|
-
className: className
|
|
113
|
+
className: className,
|
|
114
|
+
testId: testId
|
|
92
115
|
});
|
|
93
116
|
};
|
|
94
117
|
exports.DateCell = DateCell;
|
|
95
118
|
const Monogram = _ref6 => {
|
|
96
119
|
let {
|
|
97
|
-
initials
|
|
120
|
+
initials,
|
|
121
|
+
testId
|
|
98
122
|
} = _ref6;
|
|
99
123
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
100
124
|
size: "small",
|
|
101
|
-
text: initials
|
|
125
|
+
text: initials,
|
|
126
|
+
testId: testId
|
|
102
127
|
});
|
|
103
128
|
};
|
|
104
129
|
exports.Monogram = Monogram;
|
|
105
130
|
const MonogramCell = _ref7 => {
|
|
106
131
|
let {
|
|
107
132
|
initials,
|
|
108
|
-
className
|
|
133
|
+
className,
|
|
134
|
+
testId
|
|
109
135
|
} = _ref7;
|
|
110
136
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaddedContentCell, {
|
|
111
137
|
className: className,
|
|
138
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
139
|
+
base: testId,
|
|
140
|
+
slot: 'monogram-cell'
|
|
141
|
+
}),
|
|
112
142
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Monogram, {
|
|
113
|
-
initials: initials
|
|
143
|
+
initials: initials,
|
|
144
|
+
testId: testId
|
|
114
145
|
})
|
|
115
146
|
});
|
|
116
147
|
};
|
|
@@ -13,6 +13,7 @@ export interface TableRowProps<T, U> {
|
|
|
13
13
|
headers?: GenericHeaderItems<T, U>;
|
|
14
14
|
selected?: boolean;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
+
testId?: string;
|
|
16
17
|
}
|
|
17
18
|
export type TableRow<T, U> = React.ComponentType<TableRowProps<T, U>>;
|
|
18
19
|
export declare const BasicRow: ClassNameComponent<'tr'>;
|
|
@@ -21,9 +22,10 @@ interface EmptyRowProps {
|
|
|
21
22
|
isLoading?: boolean;
|
|
22
23
|
headersLength: number;
|
|
23
24
|
customLoader?: React.ReactNode;
|
|
25
|
+
testId?: string;
|
|
24
26
|
}
|
|
25
|
-
export declare const EmptyRow: ({ isLoading, emptyText, headersLength, customLoader, }: EmptyRowProps) => React.ReactElement<React.ComponentProps<"tr">>;
|
|
26
|
-
export declare function DefaultRow<T extends GenericObject, U extends GenericObject>({ data, extras, headers, selected, onSelect, classNames, disabled, }: {
|
|
27
|
+
export declare const EmptyRow: ({ isLoading, emptyText, headersLength, customLoader, testId, }: EmptyRowProps) => React.ReactElement<React.ComponentProps<"tr">>;
|
|
28
|
+
export declare function DefaultRow<T extends GenericObject, U extends GenericObject>({ data, extras, headers, selected, onSelect, classNames, disabled, testId, }: {
|
|
27
29
|
data: T;
|
|
28
30
|
extras?: U;
|
|
29
31
|
headers: GenericHeaderItems<T, U>;
|
|
@@ -34,6 +36,7 @@ export declare function DefaultRow<T extends GenericObject, U extends GenericObj
|
|
|
34
36
|
}) => unknown;
|
|
35
37
|
classNames?: ClassNames;
|
|
36
38
|
disabled?: boolean;
|
|
39
|
+
testId?: string;
|
|
37
40
|
}): React.JSX.Element;
|
|
38
41
|
export {};
|
|
39
42
|
//# sourceMappingURL=DefaultRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/DefaultRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/DefaultRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAOzE,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AA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M,GACP,EAAE;IACD,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,OAAO,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,KAAK,OAAO,CAAC;IAChE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,qBAyDA"}
|
|
@@ -9,6 +9,7 @@ exports.EmptyRow = void 0;
|
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
11
11
|
var _makeClassNameComponent = require("../../utils/makeClassNameComponent");
|
|
12
|
+
var _qa = require("../../utils/qa");
|
|
12
13
|
var _Checkbox = require("../Checkbox");
|
|
13
14
|
var _CircularLoader = require("../CircularLoader");
|
|
14
15
|
var _Cell = require("./Cell");
|
|
@@ -30,9 +31,14 @@ const EmptyRow = _ref => {
|
|
|
30
31
|
isLoading,
|
|
31
32
|
emptyText,
|
|
32
33
|
headersLength = 0,
|
|
33
|
-
customLoader
|
|
34
|
+
customLoader,
|
|
35
|
+
testId
|
|
34
36
|
} = _ref;
|
|
35
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
38
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
39
|
+
base: testId,
|
|
40
|
+
slot: 'empty-row'
|
|
41
|
+
}),
|
|
36
42
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
|
|
37
43
|
colSpan: headersLength,
|
|
38
44
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -41,11 +47,19 @@ const EmptyRow = _ref => {
|
|
|
41
47
|
className: _TableModule.default.defaultLoader,
|
|
42
48
|
children: [' ', /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularLoader.CircularLoader, {
|
|
43
49
|
colorToken: "colorFillPrimary",
|
|
44
|
-
size: "large"
|
|
50
|
+
size: "large",
|
|
51
|
+
testId: (0, _qa.generateTestId)({
|
|
52
|
+
base: testId,
|
|
53
|
+
slot: 'loader'
|
|
54
|
+
})
|
|
45
55
|
})]
|
|
46
56
|
}) : emptyText || /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyLarge, {
|
|
47
57
|
color: _Text.TEXT_COLORS.secondary,
|
|
48
58
|
className: _TableModule.default.defaultEmptyText,
|
|
59
|
+
testId: (0, _qa.generateTestId)({
|
|
60
|
+
base: testId,
|
|
61
|
+
slot: 'empty-text'
|
|
62
|
+
}),
|
|
49
63
|
children: "Nothing to display here."
|
|
50
64
|
})
|
|
51
65
|
})
|
|
@@ -69,17 +83,29 @@ function DefaultRow(_ref2) {
|
|
|
69
83
|
selected,
|
|
70
84
|
onSelect,
|
|
71
85
|
classNames,
|
|
72
|
-
disabled
|
|
86
|
+
disabled,
|
|
87
|
+
testId
|
|
73
88
|
} = _ref2;
|
|
89
|
+
// Generate a unique row identifier based on the data
|
|
90
|
+
const rowId = data.id || data.key || JSON.stringify(data);
|
|
91
|
+
const rowTestId = (0, _qa.generateTestId)({
|
|
92
|
+
base: testId,
|
|
93
|
+
slot: `row-${rowId}`
|
|
94
|
+
});
|
|
74
95
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(BasicRow, {
|
|
75
96
|
className: (0, _classify.default)(selected ? _TableModule.default.defaultSelectedBodyRow : _TableModule.default.defaultBodyRow, classNames?.tableRow),
|
|
97
|
+
"data-testid": rowTestId,
|
|
76
98
|
children: [selected != null && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cell.PaddedContentCell, {
|
|
77
99
|
className: (0, _classify.default)(_TableModule.default.checkbox, classNames?.checkbox),
|
|
78
100
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.Checkbox, {
|
|
79
101
|
checked: selected ? true : false,
|
|
80
102
|
onChange: onSelect,
|
|
81
103
|
disabled: disabled,
|
|
82
|
-
ariaLabel: "Select row"
|
|
104
|
+
ariaLabel: "Select row",
|
|
105
|
+
testId: (0, _qa.generateTestId)({
|
|
106
|
+
base: rowTestId,
|
|
107
|
+
slot: 'checkbox'
|
|
108
|
+
})
|
|
83
109
|
})
|
|
84
110
|
}), headers.map((item, index) => {
|
|
85
111
|
const {
|
|
@@ -89,6 +115,10 @@ function DefaultRow(_ref2) {
|
|
|
89
115
|
sticky
|
|
90
116
|
} = item;
|
|
91
117
|
const value = data[key];
|
|
118
|
+
const cellTestId = (0, _qa.generateTestId)({
|
|
119
|
+
base: rowTestId,
|
|
120
|
+
slot: `cell-${String(key)}-${index}`
|
|
121
|
+
});
|
|
92
122
|
return Renderer ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Renderer
|
|
93
123
|
// eslint-disable-next-line react/no-array-index-key
|
|
94
124
|
, {
|
|
@@ -98,14 +128,16 @@ function DefaultRow(_ref2) {
|
|
|
98
128
|
disabled: disabled,
|
|
99
129
|
className: (0, _classify.default)({
|
|
100
130
|
[_TableModule.default.stickyCell]: sticky
|
|
101
|
-
})
|
|
131
|
+
}),
|
|
132
|
+
testId: cellTestId
|
|
102
133
|
}, index) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cell.SingleCell
|
|
103
134
|
// eslint-disable-next-line react/no-array-index-key
|
|
104
135
|
, {
|
|
105
136
|
title: String(value),
|
|
106
137
|
className: (0, _classify.default)(cellClassName, {
|
|
107
138
|
[_TableModule.default.stickyCell]: sticky
|
|
108
|
-
})
|
|
139
|
+
}),
|
|
140
|
+
testId: cellTestId
|
|
109
141
|
}, index);
|
|
110
142
|
})]
|
|
111
143
|
});
|
|
@@ -18,6 +18,7 @@ export interface GenericHeaderItem<T, U> {
|
|
|
18
18
|
className?: string;
|
|
19
19
|
selected?: boolean;
|
|
20
20
|
disabled?: boolean;
|
|
21
|
+
testId?: string;
|
|
21
22
|
}>;
|
|
22
23
|
}
|
|
23
24
|
export type GenericHeaderItems<T, U> = GenericHeaderItem<T, U>[];
|
|
@@ -38,6 +39,7 @@ export interface TableHeaderProps<T, U> {
|
|
|
38
39
|
}) => unknown;
|
|
39
40
|
disabled?: boolean;
|
|
40
41
|
stickyHeader?: boolean;
|
|
42
|
+
testId?: string;
|
|
41
43
|
}
|
|
42
44
|
export declare function DefaultTableHeader<T extends GenericObject, U extends GenericObject>(props: TableHeaderProps<T, U>): React.JSX.Element;
|
|
43
45
|
//# sourceMappingURL=DefaultTableHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/DefaultTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/DefaultTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAOzE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAM9D,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,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,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA4CD,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,aAAa,EACvB,KAAK,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,qBAiJ9B"}
|
|
@@ -8,6 +8,7 @@ exports.DefaultTableHeader = DefaultTableHeader;
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
10
|
var _makeClassNameComponent = require("../../utils/makeClassNameComponent");
|
|
11
|
+
var _qa = require("../../utils/qa");
|
|
11
12
|
var _Checkbox = require("../Checkbox");
|
|
12
13
|
var _Icon = require("../Icon");
|
|
13
14
|
var _DefaultRow = require("./DefaultRow");
|
|
@@ -61,7 +62,8 @@ function DefaultTableHeader(props) {
|
|
|
61
62
|
handleCheckboxClick,
|
|
62
63
|
checked,
|
|
63
64
|
disabled,
|
|
64
|
-
stickyHeader
|
|
65
|
+
stickyHeader,
|
|
66
|
+
testId
|
|
65
67
|
} = props;
|
|
66
68
|
const tableHeaderCells = () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
67
69
|
children: columns.map((columnData, index) => {
|
|
@@ -96,6 +98,10 @@ function DefaultTableHeader(props) {
|
|
|
96
98
|
if (sortKey === key) {
|
|
97
99
|
columnSortDirection = sortDirection;
|
|
98
100
|
}
|
|
101
|
+
const headerCellTestId = (0, _qa.generateTestId)({
|
|
102
|
+
base: testId,
|
|
103
|
+
slot: `header-cell-${String(key)}-${index}`
|
|
104
|
+
});
|
|
99
105
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(BasicHeadCell, {
|
|
100
106
|
className: (0, _classify.default)({
|
|
101
107
|
[_TableModule.default.selectedHeader]: sortKey === key && columnSortDirection !== 'original'
|
|
@@ -105,6 +111,7 @@ function DefaultTableHeader(props) {
|
|
|
105
111
|
|
|
106
112
|
scope: "col",
|
|
107
113
|
onClick: headCellClickHandler,
|
|
114
|
+
"data-testid": headerCellTestId,
|
|
108
115
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
109
116
|
className: (0, _classify.default)(_TableModule.default.labelContents),
|
|
110
117
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -140,6 +147,10 @@ function DefaultTableHeader(props) {
|
|
|
140
147
|
className: (0, _classify.default)(_TableModule.default.tableHeaderSortable, {
|
|
141
148
|
[_TableModule.default.stickyHeader]: stickyHeader
|
|
142
149
|
}, className),
|
|
150
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
151
|
+
base: testId,
|
|
152
|
+
slot: 'header'
|
|
153
|
+
}),
|
|
143
154
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DefaultRow.BasicRow, {
|
|
144
155
|
className: _TableModule.default.defaultHeaderRow,
|
|
145
156
|
children: [handleCheckboxClick && /*#__PURE__*/(0, _jsxRuntime.jsx)(BasicHeadCell, {
|
|
@@ -152,7 +163,11 @@ function DefaultTableHeader(props) {
|
|
|
152
163
|
indeterminate: checked === 'mixed',
|
|
153
164
|
onChange: handleCheckboxClick,
|
|
154
165
|
disabled: disabled,
|
|
155
|
-
ariaLabel: "Select all rows"
|
|
166
|
+
ariaLabel: "Select all rows",
|
|
167
|
+
testId: (0, _qa.generateTestId)({
|
|
168
|
+
base: testId,
|
|
169
|
+
slot: 'select-all-checkbox'
|
|
170
|
+
})
|
|
156
171
|
})
|
|
157
172
|
})
|
|
158
173
|
}), tableHeaderCells()]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StaticTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/StaticTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAC,k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