@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
|
@@ -7,6 +7,7 @@ exports.Day = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _moment = _interopRequireDefault(require("moment"));
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Button = require("../Button");
|
|
11
12
|
var _Text = require("../Text");
|
|
12
13
|
var _DayModule = _interopRequireDefault(require("./Day.module.css"));
|
|
@@ -34,7 +35,8 @@ const Day = _ref => {
|
|
|
34
35
|
outlined,
|
|
35
36
|
endOfRange,
|
|
36
37
|
highlighted,
|
|
37
|
-
startOfRange
|
|
38
|
+
startOfRange,
|
|
39
|
+
testId
|
|
38
40
|
} = _ref;
|
|
39
41
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.UnstyledButton, {
|
|
40
42
|
tabIndex: disabled ? -1 : 0,
|
|
@@ -45,6 +47,10 @@ const Day = _ref => {
|
|
|
45
47
|
onMouseOver: onHover,
|
|
46
48
|
onClick: onClick,
|
|
47
49
|
onKeyUp: onHover,
|
|
50
|
+
testId: (0, _qa.generateTestId)({
|
|
51
|
+
base: testId,
|
|
52
|
+
slot: `day-button-${date}`
|
|
53
|
+
}),
|
|
48
54
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyMedium, {
|
|
49
55
|
color: getTextColor(disabled, filled),
|
|
50
56
|
className: (0, _classify.default)(_DayModule.default.calendarRowItem, {
|
|
@@ -52,6 +58,10 @@ const Day = _ref => {
|
|
|
52
58
|
[_DayModule.default.calendarRowItemFilled]: !disabled && filled,
|
|
53
59
|
[_DayModule.default.calendarRowItemOutlined]: outlined
|
|
54
60
|
}),
|
|
61
|
+
testId: (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: `day-text-${date}`
|
|
64
|
+
}),
|
|
55
65
|
children: value
|
|
56
66
|
})
|
|
57
67
|
});
|
|
@@ -15,19 +15,23 @@ export type DialogSemanticType = (typeof DIALOG_SEMANTIC)[keyof typeof DIALOG_SE
|
|
|
15
15
|
export interface DialogHeaderProps {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
className?: string;
|
|
18
|
+
testId?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface DialogFooterProps {
|
|
20
21
|
children?: React.ReactNode;
|
|
21
22
|
classNames?: FooterClassNames;
|
|
23
|
+
testId?: string;
|
|
22
24
|
}
|
|
23
25
|
export interface DialogBodyProps {
|
|
24
26
|
children?: React.ReactNode;
|
|
25
27
|
className?: string;
|
|
28
|
+
testId?: string;
|
|
26
29
|
}
|
|
27
30
|
export type DialogPropsBase = ModalProps;
|
|
28
31
|
export interface DialogProps extends Omit<DialogPropsBase, 'semantic' | 'iconName'> {
|
|
29
32
|
semantic?: DialogSemanticType;
|
|
30
33
|
iconName?: string;
|
|
34
|
+
testId?: string;
|
|
31
35
|
}
|
|
32
36
|
export interface BasicDialogProps extends Omit<DialogProps, 'heading' | 'body' | 'confirmText' | 'abortText' | 'handleConfirm' | 'handleAbort'> {
|
|
33
37
|
heading?: React.ReactNode;
|
|
@@ -36,11 +40,12 @@ export interface BasicDialogProps extends Omit<DialogProps, 'heading' | 'body' |
|
|
|
36
40
|
abortText?: string;
|
|
37
41
|
handleConfirm?: (event: React.SyntheticEvent) => unknown;
|
|
38
42
|
handleAbort?: (event: React.SyntheticEvent) => unknown;
|
|
43
|
+
testId?: string;
|
|
39
44
|
}
|
|
40
|
-
export declare const DialogHeader: ({ children, className }: DialogHeaderProps) => React.JSX.Element;
|
|
41
|
-
export declare const DialogBody: ({ children, className }: DialogBodyProps) => React.JSX.Element;
|
|
42
|
-
export declare const DialogFooter: ({ children, classNames }: DialogFooterProps) => React.JSX.Element;
|
|
43
|
-
export declare const Dialog: ({ children, isOpen, hideBackdrop, onClose, tapOutsideToClose, iconName, semantic, classNames, ...restDialogProps }: DialogProps) => React.JSX.Element;
|
|
44
|
-
export declare const BasicDialog: ({ heading, body, confirmText, abortText, handleConfirm, handleAbort, ...restDialogProps }: BasicDialogProps) => React.JSX.Element;
|
|
45
|
+
export declare const DialogHeader: ({ children, className, testId, }: DialogHeaderProps) => React.JSX.Element;
|
|
46
|
+
export declare const DialogBody: ({ children, className, testId }: DialogBodyProps) => React.JSX.Element;
|
|
47
|
+
export declare const DialogFooter: ({ children, classNames, testId, }: DialogFooterProps) => React.JSX.Element;
|
|
48
|
+
export declare const Dialog: ({ children, isOpen, hideBackdrop, onClose, tapOutsideToClose, iconName, semantic, classNames, testId, ...restDialogProps }: DialogProps) => React.JSX.Element;
|
|
49
|
+
export declare const BasicDialog: ({ heading, body, confirmText, abortText, handleConfirm, handleAbort, testId, ...restDialogProps }: BasicDialogProps) => React.JSX.Element;
|
|
45
50
|
export {};
|
|
46
51
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMrD,KAAK,gBAAgB,GAAG,QAAQ,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;EAM1B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAA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require("react"));
|
|
8
8
|
var _typography = require("../../types/typography");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Button = require("../Button");
|
|
11
12
|
var _Icon = require("../Icon");
|
|
12
13
|
var _Modal = require("../Modal");
|
|
@@ -24,55 +25,85 @@ const DIALOG_SEMANTIC = exports.DIALOG_SEMANTIC = Object.freeze({
|
|
|
24
25
|
const DialogIcon = _ref => {
|
|
25
26
|
let {
|
|
26
27
|
semantic,
|
|
27
|
-
iconName
|
|
28
|
+
iconName,
|
|
29
|
+
testId
|
|
28
30
|
} = _ref;
|
|
29
31
|
switch (semantic) {
|
|
30
32
|
case DIALOG_SEMANTIC.neutral:
|
|
31
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
32
34
|
color: _typography.TEXT_COLORS.neutral,
|
|
33
35
|
name: iconName ? iconName : 'face-smile',
|
|
34
|
-
type: "solid"
|
|
36
|
+
type: "solid",
|
|
37
|
+
testId: (0, _qa.generateTestId)({
|
|
38
|
+
base: testId,
|
|
39
|
+
slot: 'icon'
|
|
40
|
+
})
|
|
35
41
|
});
|
|
36
42
|
case DIALOG_SEMANTIC.success:
|
|
37
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
38
44
|
name: iconName ? iconName : 'circle-check',
|
|
39
45
|
color: _typography.TEXT_COLORS.success,
|
|
40
|
-
type: "solid"
|
|
46
|
+
type: "solid",
|
|
47
|
+
testId: (0, _qa.generateTestId)({
|
|
48
|
+
base: testId,
|
|
49
|
+
slot: 'icon'
|
|
50
|
+
})
|
|
41
51
|
});
|
|
42
52
|
case DIALOG_SEMANTIC.information:
|
|
43
53
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
44
54
|
name: iconName ? iconName : 'circle-info',
|
|
45
55
|
color: _typography.TEXT_COLORS.information,
|
|
46
|
-
type: "solid"
|
|
56
|
+
type: "solid",
|
|
57
|
+
testId: (0, _qa.generateTestId)({
|
|
58
|
+
base: testId,
|
|
59
|
+
slot: 'icon'
|
|
60
|
+
})
|
|
47
61
|
});
|
|
48
62
|
case DIALOG_SEMANTIC.warning:
|
|
49
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
50
64
|
name: iconName ? iconName : 'circle-exclamation',
|
|
51
65
|
color: _typography.TEXT_COLORS.warning,
|
|
52
|
-
type: "solid"
|
|
66
|
+
type: "solid",
|
|
67
|
+
testId: (0, _qa.generateTestId)({
|
|
68
|
+
base: testId,
|
|
69
|
+
slot: 'icon'
|
|
70
|
+
})
|
|
53
71
|
});
|
|
54
72
|
case DIALOG_SEMANTIC.danger:
|
|
55
73
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
56
74
|
name: iconName ? iconName : 'shield-exclamation',
|
|
57
75
|
color: _typography.TEXT_COLORS.danger,
|
|
58
|
-
type: "solid"
|
|
76
|
+
type: "solid",
|
|
77
|
+
testId: (0, _qa.generateTestId)({
|
|
78
|
+
base: testId,
|
|
79
|
+
slot: 'icon'
|
|
80
|
+
})
|
|
59
81
|
});
|
|
60
82
|
default:
|
|
61
83
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
62
84
|
color: _typography.TEXT_COLORS.neutral,
|
|
63
85
|
name: iconName ? iconName : 'face-smile',
|
|
64
|
-
type: "solid"
|
|
86
|
+
type: "solid",
|
|
87
|
+
testId: (0, _qa.generateTestId)({
|
|
88
|
+
base: testId,
|
|
89
|
+
slot: 'icon'
|
|
90
|
+
})
|
|
65
91
|
});
|
|
66
92
|
}
|
|
67
93
|
};
|
|
68
94
|
const DialogHeader = _ref2 => {
|
|
69
95
|
let {
|
|
70
96
|
children,
|
|
71
|
-
className
|
|
97
|
+
className,
|
|
98
|
+
testId
|
|
72
99
|
} = _ref2;
|
|
73
100
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
74
101
|
children: React.Children.count(children) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
75
102
|
className: (0, _classify.default)(_DialogModule.default.dialogHeader, className),
|
|
103
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
104
|
+
base: testId,
|
|
105
|
+
slot: 'header'
|
|
106
|
+
}),
|
|
76
107
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
77
108
|
className: _DialogModule.default.headerContent,
|
|
78
109
|
children: children
|
|
@@ -84,10 +115,15 @@ exports.DialogHeader = DialogHeader;
|
|
|
84
115
|
const DialogBody = _ref3 => {
|
|
85
116
|
let {
|
|
86
117
|
children,
|
|
87
|
-
className
|
|
118
|
+
className,
|
|
119
|
+
testId
|
|
88
120
|
} = _ref3;
|
|
89
121
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
90
122
|
className: (0, _classify.default)(_DialogModule.default.dialogBody, className),
|
|
123
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
124
|
+
base: testId,
|
|
125
|
+
slot: 'body'
|
|
126
|
+
}),
|
|
91
127
|
children: children
|
|
92
128
|
});
|
|
93
129
|
};
|
|
@@ -95,13 +131,22 @@ exports.DialogBody = DialogBody;
|
|
|
95
131
|
const DialogFooter = _ref4 => {
|
|
96
132
|
let {
|
|
97
133
|
children,
|
|
98
|
-
classNames
|
|
134
|
+
classNames,
|
|
135
|
+
testId
|
|
99
136
|
} = _ref4;
|
|
100
137
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
101
138
|
children: React.Children.count(children) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
102
139
|
className: (0, _classify.default)(_DialogModule.default.dialogFooter, classNames?.wrapper),
|
|
140
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
141
|
+
base: testId,
|
|
142
|
+
slot: 'footer'
|
|
143
|
+
}),
|
|
103
144
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
104
145
|
className: (0, _classify.default)(_DialogModule.default.dialogFooterActions, classNames?.actions),
|
|
146
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
147
|
+
base: testId,
|
|
148
|
+
slot: 'actions'
|
|
149
|
+
}),
|
|
105
150
|
children: children
|
|
106
151
|
})
|
|
107
152
|
})
|
|
@@ -118,6 +163,7 @@ const Dialog = _ref5 => {
|
|
|
118
163
|
iconName = '',
|
|
119
164
|
semantic = 'neutral',
|
|
120
165
|
classNames,
|
|
166
|
+
testId,
|
|
121
167
|
...restDialogProps
|
|
122
168
|
} = _ref5;
|
|
123
169
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Modal.Modal, {
|
|
@@ -125,6 +171,7 @@ const Dialog = _ref5 => {
|
|
|
125
171
|
onClose: onClose,
|
|
126
172
|
hideBackdrop: hideBackdrop,
|
|
127
173
|
tapOutsideToClose: tapOutsideToClose,
|
|
174
|
+
testId: testId,
|
|
128
175
|
...restDialogProps,
|
|
129
176
|
classNames: {
|
|
130
177
|
content: (0, _classify.default)(_DialogModule.default.dialog, classNames?.content),
|
|
@@ -141,9 +188,14 @@ const Dialog = _ref5 => {
|
|
|
141
188
|
[_DialogModule.default.warning]: semantic === DIALOG_SEMANTIC.warning,
|
|
142
189
|
[_DialogModule.default.danger]: semantic === DIALOG_SEMANTIC.danger
|
|
143
190
|
}),
|
|
191
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
192
|
+
base: testId,
|
|
193
|
+
slot: 'icon-container'
|
|
194
|
+
}),
|
|
144
195
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogIcon, {
|
|
145
196
|
semantic: semantic,
|
|
146
|
-
iconName: iconName
|
|
197
|
+
iconName: iconName,
|
|
198
|
+
testId: testId
|
|
147
199
|
})
|
|
148
200
|
})
|
|
149
201
|
}), children]
|
|
@@ -158,23 +210,36 @@ const BasicDialog = _ref6 => {
|
|
|
158
210
|
abortText,
|
|
159
211
|
handleConfirm,
|
|
160
212
|
handleAbort,
|
|
213
|
+
testId,
|
|
161
214
|
...restDialogProps
|
|
162
215
|
} = _ref6;
|
|
163
216
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Dialog, {
|
|
164
217
|
...restDialogProps,
|
|
218
|
+
testId: testId,
|
|
165
219
|
children: [!!heading && /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogHeader, {
|
|
220
|
+
testId: testId,
|
|
166
221
|
children: heading
|
|
167
222
|
}), !!body && /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogBody, {
|
|
223
|
+
testId: testId,
|
|
168
224
|
children: body
|
|
169
225
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(DialogFooter, {
|
|
226
|
+
testId: testId,
|
|
170
227
|
children: [!!abortText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
171
228
|
isFluid: true,
|
|
172
229
|
type: "tertiary",
|
|
173
230
|
onClick: handleAbort,
|
|
231
|
+
testId: (0, _qa.generateTestId)({
|
|
232
|
+
base: testId,
|
|
233
|
+
slot: 'abort-button'
|
|
234
|
+
}),
|
|
174
235
|
children: abortText
|
|
175
236
|
}), !!confirmText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
176
237
|
isFluid: true,
|
|
177
238
|
onClick: handleConfirm,
|
|
239
|
+
testId: (0, _qa.generateTestId)({
|
|
240
|
+
base: testId,
|
|
241
|
+
slot: 'confirm-button'
|
|
242
|
+
}),
|
|
178
243
|
children: confirmText
|
|
179
244
|
})]
|
|
180
245
|
})]
|
|
@@ -19,6 +19,7 @@ export interface DropdownProps extends Omit<InputProps, 'classNames' | 'onChange
|
|
|
19
19
|
menu?: MenuProps;
|
|
20
20
|
elevation?: ElevationType;
|
|
21
21
|
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
22
|
+
testId?: string;
|
|
22
23
|
}
|
|
23
24
|
export declare const Dropdown: Flow.AbstractComponent<DropdownProps, HTMLInputElement>;
|
|
24
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAK3D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE/D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAM1D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,UAAU,EACR,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,aAAa,GACb,oBAAoB,GACpB,mBAAmB,GACnB,MAAM,GACN,WAAW,GACX,cAAc,CACjB;IACD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,CAgJ1E,CAAC"}
|
|
@@ -11,6 +11,7 @@ var _space = require("../../styles/variables/_space");
|
|
|
11
11
|
var _classify = require("../../utils/classify");
|
|
12
12
|
var _clickAway = require("../../utils/click-away");
|
|
13
13
|
var _mergeRefs = require("../../utils/merge-refs");
|
|
14
|
+
var _qa = require("../../utils/qa");
|
|
14
15
|
var _Input = require("../Input");
|
|
15
16
|
var _Menu = require("../Menu");
|
|
16
17
|
var _Tooltip = require("../Tooltip");
|
|
@@ -31,6 +32,7 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
31
32
|
dropdownInputText = '',
|
|
32
33
|
clickAwayRef,
|
|
33
34
|
elevation = 'modal',
|
|
35
|
+
testId,
|
|
34
36
|
...inputProps
|
|
35
37
|
} = _ref;
|
|
36
38
|
const menuRef = React.useRef(null);
|
|
@@ -71,7 +73,10 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
71
73
|
} = _ref2;
|
|
72
74
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
73
75
|
className: (0, _classify.classify)(_DropdownModule.default.dropdownContainer, classNames?.wrapper),
|
|
74
|
-
"data-testid":
|
|
76
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
77
|
+
base: testId,
|
|
78
|
+
slot: 'root'
|
|
79
|
+
}),
|
|
75
80
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.Input, {
|
|
76
81
|
...inputProps,
|
|
77
82
|
onKeyDown: e => {
|
|
@@ -98,7 +103,11 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
98
103
|
e.stopPropagation();
|
|
99
104
|
onOpen();
|
|
100
105
|
},
|
|
101
|
-
ref: ref
|
|
106
|
+
ref: ref,
|
|
107
|
+
testId: (0, _qa.generateTestId)({
|
|
108
|
+
base: testId,
|
|
109
|
+
slot: 'input'
|
|
110
|
+
})
|
|
102
111
|
}), isOpen && menu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingPortal, {
|
|
103
112
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingFocusManager, {
|
|
104
113
|
modal: false,
|
|
@@ -107,6 +116,10 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
107
116
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
108
117
|
ref: (0, _mergeRefs.mergeRefs)([refs.setFloating, boundaryRef]),
|
|
109
118
|
className: _DropdownModule.default.menuWrapper,
|
|
119
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
120
|
+
base: testId,
|
|
121
|
+
slot: 'menu-wrapper'
|
|
122
|
+
}),
|
|
110
123
|
style: {
|
|
111
124
|
position: strategy,
|
|
112
125
|
top: y ?? _space.spaceNone,
|
|
@@ -123,6 +136,10 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
123
136
|
},
|
|
124
137
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Menu.Menu, {
|
|
125
138
|
...menu,
|
|
139
|
+
testId: (0, _qa.generateTestId)({
|
|
140
|
+
base: testId,
|
|
141
|
+
slot: 'menu'
|
|
142
|
+
}),
|
|
126
143
|
onSelect: (option, e) => {
|
|
127
144
|
onChange?.(option, e);
|
|
128
145
|
if (
|
|
@@ -37,6 +37,7 @@ export interface SimpleDropdownProps extends Omit<InputProps, 'elevation' | 'cla
|
|
|
37
37
|
onMenuClose?: () => unknown;
|
|
38
38
|
resolveLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
39
39
|
resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
40
|
+
testId?: string;
|
|
40
41
|
}
|
|
41
42
|
export declare const SimpleDropdown: Flow.AbstractComponent<SimpleDropdownProps, SimpleDropdownRef>;
|
|
42
43
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/SimpleDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAO3D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAG1D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AA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C;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA+GD,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,mBAAmB,EACnB,iBAAiB,CAGlB,CAAC"}
|
|
@@ -33,6 +33,7 @@ const SimpleDropdownBase = (props, ref) => {
|
|
|
33
33
|
clickAwayRef,
|
|
34
34
|
allowWrap = false,
|
|
35
35
|
staticLabels,
|
|
36
|
+
testId,
|
|
36
37
|
...inputProps
|
|
37
38
|
} = props;
|
|
38
39
|
const [dropdownInputText, setDropdownInputText] = React.useState('');
|
|
@@ -71,6 +72,7 @@ const SimpleDropdownBase = (props, ref) => {
|
|
|
71
72
|
onMenuClose: onMenuClose,
|
|
72
73
|
dropdownInputText: dropdownInputText,
|
|
73
74
|
clickAwayRef: clickAwayRef,
|
|
75
|
+
testId: testId,
|
|
74
76
|
menu: {
|
|
75
77
|
options,
|
|
76
78
|
selectedKeys: dropdownSelectedKeys,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAiBrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC7E,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,CAoEf,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.EmptyState = 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 _EmptyImages = require("./EmptyImages");
|
|
10
11
|
var _EmptyStateModule = _interopRequireDefault(require("./EmptyState.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -19,27 +20,51 @@ const EmptyState = exports.EmptyState = /*#__PURE__*/React.forwardRef((_ref, ref
|
|
|
19
20
|
title,
|
|
20
21
|
description,
|
|
21
22
|
customImageUrl,
|
|
23
|
+
testId,
|
|
22
24
|
...props
|
|
23
25
|
} = _ref;
|
|
24
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
25
27
|
...props,
|
|
26
|
-
"data-testid":
|
|
28
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
29
|
+
base: testId,
|
|
30
|
+
slot: 'emptyState'
|
|
31
|
+
}),
|
|
27
32
|
className: (0, _classify.default)(_EmptyStateModule.default.wrapper, classNames?.wrapper),
|
|
28
33
|
ref: ref,
|
|
29
34
|
children: [!!imageVariant && !customImageUrl && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
35
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
36
|
+
base: testId,
|
|
37
|
+
slot: 'image'
|
|
38
|
+
}),
|
|
30
39
|
className: (0, _classify.default)(_EmptyStateModule.default.image, classNames?.image),
|
|
31
40
|
children: [imageVariant === 'calendar' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyImages.CalendarEmptyImage, {}), imageVariant === 'data' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyImages.DataEmptyImage, {}), imageVariant === 'file' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyImages.FileEmptyImage, {}), imageVariant === 'message' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyImages.MessageEmptyImage, {}), imageVariant === 'upload' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyImages.UploadEmptyImage, {}), imageVariant === 'chart' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyImages.ChartEmptyImage, {})]
|
|
32
41
|
}), customImageUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
42
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
43
|
+
base: testId,
|
|
44
|
+
slot: 'image'
|
|
45
|
+
}),
|
|
33
46
|
className: (0, _classify.default)(_EmptyStateModule.default.image, classNames?.image),
|
|
34
47
|
src: customImageUrl,
|
|
35
48
|
alt: "Empty State"
|
|
36
49
|
}), !!title && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
50
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
51
|
+
base: testId,
|
|
52
|
+
slot: 'title'
|
|
53
|
+
}),
|
|
37
54
|
className: (0, _classify.default)(_EmptyStateModule.default.title, classNames?.title),
|
|
38
55
|
children: title
|
|
39
56
|
}), !!description && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
57
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
58
|
+
base: testId,
|
|
59
|
+
slot: 'description'
|
|
60
|
+
}),
|
|
40
61
|
className: (0, _classify.default)(_EmptyStateModule.default.description, classNames?.description),
|
|
41
62
|
children: description
|
|
42
63
|
}), !!children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
64
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
65
|
+
base: testId,
|
|
66
|
+
slot: 'children'
|
|
67
|
+
}),
|
|
43
68
|
className: (0, _classify.default)(_EmptyStateModule.default.childrenWrapper, classNames?.children),
|
|
44
69
|
children: children
|
|
45
70
|
})]
|
|
@@ -16,6 +16,7 @@ export interface ErrorMessageProps {
|
|
|
16
16
|
description?: React.ReactNode;
|
|
17
17
|
heading?: React.ReactNode;
|
|
18
18
|
customImageUrl?: string;
|
|
19
|
+
testId?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare const ErrorMessage: Flow.AbstractComponent<ErrorMessageProps, HTMLDivElement>;
|
|
21
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorMessage/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorMessage/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAerD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,UAAU,GAAG,aAAa,CAAC;IACzE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,iBAAiB,EACjB,cAAc,CA2Ef,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ErrorMessage = 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 _ErrorImages = require("./ErrorImages");
|
|
10
11
|
var _ErrorMessageModule = _interopRequireDefault(require("./ErrorMessage.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -20,30 +21,58 @@ const ErrorMessage = exports.ErrorMessage = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
20
21
|
description,
|
|
21
22
|
customImageUrl,
|
|
22
23
|
heading,
|
|
24
|
+
testId,
|
|
23
25
|
...props
|
|
24
26
|
} = _ref;
|
|
25
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
26
28
|
...props,
|
|
27
|
-
"data-testid":
|
|
29
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
30
|
+
base: testId,
|
|
31
|
+
slot: 'errorMessage'
|
|
32
|
+
}),
|
|
28
33
|
className: (0, _classify.default)(_ErrorMessageModule.default.wrapper, classNames?.wrapper),
|
|
29
34
|
ref: ref,
|
|
30
35
|
children: [!!imageVariant && !customImageUrl && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
36
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
37
|
+
base: testId,
|
|
38
|
+
slot: 'image'
|
|
39
|
+
}),
|
|
31
40
|
className: (0, _classify.default)(_ErrorMessageModule.default.image, classNames?.image),
|
|
32
41
|
children: [imageVariant === 'unauthorized' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorImages.UnauthorizedImage, {}), imageVariant === 'forbidden' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorImages.ForbiddenImage, {}), imageVariant === 'notFound' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorImages.NotFoundImage, {}), imageVariant === 'serverError' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorImages.ServerErrorImage, {})]
|
|
33
42
|
}), customImageUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
43
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
44
|
+
base: testId,
|
|
45
|
+
slot: 'image'
|
|
46
|
+
}),
|
|
34
47
|
className: (0, _classify.default)(_ErrorMessageModule.default.image, classNames?.image),
|
|
35
48
|
src: customImageUrl,
|
|
36
49
|
alt: "Empty State"
|
|
37
50
|
}), !!heading && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
52
|
+
base: testId,
|
|
53
|
+
slot: 'heading'
|
|
54
|
+
}),
|
|
38
55
|
className: (0, _classify.default)(_ErrorMessageModule.default.heading, classNames?.heading),
|
|
39
56
|
children: heading
|
|
40
57
|
}), !!title && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
59
|
+
base: testId,
|
|
60
|
+
slot: 'title'
|
|
61
|
+
}),
|
|
41
62
|
className: (0, _classify.default)(_ErrorMessageModule.default.title, classNames?.title),
|
|
42
63
|
children: title
|
|
43
64
|
}), !!description && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
66
|
+
base: testId,
|
|
67
|
+
slot: 'description'
|
|
68
|
+
}),
|
|
44
69
|
className: (0, _classify.default)(_ErrorMessageModule.default.description, classNames?.description),
|
|
45
70
|
children: description
|
|
46
71
|
}), !!children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
73
|
+
base: testId,
|
|
74
|
+
slot: 'children'
|
|
75
|
+
}),
|
|
47
76
|
className: (0, _classify.default)(_ErrorMessageModule.default.childrenWrapper, classNames?.children),
|
|
48
77
|
children: children
|
|
49
78
|
})]
|
|
@@ -9,6 +9,7 @@ export interface FileBlockProps {
|
|
|
9
9
|
onFileRefreshClick?: (file: FileObject) => unknown;
|
|
10
10
|
handleFileClear?: (id: string) => unknown;
|
|
11
11
|
showRemoveFile?: boolean;
|
|
12
|
+
testId?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const FileBlock: Flow.AbstractComponent<FileBlockProps, HTMLDivElement>;
|
|
14
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileBlock/FileBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"FileBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileBlock/FileBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAQrE,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC;IACnD,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CA0G1E,CAAC"}
|