@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
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
{
|
|
2
2
|
"leaves": [
|
|
3
|
-
"Card
|
|
4
|
-
"CircularLoader
|
|
5
|
-
"ConditionalWrapper
|
|
6
|
-
"EmptyState
|
|
7
|
-
"ErrorMessage
|
|
8
|
-
"FocusManager
|
|
9
|
-
"Grid
|
|
10
|
-
"LinearLoader
|
|
11
|
-
"Separator
|
|
12
|
-
"Shimmer
|
|
13
|
-
"StatusIndicator
|
|
14
|
-
"StickyBar
|
|
15
|
-
"Text
|
|
16
|
-
"Toggle
|
|
17
|
-
"Truncate
|
|
3
|
+
"Card",
|
|
4
|
+
"CircularLoader",
|
|
5
|
+
"ConditionalWrapper",
|
|
6
|
+
"EmptyState",
|
|
7
|
+
"ErrorMessage",
|
|
8
|
+
"FocusManager",
|
|
9
|
+
"Grid",
|
|
10
|
+
"LinearLoader",
|
|
11
|
+
"Separator",
|
|
12
|
+
"Shimmer",
|
|
13
|
+
"StatusIndicator",
|
|
14
|
+
"StickyBar",
|
|
15
|
+
"Text",
|
|
16
|
+
"Toggle",
|
|
17
|
+
"Truncate"
|
|
18
18
|
],
|
|
19
19
|
"1_level_parents": [
|
|
20
|
-
"FocusManagerWithArrowKeyNavigation
|
|
21
|
-
"Icon
|
|
22
|
-
"ProgressDonut
|
|
23
|
-
"RadioButton
|
|
24
|
-
"ScoreBar
|
|
25
|
-
"Textarea
|
|
26
|
-
"Tooltip
|
|
20
|
+
"FocusManagerWithArrowKeyNavigation",
|
|
21
|
+
"Icon",
|
|
22
|
+
"ProgressDonut",
|
|
23
|
+
"RadioButton",
|
|
24
|
+
"ScoreBar",
|
|
25
|
+
"Textarea",
|
|
26
|
+
"Tooltip"
|
|
27
27
|
],
|
|
28
28
|
"2_level_parents": [
|
|
29
|
-
"Avatar
|
|
30
|
-
"Badge
|
|
31
|
-
"BadgedIcon
|
|
32
|
-
"Button
|
|
33
|
-
"Checkbox
|
|
34
|
-
"Chip
|
|
35
|
-
"FormTitleWrapper
|
|
36
|
-
"Input
|
|
37
|
-
"KPIBox
|
|
38
|
-
"Link
|
|
39
|
-
"Notification
|
|
40
|
-
"PromptChip
|
|
41
|
-
"Stepper
|
|
42
|
-
"TextTile
|
|
43
|
-
"Timeline
|
|
44
|
-
"Toast
|
|
45
|
-
"TruncatedTextWithTooltip
|
|
29
|
+
"Avatar",
|
|
30
|
+
"Badge",
|
|
31
|
+
"BadgedIcon",
|
|
32
|
+
"Button",
|
|
33
|
+
"Checkbox",
|
|
34
|
+
"Chip",
|
|
35
|
+
"FormTitleWrapper",
|
|
36
|
+
"Input",
|
|
37
|
+
"KPIBox",
|
|
38
|
+
"Link",
|
|
39
|
+
"Notification",
|
|
40
|
+
"PromptChip",
|
|
41
|
+
"Stepper",
|
|
42
|
+
"TextTile",
|
|
43
|
+
"Timeline",
|
|
44
|
+
"Toast",
|
|
45
|
+
"TruncatedTextWithTooltip"
|
|
46
46
|
],
|
|
47
47
|
"3_level_parents": [
|
|
48
|
-
"Accordion
|
|
49
|
-
"AvatarGroup
|
|
50
|
-
"Breadcrumbs
|
|
51
|
-
"ChatBubble
|
|
52
|
-
"CollapsibleCard
|
|
53
|
-
"FileUpload
|
|
54
|
-
"InContextAlert
|
|
55
|
-
"Modal
|
|
56
|
-
"PageTitle
|
|
57
|
-
"PromptInput
|
|
58
|
-
"RadioTile
|
|
59
|
-
"RangeSlider
|
|
60
|
-
"Rating
|
|
61
|
-
"SearchInput
|
|
62
|
-
"SideMenuLink
|
|
63
|
-
"SubMenu
|
|
64
|
-
"WeekdayPicker
|
|
48
|
+
"Accordion",
|
|
49
|
+
"AvatarGroup",
|
|
50
|
+
"Breadcrumbs",
|
|
51
|
+
"ChatBubble",
|
|
52
|
+
"CollapsibleCard",
|
|
53
|
+
"FileUpload",
|
|
54
|
+
"InContextAlert",
|
|
55
|
+
"Modal",
|
|
56
|
+
"PageTitle",
|
|
57
|
+
"PromptInput",
|
|
58
|
+
"RadioTile",
|
|
59
|
+
"RangeSlider",
|
|
60
|
+
"Rating",
|
|
61
|
+
"SearchInput",
|
|
62
|
+
"SideMenuLink",
|
|
63
|
+
"SubMenu",
|
|
64
|
+
"WeekdayPicker"
|
|
65
65
|
],
|
|
66
66
|
"4_level_parents": [
|
|
67
|
-
"Banner
|
|
68
|
-
"Dialog
|
|
69
|
-
"InContextAlertWithMultipleActions
|
|
70
|
-
"Menu
|
|
71
|
-
"Panel
|
|
67
|
+
"Banner",
|
|
68
|
+
"Dialog",
|
|
69
|
+
"InContextAlertWithMultipleActions",
|
|
70
|
+
"Menu",
|
|
71
|
+
"Panel"
|
|
72
72
|
],
|
|
73
73
|
"5_level_parents": [
|
|
74
|
-
"ButtonDropdown
|
|
75
|
-
"Disclaimer
|
|
76
|
-
"Dropdown
|
|
77
|
-
"Typeahead
|
|
74
|
+
"ButtonDropdown",
|
|
75
|
+
"Disclaimer",
|
|
76
|
+
"Dropdown",
|
|
77
|
+
"Typeahead"
|
|
78
78
|
],
|
|
79
79
|
"6_level_parents": [
|
|
80
|
-
"ButtonTabs
|
|
81
|
-
"Charts
|
|
82
|
-
"Combobox
|
|
83
|
-
"DateRangePicker
|
|
84
|
-
"FilterButtonOverlay
|
|
85
|
-
"InlineDropdown
|
|
86
|
-
"OptionButton
|
|
87
|
-
"Pagination
|
|
88
|
-
"Table
|
|
89
|
-
"Tabs
|
|
90
|
-
"TokenListInput
|
|
80
|
+
"ButtonTabs",
|
|
81
|
+
"Charts",
|
|
82
|
+
"Combobox",
|
|
83
|
+
"DateRangePicker",
|
|
84
|
+
"FilterButtonOverlay",
|
|
85
|
+
"InlineDropdown",
|
|
86
|
+
"OptionButton",
|
|
87
|
+
"Pagination",
|
|
88
|
+
"Table",
|
|
89
|
+
"Tabs",
|
|
90
|
+
"TokenListInput"
|
|
91
91
|
],
|
|
92
92
|
"7_level_parents": [
|
|
93
|
-
"InfinitePagination
|
|
93
|
+
"InfinitePagination"
|
|
94
94
|
]
|
|
95
95
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.5.12-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.5.11...v0.5.12-beta.0) (2025-09-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* added testid support for remaining components ([5f041c6](https://github.com/spaced-out/ui-design-system/commit/5f041c6314c1fba80f86f5e569eb7be212ee352e))
|
|
11
|
+
* added testid support in level 2 parents ([c02570f](https://github.com/spaced-out/ui-design-system/commit/c02570fa3ec46698028d4fbf443b35539bc4ab63))
|
|
12
|
+
* added testid support in level 3 parents ([66c263d](https://github.com/spaced-out/ui-design-system/commit/66c263db029d31c3d4c657a8464c716df848202c))
|
|
13
|
+
* added testid support in level 3 parents ([6bc25ba](https://github.com/spaced-out/ui-design-system/commit/6bc25ba7ab9221794f5888b4c0b87e09222e5c34))
|
|
14
|
+
* added testid support in level 5 parents ([08d2c45](https://github.com/spaced-out/ui-design-system/commit/08d2c450f847b6c633a1779b30cd873b458a020e))
|
|
15
|
+
* adds testid in level 1 parents and stories ([376c635](https://github.com/spaced-out/ui-design-system/commit/376c6351f87d58ef1a86d953bb641613dc115002))
|
|
16
|
+
* fixes an issue with unstyled button ([3548097](https://github.com/spaced-out/ui-design-system/commit/35480978ca7aa3efa35c1c63250cc2bbd0b44d35))
|
|
17
|
+
|
|
18
|
+
### [0.5.11](https://github.com/spaced-out/ui-design-system/compare/v0.5.10...v0.5.11) (2025-09-23)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* adds testid support in input icon and text ([3ce908f](https://github.com/spaced-out/ui-design-system/commit/3ce908f6171b85cba0757433e1924df5d9ee09f2))
|
|
24
|
+
* adds testid support other leaf nodes ([ccdd323](https://github.com/spaced-out/ui-design-system/commit/ccdd3230a73b8813033024473a83271024b2b6d9))
|
|
25
|
+
* extra classNames in prompt chip ([#408](https://github.com/spaced-out/ui-design-system/issues/408)) ([f000cbf](https://github.com/spaced-out/ui-design-system/commit/f000cbf6b8841680460a7c5d82db86066514b200))
|
|
26
|
+
|
|
5
27
|
### [0.5.10](https://github.com/spaced-out/ui-design-system/compare/v0.5.9...v0.5.10) (2025-09-23)
|
|
6
28
|
|
|
7
29
|
|
|
@@ -17,6 +17,7 @@ export interface AccordionPropsType {
|
|
|
17
17
|
onChange?: ((id: string, isOpen: boolean) => unknown) | null | undefined;
|
|
18
18
|
checked?: boolean;
|
|
19
19
|
onToggle?: (checked: boolean) => unknown;
|
|
20
|
+
testId?: string;
|
|
20
21
|
}
|
|
21
22
|
export declare const Accordion: Flow.AbstractComponent<AccordionPropsType, HTMLDivElement>;
|
|
22
23
|
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,kBAAkB,EAClB,cAAc,CA2Ff,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Accordion = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _Button = require("../Button");
|
|
10
11
|
var _Toggle = require("../Toggle");
|
|
11
12
|
var _AccordionModule = _interopRequireDefault(require("./Accordion.module.css"));
|
|
@@ -23,7 +24,8 @@ const Accordion = exports.Accordion = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
23
24
|
isOpen = false,
|
|
24
25
|
showToggle = false,
|
|
25
26
|
checked = false,
|
|
26
|
-
children
|
|
27
|
+
children,
|
|
28
|
+
testId
|
|
27
29
|
} = _ref;
|
|
28
30
|
const [accordionIsOpen, setAccordionIsOpen] = React.useState(isOpen);
|
|
29
31
|
const handleToggle = () => {
|
|
@@ -40,22 +42,37 @@ const Accordion = exports.Accordion = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
40
42
|
}, [isOpen]);
|
|
41
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
44
|
ref: ref,
|
|
43
|
-
"data-testid":
|
|
45
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
46
|
+
base: testId,
|
|
47
|
+
slot: 'wrapper'
|
|
48
|
+
}),
|
|
44
49
|
className: (0, _classify.default)(_AccordionModule.default.wrapper, classNames?.wrapper),
|
|
45
50
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
46
51
|
className: (0, _classify.default)(_AccordionModule.default.headerWrapper, classNames?.headerWrapper),
|
|
47
52
|
onClick: handleAccordionClick,
|
|
53
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
54
|
+
base: testId,
|
|
55
|
+
slot: 'header-wrapper'
|
|
56
|
+
}),
|
|
48
57
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
58
|
className: (0, _classify.default)(_AccordionModule.default.header, classNames?.header),
|
|
50
59
|
children: [showToggle && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
60
|
onClick: e => {
|
|
52
61
|
e.stopPropagation(); // prevent toggle click from triggering accordion toggle
|
|
53
62
|
},
|
|
63
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
64
|
+
base: testId,
|
|
65
|
+
slot: 'toggle-container'
|
|
66
|
+
}),
|
|
54
67
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Toggle.Toggle, {
|
|
55
68
|
checked: checked,
|
|
56
69
|
onChange: handleToggle,
|
|
57
70
|
ariaLabel: 'toggle',
|
|
58
|
-
disabled: disabled
|
|
71
|
+
disabled: disabled,
|
|
72
|
+
testId: (0, _qa.generateTestId)({
|
|
73
|
+
base: testId,
|
|
74
|
+
slot: 'toggle'
|
|
75
|
+
})
|
|
59
76
|
})
|
|
60
77
|
}), header]
|
|
61
78
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
@@ -66,11 +83,19 @@ const Accordion = exports.Accordion = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
66
83
|
classNames: {
|
|
67
84
|
wrapper: _AccordionModule.default.icon
|
|
68
85
|
},
|
|
69
|
-
ariaLabel: 'Collapse button'
|
|
86
|
+
ariaLabel: 'Collapse button',
|
|
87
|
+
testId: (0, _qa.generateTestId)({
|
|
88
|
+
base: testId,
|
|
89
|
+
slot: 'collapse-button'
|
|
90
|
+
})
|
|
70
91
|
// we are not defining onClick here as we are using onClick of the parent here.
|
|
71
92
|
})]
|
|
72
93
|
}), accordionIsOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
94
|
className: (0, _classify.default)(_AccordionModule.default.content, classNames?.content),
|
|
95
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
96
|
+
base: testId,
|
|
97
|
+
slot: 'content'
|
|
98
|
+
}),
|
|
74
99
|
children: children
|
|
75
100
|
})]
|
|
76
101
|
});
|
|
@@ -9,9 +9,10 @@ export interface AccordionGroupPropsType {
|
|
|
9
9
|
enabledToggleIds?: Array<string>;
|
|
10
10
|
initialOpenId?: string;
|
|
11
11
|
classNames?: AccordionGroupClassNames;
|
|
12
|
+
testId?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const AccordionGroup: {
|
|
14
|
-
({ children, onAccordionClick, onToggle, initialOpenId, classNames, }: AccordionGroupPropsType): React.JSX.Element;
|
|
15
|
+
({ children, onAccordionClick, onToggle, initialOpenId, classNames, testId, }: AccordionGroupPropsType): React.JSX.Element;
|
|
15
16
|
displayName: string;
|
|
16
17
|
};
|
|
17
18
|
//# sourceMappingURL=AccordionGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AccordionGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAeH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IACtD,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,cAAc;mFAOxB,uBAAuB;;CAiDzB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.AccordionGroup = 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 _AccordionGroupModule = _interopRequireDefault(require("./AccordionGroup.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -16,7 +17,8 @@ const AccordionGroup = _ref => {
|
|
|
16
17
|
onAccordionClick,
|
|
17
18
|
onToggle,
|
|
18
19
|
initialOpenId = '',
|
|
19
|
-
classNames
|
|
20
|
+
classNames,
|
|
21
|
+
testId
|
|
20
22
|
} = _ref;
|
|
21
23
|
const [openId, setOpenedId] = React.useState(initialOpenId);
|
|
22
24
|
const handleAccordionChange = (id, isOpen) => {
|
|
@@ -46,11 +48,20 @@ const AccordionGroup = _ref => {
|
|
|
46
48
|
onToggle: accordionOnToggle,
|
|
47
49
|
showToggle: true,
|
|
48
50
|
isOpen,
|
|
49
|
-
key: childId
|
|
51
|
+
key: childId,
|
|
52
|
+
testId: (0, _qa.generateTestId)({
|
|
53
|
+
base: testId,
|
|
54
|
+
slot: 'accordion',
|
|
55
|
+
index: childId
|
|
56
|
+
})
|
|
50
57
|
});
|
|
51
58
|
});
|
|
52
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
60
|
className: (0, _classify.default)(_AccordionGroupModule.default.wrapper, classNames?.wrapper),
|
|
61
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'wrapper'
|
|
64
|
+
}),
|
|
54
65
|
children: enhancedChildren
|
|
55
66
|
});
|
|
56
67
|
};
|
|
@@ -41,6 +41,7 @@ export interface AvatarProps {
|
|
|
41
41
|
iconType?: IconType;
|
|
42
42
|
status?: StatusSemanticType;
|
|
43
43
|
statusBorderColorToken?: keyof typeof COLORS;
|
|
44
|
+
testId?: string;
|
|
44
45
|
}
|
|
45
46
|
export interface AvatarContentProps {
|
|
46
47
|
imageSrc?: string;
|
|
@@ -53,8 +54,9 @@ export interface AvatarContentProps {
|
|
|
53
54
|
status?: StatusSemanticType;
|
|
54
55
|
statusBorderColorToken?: keyof typeof COLORS;
|
|
55
56
|
classNames?: ClassNames;
|
|
57
|
+
testId?: string;
|
|
56
58
|
}
|
|
57
59
|
export declare const Avatar: Flow.AbstractComponent<AvatarProps, HTMLDivElement>;
|
|
58
|
-
export declare const BaseAvatar: ({ classNames, size, text, style, color, }: AvatarProps) => React.JSX.Element;
|
|
60
|
+
export declare const BaseAvatar: ({ classNames, size, text, style, color, testId, }: AvatarProps) => React.JSX.Element;
|
|
59
61
|
export {};
|
|
60
62
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,KAAK,MAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,KAAK,MAAM,MAAM,6BAA6B,CAAC;AAY3D,OAAO,KAAK,EAAW,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAYvE,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;EAKtB,CAAC;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,OAAO,CAAiC,CAAC;AAE/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AACxE,eAAO,MAAM,YAAY;;;;;;;EAOvB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwDD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA8DD,eAAO,MAAM,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,cAAc,CAsEpE,CAAC;AAEJ,eAAO,MAAM,UAAU,GAAI,mDAOxB,WAAW,sBAsBb,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.avatarSizeOptions = exports.BaseAvatar = exports.Avatar = exports.AVATAR
|
|
|
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 _Icon = require("../Icon");
|
|
11
12
|
var _StatusIndicator = require("../StatusIndicator");
|
|
12
13
|
var _Text = require("../Text");
|
|
@@ -40,27 +41,32 @@ const AvatarTextDecorator = _ref => {
|
|
|
40
41
|
let {
|
|
41
42
|
avatarText,
|
|
42
43
|
size,
|
|
43
|
-
className
|
|
44
|
+
className,
|
|
45
|
+
testId
|
|
44
46
|
} = _ref;
|
|
45
47
|
switch (size) {
|
|
46
48
|
case 'small':
|
|
47
49
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleSmall, {
|
|
48
50
|
className: className,
|
|
51
|
+
testId: testId,
|
|
49
52
|
children: avatarText
|
|
50
53
|
});
|
|
51
54
|
case 'medium':
|
|
52
55
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleMedium, {
|
|
53
56
|
className: className,
|
|
57
|
+
testId: testId,
|
|
54
58
|
children: avatarText
|
|
55
59
|
});
|
|
56
60
|
case 'large':
|
|
57
61
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleLarge, {
|
|
58
62
|
className: className,
|
|
63
|
+
testId: testId,
|
|
59
64
|
children: avatarText
|
|
60
65
|
});
|
|
61
66
|
case 'extraLarge':
|
|
62
67
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.JumboSmall, {
|
|
63
68
|
className: className,
|
|
69
|
+
testId: testId,
|
|
64
70
|
children: avatarText
|
|
65
71
|
});
|
|
66
72
|
}
|
|
@@ -83,9 +89,14 @@ const AvatarConditionalContent = _ref2 => {
|
|
|
83
89
|
color = 'blue',
|
|
84
90
|
status,
|
|
85
91
|
statusBorderColorToken,
|
|
86
|
-
classNames
|
|
92
|
+
classNames,
|
|
93
|
+
testId
|
|
87
94
|
} = _ref2;
|
|
88
95
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
96
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
97
|
+
base: testId,
|
|
98
|
+
slot: 'content'
|
|
99
|
+
}),
|
|
89
100
|
className: (0, _classify.default)(_AvatarModule.default.innerContainer, {
|
|
90
101
|
[_AvatarModule.default.alignCenter]: !imageSrc
|
|
91
102
|
}, classNames?.content),
|
|
@@ -97,21 +108,37 @@ const AvatarConditionalContent = _ref2 => {
|
|
|
97
108
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_StatusIndicator.StatusIndicator, {
|
|
98
109
|
status: status,
|
|
99
110
|
withBorder: true,
|
|
100
|
-
borderColorToken: statusBorderColorToken
|
|
111
|
+
borderColorToken: statusBorderColorToken,
|
|
112
|
+
testId: (0, _qa.generateTestId)({
|
|
113
|
+
base: testId,
|
|
114
|
+
slot: 'status'
|
|
115
|
+
})
|
|
101
116
|
})
|
|
102
117
|
}), imageSrc ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
103
118
|
src: imageSrc,
|
|
104
119
|
alt: "Avatar",
|
|
105
|
-
className: (0, _classify.default)(_AvatarModule.default.avatar, classNames?.image)
|
|
120
|
+
className: (0, _classify.default)(_AvatarModule.default.avatar, classNames?.image),
|
|
121
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
122
|
+
base: testId,
|
|
123
|
+
slot: 'image'
|
|
124
|
+
})
|
|
106
125
|
}) : iconName ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
107
126
|
name: iconName,
|
|
108
127
|
type: iconType,
|
|
109
128
|
size: iconSize[size],
|
|
110
|
-
className: classNames?.icon
|
|
129
|
+
className: classNames?.icon,
|
|
130
|
+
testId: (0, _qa.generateTestId)({
|
|
131
|
+
base: testId,
|
|
132
|
+
slot: 'icon'
|
|
133
|
+
})
|
|
111
134
|
}) : text ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarTextDecorator, {
|
|
112
135
|
avatarText: getAvatarText(text),
|
|
113
136
|
size: size,
|
|
114
|
-
className: classNames?.text
|
|
137
|
+
className: classNames?.text,
|
|
138
|
+
testId: (0, _qa.generateTestId)({
|
|
139
|
+
base: testId,
|
|
140
|
+
slot: 'text'
|
|
141
|
+
})
|
|
115
142
|
}) : null]
|
|
116
143
|
});
|
|
117
144
|
};
|
|
@@ -127,9 +154,14 @@ const Avatar = exports.Avatar = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
127
154
|
color,
|
|
128
155
|
ring = false,
|
|
129
156
|
status,
|
|
130
|
-
statusBorderColorToken
|
|
157
|
+
statusBorderColorToken,
|
|
158
|
+
testId
|
|
131
159
|
} = _ref3;
|
|
132
160
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
161
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
162
|
+
base: testId,
|
|
163
|
+
slot: 'root'
|
|
164
|
+
}),
|
|
133
165
|
className: (0, _classify.default)(_AvatarModule.default.container, {
|
|
134
166
|
[_AvatarModule.default.extraLargeSize]: size === 'extraLarge',
|
|
135
167
|
[_AvatarModule.default.largeSize]: size === 'large',
|
|
@@ -140,6 +172,10 @@ const Avatar = exports.Avatar = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
140
172
|
ref: ref,
|
|
141
173
|
children: ring ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
174
|
className: (0, _classify.default)(_AvatarModule.default.ring, classNames?.ring),
|
|
175
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
176
|
+
base: testId,
|
|
177
|
+
slot: 'ring'
|
|
178
|
+
}),
|
|
143
179
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
144
180
|
className: _AvatarModule.default.whiteCircle,
|
|
145
181
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarConditionalContent, {
|
|
@@ -151,7 +187,8 @@ const Avatar = exports.Avatar = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
151
187
|
size: size,
|
|
152
188
|
status: status,
|
|
153
189
|
statusBorderColorToken: statusBorderColorToken,
|
|
154
|
-
classNames: classNames
|
|
190
|
+
classNames: classNames,
|
|
191
|
+
testId: testId
|
|
155
192
|
})
|
|
156
193
|
})
|
|
157
194
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarConditionalContent, {
|
|
@@ -163,7 +200,8 @@ const Avatar = exports.Avatar = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
163
200
|
size: size,
|
|
164
201
|
status: status,
|
|
165
202
|
statusBorderColorToken: statusBorderColorToken,
|
|
166
|
-
classNames: classNames
|
|
203
|
+
classNames: classNames,
|
|
204
|
+
testId: testId
|
|
167
205
|
})
|
|
168
206
|
});
|
|
169
207
|
});
|
|
@@ -173,9 +211,14 @@ const BaseAvatar = _ref4 => {
|
|
|
173
211
|
size = AVATAR_SIZE.medium,
|
|
174
212
|
text = '',
|
|
175
213
|
style,
|
|
176
|
-
color = 'blue'
|
|
214
|
+
color = 'blue',
|
|
215
|
+
testId
|
|
177
216
|
} = _ref4;
|
|
178
217
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
218
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
219
|
+
base: testId,
|
|
220
|
+
slot: 'root'
|
|
221
|
+
}),
|
|
179
222
|
className: (0, _classify.default)(_AvatarModule.default.container, {
|
|
180
223
|
[_AvatarModule.default.baseExtraLargeSize]: size === 'extraLarge',
|
|
181
224
|
[_AvatarModule.default.baseLargeSize]: size === 'large',
|
|
@@ -189,7 +232,11 @@ const BaseAvatar = _ref4 => {
|
|
|
189
232
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarTextDecorator, {
|
|
190
233
|
avatarText: text,
|
|
191
234
|
size: size,
|
|
192
|
-
className: classNames?.text
|
|
235
|
+
className: classNames?.text,
|
|
236
|
+
testId: (0, _qa.generateTestId)({
|
|
237
|
+
base: testId,
|
|
238
|
+
slot: 'text'
|
|
239
|
+
})
|
|
193
240
|
})
|
|
194
241
|
});
|
|
195
242
|
};
|
|
@@ -10,6 +10,7 @@ export interface AvatarGroupProps {
|
|
|
10
10
|
placement?: PlacementType;
|
|
11
11
|
maxAvatars?: number;
|
|
12
12
|
tooltipElevation?: ElevationType;
|
|
13
|
+
testId?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const AvatarGroup: Flow.AbstractComponent<AvatarGroupProps, HTMLDivElement>;
|
|
15
16
|
//# sourceMappingURL=AvatarGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAQzE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAoBD,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,iBAAiB,CAC9C,gBAAgB,EAChB,cAAc,CAuKf,CAAC"}
|
|
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _color = require("../../styles/variables/_color");
|
|
9
9
|
var _space = require("../../styles/variables/_space");
|
|
10
10
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
11
|
+
var _qa = require("../../utils/qa");
|
|
11
12
|
var _Avatar = require("../Avatar");
|
|
12
13
|
var _Tooltip = require("../Tooltip");
|
|
13
14
|
var _AvatarGroupModule = _interopRequireDefault(require("./AvatarGroup.module.css"));
|
|
@@ -28,7 +29,8 @@ const AvatarGroup = exports.AvatarGroup = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
28
29
|
maxTooltipLines = 7,
|
|
29
30
|
placement = 'top',
|
|
30
31
|
maxAvatars = 5,
|
|
31
|
-
tooltipElevation
|
|
32
|
+
tooltipElevation,
|
|
33
|
+
testId
|
|
32
34
|
} = _ref;
|
|
33
35
|
const childAvatarCount = React.Children.count(children);
|
|
34
36
|
const leftOverlap = {
|
|
@@ -58,12 +60,22 @@ const AvatarGroup = exports.AvatarGroup = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
58
60
|
borderColor,
|
|
59
61
|
marginLeft: `-${index !== 0 ? leftOverlap[size] : 0}`
|
|
60
62
|
},
|
|
61
|
-
color
|
|
63
|
+
color,
|
|
64
|
+
testId: (0, _qa.generateTestId)({
|
|
65
|
+
base: testId,
|
|
66
|
+
slot: 'avatar',
|
|
67
|
+
index: index.toString()
|
|
68
|
+
})
|
|
62
69
|
});
|
|
63
70
|
return text ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
64
71
|
body: text,
|
|
65
72
|
placement: placement,
|
|
66
73
|
elevation: tooltipElevation,
|
|
74
|
+
testId: (0, _qa.generateTestId)({
|
|
75
|
+
base: testId,
|
|
76
|
+
slot: 'avatar-tooltip',
|
|
77
|
+
index: index.toString()
|
|
78
|
+
}),
|
|
67
79
|
children: avatar
|
|
68
80
|
}) : avatar;
|
|
69
81
|
};
|
|
@@ -96,6 +108,10 @@ const AvatarGroup = exports.AvatarGroup = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
96
108
|
bodyMaxLines: maxTooltipLines,
|
|
97
109
|
placement: placement,
|
|
98
110
|
elevation: tooltipElevation,
|
|
111
|
+
testId: (0, _qa.generateTestId)({
|
|
112
|
+
base: testId,
|
|
113
|
+
slot: 'plus-avatar-tooltip'
|
|
114
|
+
}),
|
|
99
115
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
100
116
|
className: _AvatarGroupModule.default.plusAvatar,
|
|
101
117
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.BaseAvatar, {
|
|
@@ -108,7 +124,11 @@ const AvatarGroup = exports.AvatarGroup = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
108
124
|
style: {
|
|
109
125
|
borderColor,
|
|
110
126
|
marginLeft: `-${leftOverlap[size]}`
|
|
111
|
-
}
|
|
127
|
+
},
|
|
128
|
+
testId: (0, _qa.generateTestId)({
|
|
129
|
+
base: testId,
|
|
130
|
+
slot: 'plus-avatar'
|
|
131
|
+
})
|
|
112
132
|
})
|
|
113
133
|
})
|
|
114
134
|
});
|
|
@@ -148,6 +168,10 @@ const AvatarGroup = exports.AvatarGroup = /*#__PURE__*/React.forwardRef((_ref, r
|
|
|
148
168
|
[_AvatarGroupModule.default.smallSize]: size === 'small'
|
|
149
169
|
}),
|
|
150
170
|
ref: ref,
|
|
171
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
172
|
+
base: testId,
|
|
173
|
+
slot: 'wrapper'
|
|
174
|
+
}),
|
|
151
175
|
children: childrenWithProps
|
|
152
176
|
});
|
|
153
177
|
});
|