@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
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.FileBlock = 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 _LinearLoader = require("../../LinearLoader");
|
|
11
12
|
var _Truncate = require("../../Truncate");
|
|
@@ -19,12 +20,17 @@ const FileBlock = exports.FileBlock = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
19
20
|
fileObject,
|
|
20
21
|
onFileRefreshClick,
|
|
21
22
|
handleFileClear,
|
|
22
|
-
showRemoveFile = true
|
|
23
|
+
showRemoveFile = true,
|
|
24
|
+
testId
|
|
23
25
|
} = _ref;
|
|
24
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
25
27
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
26
28
|
className: (0, _classify.default)(_FileUploadModule.default.file, classNames?.wrapper),
|
|
27
29
|
ref: ref,
|
|
30
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
31
|
+
base: testId,
|
|
32
|
+
slot: 'wrapper'
|
|
33
|
+
}),
|
|
28
34
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
29
35
|
className: _FileUploadModule.default.fileInfo,
|
|
30
36
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -32,22 +38,35 @@ const FileBlock = exports.FileBlock = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
32
38
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
39
|
className: _FileUploadModule.default.icon,
|
|
34
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FileStatusIcon, {
|
|
35
|
-
fileObject: fileObject
|
|
41
|
+
fileObject: fileObject,
|
|
42
|
+
testId: testId
|
|
36
43
|
})
|
|
37
44
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
45
|
className: _FileUploadModule.default.fileName,
|
|
39
46
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
|
|
47
|
+
testId: (0, _qa.generateTestId)({
|
|
48
|
+
base: testId,
|
|
49
|
+
slot: 'file-name'
|
|
50
|
+
}),
|
|
40
51
|
children: fileObject.file.name
|
|
41
52
|
})
|
|
42
53
|
})]
|
|
43
54
|
}), fileObject.success && !!fileObject.successMessage && !fileObject.progress && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
55
|
className: _FileUploadModule.default.fileSuccess,
|
|
45
56
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
|
|
57
|
+
testId: (0, _qa.generateTestId)({
|
|
58
|
+
base: testId,
|
|
59
|
+
slot: 'success-message'
|
|
60
|
+
}),
|
|
46
61
|
children: fileObject.successMessage
|
|
47
62
|
})
|
|
48
63
|
}), fileObject.reject && !!fileObject.rejectReason && !fileObject.progress && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
49
64
|
className: _FileUploadModule.default.fileError,
|
|
50
65
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
|
|
66
|
+
testId: (0, _qa.generateTestId)({
|
|
67
|
+
base: testId,
|
|
68
|
+
slot: 'error-message'
|
|
69
|
+
}),
|
|
51
70
|
children: fileObject.rejectReason
|
|
52
71
|
})
|
|
53
72
|
}), !!fileObject.progress && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -55,7 +74,11 @@ const FileBlock = exports.FileBlock = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
55
74
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinearLoader.LinearLoader, {
|
|
56
75
|
size: "small",
|
|
57
76
|
value: fileObject.progress === 'indeterminate' ? 0 : fileObject.progress,
|
|
58
|
-
indeterminate: fileObject.progress === 'indeterminate'
|
|
77
|
+
indeterminate: fileObject.progress === 'indeterminate',
|
|
78
|
+
testId: (0, _qa.generateTestId)({
|
|
79
|
+
base: testId,
|
|
80
|
+
slot: 'progress'
|
|
81
|
+
})
|
|
59
82
|
})
|
|
60
83
|
})]
|
|
61
84
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -65,13 +88,21 @@ const FileBlock = exports.FileBlock = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
65
88
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.ClickableIcon, {
|
|
66
89
|
name: "refresh",
|
|
67
90
|
size: "small",
|
|
68
|
-
onClick: () => onFileRefreshClick?.(fileObject)
|
|
91
|
+
onClick: () => onFileRefreshClick?.(fileObject),
|
|
92
|
+
testId: (0, _qa.generateTestId)({
|
|
93
|
+
base: testId,
|
|
94
|
+
slot: 'refresh-button'
|
|
95
|
+
})
|
|
69
96
|
})
|
|
70
97
|
}), showRemoveFile && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
98
|
className: _FileUploadModule.default.rightBlock,
|
|
72
99
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.CloseIcon, {
|
|
73
100
|
size: "small",
|
|
74
|
-
onClick: () => handleFileClear?.(fileObject.id)
|
|
101
|
+
onClick: () => handleFileClear?.(fileObject.id),
|
|
102
|
+
testId: (0, _qa.generateTestId)({
|
|
103
|
+
base: testId,
|
|
104
|
+
slot: 'remove-button'
|
|
105
|
+
})
|
|
75
106
|
})
|
|
76
107
|
})]
|
|
77
108
|
})]
|
|
@@ -96,7 +127,8 @@ const getFileStatus = fileObject => {
|
|
|
96
127
|
// This component renders the status icon for a file
|
|
97
128
|
const FileStatusIcon = _ref2 => {
|
|
98
129
|
let {
|
|
99
|
-
fileObject
|
|
130
|
+
fileObject,
|
|
131
|
+
testId
|
|
100
132
|
} = _ref2;
|
|
101
133
|
const status = getFileStatus(fileObject);
|
|
102
134
|
switch (status) {
|
|
@@ -104,26 +136,42 @@ const FileStatusIcon = _ref2 => {
|
|
|
104
136
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
105
137
|
size: "small",
|
|
106
138
|
name: "loader",
|
|
107
|
-
color: "tertiary"
|
|
139
|
+
color: "tertiary",
|
|
140
|
+
testId: (0, _qa.generateTestId)({
|
|
141
|
+
base: testId,
|
|
142
|
+
slot: 'status-icon'
|
|
143
|
+
})
|
|
108
144
|
});
|
|
109
145
|
case 'success':
|
|
110
146
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
111
147
|
size: "small",
|
|
112
148
|
name: "check",
|
|
113
|
-
color: "success"
|
|
149
|
+
color: "success",
|
|
150
|
+
testId: (0, _qa.generateTestId)({
|
|
151
|
+
base: testId,
|
|
152
|
+
slot: 'status-icon'
|
|
153
|
+
})
|
|
114
154
|
});
|
|
115
155
|
case 'error':
|
|
116
156
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
117
157
|
size: "small",
|
|
118
158
|
name: "circle-exclamation",
|
|
119
159
|
color: "danger",
|
|
120
|
-
type: "solid"
|
|
160
|
+
type: "solid",
|
|
161
|
+
testId: (0, _qa.generateTestId)({
|
|
162
|
+
base: testId,
|
|
163
|
+
slot: 'status-icon'
|
|
164
|
+
})
|
|
121
165
|
});
|
|
122
166
|
default:
|
|
123
167
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
124
168
|
size: "small",
|
|
125
169
|
name: "check",
|
|
126
|
-
color: "success"
|
|
170
|
+
color: "success",
|
|
171
|
+
testId: (0, _qa.generateTestId)({
|
|
172
|
+
base: testId,
|
|
173
|
+
slot: 'status-icon'
|
|
174
|
+
})
|
|
127
175
|
});
|
|
128
176
|
}
|
|
129
177
|
};
|
|
@@ -58,6 +58,7 @@ export interface FileUploadProps extends Omit<FileUploadBaseProps, 'classNames'
|
|
|
58
58
|
required?: boolean;
|
|
59
59
|
handleFileDeletionExternally?: boolean;
|
|
60
60
|
onFileRefreshClick?: (file: FileObject) => unknown;
|
|
61
|
+
testId?: string;
|
|
61
62
|
}
|
|
62
63
|
export declare const FileUpload: Flow.AbstractComponent<FileUploadProps, FileUploadRef>;
|
|
63
64
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"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"}
|
|
@@ -7,6 +7,7 @@ exports.FileUpload = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _useFileUpload = require("../../hooks/useFileUpload");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Button = require("../Button");
|
|
11
12
|
var _FileBlock = require("./FileBlock");
|
|
12
13
|
var _Truncate = require("../Truncate");
|
|
@@ -39,7 +40,8 @@ const FileUploadBase = (props, ref) => {
|
|
|
39
40
|
onFileClear,
|
|
40
41
|
onFileRefreshClick,
|
|
41
42
|
maxFiles = 1,
|
|
42
|
-
handleFileDeletionExternally
|
|
43
|
+
handleFileDeletionExternally,
|
|
44
|
+
testId
|
|
43
45
|
} = props;
|
|
44
46
|
|
|
45
47
|
// Get file upload state from useFileUpload hook
|
|
@@ -66,7 +68,6 @@ const FileUploadBase = (props, ref) => {
|
|
|
66
68
|
});
|
|
67
69
|
|
|
68
70
|
// Expose file upload actions to parent component
|
|
69
|
-
|
|
70
71
|
React.useImperativeHandle(ref, () => ({
|
|
71
72
|
moveFileToProgress,
|
|
72
73
|
moveFileToSuccess,
|
|
@@ -82,9 +83,17 @@ const FileUploadBase = (props, ref) => {
|
|
|
82
83
|
const files = [...validFiles, ...rejectedFiles];
|
|
83
84
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
84
85
|
className: (0, _classify.default)(_FileUploadModule.default.wrapper, classNames?.wrapper),
|
|
86
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
87
|
+
base: testId,
|
|
88
|
+
slot: 'wrapper'
|
|
89
|
+
}),
|
|
85
90
|
children: [Boolean(label) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
86
91
|
className: _FileUploadModule.default.label,
|
|
87
92
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
|
|
93
|
+
testId: (0, _qa.generateTestId)({
|
|
94
|
+
base: testId,
|
|
95
|
+
slot: 'label'
|
|
96
|
+
}),
|
|
88
97
|
children: label
|
|
89
98
|
}), required && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
90
99
|
className: _FileUploadModule.default.required,
|
|
@@ -98,8 +107,16 @@ const FileUploadBase = (props, ref) => {
|
|
|
98
107
|
[_FileUploadModule.default.dragActive]: isDragActive,
|
|
99
108
|
[_FileUploadModule.default.error]: error
|
|
100
109
|
}, classNames?.dropZone),
|
|
110
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
111
|
+
base: testId,
|
|
112
|
+
slot: 'dropzone'
|
|
113
|
+
}),
|
|
101
114
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
102
|
-
...getInputProps()
|
|
115
|
+
...getInputProps(),
|
|
116
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
117
|
+
base: testId,
|
|
118
|
+
slot: 'input'
|
|
119
|
+
})
|
|
103
120
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
104
121
|
className: (0, _classify.default)(_FileUploadModule.default.instruction, classNames?.instruction),
|
|
105
122
|
children: isDragActive ? draggingInstruction : instruction
|
|
@@ -109,6 +126,10 @@ const FileUploadBase = (props, ref) => {
|
|
|
109
126
|
})]
|
|
110
127
|
}), files.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
111
128
|
className: _FileUploadModule.default.files,
|
|
129
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
130
|
+
base: testId,
|
|
131
|
+
slot: 'files'
|
|
132
|
+
}),
|
|
112
133
|
children: files.map(fileObject => /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
|
|
113
134
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileBlock.FileBlock, {
|
|
114
135
|
fileObject: fileObject,
|
|
@@ -116,7 +137,12 @@ const FileUploadBase = (props, ref) => {
|
|
|
116
137
|
handleFileClear: handleFileDeletionExternally ? onFileClear : handleFileClear,
|
|
117
138
|
classNames: {
|
|
118
139
|
wrapper: classNames?.files
|
|
119
|
-
}
|
|
140
|
+
},
|
|
141
|
+
testId: (0, _qa.generateTestId)({
|
|
142
|
+
base: testId,
|
|
143
|
+
slot: 'file-block',
|
|
144
|
+
index: fileObject.id
|
|
145
|
+
})
|
|
120
146
|
})
|
|
121
147
|
}, fileObject.id))
|
|
122
148
|
})]
|
|
@@ -24,6 +24,7 @@ export interface FilterButtonOverlayProps extends Omit<NewButtonProps, 'classNam
|
|
|
24
24
|
buttonSize?: ButtonSize;
|
|
25
25
|
elevation?: ElevationType;
|
|
26
26
|
buttonIsFluid?: boolean;
|
|
27
|
+
testId?: string;
|
|
27
28
|
}
|
|
28
29
|
export declare const FilterButtonOverlay: Flow.AbstractComponent<FilterButtonOverlayProps, HTMLDivElement>;
|
|
29
30
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterButtonOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/FilterButtonOverlay/FilterButtonOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAIrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterButtonOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/FilterButtonOverlay/FilterButtonOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAIrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAC;AAKhD,OAAO,KAAK,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAAC,UAAU,EAAE,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAKxE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAM1D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE9D,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CACpC,WAAW,EACX;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CACF,CAAC;AAEF,MAAM,WAAW,wBACf,SAAQ,IAAI,CACV,cAAc,EACZ,YAAY,GACZ,UAAU,GACV,kBAAkB,GAClB,gBAAgB,GAChB,cAAc,GACd,SAAS,GACT,MAAM,GACN,aAAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,CAClB;IACD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gBAAgB,CAAC,EAAE,QAAQ,CAAC;IAC5B,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,4BAA4B,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,iBAAiB,CACtD,wBAAwB,EACxB,cAAc,CAuHf,CAAC"}
|
|
@@ -10,6 +10,7 @@ var _hooks = require("../../hooks");
|
|
|
10
10
|
var _space = require("../../styles/variables/_space");
|
|
11
11
|
var _utils = require("../../utils");
|
|
12
12
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
13
|
+
var _qa = require("../../utils/qa");
|
|
13
14
|
var _Button = require("../Button");
|
|
14
15
|
var _ButtonDropdown = require("../ButtonDropdown");
|
|
15
16
|
var _Tooltip = require("../Tooltip");
|
|
@@ -30,6 +31,7 @@ const FilterButtonOverlay = exports.FilterButtonOverlay = /*#__PURE__*/React.for
|
|
|
30
31
|
buttonIsFluid,
|
|
31
32
|
buttonSize,
|
|
32
33
|
elevation = 'modal',
|
|
34
|
+
testId,
|
|
33
35
|
...restProps
|
|
34
36
|
} = _ref;
|
|
35
37
|
const {
|
|
@@ -58,7 +60,10 @@ const FilterButtonOverlay = exports.FilterButtonOverlay = /*#__PURE__*/React.for
|
|
|
58
60
|
triggerRef
|
|
59
61
|
} = _ref2;
|
|
60
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
61
|
-
"data-testid":
|
|
63
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
64
|
+
base: testId,
|
|
65
|
+
slot: 'root'
|
|
66
|
+
}),
|
|
62
67
|
className: (0, _classify.default)({
|
|
63
68
|
[_FilterButtonOverlayModule.default.isFluid]: buttonIsFluid
|
|
64
69
|
}, classNames?.wrapper),
|
|
@@ -72,6 +77,10 @@ const FilterButtonOverlay = exports.FilterButtonOverlay = /*#__PURE__*/React.for
|
|
|
72
77
|
},
|
|
73
78
|
isFluid: buttonIsFluid,
|
|
74
79
|
size: buttonSize,
|
|
80
|
+
testId: (0, _qa.generateTestId)({
|
|
81
|
+
base: testId,
|
|
82
|
+
slot: 'button'
|
|
83
|
+
}),
|
|
75
84
|
children: buttonLabel
|
|
76
85
|
}), isOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingPortal, {
|
|
77
86
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingFocusManager, {
|
|
@@ -81,6 +90,10 @@ const FilterButtonOverlay = exports.FilterButtonOverlay = /*#__PURE__*/React.for
|
|
|
81
90
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
82
91
|
ref: (0, _utils.mergeRefs)([refs.setFloating, boundaryRef]),
|
|
83
92
|
className: _FilterButtonOverlayModule.default.overlayContainer,
|
|
93
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
94
|
+
base: testId,
|
|
95
|
+
slot: 'overlay'
|
|
96
|
+
}),
|
|
84
97
|
style: {
|
|
85
98
|
display: 'flex',
|
|
86
99
|
position: strategy,
|
|
@@ -102,6 +115,10 @@ const FilterButtonOverlay = exports.FilterButtonOverlay = /*#__PURE__*/React.for
|
|
|
102
115
|
[_FilterButtonOverlayModule.default.small]: size === 'small',
|
|
103
116
|
[_FilterButtonOverlayModule.default.medium]: size === 'medium'
|
|
104
117
|
}, classNames?.overlayContainer),
|
|
118
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
119
|
+
base: testId,
|
|
120
|
+
slot: 'content'
|
|
121
|
+
}),
|
|
105
122
|
children: children
|
|
106
123
|
})
|
|
107
124
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusManager.d.ts","sourceRoot":"","sources":["../../../src/components/FocusManager/FocusManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusManager.d.ts","sourceRoot":"","sources":["../../../src/components/FocusManager/FocusManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBA+BpD,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.FocusManager = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _react2 = require("@floating-ui/react");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _FocusManagerModule = _interopRequireDefault(require("./FocusManager.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -25,6 +26,7 @@ const FocusManager = props => {
|
|
|
25
26
|
returnFocus = true,
|
|
26
27
|
modal = true,
|
|
27
28
|
guards = true,
|
|
29
|
+
testId,
|
|
28
30
|
...restFloatingFocusManagerProps
|
|
29
31
|
} = props;
|
|
30
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingFocusManager, {
|
|
@@ -36,7 +38,10 @@ const FocusManager = props => {
|
|
|
36
38
|
...restFloatingFocusManagerProps,
|
|
37
39
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
40
|
ref: refs.setFloating,
|
|
39
|
-
"data-testid":
|
|
41
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
42
|
+
base: testId,
|
|
43
|
+
slot: 'focusManager'
|
|
44
|
+
}),
|
|
40
45
|
className: (0, _classify.default)(_FocusManagerModule.default.wrapper, classNames?.wrapper),
|
|
41
46
|
children: children
|
|
42
47
|
})
|
package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { FocusManagerProps } from '../../components/FocusManager';
|
|
|
4
4
|
export interface SkipElementFromNavigationProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
+
testId?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare const SkipElementFromNavigation: Flow.AbstractComponent<SkipElementFromNavigationProps, HTMLDivElement>;
|
|
9
10
|
export interface FocusManagerWithArrowKeyNavigationProps extends Omit<FocusManagerProps, 'cols' | 'orientation' | 'focusItemOnOpen' | 'loop' | 'listReference'> {
|
|
@@ -14,6 +15,7 @@ export interface FocusManagerWithArrowKeyNavigationProps extends Omit<FocusManag
|
|
|
14
15
|
listReference?: {
|
|
15
16
|
current: Array<HTMLElement>;
|
|
16
17
|
};
|
|
18
|
+
testId?: string;
|
|
17
19
|
}
|
|
18
20
|
export declare const FocusManagerWithArrowKeyNavigation: (props: FocusManagerWithArrowKeyNavigationProps) => React.JSX.Element;
|
|
19
21
|
//# sourceMappingURL=FocusManagerWithArrowKeyNavigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusManagerWithArrowKeyNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusManagerWithArrowKeyNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAOnE,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,yBAAyB,EAAE,IAAI,CAAC,iBAAiB,CAC5D,8BAA8B,EAC9B,cAAc,CAgBf,CAAC;AAIF,MAAM,WAAW,uCACf,SAAQ,IAAI,CACV,iBAAiB,EACjB,MAAM,GAAG,aAAa,GAAG,iBAAiB,GAAG,MAAM,GAAG,eAAe,CACtE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE;QACd,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;KAC7B,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAgBD,eAAO,MAAM,kCAAkC,GAC7C,OAAO,uCAAuC,sBAyH/C,CAAC"}
|
package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.SkipElementFromNavigation = exports.FocusManagerWithArrowKeyNavigation =
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _react2 = require("@floating-ui/react");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _FocusManagerWithArrowKeyNavigationModule = _interopRequireDefault(require("./FocusManagerWithArrowKeyNavigation.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -16,10 +17,15 @@ const SkipElementFromNavigation = exports.SkipElementFromNavigation = /*#__PURE_
|
|
|
16
17
|
let {
|
|
17
18
|
children,
|
|
18
19
|
className,
|
|
20
|
+
testId,
|
|
19
21
|
...restProps
|
|
20
22
|
} = _ref;
|
|
21
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
24
|
...restProps,
|
|
25
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
26
|
+
base: testId,
|
|
27
|
+
slot: 'skipElement'
|
|
28
|
+
}),
|
|
23
29
|
className: className,
|
|
24
30
|
tabIndex: -1,
|
|
25
31
|
ref: ref,
|
|
@@ -43,6 +49,7 @@ const FocusManagerWithArrowKeyNavigation = props => {
|
|
|
43
49
|
focusItemOnOpen = 'auto',
|
|
44
50
|
loop = false,
|
|
45
51
|
listReference,
|
|
52
|
+
testId,
|
|
46
53
|
...restFloatingFocusManagerProps
|
|
47
54
|
} = props;
|
|
48
55
|
const {
|
|
@@ -137,7 +144,10 @@ const FocusManagerWithArrowKeyNavigation = props => {
|
|
|
137
144
|
...restFloatingFocusManagerProps,
|
|
138
145
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
146
|
ref: refs.setFloating,
|
|
140
|
-
"data-testid":
|
|
147
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
148
|
+
base: testId,
|
|
149
|
+
slot: 'focusManager'
|
|
150
|
+
}),
|
|
141
151
|
...getFloatingProps(),
|
|
142
152
|
className: (0, _classify.default)(_FocusManagerWithArrowKeyNavigationModule.default.wrapper, classNames?.wrapper),
|
|
143
153
|
children: clonedChildren
|
|
@@ -15,6 +15,7 @@ export interface FormTitleWrapperProps {
|
|
|
15
15
|
iconColor?: ColorTypes;
|
|
16
16
|
title: React.ReactNode;
|
|
17
17
|
rightSlot?: React.ReactNode;
|
|
18
|
+
testId?: string;
|
|
18
19
|
}
|
|
19
20
|
export declare const FormTitleWrapper: Flow.AbstractComponent<FormTitleWrapperProps, HTMLDivElement>;
|
|
20
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormTitleWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/FormTitleWrapper/FormTitleWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormTitleWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/FormTitleWrapper/FormTitleWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAIrD,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAM5D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,CACnD,qBAAqB,EACrB,cAAc,CAoDf,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.FormTitleWrapper = 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 _FormTitleWrapperModule = _interopRequireDefault(require("./FormTitleWrapper.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -19,25 +20,45 @@ const FormTitleWrapper = exports.FormTitleWrapper = /*#__PURE__*/React.forwardRe
|
|
|
19
20
|
iconSize = 'small',
|
|
20
21
|
iconColor,
|
|
21
22
|
title,
|
|
22
|
-
rightSlot
|
|
23
|
+
rightSlot,
|
|
24
|
+
testId
|
|
23
25
|
} = _ref;
|
|
24
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
25
27
|
ref: ref,
|
|
26
|
-
"data-testid":
|
|
28
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
29
|
+
base: testId,
|
|
30
|
+
slot: 'root'
|
|
31
|
+
}),
|
|
27
32
|
className: _FormTitleWrapperModule.default.container,
|
|
28
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
29
34
|
className: (0, _classify.default)(_FormTitleWrapperModule.default.leftSection, classNames?.wrapper),
|
|
35
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
36
|
+
base: testId,
|
|
37
|
+
slot: 'left'
|
|
38
|
+
}),
|
|
30
39
|
children: [!!iconName && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
31
40
|
type: iconType,
|
|
32
41
|
name: iconName,
|
|
33
42
|
size: iconSize,
|
|
34
|
-
color: iconColor
|
|
43
|
+
color: iconColor,
|
|
44
|
+
testId: (0, _qa.generateTestId)({
|
|
45
|
+
base: testId,
|
|
46
|
+
slot: 'icon'
|
|
47
|
+
})
|
|
35
48
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
49
|
className: (0, _classify.default)(_FormTitleWrapperModule.default.componentHousing, classNames?.title),
|
|
50
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
51
|
+
base: testId,
|
|
52
|
+
slot: 'title'
|
|
53
|
+
}),
|
|
37
54
|
children: title
|
|
38
55
|
})]
|
|
39
56
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
40
57
|
className: (0, _classify.default)(_FormTitleWrapperModule.default.rightSection, classNames?.rightSlot),
|
|
58
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
59
|
+
base: testId,
|
|
60
|
+
slot: 'right'
|
|
61
|
+
}),
|
|
41
62
|
children: rightSlot
|
|
42
63
|
})]
|
|
43
64
|
});
|
|
@@ -6,8 +6,9 @@ export interface RowProps {
|
|
|
6
6
|
offset?: number;
|
|
7
7
|
gridType?: 'small' | 'medium' | 'large' | 'autoFill' | 'autoFit';
|
|
8
8
|
repeatTracks?: string;
|
|
9
|
+
testId?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const Row: ({ className, children, gridType, repeatTracks, }: RowProps) => React.JSX.Element;
|
|
11
|
+
export declare const Row: ({ className, children, gridType, repeatTracks, testId, }: RowProps) => React.JSX.Element;
|
|
11
12
|
export interface ColProps {
|
|
12
13
|
className?: string;
|
|
13
14
|
children?: React.ReactNode;
|
|
@@ -15,6 +16,7 @@ export interface ColProps {
|
|
|
15
16
|
offset?: number;
|
|
16
17
|
gridColumnStart?: number | string;
|
|
17
18
|
gridColumnEnd?: number | string;
|
|
19
|
+
testId?: string;
|
|
18
20
|
}
|
|
19
|
-
export declare const Col: ({ className, children, gridColumnStart, gridColumnEnd, }: ColProps) => React.JSX.Element;
|
|
21
|
+
export declare const Col: ({ className, children, gridColumnStart, gridColumnEnd, testId, }: ColProps) => React.JSX.Element;
|
|
20
22
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAUD,eAAO,MAAM,GAAG,GAAI,0DAMjB,QAAQ,sBA0DV,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,GAAG,GAAI,kEAMjB,QAAQ,sBAWV,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Row = exports.Col = 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 _GridModule = _interopRequireDefault(require("./Grid.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -22,7 +23,8 @@ const Row = _ref => {
|
|
|
22
23
|
className,
|
|
23
24
|
children,
|
|
24
25
|
gridType = 'medium',
|
|
25
|
-
repeatTracks = '1fr'
|
|
26
|
+
repeatTracks = '1fr',
|
|
27
|
+
testId
|
|
26
28
|
} = _ref;
|
|
27
29
|
const gridRepeatCount = GRID_SYSTEM_MAP[gridType];
|
|
28
30
|
let columnSpanCount = 0;
|
|
@@ -65,7 +67,10 @@ const Row = _ref => {
|
|
|
65
67
|
return child;
|
|
66
68
|
});
|
|
67
69
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
|
-
"data-testid":
|
|
70
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
71
|
+
base: testId,
|
|
72
|
+
slot: 'row'
|
|
73
|
+
}),
|
|
69
74
|
className: (0, _classify.classify)(_GridModule.default.gridRow, className),
|
|
70
75
|
style: {
|
|
71
76
|
'--grid-repeat-count': gridRepeatCount,
|
|
@@ -80,9 +85,14 @@ const Col = _ref2 => {
|
|
|
80
85
|
className,
|
|
81
86
|
children,
|
|
82
87
|
gridColumnStart,
|
|
83
|
-
gridColumnEnd
|
|
88
|
+
gridColumnEnd,
|
|
89
|
+
testId
|
|
84
90
|
} = _ref2;
|
|
85
91
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
92
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
93
|
+
base: testId,
|
|
94
|
+
slot: 'col'
|
|
95
|
+
}),
|
|
86
96
|
className: (0, _classify.classify)(_GridModule.default.gridColumn, className),
|
|
87
97
|
style: {
|
|
88
98
|
'--grid-column-start': gridColumnStart || 0,
|
|
@@ -10,6 +10,7 @@ export interface ClickableIconProps extends Omit<IconProps, 'disabled' | 'classN
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
classNames?: ClassNames;
|
|
12
12
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
13
|
+
testId?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const ClickableIcon: Flow.AbstractComponent<ClickableIconProps, HTMLButtonElement>;
|
|
15
16
|
export interface CloseIconProps {
|
|
@@ -21,6 +22,7 @@ export interface CloseIconProps {
|
|
|
21
22
|
ariaLabel?: string;
|
|
22
23
|
disabled?: boolean;
|
|
23
24
|
classNames?: ClassNames;
|
|
25
|
+
testId?: string;
|
|
24
26
|
}
|
|
25
27
|
export declare const CloseIcon: Flow.AbstractComponent<CloseIconProps, HTMLButtonElement>;
|
|
26
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClickableIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/ClickableIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ClickableIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/ClickableIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAKrD,OAAO,KAAK,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAOvE,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,YAAY,GAAG,SAAS,CAAC;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAChD,kBAAkB,EAClB,iBAAiB,CAsDlB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,cAAc,EACd,iBAAiB,CAsBlB,CAAC"}
|