@spaced-out/ui-design-system 0.5.10 → 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/.storybook/public/component-parent-levels.json +77 -77
- package/CHANGELOG.md +22 -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/Card/Card.d.ts +7 -5
- package/lib/components/Card/Card.d.ts.map +1 -1
- package/lib/components/Card/Card.js +33 -1
- 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/CircularLoader/CircularLoader.d.ts +1 -0
- package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -1
- package/lib/components/CircularLoader/CircularLoader.js +7 -1
- 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/EmptyState/EmptyState.d.ts +1 -0
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/lib/components/EmptyState/EmptyState.js +26 -1
- package/lib/components/ErrorMessage/ErrorMessage.d.ts +1 -0
- package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
- package/lib/components/ErrorMessage/ErrorMessage.js +30 -1
- 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/FocusManager/FocusManager.d.ts +1 -0
- package/lib/components/FocusManager/FocusManager.d.ts.map +1 -1
- package/lib/components/FocusManager/FocusManager.js +6 -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/Grid/Grid.d.ts +4 -2
- package/lib/components/Grid/Grid.d.ts.map +1 -1
- package/lib/components/Grid/Grid.js +13 -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.d.ts +1 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -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/Icon.js +7 -1
- 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/Input/Input.d.ts +1 -0
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/Input/Input.js +64 -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/LinearLoader/LinearLoader.d.ts +1 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -1
- package/lib/components/LinearLoader/LinearLoader.js +7 -1
- 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 +3 -0
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
- package/lib/components/PromptChip/PromptChip.js +44 -7
- 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/Separator/Separator.d.ts +1 -0
- package/lib/components/Separator/Separator.d.ts.map +1 -1
- package/lib/components/Separator/Separator.js +7 -2
- package/lib/components/Shimmer/Shimmer.d.ts +5 -2
- package/lib/components/Shimmer/Shimmer.d.ts.map +1 -1
- package/lib/components/Shimmer/Shimmer.js +39 -8
- 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/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +6 -1
- 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/StickyBar/StickyBar.d.ts +4 -2
- package/lib/components/StickyBar/StickyBar.d.ts.map +1 -1
- package/lib/components/StickyBar/StickyBar.js +16 -1
- 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/Text/Text.d.ts +2 -0
- package/lib/components/Text/Text.d.ts.map +1 -1
- package/lib/components/Text/Text.js +189 -27
- 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/Toggle/Toggle.d.ts +1 -0
- package/lib/components/Toggle/Toggle.d.ts.map +1 -1
- package/lib/components/Toggle/Toggle.js +18 -0
- 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/Truncate/Truncate.d.ts +1 -0
- package/lib/components/Truncate/Truncate.d.ts.map +1 -1
- package/lib/components/Truncate/Truncate.js +12 -3
- 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
|
@@ -28,6 +28,7 @@ const SpiderChart = _ref => {
|
|
|
28
28
|
series,
|
|
29
29
|
hasEmptyData,
|
|
30
30
|
emptyText,
|
|
31
|
+
testId,
|
|
31
32
|
...userOptions
|
|
32
33
|
} = _ref;
|
|
33
34
|
const chartRef = React.useRef(null);
|
|
@@ -56,6 +57,7 @@ const SpiderChart = _ref => {
|
|
|
56
57
|
headerActions: headerActions,
|
|
57
58
|
hasEmptyData: hasEmptyData,
|
|
58
59
|
emptyText: emptyText,
|
|
60
|
+
testId: testId,
|
|
59
61
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_highchartsReactOfficial.default, {
|
|
60
62
|
highcharts: _highcharts.default,
|
|
61
63
|
ref: chartRef,
|
|
@@ -18,7 +18,8 @@ export interface StackedBarChartProps extends Omit<ChartOptions, 'series' | 'isL
|
|
|
18
18
|
hasEmptyData?: boolean;
|
|
19
19
|
headerActions?: React.ReactNode;
|
|
20
20
|
customExportOptions?: Array<ExportOptionType> | null;
|
|
21
|
+
testId?: string;
|
|
21
22
|
}
|
|
22
|
-
export declare const StackedBarChart: ({ series, isLoading, drilldown, emptyText, cardTitle, classNames, hasEmptyData, headerActions, customExportOptions, ...userOptions }: StackedBarChartProps) => React.ReactNode;
|
|
23
|
+
export declare const StackedBarChart: ({ series, isLoading, drilldown, emptyText, cardTitle, classNames, hasEmptyData, headerActions, customExportOptions, testId, ...userOptions }: StackedBarChartProps) => React.ReactNode;
|
|
23
24
|
export {};
|
|
24
25
|
//# sourceMappingURL=StackedBarChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackedBarChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/StackedBarChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAS/E,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAe5C,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CACV,YAAY,EACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,cAAc,GACd,eAAe,GACf,qBAAqB,CACxB;IACD,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"StackedBarChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/StackedBarChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAS/E,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAe5C,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CACV,YAAY,EACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,cAAc,GACd,eAAe,GACf,qBAAqB,CACxB;IACD,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,8IAY7B,oBAAoB,KAAG,KAAK,CAAC,SAoD/B,CAAC"}
|
|
@@ -29,6 +29,7 @@ const StackedBarChart = _ref => {
|
|
|
29
29
|
hasEmptyData,
|
|
30
30
|
headerActions,
|
|
31
31
|
customExportOptions,
|
|
32
|
+
testId,
|
|
32
33
|
...userOptions
|
|
33
34
|
} = _ref;
|
|
34
35
|
const chartRef = React.useRef(null);
|
|
@@ -67,6 +68,7 @@ const StackedBarChart = _ref => {
|
|
|
67
68
|
hasEmptyData: hasEmptyData,
|
|
68
69
|
headerActions: headerActions,
|
|
69
70
|
customExportOptions: customExportOptions,
|
|
71
|
+
testId: testId,
|
|
70
72
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_highchartsReactOfficial.default, {
|
|
71
73
|
highcharts: _highcharts.default,
|
|
72
74
|
containerProps: {
|
|
@@ -14,6 +14,7 @@ export interface ChatBubbleProps {
|
|
|
14
14
|
classNames?: ClassNames;
|
|
15
15
|
orientation?: ChatBubbleOrientation;
|
|
16
16
|
children: React.ReactNode;
|
|
17
|
+
testId?: string;
|
|
17
18
|
}
|
|
18
19
|
export declare const ChatBubble: Flow.AbstractComponent<ChatBubbleProps, HTMLDivElement>;
|
|
19
20
|
export interface ChatAnchorProps {
|
|
@@ -21,17 +22,19 @@ export interface ChatAnchorProps {
|
|
|
21
22
|
tooltip?: BaseTooltipProps;
|
|
22
23
|
classNames?: ClassNames;
|
|
23
24
|
avatarProps?: AvatarProps;
|
|
25
|
+
testId?: string;
|
|
24
26
|
}
|
|
25
27
|
export declare const ChatAnchor: {
|
|
26
|
-
({ isAI, tooltip, classNames, avatarProps, }: ChatAnchorProps): React.JSX.Element;
|
|
28
|
+
({ isAI, tooltip, classNames, avatarProps, testId, }: ChatAnchorProps): React.JSX.Element;
|
|
27
29
|
displayName: string;
|
|
28
30
|
};
|
|
29
31
|
export interface ChatContentProps {
|
|
30
32
|
classNames?: ClassNames;
|
|
31
33
|
children?: React.ReactNode;
|
|
34
|
+
testId?: string;
|
|
32
35
|
}
|
|
33
36
|
export declare const ChatContent: {
|
|
34
|
-
({ classNames, children }: ChatContentProps): React.JSX.Element;
|
|
37
|
+
({ classNames, children, testId, }: ChatContentProps): React.JSX.Element;
|
|
35
38
|
displayName: string;
|
|
36
39
|
};
|
|
37
40
|
export type ChatBodyClassNames = Readonly<{
|
|
@@ -44,33 +47,37 @@ export interface ChatBodyProps {
|
|
|
44
47
|
loadingText?: string;
|
|
45
48
|
children?: React.ReactNode;
|
|
46
49
|
classNames?: ClassNames;
|
|
50
|
+
testId?: string;
|
|
47
51
|
}
|
|
48
52
|
export declare const ChatBody: {
|
|
49
|
-
({ withBgColor, isLoading, children, loadingText, classNames, }: ChatBodyProps): React.JSX.Element;
|
|
53
|
+
({ withBgColor, isLoading, children, loadingText, classNames, testId, }: ChatBodyProps): React.JSX.Element;
|
|
50
54
|
displayName: string;
|
|
51
55
|
};
|
|
52
56
|
export interface ChatFooterProps {
|
|
53
57
|
classNames?: ClassNames;
|
|
54
58
|
children?: React.ReactNode;
|
|
59
|
+
testId?: string;
|
|
55
60
|
}
|
|
56
61
|
export declare const ChatFooter: {
|
|
57
|
-
({ children, classNames }: ChatFooterProps): React.JSX.Element;
|
|
62
|
+
({ children, classNames, testId }: ChatFooterProps): React.JSX.Element;
|
|
58
63
|
displayName: string;
|
|
59
64
|
};
|
|
60
65
|
export interface ChatFooterRightSlotProps {
|
|
61
66
|
children?: React.ReactNode;
|
|
62
67
|
classNames?: ClassNames;
|
|
68
|
+
testId?: string;
|
|
63
69
|
}
|
|
64
70
|
export declare const ChatFooterRightSlot: {
|
|
65
|
-
({ children, classNames, }: ChatFooterRightSlotProps): React.JSX.Element;
|
|
71
|
+
({ children, classNames, testId, }: ChatFooterRightSlotProps): React.JSX.Element;
|
|
66
72
|
displayName: string;
|
|
67
73
|
};
|
|
68
74
|
export interface ChatFooterLeftSlotProps {
|
|
69
75
|
children?: React.ReactNode;
|
|
70
76
|
classNames?: ClassNames;
|
|
77
|
+
testId?: string;
|
|
71
78
|
}
|
|
72
79
|
export declare const ChatFooterLeftSlot: {
|
|
73
|
-
({ children, classNames, }: ChatFooterLeftSlotProps): React.JSX.Element;
|
|
80
|
+
({ children, classNames, testId, }: ChatFooterLeftSlotProps): React.JSX.Element;
|
|
74
81
|
displayName: string;
|
|
75
82
|
};
|
|
76
83
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatBubble.d.ts","sourceRoot":"","sources":["../../../src/components/ChatBubble/ChatBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatBubble.d.ts","sourceRoot":"","sources":["../../../src/components/ChatBubble/ChatBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AA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EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ;6EAOlB,aAAa;;CAyBf,CAAC;AAIF,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU;uCAAoC,eAAe;;CAezE,CAAC;AAIF,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,mBAAmB;wCAI7B,wBAAwB;;CAO1B,CAAC;AAIF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB;wCAI5B,uBAAuB;;CAOzB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ChatFooterRightSlot = exports.ChatFooterLeftSlot = exports.ChatFooter = exports.ChatContent = exports.ChatBubble = exports.ChatBody = exports.ChatAnchor = exports.CHAT_BUBBLE_ORIENTATION = 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 _Avatar = require("../Avatar");
|
|
10
11
|
var _Icon = require("../Icon");
|
|
11
12
|
var _Tooltip = require("../Tooltip");
|
|
@@ -39,7 +40,8 @@ const ChatBubble = exports.ChatBubble = /*#__PURE__*/React.forwardRef((_ref, ref
|
|
|
39
40
|
let {
|
|
40
41
|
classNames,
|
|
41
42
|
orientation = 'left',
|
|
42
|
-
children
|
|
43
|
+
children,
|
|
44
|
+
testId
|
|
43
45
|
} = _ref;
|
|
44
46
|
const isLeftAligned = orientation === 'left';
|
|
45
47
|
const childrenArray = React.Children.toArray(children);
|
|
@@ -47,7 +49,10 @@ const ChatBubble = exports.ChatBubble = /*#__PURE__*/React.forwardRef((_ref, ref
|
|
|
47
49
|
const chatComponent = getNamedComponent(childrenArray, 'ChatContent');
|
|
48
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
51
|
ref: ref,
|
|
50
|
-
"data-testid":
|
|
52
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
53
|
+
base: testId,
|
|
54
|
+
slot: 'wrapper'
|
|
55
|
+
}),
|
|
51
56
|
className: (0, _classify.default)(_ChatBubbleModule.default.chatBubbleWrapper, {
|
|
52
57
|
[_ChatBubbleModule.default.chatBubbleWrapperRight]: !isLeftAligned
|
|
53
58
|
}, classNames?.wrapper),
|
|
@@ -59,21 +64,37 @@ const ChatAnchor = _ref2 => {
|
|
|
59
64
|
isAI = true,
|
|
60
65
|
tooltip,
|
|
61
66
|
classNames,
|
|
62
|
-
avatarProps
|
|
67
|
+
avatarProps,
|
|
68
|
+
testId
|
|
63
69
|
} = _ref2;
|
|
64
70
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
-
"data-testid":
|
|
71
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
72
|
+
base: testId,
|
|
73
|
+
slot: 'wrapper'
|
|
74
|
+
}),
|
|
66
75
|
className: (0, _classify.default)(_ChatBubbleModule.default.chatAnchorWrapper, classNames?.wrapper),
|
|
67
76
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
68
77
|
...tooltip,
|
|
69
78
|
hidden: !tooltip,
|
|
79
|
+
testId: (0, _qa.generateTestId)({
|
|
80
|
+
base: testId,
|
|
81
|
+
slot: 'tooltip'
|
|
82
|
+
}),
|
|
70
83
|
children: isAI ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
71
84
|
name: "sparkle",
|
|
72
85
|
color: "information",
|
|
73
86
|
type: _Icon.ICON_TYPE.solid,
|
|
74
|
-
size: _Icon.ICON_SIZE.large
|
|
87
|
+
size: _Icon.ICON_SIZE.large,
|
|
88
|
+
testId: (0, _qa.generateTestId)({
|
|
89
|
+
base: testId,
|
|
90
|
+
slot: 'ai-icon'
|
|
91
|
+
})
|
|
75
92
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
76
|
-
...avatarProps
|
|
93
|
+
...avatarProps,
|
|
94
|
+
testId: (0, _qa.generateTestId)({
|
|
95
|
+
base: testId,
|
|
96
|
+
slot: 'avatar'
|
|
97
|
+
})
|
|
77
98
|
})
|
|
78
99
|
})
|
|
79
100
|
});
|
|
@@ -83,10 +104,14 @@ ChatAnchor.displayName = 'ChatAnchor';
|
|
|
83
104
|
const ChatContent = _ref3 => {
|
|
84
105
|
let {
|
|
85
106
|
classNames,
|
|
86
|
-
children
|
|
107
|
+
children,
|
|
108
|
+
testId
|
|
87
109
|
} = _ref3;
|
|
88
110
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
89
|
-
"data-testid":
|
|
111
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
112
|
+
base: testId,
|
|
113
|
+
slot: 'wrapper'
|
|
114
|
+
}),
|
|
90
115
|
className: (0, _classify.default)(_ChatBubbleModule.default.chatContentWrapper, classNames?.wrapper),
|
|
91
116
|
children: children
|
|
92
117
|
});
|
|
@@ -99,10 +124,14 @@ const ChatBody = _ref4 => {
|
|
|
99
124
|
isLoading,
|
|
100
125
|
children,
|
|
101
126
|
loadingText = 'Generating',
|
|
102
|
-
classNames
|
|
127
|
+
classNames,
|
|
128
|
+
testId
|
|
103
129
|
} = _ref4;
|
|
104
130
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
105
|
-
"data-testid":
|
|
131
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
132
|
+
base: testId,
|
|
133
|
+
slot: 'wrapper'
|
|
134
|
+
}),
|
|
106
135
|
className: (0, _classify.default)(_ChatBubbleModule.default.chatBodyWrapper, {
|
|
107
136
|
[_ChatBubbleModule.default.chatBodyWrapperLoading]: isLoading || !withBgColor,
|
|
108
137
|
[_ChatBubbleModule.default.chatBodyWrapperBgColor]: withBgColor
|
|
@@ -130,13 +159,17 @@ ChatBody.displayName = 'ChatBody';
|
|
|
130
159
|
const ChatFooter = _ref5 => {
|
|
131
160
|
let {
|
|
132
161
|
children,
|
|
133
|
-
classNames
|
|
162
|
+
classNames,
|
|
163
|
+
testId
|
|
134
164
|
} = _ref5;
|
|
135
165
|
const childrenArray = React.Children.toArray(children);
|
|
136
166
|
const leftSlot = getNamedComponent(childrenArray, 'ChatFooterLeftSlot');
|
|
137
167
|
const rightSlot = getNamedComponent(childrenArray, 'ChatFooterRightSlot');
|
|
138
168
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
139
|
-
"data-testid":
|
|
169
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
170
|
+
base: testId,
|
|
171
|
+
slot: 'wrapper'
|
|
172
|
+
}),
|
|
140
173
|
className: (0, _classify.default)(_ChatBubbleModule.default.chatFooterWrapper, classNames?.wrapper),
|
|
141
174
|
children: [leftSlot, rightSlot]
|
|
142
175
|
});
|
|
@@ -146,10 +179,15 @@ ChatFooter.displayName = 'ChatFooter';
|
|
|
146
179
|
const ChatFooterRightSlot = _ref6 => {
|
|
147
180
|
let {
|
|
148
181
|
children,
|
|
149
|
-
classNames
|
|
182
|
+
classNames,
|
|
183
|
+
testId
|
|
150
184
|
} = _ref6;
|
|
151
185
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
152
186
|
className: classNames?.wrapper,
|
|
187
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
188
|
+
base: testId,
|
|
189
|
+
slot: 'right-slot'
|
|
190
|
+
}),
|
|
153
191
|
children: children
|
|
154
192
|
});
|
|
155
193
|
};
|
|
@@ -158,10 +196,15 @@ ChatFooterRightSlot.displayName = 'ChatFooterRightSlot';
|
|
|
158
196
|
const ChatFooterLeftSlot = _ref7 => {
|
|
159
197
|
let {
|
|
160
198
|
children,
|
|
161
|
-
classNames
|
|
199
|
+
classNames,
|
|
200
|
+
testId
|
|
162
201
|
} = _ref7;
|
|
163
202
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
164
203
|
className: classNames?.wrapper,
|
|
204
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
205
|
+
base: testId,
|
|
206
|
+
slot: 'left-slot'
|
|
207
|
+
}),
|
|
165
208
|
children: children
|
|
166
209
|
});
|
|
167
210
|
};
|
|
@@ -23,6 +23,7 @@ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
23
23
|
classNames?: ClassNames;
|
|
24
24
|
tabIndex?: number;
|
|
25
25
|
ariaLabel?: string;
|
|
26
|
+
testId?: string;
|
|
26
27
|
}
|
|
27
28
|
export declare const Checkbox: Flow.AbstractComponent<CheckboxProps, HTMLInputElement>;
|
|
28
29
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.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,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox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AM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,CAwI1E,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Checkbox = 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 _CheckboxModule = _interopRequireDefault(require("./Checkbox.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -30,7 +31,8 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/React.forwardRef((_ref, forward
|
|
|
30
31
|
align,
|
|
31
32
|
classNames,
|
|
32
33
|
tabIndex = 0,
|
|
33
|
-
ariaLabel = ''
|
|
34
|
+
ariaLabel = '',
|
|
35
|
+
testId
|
|
34
36
|
} = _ref;
|
|
35
37
|
const checkboxInput = /*#__PURE__*/React.createRef();
|
|
36
38
|
React.useImperativeHandle(forwardRef, () => checkboxInput.current);
|
|
@@ -56,7 +58,10 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/React.forwardRef((_ref, forward
|
|
|
56
58
|
}
|
|
57
59
|
}, [indeterminate]);
|
|
58
60
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
59
|
-
"data-testid":
|
|
61
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'root'
|
|
64
|
+
}),
|
|
60
65
|
className: (0, _classify.default)(_CheckboxModule.default.checkboxContainer, {
|
|
61
66
|
[_CheckboxModule.default.disabled]: disabled,
|
|
62
67
|
[_CheckboxModule.default.horizontalCheckbox]: align === 'horizontal-fixed',
|
|
@@ -67,6 +72,10 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/React.forwardRef((_ref, forward
|
|
|
67
72
|
className: (0, _classify.default)(_CheckboxModule.default.checkboxSquare, {
|
|
68
73
|
[_CheckboxModule.default.disabled]: disabled
|
|
69
74
|
}, classNames?.checkboxSquare),
|
|
75
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
76
|
+
base: testId,
|
|
77
|
+
slot: 'square'
|
|
78
|
+
}),
|
|
70
79
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
71
80
|
tabIndex: disabled ? -1 : tabIndex,
|
|
72
81
|
type: "checkbox",
|
|
@@ -76,29 +85,49 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/React.forwardRef((_ref, forward
|
|
|
76
85
|
className: (0, _classify.default)(_CheckboxModule.default.inputCheckbox),
|
|
77
86
|
disabled: disabled,
|
|
78
87
|
name: name,
|
|
79
|
-
"aria-label": ariaLabel || children
|
|
88
|
+
"aria-label": ariaLabel || children,
|
|
89
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
90
|
+
base: testId,
|
|
91
|
+
slot: 'input'
|
|
92
|
+
})
|
|
80
93
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
81
94
|
className: (0, _classify.default)(_CheckboxModule.default.checkboxSquareInner, {
|
|
82
95
|
[_CheckboxModule.default.enabled]: !disabled && !error,
|
|
83
96
|
[_CheckboxModule.default.disabled]: disabled,
|
|
84
97
|
[_CheckboxModule.default.error]: error && !disabled
|
|
85
98
|
}),
|
|
99
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
100
|
+
base: testId,
|
|
101
|
+
slot: 'inner'
|
|
102
|
+
}),
|
|
86
103
|
children: [indeterminate && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
87
104
|
color: disabled ? 'disabled' : 'inversePrimary',
|
|
88
105
|
name: "hyphen",
|
|
89
106
|
size: "small",
|
|
90
|
-
type: "regular"
|
|
107
|
+
type: "regular",
|
|
108
|
+
testId: (0, _qa.generateTestId)({
|
|
109
|
+
base: testId,
|
|
110
|
+
slot: 'indeterminate-icon'
|
|
111
|
+
})
|
|
91
112
|
}), checked && !indeterminate && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
92
113
|
color: disabled ? 'disabled' : 'inversePrimary',
|
|
93
114
|
name: "check",
|
|
94
115
|
size: "small",
|
|
95
|
-
type: "regular"
|
|
116
|
+
type: "regular",
|
|
117
|
+
testId: (0, _qa.generateTestId)({
|
|
118
|
+
base: testId,
|
|
119
|
+
slot: 'check-icon'
|
|
120
|
+
})
|
|
96
121
|
})]
|
|
97
122
|
})]
|
|
98
123
|
}), React.Children.count(children) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
124
|
className: (0, _classify.default)(_CheckboxModule.default.checkboxLabel, {
|
|
100
125
|
[_CheckboxModule.default.labelDisabled]: disabled
|
|
101
126
|
}, classNames?.label),
|
|
127
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
128
|
+
base: testId,
|
|
129
|
+
slot: 'label'
|
|
130
|
+
}),
|
|
102
131
|
children: children
|
|
103
132
|
})]
|
|
104
133
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxGroup.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,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxGroup.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,kBAAkB,CAAC;AA2BjD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAChD,kBAAkB,EAClB,cAAc,CA4Ff,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.CheckboxGroup = 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 _Text = require("../Text/Text");
|
|
10
11
|
var _CheckboxGroupModule = _interopRequireDefault(require("./CheckboxGroup.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -25,7 +26,8 @@ const CheckboxGroup = exports.CheckboxGroup = /*#__PURE__*/React.forwardRef((_re
|
|
|
25
26
|
classNames,
|
|
26
27
|
error = false,
|
|
27
28
|
errorText = '',
|
|
28
|
-
children
|
|
29
|
+
children,
|
|
30
|
+
testId
|
|
29
31
|
} = _ref;
|
|
30
32
|
const onChangeHandler = _ref2 => {
|
|
31
33
|
let {
|
|
@@ -63,13 +65,22 @@ const CheckboxGroup = exports.CheckboxGroup = /*#__PURE__*/React.forwardRef((_re
|
|
|
63
65
|
onChange: childOnChange,
|
|
64
66
|
align,
|
|
65
67
|
error: errorChild || error,
|
|
66
|
-
disabled: disabledChild || disabled
|
|
68
|
+
disabled: disabledChild || disabled,
|
|
69
|
+
testId: (0, _qa.generateTestId)({
|
|
70
|
+
base: testId,
|
|
71
|
+
slot: 'checkbox',
|
|
72
|
+
index: value
|
|
73
|
+
})
|
|
67
74
|
});
|
|
68
75
|
}
|
|
69
76
|
return child;
|
|
70
77
|
});
|
|
71
78
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
72
79
|
className: (0, _classify.default)(_CheckboxGroupModule.default.checkboxGroupContainer, classNames?.wrapper),
|
|
80
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
81
|
+
base: testId,
|
|
82
|
+
slot: 'root'
|
|
83
|
+
}),
|
|
73
84
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
74
85
|
className: (0, _classify.default)({
|
|
75
86
|
[_CheckboxGroupModule.default.vertical]: align === 'vertical',
|
|
@@ -77,10 +88,18 @@ const CheckboxGroup = exports.CheckboxGroup = /*#__PURE__*/React.forwardRef((_re
|
|
|
77
88
|
[_CheckboxGroupModule.default.horizontalFluid]: align === 'horizontal-fluid'
|
|
78
89
|
}, classNames?.checkboxGroup),
|
|
79
90
|
ref: forwardRef,
|
|
91
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
92
|
+
base: testId,
|
|
93
|
+
slot: 'group'
|
|
94
|
+
}),
|
|
80
95
|
children: childrenWithProps
|
|
81
96
|
}), error && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodySmall, {
|
|
82
97
|
className: (0, _classify.default)(classNames?.errorText),
|
|
83
98
|
color: "danger",
|
|
99
|
+
testId: (0, _qa.generateTestId)({
|
|
100
|
+
base: testId,
|
|
101
|
+
slot: 'error'
|
|
102
|
+
}),
|
|
84
103
|
children: errorText
|
|
85
104
|
})]
|
|
86
105
|
});
|
|
@@ -27,6 +27,7 @@ export interface BaseChipProps {
|
|
|
27
27
|
onClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined;
|
|
28
28
|
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
29
29
|
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
30
|
+
testId?: string;
|
|
30
31
|
}
|
|
31
32
|
export interface LargeChipProps extends Omit<BaseChipProps, 'iconName' | 'iconType' | 'dismissable' | 'onDismiss' | 'size'> {
|
|
32
33
|
iconName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.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;AAQlD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,C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cAAc,EAAE,MAAM,CAAC;IACnE,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,eAAe,GAAG,cAAc,CAAC;AAE1E,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,cAAc,CAgJhE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Chip = exports.CHIP_SEMANTIC = 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 _Icon = require("../Icon");
|
|
10
11
|
var _StatusIndicator = require("../StatusIndicator");
|
|
11
12
|
var _Truncate = require("../Truncate");
|
|
@@ -32,6 +33,7 @@ const Chip = exports.Chip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
32
33
|
disabled,
|
|
33
34
|
line = 1,
|
|
34
35
|
wordBreak,
|
|
36
|
+
testId,
|
|
35
37
|
// There is no reason for hover state to be active when there is no click handler attached
|
|
36
38
|
disableHoverState = !onClick,
|
|
37
39
|
...restProps
|
|
@@ -68,7 +70,10 @@ const Chip = exports.Chip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
68
70
|
}
|
|
69
71
|
};
|
|
70
72
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
71
|
-
"data-testid":
|
|
73
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
74
|
+
base: testId,
|
|
75
|
+
slot: 'root'
|
|
76
|
+
}),
|
|
72
77
|
...restProps,
|
|
73
78
|
ref: ref,
|
|
74
79
|
className: (0, _classify.classify)(_ChipModule.default.chipWrapper, {
|
|
@@ -95,17 +100,29 @@ const Chip = exports.Chip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
95
100
|
classNames: {
|
|
96
101
|
wrapper: (0, _classify.classify)(_ChipModule.default.statusIndicatorBlock, classNames?.statusIndicator)
|
|
97
102
|
},
|
|
98
|
-
disabled: disabled
|
|
103
|
+
disabled: disabled,
|
|
104
|
+
testId: (0, _qa.generateTestId)({
|
|
105
|
+
base: testId,
|
|
106
|
+
slot: 'status'
|
|
107
|
+
})
|
|
99
108
|
}), iconName && size !== 'small' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
100
109
|
className: (0, _classify.classify)(_ChipModule.default.chipIcon, {
|
|
101
110
|
[_ChipModule.default.alignTop]: line > 1
|
|
102
111
|
}, classNames?.icon),
|
|
103
112
|
name: iconName,
|
|
104
113
|
type: iconType,
|
|
105
|
-
size: "small"
|
|
114
|
+
size: "small",
|
|
115
|
+
testId: (0, _qa.generateTestId)({
|
|
116
|
+
base: testId,
|
|
117
|
+
slot: 'icon'
|
|
118
|
+
})
|
|
106
119
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
|
|
107
120
|
line: line,
|
|
108
121
|
wordBreak: wordBreak,
|
|
122
|
+
testId: (0, _qa.generateTestId)({
|
|
123
|
+
base: testId,
|
|
124
|
+
slot: 'text'
|
|
125
|
+
}),
|
|
109
126
|
children: children
|
|
110
127
|
}), dismissable && size !== 'small' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.CloseIcon, {
|
|
111
128
|
classNames: {
|
|
@@ -118,6 +135,10 @@ const Chip = exports.Chip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
118
135
|
size: "small",
|
|
119
136
|
ariaLabel: "Dismiss",
|
|
120
137
|
disabled: disabled,
|
|
138
|
+
testId: (0, _qa.generateTestId)({
|
|
139
|
+
base: testId,
|
|
140
|
+
slot: 'dismiss'
|
|
141
|
+
}),
|
|
121
142
|
onClick: event => {
|
|
122
143
|
event.stopPropagation();
|
|
123
144
|
if (!disabled && onDismiss) {
|
|
@@ -5,6 +5,7 @@ export interface CircularLoaderProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
ariaLabel?: string;
|
|
7
7
|
colorToken?: keyof typeof COLORS;
|
|
8
|
+
testId?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const CircularLoader: Flow.AbstractComponent<CircularLoaderProps, HTMLDivElement>;
|
|
10
11
|
//# sourceMappingURL=CircularLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularLoader.d.ts","sourceRoot":"","sources":["../../../src/components/CircularLoader/CircularLoader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"CircularLoader.d.ts","sourceRoot":"","sources":["../../../src/components/CircularLoader/CircularLoader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AAOtD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,mBAAmB,EACnB,cAAc,CAuCf,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.CircularLoader = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var COLORS = _interopRequireWildcard(require("../../styles/variables/_color"));
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _CircularLoaderModule = _interopRequireDefault(require("./CircularLoader.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -16,9 +17,14 @@ const CircularLoader = exports.CircularLoader = /*#__PURE__*/React.forwardRef((_
|
|
|
16
17
|
size = 'medium',
|
|
17
18
|
className,
|
|
18
19
|
colorToken = 'colorTextClickable',
|
|
19
|
-
ariaLabel = 'Loading'
|
|
20
|
+
ariaLabel = 'Loading',
|
|
21
|
+
testId
|
|
20
22
|
} = _ref;
|
|
21
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
25
|
+
base: testId,
|
|
26
|
+
slot: 'loader'
|
|
27
|
+
}),
|
|
22
28
|
className: (0, _classify.default)(_CircularLoaderModule.default.container, {
|
|
23
29
|
[_CircularLoaderModule.default.mediumContainer]: size === 'medium',
|
|
24
30
|
[_CircularLoaderModule.default.smallContainer]: size === 'small'
|
|
@@ -23,18 +23,21 @@ export interface CollapsibleCardProps {
|
|
|
23
23
|
headerIconName?: string;
|
|
24
24
|
headerIconType?: IconType;
|
|
25
25
|
semantic?: CollapsibleCardSemanticType;
|
|
26
|
+
testId?: string;
|
|
26
27
|
onChange?: ((e: React.SyntheticEvent<HTMLElement>, isOpen: boolean, id?: string) => unknown) | null | undefined;
|
|
27
28
|
}
|
|
28
29
|
export interface CollapsibleCardActionProps {
|
|
29
30
|
children: React.ReactNode;
|
|
30
31
|
className?: string;
|
|
32
|
+
testId?: string;
|
|
31
33
|
}
|
|
32
|
-
export declare const CollapsibleCardAction: ({ children, className, }: CollapsibleCardActionProps) => React.JSX.Element;
|
|
34
|
+
export declare const CollapsibleCardAction: ({ children, className, testId, }: CollapsibleCardActionProps) => React.JSX.Element;
|
|
33
35
|
export interface CollapsibleCardContentProps {
|
|
34
36
|
children: React.ReactNode;
|
|
35
37
|
className?: string;
|
|
38
|
+
testId?: string;
|
|
36
39
|
}
|
|
37
|
-
export declare const CollapsibleCardContent: ({ children, className, }:
|
|
40
|
+
export declare const CollapsibleCardContent: ({ children, className, testId, }: CollapsibleCardContentProps) => React.JSX.Element;
|
|
38
41
|
export declare const CollapsibleCard: Flow.AbstractComponent<CollapsibleCardProps, HTMLDivElement>;
|
|
39
42
|
export {};
|
|
40
43
|
//# sourceMappingURL=CollapsibleCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleCard.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleCard/CollapsibleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"CollapsibleCard.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleCard/CollapsibleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAOlD,eAAO,MAAM,yBAAyB;;;;;;EAMpC,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GACrC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,E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