@digigov/react-core 2.0.0-6452adf3 → 2.0.0-66d7c5e2
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/Accordion/index.d.ts +2 -28
- package/Accordion/index.js +3 -34
- package/Accordion/index.js.map +3 -3
- package/Accordion/index.native/index.js +22 -0
- package/Accordion/index.native/package.json +6 -0
- package/Accordion/index.native.d.ts +2 -0
- package/Accordion/index.native.js.map +7 -0
- package/Accordion/index.web/index.js +37 -0
- package/Accordion/index.web/package.json +6 -0
- package/Accordion/index.web.d.ts +28 -0
- package/Accordion/index.web.js.map +7 -0
- package/AccordionControls/index.js.map +1 -1
- package/AccordionSection/index.d.ts +2 -11
- package/AccordionSection/index.js +3 -20
- package/AccordionSection/index.js.map +3 -3
- package/AccordionSection/index.native/index.js +21 -0
- package/AccordionSection/index.native/package.json +6 -0
- package/AccordionSection/index.native.d.ts +2 -0
- package/AccordionSection/index.native.js.map +7 -0
- package/AccordionSection/index.web/index.js +23 -0
- package/AccordionSection/index.web/package.json +6 -0
- package/AccordionSection/index.web.d.ts +10 -0
- package/AccordionSection/index.web.js.map +7 -0
- package/AccordionSectionContent/index.js.map +1 -1
- package/AccordionSectionSummary/index.js.map +1 -1
- package/AccordionSectionSummaryHeading/index.d.ts +1 -0
- package/AccordionSectionSummaryHeading/index.js +5 -3
- package/AccordionSectionSummaryHeading/index.js.map +2 -2
- package/AdminAside/index.js.map +1 -1
- package/AdminContainer/index.js +1 -1
- package/AdminContainer/index.js.map +2 -2
- package/AdminHeader/index.js.map +1 -1
- package/AdminHeaderContent/index.js.map +2 -2
- package/AdminLayout/index.js.map +2 -2
- package/AdminMain/index.js.map +1 -1
- package/AutoCompleteAssistiveHint/index.js.map +1 -1
- package/AutoCompleteContainer/index.js.map +2 -2
- package/AutoCompleteInputBase/index.d.ts +17 -0
- package/{AutoCompleteInput → AutoCompleteInputBase}/index.js +4 -4
- package/AutoCompleteInputBase/index.js.map +7 -0
- package/AutoCompleteInputBase/package.json +6 -0
- package/AutoCompleteMultipleInputContainer/index.js +1 -1
- package/AutoCompleteMultipleInputContainer/index.js.map +2 -2
- package/AutoCompleteResultList/index.js.map +2 -2
- package/AutoCompleteStatus/index.js.map +1 -1
- package/BackLinkBase/index.d.ts +9 -0
- package/BackLinkBase/index.js +29 -0
- package/BackLinkBase/index.js.map +7 -0
- package/{FooterLink → BackLinkBase}/package.json +1 -1
- package/BackToTopLink/index.js.map +1 -1
- package/BannerContainer/index.js +1 -1
- package/BannerContainer/index.js.map +2 -2
- package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
- package/Base/compat/Input/RadioInput.native.js.map +2 -2
- package/Base/compat/button.native/index.js +1 -1
- package/Base/compat/button.native.js.map +2 -2
- package/Base/compat/details.native/index.js +2 -1
- package/Base/compat/details.native.d.ts +2 -1
- package/Base/compat/details.native.js.map +2 -2
- package/Base/compat/li.native.d.ts +1 -3
- package/Base/compat/li.native.js.map +2 -2
- package/Base/index.native.js.map +2 -2
- package/Base/index.web.d.ts +5 -5
- package/Base/index.web.js.map +1 -1
- package/Base/mapping.native/index.js +1 -1
- package/Base/mapping.native.d.ts +1 -1
- package/Base/mapping.native.js.map +2 -2
- package/Base/wrap.native/index.js +6 -3
- package/Base/wrap.native.js.map +3 -3
- package/Bottom/index.js.map +1 -1
- package/BottomInfo/index.js.map +1 -1
- package/BottomInfoContainer/index.js.map +1 -1
- package/BottomInfoContent/index.js.map +1 -1
- package/Breadcrumbs/index.js.map +1 -1
- package/BreadcrumbsList/index.js.map +1 -1
- package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
- package/BreadcrumbsListItemLinkBase/index.js +23 -0
- package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
- package/BreadcrumbsListItemLinkBase/package.json +6 -0
- package/BreadcrumbsListItemWrapper/index.d.ts +10 -0
- package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +4 -4
- package/BreadcrumbsListItemWrapper/index.js.map +7 -0
- package/{AutoCompleteInputTypeahead → BreadcrumbsListItemWrapper}/package.json +1 -1
- package/Button/index.js +2 -0
- package/Button/index.js.map +2 -2
- package/ButtonGroup/index.js.map +1 -1
- package/{ButtonLink → ButtonLinkBase}/index.d.ts +9 -9
- package/ButtonLinkBase/index.js +27 -0
- package/ButtonLinkBase/index.js.map +7 -0
- package/{BackLink → ButtonLinkBase}/package.json +1 -1
- package/CallToActionBase/index.d.ts +9 -0
- package/{CallToAction → CallToActionBase}/index.js +6 -6
- package/CallToActionBase/index.js.map +7 -0
- package/{CircularProgress → CallToActionBase}/package.json +1 -1
- package/Card/index.js +10 -1
- package/Card/index.js.map +2 -2
- package/CardAction/index.js.map +1 -1
- package/CardContent/index.js.map +1 -1
- package/CardHeading/index.js.map +1 -1
- package/CheckboxConditional/index.js.map +1 -1
- package/CheckboxItem/index.js +11 -2
- package/CheckboxItem/index.js.map +2 -2
- package/CheckboxItemInput/index.js.map +1 -1
- package/CheckboxItemInput/index.web/index.js +2 -2
- package/CheckboxItemInput/index.web.js.map +2 -2
- package/ChipKeyValue/index.js.map +1 -1
- package/ChoiceDividerText/index.js.map +1 -1
- package/{CircularProgress → CircularProgressBase}/index.d.ts +5 -5
- package/{CircularProgress → CircularProgressBase}/index.js +4 -4
- package/CircularProgressBase/index.js.map +7 -0
- package/{BreadcrumbsListItem → CircularProgressBase}/package.json +1 -1
- package/CodeBlockContainer/index.js.map +1 -1
- package/CodeBlockContent/index.js.map +1 -1
- package/CopyToClipboardContainer/index.js.map +1 -1
- package/CopyToClipboardMessage/index.js.map +1 -1
- package/CopyToClipboardMessage/index.native/index.js +2 -2
- package/CopyToClipboardMessage/index.native.d.ts +2 -4
- package/CopyToClipboardMessage/index.native.js.map +2 -2
- package/CopyrightContainer/index.js.map +1 -1
- package/DateInputItem/index.js.map +1 -1
- package/DateInputItem/index.native/index.js +7 -10
- package/DateInputItem/index.native.d.ts +1 -3
- package/DateInputItem/index.native.js.map +2 -2
- package/DateInputItem/index.web/index.js +11 -1
- package/DateInputItem/index.web.js.map +2 -2
- package/Details/index.d.ts +2 -2
- package/Details/index.js.map +2 -2
- package/Details/index.native/index.js +1 -1
- package/Details/index.native.d.ts +1 -3
- package/Details/index.native.js.map +1 -1
- package/Details/index.web.js.map +1 -1
- package/DetailsContent/index.d.ts +1 -0
- package/DetailsContent/index.js +3 -2
- package/DetailsContent/index.js.map +2 -2
- package/DrawerHeading/index.js +1 -9
- package/DrawerHeading/index.js.map +2 -2
- package/DropdownContent/index.js.map +2 -2
- package/ErrorMessage/index.js.map +1 -1
- package/ErrorSummary/index.d.ts +9 -0
- package/ErrorSummary/index.js +3 -3
- package/ErrorSummary/index.js.map +2 -2
- package/Fieldset/index.js.map +1 -1
- package/FileUpload/index.d.ts +7 -0
- package/FileUpload/index.js +12 -4
- package/FileUpload/index.js.map +2 -2
- package/FileUploadContainer/index.d.ts +7 -0
- package/FileUploadContainer/index.js +3 -2
- package/FileUploadContainer/index.js.map +2 -2
- package/FillableText/index.js.map +1 -1
- package/FilterContainer/index.js.map +2 -2
- package/FilterContent/index.js.map +1 -1
- package/FilterSelectedHeading/index.js.map +1 -1
- package/FilterSelectedSection/index.js.map +1 -1
- package/Footer/index.js.map +1 -1
- package/FooterContent/index.js.map +1 -1
- package/FooterContentLogos/index.js.map +1 -1
- package/FooterImage/index.js.map +1 -1
- package/FooterInfo/index.js.map +1 -1
- package/FooterLinkBase/index.d.ts +9 -0
- package/FooterLinkBase/index.js +23 -0
- package/FooterLinkBase/index.js.map +7 -0
- package/{CallToAction → FooterLinkBase}/package.json +1 -1
- package/FooterListItem/index.js.map +1 -1
- package/FooterNavigation/index.js.map +1 -1
- package/FooterNavigationSection/index.js.map +1 -1
- package/FullPageBackground/index.js.map +1 -1
- package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
- package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
- package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
- package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
- package/GovGRLogoBase/index.d.ts +9 -0
- package/GovGRLogoBase/index.js +43 -0
- package/GovGRLogoBase/index.js.map +7 -0
- package/{ButtonLink → GovGRLogoBase}/package.json +1 -1
- package/Grid/index.d.ts +3 -9
- package/Grid/index.js +1 -0
- package/Grid/index.js.map +2 -2
- package/HeaderContent/index.js.map +1 -1
- package/HeaderLogoBase/index.d.ts +19 -0
- package/HeaderLogoBase/index.js +33 -0
- package/HeaderLogoBase/index.js.map +7 -0
- package/HeaderLogoBase/package.json +6 -0
- package/HeaderNavMenuContent/index.js.map +1 -1
- package/HeaderSecondaryLogoBase/index.d.ts +19 -0
- package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
- package/HeaderSecondaryLogoBase/index.js.map +7 -0
- package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
- package/HeaderSection/index.js.map +1 -1
- package/HeaderTitleBase/index.d.ts +9 -0
- package/HeaderTitleBase/index.js +24 -0
- package/HeaderTitleBase/index.js.map +7 -0
- package/HeaderTitleBase/package.json +6 -0
- package/Hidden/index.js +14 -1
- package/Hidden/index.js.map +2 -2
- package/Hint/index.d.ts +6 -6
- package/Hint/index.js.map +1 -1
- package/ImageLogo/index.js +1 -1
- package/ImageLogo/index.js.map +2 -2
- package/ImageLogoSet/index.d.ts +1 -1
- package/ImageLogoSet/index.js +2 -2
- package/ImageLogoSet/index.js.map +2 -2
- package/KitchenSinkAllComponents/index.js.map +1 -1
- package/KitchenSinkCard/index.js.map +1 -1
- package/KitchenSinkCategory/index.js.map +1 -1
- package/KitchenSinkContentInfo/index.js.map +1 -1
- package/KitchenSinkContentTags/index.js.map +1 -1
- package/KitchenSinkHeading/index.js.map +1 -1
- package/KitchenSinkLetterContent/index.js.map +1 -1
- package/LabelContainer/index.js.map +1 -1
- package/LinkBase/index.js +1 -0
- package/LinkBase/index.js.map +2 -2
- package/ListItem/index.js.map +1 -1
- package/LoaderContainer/index.js.map +1 -1
- package/Main/index.js.map +1 -1
- package/MastheadBody/index.js.map +1 -1
- package/MastheadLogo/index.js.map +1 -1
- package/ModalAction/index.js.map +1 -1
- package/ModalContent/index.js.map +1 -1
- package/ModalHeading/index.js.map +1 -1
- package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
- package/{NavListItemAction → NavListItemActionBase}/index.js +7 -7
- package/NavListItemActionBase/index.js.map +7 -0
- package/NavListItemActionBase/package.json +6 -0
- package/NavListItemActionContainer/index.native/index.js +1 -1
- package/NavListItemActionContainer/index.native.d.ts +0 -2
- package/NavListItemActionContainer/index.native.js.map +1 -1
- package/NavListItemActionContainer/index.web.js.map +1 -1
- package/NavListItemBadge/index.js +1 -1
- package/NavListItemBadge/index.js.map +2 -2
- package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
- package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
- package/NavListItemLinkBase/index.js.map +7 -0
- package/{AutoCompleteInput → NavListItemLinkBase}/package.json +1 -1
- package/NavMenuContent/index.js.map +2 -2
- package/NavMenuContentListBase/index.js.map +1 -1
- package/NavMenuContentListItem/index.js.map +1 -1
- package/NavMenuTitle/index.js.map +1 -1
- package/NotificationBannerContainer/index.d.ts +2 -1
- package/NotificationBannerContainer/index.js.map +2 -2
- package/NotificationBannerContent/index.d.ts +22 -0
- package/NotificationBannerContent/index.js +14 -3
- package/NotificationBannerContent/index.js.map +2 -2
- package/NotificationBannerHeader/index.js.map +1 -1
- package/NotificationBannerHeading/index.js.map +1 -1
- package/NotificationBannerLink/index.js.map +2 -2
- package/NotificationBannerLink/index.native/index.js +2 -2
- package/NotificationBannerLink/index.native.d.ts +1 -3
- package/NotificationBannerLink/index.native.js.map +2 -2
- package/NotificationBannerLink/index.web.js.map +1 -1
- package/PageTitleContainer/index.js.map +1 -1
- package/PaginationLabelContainer/index.js.map +1 -1
- package/PaginationList/index.js.map +1 -1
- package/PanelBody/index.js.map +1 -1
- package/PanelTitle/index.js.map +1 -1
- package/PhaseBanner/index.js.map +2 -2
- package/PhaseBannerHeaderContainer/index.js.map +1 -1
- package/PhaseBannerTag/index.js.map +1 -1
- package/PhaseBannerText/index.js.map +1 -1
- package/RadioConditional/index.js.map +1 -1
- package/RadioItem/index.js.map +2 -2
- package/ResultsActionBar/index.js.map +1 -1
- package/ResultsHeading/index.js.map +1 -1
- package/SearchButton/index.js.map +1 -1
- package/SearchContainer/index.js.map +1 -1
- package/SelectOption/index.js.map +1 -1
- package/SingleCharacterInputs/index.js.map +1 -1
- package/Skeleton/index.js +3 -2
- package/Skeleton/index.js.map +2 -2
- package/SkipLink/index.js.map +1 -1
- package/Stack/index.d.ts +2 -2
- package/Stack/index.js.map +1 -1
- package/StepNavAccordion/index.js.map +1 -1
- package/StepNavAccordionContent/index.js.map +1 -1
- package/StepNavAccordionHeadingTitle/index.js.map +1 -1
- package/StepNavAccordionSummary/index.js.map +1 -1
- package/StepNavControls/index.js.map +1 -1
- package/StepNavList/index.js.map +1 -1
- package/StepNavListItem/index.js.map +1 -1
- package/SummaryList/index.d.ts +10 -2
- package/SummaryList/index.js +10 -2
- package/SummaryList/index.js.map +2 -2
- package/SummaryListItem/index.js +1 -1
- package/SummaryListItem/index.js.map +2 -2
- package/SummaryListItemAction/index.js.map +1 -1
- package/SummaryListItemKey/index.d.ts +14 -0
- package/SummaryListItemKey/index.js +14 -2
- package/SummaryListItemKey/index.js.map +2 -2
- package/SummaryListItemValue/index.d.ts +14 -0
- package/SummaryListItemValue/index.js +11 -2
- package/SummaryListItemValue/index.js.map +2 -2
- package/Table/index.d.ts +9 -0
- package/Table/index.js +4 -1
- package/Table/index.js.map +2 -2
- package/TableDataCell/index.d.ts +22 -0
- package/TableDataCell/index.js +18 -2
- package/TableDataCell/index.js.map +2 -2
- package/TableHead/index.js.map +1 -1
- package/TableLoaderBackground/index.js.map +1 -1
- package/TableNoDataRow/index.js.map +1 -1
- package/TableSortIconContainer/index.js.map +1 -1
- package/TabsHeading/index.js +1 -1
- package/TabsHeading/index.js.map +2 -2
- package/TabsList/index.js.map +1 -1
- package/TaskListItem/index.js.map +1 -1
- package/TaskListItemContent/index.js.map +1 -1
- package/TextArea/index.js.map +2 -2
- package/TextArea/index.native/index.js +1 -1
- package/TextArea/index.native.d.ts +1 -3
- package/TextArea/index.native.js.map +1 -1
- package/TextArea/index.web.js.map +2 -2
- package/TextInput/index.js.map +1 -1
- package/TextInput/index.native/index.js +3 -3
- package/TextInput/index.native.d.ts +1 -3
- package/TextInput/index.native.js.map +2 -2
- package/TimelineActions/index.js.map +1 -1
- package/TimelineContent/index.js.map +1 -1
- package/TimelineHeading/index.js +2 -2
- package/TimelineHeading/index.js.map +2 -2
- package/TimelineItem/index.js.map +1 -1
- package/Top/index.js.map +1 -1
- package/Typography/index.d.ts +1 -1
- package/Typography/index.js +15 -17
- package/Typography/index.js.map +2 -2
- package/Unpurge/index.js.map +2 -2
- package/VisuallyHidden/index.js.map +1 -1
- package/WarningText/index.d.ts +7 -0
- package/WarningText/index.js +10 -2
- package/WarningText/index.js.map +2 -2
- package/WarningTextAssistive/index.d.ts +3 -3
- package/WarningTextAssistive/index.js.map +2 -2
- package/cjs/Accordion/index.js +5 -35
- package/cjs/Accordion/index.js.map +3 -3
- package/cjs/{utils/extend.native → Accordion/index.native}/index.js +22 -16
- package/cjs/Accordion/index.native.js.map +7 -0
- package/cjs/{ButtonLink → Accordion/index.web}/index.js +24 -16
- package/cjs/Accordion/index.web.js.map +7 -0
- package/cjs/AccordionControls/index.js.map +1 -1
- package/cjs/AccordionSection/index.js +5 -21
- package/cjs/AccordionSection/index.js.map +3 -3
- package/cjs/{CheckboxItemInput → AccordionSection}/index.native/index.js +13 -12
- package/cjs/AccordionSection/index.native.js.map +7 -0
- package/cjs/{HeaderTitle → AccordionSection/index.web}/index.js +11 -12
- package/cjs/AccordionSection/index.web.js.map +7 -0
- package/cjs/AccordionSectionContent/index.js.map +1 -1
- package/cjs/AccordionSectionSummary/index.js.map +1 -1
- package/cjs/AccordionSectionSummaryHeading/index.js +5 -3
- package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
- package/cjs/AdminAside/index.js.map +1 -1
- package/cjs/AdminContainer/index.js +1 -1
- package/cjs/AdminContainer/index.js.map +2 -2
- package/cjs/AdminHeader/index.js.map +1 -1
- package/cjs/AdminHeaderContent/index.js.map +2 -2
- package/cjs/AdminLayout/index.js.map +2 -2
- package/cjs/AdminMain/index.js.map +1 -1
- package/cjs/AutoCompleteAssistiveHint/index.js.map +1 -1
- package/cjs/AutoCompleteContainer/index.js.map +2 -2
- package/cjs/{AutoCompleteInput → AutoCompleteInputBase}/index.js +8 -8
- package/cjs/AutoCompleteInputBase/index.js.map +7 -0
- package/cjs/AutoCompleteMultipleInputContainer/index.js +1 -1
- package/cjs/AutoCompleteMultipleInputContainer/index.js.map +2 -2
- package/cjs/AutoCompleteResultList/index.js.map +2 -2
- package/cjs/AutoCompleteStatus/index.js.map +1 -1
- package/cjs/BackLinkBase/index.js +62 -0
- package/cjs/BackLinkBase/index.js.map +7 -0
- package/cjs/BackToTopLink/index.js.map +1 -1
- package/cjs/BannerContainer/index.js +1 -1
- package/cjs/BannerContainer/index.js.map +2 -2
- package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
- package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
- package/cjs/Base/compat/button.native/index.js +1 -1
- package/cjs/Base/compat/button.native.js.map +2 -2
- package/cjs/Base/compat/details.native/index.js +2 -1
- package/cjs/Base/compat/details.native.js.map +2 -2
- package/cjs/Base/compat/li.native.js.map +2 -2
- package/cjs/Base/index.native.js.map +2 -2
- package/cjs/Base/index.web.js.map +1 -1
- package/cjs/Base/mapping.native/index.js +1 -1
- package/cjs/Base/mapping.native.js.map +2 -2
- package/cjs/Base/wrap.native/index.js +6 -3
- package/cjs/Base/wrap.native.js.map +3 -3
- package/cjs/Bottom/index.js.map +1 -1
- package/cjs/BottomInfo/index.js.map +1 -1
- package/cjs/BottomInfoContainer/index.js.map +1 -1
- package/cjs/BottomInfoContent/index.js.map +1 -1
- package/cjs/Breadcrumbs/index.js.map +1 -1
- package/cjs/BreadcrumbsList/index.js.map +1 -1
- package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
- package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
- package/cjs/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +8 -8
- package/cjs/BreadcrumbsListItemWrapper/index.js.map +7 -0
- package/cjs/Button/index.js +2 -0
- package/cjs/Button/index.js.map +2 -2
- package/cjs/ButtonGroup/index.js.map +1 -1
- package/cjs/ButtonLinkBase/index.js +60 -0
- package/cjs/ButtonLinkBase/index.js.map +7 -0
- package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
- package/cjs/CallToActionBase/index.js.map +7 -0
- package/cjs/Card/index.js +10 -1
- package/cjs/Card/index.js.map +2 -2
- package/cjs/CardAction/index.js.map +1 -1
- package/cjs/CardContent/index.js.map +1 -1
- package/cjs/CardHeading/index.js.map +1 -1
- package/cjs/CheckboxConditional/index.js.map +1 -1
- package/cjs/CheckboxItem/index.js +11 -2
- package/cjs/CheckboxItem/index.js.map +2 -2
- package/cjs/CheckboxItemInput/index.js.map +1 -1
- package/cjs/CheckboxItemInput/index.web/index.js +2 -2
- package/cjs/CheckboxItemInput/index.web.js.map +2 -2
- package/cjs/ChipKeyValue/index.js.map +1 -1
- package/cjs/ChoiceDividerText/index.js.map +1 -1
- package/cjs/{CircularProgress → CircularProgressBase}/index.js +8 -8
- package/cjs/CircularProgressBase/index.js.map +7 -0
- package/cjs/CodeBlockContainer/index.js.map +1 -1
- package/cjs/CodeBlockContent/index.js.map +1 -1
- package/cjs/CopyToClipboardContainer/index.js.map +1 -1
- package/cjs/CopyToClipboardMessage/index.js.map +1 -1
- package/cjs/CopyToClipboardMessage/index.native/index.js +3 -3
- package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
- package/cjs/CopyrightContainer/index.js.map +1 -1
- package/cjs/DateInputItem/index.js.map +1 -1
- package/cjs/DateInputItem/index.native/index.js +7 -10
- package/cjs/DateInputItem/index.native.js.map +2 -2
- package/cjs/DateInputItem/index.web/index.js +11 -1
- package/cjs/DateInputItem/index.web.js.map +2 -2
- package/cjs/Details/index.js.map +2 -2
- package/cjs/Details/index.native/index.js +2 -2
- package/cjs/Details/index.native.js.map +2 -2
- package/cjs/Details/index.web.js.map +1 -1
- package/cjs/DetailsContent/index.js +3 -2
- package/cjs/DetailsContent/index.js.map +2 -2
- package/cjs/DrawerHeading/index.js +1 -9
- package/cjs/DrawerHeading/index.js.map +2 -2
- package/cjs/DropdownContent/index.js.map +2 -2
- package/cjs/ErrorMessage/index.js.map +1 -1
- package/cjs/ErrorSummary/index.js +3 -3
- package/cjs/ErrorSummary/index.js.map +2 -2
- package/cjs/Fieldset/index.js.map +1 -1
- package/cjs/FileUpload/index.js +12 -4
- package/cjs/FileUpload/index.js.map +2 -2
- package/cjs/FileUploadContainer/index.js +3 -2
- package/cjs/FileUploadContainer/index.js.map +2 -2
- package/cjs/FillableText/index.js.map +1 -1
- package/cjs/FilterContainer/index.js.map +2 -2
- package/cjs/FilterContent/index.js.map +1 -1
- package/cjs/FilterSelectedHeading/index.js.map +1 -1
- package/cjs/FilterSelectedSection/index.js.map +1 -1
- package/cjs/Footer/index.js.map +1 -1
- package/cjs/FooterContent/index.js.map +1 -1
- package/cjs/FooterContentLogos/index.js.map +1 -1
- package/cjs/FooterImage/index.js.map +1 -1
- package/cjs/FooterInfo/index.js.map +1 -1
- package/cjs/FooterLinkBase/index.js +56 -0
- package/cjs/FooterLinkBase/index.js.map +7 -0
- package/cjs/FooterListItem/index.js.map +1 -1
- package/cjs/FooterNavigation/index.js.map +1 -1
- package/cjs/FooterNavigationSection/index.js.map +1 -1
- package/cjs/FullPageBackground/index.js.map +1 -1
- package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
- package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
- package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
- package/cjs/GovGRLogoBase/index.js.map +7 -0
- package/cjs/Grid/index.js +1 -0
- package/cjs/Grid/index.js.map +2 -2
- package/cjs/HeaderContent/index.js.map +1 -1
- package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
- package/cjs/HeaderLogoBase/index.js.map +7 -0
- package/cjs/HeaderNavMenuContent/index.js.map +1 -1
- package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
- package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
- package/cjs/HeaderSection/index.js.map +1 -1
- package/cjs/HeaderTitleBase/index.js +57 -0
- package/cjs/HeaderTitleBase/index.js.map +7 -0
- package/cjs/Hidden/index.js +14 -1
- package/cjs/Hidden/index.js.map +2 -2
- package/cjs/Hint/index.js.map +1 -1
- package/cjs/ImageLogo/index.js +1 -1
- package/cjs/ImageLogo/index.js.map +2 -2
- package/cjs/ImageLogoSet/index.js +2 -2
- package/cjs/ImageLogoSet/index.js.map +2 -2
- package/cjs/KitchenSinkAllComponents/index.js.map +1 -1
- package/cjs/KitchenSinkCard/index.js.map +1 -1
- package/cjs/KitchenSinkCategory/index.js.map +1 -1
- package/cjs/KitchenSinkContentInfo/index.js.map +1 -1
- package/cjs/KitchenSinkContentTags/index.js.map +1 -1
- package/cjs/KitchenSinkHeading/index.js.map +1 -1
- package/cjs/KitchenSinkLetterContent/index.js.map +1 -1
- package/cjs/LabelContainer/index.js.map +1 -1
- package/cjs/LinkBase/index.js +1 -0
- package/cjs/LinkBase/index.js.map +2 -2
- package/cjs/ListItem/index.js.map +1 -1
- package/cjs/LoaderContainer/index.js.map +1 -1
- package/cjs/Main/index.js.map +1 -1
- package/cjs/MastheadBody/index.js.map +1 -1
- package/cjs/MastheadLogo/index.js.map +1 -1
- package/cjs/ModalAction/index.js.map +1 -1
- package/cjs/ModalContent/index.js.map +1 -1
- package/cjs/ModalHeading/index.js.map +1 -1
- package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +11 -11
- package/cjs/NavListItemActionBase/index.js.map +7 -0
- package/cjs/NavListItemActionContainer/index.native/index.js +2 -2
- package/cjs/NavListItemActionContainer/index.native.js.map +2 -2
- package/cjs/NavListItemActionContainer/index.web.js.map +1 -1
- package/cjs/NavListItemBadge/index.js +1 -1
- package/cjs/NavListItemBadge/index.js.map +2 -2
- package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
- package/cjs/NavListItemLinkBase/index.js.map +7 -0
- package/cjs/NavMenuContent/index.js +2 -2
- package/cjs/NavMenuContent/index.js.map +3 -3
- package/cjs/NavMenuContentListBase/index.js.map +1 -1
- package/cjs/NavMenuContentListItem/index.js.map +1 -1
- package/cjs/NavMenuTitle/index.js.map +1 -1
- package/cjs/NotificationBannerContainer/index.js.map +2 -2
- package/cjs/NotificationBannerContent/index.js +14 -3
- package/cjs/NotificationBannerContent/index.js.map +2 -2
- package/cjs/NotificationBannerHeader/index.js.map +1 -1
- package/cjs/NotificationBannerHeading/index.js.map +1 -1
- package/cjs/NotificationBannerLink/index.js.map +2 -2
- package/cjs/NotificationBannerLink/index.native/index.js +3 -3
- package/cjs/NotificationBannerLink/index.native.js.map +2 -2
- package/cjs/NotificationBannerLink/index.web.js.map +1 -1
- package/cjs/PageTitleContainer/index.js.map +1 -1
- package/cjs/PaginationLabelContainer/index.js.map +1 -1
- package/cjs/PaginationList/index.js.map +1 -1
- package/cjs/PanelBody/index.js.map +1 -1
- package/cjs/PanelTitle/index.js.map +1 -1
- package/cjs/PhaseBanner/index.js.map +2 -2
- package/cjs/PhaseBannerHeaderContainer/index.js.map +1 -1
- package/cjs/PhaseBannerTag/index.js.map +1 -1
- package/cjs/PhaseBannerText/index.js.map +1 -1
- package/cjs/RadioConditional/index.js.map +1 -1
- package/cjs/RadioItem/index.js.map +2 -2
- package/cjs/ResultsActionBar/index.js.map +1 -1
- package/cjs/ResultsHeading/index.js.map +1 -1
- package/cjs/SearchButton/index.js.map +1 -1
- package/cjs/SearchContainer/index.js.map +1 -1
- package/cjs/SelectOption/index.js.map +1 -1
- package/cjs/SingleCharacterInputs/index.js.map +1 -1
- package/cjs/Skeleton/index.js +3 -2
- package/cjs/Skeleton/index.js.map +2 -2
- package/cjs/SkipLink/index.js.map +1 -1
- package/cjs/Stack/index.js.map +1 -1
- package/cjs/StepNavAccordion/index.js.map +1 -1
- package/cjs/StepNavAccordionContent/index.js.map +1 -1
- package/cjs/StepNavAccordionHeadingTitle/index.js.map +1 -1
- package/cjs/StepNavAccordionSummary/index.js.map +1 -1
- package/cjs/StepNavControls/index.js.map +1 -1
- package/cjs/StepNavList/index.js.map +1 -1
- package/cjs/StepNavListItem/index.js.map +1 -1
- package/cjs/SummaryList/index.js +10 -2
- package/cjs/SummaryList/index.js.map +2 -2
- package/cjs/SummaryListItem/index.js +1 -1
- package/cjs/SummaryListItem/index.js.map +2 -2
- package/cjs/SummaryListItemAction/index.js.map +1 -1
- package/cjs/SummaryListItemKey/index.js +14 -2
- package/cjs/SummaryListItemKey/index.js.map +3 -3
- package/cjs/SummaryListItemValue/index.js +11 -2
- package/cjs/SummaryListItemValue/index.js.map +3 -3
- package/cjs/Table/index.js +4 -1
- package/cjs/Table/index.js.map +2 -2
- package/cjs/TableDataCell/index.js +18 -2
- package/cjs/TableDataCell/index.js.map +3 -3
- package/cjs/TableHead/index.js.map +1 -1
- package/cjs/TableLoaderBackground/index.js.map +1 -1
- package/cjs/TableNoDataRow/index.js.map +1 -1
- package/cjs/TableSortIconContainer/index.js.map +1 -1
- package/cjs/TabsHeading/index.js +1 -1
- package/cjs/TabsHeading/index.js.map +2 -2
- package/cjs/TabsList/index.js.map +1 -1
- package/cjs/TaskListItem/index.js.map +1 -1
- package/cjs/TaskListItemContent/index.js.map +1 -1
- package/cjs/TextArea/index.js.map +2 -2
- package/cjs/TextArea/index.native/index.js +2 -2
- package/cjs/TextArea/index.native.js.map +2 -2
- package/cjs/TextArea/index.web.js.map +2 -2
- package/cjs/TextInput/index.js.map +1 -1
- package/cjs/TextInput/index.native/index.js +4 -4
- package/cjs/TextInput/index.native.js.map +2 -2
- package/cjs/TimelineActions/index.js.map +1 -1
- package/cjs/TimelineContent/index.js.map +1 -1
- package/cjs/TimelineHeading/index.js +2 -2
- package/cjs/TimelineHeading/index.js.map +2 -2
- package/cjs/TimelineItem/index.js.map +1 -1
- package/cjs/Top/index.js.map +1 -1
- package/cjs/Typography/index.js +15 -17
- package/cjs/Typography/index.js.map +2 -2
- package/cjs/Unpurge/index.js.map +2 -2
- package/cjs/VisuallyHidden/index.js.map +1 -1
- package/cjs/WarningText/index.js +10 -2
- package/cjs/WarningText/index.js.map +2 -2
- package/cjs/WarningTextAssistive/index.js.map +2 -2
- package/cjs/index.js +26 -30
- package/cjs/index.js.map +2 -2
- package/cjs/lazy/index.js +71 -73
- package/cjs/lazy.js.map +3 -3
- package/cjs/registry/index.js +48 -46
- package/cjs/registry.js.map +3 -3
- package/cjs/utils/index.native/index.js +86 -0
- package/cjs/utils/index.native.js.map +7 -0
- package/index.d.ts +13 -15
- package/index.js +14 -16
- package/index.js.map +2 -2
- package/lazy/index.js +245 -251
- package/package.json +5 -5
- package/registry/index.js +296 -295
- package/src/Accordion/__snapshots__/index.test.tsx.snap +48 -0
- package/src/Accordion/index.native.tsx +19 -0
- package/src/Accordion/index.test.tsx +24 -0
- package/src/Accordion/index.tsx +2 -71
- package/src/Accordion/index.web.tsx +71 -0
- package/src/AccordionControls/index.tsx +1 -1
- package/src/AccordionSection/index.native.tsx +18 -0
- package/src/AccordionSection/index.test.tsx +3 -1
- package/src/AccordionSection/index.tsx +2 -28
- package/src/AccordionSection/index.web.tsx +27 -0
- package/src/AccordionSectionContent/index.tsx +1 -1
- package/src/AccordionSectionSummary/index.tsx +1 -1
- package/src/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +17 -0
- package/src/AccordionSectionSummaryHeading/index.test.tsx +9 -0
- package/src/AccordionSectionSummaryHeading/index.tsx +12 -4
- package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminAside/index.tsx +1 -1
- package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AdminContainer/index.test.tsx +6 -2
- package/src/AdminContainer/index.tsx +1 -1
- package/src/AdminHeader/index.test.tsx +3 -1
- package/src/AdminHeader/index.tsx +1 -1
- package/src/AdminHeaderContent/index.tsx +4 -2
- package/src/AdminLayout/index.test.tsx +3 -1
- package/src/AdminLayout/index.tsx +1 -2
- package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminMain/index.tsx +1 -1
- package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminTopSection/index.test.tsx +3 -1
- package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AutoCompleteAssistiveHint/index.test.tsx +2 -1
- package/src/AutoCompleteAssistiveHint/index.tsx +1 -1
- package/src/AutoCompleteContainer/index.tsx +4 -1
- package/src/{AutoCompleteInput → AutoCompleteInputBase}/index.test.tsx +4 -4
- package/src/{AutoCompleteInput → AutoCompleteInputBase}/index.tsx +6 -7
- package/src/AutoCompleteMultipleInputContainer/index.tsx +4 -4
- package/src/AutoCompleteResultList/index.test.tsx +2 -1
- package/src/AutoCompleteResultList/index.tsx +1 -4
- package/src/AutoCompleteResultListItem/index.test.tsx +2 -1
- package/src/AutoCompleteStatus/index.tsx +1 -1
- package/src/AutoCompleteStatusContainer/index.test.tsx +2 -1
- package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/BackLinkBase/index.test.tsx +15 -0
- package/src/BackLinkBase/index.tsx +36 -0
- package/src/BackToTopLink/index.tsx +1 -1
- package/src/BannerContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BannerContainer/index.test.tsx +3 -1
- package/src/BannerContainer/index.tsx +2 -2
- package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
- package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
- package/src/Base/compat/button.native.tsx +1 -1
- package/src/Base/compat/details.native.tsx +3 -1
- package/src/Base/compat/li.native.tsx +1 -3
- package/src/Base/index.native.tsx +3 -3
- package/src/Base/index.web.tsx +6 -6
- package/src/Base/mapping.native.tsx +9 -5
- package/src/Base/wrap.native.tsx +9 -6
- package/src/Blockquote/index.test.tsx +3 -1
- package/src/Bottom/index.tsx +1 -1
- package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BottomInfo/index.tsx +1 -1
- package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BottomInfoContainer/index.tsx +1 -1
- package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BottomInfoContent/index.test.tsx +3 -1
- package/src/BottomInfoContent/index.tsx +1 -1
- package/src/Breadcrumbs/index.test.tsx +3 -1
- package/src/Breadcrumbs/index.tsx +1 -1
- package/src/BreadcrumbsList/index.test.tsx +3 -1
- package/src/BreadcrumbsList/index.tsx +1 -1
- package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
- package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
- package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
- package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.tsx +1 -1
- package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.tsx +5 -5
- package/src/Button/index.test.tsx +23 -8
- package/src/Button/index.tsx +2 -0
- package/src/ButtonGroup/index.test.tsx +3 -1
- package/src/ButtonGroup/index.tsx +1 -1
- package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
- package/src/ButtonLinkBase/index.test.tsx +75 -0
- package/src/ButtonLinkBase/index.tsx +55 -0
- package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CallToActionBase/index.test.tsx +10 -0
- package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
- package/src/Card/index.test.tsx +9 -3
- package/src/Card/index.tsx +10 -1
- package/src/CardAction/index.tsx +1 -1
- package/src/CardContent/index.test.tsx +3 -1
- package/src/CardContent/index.tsx +1 -1
- package/src/CardHeading/index.test.tsx +3 -1
- package/src/CardHeading/index.tsx +1 -1
- package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
- package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CheckboxConditional/index.tsx +1 -1
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
- package/src/CheckboxItem/index.test.tsx +6 -2
- package/src/CheckboxItem/index.tsx +10 -3
- package/src/CheckboxItemInput/index.tsx +1 -1
- package/src/CheckboxItemInput/index.web.tsx +3 -4
- package/src/ChipContainer/index.spec.tsx +3 -1
- package/src/ChipHeading/index.test.tsx +3 -1
- package/src/ChipKeyValue/index.test.tsx +3 -1
- package/src/ChipKeyValue/index.tsx +1 -1
- package/src/ChoiceDividerText/index.test.tsx +3 -1
- package/src/ChoiceDividerText/index.tsx +1 -1
- package/src/{CircularProgress → CircularProgressBase}/__snapshots__/index.test.tsx.snap +6 -6
- package/src/CircularProgressBase/index.test.tsx +38 -0
- package/src/{CircularProgress → CircularProgressBase}/index.tsx +7 -7
- package/src/CloseButton/index.test.tsx +3 -1
- package/src/Code/index.test.tsx +7 -3
- package/src/CodeBlockContainer/index.tsx +1 -1
- package/src/CodeBlockContent/index.tsx +1 -1
- package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
- package/src/Container/index.test.tsx +3 -1
- package/src/CopyToClipboardContainer/index.spec.tsx +2 -1
- package/src/CopyToClipboardContainer/index.tsx +1 -1
- package/src/CopyToClipboardMessage/index.native.tsx +3 -3
- package/src/CopyToClipboardMessage/index.test.tsx +6 -3
- package/src/CopyToClipboardMessage/index.tsx +1 -1
- package/src/CopyrightContainer/index.tsx +1 -1
- package/src/DateInputItem/index.native.tsx +7 -10
- package/src/DateInputItem/index.test.tsx +3 -1
- package/src/DateInputItem/index.tsx +1 -1
- package/src/DateInputItem/index.web.tsx +12 -3
- package/src/Details/index.native.tsx +1 -1
- package/src/Details/index.tsx +2 -2
- package/src/Details/index.web.tsx +1 -1
- package/src/DetailsContent/index.test.tsx +3 -1
- package/src/DetailsContent/index.tsx +11 -2
- package/src/DetailsSummary/index.test.tsx +3 -1
- package/src/DrawerHeading/index.tsx +1 -5
- package/src/DropdownBase/index.test.tsx +6 -2
- package/src/DropdownButton/__snapshots__/index.test.tsx.snap +13 -13
- package/src/DropdownButton/index.test.tsx +8 -4
- package/src/DropdownContent/index.test.tsx +3 -1
- package/src/DropdownContent/index.tsx +1 -1
- package/src/ErrorMessage/index.test.tsx +3 -1
- package/src/ErrorMessage/index.tsx +1 -1
- package/src/ErrorSummary/index.test.tsx +6 -2
- package/src/ErrorSummary/index.tsx +17 -4
- package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
- package/src/FieldContainer/index.test.tsx +3 -1
- package/src/Fieldset/index.tsx +1 -1
- package/src/FieldsetLegend/index.test.tsx +3 -1
- package/src/FileUpload/index.test.tsx +3 -1
- package/src/FileUpload/index.tsx +20 -4
- package/src/FileUploadContainer/index.test.tsx +3 -1
- package/src/FileUploadContainer/index.tsx +10 -1
- package/src/FillableText/index.test.tsx +3 -1
- package/src/FillableText/index.tsx +1 -1
- package/src/FilterContainer/index.test.tsx +10 -4
- package/src/FilterContainer/index.tsx +2 -1
- package/src/FilterContent/index.test.tsx +3 -1
- package/src/FilterContent/index.tsx +1 -1
- package/src/FilterSelectedHeading/index.tsx +1 -1
- package/src/FilterSelectedSection/index.tsx +1 -1
- package/src/Footer/index.tsx +1 -1
- package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterContainer/index.test.tsx +3 -1
- package/src/FooterContent/index.test.tsx +3 -1
- package/src/FooterContent/index.tsx +1 -1
- package/src/FooterContentLogos/index.tsx +1 -1
- package/src/FooterHeading/index.test.tsx +3 -1
- package/src/FooterImage/index.tsx +1 -1
- package/src/FooterInfo/index.tsx +1 -1
- package/src/FooterInfoSection/index.test.tsx +5 -2
- package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterLinkBase/index.test.tsx +16 -0
- package/src/FooterLinkBase/index.tsx +27 -0
- package/src/FooterList/index.test.tsx +3 -1
- package/src/FooterListItem/index.test.tsx +3 -1
- package/src/FooterListItem/index.tsx +1 -1
- package/src/FooterNavigation/index.test.tsx +3 -1
- package/src/FooterNavigation/index.tsx +1 -1
- package/src/FooterNavigationSection/index.tsx +1 -1
- package/src/FullPageBackground/index.tsx +1 -1
- package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
- package/src/GovGRLogoBase/index.test.tsx +8 -0
- package/src/GovGRLogoBase/index.tsx +43 -0
- package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
- package/src/Grid/index.tsx +4 -9
- package/src/HeaderContent/index.test.tsx +3 -1
- package/src/HeaderContent/index.tsx +1 -1
- package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderLogoBase/index.test.tsx +8 -0
- package/src/HeaderLogoBase/index.tsx +44 -0
- package/src/HeaderNavMenuContent/index.tsx +1 -1
- package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
- package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
- package/src/HeaderSection/index.test.tsx +3 -1
- package/src/HeaderSection/index.tsx +1 -1
- package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/HeaderTitleBase/index.test.tsx +17 -0
- package/src/HeaderTitleBase/index.tsx +28 -0
- package/src/Heading/index.test.tsx +15 -5
- package/src/HeadingCaption/index.test.tsx +3 -1
- package/src/Hidden/index.tsx +14 -1
- package/src/Hint/index.test.tsx +9 -3
- package/src/Hint/index.tsx +6 -6
- package/src/ImageLogo/index.test.tsx +3 -1
- package/src/ImageLogo/index.tsx +1 -4
- package/src/ImageLogoSet/index.test.tsx +2 -1
- package/src/ImageLogoSet/index.tsx +3 -6
- package/src/KitchenSinkAllComponents/index.tsx +1 -1
- package/src/KitchenSinkCard/index.tsx +1 -1
- package/src/KitchenSinkCategory/index.tsx +1 -1
- package/src/KitchenSinkContentInfo/index.tsx +1 -1
- package/src/KitchenSinkContentTags/index.tsx +1 -1
- package/src/KitchenSinkHeading/index.tsx +1 -1
- package/src/KitchenSinkLetterContent/index.tsx +1 -1
- package/src/LabelContainer/index.test.tsx +3 -1
- package/src/LabelContainer/index.tsx +1 -1
- package/src/LabelTitle/index.test.tsx +15 -5
- package/src/LabeledText/index.test.tsx +3 -1
- package/src/LinkBase/index.test.tsx +6 -2
- package/src/LinkBase/index.tsx +5 -1
- package/src/List/__snapshots__/index.test.tsx.snap +19 -19
- package/src/List/index.test.tsx +8 -4
- package/src/ListItem/index.tsx +1 -1
- package/src/LoaderContainer/index.tsx +1 -1
- package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Main/index.tsx +1 -1
- package/src/MastheadBody/index.test.tsx +3 -1
- package/src/MastheadBody/index.tsx +1 -1
- package/src/MastheadLogo/index.tsx +1 -1
- package/src/ModalAction/index.test.tsx +3 -1
- package/src/ModalAction/index.tsx +1 -1
- package/src/ModalContainer/index.test.tsx +3 -1
- package/src/ModalContent/index.test.tsx +3 -1
- package/src/ModalContent/index.tsx +1 -1
- package/src/ModalHeading/index.test.tsx +3 -1
- package/src/ModalHeading/index.tsx +1 -1
- package/src/Nav/index.test.tsx +6 -2
- package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +101 -0
- package/src/NavListItemActionBase/index.test.tsx +42 -0
- package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +15 -16
- package/src/NavListItemActionContainer/index.native.tsx +1 -1
- package/src/NavListItemActionContainer/index.test.tsx +2 -1
- package/src/NavListItemActionContainer/index.web.tsx +1 -1
- package/src/NavListItemBadge/index.tsx +1 -1
- package/src/NavListItemButton/index.test.tsx +7 -3
- package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
- package/src/NavListItemLinkBase/index.test.tsx +41 -0
- package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
- package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
- package/src/NavMenuContainer/index.test.tsx +7 -3
- package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavMenuContent/index.tsx +2 -3
- package/src/NavMenuContentListBase/index.tsx +1 -1
- package/src/NavMenuContentListItem/index.tsx +1 -1
- package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavMenuTitle/index.test.tsx +3 -1
- package/src/NavMenuTitle/index.tsx +1 -1
- package/src/NormalText/__snapshots__/index.test.tsx.snap +0 -12
- package/src/NormalText/index.test.tsx +33 -21
- package/src/NotificationBannerContainer/index.test.tsx +2 -1
- package/src/NotificationBannerContainer/index.tsx +2 -1
- package/src/NotificationBannerContent/index.test.tsx +2 -1
- package/src/NotificationBannerContent/index.tsx +50 -4
- package/src/NotificationBannerHeader/index.test.tsx +2 -1
- package/src/NotificationBannerHeader/index.tsx +1 -1
- package/src/NotificationBannerHeading/index.test.tsx +2 -1
- package/src/NotificationBannerHeading/index.tsx +1 -1
- package/src/NotificationBannerLink/index.native.tsx +2 -2
- package/src/NotificationBannerLink/index.tsx +1 -1
- package/src/NotificationBannerLink/index.web.tsx +1 -1
- package/src/PageTitleCaption/index.test.tsx +3 -1
- package/src/PageTitleContainer/index.tsx +1 -1
- package/src/PageTitleHeading/index.test.tsx +3 -1
- package/src/Pagination/index.spec.tsx +3 -1
- package/src/PaginationLabelContainer/index.spec.tsx +2 -1
- package/src/PaginationLabelContainer/index.tsx +1 -1
- package/src/PaginationList/index.spec.tsx +3 -1
- package/src/PaginationList/index.tsx +1 -1
- package/src/PaginationListItem/index.spec.tsx +4 -2
- package/src/PanelBody/index.tsx +1 -1
- package/src/PanelTitle/index.tsx +1 -1
- package/src/Paragraph/__snapshots__/index.test.tsx.snap +0 -12
- package/src/Paragraph/index.test.tsx +33 -17
- package/src/PhaseBanner/index.test.tsx +6 -2
- package/src/PhaseBanner/index.tsx +2 -1
- package/src/PhaseBannerHeaderContainer/inde.test.tsx +2 -1
- package/src/PhaseBannerHeaderContainer/index.tsx +1 -1
- package/src/PhaseBannerTag/index.test.tsx +3 -1
- package/src/PhaseBannerTag/index.tsx +1 -1
- package/src/PhaseBannerText/index.test.tsx +3 -1
- package/src/PhaseBannerText/index.tsx +1 -1
- package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
- package/src/RadioConditional/index.test.tsx +3 -1
- package/src/RadioConditional/index.tsx +1 -1
- package/src/RadioContainer/index.test.tsx +8 -3
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
- package/src/RadioItem/index.test.tsx +6 -2
- package/src/RadioItem/index.tsx +2 -1
- package/src/ResultsActionBar/index.tsx +1 -1
- package/src/ResultsActionBar/indext.test.tsx +3 -1
- package/src/ResultsHeading/index.test.tsx +3 -1
- package/src/ResultsHeading/index.tsx +1 -1
- package/src/SearchButton/index.tsx +1 -1
- package/src/SearchContainer/index.test.tsx +3 -1
- package/src/SearchContainer/index.tsx +1 -1
- package/src/SectionBreak/index.test.tsx +3 -1
- package/src/SelectContainer/index.test.tsx +5 -2
- package/src/SelectOption/index.test.tsx +3 -1
- package/src/SelectOption/index.tsx +1 -1
- package/src/SingleCharacterInput/__snapshots__/index.test.tsx.snap +0 -15
- package/src/SingleCharacterInput/index.test.tsx +3 -7
- package/src/SingleCharacterInputs/index.tsx +1 -1
- package/src/Skeleton/index.test.tsx +36 -9
- package/src/Skeleton/index.tsx +4 -3
- package/src/SkipLink/index.tsx +1 -1
- package/src/Stack/index.test.tsx +54 -18
- package/src/Stack/index.tsx +2 -2
- package/src/StepNavAccordion/index.test.tsx +3 -1
- package/src/StepNavAccordion/index.tsx +2 -2
- package/src/StepNavAccordionContent/index.tsx +1 -1
- package/src/StepNavAccordionHeadingText/index.test.tsx +2 -1
- package/src/StepNavAccordionHeadingTitle/index.test.tsx +2 -1
- package/src/StepNavAccordionHeadingTitle/index.tsx +1 -1
- package/src/StepNavAccordionSummary/index.tsx +1 -1
- package/src/StepNavCircleNumber/index.test.tsx +2 -1
- package/src/StepNavControls/index.test.tsx +3 -1
- package/src/StepNavControls/index.tsx +1 -1
- package/src/StepNavList/index.test.tsx +3 -1
- package/src/StepNavList/index.tsx +1 -1
- package/src/StepNavListItem/index.test.tsx +3 -1
- package/src/StepNavListItem/index.tsx +1 -1
- package/src/SummaryList/__snapshots__/index.test.tsx.snap +36 -0
- package/src/SummaryList/index.test.tsx +18 -1
- package/src/SummaryList/index.tsx +20 -3
- package/src/SummaryListItem/index.test.tsx +3 -1
- package/src/SummaryListItem/index.tsx +1 -1
- package/src/SummaryListItemAction/index.tsx +1 -1
- package/src/SummaryListItemKey/__snapshots__/index.test.tsx.snap +70 -0
- package/src/SummaryListItemKey/index.test.tsx +29 -0
- package/src/SummaryListItemKey/index.tsx +29 -1
- package/src/SummaryListItemValue/__snapshots__/index.test.tsx.snap +34 -0
- package/src/SummaryListItemValue/index.test.tsx +14 -0
- package/src/SummaryListItemValue/index.tsx +30 -2
- package/src/Table/__snapshots__/index.test.tsx.snap +4 -4
- package/src/Table/index.test.tsx +36 -6
- package/src/Table/index.tsx +12 -0
- package/src/TableBody/index.test.tsx +7 -1
- package/src/TableCaption/index.test.tsx +27 -5
- package/src/TableContainer/index.test.tsx +3 -1
- package/src/TableDataCell/__snapshots__/index.test.tsx.snap +79 -2
- package/src/TableDataCell/index.test.tsx +63 -3
- package/src/TableDataCell/index.tsx +56 -1
- package/src/TableHead/index.test.tsx +12 -2
- package/src/TableHead/index.tsx +1 -1
- package/src/TableHeadCell/index.test.tsx +129 -15
- package/src/TableLoaderBackground/index.tsx +1 -1
- package/src/TableNoDataRow/index.test.tsx +9 -1
- package/src/TableNoDataRow/index.tsx +1 -1
- package/src/TableRow/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TableRow/index.test.tsx +28 -4
- package/src/TableSortIconContainer/index.tsx +1 -1
- package/src/TabsHeading/index.test.tsx +9 -3
- package/src/TabsHeading/index.tsx +1 -1
- package/src/TabsList/index.tsx +1 -1
- package/src/TabsListItemBase/__snapshots__/index.test.tsx.snap +9 -9
- package/src/TabsListItemBase/index.test.tsx +4 -2
- package/src/TabsPanelBase/index.test.tsx +6 -2
- package/src/TaskList/index.test.tsx +3 -1
- package/src/TaskListItem/index.test.tsx +3 -1
- package/src/TaskListItem/index.tsx +1 -1
- package/src/TaskListItemContent/index.tsx +1 -1
- package/src/TaskListItemHeading/index.test.tsx +4 -2
- package/src/TaskListItemTag/index.test.tsx +5 -2
- package/src/TextArea/index.native.tsx +1 -1
- package/src/TextArea/index.test.tsx +24 -8
- package/src/TextArea/index.tsx +1 -1
- package/src/TextArea/index.web.tsx +1 -4
- package/src/TextInput/index.native.tsx +3 -3
- package/src/TextInput/index.test.tsx +58 -23
- package/src/TextInput/index.tsx +1 -1
- package/src/Timeline/index.test.tsx +3 -1
- package/src/TimelineActions/index.test.tsx +3 -1
- package/src/TimelineActions/index.tsx +1 -1
- package/src/TimelineContent/index.test.tsx +3 -1
- package/src/TimelineContent/index.tsx +1 -1
- package/src/TimelineHeading/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TimelineHeading/index.test.tsx +3 -1
- package/src/TimelineHeading/index.tsx +2 -2
- package/src/TimelineItem/index.test.tsx +3 -1
- package/src/TimelineItem/index.tsx +1 -1
- package/src/Top/index.tsx +1 -1
- package/src/Typography/index.tsx +21 -20
- package/src/Unpurge/index.tsx +1 -2
- package/src/VisuallyHidden/index.test.tsx +3 -1
- package/src/VisuallyHidden/index.tsx +1 -1
- package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
- package/src/WarningText/index.test.tsx +11 -2
- package/src/WarningText/index.tsx +21 -6
- package/src/WarningTextAssistive/index.tsx +6 -6
- package/src/index.ts +13 -15
- package/src/lazy.js +245 -248
- package/src/registry.js +288 -288
- package/src/utils/index.native.tsx +122 -0
- package/utils/index.native/index.js +52 -0
- package/utils/index.native/package.json +6 -0
- package/utils/index.native.d.ts +43 -0
- package/utils/index.native.js.map +7 -0
- package/AutoCompleteInput/index.d.ts +0 -17
- package/AutoCompleteInput/index.js.map +0 -7
- package/AutoCompleteInputTypeahead/index.d.ts +0 -11
- package/AutoCompleteInputTypeahead/index.js +0 -25
- package/AutoCompleteInputTypeahead/index.js.map +0 -7
- package/BackLink/index.d.ts +0 -9
- package/BackLink/index.js +0 -33
- package/BackLink/index.js.map +0 -7
- package/BreadcrumbsListItem/index.d.ts +0 -10
- package/BreadcrumbsListItem/index.js.map +0 -7
- package/BreadcrumbsListItemLink/index.js +0 -24
- package/BreadcrumbsListItemLink/index.js.map +0 -7
- package/ButtonLink/index.js +0 -29
- package/ButtonLink/index.js.map +0 -7
- package/CallToAction/index.d.ts +0 -9
- package/CallToAction/index.js.map +0 -7
- package/CheckboxItemInput/index.native/index.js +0 -20
- package/CheckboxItemInput/index.native/package.json +0 -6
- package/CheckboxItemInput/index.native.d.ts +0 -4
- package/CheckboxItemInput/index.native.js.map +0 -7
- package/CircularProgress/index.js.map +0 -7
- package/FooterLink/index.d.ts +0 -9
- package/FooterLink/index.js +0 -25
- package/FooterLink/index.js.map +0 -7
- package/GovGRLogo/govgr-logo-base64/package.json +0 -6
- package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
- package/GovGRLogo/index.d.ts +0 -9
- package/GovGRLogo/index.js +0 -45
- package/GovGRLogo/index.js.map +0 -7
- package/GovGRLogo/package.json +0 -6
- package/HeaderLogo/index.d.ts +0 -19
- package/HeaderLogo/index.js +0 -35
- package/HeaderLogo/index.js.map +0 -7
- package/HeaderLogo/package.json +0 -6
- package/HeaderSecondaryLogo/index.d.ts +0 -19
- package/HeaderSecondaryLogo/index.js.map +0 -7
- package/HeaderSecondaryLogo/package.json +0 -6
- package/HeaderTitle/index.d.ts +0 -9
- package/HeaderTitle/index.js +0 -24
- package/HeaderTitle/index.js.map +0 -7
- package/HeaderTitle/package.json +0 -6
- package/NavListItemAction/index.js.map +0 -7
- package/NavListItemAction/package.json +0 -6
- package/NavListItemLink/index.js.map +0 -7
- package/NavListItemLink/index.test.d.ts +0 -1
- package/NavListItemLink/package.json +0 -6
- package/SvgIcon/index.d.ts +0 -37
- package/SvgIcon/index.js +0 -30
- package/SvgIcon/index.js.map +0 -7
- package/SvgIcon/index.test.d.ts +0 -1
- package/SvgIcon/package.json +0 -6
- package/cjs/AutoCompleteInput/index.js.map +0 -7
- package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
- package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
- package/cjs/BackLink/index.js +0 -66
- package/cjs/BackLink/index.js.map +0 -7
- package/cjs/BreadcrumbsListItem/index.js.map +0 -7
- package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
- package/cjs/ButtonLink/index.js.map +0 -7
- package/cjs/CallToAction/index.js.map +0 -7
- package/cjs/CheckboxItemInput/index.native.js.map +0 -7
- package/cjs/CircularProgress/index.js.map +0 -7
- package/cjs/FooterLink/index.js +0 -58
- package/cjs/FooterLink/index.js.map +0 -7
- package/cjs/GovGRLogo/index.js.map +0 -7
- package/cjs/HeaderLogo/index.js +0 -68
- package/cjs/HeaderLogo/index.js.map +0 -7
- package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
- package/cjs/HeaderTitle/index.js.map +0 -7
- package/cjs/NavListItemAction/index.js.map +0 -7
- package/cjs/NavListItemLink/index.js.map +0 -7
- package/cjs/SvgIcon/index.js +0 -63
- package/cjs/SvgIcon/index.js.map +0 -7
- package/cjs/utils/extend.native.js.map +0 -7
- package/lazy.d.ts +0 -248
- package/lazy.js.map +0 -7
- package/registry.d.ts +0 -266
- package/registry.js.map +0 -7
- package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
- package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
- package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
- package/src/BackLink/index.test.tsx +0 -11
- package/src/BackLink/index.tsx +0 -37
- package/src/BreadcrumbsListItemLink/index.test.tsx +0 -15
- package/src/ButtonLink/index.test.tsx +0 -64
- package/src/ButtonLink/index.tsx +0 -54
- package/src/CallToAction/index.test.tsx +0 -8
- package/src/CheckboxItemInput/index.native.tsx +0 -17
- package/src/CircularProgress/index.test.tsx +0 -32
- package/src/FooterLink/index.test.tsx +0 -12
- package/src/FooterLink/index.tsx +0 -26
- package/src/GovGRLogo/index.test.tsx +0 -8
- package/src/GovGRLogo/index.tsx +0 -42
- package/src/HeaderLogo/index.test.tsx +0 -8
- package/src/HeaderLogo/index.tsx +0 -43
- package/src/HeaderTitle/index.test.tsx +0 -13
- package/src/HeaderTitle/index.tsx +0 -28
- package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
- package/src/NavListItemAction/index.test.tsx +0 -10
- package/src/NavListItemLink/index.test.tsx +0 -37
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +0 -254
- package/src/SvgIcon/index.test.tsx +0 -68
- package/src/SvgIcon/index.tsx +0 -72
- package/src/utils/extend.native.tsx +0 -36
- package/utils/extend.native/index.js +0 -14
- package/utils/extend.native/package.json +0 -6
- package/utils/extend.native.d.ts +0 -23
- package/utils/extend.native.js.map +0 -7
- /package/{AutoCompleteInput → AutoCompleteInputBase}/index.test.d.ts +0 -0
- /package/{AutoCompleteInputTypeahead → BackLinkBase}/index.test.d.ts +0 -0
- /package/{BackLink → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
- /package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.d.ts +0 -0
- /package/{BreadcrumbsListItemLink → ButtonLinkBase}/index.test.d.ts +0 -0
- /package/{ButtonLink → CallToActionBase}/index.test.d.ts +0 -0
- /package/{CallToAction → CircularProgressBase}/index.test.d.ts +0 -0
- /package/{CircularProgress → FooterLinkBase}/index.test.d.ts +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
- /package/{FooterLink → GovGRLogoBase}/index.test.d.ts +0 -0
- /package/{GovGRLogo → HeaderLogoBase}/index.test.d.ts +0 -0
- /package/{HeaderLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
- /package/{HeaderSecondaryLogo → HeaderTitleBase}/index.test.d.ts +0 -0
- /package/{HeaderTitle → NavListItemActionBase}/index.test.d.ts +0 -0
- /package/{NavListItemAction → NavListItemLinkBase}/index.test.d.ts +0 -0
- /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
- /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
- /package/src/{AutoCompleteInput → AutoCompleteInputBase}/__snapshots__/index.test.tsx.snap +0 -0
- /package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/__snapshots__/index.test.tsx.snap +0 -0
- /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
- /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
|
@@ -2,7 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface DetailsContentProps extends BaseProps<'div'> {
|
|
5
|
+
export interface DetailsContentProps extends BaseProps<'div'> {
|
|
6
|
+
/*
|
|
7
|
+
** color is optional. Default value is 'primary'.
|
|
8
|
+
* @value 'primary'
|
|
9
|
+
* @value 'secondary'
|
|
10
|
+
* @default 'primary'
|
|
11
|
+
* */
|
|
12
|
+
color?: 'primary' | 'secondary';
|
|
13
|
+
}
|
|
6
14
|
/**
|
|
7
15
|
*DetailsContent component wraps the content text.
|
|
8
16
|
*It is used inside Details component as children
|
|
@@ -10,13 +18,14 @@ export interface DetailsContentProps extends BaseProps<'div'> { }
|
|
|
10
18
|
export const DetailsContent = React.forwardRef<
|
|
11
19
|
HTMLDivElement,
|
|
12
20
|
DetailsContentProps
|
|
13
|
-
>(function DetailsContent({ className, children, ...props }, ref) {
|
|
21
|
+
>(function DetailsContent({ color, className, children, ...props }, ref) {
|
|
14
22
|
return (
|
|
15
23
|
<Base
|
|
16
24
|
as="div"
|
|
17
25
|
ref={ref}
|
|
18
26
|
className={clsx(className, {
|
|
19
27
|
'ds-details__content': true,
|
|
28
|
+
'ds-details__content--secondary': color === 'secondary',
|
|
20
29
|
})}
|
|
21
30
|
{...props}
|
|
22
31
|
>
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import DetailsSummary from '@digigov/react-core/DetailsSummary';
|
|
5
5
|
|
|
6
6
|
it('renders the DetailsSummary with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<DetailsSummary>hello</DetailsSummary>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -34,11 +34,7 @@ export const DrawerHeading = React.forwardRef<
|
|
|
34
34
|
{...props}
|
|
35
35
|
>
|
|
36
36
|
{children}
|
|
37
|
-
<CloseButton
|
|
38
|
-
onClick={(e) => {
|
|
39
|
-
onClick && onClick(e as any);
|
|
40
|
-
}}
|
|
41
|
-
>
|
|
37
|
+
<CloseButton onClick={(e) => onClick && onClick(e as any)}>
|
|
42
38
|
{closeLabel}
|
|
43
39
|
</CloseButton>
|
|
44
40
|
</Stack>
|
|
@@ -4,11 +4,15 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import DropdownBase from '@digigov/react-core/DropdownBase';
|
|
5
5
|
|
|
6
6
|
it('renders the DropdownBase with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<DropdownBase>hello</DropdownBase>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the DropdownBase disabled', () => {
|
|
11
|
-
expect(
|
|
13
|
+
expect(
|
|
14
|
+
render(<DropdownBase disabled>hello</DropdownBase>).baseElement
|
|
15
|
+
).toMatchSnapshot();
|
|
12
16
|
});
|
|
13
17
|
|
|
14
18
|
it('renders the DropdownBase with open=true', () => {
|
|
@@ -129,19 +129,6 @@ exports[`renders the DropdownButton with color=primary and variant="link" 1`] =
|
|
|
129
129
|
</body>
|
|
130
130
|
`;
|
|
131
131
|
|
|
132
|
-
exports[`renders the DropdownButton with color=primary and variant="link" 2`] = `
|
|
133
|
-
<body>
|
|
134
|
-
<div>
|
|
135
|
-
<summary
|
|
136
|
-
class="ds-dropdown__button ds-link"
|
|
137
|
-
tabindex="0"
|
|
138
|
-
>
|
|
139
|
-
hello
|
|
140
|
-
</summary>
|
|
141
|
-
</div>
|
|
142
|
-
</body>
|
|
143
|
-
`;
|
|
144
|
-
|
|
145
132
|
exports[`renders the DropdownButton with color=primary variant="button" and arrow={false} 1`] = `
|
|
146
133
|
<body>
|
|
147
134
|
<div>
|
|
@@ -282,6 +269,19 @@ exports[`renders the DropdownButton with color=secondary and variant="button" 1`
|
|
|
282
269
|
</body>
|
|
283
270
|
`;
|
|
284
271
|
|
|
272
|
+
exports[`renders the DropdownButton with color=secondary and variant="link" 1`] = `
|
|
273
|
+
<body>
|
|
274
|
+
<div>
|
|
275
|
+
<summary
|
|
276
|
+
class="ds-dropdown__button ds-link"
|
|
277
|
+
tabindex="0"
|
|
278
|
+
>
|
|
279
|
+
hello
|
|
280
|
+
</summary>
|
|
281
|
+
</div>
|
|
282
|
+
</body>
|
|
283
|
+
`;
|
|
284
|
+
|
|
285
285
|
exports[`renders the DropdownButton with color=warning variant="button" arrow={false} 1`] = `
|
|
286
286
|
<body>
|
|
287
287
|
<div>
|
|
@@ -4,7 +4,9 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import DropdownButton from '@digigov/react-core/DropdownButton';
|
|
5
5
|
|
|
6
6
|
it('renders the DropdownButton with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<DropdownButton>hello</DropdownButton>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the DropdownButton with color=primary', () => {
|
|
@@ -75,7 +77,8 @@ it('renders the DropdownButton with color=primary and arrow={false}', () => {
|
|
|
75
77
|
|
|
76
78
|
it('renders the DropdownButton with color=primary and arrow={true}', () => {
|
|
77
79
|
expect(
|
|
78
|
-
render(<DropdownButton color="primary" arrow={true}></DropdownButton>)
|
|
80
|
+
render(<DropdownButton color="primary" arrow={true}></DropdownButton>)
|
|
81
|
+
.baseElement
|
|
79
82
|
).toMatchSnapshot();
|
|
80
83
|
});
|
|
81
84
|
|
|
@@ -89,7 +92,7 @@ it('renders the DropdownButton with color=secondary and variant="button"', () =>
|
|
|
89
92
|
).toMatchSnapshot();
|
|
90
93
|
});
|
|
91
94
|
|
|
92
|
-
it('renders the DropdownButton with color=
|
|
95
|
+
it('renders the DropdownButton with color=secondary and variant="link"', () => {
|
|
93
96
|
expect(
|
|
94
97
|
render(
|
|
95
98
|
<DropdownButton color="secondary" variant="link">
|
|
@@ -111,7 +114,8 @@ it('renders the DropdownButton with color=secondary and arrow={false}', () => {
|
|
|
111
114
|
|
|
112
115
|
it('renders the DropdownButton with color=secondary and arrow={true}', () => {
|
|
113
116
|
expect(
|
|
114
|
-
render(<DropdownButton color="secondary" arrow={true}></DropdownButton>)
|
|
117
|
+
render(<DropdownButton color="secondary" arrow={true}></DropdownButton>)
|
|
118
|
+
.baseElement
|
|
115
119
|
).toMatchSnapshot();
|
|
116
120
|
});
|
|
117
121
|
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import DropdownContent from '@digigov/react-core/DropdownContent';
|
|
5
5
|
|
|
6
6
|
it('renders the DropdownContent with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<DropdownContent>hello</DropdownContent>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -27,7 +27,7 @@ export const DropdownContent = React.forwardRef<
|
|
|
27
27
|
HTMLDivElement,
|
|
28
28
|
DropdownContentProps
|
|
29
29
|
>(function DropdownContent(
|
|
30
|
-
{fullWidth = true, scrollable, className, children, ...props },
|
|
30
|
+
{ fullWidth = true, scrollable, className, children, ...props },
|
|
31
31
|
ref
|
|
32
32
|
) {
|
|
33
33
|
return (
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import ErrorMessage from '@digigov/react-core/ErrorMessage';
|
|
5
5
|
|
|
6
6
|
it('renders the ErrorMessage with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<ErrorMessage>hello</ErrorMessage>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface ErrorMessageProps extends BaseProps<'p'> {
|
|
5
|
+
export interface ErrorMessageProps extends BaseProps<'p'> {}
|
|
6
6
|
/**
|
|
7
7
|
* ErrorMessage is used to show an error message when there is a validation error.
|
|
8
8
|
* In the error message explain what went wrong and how to fix it.
|
|
@@ -4,9 +4,13 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import ErrorSummary from '@digigov/react-core/ErrorSummary';
|
|
5
5
|
|
|
6
6
|
it('renders the ErrorSummary with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<ErrorSummary>hello</ErrorSummary>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the ErrorSummary with dense=true', () => {
|
|
11
|
-
expect(
|
|
13
|
+
expect(
|
|
14
|
+
render(<ErrorSummary dense>hello</ErrorSummary>).baseElement
|
|
15
|
+
).toMatchSnapshot();
|
|
12
16
|
});
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
import NotificationBannerContainer from '@digigov/react-core/NotificationBannerContainer';
|
|
4
4
|
import NotificationBannerContent from '@digigov/react-core/NotificationBannerContent';
|
|
5
|
-
|
|
6
5
|
export interface ErrorSummaryProps extends BaseProps<'div'> {
|
|
7
6
|
/**
|
|
8
7
|
* dense is optional.
|
|
@@ -11,21 +10,35 @@ export interface ErrorSummaryProps extends BaseProps<'div'> {
|
|
|
11
10
|
* @default false
|
|
12
11
|
* */
|
|
13
12
|
dense?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* variant is optional.
|
|
15
|
+
* variant error is used to change the color of the NotificationBannerContainer.
|
|
16
|
+
* variant error-group is used to display red line on the left side of the component and exclamation mark icon with light red as background.
|
|
17
|
+
* @value 'error'
|
|
18
|
+
* @value 'error-group'
|
|
19
|
+
* @default 'error'.
|
|
20
|
+
*/
|
|
21
|
+
variant?: 'error' | 'error-group';
|
|
14
22
|
}
|
|
15
23
|
/**
|
|
16
24
|
* Use this component at the top of a page to summarize any errors a user has made.
|
|
17
25
|
*/
|
|
18
26
|
export const ErrorSummary = React.forwardRef<HTMLDivElement, ErrorSummaryProps>(
|
|
19
|
-
function ErrorSummary(
|
|
27
|
+
function ErrorSummary(
|
|
28
|
+
{ className, dense, children, variant = 'error', ...props },
|
|
29
|
+
ref
|
|
30
|
+
) {
|
|
20
31
|
return (
|
|
21
32
|
<NotificationBannerContainer
|
|
22
|
-
variant={
|
|
33
|
+
variant={variant}
|
|
23
34
|
className={className}
|
|
24
35
|
ref={ref}
|
|
25
36
|
dense={dense}
|
|
26
37
|
{...props}
|
|
27
38
|
>
|
|
28
|
-
<NotificationBannerContent
|
|
39
|
+
<NotificationBannerContent variant={variant}>
|
|
40
|
+
{children}
|
|
41
|
+
</NotificationBannerContent>
|
|
29
42
|
</NotificationBannerContainer>
|
|
30
43
|
);
|
|
31
44
|
}
|
|
@@ -4,7 +4,7 @@ exports[`renders the FieldContainer with error=false 1`] = `
|
|
|
4
4
|
<body>
|
|
5
5
|
<div>
|
|
6
6
|
<div
|
|
7
|
-
class="ds-field xs:ds-grid__col-span-12"
|
|
7
|
+
class="ds-field ds-grid-item xs:ds-grid__col-span-12"
|
|
8
8
|
>
|
|
9
9
|
hello
|
|
10
10
|
</div>
|
|
@@ -16,7 +16,7 @@ exports[`renders the FieldContainer with error=true 1`] = `
|
|
|
16
16
|
<body>
|
|
17
17
|
<div>
|
|
18
18
|
<div
|
|
19
|
-
class="ds-field ds-field--error xs:ds-grid__col-span-12"
|
|
19
|
+
class="ds-field ds-field--error ds-grid-item xs:ds-grid__col-span-12"
|
|
20
20
|
>
|
|
21
21
|
hello
|
|
22
22
|
</div>
|
|
@@ -28,7 +28,7 @@ exports[`renders the FieldContainer with no props 1`] = `
|
|
|
28
28
|
<body>
|
|
29
29
|
<div>
|
|
30
30
|
<div
|
|
31
|
-
class="ds-field xs:ds-grid__col-span-12"
|
|
31
|
+
class="ds-field ds-grid-item xs:ds-grid__col-span-12"
|
|
32
32
|
>
|
|
33
33
|
hello
|
|
34
34
|
</div>
|
|
@@ -4,7 +4,9 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FieldContainer from '@digigov/react-core/FieldContainer';
|
|
5
5
|
|
|
6
6
|
it('renders the FieldContainer with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FieldContainer>hello</FieldContainer>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the FieldContainer with error=true', () => {
|
package/src/Fieldset/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FieldsetProps extends BaseProps<'fieldset'> {
|
|
5
|
+
export interface FieldsetProps extends BaseProps<'fieldset'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Details for the Fieldset.
|
|
8
8
|
* Fieldset component is used to group related elements in a form.
|
|
@@ -5,7 +5,9 @@ import FieldsetLegend from '@digigov/react-core/FieldsetLegend';
|
|
|
5
5
|
|
|
6
6
|
it('renders the FieldsetLegend with no props', () => {
|
|
7
7
|
expect(
|
|
8
|
-
render(
|
|
8
|
+
render(
|
|
9
|
+
<FieldsetLegend>This is FieldsetLegend with no props</FieldsetLegend>
|
|
10
|
+
).baseElement
|
|
9
11
|
).toMatchSnapshot();
|
|
10
12
|
});
|
|
11
13
|
|
|
@@ -8,5 +8,7 @@ it('renders the FileUpload with no props', () => {
|
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
it('renders the FileUpload with name prop', () => {
|
|
11
|
-
expect(
|
|
11
|
+
expect(
|
|
12
|
+
render(<FileUpload name={'some-name'} />).baseElement
|
|
13
|
+
).toMatchSnapshot();
|
|
12
14
|
});
|
package/src/FileUpload/index.tsx
CHANGED
|
@@ -10,6 +10,14 @@ export interface FileUploadProps extends BaseProps<'input'> {
|
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
hasFiles?: boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* variant is optional.
|
|
16
|
+
* @value 'button'
|
|
17
|
+
* @value 'link'
|
|
18
|
+
* @default 'button'
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'button' | 'link';
|
|
13
21
|
}
|
|
14
22
|
/**
|
|
15
23
|
* Details for the FileUpload.
|
|
@@ -17,7 +25,15 @@ export interface FileUploadProps extends BaseProps<'input'> {
|
|
|
17
25
|
*/
|
|
18
26
|
export const FileUpload = React.forwardRef<HTMLInputElement, FileUploadProps>(
|
|
19
27
|
function FileUpload(
|
|
20
|
-
{
|
|
28
|
+
{
|
|
29
|
+
name,
|
|
30
|
+
className,
|
|
31
|
+
children,
|
|
32
|
+
disabled,
|
|
33
|
+
hasFiles = false,
|
|
34
|
+
variant = 'button',
|
|
35
|
+
...props
|
|
36
|
+
},
|
|
21
37
|
ref
|
|
22
38
|
) {
|
|
23
39
|
return (
|
|
@@ -27,9 +43,9 @@ export const FileUpload = React.forwardRef<HTMLInputElement, FileUploadProps>(
|
|
|
27
43
|
role="button"
|
|
28
44
|
className={clsx(className, {
|
|
29
45
|
'ds-label-file': true,
|
|
30
|
-
'ds-btn': !hasFiles,
|
|
31
|
-
'ds-btn-secondary': !hasFiles,
|
|
32
|
-
'ds-link': hasFiles,
|
|
46
|
+
'ds-btn': !hasFiles && variant === 'button',
|
|
47
|
+
'ds-btn-secondary': !hasFiles && variant === 'button',
|
|
48
|
+
'ds-link': hasFiles || variant === 'link',
|
|
33
49
|
})}
|
|
34
50
|
>
|
|
35
51
|
<Base
|
|
@@ -8,5 +8,7 @@ it('renders the FileUpload with no props', () => {
|
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
it('renders the FileUpload with hasFiles prop', () => {
|
|
11
|
-
expect(
|
|
11
|
+
expect(
|
|
12
|
+
render(<FileUploadContainer hasFiles />).baseElement
|
|
13
|
+
).toMatchSnapshot();
|
|
12
14
|
});
|
|
@@ -10,6 +10,14 @@ export interface FileUploadContainerProps extends BaseProps<'div'> {
|
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
hasFiles?: boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* variant is optional.
|
|
16
|
+
* @value 'default'
|
|
17
|
+
* @value 'border'
|
|
18
|
+
* @default 'default'
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'border' | 'default';
|
|
13
21
|
}
|
|
14
22
|
/**
|
|
15
23
|
* Details for the FileUploadContainer.
|
|
@@ -19,7 +27,7 @@ export const FileUploadContainer = React.forwardRef<
|
|
|
19
27
|
HTMLDivElement,
|
|
20
28
|
FileUploadContainerProps
|
|
21
29
|
>(function FileUploadContainer(
|
|
22
|
-
{ className, children, hasFiles = false, ...props },
|
|
30
|
+
{ className, children, hasFiles = false, variant = 'default', ...props },
|
|
23
31
|
ref
|
|
24
32
|
) {
|
|
25
33
|
return (
|
|
@@ -28,6 +36,7 @@ export const FileUploadContainer = React.forwardRef<
|
|
|
28
36
|
as="div"
|
|
29
37
|
className={clsx(className, {
|
|
30
38
|
'ds-uploaded-file': hasFiles,
|
|
39
|
+
'ds-uploaded-file-border': variant === 'border',
|
|
31
40
|
})}
|
|
32
41
|
{...props}
|
|
33
42
|
>
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FillableText from '@digigov/react-core/FillableText';
|
|
5
5
|
|
|
6
6
|
it('renders the FillableText with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FillableText>hello</FillableText>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FillableTextProps extends BaseProps<'blockquote'> {
|
|
5
|
+
export interface FillableTextProps extends BaseProps<'blockquote'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Use FillableText component to display text that is connected with a form.
|
|
8
8
|
* Whenever a user fills an input field, the corresponding text inside the LabeledText component gets focused.
|
|
@@ -4,10 +4,14 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FilterContainer from '@digigov/react-core/FilterContainer';
|
|
5
5
|
|
|
6
6
|
it('renders the FilterContainer with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FilterContainer>hello</FilterContainer>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
it('renders the FilterContainer with open prop', () => {
|
|
10
|
-
expect(
|
|
12
|
+
expect(
|
|
13
|
+
render(<FilterContainer open>hello</FilterContainer>).baseElement
|
|
14
|
+
).toMatchSnapshot();
|
|
11
15
|
});
|
|
12
16
|
|
|
13
17
|
it('renders the FilterContainer with border={false} prop', () => {
|
|
@@ -18,12 +22,14 @@ it('renders the FilterContainer with border={false} prop', () => {
|
|
|
18
22
|
|
|
19
23
|
it('renders the FilterContainer with positionRelative="sm" prop', () => {
|
|
20
24
|
expect(
|
|
21
|
-
render(<FilterContainer positionRelative="sm">hello</FilterContainer>)
|
|
25
|
+
render(<FilterContainer positionRelative="sm">hello</FilterContainer>)
|
|
26
|
+
.baseElement
|
|
22
27
|
).toMatchSnapshot();
|
|
23
28
|
});
|
|
24
29
|
|
|
25
30
|
it('renders the FilterContainer with positionRelative="never" prop', () => {
|
|
26
31
|
expect(
|
|
27
|
-
render(<FilterContainer positionRelative="never">hello</FilterContainer>)
|
|
32
|
+
render(<FilterContainer positionRelative="never">hello</FilterContainer>)
|
|
33
|
+
.baseElement
|
|
28
34
|
).toMatchSnapshot();
|
|
29
35
|
});
|
|
@@ -61,7 +61,8 @@ export const FilterContainer = React.forwardRef<
|
|
|
61
61
|
ref={ref}
|
|
62
62
|
className={clsx({
|
|
63
63
|
'ds-filter-container': true,
|
|
64
|
-
'ds-filter-container--position-relative-always':
|
|
64
|
+
'ds-filter-container--position-relative-always':
|
|
65
|
+
positionRelative === 'always',
|
|
65
66
|
'ds-filter-container--position-relative-sm': positionRelative === 'sm',
|
|
66
67
|
'ds-filter-container--position-relative-md': positionRelative === 'md',
|
|
67
68
|
'ds-filter-container--position-relative-lg': positionRelative === 'lg',
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FilterContent from '@digigov/react-core/FilterContent';
|
|
5
5
|
|
|
6
6
|
it('renders the FilterContent with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FilterContent>hello!</FilterContent>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FilterContentProps extends BaseProps<'div'> {
|
|
5
|
+
export interface FilterContentProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Use FilterContent inside FilterContainer as a wrapper for its content
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FilterSelectedHeadingProps extends BaseProps<'div'> {
|
|
5
|
+
export interface FilterSelectedHeadingProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Use FilterSelectedHeading as a wrapper for placing Headings on filters
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FilterSelectedSectionProps extends BaseProps<'div'> {
|
|
5
|
+
export interface FilterSelectedSectionProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* FilterSelectedSection is a wrapper for the area of the selected filters
|
|
8
8
|
*/
|
package/src/Footer/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FooterProps extends BaseProps<'footer'> {
|
|
5
|
+
export interface FooterProps extends BaseProps<'footer'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Footer is used always at the end of the page, in the Layout component.
|
|
8
8
|
*/
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FooterContainer from '@digigov/react-core/FooterContainer';
|
|
5
5
|
|
|
6
6
|
it('renders the FooterContainer with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FooterContainer>hello</FooterContainer>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FooterContent from '@digigov/react-core/FooterContent';
|
|
5
5
|
|
|
6
6
|
it('renders the FooterContent with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FooterContent>hello</FooterContent>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FooterContentProps extends BaseProps<'div'> {
|
|
5
|
+
export interface FooterContentProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* FooterContent is used inside the FooterInfoSection.
|
|
8
8
|
* In this component, we place the basic content of the footer (ex. Copyright, extra logos, inline list).
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FooterContentLogosProps extends BaseProps<'div'> {
|
|
5
|
+
export interface FooterContentLogosProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* FooterContentLogos is placed in the footer, inside the FooterContent ccomponent, above the Copyright.
|
|
8
8
|
* It is a wrapper for extra logos.
|
|
@@ -4,7 +4,9 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FooterHeading from '@digigov/react-core/FooterHeading';
|
|
5
5
|
|
|
6
6
|
it('renders the FooterHeading with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FooterHeading>hello</FooterHeading>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the FooterHeading with size=m', () => {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FooterImageProps extends BaseProps<'img'> {
|
|
5
|
+
export interface FooterImageProps extends BaseProps<'img'> {}
|
|
6
6
|
/**
|
|
7
7
|
* FooterImage is a component for logos and images in the footer.
|
|
8
8
|
* It is used inside to FooterContentLogos.
|
package/src/FooterInfo/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface FooterInfoProps extends BaseProps<'div'> {
|
|
5
|
+
export interface FooterInfoProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* FooterInfo is inside the FooterContainer component.
|
|
8
8
|
* This component is meant to wrap FooterInfoSection components.
|
|
@@ -4,7 +4,9 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import FooterInfoSection from '@digigov/react-core/FooterInfoSection';
|
|
5
5
|
|
|
6
6
|
it('renders the FooterInfoSection with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<FooterInfoSection>hello</FooterInfoSection>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the FooterInfoSection with grow=true', () => {
|
|
@@ -15,6 +17,7 @@ it('renders the FooterInfoSection with grow=true', () => {
|
|
|
15
17
|
|
|
16
18
|
it('renders the FooterInfoSection with grow=false', () => {
|
|
17
19
|
expect(
|
|
18
|
-
render(<FooterInfoSection grow={false}>hello</FooterInfoSection>)
|
|
20
|
+
render(<FooterInfoSection grow={false}>hello</FooterInfoSection>)
|
|
21
|
+
.baseElement
|
|
19
22
|
).toMatchSnapshot();
|
|
20
23
|
});
|