@scottish-government/designsystem-react 0.12.0 → 0.13.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/main.ts +6 -6
- package/.storybook/sgdsArgTypes.ts +84 -43
- package/CHANGELOG.md +27 -1
- package/dist/common/AbstractNotificationBanner/AbstractNotificationBanner.d.ts +9 -0
- package/dist/common/AbstractNotificationBanner/AbstractNotificationBanner.jsx +62 -0
- package/dist/common/AbstractNotificationBanner/index.d.ts +1 -0
- package/dist/common/AbstractNotificationBanner/index.js +8 -0
- package/dist/common/ActionLink/ActionLink.d.ts +5 -0
- package/dist/common/ActionLink/ActionLink.jsx +19 -0
- package/dist/common/ActionLink/index.d.ts +1 -0
- package/dist/common/ActionLink/index.js +8 -0
- package/dist/common/ConditionalWrapper/ConditionalWrapper.d.ts +8 -0
- package/dist/common/ConditionalWrapper/ConditionalWrapper.jsx +8 -0
- package/dist/common/ConditionalWrapper/index.d.ts +1 -0
- package/dist/common/ConditionalWrapper/index.js +8 -0
- package/dist/common/FileIcon/FileIcon.d.ts +6 -0
- package/dist/common/FileIcon/FileIcon.jsx +46 -0
- package/dist/common/FileIcon/index.d.ts +1 -0
- package/dist/common/FileIcon/index.js +8 -0
- package/dist/common/HintText/HintText.d.ts +5 -0
- package/dist/common/HintText/HintText.jsx +9 -0
- package/dist/common/HintText/index.d.ts +1 -0
- package/dist/common/HintText/index.js +8 -0
- package/dist/common/Icon/Icon.d.ts +6 -0
- package/dist/common/Icon/Icon.jsx +51 -0
- package/dist/common/Icon/index.d.ts +1 -0
- package/dist/common/Icon/index.js +8 -0
- package/dist/common/ScreenReaderText/ScreenReaderText.d.ts +5 -0
- package/dist/common/ScreenReaderText/ScreenReaderText.jsx +9 -0
- package/dist/common/ScreenReaderText/index.d.ts +1 -0
- package/dist/common/ScreenReaderText/index.js +8 -0
- package/dist/common/WrapperTag/WrapperTag.d.ts +8 -0
- package/dist/common/WrapperTag/WrapperTag.jsx +11 -0
- package/dist/common/WrapperTag/index.d.ts +1 -0
- package/dist/common/WrapperTag/index.js +8 -0
- package/dist/common/index.d.ts +8 -0
- package/dist/common/index.js +22 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +8 -0
- package/dist/components/AspectBox/index.d.ts +1 -0
- package/dist/components/AspectBox/index.js +8 -0
- package/dist/components/BackToTop/index.d.ts +1 -0
- package/dist/components/BackToTop/index.js +8 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/index.js +8 -0
- package/dist/components/Button/ButtonGroup.d.ts +5 -0
- package/dist/components/Button/ButtonGroup.jsx +13 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +10 -0
- package/dist/components/CategoryItem/index.d.ts +1 -0
- package/dist/components/CategoryItem/index.js +8 -0
- package/dist/components/CategoryList/index.d.ts +1 -0
- package/dist/components/CategoryList/index.js +8 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +10 -0
- package/dist/components/ConfirmationMessage/index.d.ts +1 -0
- package/dist/components/ConfirmationMessage/index.js +8 -0
- package/dist/components/ContentsNav/index.d.ts +1 -0
- package/dist/components/ContentsNav/index.js +8 -0
- package/dist/components/CookieBanner/index.d.ts +1 -0
- package/dist/components/CookieBanner/index.js +8 -0
- package/dist/components/DatePicker/DatePicker.jsx +2 -2
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.js +8 -0
- package/dist/components/Details/index.d.ts +1 -0
- package/dist/components/Details/index.js +8 -0
- package/dist/components/ErrorMessage/index.d.ts +1 -0
- package/dist/components/ErrorMessage/index.js +8 -0
- package/dist/components/ErrorSummary/index.d.ts +1 -0
- package/dist/components/ErrorSummary/index.js +8 -0
- package/dist/components/FeatureHeader/FeatureHeader.d.ts +13 -0
- package/dist/components/FeatureHeader/FeatureHeader.jsx +70 -0
- package/dist/components/FeatureHeader/index.d.ts +1 -0
- package/dist/components/FeatureHeader/index.js +8 -0
- package/dist/components/FileDownload/index.d.ts +1 -0
- package/dist/components/FileDownload/index.js +8 -0
- package/dist/components/HideThisPage/index.d.ts +1 -0
- package/dist/components/HideThisPage/index.js +8 -0
- package/dist/components/InsetText/index.d.ts +1 -0
- package/dist/components/InsetText/index.js +8 -0
- package/dist/components/NotificationBanner/index.d.ts +1 -0
- package/dist/components/NotificationBanner/index.js +8 -0
- package/dist/components/NotificationPanel/index.d.ts +1 -0
- package/dist/components/NotificationPanel/index.js +8 -0
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/PageHeader/index.js +8 -0
- package/dist/components/PageMetadata/index.d.ts +1 -0
- package/dist/components/PageMetadata/index.js +8 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Pagination/index.js +8 -0
- package/dist/components/PhaseBanner/index.d.ts +1 -0
- package/dist/components/PhaseBanner/index.js +8 -0
- package/dist/components/Question/Question.jsx +1 -1
- package/dist/components/Question/index.d.ts +1 -0
- package/dist/components/Question/index.js +8 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/RadioButton/index.js +10 -0
- package/dist/components/SearchFacets/index.d.ts +1 -0
- package/dist/components/SearchFacets/index.js +8 -0
- package/dist/components/SearchFilters/SearchFilters.jsx +6 -6
- package/dist/components/SearchFilters/index.d.ts +1 -0
- package/dist/components/SearchFilters/index.js +8 -0
- package/dist/components/SearchResult/SearchResult.jsx +2 -2
- package/dist/components/SearchResult/index.d.ts +1 -0
- package/dist/components/SearchResult/index.js +8 -0
- package/dist/components/SearchSort/SearchSort.jsx +2 -2
- package/dist/components/SearchSort/index.d.ts +1 -0
- package/dist/components/SearchSort/index.js +8 -0
- package/dist/components/Select/Select.jsx +1 -1
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +8 -0
- package/dist/components/SequentialNavigation/index.d.ts +1 -0
- package/dist/components/SequentialNavigation/index.js +8 -0
- package/dist/components/SideNavigation/index.d.ts +1 -0
- package/dist/components/SideNavigation/index.js +8 -0
- package/dist/components/SiteFooter/index.d.ts +1 -0
- package/dist/components/SiteFooter/index.js +8 -0
- package/dist/components/SiteHeader/SiteHeader.jsx +1 -1
- package/dist/components/SiteHeader/index.d.ts +1 -0
- package/dist/components/SiteHeader/index.js +8 -0
- package/dist/components/SiteNavigation/index.d.ts +1 -0
- package/dist/components/SiteNavigation/index.js +8 -0
- package/dist/components/SiteSearch/SiteSearch.jsx +1 -1
- package/dist/components/SiteSearch/index.d.ts +1 -0
- package/dist/components/SiteSearch/index.js +8 -0
- package/dist/components/SkipLinks/index.d.ts +1 -0
- package/dist/components/SkipLinks/index.js +8 -0
- package/dist/components/SummaryCard/index.d.ts +1 -0
- package/dist/components/SummaryCard/index.js +8 -0
- package/dist/components/SummaryList/index.d.ts +1 -0
- package/dist/components/SummaryList/index.js +8 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +8 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +8 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/index.js +8 -0
- package/dist/components/TaskList/TaskList.jsx +1 -1
- package/dist/components/TaskList/index.d.ts +1 -0
- package/dist/components/TaskList/index.js +8 -0
- package/dist/components/TextInput/TextInput.jsx +2 -2
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/TextInput/index.js +8 -0
- package/dist/components/Textarea/Textarea.jsx +1 -1
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Textarea/index.js +8 -0
- package/dist/components/WarningText/index.d.ts +1 -0
- package/dist/components/WarningText/index.js +8 -0
- package/dist/components/index.d.ts +46 -0
- package/dist/components/index.js +101 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/useTracking/index.d.ts +1 -0
- package/dist/hooks/useTracking/index.js +8 -0
- package/dist/hooks/useTracking/useTracking.d.ts +1 -0
- package/dist/hooks/useTracking/useTracking.js +21 -0
- package/dist/images/index.d.ts +2 -0
- package/dist/images/index.js +38 -0
- package/eslint.config.mjs +32 -0
- package/package.json +29 -22
- package/src/common/{AbstractNotificationBanner.test.tsx → AbstractNotificationBanner/AbstractNotificationBanner.test.tsx} +1 -1
- package/src/common/{AbstractNotificationBanner.tsx → AbstractNotificationBanner/AbstractNotificationBanner.tsx} +7 -6
- package/src/common/AbstractNotificationBanner/index.ts +1 -0
- package/src/common/AbstractNotificationBanner/types.ts +15 -0
- package/src/common/{ActionLink.tsx → ActionLink/ActionLink.tsx} +3 -1
- package/src/common/ActionLink/index.ts +1 -0
- package/src/common/ActionLink/types.ts +8 -0
- package/src/common/ConditionalWrapper/ConditionalWrapper.tsx +17 -0
- package/src/common/ConditionalWrapper/index.ts +1 -0
- package/src/common/ConditionalWrapper/types.ts +4 -0
- package/src/common/{FileIcon.tsx → FileIcon/FileIcon.tsx} +3 -2
- package/src/common/FileIcon/index.ts +1 -0
- package/src/common/FileIcon/types.ts +7 -0
- package/src/common/{HintText.test.tsx → HintText/HintText.test.tsx} +3 -15
- package/src/common/{HintText.tsx → HintText/HintText.tsx} +4 -4
- package/src/common/HintText/index.ts +1 -0
- package/src/common/HintText/types.ts +4 -0
- package/src/common/{Icon.tsx → Icon/Icon.tsx} +3 -2
- package/src/common/Icon/index.ts +1 -0
- package/src/common/Icon/types.ts +9 -0
- package/src/common/{ScreenReaderText.tsx → ScreenReaderText/ScreenReaderText.tsx} +1 -1
- package/src/common/ScreenReaderText/index.ts +1 -0
- package/src/common/{WrapperTag.tsx → WrapperTag/WrapperTag.tsx} +5 -3
- package/src/common/WrapperTag/index.ts +1 -0
- package/src/common/WrapperTag/types.ts +3 -0
- package/src/common/index.ts +8 -0
- package/src/components/Accordion/Accordion.Item.stories.tsx +1 -5
- package/src/components/Accordion/Accordion.stories.tsx +5 -5
- package/src/components/Accordion/Accordion.tsx +5 -4
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/Accordion/types.ts +13 -0
- package/src/components/AspectBox/AspectBox.stories.tsx +1 -2
- package/src/components/AspectBox/AspectBox.tsx +5 -4
- package/src/components/AspectBox/index.ts +1 -0
- package/src/components/AspectBox/types.ts +3 -0
- package/src/components/BackToTop/BackToTop.tsx +3 -2
- package/src/components/BackToTop/index.ts +1 -0
- package/src/components/BackToTop/types.ts +3 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +4 -2
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/types.ts +6 -0
- package/src/components/Button/Button.tsx +2 -1
- package/src/components/{ButtonGroup → Button}/ButtonGroup.stories.tsx +1 -1
- package/src/components/{ButtonGroup → Button}/ButtonGroup.tsx +3 -1
- package/src/components/Button/index.ts +2 -0
- package/src/components/Button/types.ts +21 -0
- package/src/components/CategoryItem/CategoryItem.tsx +7 -4
- package/src/components/CategoryItem/index.ts +1 -0
- package/src/components/CategoryItem/types.ts +10 -0
- package/src/components/CategoryList/CategoryList.stories.tsx +1 -1
- package/src/components/CategoryList/CategoryList.test.tsx +1 -1
- package/src/components/CategoryList/CategoryList.tsx +4 -2
- package/src/components/CategoryList/index.ts +1 -0
- package/src/components/CategoryList/types.ts +5 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +3 -3
- package/src/components/Checkbox/Checkbox.tsx +5 -4
- package/src/components/Checkbox/CheckboxGroup.tsx +3 -3
- package/src/components/Checkbox/index.ts +2 -0
- package/src/components/Checkbox/types.ts +9 -0
- package/src/components/ConfirmationMessage/ConfirmationMessage.tsx +2 -1
- package/src/components/ConfirmationMessage/index.ts +1 -0
- package/src/components/ConfirmationMessage/types.ts +7 -0
- package/src/components/ContentsNav/ContentsNav.stories.tsx +5 -1
- package/src/components/ContentsNav/ContentsNav.tsx +3 -2
- package/src/components/ContentsNav/index.ts +1 -0
- package/src/components/ContentsNav/types.ts +11 -0
- package/src/components/CookieBanner/CookieBanner.Buttons.stories.tsx +4 -4
- package/src/components/CookieBanner/CookieBanner.stories.tsx +7 -7
- package/src/components/CookieBanner/CookieBanner.test.tsx +6 -0
- package/src/components/CookieBanner/CookieBanner.tsx +13 -3
- package/src/components/CookieBanner/index.ts +1 -0
- package/src/components/DatePicker/DatePicker.test.tsx +0 -5
- package/src/components/DatePicker/DatePicker.tsx +5 -4
- package/src/components/DatePicker/index.ts +1 -0
- package/src/components/DatePicker/types.ts +20 -0
- package/src/components/Details/Details.stories.tsx +1 -1
- package/src/components/Details/Details.tsx +3 -1
- package/src/components/Details/index.ts +1 -0
- package/src/components/Details/types.ts +4 -0
- package/src/components/ErrorMessage/ErrorMessage.tsx +3 -1
- package/src/components/ErrorMessage/index.ts +1 -0
- package/src/components/ErrorMessage/types.ts +3 -0
- package/src/components/ErrorSummary/ErrorSummary.test.tsx +1 -1
- package/src/components/ErrorSummary/ErrorSummary.tsx +3 -2
- package/src/components/ErrorSummary/index.ts +1 -0
- package/src/components/ErrorSummary/types.ts +11 -0
- package/src/components/FileDownload/FileDownload.tsx +2 -1
- package/src/components/FileDownload/index.ts +1 -0
- package/src/components/FileDownload/types.ts +11 -0
- package/src/components/HideThisPage/HideThisPage.tsx +3 -2
- package/src/components/HideThisPage/index.ts +1 -0
- package/src/components/HideThisPage/types.ts +3 -0
- package/src/components/InsetText/InsetText.tsx +1 -1
- package/src/components/InsetText/index.ts +1 -0
- package/src/components/NotificationBanner/NotificationBanner.stories.tsx +2 -2
- package/src/components/NotificationBanner/NotificationBanner.tsx +5 -4
- package/src/components/NotificationBanner/index.ts +1 -0
- package/src/components/NotificationPanel/NotificationPanel.tsx +2 -1
- package/src/components/NotificationPanel/index.ts +1 -0
- package/src/components/NotificationPanel/types.ts +7 -0
- package/src/components/PageHeader/PageHeader.stories.tsx +1 -1
- package/src/components/PageHeader/PageHeader.tsx +3 -1
- package/src/components/PageHeader/index.ts +1 -0
- package/src/components/PageHeader/types.ts +5 -0
- package/src/components/PageMetadata/PageMetadata.stories.tsx +1 -1
- package/src/components/PageMetadata/PageMetadata.tsx +5 -3
- package/src/components/PageMetadata/index.ts +1 -0
- package/src/components/PageMetadata/types.ts +7 -0
- package/src/components/Pagination/Pagination.tsx +5 -3
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/Pagination/types.ts +20 -0
- package/src/components/PhaseBanner/PhaseBanner.stories.tsx +1 -4
- package/src/components/PhaseBanner/PhaseBanner.tsx +2 -1
- package/src/components/PhaseBanner/index.ts +1 -0
- package/src/components/PhaseBanner/types.ts +3 -0
- package/src/components/Question/Question.stories.tsx +2 -3
- package/src/components/Question/Question.tsx +5 -4
- package/src/components/Question/index.ts +1 -0
- package/src/components/Question/types.ts +9 -0
- package/src/components/RadioButton/RadioButton.tsx +5 -4
- package/src/components/RadioButton/RadioGroup.stories.tsx +1 -2
- package/src/components/RadioButton/RadioGroup.test.tsx +1 -2
- package/src/components/RadioButton/RadioGroup.tsx +2 -1
- package/src/components/RadioButton/index.ts +2 -0
- package/src/components/RadioButton/types.ts +12 -0
- package/src/components/SearchFacets/SearchFacets.Group.stories.tsx +2 -3
- package/src/components/SearchFacets/SearchFacets.stories.tsx +1 -1
- package/src/components/SearchFacets/SearchFacets.tsx +7 -6
- package/src/components/SearchFacets/index.ts +1 -0
- package/src/components/SearchFacets/types.ts +14 -0
- package/src/components/SearchFilters/SearchFilters.Panel.stories.tsx +20 -9
- package/src/components/SearchFilters/SearchFilters.stories.tsx +3 -3
- package/src/components/SearchFilters/SearchFilters.test.tsx +1 -1
- package/src/components/SearchFilters/SearchFilters.tsx +8 -7
- package/src/components/SearchFilters/index.ts +1 -0
- package/src/components/SearchFilters/types.ts +14 -0
- package/src/components/SearchResult/SearchResult.stories.tsx +9 -10
- package/src/components/SearchResult/SearchResult.tsx +11 -10
- package/src/components/SearchResult/index.ts +1 -0
- package/src/components/SearchResult/types.ts +13 -0
- package/src/components/SearchSort/SearchSort.stories.tsx +2 -1
- package/src/components/SearchSort/SearchSort.tsx +4 -3
- package/src/components/SearchSort/index.ts +1 -0
- package/src/components/SearchSort/types.ts +7 -0
- package/src/components/Select/Select.tsx +6 -5
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/types.ts +7 -0
- package/src/components/SequentialNavigation/SequentialNavigation.tsx +6 -4
- package/src/components/SequentialNavigation/index.ts +1 -0
- package/src/components/SequentialNavigation/types.ts +12 -0
- package/src/components/SideNavigation/SideNavigation.tsx +5 -4
- package/src/components/SideNavigation/index.ts +1 -0
- package/src/components/SideNavigation/types.ts +16 -0
- package/src/components/SiteFooter/SiteFooter.tsx +7 -6
- package/src/components/SiteFooter/index.ts +1 -0
- package/src/components/SiteFooter/types.ts +20 -0
- package/src/components/SiteHeader/SiteHeader.stories.tsx +7 -6
- package/src/components/SiteHeader/SiteHeader.test.tsx +3 -3
- package/src/components/SiteHeader/SiteHeader.tsx +11 -10
- package/src/components/SiteHeader/index.ts +1 -0
- package/src/components/SiteHeader/types.ts +22 -0
- package/src/components/SiteNavigation/SiteNavigation.tsx +4 -2
- package/src/components/SiteNavigation/index.ts +1 -0
- package/src/components/SiteNavigation/types.ts +11 -0
- package/src/components/SiteSearch/SiteSearch.stories.tsx +4 -2
- package/src/components/SiteSearch/SiteSearch.tsx +7 -6
- package/src/components/SiteSearch/index.ts +1 -0
- package/src/components/SiteSearch/types.ts +13 -0
- package/src/components/SkipLinks/SkipLinks.stories.tsx +3 -3
- package/src/components/SkipLinks/SkipLinks.tsx +4 -4
- package/src/components/SkipLinks/index.ts +1 -0
- package/src/components/SkipLinks/types.ts +9 -0
- package/src/components/SummaryCard/SummaryCard.stories.tsx +1 -1
- package/src/components/SummaryCard/SummaryCard.test.tsx +2 -13
- package/src/components/SummaryCard/SummaryCard.tsx +6 -4
- package/src/components/SummaryCard/index.ts +1 -0
- package/src/components/SummaryCard/types.ts +6 -0
- package/src/components/SummaryList/SummaryList.Item.stories.tsx +5 -5
- package/src/components/SummaryList/SummaryList.stories.tsx +1 -1
- package/src/components/SummaryList/SummaryList.test.tsx +1 -6
- package/src/components/SummaryList/SummaryList.tsx +8 -6
- package/src/components/SummaryList/index.ts +1 -0
- package/src/components/SummaryList/types.ts +7 -0
- package/src/components/Table/Table.tsx +3 -2
- package/src/components/Table/index.ts +1 -0
- package/src/components/Table/types.ts +6 -0
- package/src/components/Tabs/Tabs.Item.stories.tsx +7 -7
- package/src/components/Tabs/Tabs.stories.tsx +3 -3
- package/src/components/Tabs/Tabs.tsx +7 -5
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tabs/types.ts +19 -0
- package/src/components/Tag/Tag.tsx +3 -1
- package/src/components/Tag/index.ts +1 -0
- package/src/components/Tag/types.ts +5 -0
- package/src/components/TaskList/TaskList.Group.stories.tsx +0 -5
- package/src/components/TaskList/TaskList.stories.tsx +0 -1
- package/src/components/TaskList/TaskList.tsx +13 -10
- package/src/components/TaskList/index.ts +1 -0
- package/src/components/TaskList/types.ts +20 -0
- package/src/components/TextInput/TextInput.tsx +8 -8
- package/src/components/TextInput/index.ts +1 -0
- package/src/components/TextInput/types.ts +12 -0
- package/src/components/Textarea/Textarea.tsx +7 -6
- package/src/components/Textarea/index.ts +1 -0
- package/src/components/WarningText/WarningText.tsx +1 -1
- package/src/components/WarningText/index.ts +1 -0
- package/src/components/index.ts +46 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useTracking/index.ts +1 -0
- package/src/hooks/{useTracking.test.tsx → useTracking/useTracking.test.tsx} +5 -7
- package/src/hooks/{useTracking.ts → useTracking/useTracking.ts} +1 -1
- package/src/images/icons/arrow_upward.tsx +10 -10
- package/src/images/icons/calendar_today.tsx +10 -10
- package/src/images/icons/cancel.tsx +8 -8
- package/src/images/icons/check_circle.tsx +10 -10
- package/src/images/icons/chevron_left.tsx +10 -10
- package/src/images/icons/chevron_right.tsx +10 -10
- package/src/images/icons/close.tsx +10 -10
- package/src/images/icons/description.tsx +10 -10
- package/src/images/icons/double_chevron_left.tsx +8 -8
- package/src/images/icons/double_chevron_right.tsx +8 -8
- package/src/images/icons/error.tsx +10 -10
- package/src/images/icons/expand_less.tsx +10 -10
- package/src/images/icons/expand_more.tsx +10 -10
- package/src/images/icons/list.tsx +13 -13
- package/src/images/icons/menu.tsx +10 -10
- package/src/images/icons/priority_high.tsx +11 -11
- package/src/images/icons/search.tsx +10 -10
- package/src/images/index.ts +2 -0
- package/src/index.ts +4 -0
- package/src/shared-types.ts +40 -0
- package/vite.config.ts +4 -2
- package/@types/common/AbstractNotificationBanner.d.ts +0 -17
- package/@types/common/ActionLink.d.ts +0 -8
- package/@types/common/ConditionalWrapper.d.ts +0 -6
- package/@types/common/FileIcon.d.ts +0 -7
- package/@types/common/HintText.d.ts +0 -6
- package/@types/common/Icon.d.ts +0 -9
- package/@types/common/ScreenReaderText.d.ts +0 -4
- package/@types/common/WrapperTag.d.ts +0 -5
- package/@types/components/Accordion.d.ts +0 -15
- package/@types/components/AspectBox.d.ts +0 -5
- package/@types/components/BackToTop.d.ts +0 -5
- package/@types/components/Breadcrumbs.d.ts +0 -11
- package/@types/components/Button.d.ts +0 -17
- package/@types/components/ButtonGroup.d.ts +0 -5
- package/@types/components/CategoryItem.d.ts +0 -10
- package/@types/components/CategoryList.d.ts +0 -7
- package/@types/components/Checkbox.d.ts +0 -11
- package/@types/components/ConfirmationMessage.d.ts +0 -7
- package/@types/components/ContentsNav.d.ts +0 -13
- package/@types/components/DatePicker.d.ts +0 -20
- package/@types/components/Details.d.ts +0 -6
- package/@types/components/ErrorMessage.d.ts +0 -5
- package/@types/components/ErrorSummary.d.ts +0 -12
- package/@types/components/FileDownload.d.ts +0 -11
- package/@types/components/HideThisPage.d.ts +0 -5
- package/@types/components/InsetText.d.ts +0 -5
- package/@types/components/Metadata.d.ts +0 -11
- package/@types/components/NotificationPanel.d.ts +0 -7
- package/@types/components/PageHeader.d.ts +0 -7
- package/@types/components/Pagination.d.ts +0 -22
- package/@types/components/PhaseBanner.d.ts +0 -5
- package/@types/components/Question.d.ts +0 -11
- package/@types/components/RadioButton.d.ts +0 -14
- package/@types/components/SearchFacets.d.ts +0 -18
- package/@types/components/SearchFilters.d.ts +0 -14
- package/@types/components/SearchResult.d.ts +0 -30
- package/@types/components/SearchSort.d.ts +0 -9
- package/@types/components/Select.d.ts +0 -7
- package/@types/components/SequentialNavigation.d.ts +0 -14
- package/@types/components/SideNavigation.d.ts +0 -18
- package/@types/components/SiteFooter.d.ts +0 -25
- package/@types/components/SiteHeader.d.ts +0 -20
- package/@types/components/SiteNavigation.d.ts +0 -13
- package/@types/components/SiteSearch.d.ts +0 -14
- package/@types/components/SkipLinks.d.ts +0 -13
- package/@types/components/SummaryCard.d.ts +0 -6
- package/@types/components/SummaryList.d.ts +0 -14
- package/@types/components/Table.d.ts +0 -8
- package/@types/components/Tabs.d.ts +0 -21
- package/@types/components/Tag.d.ts +0 -5
- package/@types/components/TaskList.d.ts +0 -22
- package/@types/components/TextInput.d.ts +0 -12
- package/@types/components/Textarea.d.ts +0 -4
- package/@types/components/WarningText.d.ts +0 -5
- package/@types/global.d.ts +0 -1
- package/@types/sgds.d.ts +0 -49
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/common/ConditionalWrapper.tsx +0 -9
- /package/src/common/{ActionLink.test.tsx → ActionLink/ActionLink.test.tsx} +0 -0
- /package/src/common/{ConditionalWrapper.test.tsx → ConditionalWrapper/ConditionalWrapper.test.tsx} +0 -0
- /package/src/common/{FileIcon.test.tsx → FileIcon/FileIcon.test.tsx} +0 -0
- /package/src/common/{Icon.test.tsx → Icon/Icon.test.tsx} +0 -0
- /package/src/common/{ScreenReaderText.test.tsx → ScreenReaderText/ScreenReaderText.test.tsx} +0 -0
- /package/src/common/{WrapperTag.test.tsx → WrapperTag/WrapperTag.test.tsx} +0 -0
- /package/src/components/{ButtonGroup → Button}/ButtonGroup.test.tsx +0 -0
|
@@ -2,7 +2,8 @@ import { Children } from 'react';
|
|
|
2
2
|
import ConditionalWrapper from '../../common/ConditionalWrapper';
|
|
3
3
|
import HintText from '../../common/HintText';
|
|
4
4
|
import ScreenReaderText from '../../common/ScreenReaderText';
|
|
5
|
-
import Tag from '../Tag
|
|
5
|
+
import Tag from '../Tag';
|
|
6
|
+
import { TaskListGroupProps, TaskListItemProps, TaskListProps } from './types';
|
|
6
7
|
|
|
7
8
|
const TaskItem = ({
|
|
8
9
|
children,
|
|
@@ -15,7 +16,7 @@ const TaskItem = ({
|
|
|
15
16
|
tagColour = 'grey',
|
|
16
17
|
title,
|
|
17
18
|
...props
|
|
18
|
-
}:
|
|
19
|
+
}: TaskListItemProps) => {
|
|
19
20
|
if (isComplete) {
|
|
20
21
|
tagColour = 'green';
|
|
21
22
|
statusText = statusText || 'Completed'
|
|
@@ -24,11 +25,13 @@ const TaskItem = ({
|
|
|
24
25
|
const LINK_CLASS = 'ds_task-list__task-link';
|
|
25
26
|
|
|
26
27
|
function getLinkElement(children: React.ReactNode) {
|
|
28
|
+
let linkElement;
|
|
27
29
|
if (linkComponent) {
|
|
28
|
-
|
|
29
|
-
} else
|
|
30
|
-
|
|
30
|
+
linkElement = linkComponent({ className: LINK_CLASS, href, children });
|
|
31
|
+
} else {
|
|
32
|
+
linkElement = <a href={href} className={LINK_CLASS}>{children}</a>;
|
|
31
33
|
}
|
|
34
|
+
return linkElement as React.JSX.Element;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
return (
|
|
@@ -77,7 +80,7 @@ const TaskGroup = ({
|
|
|
77
80
|
intro,
|
|
78
81
|
title,
|
|
79
82
|
...props
|
|
80
|
-
}:
|
|
83
|
+
}: TaskListGroupProps) => {
|
|
81
84
|
return (
|
|
82
85
|
<li
|
|
83
86
|
className={[
|
|
@@ -101,12 +104,12 @@ const TaskList = ({
|
|
|
101
104
|
headingId = 'task-list',
|
|
102
105
|
title,
|
|
103
106
|
...props
|
|
104
|
-
}:
|
|
107
|
+
}: TaskListProps) => {
|
|
105
108
|
let taskCount = 0;
|
|
106
|
-
|
|
109
|
+
const incompleteTaskIds: string[] = [];
|
|
107
110
|
let completedTasksCount = 0;
|
|
108
111
|
|
|
109
|
-
function processChild(item:
|
|
112
|
+
function processChild(item: React.JSX.Element) {
|
|
110
113
|
if (item.type.displayName === 'TaskList.Item') {
|
|
111
114
|
taskCount = taskCount + 1;
|
|
112
115
|
|
|
@@ -131,7 +134,7 @@ const TaskList = ({
|
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
Children.forEach(children, child => {
|
|
134
|
-
processChild(child);
|
|
137
|
+
processChild(child as React.JSX.Element);
|
|
135
138
|
});
|
|
136
139
|
|
|
137
140
|
return (
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TaskList';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LinkComponent, TagColour } from '../../shared-types';
|
|
2
|
+
|
|
3
|
+
export interface TaskListGroupProps extends React.AllHTMLAttributes<HTMLElement> {
|
|
4
|
+
intro?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface TaskListItemProps extends React.AllHTMLAttributes<HTMLElement> {
|
|
9
|
+
href?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
isComplete?: boolean;
|
|
12
|
+
linkComponent?: LinkComponent;
|
|
13
|
+
statusText?: string;
|
|
14
|
+
tagColour?: TagColour;
|
|
15
|
+
title: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TaskListProps extends React.AllHTMLAttributes<HTMLElement> {
|
|
19
|
+
headingId?: string;
|
|
20
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
-
// @ts-
|
|
2
|
+
// @ts-expect-error no types from core SGDS
|
|
3
3
|
import DSCharacterCount from '@scottish-government/design-system/src/forms/character-count/character-count';
|
|
4
|
-
import Button from '../Button
|
|
4
|
+
import Button from '../Button';
|
|
5
5
|
import ConditionalWrapper from '../../common/ConditionalWrapper';
|
|
6
|
-
import ErrorMessage from '../ErrorMessage
|
|
6
|
+
import ErrorMessage from '../ErrorMessage';
|
|
7
7
|
import HintText from '../../common/HintText';
|
|
8
|
+
import { TextInputProps } from './types';
|
|
8
9
|
|
|
9
10
|
const TextInput = ({
|
|
10
11
|
buttonIcon,
|
|
11
12
|
buttonText,
|
|
12
|
-
children,
|
|
13
13
|
className,
|
|
14
14
|
countThreshold,
|
|
15
15
|
width,
|
|
@@ -29,7 +29,7 @@ const TextInput = ({
|
|
|
29
29
|
type = 'text',
|
|
30
30
|
value,
|
|
31
31
|
...props
|
|
32
|
-
}:
|
|
32
|
+
}: TextInputProps) => {
|
|
33
33
|
const errorMessageId = `error-message-${id}`;
|
|
34
34
|
const hintTextId = `hint-text-${id}`;
|
|
35
35
|
const ref = useRef(null);
|
|
@@ -45,13 +45,13 @@ const TextInput = ({
|
|
|
45
45
|
}
|
|
46
46
|
}, [ref]);
|
|
47
47
|
|
|
48
|
-
function handleBlur(event: React.FocusEvent) {
|
|
48
|
+
function handleBlur(event: React.FocusEvent<HTMLInputElement>) {
|
|
49
49
|
if (typeof onBlur === 'function') {
|
|
50
50
|
onBlur(event);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
function handleChange(event: React.ChangeEvent) {
|
|
54
|
+
function handleChange(event: React.ChangeEvent<HTMLInputElement>) {
|
|
55
55
|
if (typeof onChange === 'function') {
|
|
56
56
|
onChange(event);
|
|
57
57
|
}
|
|
@@ -63,7 +63,7 @@ const TextInput = ({
|
|
|
63
63
|
wrapper={(children: React.JSX.Element) => <div ref={ref} data-threshold={countThreshold} data-module="ds-character-count">{children}</div>}
|
|
64
64
|
>
|
|
65
65
|
<label className="ds_label" htmlFor={id}>{label}</label>
|
|
66
|
-
{hintText && <HintText id={hintTextId}
|
|
66
|
+
{hintText && <HintText id={hintTextId}>{hintText}</HintText>}
|
|
67
67
|
{errorMessage && <ErrorMessage id={errorMessageId}>{errorMessage}</ErrorMessage>}
|
|
68
68
|
<ConditionalWrapper
|
|
69
69
|
condition={hasButton || typeof isCurrency !== 'undefined' && isCurrency}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TextInput';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IconName, InputWidth, TextInputBase } from '../../shared-types';
|
|
2
|
+
|
|
3
|
+
export interface TextInputProps extends TextInputBase<HTMLInputElement> {
|
|
4
|
+
buttonIcon?: IconName;
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
currencySymbol?: string;
|
|
8
|
+
hasButton?: boolean;
|
|
9
|
+
isCurrency?: boolean;
|
|
10
|
+
type?: string;
|
|
11
|
+
width?: InputWidth;
|
|
12
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
-
// @ts-
|
|
2
|
+
// @ts-expect-error no types from core SGDS
|
|
3
3
|
import DSCharacterCount from '@scottish-government/design-system/src/forms/character-count/character-count';
|
|
4
4
|
import ConditionalWrapper from '../../common/ConditionalWrapper';
|
|
5
|
-
import ErrorMessage from '../ErrorMessage
|
|
5
|
+
import ErrorMessage from '../ErrorMessage';
|
|
6
6
|
import HintText from '../../common/HintText';
|
|
7
|
+
import { TextInputBase } from '../../shared-types';
|
|
7
8
|
|
|
8
9
|
const Textarea = ({
|
|
9
10
|
className,
|
|
@@ -21,7 +22,7 @@ const Textarea = ({
|
|
|
21
22
|
rows = 4,
|
|
22
23
|
value,
|
|
23
24
|
...props
|
|
24
|
-
}:
|
|
25
|
+
}: TextInputBase<HTMLTextAreaElement>) => {
|
|
25
26
|
const errorMessageId = `error-message-${id}`;
|
|
26
27
|
const hintTextId = `hint-text-${id}`;
|
|
27
28
|
const ref = useRef(null);
|
|
@@ -36,13 +37,13 @@ const Textarea = ({
|
|
|
36
37
|
}
|
|
37
38
|
}, [ref]);
|
|
38
39
|
|
|
39
|
-
function handleBlur(event: React.FocusEvent) {
|
|
40
|
+
function handleBlur(event: React.FocusEvent<HTMLTextAreaElement>) {
|
|
40
41
|
if (typeof onBlur === 'function') {
|
|
41
42
|
onBlur(event);
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
function handleChange(event: React.ChangeEvent) {
|
|
46
|
+
function handleChange(event: React.ChangeEvent<HTMLTextAreaElement>) {
|
|
46
47
|
if (typeof onChange === 'function') {
|
|
47
48
|
onChange(event);
|
|
48
49
|
}
|
|
@@ -54,7 +55,7 @@ const Textarea = ({
|
|
|
54
55
|
wrapper={(children: React.JSX.Element) => <div ref={ref} data-threshold={countThreshold} data-module="ds-character-count">{children}</div>}
|
|
55
56
|
>
|
|
56
57
|
<label className="ds_label" htmlFor={id}>{label}</label>
|
|
57
|
-
{hintText && <HintText id={hintTextId}
|
|
58
|
+
{hintText && <HintText id={hintTextId}>{hintText}</HintText>}
|
|
58
59
|
{errorMessage && <ErrorMessage id={errorMessageId}>{errorMessage}</ErrorMessage>}
|
|
59
60
|
|
|
60
61
|
<textarea
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Textarea';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './WarningText';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export { default as Accordion } from "./Accordion";
|
|
2
|
+
export { default as AspectBox } from "./AspectBox";
|
|
3
|
+
export { default as BackToTop } from "./BackToTop";
|
|
4
|
+
export { default as Breadcrumbs } from "./Breadcrumbs";
|
|
5
|
+
export { default as Button, ButtonGroup } from "./Button";
|
|
6
|
+
export { default as CategoryItem } from "./CategoryItem";
|
|
7
|
+
export { default as CategoryList } from "./CategoryList";
|
|
8
|
+
export { default as Checkbox, CheckboxGroup } from "./Checkbox";
|
|
9
|
+
export { default as ConfirmationMessage } from "./ConfirmationMessage";
|
|
10
|
+
export { default as ContentsNav } from "./ContentsNav";
|
|
11
|
+
export { default as CookieBanner } from "./CookieBanner";
|
|
12
|
+
export { default as DatePicker } from "./DatePicker";
|
|
13
|
+
export { default as Details } from "./Details";
|
|
14
|
+
export { default as ErrorMessage } from "./ErrorMessage";
|
|
15
|
+
export { default as ErrorSummary } from "./ErrorSummary";
|
|
16
|
+
export { default as FileDownload } from "./FileDownload";
|
|
17
|
+
export { default as HideThisPage } from "./HideThisPage";
|
|
18
|
+
export { default as InsetText } from "./InsetText";
|
|
19
|
+
export { default as NotificationBanner } from "./NotificationBanner";
|
|
20
|
+
export { default as NotificationPanel } from "./NotificationPanel";
|
|
21
|
+
export { default as PageHeader } from "./PageHeader";
|
|
22
|
+
export { default as PageMetadata } from "./PageMetadata/";
|
|
23
|
+
export { default as Pagination } from "./Pagination";
|
|
24
|
+
export { default as PhaseBanner } from "./PhaseBanner";
|
|
25
|
+
export { default as Question } from "./Question";
|
|
26
|
+
export { default as RadioButton, RadioGroup } from "./RadioButton";
|
|
27
|
+
export { default as SearchFacets } from "./SearchFacets";
|
|
28
|
+
export { default as SearchFilters } from "./SearchFilters";
|
|
29
|
+
export { default as SearchResult } from "./SearchResult";
|
|
30
|
+
export { default as SearchSort } from "./SearchSort";
|
|
31
|
+
export { default as Select } from "./Select";
|
|
32
|
+
export { default as SequentialNavigation } from "./SequentialNavigation";
|
|
33
|
+
export { default as SideNavigation } from "./SideNavigation";
|
|
34
|
+
export { default as SiteFooter } from "./SiteFooter";
|
|
35
|
+
export { default as SiteHeader } from "./SiteHeader";
|
|
36
|
+
export { default as SiteSearch } from "./SiteSearch";
|
|
37
|
+
export { default as SkipLinks } from "./SkipLinks";
|
|
38
|
+
export { default as SummaryCard } from "./SummaryCard";
|
|
39
|
+
export { default as SummaryList } from "./SummaryList";
|
|
40
|
+
export { default as Table } from "./Table";
|
|
41
|
+
export { default as Tabs } from "./Tabs";
|
|
42
|
+
export { default as Tag } from "./Tag";
|
|
43
|
+
export { default as TaskList } from "./TaskList";
|
|
44
|
+
export { default as Textarea } from "./Textarea";
|
|
45
|
+
export { default as TextInput } from "./TextInput";
|
|
46
|
+
export { default as WarningText } from "./WarningText";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useTracking } from "./useTracking";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './useTracking';
|
|
@@ -6,7 +6,9 @@ import { fireEvent, render, screen } from '@testing-library/react';
|
|
|
6
6
|
|
|
7
7
|
import useTracking from './useTracking';
|
|
8
8
|
|
|
9
|
-
const Link = ({ children }
|
|
9
|
+
const Link = ({ children }: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}) => <a href="#">{children}</a>;
|
|
10
12
|
|
|
11
13
|
const Links = () => {
|
|
12
14
|
useTracking();
|
|
@@ -45,9 +47,7 @@ test('text tracking on component render', async () => {
|
|
|
45
47
|
|
|
46
48
|
const button = screen.getByRole('button');
|
|
47
49
|
const firstLink = screen.getByText('First link');
|
|
48
|
-
|
|
49
|
-
// todo: this will fail until the tracking script in DS core is updated to use textContent instead of innerText
|
|
50
|
-
// expect(firstLink).toHaveAttribute('data-section', SECTION_ONE_TEXT);
|
|
50
|
+
expect(firstLink).toHaveAttribute('data-section', SECTION_ONE_TEXT);
|
|
51
51
|
|
|
52
52
|
fireEvent(
|
|
53
53
|
button,
|
|
@@ -58,7 +58,5 @@ test('text tracking on component render', async () => {
|
|
|
58
58
|
));
|
|
59
59
|
|
|
60
60
|
const secondLink = await screen.findByText('Second link')
|
|
61
|
-
|
|
62
|
-
// todo: this will fail until the tracking script in DS core is updated to use textContent instead of innerText
|
|
63
|
-
// expect(secondLink).toHaveAttribute('data-section', SECTION_TWO_TEXT);
|
|
61
|
+
expect(secondLink).toHaveAttribute('data-section', SECTION_TWO_TEXT);
|
|
64
62
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgArrowUpward = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
|
12
|
+
<path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgArrowUpward;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgCalendarToday = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
12
|
+
<path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgCalendarToday;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgCancel = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
role="img"
|
|
8
|
+
{...props}
|
|
9
|
+
>
|
|
10
|
+
<path d="m8.4 17 3.6-3.6 3.6 3.6 1.4-1.4-3.6-3.6L17 8.4 15.6 7 12 10.6 8.4 7 7 8.4l3.6 3.6L7 15.6 8.4 17Zm3.6 5c-1.4 0-2.7-.3-3.9-.8S5.8 20 4.9 19.1s-1.6-2-2.1-3.2S2 13.4 2 12s.3-2.7.8-3.9S4 5.8 4.9 4.9s2-1.6 3.2-2.1S10.6 2 12 2s2.7.3 3.9.8 2.3 1.2 3.2 2.1 1.6 2 2.1 3.2.8 2.5.8 3.9-.3 2.7-.8 3.9-1.2 2.3-2.1 3.2-2 1.6-3.2 2.1-2.5.8-3.9.8Z" />
|
|
11
|
+
</svg>
|
|
12
12
|
);
|
|
13
13
|
export default SvgCancel;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgCheckCircle = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
12
|
+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgCheckCircle;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgChevronLeft = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
12
|
+
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgChevronLeft;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgChevronRight = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
12
|
+
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgChevronRight;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgClose = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
12
|
+
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgClose;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgDescription = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
12
|
+
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgDescription;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgDoubleChevronLeft = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
role="img"
|
|
8
|
+
{...props}
|
|
9
|
+
>
|
|
10
|
+
<path d="M19 16.6 17.6 18l-6-6 6-6L19 7.4 14.4 12l4.6 4.6Zm-6.6 0L11 18l-6-6 6-6 1.4 1.4L7.8 12l4.6 4.6Z" />
|
|
11
|
+
</svg>
|
|
12
12
|
);
|
|
13
13
|
export default SvgDoubleChevronLeft;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgDoubleChevronRight = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
role="img"
|
|
8
|
+
{...props}
|
|
9
|
+
>
|
|
10
|
+
<path d="M9.6 12 5 7.4 6.4 6l6 6-6 6L5 16.6 9.6 12Zm6.6 0-4.6-4.6L13 6l6 6-6 6-1.4-1.4 4.6-4.6Z" />
|
|
11
|
+
</svg>
|
|
12
12
|
);
|
|
13
13
|
export default SvgDoubleChevronRight;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SVGProps } from "react";
|
|
3
3
|
const SvgError = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="#000000"
|
|
8
|
+
role="img"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
12
|
+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" />
|
|
13
|
+
</svg>
|
|
14
14
|
);
|
|
15
15
|
export default SvgError;
|