@spaced-out/ui-design-system 0.4.13 → 0.4.15-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/.cspell/custom-words.txt +6 -0
- package/.github/workflows/publish_to_npm.yml +38 -17
- package/.storybook/main.js +6 -6
- package/CHANGELOG.md +10 -0
- package/babel.config.js +1 -1
- package/config.js +3 -3
- package/cspell.json +3 -1
- package/eslint.config.mjs +214 -0
- package/gulpfile.js +6 -35
- package/lib/components/Accordion/Accordion.d.ts +21 -0
- package/lib/components/Accordion/Accordion.d.ts.map +1 -0
- package/lib/components/Accordion/Accordion.js +3 -1
- package/lib/components/Accordion/AccordionGroup.d.ts +17 -0
- package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -0
- package/lib/components/Accordion/AccordionGroup.js +3 -0
- package/lib/components/Accordion/index.d.ts +3 -0
- package/lib/components/Accordion/index.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.d.ts +60 -0
- package/lib/components/Avatar/Avatar.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.js +14 -6
- package/lib/components/Avatar/index.d.ts +2 -0
- package/lib/components/Avatar/index.d.ts.map +1 -0
- package/lib/components/AvatarGroup/AvatarGroup.d.ts +15 -0
- package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
- package/lib/components/AvatarGroup/AvatarGroup.js +5 -0
- package/lib/components/AvatarGroup/index.d.ts +2 -0
- package/lib/components/AvatarGroup/index.d.ts.map +1 -0
- package/lib/components/Badge/Badge.d.ts +40 -0
- package/lib/components/Badge/Badge.d.ts.map +1 -0
- package/lib/components/Badge/index.d.ts +2 -0
- package/lib/components/Badge/index.d.ts.map +1 -0
- package/lib/components/BadgedIcon/BadgedIcon.d.ts +18 -0
- package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -0
- package/lib/components/BadgedIcon/BadgedIcon.js +3 -1
- package/lib/components/BadgedIcon/index.d.ts +2 -0
- package/lib/components/BadgedIcon/index.d.ts.map +1 -0
- package/lib/components/Banner/Banner.d.ts +7 -0
- package/lib/components/Banner/Banner.d.ts.map +1 -0
- package/lib/components/Banner/index.d.ts +2 -0
- package/lib/components/Banner/index.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +10 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +3 -1
- package/lib/components/Breadcrumbs/BreadcrumbLink/index.d.ts +2 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/index.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +14 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.js +5 -1
- package/lib/components/Breadcrumbs/index.d.ts +3 -0
- package/lib/components/Breadcrumbs/index.d.ts.map +1 -0
- package/lib/components/Button/Button.d.ts +64 -0
- package/lib/components/Button/Button.d.ts.map +1 -0
- package/lib/components/Button/Button.js +26 -8
- package/lib/components/Button/index.d.ts +3 -0
- package/lib/components/Button/index.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +40 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.js +13 -3
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +42 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +6 -0
- package/lib/components/ButtonDropdown/index.d.ts +3 -0
- package/lib/components/ButtonDropdown/index.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +25 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTab/index.d.ts +2 -0
- package/lib/components/ButtonTabs/ButtonTab/index.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +12 -0
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTabDropdown.js +12 -3
- package/lib/components/ButtonTabs/ButtonTabs.d.ts +24 -0
- package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTabs.js +3 -0
- package/lib/components/ButtonTabs/index.d.ts +3 -0
- package/lib/components/ButtonTabs/index.d.ts.map +1 -0
- package/lib/components/Card/Card.d.ts +37 -0
- package/lib/components/Card/Card.d.ts.map +1 -0
- package/lib/components/Card/Card.js +6 -1
- package/lib/components/Card/index.d.ts +2 -0
- package/lib/components/Card/index.d.ts.map +1 -0
- package/lib/components/Charts/ChartTooltip/index.d.ts +3 -0
- package/lib/components/Charts/ChartTooltip/index.d.ts.map +1 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +50 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +1 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js +5 -7
- package/lib/components/Charts/ChartWrapper/index.d.ts +2 -0
- package/lib/components/Charts/ChartWrapper/index.d.ts.map +1 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +23 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.js +8 -6
- package/lib/components/Charts/ColumnChart/index.d.ts +2 -0
- package/lib/components/Charts/ColumnChart/index.d.ts.map +1 -0
- package/lib/components/Charts/DonutChart/DonutChart.d.ts +28 -0
- package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -0
- package/lib/components/Charts/DonutChart/DonutChart.js +7 -6
- package/lib/components/Charts/DonutChart/index.d.ts +2 -0
- package/lib/components/Charts/DonutChart/index.d.ts.map +1 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +25 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.js +6 -7
- package/lib/components/Charts/FunnelChart/index.d.ts +2 -0
- package/lib/components/Charts/FunnelChart/index.d.ts.map +1 -0
- package/lib/components/Charts/LineChart/LineChart.d.ts +23 -0
- package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -0
- package/lib/components/Charts/LineChart/LineChart.js +6 -6
- package/lib/components/Charts/LineChart/index.d.ts +2 -0
- package/lib/components/Charts/LineChart/index.d.ts.map +1 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +22 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.js +0 -5
- package/lib/components/Charts/SpiderChart/index.d.ts +2 -0
- package/lib/components/Charts/SpiderChart/index.d.ts.map +1 -0
- package/lib/components/Charts/index.d.ts +8 -0
- package/lib/components/Charts/index.d.ts.map +1 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts +76 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -0
- package/lib/components/ChatBubble/ChatBubble.js +5 -2
- package/lib/components/ChatBubble/index.d.ts +2 -0
- package/lib/components/ChatBubble/index.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts +29 -0
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.js +2 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts +26 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/lib/components/Checkbox/CheckboxGroup.js +8 -0
- package/lib/components/Checkbox/index.d.ts +3 -0
- package/lib/components/Checkbox/index.d.ts.map +1 -0
- package/lib/components/Chip/Chip.d.ts +47 -0
- package/lib/components/Chip/Chip.d.ts.map +1 -0
- package/lib/components/Chip/Chip.js +10 -2
- package/lib/components/Chip/index.d.ts +3 -0
- package/lib/components/Chip/index.d.ts.map +1 -0
- package/lib/components/CircularLoader/CircularLoader.d.ts +10 -0
- package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -0
- package/lib/components/CircularLoader/index.d.ts +2 -0
- package/lib/components/CircularLoader/index.d.ts.map +1 -0
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +40 -0
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -0
- package/lib/components/CollapsibleCard/index.d.ts +2 -0
- package/lib/components/CollapsibleCard/index.d.ts.map +1 -0
- package/lib/components/Combobox/Combobox.d.ts +78 -0
- package/lib/components/Combobox/Combobox.d.ts.map +1 -0
- package/lib/components/Combobox/Combobox.js +16 -3
- package/lib/components/Combobox/helper.d.ts +12 -0
- package/lib/components/Combobox/helper.d.ts.map +1 -0
- package/lib/components/Combobox/helper.js +1 -0
- package/lib/components/Combobox/index.d.ts +2 -0
- package/lib/components/Combobox/index.d.ts.map +1 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +8 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts.map +1 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.js +0 -2
- package/lib/components/ConditionalWrapper/index.d.ts +2 -0
- package/lib/components/ConditionalWrapper/index.d.ts.map +1 -0
- package/lib/components/DateRangePicker/Calendar.d.ts +22 -0
- package/lib/components/DateRangePicker/Calendar.d.ts.map +1 -0
- package/lib/components/DateRangePicker/Calendar.js +4 -2
- package/lib/components/DateRangePicker/DateRangePicker.d.ts +22 -0
- package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/lib/components/DateRangePicker/DateRangePicker.js +0 -1
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +33 -0
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -0
- package/lib/components/DateRangePicker/DateRangeWrapper.js +13 -5
- package/lib/components/DateRangePicker/Day.d.ts +17 -0
- package/lib/components/DateRangePicker/Day.d.ts.map +1 -0
- package/lib/components/DateRangePicker/Day.js +6 -4
- package/lib/components/DateRangePicker/index.d.ts +2 -0
- package/lib/components/DateRangePicker/index.d.ts.map +1 -0
- package/lib/components/Dialog/Dialog.d.ts +46 -0
- package/lib/components/Dialog/Dialog.d.ts.map +1 -0
- package/lib/components/Dialog/index.d.ts +2 -0
- package/lib/components/Dialog/index.d.ts.map +1 -0
- package/lib/components/Disclaimer/Disclaimer.d.ts +5 -0
- package/lib/components/Disclaimer/Disclaimer.d.ts.map +1 -0
- package/lib/components/Disclaimer/Disclaimer.js +1 -0
- package/lib/components/Disclaimer/index.d.ts +2 -0
- package/lib/components/Disclaimer/index.d.ts.map +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts +25 -0
- package/lib/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/lib/components/Dropdown/Dropdown.js +14 -3
- package/lib/components/Dropdown/SimpleDropdown.d.ts +44 -0
- package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
- package/lib/components/Dropdown/SimpleDropdown.js +7 -1
- package/lib/components/Dropdown/index.d.ts +3 -0
- package/lib/components/Dropdown/index.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/DataEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/DataEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/FileEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/FileEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/index.d.ts +7 -0
- package/lib/components/EmptyState/EmptyImages/index.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyState.d.ts +20 -0
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/lib/components/EmptyState/index.d.ts +2 -0
- package/lib/components/EmptyState/index.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/index.d.ts +5 -0
- package/lib/components/ErrorMessage/ErrorImages/index.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorMessage.d.ts +22 -0
- package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/index.d.ts +2 -0
- package/lib/components/ErrorMessage/index.d.ts.map +1 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +14 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -0
- package/lib/components/FileUpload/FileBlock/index.d.ts +2 -0
- package/lib/components/FileUpload/FileBlock/index.d.ts.map +1 -0
- package/lib/components/FileUpload/FileUpload.d.ts +62 -0
- package/lib/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/lib/components/FileUpload/FileUpload.js +6 -1
- package/lib/components/FileUpload/index.d.ts +3 -0
- package/lib/components/FileUpload/index.d.ts.map +1 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +30 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +9 -1
- package/lib/components/FilterButtonOverlay/index.d.ts +2 -0
- package/lib/components/FilterButtonOverlay/index.d.ts.map +1 -0
- package/lib/components/FocusManager/FocusManager.d.ts +15 -0
- package/lib/components/FocusManager/FocusManager.d.ts.map +1 -0
- package/lib/components/FocusManager/index.d.ts +2 -0
- package/lib/components/FocusManager/index.d.ts.map +1 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +19 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +11 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/index.d.ts +2 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/index.d.ts.map +1 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +21 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -0
- package/lib/components/FormTitleWrapper/index.d.ts +2 -0
- package/lib/components/FormTitleWrapper/index.d.ts.map +1 -0
- package/lib/components/Grid/Grid.d.ts +20 -0
- package/lib/components/Grid/Grid.d.ts.map +1 -0
- package/lib/components/Grid/Grid.js +8 -0
- package/lib/components/Grid/index.d.ts +2 -0
- package/lib/components/Grid/index.d.ts.map +1 -0
- package/lib/components/Icon/ClickableIcon.d.ts +26 -0
- package/lib/components/Icon/ClickableIcon.d.ts.map +1 -0
- package/lib/components/Icon/ClickableIcon.js +4 -2
- package/lib/components/Icon/Icon.d.ts +31 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -0
- package/lib/components/Icon/Icon.docs.d.ts +134 -0
- package/lib/components/Icon/Icon.docs.d.ts.map +1 -0
- package/lib/components/Icon/Icon.docs.js +1 -1
- package/lib/components/Icon/Icon.js +3 -1
- package/lib/components/Icon/SemanticIcon.d.ts +14 -0
- package/lib/components/Icon/SemanticIcon.d.ts.map +1 -0
- package/lib/components/Icon/SemanticIcon.js +3 -1
- package/lib/components/Icon/index.d.ts +4 -0
- package/lib/components/Icon/index.d.ts.map +1 -0
- package/lib/components/InContextAlert/InContextAlert.d.ts +31 -0
- package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -0
- package/lib/components/InContextAlert/InContextAlert.js +2 -0
- package/lib/components/InContextAlert/index.d.ts +2 -0
- package/lib/components/InContextAlert/index.d.ts.map +1 -0
- package/lib/components/InfinitePagination/InfinitePagination.d.ts +26 -0
- package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +1 -0
- package/lib/components/InfinitePagination/InfinitePagination.js +9 -2
- package/lib/components/InfinitePagination/index.d.ts +2 -0
- package/lib/components/InfinitePagination/index.d.ts.map +1 -0
- package/lib/components/InlineDropdown/InlineDropdown.d.ts +25 -0
- package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -0
- package/lib/components/InlineDropdown/InlineDropdown.js +12 -3
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +40 -0
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -0
- package/lib/components/InlineDropdown/SimpleInlineDropdown.js +7 -0
- package/lib/components/InlineDropdown/index.d.ts +3 -0
- package/lib/components/InlineDropdown/index.d.ts.map +1 -0
- package/lib/components/Input/Input.d.ts +74 -0
- package/lib/components/Input/Input.d.ts.map +1 -0
- package/lib/components/Input/Input.js +15 -4
- package/lib/components/Input/index.d.ts +2 -0
- package/lib/components/Input/index.d.ts.map +1 -0
- package/lib/components/KPIBox/KPIBox.d.ts +24 -0
- package/lib/components/KPIBox/KPIBox.d.ts.map +1 -0
- package/lib/components/KPIBox/KPIBox.js +1 -1
- package/lib/components/KPIBox/index.d.ts +2 -0
- package/lib/components/KPIBox/index.d.ts.map +1 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts +9 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -0
- package/lib/components/LinearLoader/index.d.ts +2 -0
- package/lib/components/LinearLoader/index.d.ts.map +1 -0
- package/lib/components/Link/Link.d.ts +93 -0
- package/lib/components/Link/Link.d.ts.map +1 -0
- package/lib/components/Link/Link.js +16 -5
- package/lib/components/Link/index.d.ts +2 -0
- package/lib/components/Link/index.d.ts.map +1 -0
- package/lib/components/Menu/Menu.d.ts +74 -0
- package/lib/components/Menu/Menu.d.ts.map +1 -0
- package/lib/components/Menu/Menu.js +5 -2
- package/lib/components/Menu/MenuOptionButton.d.ts +9 -0
- package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -0
- package/lib/components/Menu/MenuOptionButton.js +6 -1
- package/lib/components/Menu/index.d.ts +3 -0
- package/lib/components/Menu/index.d.ts.map +1 -0
- package/lib/components/Modal/Modal.d.ts +64 -0
- package/lib/components/Modal/Modal.d.ts.map +1 -0
- package/lib/components/Modal/Modal.js +6 -2
- package/lib/components/Modal/index.d.ts +3 -0
- package/lib/components/Modal/index.d.ts.map +1 -0
- package/lib/components/Notification/Notification.d.ts +37 -0
- package/lib/components/Notification/Notification.d.ts.map +1 -0
- package/lib/components/Notification/Notification.js +1 -0
- package/lib/components/Notification/index.d.ts +2 -0
- package/lib/components/Notification/index.d.ts.map +1 -0
- package/lib/components/OptionButton/OptionButton.d.ts +33 -0
- package/lib/components/OptionButton/OptionButton.d.ts.map +1 -0
- package/lib/components/OptionButton/SimpleOptionButton.d.ts +47 -0
- package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -0
- package/lib/components/OptionButton/SimpleOptionButton.js +4 -0
- package/lib/components/OptionButton/index.d.ts +3 -0
- package/lib/components/OptionButton/index.d.ts.map +1 -0
- package/lib/components/PageTitle/PageTitle.d.ts +156 -0
- package/lib/components/PageTitle/PageTitle.d.ts.map +1 -0
- package/lib/components/PageTitle/PageTitle.js +7 -2
- package/lib/components/PageTitle/index.d.ts +2 -0
- package/lib/components/PageTitle/index.d.ts.map +1 -0
- package/lib/components/Pagination/Pagination.d.ts +39 -0
- package/lib/components/Pagination/Pagination.d.ts.map +1 -0
- package/lib/components/Pagination/Pagination.js +3 -1
- package/lib/components/Pagination/PaginationItem.d.ts +5 -0
- package/lib/components/Pagination/PaginationItem.d.ts.map +1 -0
- package/lib/components/Pagination/PaginationItem.js +3 -0
- package/lib/components/Pagination/index.d.ts +2 -0
- package/lib/components/Pagination/index.d.ts.map +1 -0
- package/lib/components/Panel/Panel.d.ts +35 -0
- package/lib/components/Panel/Panel.d.ts.map +1 -0
- package/lib/components/Panel/index.d.ts +3 -0
- package/lib/components/Panel/index.d.ts.map +1 -0
- package/lib/components/ProgressDonut/ProgressDonut.d.ts +13 -0
- package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -0
- package/lib/components/ProgressDonut/ProgressDonut.js +1 -0
- package/lib/components/ProgressDonut/index.d.ts +2 -0
- package/lib/components/ProgressDonut/index.d.ts.map +1 -0
- package/lib/components/PromptChip/PromptChip.d.ts +38 -0
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -0
- package/lib/components/PromptChip/PromptChip.js +8 -2
- package/lib/components/PromptChip/index.d.ts +2 -0
- package/lib/components/PromptChip/index.d.ts.map +1 -0
- package/lib/components/PromptInput/PromptInput.d.ts +38 -0
- package/lib/components/PromptInput/PromptInput.d.ts.map +1 -0
- package/lib/components/PromptInput/PromptInput.js +10 -1
- package/lib/components/PromptInput/index.d.ts +2 -0
- package/lib/components/PromptInput/index.d.ts.map +1 -0
- package/lib/components/RadioButton/RadioButton.d.ts +31 -0
- package/lib/components/RadioButton/RadioButton.d.ts.map +1 -0
- package/lib/components/RadioButton/RadioButton.js +1 -0
- package/lib/components/RadioButton/RadioGroup.d.ts +27 -0
- package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -0
- package/lib/components/RadioButton/RadioGroup.js +2 -0
- package/lib/components/RadioButton/index.d.ts +3 -0
- package/lib/components/RadioButton/index.d.ts.map +1 -0
- package/lib/components/RadioTile/RadioTile.d.ts +23 -0
- package/lib/components/RadioTile/RadioTile.d.ts.map +1 -0
- package/lib/components/RadioTile/RadioTile.js +2 -0
- package/lib/components/RadioTile/index.d.ts +2 -0
- package/lib/components/RadioTile/index.d.ts.map +1 -0
- package/lib/components/RangeSlider/RangeSlider.d.ts +27 -0
- package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -0
- package/lib/components/RangeSlider/RangeSlider.js +3 -0
- package/lib/components/RangeSlider/index.d.ts +2 -0
- package/lib/components/RangeSlider/index.d.ts.map +1 -0
- package/lib/components/Rating/Rating.d.ts +32 -0
- package/lib/components/Rating/Rating.d.ts.map +1 -0
- package/lib/components/Rating/Rating.js +7 -3
- package/lib/components/Rating/index.d.ts +2 -0
- package/lib/components/Rating/index.d.ts.map +1 -0
- package/lib/components/ScoreBar/ScoreBar.d.ts +28 -0
- package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -0
- package/lib/components/ScoreBar/ScoreBar.js +1 -1
- package/lib/components/ScoreBar/index.d.ts +2 -0
- package/lib/components/ScoreBar/index.d.ts.map +1 -0
- package/lib/components/SearchInput/SearchInput.d.ts +15 -0
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/lib/components/SearchInput/index.d.ts +3 -0
- package/lib/components/SearchInput/index.d.ts.map +1 -0
- package/lib/components/Separator/Separator.d.ts +18 -0
- package/lib/components/Separator/Separator.d.ts.map +1 -0
- package/lib/components/Separator/index.d.ts +2 -0
- package/lib/components/Separator/index.d.ts.map +1 -0
- package/lib/components/Shimmer/Shimmer.d.ts +57 -0
- package/lib/components/Shimmer/Shimmer.d.ts.map +1 -0
- package/lib/components/Shimmer/Shimmer.js +3 -1
- package/lib/components/Shimmer/index.d.ts +2 -0
- package/lib/components/Shimmer/index.d.ts.map +1 -0
- package/lib/components/SideMenuLink/SideMenuLink.d.ts +211 -0
- package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -0
- package/lib/components/SideMenuLink/SideMenuLink.js +8 -2
- package/lib/components/SideMenuLink/index.d.ts +2 -0
- package/lib/components/SideMenuLink/index.d.ts.map +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +25 -0
- package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -0
- package/lib/components/StatusIndicator/index.d.ts +2 -0
- package/lib/components/StatusIndicator/index.d.ts.map +1 -0
- package/lib/components/Stepper/Step/Step.d.ts +25 -0
- package/lib/components/Stepper/Step/Step.d.ts.map +1 -0
- package/lib/components/Stepper/Step/Step.js +12 -3
- package/lib/components/Stepper/Step/StepContent.d.ts +14 -0
- package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -0
- package/lib/components/Stepper/Step/StepLabel.d.ts +14 -0
- package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -0
- package/lib/components/Stepper/Step/index.d.ts +4 -0
- package/lib/components/Stepper/Step/index.d.ts.map +1 -0
- package/lib/components/Stepper/Stepper.d.ts +15 -0
- package/lib/components/Stepper/Stepper.d.ts.map +1 -0
- package/lib/components/Stepper/Stepper.js +4 -0
- package/lib/components/Stepper/index.d.ts +3 -0
- package/lib/components/Stepper/index.d.ts.map +1 -0
- package/lib/components/StickyBar/StickyBar.d.ts +15 -0
- package/lib/components/StickyBar/StickyBar.d.ts.map +1 -0
- package/lib/components/StickyBar/index.d.ts +2 -0
- package/lib/components/StickyBar/index.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenu.d.ts +19 -0
- package/lib/components/SubMenu/SubMenu.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuGroup.d.ts +24 -0
- package/lib/components/SubMenu/SubMenuGroup.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuGroup.js +11 -3
- package/lib/components/SubMenu/SubMenuItem.d.ts +42 -0
- package/lib/components/SubMenu/SubMenuItem.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuItem.js +14 -4
- package/lib/components/SubMenu/SubMenuLink.d.ts +14 -0
- package/lib/components/SubMenu/SubMenuLink.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuLink.js +6 -2
- package/lib/components/SubMenu/index.d.ts +5 -0
- package/lib/components/SubMenu/index.d.ts.map +1 -0
- package/lib/components/Table/Cell.d.ts +37 -0
- package/lib/components/Table/Cell.d.ts.map +1 -0
- package/lib/components/Table/Cell.js +3 -3
- package/lib/components/Table/DefaultRow.d.ts +39 -0
- package/lib/components/Table/DefaultRow.d.ts.map +1 -0
- package/lib/components/Table/DefaultRow.js +1 -1
- package/lib/components/Table/DefaultTableHeader.d.ts +43 -0
- package/lib/components/Table/DefaultTableHeader.d.ts.map +1 -0
- package/lib/components/Table/DefaultTableHeader.js +9 -2
- package/lib/components/Table/StaticTable.d.ts +24 -0
- package/lib/components/Table/StaticTable.d.ts.map +1 -0
- package/lib/components/Table/StaticTable.js +48 -18
- package/lib/components/Table/Table.d.ts +64 -0
- package/lib/components/Table/Table.d.ts.map +1 -0
- package/lib/components/Table/Table.docs.d.ts +299 -0
- package/lib/components/Table/Table.docs.d.ts.map +1 -0
- package/lib/components/Table/Table.docs.js +4 -4
- package/lib/components/Table/Table.js +16 -12
- package/lib/components/Table/TableActionBar.d.ts +11 -0
- package/lib/components/Table/TableActionBar.d.ts.map +1 -0
- package/lib/components/Table/TableBottomBar.d.ts +7 -0
- package/lib/components/Table/TableBottomBar.d.ts.map +1 -0
- package/lib/components/Table/TableTopBar.d.ts +7 -0
- package/lib/components/Table/TableTopBar.d.ts.map +1 -0
- package/lib/components/Table/dummyTableData.d.ts +1946 -0
- package/lib/components/Table/dummyTableData.d.ts.map +1 -0
- package/lib/components/Table/hooks.d.ts +15 -0
- package/lib/components/Table/hooks.d.ts.map +1 -0
- package/lib/components/Table/hooks.js +8 -1
- package/lib/components/Table/index.d.ts +9 -0
- package/lib/components/Table/index.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/Tab.d.ts +35 -0
- package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/Tab.js +5 -1
- package/lib/components/Tabs/Tab/index.d.ts +2 -0
- package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
- package/lib/components/Tabs/TabList/TabDropdown.d.ts +24 -0
- package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +1 -0
- package/lib/components/Tabs/TabList/TabDropdown.js +8 -2
- package/lib/components/Tabs/TabList/TabList.d.ts +24 -0
- package/lib/components/Tabs/TabList/TabList.d.ts.map +1 -0
- package/lib/components/Tabs/TabList/TabList.js +17 -3
- package/lib/components/Tabs/TabList/index.d.ts +2 -0
- package/lib/components/Tabs/TabList/index.d.ts.map +1 -0
- package/lib/components/Tabs/index.d.ts +3 -0
- package/lib/components/Tabs/index.d.ts.map +1 -0
- package/lib/components/Text/Text.d.ts +46 -0
- package/lib/components/Text/Text.d.ts.map +1 -0
- package/lib/components/Text/Text.js +1 -0
- package/lib/components/Text/index.d.ts +4 -0
- package/lib/components/Text/index.d.ts.map +1 -0
- package/lib/components/TextTile/TextTile.d.ts +14 -0
- package/lib/components/TextTile/TextTile.d.ts.map +1 -0
- package/lib/components/TextTile/index.d.ts +2 -0
- package/lib/components/TextTile/index.d.ts.map +1 -0
- package/lib/components/Textarea/Textarea.d.ts +28 -0
- package/lib/components/Textarea/Textarea.d.ts.map +1 -0
- package/lib/components/Textarea/Textarea.js +14 -4
- package/lib/components/Textarea/index.d.ts +3 -0
- package/lib/components/Textarea/index.d.ts.map +1 -0
- package/lib/components/Timeline/Timeline.d.ts +18 -0
- package/lib/components/Timeline/Timeline.d.ts.map +1 -0
- package/lib/components/Timeline/Timeline.js +8 -1
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +28 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.js +9 -2
- package/lib/components/Timeline/TimelineItem/index.d.ts +2 -0
- package/lib/components/Timeline/TimelineItem/index.d.ts.map +1 -0
- package/lib/components/Timeline/index.d.ts +3 -0
- package/lib/components/Timeline/index.d.ts.map +1 -0
- package/lib/components/Toast/Toast.d.ts +46 -0
- package/lib/components/Toast/Toast.d.ts.map +1 -0
- package/lib/components/Toast/Toast.js +10 -1
- package/lib/components/Toast/ToastContainer.d.ts +3 -0
- package/lib/components/Toast/ToastContainer.d.ts.map +1 -0
- package/lib/components/Toast/ToastContainer.js +2 -5
- package/lib/components/Toast/ToastManager.d.ts +23 -0
- package/lib/components/Toast/ToastManager.d.ts.map +1 -0
- package/lib/components/Toast/ToastManager.js +1 -0
- package/lib/components/Toast/index.d.ts +5 -0
- package/lib/components/Toast/index.d.ts.map +1 -0
- package/lib/components/Toggle/Toggle.d.ts +30 -0
- package/lib/components/Toggle/Toggle.d.ts.map +1 -0
- package/lib/components/Toggle/Toggle.js +1 -0
- package/lib/components/Toggle/index.d.ts +2 -0
- package/lib/components/Toggle/index.d.ts.map +1 -0
- package/lib/components/TokenListInput/TokenListInput.d.ts +57 -0
- package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -0
- package/lib/components/TokenListInput/TokenListInput.js +27 -10
- package/lib/components/TokenListInput/TokenValueChips.d.ts +20 -0
- package/lib/components/TokenListInput/TokenValueChips.d.ts.map +1 -0
- package/lib/components/TokenListInput/TokenValueChips.js +2 -4
- package/lib/components/TokenListInput/index.d.ts +2 -0
- package/lib/components/TokenListInput/index.d.ts.map +1 -0
- package/lib/components/Tooltip/Tooltip.d.ts +44 -0
- package/lib/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/lib/components/Tooltip/Tooltip.js +6 -3
- package/lib/components/Tooltip/index.d.ts +2 -0
- package/lib/components/Tooltip/index.d.ts.map +1 -0
- package/lib/components/Truncate/Truncate.d.ts +12 -0
- package/lib/components/Truncate/Truncate.d.ts.map +1 -0
- package/lib/components/Truncate/Truncate.js +5 -1
- package/lib/components/Truncate/index.d.ts +3 -0
- package/lib/components/Truncate/index.d.ts.map +1 -0
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +16 -0
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -0
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +6 -1
- package/lib/components/TruncatedTextWithTooltip/index.d.ts +2 -0
- package/lib/components/TruncatedTextWithTooltip/index.d.ts.map +1 -0
- package/lib/components/Typeahead/SimpleTypeahead.d.ts +41 -0
- package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -0
- package/lib/components/Typeahead/SimpleTypeahead.js +4 -0
- package/lib/components/Typeahead/Typeahead.d.ts +30 -0
- package/lib/components/Typeahead/Typeahead.d.ts.map +1 -0
- package/lib/components/Typeahead/Typeahead.js +12 -3
- package/lib/components/Typeahead/index.d.ts +3 -0
- package/lib/components/Typeahead/index.d.ts.map +1 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +36 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -0
- package/lib/components/WeekdayPicker/index.d.ts +2 -0
- package/lib/components/WeekdayPicker/index.d.ts.map +1 -0
- package/lib/components/index.d.ts +76 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/flow-to-typescript-codemod.d.ts +49 -0
- package/lib/hooks/index.d.ts +17 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useArbitraryOptionAddition/index.d.ts +2 -0
- package/lib/hooks/useArbitraryOptionAddition/index.d.ts.map +1 -0
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts +24 -0
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts.map +1 -0
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.js +9 -9
- package/lib/hooks/useCopyToClipboard/index.d.ts +2 -0
- package/lib/hooks/useCopyToClipboard/index.d.ts.map +1 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.d.ts +5 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.d.ts.map +1 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js +1 -0
- package/lib/hooks/useDebounce/index.d.ts +2 -0
- package/lib/hooks/useDebounce/index.d.ts.map +1 -0
- package/lib/hooks/useDebounce/useDebounce.d.ts +2 -0
- package/lib/hooks/useDebounce/useDebounce.d.ts.map +1 -0
- package/lib/hooks/useFileUpload/index.d.ts +2 -0
- package/lib/hooks/useFileUpload/index.d.ts.map +1 -0
- package/lib/hooks/useFileUpload/useFileUpload.d.ts +17 -0
- package/lib/hooks/useFileUpload/useFileUpload.d.ts.map +1 -0
- package/lib/hooks/useFileUpload/useFileUpload.js +7 -2
- package/lib/hooks/useFilteredOptions/index.d.ts +2 -0
- package/lib/hooks/useFilteredOptions/index.d.ts.map +1 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts +17 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts.map +1 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.js +5 -3
- package/lib/hooks/useInfiniteScroll/index.d.ts +2 -0
- package/lib/hooks/useInfiniteScroll/index.d.ts.map +1 -0
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +15 -0
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts.map +1 -0
- package/lib/hooks/useInputState/index.d.ts +2 -0
- package/lib/hooks/useInputState/index.d.ts.map +1 -0
- package/lib/hooks/useInputState/useInputState.d.ts +13 -0
- package/lib/hooks/useInputState/useInputState.d.ts.map +1 -0
- package/lib/hooks/useInputState/useInputState.js +3 -1
- package/lib/hooks/useLockedBody/index.d.ts +2 -0
- package/lib/hooks/useLockedBody/index.d.ts.map +1 -0
- package/lib/hooks/useLockedBody/useLockedBody.d.ts +4 -0
- package/lib/hooks/useLockedBody/useLockedBody.d.ts.map +1 -0
- package/lib/hooks/useLockedBody/useLockedBody.js +0 -1
- package/lib/hooks/useModal/index.d.ts +2 -0
- package/lib/hooks/useModal/index.d.ts.map +1 -0
- package/lib/hooks/useModal/useModal.d.ts +11 -0
- package/lib/hooks/useModal/useModal.d.ts.map +1 -0
- package/lib/hooks/useMountTransition/index.d.ts +3 -0
- package/lib/hooks/useMountTransition/index.d.ts.map +1 -0
- package/lib/hooks/useMountTransition/index.js +2 -0
- package/lib/hooks/usePagination/index.d.ts +2 -0
- package/lib/hooks/usePagination/index.d.ts.map +1 -0
- package/lib/hooks/usePagination/usePagination.d.ts +5 -0
- package/lib/hooks/usePagination/usePagination.d.ts.map +1 -0
- package/lib/hooks/usePagination/usePagination.js +5 -2
- package/lib/hooks/useReferenceElementWidth/index.d.ts +2 -0
- package/lib/hooks/useReferenceElementWidth/index.d.ts.map +1 -0
- package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.d.ts +2 -0
- package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.d.ts.map +1 -0
- package/lib/hooks/useResizeObserver/index.d.ts +2 -0
- package/lib/hooks/useResizeObserver/index.d.ts.map +1 -0
- package/lib/hooks/useResizeObserver/useResizeObserver.d.ts +3 -0
- package/lib/hooks/useResizeObserver/useResizeObserver.d.ts.map +1 -0
- package/lib/hooks/useResizeObserver/useResizeObserver.js +3 -0
- package/lib/hooks/useToastPortal/index.d.ts +2 -0
- package/lib/hooks/useToastPortal/index.d.ts.map +1 -0
- package/lib/hooks/useToastPortal/useToastPortal.d.ts +10 -0
- package/lib/hooks/useToastPortal/useToastPortal.d.ts.map +1 -0
- package/lib/hooks/useToastPortal/useToastPortal.js +3 -3
- package/lib/hooks/useToggle/index.d.ts +2 -0
- package/lib/hooks/useToggle/index.d.ts.map +1 -0
- package/lib/hooks/useToggle/useToggle.d.ts +2 -0
- package/lib/hooks/useToggle/useToggle.d.ts.map +1 -0
- package/lib/hooks/useWindowSize/index.d.ts +2 -0
- package/lib/hooks/useWindowSize/index.d.ts.map +1 -0
- package/lib/hooks/useWindowSize/useWindowSize.d.ts +7 -0
- package/lib/hooks/useWindowSize/useWindowSize.d.ts.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/styles/index.d.ts +268 -0
- package/lib/styles/index.d.ts.map +1 -0
- package/lib/styles/variables/_border.d.ts +13 -0
- package/lib/styles/variables/_border.d.ts.map +1 -0
- package/lib/styles/variables/_color.d.ts +105 -0
- package/lib/styles/variables/_color.d.ts.map +1 -0
- package/lib/styles/variables/_elevation.d.ts +8 -0
- package/lib/styles/variables/_elevation.d.ts.map +1 -0
- package/lib/styles/variables/_font.d.ts +31 -0
- package/lib/styles/variables/_font.d.ts.map +1 -0
- package/lib/styles/variables/_motion.d.ts +7 -0
- package/lib/styles/variables/_motion.d.ts.map +1 -0
- package/lib/styles/variables/_opacity.d.ts +16 -0
- package/lib/styles/variables/_opacity.d.ts.map +1 -0
- package/lib/styles/variables/_shadow.d.ts +25 -0
- package/lib/styles/variables/_shadow.d.ts.map +1 -0
- package/lib/styles/variables/_size.d.ts +58 -0
- package/lib/styles/variables/_size.d.ts.map +1 -0
- package/lib/styles/variables/_space.d.ts +13 -0
- package/lib/styles/variables/_space.d.ts.map +1 -0
- package/lib/types/charts.d.ts +224 -0
- package/lib/types/charts.d.ts.map +1 -0
- package/lib/types/charts.js +5 -1
- package/lib/types/common.d.ts +10 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/cssvariables.d.js +3 -0
- package/lib/types/date-range-picker.d.ts +21 -0
- package/lib/types/date-range-picker.d.ts.map +1 -0
- package/lib/types/date-range-picker.js +5 -1
- package/lib/types/flow-to-typescript-codemod.d.js +1 -0
- package/lib/types/global.d.js +1 -0
- package/lib/types/index.d.ts +7 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/menu.d.ts +13 -0
- package/lib/types/menu.d.ts.map +1 -0
- package/lib/types/menu.js +5 -1
- package/lib/types/toast.d.ts +28 -0
- package/lib/types/toast.d.ts.map +1 -0
- package/lib/types/toast.js +0 -2
- package/lib/types/typography.d.ts +17 -0
- package/lib/types/typography.d.ts.map +1 -0
- package/lib/utils/array/are-arrays-equal.d.ts +4 -0
- package/lib/utils/array/are-arrays-equal.d.ts.map +1 -0
- package/lib/utils/array/index.d.ts +2 -0
- package/lib/utils/array/index.d.ts.map +1 -0
- package/lib/utils/charts/charts.d.ts +17 -0
- package/lib/utils/charts/charts.d.ts.map +1 -0
- package/lib/utils/charts/charts.js +4 -0
- package/lib/utils/charts/columnChart.d.ts +8 -0
- package/lib/utils/charts/columnChart.d.ts.map +1 -0
- package/lib/utils/charts/columnChart.js +3 -1
- package/lib/utils/charts/donutChart.d.ts +21 -0
- package/lib/utils/charts/donutChart.d.ts.map +1 -0
- package/lib/utils/charts/donutChart.js +7 -2
- package/lib/utils/charts/funnelChart.d.ts +10 -0
- package/lib/utils/charts/funnelChart.d.ts.map +1 -0
- package/lib/utils/charts/funnelChart.js +5 -1
- package/lib/utils/charts/helpers.d.ts +76 -0
- package/lib/utils/charts/helpers.d.ts.map +1 -0
- package/lib/utils/charts/index.d.ts +8 -0
- package/lib/utils/charts/index.d.ts.map +1 -0
- package/lib/utils/charts/lineChart.d.ts +7 -0
- package/lib/utils/charts/lineChart.d.ts.map +1 -0
- package/lib/utils/charts/lineChart.js +3 -1
- package/lib/utils/charts/spiderChart.d.ts +18 -0
- package/lib/utils/charts/spiderChart.d.ts.map +1 -0
- package/lib/utils/charts/typography.d.ts +58 -0
- package/lib/utils/charts/typography.d.ts.map +1 -0
- package/lib/utils/classify/index.d.ts +3 -0
- package/lib/utils/classify/index.d.ts.map +1 -0
- package/lib/utils/classify/index.js +1 -1
- package/lib/utils/click-away/click-away.d.ts +77 -0
- package/lib/utils/click-away/click-away.d.ts.map +1 -0
- package/lib/utils/click-away/click-away.js +18 -5
- package/lib/utils/click-away/index.d.ts +2 -0
- package/lib/utils/click-away/index.d.ts.map +1 -0
- package/lib/utils/date-range-picker/date-range-picker.d.ts +63 -0
- package/lib/utils/date-range-picker/date-range-picker.d.ts.map +1 -0
- package/lib/utils/date-range-picker/date-range-picker.js +17 -2
- package/lib/utils/date-range-picker/index.d.ts +3 -0
- package/lib/utils/date-range-picker/index.d.ts.map +1 -0
- package/lib/utils/date-range-picker/timezones.d.ts +258 -0
- package/lib/utils/date-range-picker/timezones.d.ts.map +1 -0
- package/lib/utils/date-range-picker/timezones.js +0 -1
- package/lib/utils/dom/dom.d.ts +38 -0
- package/lib/utils/dom/dom.d.ts.map +1 -0
- package/lib/utils/dom/dom.js +9 -7
- package/lib/utils/dom/index.d.ts +2 -0
- package/lib/utils/dom/index.d.ts.map +1 -0
- package/lib/utils/helpers/helpers.d.ts +4 -0
- package/lib/utils/helpers/helpers.d.ts.map +1 -0
- package/lib/utils/helpers/index.d.ts +2 -0
- package/lib/utils/helpers/index.d.ts.map +1 -0
- package/lib/utils/index.d.ts +15 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/index.d.ts +2 -0
- package/lib/utils/makeClassNameComponent/index.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts +9 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.js +20 -7
- package/lib/utils/menu/index.d.ts +2 -0
- package/lib/utils/menu/index.d.ts.map +1 -0
- package/lib/utils/menu/menu.d.ts +20 -0
- package/lib/utils/menu/menu.d.ts.map +1 -0
- package/lib/utils/menu/menu.js +0 -2
- package/lib/utils/merge-refs/index.d.ts +2 -0
- package/lib/utils/merge-refs/index.d.ts.map +1 -0
- package/lib/utils/merge-refs/merge-refs.d.ts +4 -0
- package/lib/utils/merge-refs/merge-refs.d.ts.map +1 -0
- package/lib/utils/merge-refs/merge-refs.js +1 -0
- package/lib/utils/rating/index.d.ts +2 -0
- package/lib/utils/rating/index.d.ts.map +1 -0
- package/lib/utils/rating/rating.d.ts +13 -0
- package/lib/utils/rating/rating.d.ts.map +1 -0
- package/lib/utils/score-bar/index.d.ts +2 -0
- package/lib/utils/score-bar/index.d.ts.map +1 -0
- package/lib/utils/score-bar/score-bar.d.ts +10 -0
- package/lib/utils/score-bar/score-bar.d.ts.map +1 -0
- package/lib/utils/string/index.d.ts +2 -0
- package/lib/utils/string/index.d.ts.map +1 -0
- package/lib/utils/string/string.d.ts +6 -0
- package/lib/utils/string/string.d.ts.map +1 -0
- package/lib/utils/token-list-input/token-list-input.d.ts +15 -0
- package/lib/utils/token-list-input/token-list-input.d.ts.map +1 -0
- package/lib/utils/token-list-input/token-list-input.js +0 -2
- package/lib/utils/tokens/index.d.ts +2 -0
- package/lib/utils/tokens/index.d.ts.map +1 -0
- package/lib/utils/tokens/tokens.d.ts +41 -0
- package/lib/utils/tokens/tokens.d.ts.map +1 -0
- package/package.json +51 -24
- package/tsconfig.declaration.json +11 -0
- package/tsconfig.json +41 -0
- package/.eslintignore +0 -2
- package/.eslintrc.yml +0 -122
- package/lib/components/Accordion/Accordion.js.flow +0 -116
- package/lib/components/Accordion/AccordionGroup.js.flow +0 -75
- package/lib/components/Accordion/index.js.flow +0 -4
- package/lib/components/Avatar/Avatar.js.flow +0 -269
- package/lib/components/Avatar/index.js.flow +0 -3
- package/lib/components/AvatarGroup/AvatarGroup.js.flow +0 -164
- package/lib/components/AvatarGroup/index.js.flow +0 -3
- package/lib/components/Badge/Badge.js.flow +0 -147
- package/lib/components/Badge/index.js.flow +0 -3
- package/lib/components/BadgedIcon/BadgedIcon.js.flow +0 -73
- package/lib/components/BadgedIcon/index.js.flow +0 -3
- package/lib/components/Banner/Banner.js.flow +0 -60
- package/lib/components/Banner/index.js.flow +0 -3
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js.flow +0 -58
- package/lib/components/Breadcrumbs/BreadcrumbLink/index.js.flow +0 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js.flow +0 -59
- package/lib/components/Breadcrumbs/index.js.flow +0 -4
- package/lib/components/Button/Button.js.flow +0 -286
- package/lib/components/Button/index.js.flow +0 -16
- package/lib/components/ButtonDropdown/ButtonDropdown.js.flow +0 -226
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js.flow +0 -169
- package/lib/components/ButtonDropdown/index.js.flow +0 -4
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.js.flow +0 -82
- package/lib/components/ButtonTabs/ButtonTab/index.js.flow +0 -3
- package/lib/components/ButtonTabs/ButtonTabDropdown.js.flow +0 -150
- package/lib/components/ButtonTabs/ButtonTabs.js.flow +0 -121
- package/lib/components/ButtonTabs/index.js.flow +0 -4
- package/lib/components/Card/Card.js.flow +0 -174
- package/lib/components/Card/index.js.flow +0 -3
- package/lib/components/Charts/ChartTooltip/index.js.flow +0 -15
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js.flow +0 -190
- package/lib/components/Charts/ChartWrapper/index.js.flow +0 -3
- package/lib/components/Charts/ColumnChart/ColumnChart.js.flow +0 -126
- package/lib/components/Charts/ColumnChart/index.js.flow +0 -3
- package/lib/components/Charts/DonutChart/DonutChart.js.flow +0 -158
- package/lib/components/Charts/DonutChart/index.js.flow +0 -3
- package/lib/components/Charts/FunnelChart/FunnelChart.js.flow +0 -115
- package/lib/components/Charts/FunnelChart/index.js.flow +0 -3
- package/lib/components/Charts/LineChart/LineChart.js.flow +0 -113
- package/lib/components/Charts/LineChart/index.js.flow +0 -3
- package/lib/components/Charts/SpiderChart/SpiderChart.js.flow +0 -111
- package/lib/components/Charts/SpiderChart/index.js.flow +0 -3
- package/lib/components/Charts/index.js.flow +0 -9
- package/lib/components/ChatBubble/ChatBubble.js.flow +0 -222
- package/lib/components/ChatBubble/index.js.flow +0 -3
- package/lib/components/Checkbox/Checkbox.js.flow +0 -168
- package/lib/components/Checkbox/CheckboxGroup.js.flow +0 -116
- package/lib/components/Checkbox/index.js.flow +0 -3
- package/lib/components/Chip/Chip.js.flow +0 -199
- package/lib/components/Chip/index.js.flow +0 -4
- package/lib/components/CircularLoader/CircularLoader.js.flow +0 -58
- package/lib/components/CircularLoader/index.js.flow +0 -3
- package/lib/components/CollapsibleCard/CollapsibleCard.js.flow +0 -146
- package/lib/components/CollapsibleCard/index.js.flow +0 -3
- package/lib/components/Combobox/Combobox.js.flow +0 -287
- package/lib/components/Combobox/helper.js.flow +0 -204
- package/lib/components/Combobox/index.js.flow +0 -3
- package/lib/components/ConditionalWrapper/ConditionalWrapper.js.flow +0 -16
- package/lib/components/ConditionalWrapper/index.js.flow +0 -3
- package/lib/components/DateRangePicker/Calendar.js.flow +0 -112
- package/lib/components/DateRangePicker/DateRangePicker.js.flow +0 -214
- package/lib/components/DateRangePicker/DateRangeWrapper.js.flow +0 -384
- package/lib/components/DateRangePicker/Day.js.flow +0 -75
- package/lib/components/DateRangePicker/index.js.flow +0 -3
- package/lib/components/Dialog/Dialog.js.flow +0 -228
- package/lib/components/Dialog/index.js.flow +0 -2
- package/lib/components/Disclaimer/Disclaimer.js.flow +0 -41
- package/lib/components/Disclaimer/index.js.flow +0 -3
- package/lib/components/Dropdown/Dropdown.js.flow +0 -176
- package/lib/components/Dropdown/SimpleDropdown.js.flow +0 -170
- package/lib/components/Dropdown/index.js.flow +0 -4
- package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.js.flow +0 -112
- package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.js.flow +0 -198
- package/lib/components/EmptyState/EmptyImages/DataEmptyImage.js.flow +0 -120
- package/lib/components/EmptyState/EmptyImages/FileEmptyImage.js.flow +0 -137
- package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.js.flow +0 -68
- package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.js.flow +0 -71
- package/lib/components/EmptyState/EmptyImages/index.js.flow +0 -8
- package/lib/components/EmptyState/EmptyState.js.flow +0 -91
- package/lib/components/EmptyState/index.js.flow +0 -3
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.js.flow +0 -89
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.js.flow +0 -121
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.js.flow +0 -241
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.js.flow +0 -77
- package/lib/components/ErrorMessage/ErrorImages/index.js.flow +0 -6
- package/lib/components/ErrorMessage/ErrorMessage.js.flow +0 -95
- package/lib/components/ErrorMessage/index.js.flow +0 -3
- package/lib/components/FileUpload/FileBlock/FileBlock.js.flow +0 -139
- package/lib/components/FileUpload/FileBlock/index.js.flow +0 -3
- package/lib/components/FileUpload/FileUpload.js.flow +0 -212
- package/lib/components/FileUpload/index.js.flow +0 -4
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js.flow +0 -166
- package/lib/components/FilterButtonOverlay/index.js.flow +0 -3
- package/lib/components/FocusManager/FocusManager.js.flow +0 -57
- package/lib/components/FocusManager/index.js.flow +0 -3
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js.flow +0 -152
- package/lib/components/FocusManagerWithArrowKeyNavigation/index.js.flow +0 -3
- package/lib/components/FormTitleWrapper/FormTitleWrapper.js.flow +0 -68
- package/lib/components/FormTitleWrapper/index.js.flow +0 -3
- package/lib/components/Grid/Grid.js.flow +0 -110
- package/lib/components/Grid/index.js.flow +0 -3
- package/lib/components/Icon/ClickableIcon.js.flow +0 -111
- package/lib/components/Icon/Icon.docs.js.flow +0 -120
- package/lib/components/Icon/Icon.js.flow +0 -77
- package/lib/components/Icon/SemanticIcon.js.flow +0 -48
- package/lib/components/Icon/index.js.flow +0 -5
- package/lib/components/InContextAlert/InContextAlert.js.flow +0 -208
- package/lib/components/InContextAlert/index.js.flow +0 -3
- package/lib/components/InfinitePagination/InfinitePagination.js.flow +0 -122
- package/lib/components/InfinitePagination/index.js.flow +0 -3
- package/lib/components/InlineDropdown/InlineDropdown.js.flow +0 -181
- package/lib/components/InlineDropdown/SimpleInlineDropdown.js.flow +0 -167
- package/lib/components/InlineDropdown/index.js.flow +0 -4
- package/lib/components/Input/Input.js.flow +0 -325
- package/lib/components/Input/index.js.flow +0 -3
- package/lib/components/KPIBox/KPIBox.js.flow +0 -97
- package/lib/components/KPIBox/index.js.flow +0 -3
- package/lib/components/LinearLoader/LinearLoader.js.flow +0 -49
- package/lib/components/LinearLoader/index.js.flow +0 -3
- package/lib/components/Link/Link.js.flow +0 -231
- package/lib/components/Link/index.js.flow +0 -3
- package/lib/components/Menu/Menu.js.flow +0 -391
- package/lib/components/Menu/MenuOptionButton.js.flow +0 -201
- package/lib/components/Menu/index.js.flow +0 -4
- package/lib/components/Modal/Modal.js.flow +0 -370
- package/lib/components/Modal/index.js.flow +0 -15
- package/lib/components/Notification/Notification.js.flow +0 -149
- package/lib/components/Notification/index.js.flow +0 -3
- package/lib/components/OptionButton/OptionButton.js.flow +0 -153
- package/lib/components/OptionButton/SimpleOptionButton.js.flow +0 -161
- package/lib/components/OptionButton/index.js.flow +0 -4
- package/lib/components/PageTitle/PageTitle.js.flow +0 -267
- package/lib/components/PageTitle/index.js.flow +0 -3
- package/lib/components/Pagination/Pagination.js.flow +0 -158
- package/lib/components/Pagination/PaginationItem.js.flow +0 -120
- package/lib/components/Pagination/index.js.flow +0 -3
- package/lib/components/Panel/Panel.js.flow +0 -181
- package/lib/components/Panel/index.js.flow +0 -10
- package/lib/components/ProgressDonut/ProgressDonut.js.flow +0 -111
- package/lib/components/ProgressDonut/index.js.flow +0 -3
- package/lib/components/PromptChip/PromptChip.js.flow +0 -166
- package/lib/components/PromptChip/index.js.flow +0 -3
- package/lib/components/PromptInput/PromptInput.js.flow +0 -194
- package/lib/components/PromptInput/index.js.flow +0 -3
- package/lib/components/RadioButton/RadioButton.js.flow +0 -134
- package/lib/components/RadioButton/RadioGroup.js.flow +0 -94
- package/lib/components/RadioButton/index.js.flow +0 -3
- package/lib/components/RadioTile/RadioTile.js.flow +0 -110
- package/lib/components/RadioTile/index.js.flow +0 -3
- package/lib/components/RangeSlider/RangeSlider.js.flow +0 -202
- package/lib/components/RangeSlider/index.js.flow +0 -3
- package/lib/components/Rating/Rating.js.flow +0 -134
- package/lib/components/Rating/index.js.flow +0 -3
- package/lib/components/ScoreBar/ScoreBar.js.flow +0 -135
- package/lib/components/ScoreBar/index.js.flow +0 -3
- package/lib/components/SearchInput/SearchInput.js.flow +0 -88
- package/lib/components/SearchInput/index.js.flow +0 -4
- package/lib/components/Separator/Separator.js.flow +0 -60
- package/lib/components/Separator/index.js.flow +0 -3
- package/lib/components/Shimmer/Shimmer.js.flow +0 -141
- package/lib/components/Shimmer/index.js.flow +0 -3
- package/lib/components/SideMenuLink/SideMenuLink.js.flow +0 -344
- package/lib/components/SideMenuLink/index.js.flow +0 -3
- package/lib/components/StatusIndicator/StatusIndicator.js.flow +0 -68
- package/lib/components/StatusIndicator/index.js.flow +0 -3
- package/lib/components/Stepper/Step/Step.js.flow +0 -123
- package/lib/components/Stepper/Step/StepContent.js.flow +0 -40
- package/lib/components/Stepper/Step/StepLabel.js.flow +0 -40
- package/lib/components/Stepper/Step/index.js.flow +0 -5
- package/lib/components/Stepper/Stepper.js.flow +0 -64
- package/lib/components/Stepper/index.js.flow +0 -4
- package/lib/components/StickyBar/StickyBar.js.flow +0 -67
- package/lib/components/StickyBar/index.js.flow +0 -3
- package/lib/components/SubMenu/SubMenu.js.flow +0 -96
- package/lib/components/SubMenu/SubMenuGroup.js.flow +0 -156
- package/lib/components/SubMenu/SubMenuItem.js.flow +0 -170
- package/lib/components/SubMenu/SubMenuLink.js.flow +0 -89
- package/lib/components/SubMenu/index.js.flow +0 -6
- package/lib/components/Table/Cell.js.flow +0 -122
- package/lib/components/Table/DefaultRow.js.flow +0 -152
- package/lib/components/Table/DefaultTableHeader.js.flow +0 -240
- package/lib/components/Table/StaticTable.js.flow +0 -576
- package/lib/components/Table/Table.docs.js.flow +0 -550
- package/lib/components/Table/Table.js.flow +0 -154
- package/lib/components/Table/TableActionBar.js.flow +0 -55
- package/lib/components/Table/TableBottomBar.js.flow +0 -28
- package/lib/components/Table/TableTopBar.js.flow +0 -28
- package/lib/components/Table/dummyTableData.js.flow +0 -2191
- package/lib/components/Table/hooks.js.flow +0 -97
- package/lib/components/Table/index.js.flow +0 -10
- package/lib/components/Tabs/Tab/Tab.js.flow +0 -140
- package/lib/components/Tabs/Tab/index.js.flow +0 -3
- package/lib/components/Tabs/TabList/TabDropdown.js.flow +0 -123
- package/lib/components/Tabs/TabList/TabList.js.flow +0 -161
- package/lib/components/Tabs/TabList/index.js.flow +0 -3
- package/lib/components/Tabs/index.js.flow +0 -4
- package/lib/components/Text/Text.js.flow +0 -1060
- package/lib/components/Text/index.js.flow +0 -32
- package/lib/components/TextTile/TextTile.js.flow +0 -44
- package/lib/components/TextTile/index.js.flow +0 -3
- package/lib/components/Textarea/Textarea.js.flow +0 -139
- package/lib/components/Textarea/index.js.flow +0 -4
- package/lib/components/Timeline/Timeline.js.flow +0 -47
- package/lib/components/Timeline/TimelineItem/TimelineItem.js.flow +0 -127
- package/lib/components/Timeline/TimelineItem/index.js.flow +0 -3
- package/lib/components/Timeline/index.js.flow +0 -4
- package/lib/components/Toast/Toast.js.flow +0 -249
- package/lib/components/Toast/ToastContainer.js.flow +0 -125
- package/lib/components/Toast/ToastManager.js.flow +0 -67
- package/lib/components/Toast/index.js.flow +0 -12
- package/lib/components/Toggle/Toggle.js.flow +0 -113
- package/lib/components/Toggle/index.js.flow +0 -2
- package/lib/components/TokenListInput/TokenListInput.js.flow +0 -389
- package/lib/components/TokenListInput/TokenValueChips.js.flow +0 -69
- package/lib/components/TokenListInput/index.js.flow +0 -3
- package/lib/components/Tooltip/Tooltip.js.flow +0 -206
- package/lib/components/Tooltip/index.js.flow +0 -3
- package/lib/components/Truncate/Truncate.js.flow +0 -86
- package/lib/components/Truncate/index.js.flow +0 -4
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js.flow +0 -104
- package/lib/components/TruncatedTextWithTooltip/index.js.flow +0 -3
- package/lib/components/Typeahead/SimpleTypeahead.js.flow +0 -164
- package/lib/components/Typeahead/Typeahead.js.flow +0 -250
- package/lib/components/Typeahead/index.js.flow +0 -4
- package/lib/components/WeekdayPicker/WeekdayPicker.js.flow +0 -229
- package/lib/components/WeekdayPicker/index.js.flow +0 -3
- package/lib/components/index.js.flow +0 -77
- package/lib/hooks/index.js.flow +0 -18
- package/lib/hooks/useArbitraryOptionAddition/index.js.flow +0 -3
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.js.flow +0 -117
- package/lib/hooks/useCopyToClipboard/index.js.flow +0 -3
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js.flow +0 -31
- package/lib/hooks/useDebounce/index.js.flow +0 -3
- package/lib/hooks/useDebounce/useDebounce.js.flow +0 -17
- package/lib/hooks/useFileUpload/index.js.flow +0 -3
- package/lib/hooks/useFileUpload/useFileUpload.js.flow +0 -304
- package/lib/hooks/useFilteredOptions/index.js.flow +0 -3
- package/lib/hooks/useFilteredOptions/useFilteredOptions.js.flow +0 -81
- package/lib/hooks/useInfiniteScroll/index.js.flow +0 -3
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.js.flow +0 -82
- package/lib/hooks/useInputState/index.js.flow +0 -3
- package/lib/hooks/useInputState/useInputState.js.flow +0 -28
- package/lib/hooks/useLockedBody/index.js.flow +0 -3
- package/lib/hooks/useLockedBody/useLockedBody.js.flow +0 -55
- package/lib/hooks/useModal/index.js.flow +0 -3
- package/lib/hooks/useModal/useModal.js.flow +0 -39
- package/lib/hooks/useMountTransition/index.js.flow +0 -27
- package/lib/hooks/usePagination/index.js.flow +0 -3
- package/lib/hooks/usePagination/usePagination.js.flow +0 -155
- package/lib/hooks/useReferenceElementWidth/index.js.flow +0 -3
- package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.js.flow +0 -23
- package/lib/hooks/useResizeObserver/index.js.flow +0 -3
- package/lib/hooks/useResizeObserver/useResizeObserver.js.flow +0 -28
- package/lib/hooks/useToastPortal/index.js.flow +0 -3
- package/lib/hooks/useToastPortal/useToastPortal.js.flow +0 -30
- package/lib/hooks/useToggle/index.js.flow +0 -3
- package/lib/hooks/useToggle/useToggle.js.flow +0 -17
- package/lib/hooks/useWindowSize/index.js.flow +0 -3
- package/lib/hooks/useWindowSize/useWindowSize.js.flow +0 -41
- package/lib/index.js.flow +0 -7
- package/lib/styles/index.js.flow +0 -535
- package/lib/styles/variables/_border.js.flow +0 -25
- package/lib/styles/variables/_color.js.flow +0 -209
- package/lib/styles/variables/_elevation.js.flow +0 -15
- package/lib/styles/variables/_font.js.flow +0 -61
- package/lib/styles/variables/_motion.js.flow +0 -13
- package/lib/styles/variables/_opacity.js.flow +0 -31
- package/lib/styles/variables/_shadow.js.flow +0 -49
- package/lib/styles/variables/_size.js.flow +0 -115
- package/lib/styles/variables/_space.js.flow +0 -25
- package/lib/types/charts.js.flow +0 -263
- package/lib/types/common.js.flow +0 -13
- package/lib/types/date-range-picker.js.flow +0 -17
- package/lib/types/index.js.flow +0 -8
- package/lib/types/menu.js.flow +0 -15
- package/lib/types/toast.js.flow +0 -41
- package/lib/types/typography.js.flow +0 -19
- package/lib/utils/array/are-arrays-equal.js.flow +0 -14
- package/lib/utils/array/index.js.flow +0 -3
- package/lib/utils/charts/charts.js.flow +0 -111
- package/lib/utils/charts/columnChart.js.flow +0 -63
- package/lib/utils/charts/donutChart.js.flow +0 -119
- package/lib/utils/charts/funnelChart.js.flow +0 -102
- package/lib/utils/charts/helpers.js.flow +0 -68
- package/lib/utils/charts/index.js.flow +0 -9
- package/lib/utils/charts/lineChart.js.flow +0 -51
- package/lib/utils/charts/spiderChart.js.flow +0 -59
- package/lib/utils/charts/typography.js.flow +0 -53
- package/lib/utils/classify/index.js.flow +0 -29
- package/lib/utils/click-away/click-away.js.flow +0 -228
- package/lib/utils/click-away/index.js.flow +0 -3
- package/lib/utils/date-range-picker/date-range-picker.js.flow +0 -442
- package/lib/utils/date-range-picker/index.js.flow +0 -4
- package/lib/utils/date-range-picker/timezones.js.flow +0 -269
- package/lib/utils/dom/dom.js.flow +0 -238
- package/lib/utils/dom/index.js.flow +0 -3
- package/lib/utils/helpers/helpers.js.flow +0 -53
- package/lib/utils/helpers/index.js.flow +0 -3
- package/lib/utils/index.js.flow +0 -16
- package/lib/utils/makeClassNameComponent/index.js.flow +0 -3
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.js.flow +0 -70
- package/lib/utils/menu/index.js.flow +0 -3
- package/lib/utils/menu/menu.js.flow +0 -193
- package/lib/utils/merge-refs/index.js.flow +0 -3
- package/lib/utils/merge-refs/merge-refs.js.flow +0 -14
- package/lib/utils/rating/index.js.flow +0 -3
- package/lib/utils/rating/rating.js.flow +0 -35
- package/lib/utils/score-bar/index.js.flow +0 -3
- package/lib/utils/score-bar/score-bar.js.flow +0 -58
- package/lib/utils/string/index.js.flow +0 -3
- package/lib/utils/string/string.js.flow +0 -33
- package/lib/utils/token-list-input/token-list-input.js.flow +0 -37
- package/lib/utils/tokens/index.js.flow +0 -3
- package/lib/utils/tokens/tokens.js.flow +0 -244
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
JumboSmall,
|
|
7
|
-
SubTitleLarge,
|
|
8
|
-
SubTitleMedium,
|
|
9
|
-
SubTitleSmall,
|
|
10
|
-
} from '../../components/Text';
|
|
11
|
-
import * as COLORS from '../../styles/variables/_color';
|
|
12
|
-
import {
|
|
13
|
-
colorDangerLightest,
|
|
14
|
-
colorGrayLightest,
|
|
15
|
-
colorInformationLightest,
|
|
16
|
-
colorNeutralLightest,
|
|
17
|
-
colorSuccessLightest,
|
|
18
|
-
colorWarningLightest,
|
|
19
|
-
} from '../../styles/variables/_color';
|
|
20
|
-
import classify from '../../utils/classify';
|
|
21
|
-
import type {IconType} from '../Icon';
|
|
22
|
-
import {Icon} from '../Icon';
|
|
23
|
-
import type {StatusSemanticType} from '../StatusIndicator';
|
|
24
|
-
import {StatusIndicator} from '../StatusIndicator';
|
|
25
|
-
|
|
26
|
-
import css from './Avatar.module.css';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
type ClassNames = $ReadOnly<{
|
|
30
|
-
wrapper?: string,
|
|
31
|
-
ring?: string,
|
|
32
|
-
content?: string,
|
|
33
|
-
image?: string,
|
|
34
|
-
icon?: string,
|
|
35
|
-
text?: string,
|
|
36
|
-
}>;
|
|
37
|
-
|
|
38
|
-
export const AVATAR_SIZE = Object.freeze({
|
|
39
|
-
small: 'small',
|
|
40
|
-
medium: 'medium',
|
|
41
|
-
large: 'large',
|
|
42
|
-
extraLarge: 'extraLarge',
|
|
43
|
-
});
|
|
44
|
-
export const avatarSizeOptions: Array<mixed> = [...Object.keys(AVATAR_SIZE)];
|
|
45
|
-
|
|
46
|
-
export type AvatarSize = $Values<typeof AVATAR_SIZE>;
|
|
47
|
-
export const AVATAR_COLOR = Object.freeze({
|
|
48
|
-
red: colorDangerLightest,
|
|
49
|
-
orange: colorWarningLightest,
|
|
50
|
-
green: colorSuccessLightest,
|
|
51
|
-
blue: colorInformationLightest,
|
|
52
|
-
gray: colorGrayLightest,
|
|
53
|
-
indigo: colorNeutralLightest,
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
export type AvatarColorType = $Keys<typeof AVATAR_COLOR>;
|
|
57
|
-
|
|
58
|
-
export type AvatarProps = {
|
|
59
|
-
classNames?: ClassNames,
|
|
60
|
-
size?: AvatarSize,
|
|
61
|
-
imageSrc?: string,
|
|
62
|
-
ring?: boolean,
|
|
63
|
-
icon?: boolean,
|
|
64
|
-
text?: string,
|
|
65
|
-
color?: AvatarColorType,
|
|
66
|
-
style?: mixed,
|
|
67
|
-
iconName?: string,
|
|
68
|
-
iconType?: IconType,
|
|
69
|
-
status?: StatusSemanticType,
|
|
70
|
-
statusBorderColorToken?: $Keys<typeof COLORS>,
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const getAvatarText = (text = '') => {
|
|
74
|
-
const [firstWord, secondWord] = text.split(' ');
|
|
75
|
-
const firstChar = firstWord ? firstWord[0].toUpperCase() : '';
|
|
76
|
-
const secondChar = secondWord ? secondWord[0].toUpperCase() : '';
|
|
77
|
-
return firstChar + secondChar;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const AvatarTextDecorator = ({
|
|
81
|
-
avatarText,
|
|
82
|
-
size,
|
|
83
|
-
className,
|
|
84
|
-
}: {
|
|
85
|
-
avatarText: string,
|
|
86
|
-
size: AvatarSize,
|
|
87
|
-
className?: string,
|
|
88
|
-
}) => {
|
|
89
|
-
switch (size) {
|
|
90
|
-
case 'small':
|
|
91
|
-
return <SubTitleSmall className={className}>{avatarText}</SubTitleSmall>;
|
|
92
|
-
case 'medium':
|
|
93
|
-
return (
|
|
94
|
-
<SubTitleMedium className={className}>{avatarText}</SubTitleMedium>
|
|
95
|
-
);
|
|
96
|
-
case 'large':
|
|
97
|
-
return <SubTitleLarge className={className}>{avatarText}</SubTitleLarge>;
|
|
98
|
-
case 'extraLarge':
|
|
99
|
-
return <JumboSmall className={className}>{avatarText}</JumboSmall>;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
// mapping of iconSize for each avatar size;
|
|
104
|
-
const iconSize = Object.freeze({
|
|
105
|
-
small: 'small',
|
|
106
|
-
medium: 'medium',
|
|
107
|
-
large: 'medium',
|
|
108
|
-
extraLarge: 'large',
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
export type AvatarContentProps = {
|
|
112
|
-
imageSrc?: string,
|
|
113
|
-
text?: string,
|
|
114
|
-
iconName?: string,
|
|
115
|
-
iconType?: IconType,
|
|
116
|
-
size: AvatarSize,
|
|
117
|
-
color?: AvatarColorType,
|
|
118
|
-
ring?: boolean,
|
|
119
|
-
status?: StatusSemanticType,
|
|
120
|
-
statusBorderColorToken?: $Keys<typeof COLORS>,
|
|
121
|
-
classNames?: ClassNames,
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
const AvatarConditionalContent = ({
|
|
125
|
-
imageSrc,
|
|
126
|
-
text,
|
|
127
|
-
iconName,
|
|
128
|
-
size,
|
|
129
|
-
iconType,
|
|
130
|
-
color = 'blue',
|
|
131
|
-
status,
|
|
132
|
-
statusBorderColorToken,
|
|
133
|
-
classNames,
|
|
134
|
-
}: AvatarContentProps) => (
|
|
135
|
-
<div
|
|
136
|
-
className={classify(
|
|
137
|
-
css.innerContainer,
|
|
138
|
-
{[css.alignCenter]: !imageSrc},
|
|
139
|
-
classNames?.content,
|
|
140
|
-
)}
|
|
141
|
-
style={{
|
|
142
|
-
'--background-color': AVATAR_COLOR[color],
|
|
143
|
-
}}
|
|
144
|
-
>
|
|
145
|
-
{!!status && (
|
|
146
|
-
<div className={classify(css.statusIndicatorWrapper, css[size])}>
|
|
147
|
-
<StatusIndicator
|
|
148
|
-
status={status}
|
|
149
|
-
withBorder
|
|
150
|
-
borderColorToken={statusBorderColorToken}
|
|
151
|
-
/>
|
|
152
|
-
</div>
|
|
153
|
-
)}
|
|
154
|
-
|
|
155
|
-
{imageSrc ? (
|
|
156
|
-
<img
|
|
157
|
-
src={imageSrc}
|
|
158
|
-
alt="Avatar"
|
|
159
|
-
className={classify(css.avatar, classNames?.image)}
|
|
160
|
-
></img>
|
|
161
|
-
) : iconName ? (
|
|
162
|
-
<Icon
|
|
163
|
-
name={iconName}
|
|
164
|
-
type={iconType}
|
|
165
|
-
size={iconSize[size]}
|
|
166
|
-
className={classNames?.icon}
|
|
167
|
-
/>
|
|
168
|
-
) : text ? (
|
|
169
|
-
<AvatarTextDecorator
|
|
170
|
-
avatarText={getAvatarText(text)}
|
|
171
|
-
size={size}
|
|
172
|
-
className={classNames?.text}
|
|
173
|
-
/>
|
|
174
|
-
) : null}
|
|
175
|
-
</div>
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
export const Avatar: React$AbstractComponent<AvatarProps, HTMLDivElement> =
|
|
179
|
-
React.forwardRef<AvatarProps, HTMLDivElement>(
|
|
180
|
-
(
|
|
181
|
-
{
|
|
182
|
-
classNames,
|
|
183
|
-
size = AVATAR_SIZE.medium,
|
|
184
|
-
imageSrc,
|
|
185
|
-
text,
|
|
186
|
-
style,
|
|
187
|
-
iconName,
|
|
188
|
-
iconType,
|
|
189
|
-
color,
|
|
190
|
-
ring = false,
|
|
191
|
-
status,
|
|
192
|
-
statusBorderColorToken,
|
|
193
|
-
}: AvatarProps,
|
|
194
|
-
ref,
|
|
195
|
-
) => (
|
|
196
|
-
<div
|
|
197
|
-
className={classify(
|
|
198
|
-
css.container,
|
|
199
|
-
{
|
|
200
|
-
[css.extraLargeSize]: size === 'extraLarge',
|
|
201
|
-
[css.largeSize]: size === 'large',
|
|
202
|
-
[css.mediumSize]: size === 'medium',
|
|
203
|
-
[css.smallSize]: size === 'small',
|
|
204
|
-
},
|
|
205
|
-
classNames?.wrapper,
|
|
206
|
-
)}
|
|
207
|
-
style={style}
|
|
208
|
-
ref={ref}
|
|
209
|
-
>
|
|
210
|
-
{ring ? (
|
|
211
|
-
<div className={classify(css.ring, classNames?.ring)}>
|
|
212
|
-
<div className={css.whiteCircle}>
|
|
213
|
-
<AvatarConditionalContent
|
|
214
|
-
imageSrc={imageSrc}
|
|
215
|
-
text={text}
|
|
216
|
-
iconName={iconName}
|
|
217
|
-
iconType={iconType}
|
|
218
|
-
color={color}
|
|
219
|
-
size={size}
|
|
220
|
-
status={status}
|
|
221
|
-
statusBorderColorToken={statusBorderColorToken}
|
|
222
|
-
classNames={classNames}
|
|
223
|
-
/>
|
|
224
|
-
</div>
|
|
225
|
-
</div>
|
|
226
|
-
) : (
|
|
227
|
-
<AvatarConditionalContent
|
|
228
|
-
imageSrc={imageSrc}
|
|
229
|
-
text={text}
|
|
230
|
-
iconName={iconName}
|
|
231
|
-
iconType={iconType}
|
|
232
|
-
color={color}
|
|
233
|
-
size={size}
|
|
234
|
-
status={status}
|
|
235
|
-
statusBorderColorToken={statusBorderColorToken}
|
|
236
|
-
classNames={classNames}
|
|
237
|
-
/>
|
|
238
|
-
)}
|
|
239
|
-
</div>
|
|
240
|
-
),
|
|
241
|
-
);
|
|
242
|
-
|
|
243
|
-
export const BaseAvatar = ({
|
|
244
|
-
classNames,
|
|
245
|
-
size = AVATAR_SIZE.medium,
|
|
246
|
-
text = '',
|
|
247
|
-
style,
|
|
248
|
-
color = 'blue',
|
|
249
|
-
}: AvatarProps): React.Node => (
|
|
250
|
-
<div
|
|
251
|
-
className={classify(
|
|
252
|
-
css.container,
|
|
253
|
-
{
|
|
254
|
-
[css.baseExtraLargeSize]: size === 'extraLarge',
|
|
255
|
-
[css.baseLargeSize]: size === 'large',
|
|
256
|
-
[css.baseMediumSize]: size === 'medium',
|
|
257
|
-
[css.baseSmallSize]: size === 'small',
|
|
258
|
-
},
|
|
259
|
-
classNames?.wrapper,
|
|
260
|
-
)}
|
|
261
|
-
style={{...style, background: AVATAR_COLOR[color]}}
|
|
262
|
-
>
|
|
263
|
-
<AvatarTextDecorator
|
|
264
|
-
avatarText={text}
|
|
265
|
-
size={size}
|
|
266
|
-
className={classNames?.text}
|
|
267
|
-
/>
|
|
268
|
-
</div>
|
|
269
|
-
);
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import {colorBackgroundTertiary} from '../../styles/variables/_color';
|
|
6
|
-
import {
|
|
7
|
-
spaceSmall,
|
|
8
|
-
spaceXSmall,
|
|
9
|
-
spaceXXSmall,
|
|
10
|
-
} from '../../styles/variables/_space';
|
|
11
|
-
import classify from '../../utils/classify';
|
|
12
|
-
import type {AvatarSize} from '../Avatar';
|
|
13
|
-
import {BaseAvatar} from '../Avatar';
|
|
14
|
-
import type {ElevationType, PlacementType} from '../Tooltip';
|
|
15
|
-
import {Tooltip} from '../Tooltip';
|
|
16
|
-
|
|
17
|
-
import css from './AvatarGroup.module.css';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const COLOR_SEQUENCE = ['blue', 'green', 'orange', 'red', 'gray'];
|
|
21
|
-
|
|
22
|
-
export type AvatarGroupProps = {
|
|
23
|
-
children?: React.Node,
|
|
24
|
-
size?: AvatarSize,
|
|
25
|
-
borderColor?: string,
|
|
26
|
-
maxTooltipLines?: number,
|
|
27
|
-
placement?: PlacementType,
|
|
28
|
-
maxAvatars?: number,
|
|
29
|
-
tooltipElevation?: ElevationType,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const AvatarGroup: React$AbstractComponent<
|
|
33
|
-
AvatarGroupProps,
|
|
34
|
-
HTMLDivElement,
|
|
35
|
-
> = React.forwardRef<AvatarGroupProps, HTMLDivElement>(
|
|
36
|
-
(
|
|
37
|
-
{
|
|
38
|
-
children,
|
|
39
|
-
size = 'medium',
|
|
40
|
-
borderColor = colorBackgroundTertiary,
|
|
41
|
-
maxTooltipLines = 7,
|
|
42
|
-
placement = 'top',
|
|
43
|
-
maxAvatars = 5,
|
|
44
|
-
tooltipElevation,
|
|
45
|
-
}: AvatarGroupProps,
|
|
46
|
-
ref,
|
|
47
|
-
): React.Node => {
|
|
48
|
-
const childAvatarCount = React.Children.count(children);
|
|
49
|
-
|
|
50
|
-
const leftOverlap = {
|
|
51
|
-
small: spaceXXSmall,
|
|
52
|
-
medium: `${parseInt(spaceSmall) / 2}px`,
|
|
53
|
-
large: spaceXSmall,
|
|
54
|
-
extraLarge: spaceSmall,
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
let colorIndex = -1;
|
|
58
|
-
|
|
59
|
-
const avatarInGroup = (child, index, color) => {
|
|
60
|
-
const {classNames, text} = child.props;
|
|
61
|
-
const {wrapper, ...restClassNames} = classNames || {};
|
|
62
|
-
const avatar = React.cloneElement(child, {
|
|
63
|
-
size,
|
|
64
|
-
classNames: {
|
|
65
|
-
wrapper: classify(css.avatarInGroup, wrapper),
|
|
66
|
-
...restClassNames,
|
|
67
|
-
},
|
|
68
|
-
style: {
|
|
69
|
-
borderColor,
|
|
70
|
-
marginLeft: `-${index !== 0 ? leftOverlap[size] : 0}`,
|
|
71
|
-
},
|
|
72
|
-
color,
|
|
73
|
-
});
|
|
74
|
-
return text ? (
|
|
75
|
-
<Tooltip body={text} placement={placement} elevation={tooltipElevation}>
|
|
76
|
-
{avatar}
|
|
77
|
-
</Tooltip>
|
|
78
|
-
) : (
|
|
79
|
-
avatar
|
|
80
|
-
);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const childrenArray = React.Children.toArray(children);
|
|
84
|
-
const totalAvatarCount = childrenArray.length;
|
|
85
|
-
const plusAvatar = () => {
|
|
86
|
-
const nameList = [];
|
|
87
|
-
|
|
88
|
-
for (let i = maxAvatars - 1; i < totalAvatarCount; i++) {
|
|
89
|
-
const child = childrenArray[i];
|
|
90
|
-
const {text} = child.props;
|
|
91
|
-
if (text) {
|
|
92
|
-
nameList.push(text);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
const NameListNode = () => (
|
|
97
|
-
<span>
|
|
98
|
-
{nameList.map((name) => (
|
|
99
|
-
<React.Fragment key={name}>
|
|
100
|
-
{name}
|
|
101
|
-
<br />
|
|
102
|
-
</React.Fragment>
|
|
103
|
-
))}
|
|
104
|
-
</span>
|
|
105
|
-
);
|
|
106
|
-
return (
|
|
107
|
-
<Tooltip
|
|
108
|
-
body={<NameListNode />}
|
|
109
|
-
bodyMaxLines={maxTooltipLines}
|
|
110
|
-
placement={placement}
|
|
111
|
-
elevation={tooltipElevation}
|
|
112
|
-
>
|
|
113
|
-
<div className={css.plusAvatar}>
|
|
114
|
-
<BaseAvatar
|
|
115
|
-
size={size}
|
|
116
|
-
color="gray"
|
|
117
|
-
text={`+${childAvatarCount - maxAvatars + 1}`}
|
|
118
|
-
classNames={{wrapper: css.avatarInGroup}}
|
|
119
|
-
style={{
|
|
120
|
-
borderColor,
|
|
121
|
-
marginLeft: `-${leftOverlap[size]}`,
|
|
122
|
-
}}
|
|
123
|
-
/>
|
|
124
|
-
</div>
|
|
125
|
-
</Tooltip>
|
|
126
|
-
);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const childrenWithProps = React.Children.map(children, (child, index) => {
|
|
130
|
-
const {imageSrc} = child.props;
|
|
131
|
-
if (!imageSrc) {
|
|
132
|
-
colorIndex++;
|
|
133
|
-
if (colorIndex === COLOR_SEQUENCE.length) {
|
|
134
|
-
colorIndex = 0;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
const color = COLOR_SEQUENCE[colorIndex];
|
|
139
|
-
if (childAvatarCount <= maxAvatars) {
|
|
140
|
-
return avatarInGroup(child, index, color);
|
|
141
|
-
} else {
|
|
142
|
-
if (index < maxAvatars - 1) {
|
|
143
|
-
return avatarInGroup(child, index, color);
|
|
144
|
-
} else if (index === maxAvatars) {
|
|
145
|
-
return plusAvatar();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
return (
|
|
151
|
-
<div
|
|
152
|
-
className={classify(css.avatarGroupContainer, {
|
|
153
|
-
[css.extraLargeSize]: size === 'extraLarge',
|
|
154
|
-
[css.largeSize]: size === 'large',
|
|
155
|
-
[css.mediumSize]: size === 'medium',
|
|
156
|
-
[css.smallSize]: size === 'small',
|
|
157
|
-
})}
|
|
158
|
-
ref={ref}
|
|
159
|
-
>
|
|
160
|
-
{childrenWithProps}
|
|
161
|
-
</div>
|
|
162
|
-
);
|
|
163
|
-
},
|
|
164
|
-
);
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
colorDanger,
|
|
7
|
-
colorDangerLightest,
|
|
8
|
-
colorGrayLightest,
|
|
9
|
-
colorInformation,
|
|
10
|
-
colorInformationLightest,
|
|
11
|
-
colorNeutral,
|
|
12
|
-
colorNeutralLightest,
|
|
13
|
-
colorSuccess,
|
|
14
|
-
colorSuccessLightest,
|
|
15
|
-
colorWarning,
|
|
16
|
-
colorWarningLightest,
|
|
17
|
-
} from '../../styles/variables/_color';
|
|
18
|
-
import classify from '../../utils/classify';
|
|
19
|
-
import type {IconSize, IconType} from '../Icon';
|
|
20
|
-
import {Icon} from '../Icon';
|
|
21
|
-
import {ButtonTextSmall} from '../Text';
|
|
22
|
-
|
|
23
|
-
import css from './Badge.module.css';
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
type ClassNames = $ReadOnly<{wrapper?: string, text?: string, icon?: string}>;
|
|
27
|
-
|
|
28
|
-
export const BADGE_COLOR = Object.freeze({
|
|
29
|
-
gray: colorGrayLightest,
|
|
30
|
-
red: colorDangerLightest,
|
|
31
|
-
redDark: colorDanger,
|
|
32
|
-
orange: colorWarningLightest,
|
|
33
|
-
orangeDark: colorWarning,
|
|
34
|
-
green: colorSuccessLightest,
|
|
35
|
-
greenDark: colorSuccess,
|
|
36
|
-
blue: colorInformationLightest,
|
|
37
|
-
blueDark: colorInformation,
|
|
38
|
-
indigo: colorNeutralLightest,
|
|
39
|
-
indigoDark: colorNeutral,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export type BadgeColorType = $Keys<typeof BADGE_COLOR>;
|
|
43
|
-
|
|
44
|
-
export type BaseBadgeProps = {
|
|
45
|
-
classNames?: ClassNames,
|
|
46
|
-
fill?: BadgeColorType,
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type BadgeProps = {
|
|
50
|
-
...BaseBadgeProps,
|
|
51
|
-
text: string,
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export type IconBadgeProps = {
|
|
55
|
-
...BaseBadgeProps,
|
|
56
|
-
iconName: string,
|
|
57
|
-
iconType?: IconType,
|
|
58
|
-
iconSize?: IconSize,
|
|
59
|
-
onClick?: ?(SyntheticEvent<HTMLElement>) => mixed,
|
|
60
|
-
ariaLabel?: string,
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const Badge: React$AbstractComponent<BadgeProps, HTMLDivElement> =
|
|
64
|
-
React.forwardRef<BadgeProps, HTMLDivElement>(
|
|
65
|
-
({classNames, text, fill = 'gray'}: BadgeProps, ref): React.Node => {
|
|
66
|
-
const isDark = fill.includes('Dark');
|
|
67
|
-
|
|
68
|
-
return (
|
|
69
|
-
<div
|
|
70
|
-
data-testid="Badge"
|
|
71
|
-
style={{
|
|
72
|
-
'--wrapperBgColor': BADGE_COLOR[fill],
|
|
73
|
-
}}
|
|
74
|
-
className={classify(
|
|
75
|
-
css.badgeWrapper,
|
|
76
|
-
{
|
|
77
|
-
[css.fixedWidth]: text.length <= 2,
|
|
78
|
-
},
|
|
79
|
-
classNames?.wrapper,
|
|
80
|
-
)}
|
|
81
|
-
ref={ref}
|
|
82
|
-
>
|
|
83
|
-
<ButtonTextSmall
|
|
84
|
-
className={classify(
|
|
85
|
-
{
|
|
86
|
-
[css.dark]: isDark,
|
|
87
|
-
[css.light]: !isDark,
|
|
88
|
-
},
|
|
89
|
-
classNames?.text,
|
|
90
|
-
)}
|
|
91
|
-
>
|
|
92
|
-
{text}
|
|
93
|
-
</ButtonTextSmall>
|
|
94
|
-
</div>
|
|
95
|
-
);
|
|
96
|
-
},
|
|
97
|
-
);
|
|
98
|
-
|
|
99
|
-
export const IconBadge: React$AbstractComponent<
|
|
100
|
-
IconBadgeProps,
|
|
101
|
-
HTMLDivElement,
|
|
102
|
-
> = React.forwardRef<IconBadgeProps, HTMLDivElement>(
|
|
103
|
-
(
|
|
104
|
-
{
|
|
105
|
-
classNames,
|
|
106
|
-
fill = 'gray',
|
|
107
|
-
iconName,
|
|
108
|
-
iconSize = 'small',
|
|
109
|
-
iconType = 'solid',
|
|
110
|
-
ariaLabel,
|
|
111
|
-
onClick,
|
|
112
|
-
}: IconBadgeProps,
|
|
113
|
-
ref,
|
|
114
|
-
): React.Node => {
|
|
115
|
-
const isDark = fill.includes('Dark');
|
|
116
|
-
|
|
117
|
-
return (
|
|
118
|
-
<div
|
|
119
|
-
data-testid="Badge"
|
|
120
|
-
style={{
|
|
121
|
-
'--wrapperBgColor': BADGE_COLOR[fill],
|
|
122
|
-
}}
|
|
123
|
-
className={classify(
|
|
124
|
-
css.badgeWrapper,
|
|
125
|
-
css.iconContainer,
|
|
126
|
-
classNames?.wrapper,
|
|
127
|
-
)}
|
|
128
|
-
ref={ref}
|
|
129
|
-
>
|
|
130
|
-
<Icon
|
|
131
|
-
name={iconName}
|
|
132
|
-
type={iconType}
|
|
133
|
-
size={iconSize}
|
|
134
|
-
ariaLabel={ariaLabel}
|
|
135
|
-
onClick={onClick}
|
|
136
|
-
className={classify(
|
|
137
|
-
{
|
|
138
|
-
[css.dark]: isDark,
|
|
139
|
-
[css.light]: !isDark,
|
|
140
|
-
},
|
|
141
|
-
classNames?.icon,
|
|
142
|
-
)}
|
|
143
|
-
/>
|
|
144
|
-
</div>
|
|
145
|
-
);
|
|
146
|
-
},
|
|
147
|
-
);
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import {TEXT_COLORS} from '../../types/typography';
|
|
6
|
-
import classify from '../../utils/classify';
|
|
7
|
-
import type {IconSize, IconType} from '../Icon';
|
|
8
|
-
import {Icon} from '../Icon';
|
|
9
|
-
|
|
10
|
-
import typographyStyle from '../../styles/typography.module.css';
|
|
11
|
-
import css from './BadgedIcon.module.css';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
type ClassNames = $ReadOnly<{
|
|
15
|
-
wrapper?: string,
|
|
16
|
-
icon?: string,
|
|
17
|
-
badgeIcon?: string,
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
export type BadgedIconProps = {
|
|
21
|
-
type?: IconType,
|
|
22
|
-
name: string,
|
|
23
|
-
size?: IconSize,
|
|
24
|
-
ariaLabel?: string,
|
|
25
|
-
showBadge?: boolean,
|
|
26
|
-
classNames?: ClassNames,
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const BadgedIcon = ({
|
|
30
|
-
name,
|
|
31
|
-
showBadge = true,
|
|
32
|
-
classNames,
|
|
33
|
-
size = 'medium',
|
|
34
|
-
type = 'solid',
|
|
35
|
-
ariaLabel,
|
|
36
|
-
}: BadgedIconProps): React.Node => (
|
|
37
|
-
<>
|
|
38
|
-
{!!name && (
|
|
39
|
-
<div
|
|
40
|
-
className={classify(css.iconContainer, css[size], classNames?.wrapper)}
|
|
41
|
-
>
|
|
42
|
-
<Icon
|
|
43
|
-
ariaLabel={ariaLabel}
|
|
44
|
-
name={name}
|
|
45
|
-
className={classNames?.icon}
|
|
46
|
-
name={name}
|
|
47
|
-
size={size === 'large' ? 'medium' : size}
|
|
48
|
-
type={type}
|
|
49
|
-
color={TEXT_COLORS.clickable}
|
|
50
|
-
/>
|
|
51
|
-
{showBadge && <BadgeIcon className={classNames?.badgeIcon} />}
|
|
52
|
-
</div>
|
|
53
|
-
)}
|
|
54
|
-
</>
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
const BadgeIcon = ({className}: {className: ?string}): React.Node => (
|
|
58
|
-
<svg
|
|
59
|
-
className={classify(
|
|
60
|
-
css.badgeIcon,
|
|
61
|
-
typographyStyle[TEXT_COLORS['clickable']],
|
|
62
|
-
className,
|
|
63
|
-
)}
|
|
64
|
-
viewBox="0 0 12 13"
|
|
65
|
-
fill="none"
|
|
66
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
67
|
-
>
|
|
68
|
-
<path
|
|
69
|
-
d="M6.46573 1.0335L8.10352 4.61465L11.6941 6.24816C11.883 6.3424 12.009 6.53088 12.009 6.71936C12.009 6.90784 11.883 7.09632 11.6941 7.15915L8.10352 8.82407L6.46573 12.4052C6.37124 12.5937 6.18226 12.7194 5.99329 12.7194C5.80431 12.7194 5.61533 12.5937 5.55234 12.4052L3.88305 8.82407L0.292498 7.19056C0.103521 7.09632 0.0090332 6.90784 0.0090332 6.71936C0.0090332 6.53088 0.103521 6.3424 0.292498 6.24816L3.88305 4.61465L5.55234 1.0335C5.61533 0.845015 5.80431 0.71936 5.99329 0.71936C6.18226 0.71936 6.37124 0.845015 6.46573 1.0335Z"
|
|
70
|
-
fill="currentColor"
|
|
71
|
-
/>
|
|
72
|
-
</svg>
|
|
73
|
-
);
|