@scottish-government/designsystem-react 0.11.0 → 0.11.1
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/@types/components/PageHeader.d.ts +2 -1
- package/CHANGELOG.md +8 -0
- 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/Accordion.d.ts +10 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +8 -0
- package/dist/components/AspectBox/AspectBox.d.ts +6 -0
- package/dist/components/AspectBox/index.d.ts +1 -0
- package/dist/components/AspectBox/index.js +8 -0
- package/dist/components/BackToTop/BackToTop.d.ts +5 -0
- package/dist/components/BackToTop/index.d.ts +1 -0
- package/dist/components/BackToTop/index.js +8 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/index.js +8 -0
- package/dist/components/Button/Button.d.ts +5 -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/CategoryItem.d.ts +5 -0
- package/dist/components/CategoryItem/index.d.ts +1 -0
- package/dist/components/CategoryItem/index.js +8 -0
- package/dist/components/CategoryList/CategoryList.d.ts +6 -0
- package/dist/components/CategoryList/index.d.ts +1 -0
- package/dist/components/CategoryList/index.js +8 -0
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts +6 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +10 -0
- package/dist/components/ConfirmationMessage/ConfirmationMessage.d.ts +5 -0
- package/dist/components/ConfirmationMessage/index.d.ts +1 -0
- package/dist/components/ConfirmationMessage/index.js +8 -0
- package/dist/components/ContentsNav/ContentsNav.d.ts +10 -0
- package/dist/components/ContentsNav/index.d.ts +1 -0
- package/dist/components/ContentsNav/index.js +8 -0
- package/dist/components/CookieBanner/CookieBanner.d.ts +9 -0
- package/dist/components/CookieBanner/index.d.ts +1 -0
- package/dist/components/CookieBanner/index.js +8 -0
- package/dist/components/DatePicker/DatePicker.d.ts +5 -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/Details.d.ts +5 -0
- package/dist/components/Details/index.d.ts +1 -0
- package/dist/components/Details/index.js +8 -0
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +5 -0
- package/dist/components/ErrorMessage/index.d.ts +1 -0
- package/dist/components/ErrorMessage/index.js +8 -0
- package/dist/components/ErrorSummary/ErrorSummary.d.ts +9 -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/FileDownload.d.ts +5 -0
- package/dist/components/FileDownload/index.d.ts +1 -0
- package/dist/components/FileDownload/index.js +8 -0
- package/dist/components/HideThisPage/HideThisPage.d.ts +6 -0
- package/dist/components/HideThisPage/index.d.ts +1 -0
- package/dist/components/HideThisPage/index.js +8 -0
- package/dist/components/InsetText/InsetText.d.ts +5 -0
- package/dist/components/InsetText/index.d.ts +1 -0
- package/dist/components/InsetText/index.js +8 -0
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +9 -0
- package/dist/components/NotificationBanner/index.d.ts +1 -0
- package/dist/components/NotificationBanner/index.js +8 -0
- package/dist/components/NotificationPanel/NotificationPanel.d.ts +5 -0
- package/dist/components/NotificationPanel/index.d.ts +1 -0
- package/dist/components/NotificationPanel/index.js +8 -0
- package/dist/components/PageHeader/PageHeader.d.ts +5 -0
- package/dist/components/PageHeader/PageHeader.jsx +2 -2
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/PageHeader/index.js +8 -0
- package/dist/components/PageMetadata/PageMetadata.d.ts +9 -0
- package/dist/components/PageMetadata/index.d.ts +1 -0
- package/dist/components/PageMetadata/index.js +8 -0
- package/dist/components/Pagination/Pagination.d.ts +7 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Pagination/index.js +8 -0
- package/dist/components/PhaseBanner/PhaseBanner.d.ts +5 -0
- package/dist/components/PhaseBanner/index.d.ts +1 -0
- package/dist/components/PhaseBanner/index.js +8 -0
- package/dist/components/Question/Question.d.ts +5 -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/RadioButton.d.ts +5 -0
- package/dist/components/RadioButton/RadioGroup.d.ts +6 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/RadioButton/index.js +10 -0
- package/dist/components/SearchFacets/SearchFacets.d.ts +14 -0
- package/dist/components/SearchFacets/index.d.ts +1 -0
- package/dist/components/SearchFacets/index.js +8 -0
- package/dist/components/SearchFilters/SearchFilters.d.ts +16 -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.d.ts +28 -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.d.ts +10 -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.d.ts +5 -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/SequentialNavigation.d.ts +13 -0
- package/dist/components/SequentialNavigation/index.d.ts +1 -0
- package/dist/components/SequentialNavigation/index.js +8 -0
- package/dist/components/SideNavigation/SideNavigation.d.ts +13 -0
- package/dist/components/SideNavigation/index.d.ts +1 -0
- package/dist/components/SideNavigation/index.js +8 -0
- package/dist/components/SiteFooter/SiteFooter.d.ts +22 -0
- package/dist/components/SiteFooter/index.d.ts +1 -0
- package/dist/components/SiteFooter/index.js +8 -0
- package/dist/components/SiteHeader/SiteHeader.d.ts +22 -0
- package/dist/components/SiteHeader/SiteHeader.jsx +1 -2
- package/dist/components/SiteHeader/index.d.ts +1 -0
- package/dist/components/SiteHeader/index.js +8 -0
- package/dist/components/SiteNavigation/SiteNavigation.d.ts +9 -0
- package/dist/components/SiteNavigation/index.d.ts +1 -0
- package/dist/components/SiteNavigation/index.js +8 -0
- package/dist/components/SiteSearch/SiteSearch.d.ts +5 -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/SkipLinks.d.ts +10 -0
- package/dist/components/SkipLinks/SkipLinks.jsx +42 -0
- package/dist/components/SkipLinks/index.d.ts +1 -0
- package/dist/components/SkipLinks/index.js +8 -0
- package/dist/components/SummaryCard/SummaryCard.d.ts +10 -0
- package/dist/components/SummaryCard/index.d.ts +1 -0
- package/dist/components/SummaryCard/index.js +8 -0
- package/dist/components/SummaryList/SummaryList.d.ts +18 -0
- package/dist/components/SummaryList/index.d.ts +1 -0
- package/dist/components/SummaryList/index.js +8 -0
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +8 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +8 -0
- package/dist/components/Tag/Tag.d.ts +5 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/index.js +8 -0
- package/dist/components/TaskList/TaskList.d.ts +13 -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.d.ts +5 -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.d.ts +5 -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/WarningText.d.ts +5 -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/documents/audio.d.ts +4 -0
- package/dist/images/documents/csv.d.ts +4 -0
- package/dist/images/documents/excel.d.ts +4 -0
- package/dist/images/documents/file.d.ts +4 -0
- package/dist/images/documents/generic.d.ts +4 -0
- package/dist/images/documents/geodata.d.ts +4 -0
- package/dist/images/documents/ical.d.ts +4 -0
- package/dist/images/documents/ico.d.ts +4 -0
- package/dist/images/documents/image.d.ts +4 -0
- package/dist/images/documents/index.d.ts +22 -0
- package/dist/images/documents/odf.d.ts +4 -0
- package/dist/images/documents/odg.d.ts +4 -0
- package/dist/images/documents/odp.d.ts +4 -0
- package/dist/images/documents/ods.d.ts +4 -0
- package/dist/images/documents/odt.d.ts +4 -0
- package/dist/images/documents/pdf.d.ts +4 -0
- package/dist/images/documents/ppt.d.ts +4 -0
- package/dist/images/documents/rtf.d.ts +4 -0
- package/dist/images/documents/text.d.ts +4 -0
- package/dist/images/documents/video.d.ts +4 -0
- package/dist/images/documents/word.d.ts +4 -0
- package/dist/images/documents/xml.d.ts +4 -0
- package/dist/images/documents/zip.d.ts +4 -0
- package/dist/images/icons/arrow_upward.d.ts +4 -0
- package/dist/images/icons/calendar_today.d.ts +4 -0
- package/dist/images/icons/cancel.d.ts +4 -0
- package/dist/images/icons/check_circle.d.ts +4 -0
- package/dist/images/icons/chevron_left.d.ts +4 -0
- package/dist/images/icons/chevron_right.d.ts +4 -0
- package/dist/images/icons/close.d.ts +4 -0
- package/dist/images/icons/description.d.ts +4 -0
- package/dist/images/icons/double_chevron_left.d.ts +4 -0
- package/dist/images/icons/double_chevron_right.d.ts +4 -0
- package/dist/images/icons/error.d.ts +4 -0
- package/dist/images/icons/expand_less.d.ts +4 -0
- package/dist/images/icons/expand_more.d.ts +4 -0
- package/dist/images/icons/index.d.ts +17 -0
- package/dist/images/icons/list.d.ts +4 -0
- package/dist/images/icons/menu.d.ts +4 -0
- package/dist/images/icons/priority_high.d.ts +4 -0
- package/dist/images/icons/search.d.ts +4 -0
- package/dist/images/index.d.ts +2 -0
- package/dist/images/index.js +38 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +40 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/context.d.ts +4 -0
- package/package.json +24 -22
- package/src/common/{AbstractNotificationBanner.test.tsx → AbstractNotificationBanner/AbstractNotificationBanner.test.tsx} +1 -1
- package/src/common/{AbstractNotificationBanner.tsx → AbstractNotificationBanner/AbstractNotificationBanner.tsx} +2 -2
- package/src/common/AbstractNotificationBanner/index.ts +1 -0
- package/src/common/ActionLink/index.ts +1 -0
- package/src/common/ConditionalWrapper/index.ts +1 -0
- package/src/common/{FileIcon.tsx → FileIcon/FileIcon.tsx} +1 -1
- package/src/common/FileIcon/index.ts +1 -0
- package/src/common/HintText/index.ts +1 -0
- package/src/common/{Icon.tsx → Icon/Icon.tsx} +1 -1
- package/src/common/Icon/index.ts +1 -0
- package/src/common/ScreenReaderText/index.ts +1 -0
- package/src/common/WrapperTag/index.ts +1 -0
- package/src/common/index.ts +8 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/AspectBox/index.ts +1 -0
- package/src/components/BackToTop/index.ts +1 -0
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/{ButtonGroup → Button}/ButtonGroup.stories.tsx +1 -1
- package/src/components/Button/index.ts +2 -0
- package/src/components/CategoryItem/index.ts +1 -0
- package/src/components/CategoryList/CategoryList.stories.tsx +1 -1
- package/src/components/CategoryList/CategoryList.test.tsx +1 -1
- package/src/components/CategoryList/index.ts +1 -0
- package/src/components/Checkbox/index.ts +2 -0
- package/src/components/ConfirmationMessage/index.ts +1 -0
- package/src/components/ContentsNav/index.ts +1 -0
- package/src/components/CookieBanner/CookieBanner.Buttons.stories.tsx +1 -1
- package/src/components/CookieBanner/CookieBanner.stories.tsx +1 -1
- package/src/components/CookieBanner/index.ts +1 -0
- package/src/components/DatePicker/DatePicker.tsx +2 -2
- package/src/components/DatePicker/index.ts +1 -0
- package/src/components/Details/index.ts +1 -0
- package/src/components/ErrorMessage/index.ts +1 -0
- package/src/components/ErrorSummary/index.ts +1 -0
- package/src/components/FeatureHeader/FeatureHeader.stories.tsx +60 -0
- package/src/components/FeatureHeader/FeatureHeader.tsx +94 -0
- package/src/components/FeatureHeader/index.ts +1 -0
- package/src/components/FileDownload/index.ts +1 -0
- package/src/components/HideThisPage/index.ts +1 -0
- package/src/components/InsetText/index.ts +1 -0
- package/src/components/NotificationBanner/index.ts +1 -0
- package/src/components/NotificationPanel/index.ts +1 -0
- package/src/components/PageHeader/PageHeader.stories.tsx +1 -1
- package/src/components/PageHeader/PageHeader.tsx +2 -1
- package/src/components/PageHeader/index.ts +1 -0
- package/src/components/PageMetadata/index.ts +1 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/PhaseBanner/index.ts +1 -0
- package/src/components/Question/Question.stories.tsx +2 -3
- package/src/components/Question/Question.tsx +2 -2
- package/src/components/Question/index.ts +1 -0
- package/src/components/RadioButton/RadioGroup.stories.tsx +1 -2
- package/src/components/RadioButton/RadioGroup.test.tsx +1 -2
- package/src/components/RadioButton/index.ts +2 -0
- package/src/components/SearchFacets/index.ts +1 -0
- package/src/components/SearchFilters/SearchFilters.Panel.stories.tsx +2 -2
- package/src/components/SearchFilters/SearchFilters.stories.tsx +2 -2
- package/src/components/SearchFilters/SearchFilters.test.tsx +1 -1
- package/src/components/SearchFilters/SearchFilters.tsx +4 -4
- package/src/components/SearchFilters/index.ts +1 -0
- package/src/components/SearchResult/SearchResult.tsx +2 -2
- package/src/components/SearchResult/index.ts +1 -0
- package/src/components/SearchSort/SearchSort.tsx +2 -2
- package/src/components/SearchSort/index.ts +1 -0
- package/src/components/Select/Select.tsx +1 -1
- package/src/components/Select/index.ts +1 -0
- package/src/components/SequentialNavigation/index.ts +1 -0
- package/src/components/SideNavigation/index.ts +1 -0
- package/src/components/SiteFooter/index.ts +1 -0
- package/src/components/SiteHeader/SiteHeader.stories.tsx +3 -3
- package/src/components/SiteHeader/SiteHeader.test.tsx +3 -3
- package/src/components/SiteHeader/SiteHeader.tsx +1 -3
- package/src/components/SiteHeader/index.ts +1 -0
- package/src/components/SiteNavigation/index.ts +1 -0
- package/src/components/SiteSearch/SiteSearch.tsx +1 -1
- package/src/components/SiteSearch/index.ts +1 -0
- package/src/components/SkipLinks/SkipLinks.tsx +10 -0
- package/src/components/SkipLinks/index.ts +1 -0
- package/src/components/SummaryCard/SummaryCard.stories.tsx +1 -1
- package/src/components/SummaryCard/SummaryCard.test.tsx +2 -2
- package/src/components/SummaryCard/index.ts +1 -0
- package/src/components/SummaryList/index.ts +1 -0
- package/src/components/Table/index.ts +1 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tag/index.ts +1 -0
- package/src/components/TaskList/TaskList.tsx +1 -1
- package/src/components/TaskList/index.ts +1 -0
- package/src/components/TextInput/TextInput.tsx +2 -2
- package/src/components/TextInput/index.ts +1 -0
- package/src/components/Textarea/Textarea.tsx +1 -1
- package/src/components/Textarea/index.ts +1 -0
- 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/images/index.ts +2 -0
- package/src/index.ts +4 -0
- package/tsconfig.json +14 -14
- package/vite.config.ts +2 -1
- /package/src/common/{ActionLink.test.tsx → ActionLink/ActionLink.test.tsx} +0 -0
- /package/src/common/{ActionLink.tsx → ActionLink/ActionLink.tsx} +0 -0
- /package/src/common/{ConditionalWrapper.test.tsx → ConditionalWrapper/ConditionalWrapper.test.tsx} +0 -0
- /package/src/common/{ConditionalWrapper.tsx → ConditionalWrapper/ConditionalWrapper.tsx} +0 -0
- /package/src/common/{FileIcon.test.tsx → FileIcon/FileIcon.test.tsx} +0 -0
- /package/src/common/{HintText.test.tsx → HintText/HintText.test.tsx} +0 -0
- /package/src/common/{HintText.tsx → HintText/HintText.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/{ScreenReaderText.tsx → ScreenReaderText/ScreenReaderText.tsx} +0 -0
- /package/src/common/{WrapperTag.test.tsx → WrapperTag/WrapperTag.test.tsx} +0 -0
- /package/src/common/{WrapperTag.tsx → WrapperTag/WrapperTag.tsx} +0 -0
- /package/src/components/{ButtonGroup → Button}/ButtonGroup.test.tsx +0 -0
- /package/src/components/{ButtonGroup → Button}/ButtonGroup.tsx +0 -0
- /package/src/hooks/{useTracking.test.tsx → useTracking/useTracking.test.tsx} +0 -0
- /package/src/hooks/{useTracking.ts → useTracking/useTracking.ts} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const FilterPanel: {
|
|
2
|
+
({ activeFilterCount, children, isScrollable, legend, heading, ...props }: SGDS.Component.SearchFilters.Panel): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
declare const Filters: {
|
|
6
|
+
({ children, searchResultsContainerId, ...props }: SGDS.Component.SearchFilters): import("react").JSX.Element;
|
|
7
|
+
Panel: {
|
|
8
|
+
({ activeFilterCount, children, isScrollable, legend, heading, ...props }: SGDS.Component.SearchFilters.Panel): import("react").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
CheckboxGroup: {
|
|
12
|
+
({ children, ...props }: any): import("react").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default Filters;
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterPanel = void 0;
|
|
7
|
-
const Accordion_1 = __importDefault(require("../Accordion
|
|
8
|
-
const Button_1 = __importDefault(require("../Button
|
|
9
|
-
const SkipLinks_1 = __importDefault(require("../SkipLinks
|
|
7
|
+
const Accordion_1 = __importDefault(require("../Accordion"));
|
|
8
|
+
const Button_1 = __importDefault(require("../Button"));
|
|
9
|
+
const SkipLinks_1 = __importDefault(require("../SkipLinks"));
|
|
10
10
|
const ConditionalWrapper_1 = __importDefault(require("../../common/ConditionalWrapper"));
|
|
11
|
-
const
|
|
11
|
+
const Checkbox_1 = require("../Checkbox");
|
|
12
12
|
const FilterPanel = ({ activeFilterCount = 0, children, isScrollable = false, legend, heading = 'Filter', ...props }) => {
|
|
13
13
|
const headingWithCount = <>
|
|
14
14
|
{heading}
|
|
@@ -26,9 +26,9 @@ const FilterPanel = ({ activeFilterCount = 0, children, isScrollable = false, le
|
|
|
26
26
|
};
|
|
27
27
|
exports.FilterPanel = FilterPanel;
|
|
28
28
|
const FilterCheckboxGroup = ({ children, ...props }) => {
|
|
29
|
-
return (<
|
|
29
|
+
return (<Checkbox_1.CheckboxGroup className="ds_search-filters__checkboxes" isSmall {...props}>
|
|
30
30
|
{children}
|
|
31
|
-
</
|
|
31
|
+
</Checkbox_1.CheckboxGroup>);
|
|
32
32
|
};
|
|
33
33
|
const Filters = ({ children, searchResultsContainerId = 'search-results', ...props }) => {
|
|
34
34
|
return (<div className="ds_search-filters" {...props}>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SearchFilters';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SearchFilters_1 = require("./SearchFilters");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SearchFilters_1).default; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const SearchResult: {
|
|
2
|
+
({ children, href, isPromoted, linkComponent, promotedTitle, title, ...props }: SGDS.Component.SearchResult): import("react").JSX.Element;
|
|
3
|
+
Content: {
|
|
4
|
+
({ children }: SGDS.Component.SearchResult.Content): import("react").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
Context: {
|
|
8
|
+
({ children, title }: SGDS.Component.SearchResult.Context): import("react").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
ContextItem: {
|
|
12
|
+
({ children }: SGDS.Component.SearchResult.ContextItem): import("react").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
Media: {
|
|
16
|
+
({ children }: SGDS.Component.SearchResult.Media): import("react").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
Meta: {
|
|
20
|
+
({ children }: SGDS.Component.SearchResult.Meta): import("react").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
MetaItem: {
|
|
24
|
+
({ children, className, name, ...props }: SGDS.Component.Metadata.Item): import("react").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default SearchResult;
|
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const ConditionalWrapper_1 = __importDefault(require("../../common/ConditionalWrapper"));
|
|
8
|
-
const AspectBox_1 = __importDefault(require("../AspectBox
|
|
9
|
-
const PageMetadata_1 = __importDefault(require("../PageMetadata
|
|
8
|
+
const AspectBox_1 = __importDefault(require("../AspectBox"));
|
|
9
|
+
const PageMetadata_1 = __importDefault(require("../PageMetadata"));
|
|
10
10
|
const SearchResultLinkHrefContext = (0, react_1.createContext)('');
|
|
11
11
|
const SearchResultContent = ({ children }) => {
|
|
12
12
|
const otherChildren = [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SearchResult';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SearchResult_1 = require("./SearchResult");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SearchResult_1).default; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AllHTMLAttributes } from "react";
|
|
2
|
+
declare const SearchSort: {
|
|
3
|
+
({ children, className, id, label, onApply, ...props }: SGDS.Component.SearchSort): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
Option: {
|
|
6
|
+
({ children, value }: AllHTMLAttributes<HTMLOptionElement>): import("react").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default SearchSort;
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Button_1 = __importDefault(require("../Button
|
|
7
|
-
const Select_1 = __importDefault(require("../Select
|
|
6
|
+
const Button_1 = __importDefault(require("../Button"));
|
|
7
|
+
const Select_1 = __importDefault(require("../Select"));
|
|
8
8
|
const Option = ({ children, value }) => {
|
|
9
9
|
return (<option value={value}>
|
|
10
10
|
{children}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SearchSort';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SearchSort_1 = require("./SearchSort");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SearchSort_1).default; } });
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ErrorMessage_1 = __importDefault(require("../ErrorMessage
|
|
6
|
+
const ErrorMessage_1 = __importDefault(require("../ErrorMessage"));
|
|
7
7
|
const HintText_1 = __importDefault(require("../../common/HintText"));
|
|
8
8
|
const Select = function ({ children, className, defaultValue, errorMessage, hasError, hintText, id, label, name, onBlur, onChange, placeholder, width, ...props }) {
|
|
9
9
|
const errorMessageId = `error-message-${id}`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Select';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Select_1 = require("./Select");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Select_1).default; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const SequentialNavigation: {
|
|
2
|
+
({ ariaLabel, children, className, ...props }: SGDS.Component.SequentialNavigation): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
Next: {
|
|
5
|
+
({ children, href, linkComponent, textLabel }: SGDS.Component.SequentialNavigation.Link): import("react").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
Previous: {
|
|
9
|
+
({ children, href, linkComponent, textLabel }: SGDS.Component.SequentialNavigation.Link): import("react").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default SequentialNavigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SequentialNavigation';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SequentialNavigation_1 = require("./SequentialNavigation");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SequentialNavigation_1).default; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const SideNavigation: {
|
|
2
|
+
({ ariaLabel, children, className, ...props }: SGDS.Component.SideNavigation): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
Item: {
|
|
5
|
+
({ children, href, isCurrent, linkComponent, title }: SGDS.Component.SideNavigation.Item): import("react").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
List: {
|
|
9
|
+
({ children, isRoot }: SGDS.Component.SideNavigation.List): import("react").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default SideNavigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SideNavigation';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SideNavigation_1 = require("./SideNavigation");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SideNavigation_1).default; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const SiteFooter: {
|
|
3
|
+
({ children, className, ...props }: SGDS.Component.SiteFooter): React.JSX.Element;
|
|
4
|
+
Links: {
|
|
5
|
+
({ children, ...props }: SGDS.Component.SiteFooter.Links): React.JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
Link: {
|
|
9
|
+
({ children, href, linkComponent, ...props }: SGDS.Component.SiteFooter.Link): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
License: {
|
|
13
|
+
({ children, ...props }: SGDS.Component.SiteFooter.License): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
Org: {
|
|
17
|
+
({ href, title, children, ...props }: SGDS.Component.SiteFooter.Org): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export default SiteFooter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SiteFooter';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SiteFooter_1 = require("./SiteFooter");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SiteFooter_1).default; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const SiteHeader: {
|
|
3
|
+
({ children, ...props }: SGDS.Component.SiteHeader): React.JSX.Element;
|
|
4
|
+
Brand: {
|
|
5
|
+
({ children, homeUrl, linkComponent, siteTitle }: SGDS.Component.SiteHeader.Brand): React.JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
Navigation: {
|
|
9
|
+
({ children }: any): any;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Phase: {
|
|
13
|
+
({ children }: any): any;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
Search: {
|
|
17
|
+
({ children }: any): any;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export default SiteHeader;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
'use client';
|
|
2
1
|
"use strict";
|
|
3
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
3
|
if (k2 === undefined) k2 = k;
|
|
@@ -39,7 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
39
|
const react_1 = __importStar(require("react"));
|
|
41
40
|
const Icon_1 = __importDefault(require("../../common/Icon"));
|
|
42
|
-
const SiteNavigation_1 = __importDefault(require("../SiteNavigation
|
|
41
|
+
const SiteNavigation_1 = __importDefault(require("../SiteNavigation"));
|
|
43
42
|
// @ts-ignore
|
|
44
43
|
const site_navigation_1 = __importDefault(require("@scottish-government/design-system/src/components/site-navigation/site-navigation"));
|
|
45
44
|
const Brand = ({ children, homeUrl = '/', linkComponent, siteTitle }) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SiteHeader';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SiteHeader_1 = require("./SiteHeader");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SiteHeader_1).default; } });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const SiteNavigation: {
|
|
2
|
+
({ children, className, ...props }: SGDS.Component.SiteNavigation): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
Item: {
|
|
5
|
+
({ children, isCurrent, href, linkComponent }: SGDS.Component.SiteNavigation.Item): import("react").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default SiteNavigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SiteNavigation';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SiteNavigation_1 = require("./SiteNavigation");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SiteNavigation_1).default; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const SiteSearch: {
|
|
2
|
+
({ action, autocompleteEndpoint, autocompleteSuggestionMappingFunction, className, id, method, minLength, name, placeholder, ...props }: SGDS.Component.SiteSearch): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
export default SiteSearch;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
const autocomplete_1 = __importDefault(require("@scottish-government/design-system/src/components/autocomplete/autocomplete"));
|
|
9
|
-
const Button_1 = __importDefault(require("../Button
|
|
9
|
+
const Button_1 = __importDefault(require("../Button"));
|
|
10
10
|
const SiteSearch = function ({ action = '/search', autocompleteEndpoint, autocompleteSuggestionMappingFunction, className, id = 'site-search', method = 'GET', minLength = 3, name = 'q', placeholder = 'Search', ...props }) {
|
|
11
11
|
const ref = (0, react_1.useRef)(null);
|
|
12
12
|
const hasAutocomplete = !!autocompleteEndpoint;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SiteSearch';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SiteSearch_1 = require("./SiteSearch");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SiteSearch_1).default; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const SkipLinks: {
|
|
3
|
+
({ children, mainContentId, mainLinkText, isStatic, ...props }: SGDS.Component.SkipLinks): React.JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
Link: {
|
|
6
|
+
({ children, fragmentId }: SGDS.Component.SkipLinks.Link): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default SkipLinks;
|
|
@@ -1,11 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
2
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
const react_1 = __importStar(require("react"));
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
const skip_links_1 = __importDefault(require("@scottish-government/design-system/src/components/skip-links/skip-links"));
|
|
3
42
|
const Link = ({ children, fragmentId }) => {
|
|
4
43
|
return (<li className="ds_skip-links__item">
|
|
5
44
|
<a href={`#${fragmentId}`} className="ds_skip-links__link">{children}</a>
|
|
6
45
|
</li>);
|
|
7
46
|
};
|
|
8
47
|
const SkipLinks = ({ children, mainContentId = 'main-content', mainLinkText = 'Skip to main content', isStatic, ...props }) => {
|
|
48
|
+
(0, react_1.useEffect)(() => {
|
|
49
|
+
skip_links_1.default.init();
|
|
50
|
+
});
|
|
9
51
|
return (<div className={[
|
|
10
52
|
'ds_skip-links',
|
|
11
53
|
isStatic && 'ds_skip-links--static',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SkipLinks';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SkipLinks_1 = require("./SkipLinks");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SkipLinks_1).default; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const SummaryCard: {
|
|
3
|
+
({ children, className, headingLevel, title, ...props }: SGDS.Component.SummaryCard): React.JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
Action: {
|
|
6
|
+
({ children, describedby, href, linkComponent, onclick }: SGDS.Common.ActionLink): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default SummaryCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SummaryCard';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SummaryCard_1 = require("./SummaryCard");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SummaryCard_1).default; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const SummaryList: {
|
|
3
|
+
({ children, className, isBorderless, ...props }: SGDS.Component.SummaryList): React.JSX.Element;
|
|
4
|
+
Action: {
|
|
5
|
+
({ children, describedby, href, linkComponent, onclick }: SGDS.Common.ActionLink): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
Item: {
|
|
9
|
+
({ children, title }: SGDS.Component.SummaryList.Item): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Value: {
|
|
13
|
+
({ children }: SGDS.Component.SummaryList.Answer): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
export default SummaryList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SummaryList';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var SummaryList_1 = require("./SummaryList");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(SummaryList_1).default; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Table';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Table_1 = require("./Table");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Table_1).default; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Tabs: {
|
|
3
|
+
({ baseId, children, className, headingLevel, isBorderless, isManual, title, ...props }: SGDS.Component.Tabs): React.JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
Item: {
|
|
6
|
+
({ isBorderless, children, className, id, tabLabel, ...props }: SGDS.Component.Tabs.Item): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Tabs';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Tabs_1 = require("./Tabs");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Tabs_1).default; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Tag';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Tag_1 = require("./Tag");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Tag_1).default; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const TaskList: {
|
|
2
|
+
({ children, className, headingId, title, ...props }: SGDS.Component.TaskList): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
Item: {
|
|
5
|
+
({ children, className, href, id, isComplete, linkComponent, statusText, tagColour, title, ...props }: SGDS.Component.TaskList.Item): import("react").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
Group: {
|
|
9
|
+
({ children, className, intro, title, ...props }: SGDS.Component.TaskList.Group): import("react").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default TaskList;
|
|
@@ -7,7 +7,7 @@ const react_1 = require("react");
|
|
|
7
7
|
const ConditionalWrapper_1 = __importDefault(require("../../common/ConditionalWrapper"));
|
|
8
8
|
const HintText_1 = __importDefault(require("../../common/HintText"));
|
|
9
9
|
const ScreenReaderText_1 = __importDefault(require("../../common/ScreenReaderText"));
|
|
10
|
-
const Tag_1 = __importDefault(require("../Tag
|
|
10
|
+
const Tag_1 = __importDefault(require("../Tag"));
|
|
11
11
|
const TaskItem = ({ children, className, href, id, isComplete = false, linkComponent, statusText, tagColour = 'grey', title, ...props }) => {
|
|
12
12
|
if (isComplete) {
|
|
13
13
|
tagColour = 'green';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TaskList';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var TaskList_1 = require("./TaskList");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(TaskList_1).default; } });
|