@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
|
@@ -9,6 +9,7 @@ var _useWindowSize = require("../../../hooks/useWindowSize/useWindowSize");
|
|
|
9
9
|
var _size = require("../../../styles/variables/_size");
|
|
10
10
|
var _space = require("../../../styles/variables/_space");
|
|
11
11
|
var _classify = require("../../../utils/classify");
|
|
12
|
+
var _qa = require("../../../utils/qa");
|
|
12
13
|
var _TabDropdown = require("./TabDropdown");
|
|
13
14
|
var _TabListModule = _interopRequireDefault(require("./TabList.module.css"));
|
|
14
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -27,7 +28,8 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
27
28
|
// Default to 'modal' elevation. Note: When using Modal with allowBackgroundInteraction=true,
|
|
28
29
|
// tooltips may appear over the modal. In such cases, handle it by passing an appropriate elevation.
|
|
29
30
|
elevation = 'modal',
|
|
30
|
-
maxTabWidth = _size.size120
|
|
31
|
+
maxTabWidth = _size.size120,
|
|
32
|
+
testId
|
|
31
33
|
} = _ref;
|
|
32
34
|
const ref = React.useRef(null);
|
|
33
35
|
React.useImperativeHandle(forwardRef, () => ref.current);
|
|
@@ -51,7 +53,8 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
51
53
|
label,
|
|
52
54
|
disabled,
|
|
53
55
|
iconName,
|
|
54
|
-
iconType
|
|
56
|
+
iconType,
|
|
57
|
+
testId: childTestId
|
|
55
58
|
} = child.props;
|
|
56
59
|
const effectiveMaxWidth = maxWidthChild || maxTabWidth;
|
|
57
60
|
const widthInt = parseInt(effectiveMaxWidth);
|
|
@@ -65,7 +68,12 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
65
68
|
onSelect: childOnSelect,
|
|
66
69
|
selectedTab,
|
|
67
70
|
maxWidth: effectiveMaxWidth,
|
|
68
|
-
elevation
|
|
71
|
+
elevation,
|
|
72
|
+
testId: childTestId || (0, _qa.generateTestId)({
|
|
73
|
+
base: testId,
|
|
74
|
+
slot: 'tab',
|
|
75
|
+
index: i.toString()
|
|
76
|
+
})
|
|
69
77
|
}));
|
|
70
78
|
} else {
|
|
71
79
|
menuOptions.push({
|
|
@@ -112,7 +120,11 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
112
120
|
width: menuWidth
|
|
113
121
|
}
|
|
114
122
|
},
|
|
115
|
-
elevation: elevation
|
|
123
|
+
elevation: elevation,
|
|
124
|
+
testId: (0, _qa.generateTestId)({
|
|
125
|
+
base: testId,
|
|
126
|
+
slot: 'dropdown'
|
|
127
|
+
})
|
|
116
128
|
}, 'tabDropdown' + menuOptions.length) : null;
|
|
117
129
|
nodes = [...tabListNodes, tabDropDownNode];
|
|
118
130
|
return nodes;
|
|
@@ -126,7 +138,10 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
126
138
|
}, [ref.current, width]);
|
|
127
139
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
140
|
ref: ref,
|
|
129
|
-
"data-testid":
|
|
141
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
142
|
+
base: testId,
|
|
143
|
+
slot: 'root'
|
|
144
|
+
}),
|
|
130
145
|
className: (0, _classify.classify)(_TabListModule.default.tabsContainer, {
|
|
131
146
|
[_TabListModule.default.mediumSize]: size === 'medium',
|
|
132
147
|
[_TabListModule.default.smallSize]: size === 'small'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAiDxE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.TextTile = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _Icon = require("../Icon");
|
|
10
11
|
var _Text = require("../Text");
|
|
11
12
|
var _TextTileModule = _interopRequireDefault(require("./TextTile.module.css"));
|
|
@@ -17,23 +18,43 @@ const TextTile = exports.TextTile = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
17
18
|
header,
|
|
18
19
|
iconName = 'sparkles',
|
|
19
20
|
classNames,
|
|
20
|
-
description
|
|
21
|
+
description,
|
|
22
|
+
testId
|
|
21
23
|
} = _ref;
|
|
22
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23
25
|
ref: ref,
|
|
24
|
-
"data-testid":
|
|
26
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
27
|
+
base: testId,
|
|
28
|
+
slot: 'root'
|
|
29
|
+
}),
|
|
25
30
|
className: (0, _classify.default)(_TextTileModule.default.textTileWrapper, classNames?.wrapper),
|
|
26
31
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
32
|
className: (0, _classify.default)(_TextTileModule.default.textTileTitle, classNames?.title),
|
|
33
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
34
|
+
base: testId,
|
|
35
|
+
slot: 'title'
|
|
36
|
+
}),
|
|
28
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
29
38
|
size: _Icon.ICON_SIZE.large,
|
|
30
39
|
name: iconName,
|
|
31
40
|
type: _Icon.ICON_TYPE.solid,
|
|
32
|
-
className: (0, _classify.default)(_TextTileModule.default.sparkles, classNames?.icon)
|
|
41
|
+
className: (0, _classify.default)(_TextTileModule.default.sparkles, classNames?.icon),
|
|
42
|
+
testId: (0, _qa.generateTestId)({
|
|
43
|
+
base: testId,
|
|
44
|
+
slot: 'icon'
|
|
45
|
+
})
|
|
33
46
|
}), typeof header === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.JumboMedium, {
|
|
47
|
+
testId: (0, _qa.generateTestId)({
|
|
48
|
+
base: testId,
|
|
49
|
+
slot: 'header'
|
|
50
|
+
}),
|
|
34
51
|
children: header
|
|
35
52
|
}) : header]
|
|
36
53
|
}), typeof description === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyLarge, {
|
|
54
|
+
testId: (0, _qa.generateTestId)({
|
|
55
|
+
base: testId,
|
|
56
|
+
slot: 'description'
|
|
57
|
+
}),
|
|
37
58
|
children: description
|
|
38
59
|
}) : description]
|
|
39
60
|
});
|
|
@@ -22,6 +22,7 @@ export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTex
|
|
|
22
22
|
size?: 'medium' | 'small';
|
|
23
23
|
required?: boolean;
|
|
24
24
|
textCountLimit?: number;
|
|
25
|
+
testId?: string;
|
|
25
26
|
}
|
|
26
27
|
export declare const Textarea: Flow.AbstractComponent<TextareaProps, HTMLTextAreaElement>;
|
|
27
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAUrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAC/C,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,WAAW,GACX,MAAM,GACN,UAAU,GACV,aAAa,GACb,QAAQ,GACR,OAAO,GACP,WAAW,GACX,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,UAAU,GACV,gBAAgB,CACnB;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CACT,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAC3C,OAAO,CAAC,EAAE,OAAO,KACd,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;IAChE,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;IAC/D,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuID,eAAO,MAAM,QAAQ,EAEhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Textarea = 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 _Text = require("../Text");
|
|
10
11
|
var _TextareaModule = _interopRequireDefault(require("./Textarea.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -30,6 +31,7 @@ const Textarea_ = (props, ref) => {
|
|
|
30
31
|
size = 'medium',
|
|
31
32
|
required,
|
|
32
33
|
textCountLimit,
|
|
34
|
+
testId,
|
|
33
35
|
...textareaProps
|
|
34
36
|
} = props;
|
|
35
37
|
const [textCountError, setTextCountError] = React.useState(false);
|
|
@@ -44,26 +46,50 @@ const Textarea_ = (props, ref) => {
|
|
|
44
46
|
}, [value]);
|
|
45
47
|
const controlledTextareaFilled = value !== '';
|
|
46
48
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
50
|
+
base: testId,
|
|
51
|
+
slot: 'root'
|
|
52
|
+
}),
|
|
47
53
|
className: (0, _classify.classify)(_TextareaModule.default.wrapper, {
|
|
48
54
|
[_TextareaModule.default.filled]: controlledTextareaFilled ?? false,
|
|
49
55
|
[_TextareaModule.default.withError]: (error || textCountError) ?? false
|
|
50
56
|
}),
|
|
51
57
|
children: [Boolean(label) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
59
|
+
base: testId,
|
|
60
|
+
slot: 'label'
|
|
61
|
+
}),
|
|
52
62
|
className: _TextareaModule.default.info,
|
|
53
63
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
54
64
|
className: _TextareaModule.default.infoContent,
|
|
55
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
56
66
|
color: "secondary",
|
|
67
|
+
testId: (0, _qa.generateTestId)({
|
|
68
|
+
base: testId,
|
|
69
|
+
slot: 'labelText'
|
|
70
|
+
}),
|
|
57
71
|
children: label ?? ''
|
|
58
72
|
}), "\xA0", required && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
59
73
|
color: "danger",
|
|
74
|
+
testId: (0, _qa.generateTestId)({
|
|
75
|
+
base: testId,
|
|
76
|
+
slot: 'requiredIndicator'
|
|
77
|
+
}),
|
|
60
78
|
children: '*'
|
|
61
79
|
})]
|
|
62
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
63
81
|
color: error || textCountError ? 'danger' : 'secondary',
|
|
82
|
+
testId: (0, _qa.generateTestId)({
|
|
83
|
+
base: testId,
|
|
84
|
+
slot: 'textCount'
|
|
85
|
+
}),
|
|
64
86
|
children: !!textCountLimit && (value && value.length || 0) + '/' + textCountLimit
|
|
65
87
|
})]
|
|
66
88
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
89
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
90
|
+
base: testId,
|
|
91
|
+
slot: 'box'
|
|
92
|
+
}),
|
|
67
93
|
className: (0, _classify.classify)(_TextareaModule.default.box, {
|
|
68
94
|
[_TextareaModule.default.inputDisabled]: disabled ?? false,
|
|
69
95
|
[_TextareaModule.default.medium]: size === 'medium',
|
|
@@ -72,6 +98,10 @@ const Textarea_ = (props, ref) => {
|
|
|
72
98
|
}, classNames?.box),
|
|
73
99
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
|
|
74
100
|
...textareaProps,
|
|
101
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
102
|
+
base: testId,
|
|
103
|
+
slot: 'textarea'
|
|
104
|
+
}),
|
|
75
105
|
disabled: locked || disabled,
|
|
76
106
|
name: name,
|
|
77
107
|
ref: ref,
|
|
@@ -84,9 +114,17 @@ const Textarea_ = (props, ref) => {
|
|
|
84
114
|
className: classNames?.textarea
|
|
85
115
|
})
|
|
86
116
|
}), (Boolean(helperText) || error) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
117
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
118
|
+
base: testId,
|
|
119
|
+
slot: 'helperText'
|
|
120
|
+
}),
|
|
87
121
|
className: _TextareaModule.default.info,
|
|
88
122
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodySmall, {
|
|
89
123
|
color: error && errorText ? 'danger' : disabled ? 'disabled' : 'secondary',
|
|
124
|
+
testId: (0, _qa.generateTestId)({
|
|
125
|
+
base: testId,
|
|
126
|
+
slot: 'errorText'
|
|
127
|
+
}),
|
|
90
128
|
children: error && errorText ? errorText : helperText ?? ''
|
|
91
129
|
})
|
|
92
130
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,eAAO,MAAM,WAAW;;;EAGtB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAYzE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuCD,eAAO,MAAM,QAAQ,EAEhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Timeline = exports.ORIENTATION = 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 _TimelineModule = _interopRequireDefault(require("./Timeline.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -23,10 +24,11 @@ const Timeline_ = (_ref, ref) => {
|
|
|
23
24
|
let {
|
|
24
25
|
classNames,
|
|
25
26
|
orientation = ORIENTATION.left,
|
|
26
|
-
children
|
|
27
|
+
children,
|
|
28
|
+
testId
|
|
27
29
|
} = _ref;
|
|
28
30
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
29
|
-
const timelineItems = childrenArray.map(timelineItem => {
|
|
31
|
+
const timelineItems = childrenArray.map((timelineItem, index) => {
|
|
30
32
|
// Type guard to ensure timelineItem is a ReactElement
|
|
31
33
|
if (! /*#__PURE__*/React.isValidElement(timelineItem)) {
|
|
32
34
|
return timelineItem;
|
|
@@ -37,13 +39,21 @@ const Timeline_ = (_ref, ref) => {
|
|
|
37
39
|
const timelineItemProps = timelineItemElement.props;
|
|
38
40
|
return /*#__PURE__*/React.cloneElement(timelineItemElement, {
|
|
39
41
|
...timelineItemProps,
|
|
40
|
-
orientation
|
|
42
|
+
orientation,
|
|
43
|
+
testId: (0, _qa.generateTestId)({
|
|
44
|
+
base: testId,
|
|
45
|
+
slot: 'item',
|
|
46
|
+
index: index.toString()
|
|
47
|
+
})
|
|
41
48
|
});
|
|
42
49
|
});
|
|
43
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
51
|
ref: ref,
|
|
45
52
|
className: (0, _classify.classify)(_TimelineModule.default.timelineWrapper, classNames?.wrapper),
|
|
46
|
-
"data-testid":
|
|
53
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
54
|
+
base: testId,
|
|
55
|
+
slot: 'root'
|
|
56
|
+
}),
|
|
47
57
|
children: timelineItems
|
|
48
58
|
});
|
|
49
59
|
};
|
|
@@ -22,6 +22,7 @@ export interface TimelineItemProps {
|
|
|
22
22
|
orientation?: Orientation;
|
|
23
23
|
parentComponent?: React.ReactNode;
|
|
24
24
|
enableCardWrapper?: boolean;
|
|
25
|
+
testId?: string;
|
|
25
26
|
}
|
|
26
27
|
export declare const TimelineItem: Flow.AbstractComponent<TimelineItemProps, HTMLDivElement>;
|
|
27
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"TimelineItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAOrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAMlE,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA2GD,eAAO,MAAM,YAAY,EAEpB,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.TimelineItem = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _typography = require("../../../types/typography");
|
|
9
9
|
var _classify = require("../../../utils/classify");
|
|
10
|
+
var _qa = require("../../../utils/qa");
|
|
10
11
|
var _Card = require("../../Card");
|
|
11
12
|
var _ConditionalWrapper = require("../../ConditionalWrapper");
|
|
12
13
|
var _Icon = require("../../Icon");
|
|
@@ -27,11 +28,15 @@ const TimelineItem_ = (_ref, ref) => {
|
|
|
27
28
|
description,
|
|
28
29
|
orientation = _Timeline.ORIENTATION.left,
|
|
29
30
|
parentComponent,
|
|
30
|
-
enableCardWrapper = true
|
|
31
|
+
enableCardWrapper = true,
|
|
32
|
+
testId
|
|
31
33
|
} = _ref;
|
|
32
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
33
35
|
id: id,
|
|
34
|
-
"data-testid":
|
|
36
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
37
|
+
base: testId,
|
|
38
|
+
slot: 'root'
|
|
39
|
+
}),
|
|
35
40
|
className: (0, _classify.classify)(_TimelineModule.default.timelineItemWrapper, classNames?.wrapper),
|
|
36
41
|
style: {
|
|
37
42
|
'--align': orientation === 'left' ? 'flex-start' : 'flex-end'
|
|
@@ -42,29 +47,61 @@ const TimelineItem_ = (_ref, ref) => {
|
|
|
42
47
|
'--direction': orientation === 'left' ? 'row' : 'row-reverse'
|
|
43
48
|
},
|
|
44
49
|
className: _TimelineModule.default.timelineItemContent,
|
|
50
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
51
|
+
base: testId,
|
|
52
|
+
slot: 'content'
|
|
53
|
+
}),
|
|
45
54
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
46
55
|
className: _TimelineModule.default.timelineItemIconWrapper,
|
|
56
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
57
|
+
base: testId,
|
|
58
|
+
slot: 'icon-wrapper'
|
|
59
|
+
}),
|
|
47
60
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
48
61
|
name: iconName,
|
|
49
62
|
type: iconType,
|
|
50
63
|
size: _Icon.ICON_SIZE.small,
|
|
51
64
|
color: iconColor,
|
|
52
|
-
className: (0, _classify.classify)(_TimelineModule.default.timelineItemIcon, classNames?.icon)
|
|
65
|
+
className: (0, _classify.classify)(_TimelineModule.default.timelineItemIcon, classNames?.icon),
|
|
66
|
+
testId: (0, _qa.generateTestId)({
|
|
67
|
+
base: testId,
|
|
68
|
+
slot: 'icon'
|
|
69
|
+
})
|
|
53
70
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
54
71
|
className: _TimelineModule.default.timelineItemBorder,
|
|
72
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
73
|
+
base: testId,
|
|
74
|
+
slot: 'border'
|
|
75
|
+
}),
|
|
55
76
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
77
|
className: _TimelineModule.default.border
|
|
57
78
|
})
|
|
58
79
|
})]
|
|
59
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
60
81
|
className: _TimelineModule.default.timelineItemEventDetails,
|
|
82
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
83
|
+
base: testId,
|
|
84
|
+
slot: 'details'
|
|
85
|
+
}),
|
|
61
86
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
62
87
|
className: _TimelineModule.default.timelineItemInfo,
|
|
88
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
89
|
+
base: testId,
|
|
90
|
+
slot: 'info'
|
|
91
|
+
}),
|
|
63
92
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
64
93
|
className: (0, _classify.classify)(_TimelineModule.default.timelineItemTitle, classNames?.title),
|
|
94
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
95
|
+
base: testId,
|
|
96
|
+
slot: 'title'
|
|
97
|
+
}),
|
|
65
98
|
children: title
|
|
66
99
|
}), description ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
100
|
className: (0, _classify.classify)(_TimelineModule.default.timelineItemDescription, classNames?.description),
|
|
101
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
102
|
+
base: testId,
|
|
103
|
+
slot: 'description'
|
|
104
|
+
}),
|
|
68
105
|
children: description
|
|
69
106
|
}) : null]
|
|
70
107
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
@@ -75,6 +112,10 @@ const TimelineItem_ = (_ref, ref) => {
|
|
|
75
112
|
classNames: {
|
|
76
113
|
wrapper: (0, _classify.classify)(_TimelineModule.default.timelineItemCardWrapper, classNames?.card)
|
|
77
114
|
},
|
|
115
|
+
testId: (0, _qa.generateTestId)({
|
|
116
|
+
base: testId,
|
|
117
|
+
slot: 'card'
|
|
118
|
+
}),
|
|
78
119
|
children: children
|
|
79
120
|
}),
|
|
80
121
|
children: children
|
|
@@ -21,26 +21,30 @@ export interface ToastProps {
|
|
|
21
21
|
initialFocus?: number;
|
|
22
22
|
customIcon?: React.ReactNode;
|
|
23
23
|
hideCloseIcon?: boolean;
|
|
24
|
+
testId?: string;
|
|
24
25
|
}
|
|
25
26
|
export interface ToastTitleProps {
|
|
26
27
|
children?: React.ReactNode;
|
|
27
28
|
className?: string;
|
|
28
29
|
semantic?: ToastSemanticType;
|
|
30
|
+
testId?: string;
|
|
29
31
|
}
|
|
30
32
|
export declare const ToastTitle: Flow.AbstractComponent<ToastTitleProps, HTMLDivElement>;
|
|
31
33
|
export interface ToastBodyProps {
|
|
32
34
|
children?: React.ReactNode;
|
|
33
35
|
className?: string;
|
|
36
|
+
testId?: string;
|
|
34
37
|
}
|
|
35
38
|
export declare const ToastBody: Flow.AbstractComponent<ToastBodyProps, HTMLDivElement>;
|
|
36
39
|
export interface ToastFooterProps {
|
|
37
40
|
children?: React.ReactNode;
|
|
38
41
|
onClose?: () => void;
|
|
42
|
+
testId?: string;
|
|
39
43
|
}
|
|
40
44
|
export declare const ToastFooter: {
|
|
41
|
-
({ children, onClose }: ToastFooterProps): React.JSX.Element | null;
|
|
45
|
+
({ children, onClose, testId }: ToastFooterProps): React.JSX.Element | null;
|
|
42
46
|
displayName: string;
|
|
43
47
|
};
|
|
44
|
-
export declare const Toast: ({ classNames, children, time, semantic, onClose, initialFocus, customIcon, hideCloseIcon, }: ToastProps) => React.JSX.Element;
|
|
48
|
+
export declare const Toast: ({ classNames, children, time, semantic, onClose, initialFocus, customIcon, hideCloseIcon, testId, }: ToastProps) => React.JSX.Element;
|
|
45
49
|
export {};
|
|
46
50
|
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAYrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAMzB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAoGD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,CAqBf,CAAC;AAIF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CAY1E,CAAC;AAIJ,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW;oCAAiC,gBAAgB;;CAoDxE,CAAC;AAIF,eAAO,MAAM,KAAK,GAAI,qGAUnB,UAAU,sBAuEZ,CAAC"}
|