@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioTile.d.ts","sourceRoot":"","sources":["../../../src/components/RadioTile/RadioTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioTile.d.ts","sourceRoot":"","sources":["../../../src/components/RadioTile/RadioTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAOxD,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAQ5D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CA8F1E,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.RadioTile = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _common = require("../../types/common");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Card = require("../Card");
|
|
11
12
|
var _Chip = require("../Chip");
|
|
12
13
|
var _Icon = require("../Icon");
|
|
@@ -29,6 +30,7 @@ const RadioTile = exports.RadioTile = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
29
30
|
iconType = _Icon.ICON_TYPE.solid,
|
|
30
31
|
onTileClick,
|
|
31
32
|
isSelected = false,
|
|
33
|
+
testId,
|
|
32
34
|
...props
|
|
33
35
|
} = _ref;
|
|
34
36
|
const handleTileClick = e => {
|
|
@@ -37,7 +39,10 @@ const RadioTile = exports.RadioTile = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
37
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Card.ClickableCard, {
|
|
38
40
|
...props,
|
|
39
41
|
ref: ref,
|
|
40
|
-
"data-testid":
|
|
42
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
43
|
+
base: testId,
|
|
44
|
+
slot: 'wrapper'
|
|
45
|
+
}),
|
|
41
46
|
classNames: {
|
|
42
47
|
wrapper: (0, _classify.default)(_RadioTileModule.default.wrapper, classNames?.wrapper)
|
|
43
48
|
},
|
|
@@ -48,25 +53,41 @@ const RadioTile = exports.RadioTile = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
48
53
|
semantic: semantic,
|
|
49
54
|
name: iconName,
|
|
50
55
|
size: iconSize,
|
|
51
|
-
type: iconType
|
|
56
|
+
type: iconType,
|
|
57
|
+
testId: (0, _qa.generateTestId)({
|
|
58
|
+
base: testId,
|
|
59
|
+
slot: 'icon'
|
|
60
|
+
})
|
|
52
61
|
})
|
|
53
62
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
54
63
|
className: _RadioTileModule.default.contentContainer,
|
|
55
64
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
56
65
|
className: _RadioTileModule.default.textContainer,
|
|
57
66
|
children: [!!header && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleMedium, {
|
|
67
|
+
testId: (0, _qa.generateTestId)({
|
|
68
|
+
base: testId,
|
|
69
|
+
slot: 'header'
|
|
70
|
+
}),
|
|
58
71
|
children: header
|
|
59
72
|
}), !!description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyMedium, {
|
|
60
73
|
color: "secondary",
|
|
74
|
+
testId: (0, _qa.generateTestId)({
|
|
75
|
+
base: testId,
|
|
76
|
+
slot: 'description'
|
|
77
|
+
}),
|
|
61
78
|
children: description
|
|
62
79
|
})]
|
|
63
80
|
}), !!chipItems?.length && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
64
81
|
className: _RadioTileModule.default.chipsContainer,
|
|
65
|
-
children: chipItems.map((item, index) =>
|
|
66
|
-
/*#__PURE__*/
|
|
82
|
+
children: chipItems.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.Chip
|
|
67
83
|
// eslint-disable-next-line react/no-array-index-key
|
|
68
|
-
|
|
84
|
+
, {
|
|
69
85
|
semantic: "primary",
|
|
86
|
+
testId: (0, _qa.generateTestId)({
|
|
87
|
+
base: testId,
|
|
88
|
+
slot: 'chip',
|
|
89
|
+
index: index.toString()
|
|
90
|
+
}),
|
|
70
91
|
children: item
|
|
71
92
|
}, index))
|
|
72
93
|
})]
|
|
@@ -78,7 +99,11 @@ const RadioTile = exports.RadioTile = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
78
99
|
},
|
|
79
100
|
value: id,
|
|
80
101
|
selectedValue: isSelected ? id : '',
|
|
81
|
-
tabIndex: -1
|
|
102
|
+
tabIndex: -1,
|
|
103
|
+
testId: (0, _qa.generateTestId)({
|
|
104
|
+
base: testId,
|
|
105
|
+
slot: 'radio-button'
|
|
106
|
+
})
|
|
82
107
|
})
|
|
83
108
|
})]
|
|
84
109
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeSlider.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSlider/RangeSlider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"RangeSlider.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSlider/RangeSlider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAUrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAQtD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,iBAAiB,CAC9C,gBAAgB,EAChB,cAAc,CAqKf,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.RangeSlider = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _color = require("../../styles/variables/_color");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Button = require("../Button");
|
|
11
12
|
var _Input = require("../Input");
|
|
12
13
|
var _Text = require("../Text");
|
|
@@ -33,6 +34,7 @@ const RangeSlider = exports.RangeSlider = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
33
34
|
ariaLabel = 'Slider',
|
|
34
35
|
showRange,
|
|
35
36
|
hideValueInput,
|
|
37
|
+
testId,
|
|
36
38
|
...restInputProps
|
|
37
39
|
} = _ref;
|
|
38
40
|
const progress = (value - min) / (max - min) * 100;
|
|
@@ -63,7 +65,10 @@ const RangeSlider = exports.RangeSlider = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
63
65
|
};
|
|
64
66
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
65
67
|
ref: ref,
|
|
66
|
-
"data-testid":
|
|
68
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
69
|
+
base: testId,
|
|
70
|
+
slot: 'wrapper'
|
|
71
|
+
}),
|
|
67
72
|
className: (0, _classify.default)(_RangeSliderModule.default.wrapper, {
|
|
68
73
|
[_RangeSliderModule.default.disabled]: disabled
|
|
69
74
|
}, classNames?.wrapper),
|
|
@@ -73,10 +78,18 @@ const RangeSlider = exports.RangeSlider = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
73
78
|
size: btnLeftSize,
|
|
74
79
|
ariaLabel: "Decrease Value",
|
|
75
80
|
disabled: btnLeftDisabled,
|
|
76
|
-
onClick: () => emitRoundedValue(value - step)
|
|
81
|
+
onClick: () => emitRoundedValue(value - step),
|
|
82
|
+
testId: (0, _qa.generateTestId)({
|
|
83
|
+
base: testId,
|
|
84
|
+
slot: 'decrease-button'
|
|
85
|
+
})
|
|
77
86
|
}), showRange && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodySmall, {
|
|
78
87
|
className: _RangeSliderModule.default.rangeText,
|
|
79
88
|
color: disabled ? 'disabled' : 'primary',
|
|
89
|
+
testId: (0, _qa.generateTestId)({
|
|
90
|
+
base: testId,
|
|
91
|
+
slot: 'min-value'
|
|
92
|
+
}),
|
|
80
93
|
children: min
|
|
81
94
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
82
95
|
className: _RangeSliderModule.default.sliderContainer,
|
|
@@ -92,6 +105,10 @@ const RangeSlider = exports.RangeSlider = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
92
105
|
list: showTicks ? 'ticks' : undefined,
|
|
93
106
|
disabled: disabled,
|
|
94
107
|
"aria-label": ariaLabel,
|
|
108
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
109
|
+
base: testId,
|
|
110
|
+
slot: 'slider'
|
|
111
|
+
}),
|
|
95
112
|
style: {
|
|
96
113
|
background: `linear-gradient(to right, ${progressColor} ${progress}%, ${_color.colorGrayLightest} ${progress}%)`
|
|
97
114
|
}
|
|
@@ -110,6 +127,10 @@ const RangeSlider = exports.RangeSlider = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
110
127
|
}), showRange && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodySmall, {
|
|
111
128
|
className: _RangeSliderModule.default.rangeText,
|
|
112
129
|
color: disabled ? 'disabled' : 'primary',
|
|
130
|
+
testId: (0, _qa.generateTestId)({
|
|
131
|
+
base: testId,
|
|
132
|
+
slot: 'max-value'
|
|
133
|
+
}),
|
|
113
134
|
children: max
|
|
114
135
|
}), !hideRightBtn && !showRange && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
115
136
|
type: "ghost",
|
|
@@ -117,7 +138,11 @@ const RangeSlider = exports.RangeSlider = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
117
138
|
size: btnRightSize,
|
|
118
139
|
ariaLabel: "Increase Value",
|
|
119
140
|
disabled: btnRightDisabled,
|
|
120
|
-
onClick: () => emitRoundedValue(value + step)
|
|
141
|
+
onClick: () => emitRoundedValue(value + step),
|
|
142
|
+
testId: (0, _qa.generateTestId)({
|
|
143
|
+
base: testId,
|
|
144
|
+
slot: 'increase-button'
|
|
145
|
+
})
|
|
121
146
|
}), !hideValueInput && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.Input, {
|
|
122
147
|
size: "small",
|
|
123
148
|
type: "number",
|
|
@@ -128,7 +153,11 @@ const RangeSlider = exports.RangeSlider = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
128
153
|
disabled: disabled,
|
|
129
154
|
onChange: handleInputChange,
|
|
130
155
|
disallowExponents: true,
|
|
131
|
-
hideNumberSpinner: true
|
|
156
|
+
hideNumberSpinner: true,
|
|
157
|
+
testId: (0, _qa.generateTestId)({
|
|
158
|
+
base: testId,
|
|
159
|
+
slot: 'value-input'
|
|
160
|
+
})
|
|
132
161
|
})]
|
|
133
162
|
});
|
|
134
163
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/Rating.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAIrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/Rating.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAIrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAS1D,eAAO,MAAM,WAAW;;;EAGtB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,KAAK,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,cAAc,CAwGpE,CAAC"}
|
|
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _invariant = _interopRequireDefault(require("invariant"));
|
|
9
9
|
var _lodash = require("lodash");
|
|
10
10
|
var _classify = require("../../utils/classify");
|
|
11
|
+
var _qa = require("../../utils/qa");
|
|
11
12
|
var _rating = require("../../utils/rating");
|
|
12
13
|
var _Button = require("../Button");
|
|
13
14
|
var _Chip = require("../Chip");
|
|
@@ -36,7 +37,8 @@ const Rating = exports.Rating = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
36
37
|
iconName = 'star',
|
|
37
38
|
iconColor = _Text.TEXT_COLORS.favorite,
|
|
38
39
|
chipSemantic = _Chip.CHIP_SEMANTIC.warning,
|
|
39
|
-
classNames
|
|
40
|
+
classNames,
|
|
41
|
+
testId
|
|
40
42
|
} = _ref;
|
|
41
43
|
const [hoverIcon, setHoverIcon] = React.useState(-1);
|
|
42
44
|
const chipText = (0, _rating.getRatingLabel)(rating - start, labels);
|
|
@@ -44,7 +46,10 @@ const Rating = exports.Rating = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
44
46
|
(0, _invariant.default)(totalIcons, JSON.stringify(_rating.RATING_ERRORS.INVALID_RANGE));
|
|
45
47
|
(0, _invariant.default)((0, _lodash.isUndefined)(labels) || (0, _lodash.isArray)(labels) && labels.length, JSON.stringify(_rating.RATING_ERRORS.INVALID_RATING_LABELS));
|
|
46
48
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
47
|
-
"data-testid":
|
|
49
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
50
|
+
base: testId,
|
|
51
|
+
slot: 'wrapper'
|
|
52
|
+
}),
|
|
48
53
|
ref: ref,
|
|
49
54
|
className: (0, _classify.classify)(_RatingModule.default.ratingContainer, classNames?.wrapper),
|
|
50
55
|
onBlur: () => !quiet && setHoverIcon(-1),
|
|
@@ -69,6 +74,11 @@ const Rating = exports.Rating = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
69
74
|
onClick: e => onChange?.(start + iconCount, e),
|
|
70
75
|
onMouseEnter: () => !quiet && setHoverIcon(iconCount),
|
|
71
76
|
onMouseLeave: () => !quiet && setHoverIcon(-1),
|
|
77
|
+
testId: (0, _qa.generateTestId)({
|
|
78
|
+
base: testId,
|
|
79
|
+
slot: 'star-button',
|
|
80
|
+
index: iconCount.toString()
|
|
81
|
+
}),
|
|
72
82
|
children: children
|
|
73
83
|
}),
|
|
74
84
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
@@ -76,13 +86,22 @@ const Rating = exports.Rating = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
76
86
|
name: iconName,
|
|
77
87
|
type: iconType,
|
|
78
88
|
color: iconColor,
|
|
79
|
-
className: (0, _classify.classify)(_RatingModule.default.icon, classNames?.icon)
|
|
89
|
+
className: (0, _classify.classify)(_RatingModule.default.icon, classNames?.icon),
|
|
90
|
+
testId: (0, _qa.generateTestId)({
|
|
91
|
+
base: testId,
|
|
92
|
+
slot: 'star-icon',
|
|
93
|
+
index: iconCount.toString()
|
|
94
|
+
})
|
|
80
95
|
})
|
|
81
96
|
}, iconCount);
|
|
82
97
|
})
|
|
83
98
|
}), !hideLabel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.Chip, {
|
|
84
99
|
size: size,
|
|
85
100
|
semantic: chipSemantic,
|
|
101
|
+
testId: (0, _qa.generateTestId)({
|
|
102
|
+
base: testId,
|
|
103
|
+
slot: 'rating-chip'
|
|
104
|
+
}),
|
|
86
105
|
children: chipText
|
|
87
106
|
})]
|
|
88
107
|
});
|
|
@@ -22,6 +22,7 @@ export interface ScoreBarProps {
|
|
|
22
22
|
totalBars?: number;
|
|
23
23
|
score?: number;
|
|
24
24
|
withBorder?: boolean;
|
|
25
|
+
testId?: string;
|
|
25
26
|
}
|
|
26
27
|
export declare const DEFAULT_COLOR_MAP: ScoreBarColorMap;
|
|
27
28
|
export declare const ScoreBar: Flow.AbstractComponent<ScoreBarProps, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreBar.d.ts","sourceRoot":"","sources":["../../../src/components/ScoreBar/ScoreBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"ScoreBar.d.ts","sourceRoot":"","sources":["../../../src/components/ScoreBar/ScoreBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AA0BrD,eAAO,MAAM,SAAS;;;EAGpB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAEhD,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,eAAO,MAAM,iBAAiB,EAAE,gBAO/B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CA4ExE,CAAC"}
|
|
@@ -10,6 +10,7 @@ var _clamp = _interopRequireDefault(require("lodash/clamp"));
|
|
|
10
10
|
var _color = require("../../styles/variables/_color");
|
|
11
11
|
var _size = require("../../styles/variables/_size");
|
|
12
12
|
var _classify = require("../../utils/classify");
|
|
13
|
+
var _qa = require("../../utils/qa");
|
|
13
14
|
var _scoreBar = require("../../utils/score-bar");
|
|
14
15
|
var _Text = require("../Text");
|
|
15
16
|
var _ScoreBarModule = _interopRequireDefault(require("./ScoreBar.module.css"));
|
|
@@ -37,13 +38,17 @@ const ScoreBar = exports.ScoreBar = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
37
38
|
direction = 'vertical',
|
|
38
39
|
classNames,
|
|
39
40
|
withBorder = false,
|
|
40
|
-
labelMap
|
|
41
|
+
labelMap,
|
|
42
|
+
testId
|
|
41
43
|
} = _ref;
|
|
42
44
|
(0, _invariant.default)(totalBars > 0, JSON.stringify(_scoreBar.SCORE_BAR_ERRORS.INVALID_BAR_COUNT));
|
|
43
45
|
const activeLabel = (0, _scoreBar.getLabelByScorePercentage)(score, totalBars, labelMap);
|
|
44
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
45
47
|
ref: ref,
|
|
46
|
-
"data-testid":
|
|
48
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
49
|
+
base: testId,
|
|
50
|
+
slot: 'scoreBar'
|
|
51
|
+
}),
|
|
47
52
|
className: (0, _classify.classify)(_ScoreBarModule.default.scoreBarWrapper, {
|
|
48
53
|
[_ScoreBarModule.default.scoreBarBorder]: withBorder
|
|
49
54
|
}, classNames?.wrapper),
|
|
@@ -55,6 +60,11 @@ const ScoreBar = exports.ScoreBar = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
55
60
|
'--width': direction === Direction.vertical ? _size.size18 : 'unset'
|
|
56
61
|
},
|
|
57
62
|
children: [...Array(totalBars).keys()].reverse().map(count => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
63
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
64
|
+
base: testId,
|
|
65
|
+
slot: 'bar',
|
|
66
|
+
index: count
|
|
67
|
+
}),
|
|
58
68
|
className: (0, _classify.classify)(_ScoreBarModule.default.bar, classNames?.bar),
|
|
59
69
|
style: {
|
|
60
70
|
'--background-color': (0, _scoreBar.getColorByScorePercentage)(totalBars, (0, _clamp.default)(score, 0, totalBars), count, colorMap),
|
|
@@ -64,6 +74,10 @@ const ScoreBar = exports.ScoreBar = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
64
74
|
}, count))
|
|
65
75
|
}), activeLabel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleExtraSmall, {
|
|
66
76
|
className: (0, _classify.classify)(_ScoreBarModule.default.scoreBarLabel, classNames?.label),
|
|
77
|
+
testId: (0, _qa.generateTestId)({
|
|
78
|
+
base: testId,
|
|
79
|
+
slot: 'label'
|
|
80
|
+
}),
|
|
67
81
|
children: activeLabel
|
|
68
82
|
})]
|
|
69
83
|
});
|
|
@@ -9,6 +9,7 @@ export interface SearchInputProps extends Omit<InputProps, 'classNames' | 'onCle
|
|
|
9
9
|
classNames?: ClassNames;
|
|
10
10
|
onClear?: () => void;
|
|
11
11
|
isLoading?: boolean;
|
|
12
|
+
testId?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const SearchInput: Flow.AbstractComponent<SearchInputProps, HTMLInputElement>;
|
|
14
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;IAChE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,iBAAiB,CAC9C,gBAAgB,EAChB,gBAAgB,CAqEjB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SearchInput = 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 _CircularLoader = require("../CircularLoader");
|
|
10
11
|
var _Input = require("../Input");
|
|
11
12
|
var _SearchInputModule = _interopRequireDefault(require("./SearchInput.module.css"));
|
|
@@ -23,6 +24,7 @@ const SearchInput = exports.SearchInput = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
23
24
|
isLoading,
|
|
24
25
|
size,
|
|
25
26
|
iconLeftName = 'magnifying-glass',
|
|
27
|
+
testId,
|
|
26
28
|
...searchInputProps
|
|
27
29
|
} = _ref;
|
|
28
30
|
const handleClearClick = () => {
|
|
@@ -32,6 +34,10 @@ const SearchInput = exports.SearchInput = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
32
34
|
};
|
|
33
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
34
36
|
className: (0, _classify.default)(_SearchInputModule.default.searchInputWrapper, classNames?.wrapper),
|
|
37
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
38
|
+
base: testId,
|
|
39
|
+
slot: 'wrapper'
|
|
40
|
+
}),
|
|
35
41
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.Input, {
|
|
36
42
|
...searchInputProps,
|
|
37
43
|
type: "text",
|
|
@@ -48,15 +54,27 @@ const SearchInput = exports.SearchInput = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
48
54
|
iconLeftName: iconLeftName,
|
|
49
55
|
size: size,
|
|
50
56
|
iconRightName: value && !(disabled || locked) ? 'xmark' : 'fw',
|
|
51
|
-
onIconRightClick: handleClearClick
|
|
57
|
+
onIconRightClick: handleClearClick,
|
|
58
|
+
testId: (0, _qa.generateTestId)({
|
|
59
|
+
base: testId,
|
|
60
|
+
slot: 'input'
|
|
61
|
+
})
|
|
52
62
|
}), isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
63
|
className: (0, _classify.default)(_SearchInputModule.default.loaderContainer, {
|
|
54
64
|
[_SearchInputModule.default.small]: size === 'small'
|
|
55
65
|
}),
|
|
66
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
67
|
+
base: testId,
|
|
68
|
+
slot: 'loader-container'
|
|
69
|
+
}),
|
|
56
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularLoader.CircularLoader, {
|
|
57
71
|
colorToken: "colorFillPrimary",
|
|
58
72
|
className: _SearchInputModule.default.loader,
|
|
59
|
-
size: "small"
|
|
73
|
+
size: "small",
|
|
74
|
+
testId: (0, _qa.generateTestId)({
|
|
75
|
+
base: testId,
|
|
76
|
+
slot: 'loader'
|
|
77
|
+
})
|
|
60
78
|
})
|
|
61
79
|
})]
|
|
62
80
|
});
|
|
@@ -205,6 +205,7 @@ export interface SideMenuLinkProps {
|
|
|
205
205
|
rightSlot?: React.ReactNode;
|
|
206
206
|
linkComponent?: Flow.AbstractComponent<BaseLinkProps, HTMLAnchorElement | null | undefined>;
|
|
207
207
|
status?: StatusSemanticType;
|
|
208
|
+
testId?: string;
|
|
208
209
|
}
|
|
209
210
|
export declare const SideMenuLink: Flow.AbstractComponent<SideMenuLinkProps, HTMLButtonElement>;
|
|
210
211
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideMenuLink.d.ts","sourceRoot":"","sources":["../../../src/components/SideMenuLink/SideMenuLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"SideMenuLink.d.ts","sourceRoot":"","sources":["../../../src/components/SideMenuLink/SideMenuLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AASrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAGvE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAM7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqLzB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,CACT,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,CACpC,aAAa,EACb,iBAAiB,GAAG,IAAI,GAAG,SAAS,CACrC,CAAC;IACF,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,iBAAiB,EACjB,iBAAiB,CA+IlB,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.SideMenuLink = exports.MENU_NAME_LIST = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var React = _react;
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Button = require("../Button");
|
|
11
12
|
var _ConditionalWrapper = require("../ConditionalWrapper");
|
|
12
13
|
var _Icon = require("../Icon");
|
|
@@ -216,6 +217,7 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
216
217
|
to,
|
|
217
218
|
customTitle,
|
|
218
219
|
status,
|
|
220
|
+
testId,
|
|
219
221
|
...restButtonProps
|
|
220
222
|
} = _ref;
|
|
221
223
|
const selected = selectedValue === pageNameKey;
|
|
@@ -234,6 +236,10 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
234
236
|
[_SideMenuLinkModule.default.closed]: !opened
|
|
235
237
|
}),
|
|
236
238
|
onClick: onChangeHandler,
|
|
239
|
+
testId: (0, _qa.generateTestId)({
|
|
240
|
+
base: testId,
|
|
241
|
+
slot: 'link'
|
|
242
|
+
}),
|
|
237
243
|
children: children
|
|
238
244
|
}),
|
|
239
245
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
@@ -241,6 +247,10 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
241
247
|
wrapper: children => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
242
248
|
body: linkTitle,
|
|
243
249
|
...tooltip,
|
|
250
|
+
testId: (0, _qa.generateTestId)({
|
|
251
|
+
base: testId,
|
|
252
|
+
slot: 'tooltip'
|
|
253
|
+
}),
|
|
244
254
|
children: children
|
|
245
255
|
}),
|
|
246
256
|
children: /*#__PURE__*/(0, _react.createElement)(_Button.UnstyledButton, {
|
|
@@ -255,28 +265,48 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
255
265
|
ref: ref,
|
|
256
266
|
tabIndex: disabled ? -1 : tabIndex,
|
|
257
267
|
disabled: disabled,
|
|
258
|
-
key: pageNameKey
|
|
268
|
+
key: pageNameKey,
|
|
269
|
+
testId: (0, _qa.generateTestId)({
|
|
270
|
+
base: testId,
|
|
271
|
+
slot: 'button'
|
|
272
|
+
})
|
|
259
273
|
}, pageNameKey && MENU_NAME_LIST[pageNameKey] ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
260
274
|
className: _SideMenuLinkModule.default.iconContainer,
|
|
261
275
|
children: [status && /*#__PURE__*/(0, _jsxRuntime.jsx)(_StatusIndicator.StatusIndicator, {
|
|
262
276
|
status: status,
|
|
263
277
|
classNames: {
|
|
264
278
|
wrapper: _SideMenuLinkModule.default.statusIndicatorBlock
|
|
265
|
-
}
|
|
279
|
+
},
|
|
280
|
+
testId: (0, _qa.generateTestId)({
|
|
281
|
+
base: testId,
|
|
282
|
+
slot: 'status-indicator'
|
|
283
|
+
})
|
|
266
284
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
267
285
|
type: MENU_NAME_LIST[pageNameKey].iconType,
|
|
268
286
|
name: MENU_NAME_LIST[pageNameKey].iconName,
|
|
269
287
|
size: "medium",
|
|
270
288
|
color: _Text.TEXT_COLORS.inverseSecondary,
|
|
271
|
-
className: _SideMenuLinkModule.default.menuIcon
|
|
289
|
+
className: _SideMenuLinkModule.default.menuIcon,
|
|
290
|
+
testId: (0, _qa.generateTestId)({
|
|
291
|
+
base: testId,
|
|
292
|
+
slot: 'icon'
|
|
293
|
+
})
|
|
272
294
|
})]
|
|
273
295
|
}) : null, opened ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
274
296
|
className: _SideMenuLinkModule.default.menuLabelContainer,
|
|
275
297
|
children: [pageNameKey && MENU_NAME_LIST[pageNameKey] ? isGroupMenuLink ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleSmall, {
|
|
276
298
|
className: _SideMenuLinkModule.default.groupMenuLinkText,
|
|
299
|
+
testId: (0, _qa.generateTestId)({
|
|
300
|
+
base: testId,
|
|
301
|
+
slot: 'title'
|
|
302
|
+
}),
|
|
277
303
|
children: linkTitle
|
|
278
304
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyMedium, {
|
|
279
305
|
className: _SideMenuLinkModule.default.menuLinkText,
|
|
306
|
+
testId: (0, _qa.generateTestId)({
|
|
307
|
+
base: testId,
|
|
308
|
+
slot: 'title'
|
|
309
|
+
}),
|
|
280
310
|
children: linkTitle
|
|
281
311
|
}) : null, rightSlot ? rightSlot : null]
|
|
282
312
|
}) : null)
|
|
@@ -19,6 +19,7 @@ export interface StepProps {
|
|
|
19
19
|
onClick?: (idx: number, e?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
|
|
20
20
|
iconName?: string;
|
|
21
21
|
iconType?: IconType;
|
|
22
|
+
testId?: string;
|
|
22
23
|
}
|
|
23
24
|
export declare const Step: Flow.AbstractComponent<StepProps, HTMLDivElement>;
|
|
24
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAclD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,CACR,GAAG,EAAE,MAAM,EACX,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACrD,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,cAAc,CAuGhE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Step = 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 _StepperModule = _interopRequireDefault(require("../Stepper.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -26,7 +27,8 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
26
27
|
onClick,
|
|
27
28
|
allowClick,
|
|
28
29
|
iconName,
|
|
29
|
-
iconType
|
|
30
|
+
iconType,
|
|
31
|
+
testId
|
|
30
32
|
} = _ref;
|
|
31
33
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
32
34
|
const stepContent = childrenArray.map(stepContent => {
|
|
@@ -35,7 +37,11 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
35
37
|
...stepContent.props,
|
|
36
38
|
active,
|
|
37
39
|
completed,
|
|
38
|
-
disabled
|
|
40
|
+
disabled,
|
|
41
|
+
testId: (0, _qa.generateTestId)({
|
|
42
|
+
base: testId,
|
|
43
|
+
slot: 'content'
|
|
44
|
+
})
|
|
39
45
|
});
|
|
40
46
|
}
|
|
41
47
|
return stepContent;
|
|
@@ -52,6 +58,10 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
52
58
|
[_StepperModule.default.clickable]: allowClick
|
|
53
59
|
}, classNames?.wrapper),
|
|
54
60
|
onClick: handleClick,
|
|
61
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'root'
|
|
64
|
+
}),
|
|
55
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
66
|
className: (0, _classify.default)(_StepperModule.default.stepWrapperCounter, {
|
|
57
67
|
[_StepperModule.default.selected]: active,
|
|
@@ -61,21 +71,37 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
61
71
|
[_StepperModule.default.disabled]: disabled,
|
|
62
72
|
[_StepperModule.default.withIcon]: !!iconName
|
|
63
73
|
}, classNames?.stepCounter),
|
|
74
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
75
|
+
base: testId,
|
|
76
|
+
slot: 'counter'
|
|
77
|
+
}),
|
|
64
78
|
children: completed && !active ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
65
79
|
name: "check",
|
|
66
80
|
type: _Icon.ICON_TYPE.solid,
|
|
67
81
|
size: _Icon.ICON_SIZE.small,
|
|
68
|
-
className: _StepperModule.default.stepIcon
|
|
82
|
+
className: _StepperModule.default.stepIcon,
|
|
83
|
+
testId: (0, _qa.generateTestId)({
|
|
84
|
+
base: testId,
|
|
85
|
+
slot: 'check-icon'
|
|
86
|
+
})
|
|
69
87
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
|
|
70
88
|
children: iconName ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
71
89
|
name: iconName,
|
|
72
90
|
className: _StepperModule.default.stepIcon,
|
|
73
91
|
size: _Icon.ICON_SIZE.small,
|
|
74
|
-
type: iconType
|
|
92
|
+
type: iconType,
|
|
93
|
+
testId: (0, _qa.generateTestId)({
|
|
94
|
+
base: testId,
|
|
95
|
+
slot: 'icon'
|
|
96
|
+
})
|
|
75
97
|
}) : (index + 1).toString()
|
|
76
98
|
})
|
|
77
99
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
100
|
className: (0, _classify.default)(_StepperModule.default.stepContent, classNames?.content),
|
|
101
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
102
|
+
base: testId,
|
|
103
|
+
slot: 'content'
|
|
104
|
+
}),
|
|
79
105
|
children: stepContent
|
|
80
106
|
})]
|
|
81
107
|
});
|
|
@@ -8,7 +8,8 @@ export interface StepContentProps {
|
|
|
8
8
|
completed?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
classNames?: ClassNames;
|
|
11
|
+
testId?: string;
|
|
11
12
|
}
|
|
12
|
-
export declare const StepContent: ({ children, classNames, active, completed, disabled, }: StepContentProps) => React.JSX.Element;
|
|
13
|
+
export declare const StepContent: ({ children, classNames, active, completed, disabled, testId, }: StepContentProps) => React.JSX.Element;
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=StepContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StepContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepContent.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,gBAAgB;IAC/B,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,WAAW,GAAI,gEAOzB,gBAAgB,sBAelB,CAAC"}
|