@digigov/react-core 0.18.1 → 0.19.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/Base/index.d.ts +10 -10
- package/Base/index.js +7 -4
- package/CHANGELOG.md +21 -1
- package/Container/index.js +2 -2
- package/Header/__snapshots__/index.test.tsx.snap +0 -2
- package/Header/index.js +0 -1
- package/HeaderNavMenuContent/__snapshots__/index.test.tsx.snap +16 -0
- package/HeaderNavMenuContent/index.d.ts +11 -0
- package/HeaderNavMenuContent/index.js +40 -0
- package/HeaderNavMenuContent/index.test.d.ts +1 -0
- package/HeaderNavMenuContent/index.test.js +15 -0
- package/Masthead/index.d.ts +6 -0
- package/Masthead/index.js +4 -2
- package/NavHorizontal/__snapshots__/index.test.tsx.snap +6 -23
- package/NavHorizontal/index.d.ts +4 -4
- package/NavHorizontal/index.js +5 -4
- package/NavHorizontal/index.test.js +2 -10
- package/NavHorizontalList/__snapshots__/index.test.tsx.snap +22 -5
- package/NavHorizontalList/index.d.ts +7 -2
- package/NavHorizontalList/index.js +5 -3
- package/NavHorizontalList/index.test.js +8 -0
- package/NavHorizontalListItem/__snapshots__/index.test.tsx.snap +7 -87
- package/NavHorizontalListItem/index.d.ts +4 -12
- package/NavHorizontalListItem/index.js +7 -10
- package/NavHorizontalListItem/index.test.js +0 -34
- package/NavHorizontalListItemButton/__snapshots__/index.test.tsx.snap +146 -0
- package/NavHorizontalListItemButton/index.d.ts +22 -0
- package/NavHorizontalListItemButton/index.js +45 -0
- package/NavHorizontalListItemButton/index.test.d.ts +1 -0
- package/NavHorizontalListItemButton/index.test.js +31 -0
- package/NavHorizontalListItemLink/__snapshots__/index.test.tsx.snap +121 -0
- package/NavHorizontalListItemLink/index.d.ts +20 -0
- package/NavHorizontalListItemLink/index.js +41 -0
- package/NavHorizontalListItemLink/index.test.d.ts +1 -0
- package/NavHorizontalListItemLink/index.test.js +49 -0
- package/NavMenu/__snapshots__/index.test.tsx.snap +16 -0
- package/NavMenu/index.d.ts +10 -0
- package/NavMenu/index.js +39 -0
- package/NavMenu/index.test.d.ts +1 -0
- package/NavMenu/index.test.js +15 -0
- package/NavMenuContainer/__snapshots__/index.test.tsx.snap +29 -0
- package/NavMenuContainer/index.d.ts +10 -0
- package/NavMenuContainer/index.js +38 -0
- package/NavMenuContainer/index.test.d.ts +1 -0
- package/NavMenuContainer/index.test.js +15 -0
- package/NavMenuContainerContent/__snapshots__/index.test.tsx.snap +22 -0
- package/NavMenuContainerContent/index.d.ts +11 -0
- package/NavMenuContainerContent/index.js +41 -0
- package/NavMenuContainerContent/index.test.d.ts +1 -0
- package/NavMenuContainerContent/index.test.js +15 -0
- package/NavMenuContainerContentList/__snapshots__/index.test.tsx.snap +16 -0
- package/NavMenuContainerContentList/index.d.ts +10 -0
- package/NavMenuContainerContentList/index.js +39 -0
- package/NavMenuContainerContentList/index.test.d.ts +1 -0
- package/NavMenuContainerContentList/index.test.js +15 -0
- package/NavMenuContainerContentListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/NavMenuContainerContentListItem/index.d.ts +10 -0
- package/NavMenuContainerContentListItem/index.js +39 -0
- package/NavMenuContainerContentListItem/index.test.d.ts +1 -0
- package/NavMenuContainerContentListItem/index.test.js +15 -0
- package/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +36 -0
- package/NavMenuContainerTitle/index.d.ts +11 -0
- package/NavMenuContainerTitle/index.js +46 -0
- package/NavMenuContainerTitle/index.test.d.ts +1 -0
- package/NavMenuContainerTitle/index.test.js +15 -0
- package/README.md +0 -10
- package/es/Base/index.js +7 -4
- package/es/Container/index.js +2 -2
- package/es/Header/__snapshots__/index.test.tsx.snap +0 -2
- package/es/Header/index.js +0 -1
- package/es/HeaderNavMenuContent/__snapshots__/index.test.tsx.snap +16 -0
- package/es/HeaderNavMenuContent/index.js +24 -0
- package/es/HeaderNavMenuContent/index.test.js +9 -0
- package/es/Masthead/index.js +4 -2
- package/es/NavHorizontal/__snapshots__/index.test.tsx.snap +6 -23
- package/es/NavHorizontal/index.js +5 -4
- package/es/NavHorizontal/index.test.js +2 -10
- package/es/NavHorizontalList/__snapshots__/index.test.tsx.snap +22 -5
- package/es/NavHorizontalList/index.js +5 -3
- package/es/NavHorizontalList/index.test.js +8 -0
- package/es/NavHorizontalListItem/__snapshots__/index.test.tsx.snap +7 -87
- package/es/NavHorizontalListItem/index.js +7 -10
- package/es/NavHorizontalListItem/index.test.js +0 -34
- package/es/NavHorizontalListItemButton/__snapshots__/index.test.tsx.snap +146 -0
- package/es/NavHorizontalListItemButton/index.js +28 -0
- package/es/NavHorizontalListItemButton/index.test.js +25 -0
- package/es/NavHorizontalListItemLink/__snapshots__/index.test.tsx.snap +121 -0
- package/es/NavHorizontalListItemLink/index.js +25 -0
- package/es/NavHorizontalListItemLink/index.test.js +43 -0
- package/es/NavMenu/__snapshots__/index.test.tsx.snap +16 -0
- package/es/NavMenu/index.js +23 -0
- package/es/NavMenu/index.test.js +9 -0
- package/es/NavMenuContainer/__snapshots__/index.test.tsx.snap +29 -0
- package/es/NavMenuContainer/index.js +22 -0
- package/es/NavMenuContainer/index.test.js +9 -0
- package/es/NavMenuContainerContent/__snapshots__/index.test.tsx.snap +22 -0
- package/es/NavMenuContainerContent/index.js +25 -0
- package/es/NavMenuContainerContent/index.test.js +9 -0
- package/es/NavMenuContainerContentList/__snapshots__/index.test.tsx.snap +16 -0
- package/es/NavMenuContainerContentList/index.js +23 -0
- package/es/NavMenuContainerContentList/index.test.js +9 -0
- package/es/NavMenuContainerContentListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/es/NavMenuContainerContentListItem/index.js +23 -0
- package/es/NavMenuContainerContentListItem/index.test.js +9 -0
- package/es/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +36 -0
- package/es/NavMenuContainerTitle/index.js +29 -0
- package/es/NavMenuContainerTitle/index.test.js +9 -0
- package/es/index.js +147 -139
- package/es/registry.js +18 -0
- package/esm/Base/index.js +7 -4
- package/esm/Container/index.js +2 -2
- package/esm/Header/__snapshots__/index.test.tsx.snap +0 -2
- package/esm/Header/index.js +0 -1
- package/esm/HeaderNavMenuContent/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/HeaderNavMenuContent/index.js +24 -0
- package/esm/HeaderNavMenuContent/index.test.js +9 -0
- package/esm/Masthead/index.js +4 -2
- package/esm/NavHorizontal/__snapshots__/index.test.tsx.snap +6 -23
- package/esm/NavHorizontal/index.js +5 -4
- package/esm/NavHorizontal/index.test.js +2 -10
- package/esm/NavHorizontalList/__snapshots__/index.test.tsx.snap +22 -5
- package/esm/NavHorizontalList/index.js +5 -3
- package/esm/NavHorizontalList/index.test.js +8 -0
- package/esm/NavHorizontalListItem/__snapshots__/index.test.tsx.snap +7 -87
- package/esm/NavHorizontalListItem/index.js +7 -10
- package/esm/NavHorizontalListItem/index.test.js +0 -34
- package/esm/NavHorizontalListItemButton/__snapshots__/index.test.tsx.snap +146 -0
- package/esm/NavHorizontalListItemButton/index.js +28 -0
- package/esm/NavHorizontalListItemButton/index.test.js +25 -0
- package/esm/NavHorizontalListItemLink/__snapshots__/index.test.tsx.snap +121 -0
- package/esm/NavHorizontalListItemLink/index.js +25 -0
- package/esm/NavHorizontalListItemLink/index.test.js +43 -0
- package/esm/NavMenu/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/NavMenu/index.js +23 -0
- package/esm/NavMenu/index.test.js +9 -0
- package/esm/NavMenuContainer/__snapshots__/index.test.tsx.snap +29 -0
- package/esm/NavMenuContainer/index.js +22 -0
- package/esm/NavMenuContainer/index.test.js +9 -0
- package/esm/NavMenuContainerContent/__snapshots__/index.test.tsx.snap +22 -0
- package/esm/NavMenuContainerContent/index.js +25 -0
- package/esm/NavMenuContainerContent/index.test.js +9 -0
- package/esm/NavMenuContainerContentList/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/NavMenuContainerContentList/index.js +23 -0
- package/esm/NavMenuContainerContentList/index.test.js +9 -0
- package/esm/NavMenuContainerContentListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/NavMenuContainerContentListItem/index.js +23 -0
- package/esm/NavMenuContainerContentListItem/index.test.js +9 -0
- package/esm/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +36 -0
- package/esm/NavMenuContainerTitle/index.js +29 -0
- package/esm/NavMenuContainerTitle/index.test.js +9 -0
- package/esm/index.js +148 -140
- package/esm/registry.js +18 -0
- package/index.d.ts +147 -139
- package/index.js +1910 -1113
- package/package.json +2 -2
- package/registry.d.ts +9 -0
- package/registry.js +27 -0
- package/src/Accordion/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Accordion/index.test.tsx +8 -0
- package/src/Accordion/index.tsx +27 -0
- package/src/AccordionControls/__snapshots__/index.test.tsx.snap +18 -0
- package/src/AccordionControls/index.test.tsx +14 -0
- package/src/AccordionControls/index.tsx +25 -0
- package/src/AccordionSection/__snapshots__/index.test.tsx.snap +54 -0
- package/src/AccordionSection/index.test.tsx +20 -0
- package/src/AccordionSection/index.tsx +35 -0
- package/src/AccordionSectionContent/__snapshots__/index.test.tsx.snap +16 -0
- package/src/AccordionSectionContent/index.test.tsx +10 -0
- package/src/AccordionSectionContent/index.tsx +28 -0
- package/src/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +24 -0
- package/src/AccordionSectionHeader/index.test.tsx +10 -0
- package/src/AccordionSectionHeader/index.tsx +39 -0
- package/src/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +20 -0
- package/src/AccordionSectionSummary/index.test.tsx +10 -0
- package/src/AccordionSectionSummary/index.tsx +34 -0
- package/src/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +26 -0
- package/src/AccordionSectionSummaryHeading/index.test.tsx +12 -0
- package/src/AccordionSectionSummaryHeading/index.tsx +44 -0
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +115 -0
- package/src/ArrowIcon/index.test.tsx +20 -0
- package/src/ArrowIcon/index.tsx +52 -0
- package/src/Aside/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Aside/index.test.tsx +8 -0
- package/src/Aside/index.tsx +28 -0
- package/src/BackLink/__snapshots__/index.test.tsx.snap +93 -0
- package/src/BackLink/index.test.tsx +11 -0
- package/src/BackLink/index.tsx +41 -0
- package/src/Base/index.tsx +153 -0
- package/src/Blockquote/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Blockquote/index.test.tsx +8 -0
- package/src/Blockquote/index.tsx +26 -0
- package/src/Bottom/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Bottom/index.test.tsx +8 -0
- package/src/Bottom/index.tsx +26 -0
- package/src/Breadcrumbs/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Breadcrumbs/index.test.tsx +8 -0
- package/src/Breadcrumbs/index.tsx +27 -0
- package/src/BreadcrumbsList/__snapshots__/index.test.tsx.snap +16 -0
- package/src/BreadcrumbsList/index.test.tsx +8 -0
- package/src/BreadcrumbsList/index.tsx +27 -0
- package/src/BreadcrumbsListItem/__snapshots__/index.test.tsx.snap +42 -0
- package/src/BreadcrumbsListItem/index.test.tsx +15 -0
- package/src/BreadcrumbsListItem/index.tsx +40 -0
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +460 -0
- package/src/BurgerIcon/index.test.tsx +45 -0
- package/src/BurgerIcon/index.tsx +57 -0
- package/src/Button/__snapshots__/index.test.tsx.snap +214 -0
- package/src/Button/index.test.tsx +58 -0
- package/src/Button/index.tsx +62 -0
- package/src/ButtonGroup/__snapshots__/index.test.tsx.snap +16 -0
- package/src/ButtonGroup/index.test.tsx +8 -0
- package/src/ButtonGroup/index.tsx +26 -0
- package/src/ButtonLink/__snapshots__/index.test.tsx.snap +199 -0
- package/src/ButtonLink/index.test.tsx +64 -0
- package/src/ButtonLink/index.tsx +41 -0
- package/src/CallToAction/__snapshots__/index.test.tsx.snap +46 -0
- package/src/CallToAction/index.test.tsx +8 -0
- package/src/CallToAction/index.tsx +31 -0
- package/src/Card/__snapshots__/index.test.tsx.snap +215 -0
- package/src/Card/index.test.tsx +66 -0
- package/src/Card/index.tsx +62 -0
- package/src/CardAction/__snapshots__/index.test.tsx.snap +16 -0
- package/src/CardAction/index.test.tsx +8 -0
- package/src/CardAction/index.tsx +28 -0
- package/src/CardHeading/__snapshots__/index.test.tsx.snap +20 -0
- package/src/CardHeading/index.test.tsx +8 -0
- package/src/CardHeading/index.tsx +29 -0
- package/src/CardText/__snapshots__/index.test.tsx.snap +16 -0
- package/src/CardText/index.test.tsx +8 -0
- package/src/CardText/index.tsx +27 -0
- package/src/CaretIcon/__snapshots__/index.test.tsx.snap +115 -0
- package/src/CaretIcon/index.test.tsx +20 -0
- package/src/CaretIcon/index.tsx +44 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +452 -0
- package/src/CheckIcon/index.test.tsx +50 -0
- package/src/CheckIcon/index.tsx +34 -0
- package/src/Checkbox/__snapshots__/index.test.tsx.snap +51 -0
- package/src/Checkbox/index.test.tsx +19 -0
- package/src/Checkbox/index.tsx +28 -0
- package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +24 -0
- package/src/CheckboxConditional/index.test.tsx +10 -0
- package/src/CheckboxConditional/index.tsx +41 -0
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +81 -0
- package/src/CheckboxItem/index.test.tsx +19 -0
- package/src/CheckboxItem/index.tsx +53 -0
- package/src/CloseIcon/__snapshots__/index.test.tsx.snap +28 -0
- package/src/CloseIcon/index.test.tsx +8 -0
- package/src/CloseIcon/index.tsx +35 -0
- package/src/Confirmation/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Confirmation/index.test.tsx +8 -0
- package/src/Confirmation/index.tsx +27 -0
- package/src/ConfirmationBody/__snapshots__/index.test.tsx.snap +16 -0
- package/src/ConfirmationBody/index.test.tsx +8 -0
- package/src/ConfirmationBody/index.tsx +27 -0
- package/src/ConfirmationTitle/__snapshots__/index.test.tsx.snap +16 -0
- package/src/ConfirmationTitle/index.test.tsx +8 -0
- package/src/ConfirmationTitle/index.tsx +27 -0
- package/src/Container/__snapshots__/index.test.tsx.snap +78 -0
- package/src/Container/index.test.tsx +20 -0
- package/src/Container/index.tsx +46 -0
- package/src/CopyrightContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/CopyrightContainer/index.test.tsx +10 -0
- package/src/CopyrightContainer/index.tsx +28 -0
- package/src/DateInputContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/DateInputContainer/index.test.tsx +10 -0
- package/src/DateInputContainer/index.tsx +30 -0
- package/src/DateInputItem/__snapshots__/index.test.tsx.snap +94 -0
- package/src/DateInputItem/index.test.tsx +24 -0
- package/src/DateInputItem/index.tsx +65 -0
- package/src/Details/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Details/index.test.tsx +8 -0
- package/src/Details/index.tsx +27 -0
- package/src/DetailsContent/__snapshots__/index.test.tsx.snap +16 -0
- package/src/DetailsContent/index.test.tsx +8 -0
- package/src/DetailsContent/index.tsx +28 -0
- package/src/DetailsSummary/__snapshots__/index.test.tsx.snap +16 -0
- package/src/DetailsSummary/index.test.tsx +8 -0
- package/src/DetailsSummary/index.tsx +27 -0
- package/src/ErrorMessage/__snapshots__/index.test.tsx.snap +16 -0
- package/src/ErrorMessage/index.test.tsx +8 -0
- package/src/ErrorMessage/index.tsx +29 -0
- package/src/ErrorSummary/__snapshots__/index.test.tsx.snap +16 -0
- package/src/ErrorSummary/index.test.tsx +8 -0
- package/src/ErrorSummary/index.tsx +26 -0
- package/src/FieldContainer/__snapshots__/index.test.tsx.snap +77 -0
- package/src/FieldContainer/index.test.tsx +20 -0
- package/src/FieldContainer/index.tsx +39 -0
- package/src/Fieldset/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Fieldset/index.test.tsx +8 -0
- package/src/Fieldset/index.tsx +28 -0
- package/src/FieldsetLegend/__snapshots__/index.test.tsx.snap +193 -0
- package/src/FieldsetLegend/index.test.tsx +98 -0
- package/src/FieldsetLegend/index.tsx +49 -0
- package/src/FileUpload/__snapshots__/index.test.tsx.snap +61 -0
- package/src/FileUpload/index.test.tsx +12 -0
- package/src/FileUpload/index.tsx +54 -0
- package/src/FileUploadContainer/__snapshots__/index.test.tsx.snap +29 -0
- package/src/FileUploadContainer/index.test.tsx +12 -0
- package/src/FileUploadContainer/index.tsx +36 -0
- package/src/Footer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Footer/index.test.tsx +8 -0
- package/src/Footer/index.tsx +26 -0
- package/src/FooterContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterContainer/index.test.tsx +8 -0
- package/src/FooterContainer/index.tsx +39 -0
- package/src/FooterContent/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterContent/index.test.tsx +8 -0
- package/src/FooterContent/index.tsx +28 -0
- package/src/FooterContentLogos/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterContentLogos/index.test.tsx +10 -0
- package/src/FooterContentLogos/index.tsx +29 -0
- package/src/FooterHeading/__snapshots__/index.test.tsx.snap +50 -0
- package/src/FooterHeading/index.test.tsx +20 -0
- package/src/FooterHeading/index.tsx +36 -0
- package/src/FooterImage/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterImage/index.test.tsx +8 -0
- package/src/FooterImage/index.tsx +37 -0
- package/src/FooterInlineList/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterInlineList/index.test.tsx +8 -0
- package/src/FooterInlineList/index.tsx +29 -0
- package/src/FooterInlineListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterInlineListItem/index.test.tsx +10 -0
- package/src/FooterInlineListItem/index.tsx +27 -0
- package/src/FooterLink/__snapshots__/index.test.tsx.snap +35 -0
- package/src/FooterLink/index.test.tsx +12 -0
- package/src/FooterLink/index.tsx +32 -0
- package/src/FooterList/__snapshots__/index.test.tsx.snap +33 -0
- package/src/FooterList/index.test.tsx +12 -0
- package/src/FooterList/index.tsx +34 -0
- package/src/FooterListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterListItem/index.test.tsx +8 -0
- package/src/FooterListItem/index.tsx +28 -0
- package/src/FooterMeta/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterMeta/index.test.tsx +8 -0
- package/src/FooterMeta/index.tsx +28 -0
- package/src/FooterMetaItem/__snapshots__/index.test.tsx.snap +50 -0
- package/src/FooterMetaItem/index.test.tsx +20 -0
- package/src/FooterMetaItem/index.tsx +34 -0
- package/src/FooterNavigation/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterNavigation/index.test.tsx +8 -0
- package/src/FooterNavigation/index.tsx +29 -0
- package/src/FooterSection/__snapshots__/index.test.tsx.snap +16 -0
- package/src/FooterSection/index.test.tsx +8 -0
- package/src/FooterSection/index.tsx +29 -0
- package/src/Form/__snapshots__/index.test.tsx.snap +33 -0
- package/src/Form/index.test.tsx +12 -0
- package/src/Form/index.tsx +31 -0
- package/src/GovGRLogo/__snapshots__/index.test.tsx.snap +27 -0
- package/src/GovGRLogo/govgr-logo-base64.js +1 -0
- package/src/GovGRLogo/govgr-logo-blue-base64.ts +1 -0
- package/src/GovGRLogo/index.test.tsx +8 -0
- package/src/GovGRLogo/index.tsx +42 -0
- package/src/Grid/__snapshots__/index.test.tsx.snap +135 -0
- package/src/Grid/index.test.tsx +29 -0
- package/src/Grid/index.tsx +126 -0
- package/src/Header/__snapshots__/index.test.tsx.snap +18 -0
- package/src/Header/index.test.tsx +8 -0
- package/src/Header/index.tsx +28 -0
- package/src/HeaderContent/__snapshots__/index.test.tsx.snap +16 -0
- package/src/HeaderContent/index.test.tsx +8 -0
- package/src/HeaderContent/index.tsx +27 -0
- package/src/HeaderLogo/__snapshots__/index.test.tsx.snap +18 -0
- package/src/HeaderLogo/index.test.tsx +8 -0
- package/src/HeaderLogo/index.tsx +45 -0
- package/src/HeaderNavMenuContent/__snapshots__/index.test.tsx.snap +16 -0
- package/src/HeaderNavMenuContent/index.test.tsx +10 -0
- package/src/HeaderNavMenuContent/index.tsx +29 -0
- package/src/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +48 -0
- package/src/HeaderSecondaryLogo/index.test.tsx +26 -0
- package/src/HeaderSecondaryLogo/index.tsx +52 -0
- package/src/HeaderSection/__snapshots__/index.test.tsx.snap +16 -0
- package/src/HeaderSection/index.test.tsx +8 -0
- package/src/HeaderSection/index.tsx +27 -0
- package/src/HeaderSubtitle/__snapshots__/index.test.tsx.snap +16 -0
- package/src/HeaderSubtitle/index.test.tsx +8 -0
- package/src/HeaderSubtitle/index.tsx +20 -0
- package/src/HeaderTitle/__snapshots__/index.test.tsx.snap +37 -0
- package/src/HeaderTitle/index.test.tsx +13 -0
- package/src/HeaderTitle/index.tsx +33 -0
- package/src/Heading/__snapshots__/index.test.tsx.snap +300 -0
- package/src/Heading/index.test.tsx +144 -0
- package/src/Heading/index.tsx +64 -0
- package/src/HeadingCaption/__snapshots__/index.test.tsx.snap +67 -0
- package/src/HeadingCaption/index.test.tsx +26 -0
- package/src/HeadingCaption/index.tsx +36 -0
- package/src/HellenicRepublicLogo/__snapshots__/index.test.tsx.snap +30 -0
- package/src/HellenicRepublicLogo/index.test.tsx +8 -0
- package/src/HellenicRepublicLogo/index.tsx +61 -0
- package/src/HellenicRepublicLogo/logo-el.ts +1 -0
- package/src/HellenicRepublicLogo/logo-en.ts +1 -0
- package/src/HellenicRepublicLogo/logo-inverted-el.ts +1 -0
- package/src/HellenicRepublicLogo/logo-inverted-en.ts +1 -0
- package/src/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/src/Hidden/index.test.tsx +50 -0
- package/src/Hidden/index.tsx +51 -0
- package/src/Hint/__snapshots__/index.test.tsx.snap +67 -0
- package/src/Hint/index.test.tsx +17 -0
- package/src/Hint/index.tsx +35 -0
- package/src/LabelContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/LabelContainer/index.test.tsx +8 -0
- package/src/LabelContainer/index.tsx +27 -0
- package/src/LabelTitle/__snapshots__/index.test.tsx.snap +193 -0
- package/src/LabelTitle/index.test.tsx +68 -0
- package/src/LabelTitle/index.tsx +44 -0
- package/src/Layout/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Layout/index.test.tsx +8 -0
- package/src/Layout/index.tsx +29 -0
- package/src/LinkBase/__snapshots__/index.test.tsx.snap +50 -0
- package/src/LinkBase/index.test.tsx +16 -0
- package/src/LinkBase/index.tsx +33 -0
- package/src/List/__snapshots__/index.test.tsx.snap +212 -0
- package/src/List/index.test.tsx +61 -0
- package/src/List/index.tsx +40 -0
- package/src/ListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/src/ListItem/index.test.tsx +8 -0
- package/src/ListItem/index.tsx +26 -0
- package/src/Main/__snapshots__/index.test.tsx.snap +18 -0
- package/src/Main/index.test.tsx +8 -0
- package/src/Main/index.tsx +28 -0
- package/src/Masthead/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Masthead/index.test.tsx +8 -0
- package/src/Masthead/index.tsx +36 -0
- package/src/MastheadBody/__snapshots__/index.test.tsx.snap +16 -0
- package/src/MastheadBody/index.test.tsx +8 -0
- package/src/MastheadBody/index.tsx +27 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +632 -0
- package/src/MoreVertIcon/index.test.tsx +50 -0
- package/src/MoreVertIcon/index.tsx +36 -0
- package/src/NavHorizontal/__snapshots__/index.test.tsx.snap +33 -0
- package/src/NavHorizontal/index.test.tsx +12 -0
- package/src/NavHorizontal/index.tsx +35 -0
- package/src/NavHorizontalList/__snapshots__/index.test.tsx.snap +33 -0
- package/src/NavHorizontalList/index.test.tsx +13 -0
- package/src/NavHorizontalList/index.tsx +39 -0
- package/src/NavHorizontalListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/src/NavHorizontalListItem/index.test.tsx +10 -0
- package/src/NavHorizontalListItem/index.tsx +28 -0
- package/src/NavHorizontalListItemButton/__snapshots__/index.test.tsx.snap +146 -0
- package/src/NavHorizontalListItemButton/index.test.tsx +29 -0
- package/src/NavHorizontalListItemButton/index.tsx +47 -0
- package/src/NavHorizontalListItemLink/__snapshots__/index.test.tsx.snap +121 -0
- package/src/NavHorizontalListItemLink/index.test.tsx +45 -0
- package/src/NavHorizontalListItemLink/index.tsx +44 -0
- package/src/NavMenu/__snapshots__/index.test.tsx.snap +16 -0
- package/src/NavMenu/index.test.tsx +7 -0
- package/src/NavMenu/index.tsx +27 -0
- package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +29 -0
- package/src/NavMenuContainer/index.test.tsx +7 -0
- package/src/NavMenuContainer/index.tsx +22 -0
- package/src/NavMenuContainerContent/__snapshots__/index.test.tsx.snap +22 -0
- package/src/NavMenuContainerContent/index.test.tsx +9 -0
- package/src/NavMenuContainerContent/index.tsx +23 -0
- package/src/NavMenuContainerContentList/__snapshots__/index.test.tsx.snap +16 -0
- package/src/NavMenuContainerContentList/index.test.tsx +9 -0
- package/src/NavMenuContainerContentList/index.tsx +28 -0
- package/src/NavMenuContainerContentListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/src/NavMenuContainerContentListItem/index.test.tsx +11 -0
- package/src/NavMenuContainerContentListItem/index.tsx +31 -0
- package/src/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +36 -0
- package/src/NavMenuContainerTitle/index.test.tsx +9 -0
- package/src/NavMenuContainerTitle/index.tsx +26 -0
- package/src/NavVertical/__snapshots__/index.test.tsx.snap +16 -0
- package/src/NavVertical/index.test.tsx +8 -0
- package/src/NavVertical/index.tsx +28 -0
- package/src/NavVerticalItem/__snapshots__/index.test.tsx.snap +50 -0
- package/src/NavVerticalItem/index.test.tsx +20 -0
- package/src/NavVerticalItem/index.tsx +35 -0
- package/src/NormalText/__snapshots__/index.test.tsx.snap +707 -0
- package/src/NormalText/index.test.tsx +346 -0
- package/src/NormalText/index.tsx +62 -0
- package/src/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +68 -0
- package/src/NotificationBannerContainer/index.test.tsx +30 -0
- package/src/NotificationBannerContainer/index.tsx +43 -0
- package/src/NotificationBannerContent/__snapshots__/index.test.tsx.snap +16 -0
- package/src/NotificationBannerContent/index.test.tsx +10 -0
- package/src/NotificationBannerContent/index.tsx +30 -0
- package/src/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +20 -0
- package/src/NotificationBannerHeader/index.test.tsx +10 -0
- package/src/NotificationBannerHeader/index.tsx +35 -0
- package/src/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +16 -0
- package/src/NotificationBannerHeading/index.test.tsx +10 -0
- package/src/NotificationBannerHeading/index.tsx +29 -0
- package/src/NotificationBannerLink/__snapshots__/index.test.tsx.snap +37 -0
- package/src/NotificationBannerLink/index.test.tsx +20 -0
- package/src/NotificationBannerLink/index.tsx +38 -0
- package/src/PageTitle/__snapshots__/index.test.tsx.snap +16 -0
- package/src/PageTitle/index.test.tsx +8 -0
- package/src/PageTitle/index.tsx +19 -0
- package/src/PageTitleCaption/__snapshots__/index.test.tsx.snap +67 -0
- package/src/PageTitleCaption/index.test.tsx +26 -0
- package/src/PageTitleCaption/index.tsx +38 -0
- package/src/PageTitleHeading/__snapshots__/index.test.tsx.snap +84 -0
- package/src/PageTitleHeading/index.test.tsx +32 -0
- package/src/PageTitleHeading/index.tsx +38 -0
- package/src/PageTitleSection/__snapshots__/index.test.tsx.snap +16 -0
- package/src/PageTitleSection/index.test.tsx +8 -0
- package/src/PageTitleSection/index.tsx +21 -0
- package/src/Paragraph/__snapshots__/index.test.tsx.snap +724 -0
- package/src/Paragraph/index.test.tsx +331 -0
- package/src/Paragraph/index.tsx +61 -0
- package/src/PhaseBanner/__snapshots__/index.test.tsx.snap +41 -0
- package/src/PhaseBanner/index.test.tsx +12 -0
- package/src/PhaseBanner/index.tsx +43 -0
- package/src/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +16 -0
- package/src/PhaseBannerHeaderContainer/inde.test.tsx +10 -0
- package/src/PhaseBannerHeaderContainer/index.tsx +28 -0
- package/src/PhaseBannerTag/__snapshots__/index.test.tsx.snap +16 -0
- package/src/PhaseBannerTag/index.test.tsx +8 -0
- package/src/PhaseBannerTag/index.tsx +28 -0
- package/src/PhaseBannerText/__snapshots__/index.test.tsx.snap +16 -0
- package/src/PhaseBannerText/index.test.tsx +8 -0
- package/src/PhaseBannerText/index.tsx +29 -0
- package/src/RadioConditional/__snapshots__/index.test.tsx.snap +24 -0
- package/src/RadioConditional/index.test.tsx +8 -0
- package/src/RadioConditional/index.tsx +41 -0
- package/src/RadioContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/RadioContainer/index.test.tsx +8 -0
- package/src/RadioContainer/index.tsx +34 -0
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +112 -0
- package/src/RadioItem/index.test.tsx +28 -0
- package/src/RadioItem/index.tsx +51 -0
- package/src/SectionBreak/__snapshots__/index.test.tsx.snap +89 -0
- package/src/SectionBreak/index.test.tsx +28 -0
- package/src/SectionBreak/index.tsx +39 -0
- package/src/SelectContainer/__snapshots__/index.test.tsx.snap +57 -0
- package/src/SelectContainer/index.test.tsx +24 -0
- package/src/SelectContainer/index.tsx +34 -0
- package/src/SelectOption/__snapshots__/index.test.tsx.snap +35 -0
- package/src/SelectOption/index.test.tsx +14 -0
- package/src/SelectOption/index.tsx +41 -0
- package/src/SkipLink/__snapshots__/index.test.tsx.snap +20 -0
- package/src/SkipLink/index.test.tsx +8 -0
- package/src/SkipLink/index.tsx +33 -0
- package/src/SummaryList/__snapshots__/index.test.tsx.snap +16 -0
- package/src/SummaryList/index.test.tsx +8 -0
- package/src/SummaryList/index.tsx +35 -0
- package/src/SummaryListItem/__snapshots__/index.test.tsx.snap +16 -0
- package/src/SummaryListItem/index.test.tsx +8 -0
- package/src/SummaryListItem/index.tsx +28 -0
- package/src/SummaryListItemAction/__snapshots__/index.test.tsx.snap +16 -0
- package/src/SummaryListItemAction/index.test.tsx +10 -0
- package/src/SummaryListItemAction/index.tsx +28 -0
- package/src/SummaryListItemKey/__snapshots__/index.test.tsx.snap +16 -0
- package/src/SummaryListItemKey/index.test.tsx +10 -0
- package/src/SummaryListItemKey/index.tsx +28 -0
- package/src/SummaryListItemValue/__snapshots__/index.test.tsx.snap +16 -0
- package/src/SummaryListItemValue/index.test.tsx +10 -0
- package/src/SummaryListItemValue/index.tsx +27 -0
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +344 -0
- package/src/SvgIcon/index.test.tsx +62 -0
- package/src/SvgIcon/index.tsx +64 -0
- package/src/Table/__snapshots__/index.test.tsx.snap +84 -0
- package/src/Table/index.test.tsx +24 -0
- package/src/Table/index.tsx +69 -0
- package/src/TableBody/__snapshots__/index.test.tsx.snap +16 -0
- package/src/TableBody/index.test.tsx +8 -0
- package/src/TableBody/index.tsx +27 -0
- package/src/TableCaption/__snapshots__/index.test.tsx.snap +84 -0
- package/src/TableCaption/index.test.tsx +32 -0
- package/src/TableCaption/index.tsx +37 -0
- package/src/TableContainer/__snapshots__/index.test.tsx.snap +33 -0
- package/src/TableContainer/index.test.tsx +13 -0
- package/src/TableContainer/index.tsx +36 -0
- package/src/TableDataCell/__snapshots__/index.test.tsx.snap +33 -0
- package/src/TableDataCell/index.test.tsx +14 -0
- package/src/TableDataCell/index.tsx +38 -0
- package/src/TableHead/__snapshots__/index.test.tsx.snap +16 -0
- package/src/TableHead/index.test.tsx +8 -0
- package/src/TableHead/index.tsx +27 -0
- package/src/TableHeadCell/__snapshots__/index.test.tsx.snap +219 -0
- package/src/TableHeadCell/index.test.tsx +105 -0
- package/src/TableHeadCell/index.tsx +56 -0
- package/src/TableNoDataRow/__snapshots__/index.test.tsx.snap +22 -0
- package/src/TableNoDataRow/index.test.tsx +8 -0
- package/src/TableNoDataRow/index.tsx +31 -0
- package/src/TableRow/__snapshots__/index.test.tsx.snap +16 -0
- package/src/TableRow/index.test.tsx +8 -0
- package/src/TableRow/index.tsx +26 -0
- package/src/Tabs/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Tabs/index.test.tsx +8 -0
- package/src/Tabs/index.tsx +28 -0
- package/src/TabsHeading/__snapshots__/index.test.tsx.snap +50 -0
- package/src/TabsHeading/index.test.tsx +16 -0
- package/src/TabsHeading/index.tsx +36 -0
- package/src/TabsList/__snapshots__/index.test.tsx.snap +18 -0
- package/src/TabsList/index.test.tsx +8 -0
- package/src/TabsList/index.tsx +28 -0
- package/src/TabsListItem/__snapshots__/index.test.tsx.snap +133 -0
- package/src/TabsListItem/index.test.tsx +38 -0
- package/src/TabsListItem/index.tsx +50 -0
- package/src/TabsPanel/__snapshots__/index.test.tsx.snap +83 -0
- package/src/TabsPanel/index.test.tsx +20 -0
- package/src/TabsPanel/index.tsx +37 -0
- package/src/TextArea/__snapshots__/index.test.tsx.snap +113 -0
- package/src/TextArea/index.test.tsx +28 -0
- package/src/TextArea/index.tsx +49 -0
- package/src/TextInput/__snapshots__/index.test.tsx.snap +760 -0
- package/src/TextInput/index.test.tsx +256 -0
- package/src/TextInput/index.tsx +82 -0
- package/src/Top/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Top/index.test.tsx +8 -0
- package/src/Top/index.tsx +27 -0
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +452 -0
- package/src/UncheckIcon/index.test.tsx +50 -0
- package/src/UncheckIcon/index.tsx +34 -0
- package/src/Unpurge/index.tsx +112 -0
- package/src/VisuallyHidden/__snapshots__/index.test.tsx.snap +16 -0
- package/src/VisuallyHidden/index.test.tsx +8 -0
- package/src/VisuallyHidden/index.tsx +28 -0
- package/src/WarningText/__snapshots__/index.test.tsx.snap +30 -0
- package/src/WarningText/index.test.tsx +8 -0
- package/src/WarningText/index.tsx +48 -0
- package/src/index.ts +147 -0
- package/src/registry.js +336 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FooterLink with href prop 1`] = `
|
|
4
|
+
<ForwardRef(FooterLink)
|
|
5
|
+
href="#"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="a"
|
|
9
|
+
className="govgr-footer__link"
|
|
10
|
+
href="#"
|
|
11
|
+
>
|
|
12
|
+
<a
|
|
13
|
+
className="govgr-footer__link"
|
|
14
|
+
href="#"
|
|
15
|
+
>
|
|
16
|
+
hello
|
|
17
|
+
</a>
|
|
18
|
+
</ForwardRef(Base)>
|
|
19
|
+
</ForwardRef(FooterLink)>
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
exports[`renders the FooterLink with no props 1`] = `
|
|
23
|
+
<ForwardRef(FooterLink)>
|
|
24
|
+
<ForwardRef(Base)
|
|
25
|
+
as="a"
|
|
26
|
+
className="govgr-footer__link"
|
|
27
|
+
>
|
|
28
|
+
<a
|
|
29
|
+
className="govgr-footer__link"
|
|
30
|
+
>
|
|
31
|
+
hello
|
|
32
|
+
</a>
|
|
33
|
+
</ForwardRef(Base)>
|
|
34
|
+
</ForwardRef(FooterLink)>
|
|
35
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import FooterLink from '@digigov/react-core/FooterLink';
|
|
5
|
+
|
|
6
|
+
it('renders the FooterLink with no props', () => {
|
|
7
|
+
expect(mount(<FooterLink>hello</FooterLink>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the FooterLink with href prop', () => {
|
|
11
|
+
expect(mount(<FooterLink href={'#'}>hello</FooterLink>)).toMatchSnapshot();
|
|
12
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FooterLinkProps extends BaseProps<'a'> {
|
|
6
|
+
/**
|
|
7
|
+
* href is optional.
|
|
8
|
+
*/
|
|
9
|
+
href?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* FooterLink in used inside the Footer component.
|
|
13
|
+
*/
|
|
14
|
+
export const FooterLink = React.forwardRef<HTMLAnchorElement, FooterLinkProps>(
|
|
15
|
+
function FooterLink({ href, className, children, ...props }, ref) {
|
|
16
|
+
return (
|
|
17
|
+
<Base
|
|
18
|
+
as="a"
|
|
19
|
+
href={href}
|
|
20
|
+
ref={ref}
|
|
21
|
+
className={clsx(className, {
|
|
22
|
+
'govgr-footer__link': true,
|
|
23
|
+
})}
|
|
24
|
+
{...props}
|
|
25
|
+
>
|
|
26
|
+
{children}
|
|
27
|
+
</Base>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export default FooterLink;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FooterList with columns=2 1`] = `
|
|
4
|
+
<ForwardRef(FooterList)
|
|
5
|
+
columns={2}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="ul"
|
|
9
|
+
className="govgr-footer__list--columns-2 govgr-footer__list"
|
|
10
|
+
>
|
|
11
|
+
<ul
|
|
12
|
+
className="govgr-footer__list--columns-2 govgr-footer__list"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</ul>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(FooterList)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
exports[`renders the FooterList with no props 1`] = `
|
|
21
|
+
<ForwardRef(FooterList)>
|
|
22
|
+
<ForwardRef(Base)
|
|
23
|
+
as="ul"
|
|
24
|
+
className="govgr-footer__list"
|
|
25
|
+
>
|
|
26
|
+
<ul
|
|
27
|
+
className="govgr-footer__list"
|
|
28
|
+
>
|
|
29
|
+
hello
|
|
30
|
+
</ul>
|
|
31
|
+
</ForwardRef(Base)>
|
|
32
|
+
</ForwardRef(FooterList)>
|
|
33
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import FooterList from '@digigov/react-core/FooterList';
|
|
5
|
+
|
|
6
|
+
it('renders the FooterList with no props', () => {
|
|
7
|
+
expect(mount(<FooterList>hello</FooterList>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the FooterList with columns=2', () => {
|
|
11
|
+
expect(mount(<FooterList columns={2}>hello</FooterList>)).toMatchSnapshot();
|
|
12
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FooterListProps extends BaseProps<'ul'> {
|
|
6
|
+
/**
|
|
7
|
+
* columns is optional.
|
|
8
|
+
* The values for this are 1 and 2. The default value is 1.
|
|
9
|
+
*/
|
|
10
|
+
columns?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* FooterList is used inside the FooterSection.
|
|
14
|
+
* This component takes a list of FooterListItem component as its children.
|
|
15
|
+
*/
|
|
16
|
+
export const FooterList = React.forwardRef<HTMLUListElement, FooterListProps>(
|
|
17
|
+
function FooterList({ columns, className, children, ...props }, ref) {
|
|
18
|
+
return (
|
|
19
|
+
<Base
|
|
20
|
+
as="ul"
|
|
21
|
+
ref={ref}
|
|
22
|
+
className={clsx(className, {
|
|
23
|
+
'govgr-footer__list': true,
|
|
24
|
+
'govgr-footer__list--columns-2': columns === 2,
|
|
25
|
+
})}
|
|
26
|
+
{...props}
|
|
27
|
+
>
|
|
28
|
+
{children}
|
|
29
|
+
</Base>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export default FooterList;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FooterListItem with no props 1`] = `
|
|
4
|
+
<ForwardRef(FooterListItem)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="li"
|
|
7
|
+
className="govgr-footer__list-item"
|
|
8
|
+
>
|
|
9
|
+
<li
|
|
10
|
+
className="govgr-footer__list-item"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</li>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(FooterListItem)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import FooterListItem from '@digigov/react-core/FooterListItem';
|
|
5
|
+
|
|
6
|
+
it('renders the FooterListItem with no props', () => {
|
|
7
|
+
expect(mount(<FooterListItem>hello</FooterListItem>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FooterListItemProps extends BaseProps<'li'> {}
|
|
6
|
+
/**
|
|
7
|
+
* FooterListItem must be inside the FooterList component.
|
|
8
|
+
* This component has no props.
|
|
9
|
+
*/
|
|
10
|
+
export const FooterListItem = React.forwardRef<
|
|
11
|
+
HTMLLIElement,
|
|
12
|
+
FooterListItemProps
|
|
13
|
+
>(function FooterListItem({ className, children, ...props }, ref) {
|
|
14
|
+
return (
|
|
15
|
+
<Base
|
|
16
|
+
as="li"
|
|
17
|
+
ref={ref}
|
|
18
|
+
className={clsx(className, {
|
|
19
|
+
'govgr-footer__list-item': true,
|
|
20
|
+
})}
|
|
21
|
+
{...props}
|
|
22
|
+
>
|
|
23
|
+
{children}
|
|
24
|
+
</Base>
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export default FooterListItem;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FooterMeta with no props 1`] = `
|
|
4
|
+
<ForwardRef(FooterMeta)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-footer__meta"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-footer__meta"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(FooterMeta)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FooterMetaProps extends BaseProps<'div'> {}
|
|
6
|
+
/**
|
|
7
|
+
* FooterMeta is inside the FooterContainer component.
|
|
8
|
+
* This component is meant to wrap FooterMetaItem components.
|
|
9
|
+
* Semantically, in this component we include the very basic elements of a govgr footer.
|
|
10
|
+
*/
|
|
11
|
+
export const FooterMeta = React.forwardRef<HTMLDivElement, FooterMetaProps>(
|
|
12
|
+
function FooterMeta({ className, children, ...props }, ref) {
|
|
13
|
+
return (
|
|
14
|
+
<Base
|
|
15
|
+
as="div"
|
|
16
|
+
ref={ref}
|
|
17
|
+
className={clsx(className, {
|
|
18
|
+
'govgr-footer__meta': true,
|
|
19
|
+
})}
|
|
20
|
+
{...props}
|
|
21
|
+
>
|
|
22
|
+
{children}
|
|
23
|
+
</Base>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
export default FooterMeta;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FooterMetaItem with grow=false 1`] = `
|
|
4
|
+
<ForwardRef(FooterMetaItem)
|
|
5
|
+
grow={false}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="div"
|
|
9
|
+
className="govgr-footer__meta-item"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
className="govgr-footer__meta-item"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</div>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(FooterMetaItem)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
exports[`renders the FooterMetaItem with grow=true 1`] = `
|
|
21
|
+
<ForwardRef(FooterMetaItem)
|
|
22
|
+
grow={true}
|
|
23
|
+
>
|
|
24
|
+
<ForwardRef(Base)
|
|
25
|
+
as="div"
|
|
26
|
+
className="govgr-footer__meta-item--grow govgr-footer__meta-item"
|
|
27
|
+
>
|
|
28
|
+
<div
|
|
29
|
+
className="govgr-footer__meta-item--grow govgr-footer__meta-item"
|
|
30
|
+
>
|
|
31
|
+
hello
|
|
32
|
+
</div>
|
|
33
|
+
</ForwardRef(Base)>
|
|
34
|
+
</ForwardRef(FooterMetaItem)>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`renders the FooterMetaItem with no props 1`] = `
|
|
38
|
+
<ForwardRef(FooterMetaItem)>
|
|
39
|
+
<ForwardRef(Base)
|
|
40
|
+
as="div"
|
|
41
|
+
className="govgr-footer__meta-item"
|
|
42
|
+
>
|
|
43
|
+
<div
|
|
44
|
+
className="govgr-footer__meta-item"
|
|
45
|
+
>
|
|
46
|
+
hello
|
|
47
|
+
</div>
|
|
48
|
+
</ForwardRef(Base)>
|
|
49
|
+
</ForwardRef(FooterMetaItem)>
|
|
50
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import FooterMetaItem from '@digigov/react-core/FooterMetaItem';
|
|
5
|
+
|
|
6
|
+
it('renders the FooterMetaItem with no props', () => {
|
|
7
|
+
expect(mount(<FooterMetaItem>hello</FooterMetaItem>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the FooterMetaItem with grow=true', () => {
|
|
11
|
+
expect(
|
|
12
|
+
mount(<FooterMetaItem grow={true}>hello</FooterMetaItem>)
|
|
13
|
+
).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('renders the FooterMetaItem with grow=false', () => {
|
|
17
|
+
expect(
|
|
18
|
+
mount(<FooterMetaItem grow={false}>hello</FooterMetaItem>)
|
|
19
|
+
).toMatchSnapshot();
|
|
20
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FooterMetaItemProps extends BaseProps<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* grow is optional.
|
|
8
|
+
* Use this prop If wanted this component to have it's maxinum grow.
|
|
9
|
+
*/
|
|
10
|
+
grow?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* FooterMetaItem is inside the FooterMeta component.
|
|
14
|
+
*/
|
|
15
|
+
export const FooterMetaItem = React.forwardRef<
|
|
16
|
+
HTMLDivElement,
|
|
17
|
+
FooterMetaItemProps
|
|
18
|
+
>(function FooterMetaItem({ grow, className, children, ...props }, ref) {
|
|
19
|
+
return (
|
|
20
|
+
<Base
|
|
21
|
+
as="div"
|
|
22
|
+
ref={ref}
|
|
23
|
+
className={clsx(className, {
|
|
24
|
+
'govgr-footer__meta-item': true,
|
|
25
|
+
'govgr-footer__meta-item--grow': grow === true,
|
|
26
|
+
})}
|
|
27
|
+
{...props}
|
|
28
|
+
>
|
|
29
|
+
{children}
|
|
30
|
+
</Base>
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export default FooterMetaItem;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FooterNavigation with no props 1`] = `
|
|
4
|
+
<ForwardRef(FooterNavigation)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-footer__navigation"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-footer__navigation"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(FooterNavigation)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import FooterNavigation from '@digigov/react-core/FooterNavigation';
|
|
5
|
+
|
|
6
|
+
it('renders the FooterNavigation with no props', () => {
|
|
7
|
+
expect(mount(<FooterNavigation>hello</FooterNavigation>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FooterNavigationProps extends BaseProps<'div'> {}
|
|
6
|
+
/**
|
|
7
|
+
* FooterNavigation is optional. This components must be included in the FooterContainer.
|
|
8
|
+
* Inside this component we place one or more of the component FooterSection.
|
|
9
|
+
* This component has no props.
|
|
10
|
+
*/
|
|
11
|
+
export const FooterNavigation = React.forwardRef<
|
|
12
|
+
HTMLDivElement,
|
|
13
|
+
FooterNavigationProps
|
|
14
|
+
>(function FooterNavigation({ className, children, ...props }, ref) {
|
|
15
|
+
return (
|
|
16
|
+
<Base
|
|
17
|
+
as="div"
|
|
18
|
+
ref={ref}
|
|
19
|
+
className={clsx(className, {
|
|
20
|
+
'govgr-footer__navigation': true,
|
|
21
|
+
})}
|
|
22
|
+
{...props}
|
|
23
|
+
>
|
|
24
|
+
{children}
|
|
25
|
+
</Base>
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export default FooterNavigation;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FooterSection with no props 1`] = `
|
|
4
|
+
<ForwardRef(FooterSection)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-footer__section"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-footer__section"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(FooterSection)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FooterSectionProps extends BaseProps<'div'> {}
|
|
6
|
+
/**
|
|
7
|
+
* FooterSection must be inside the FooterNavigation.
|
|
8
|
+
* Inside this component should be placed the FooterHeading (optional) and the FooterList.
|
|
9
|
+
* This component has no props.
|
|
10
|
+
*/
|
|
11
|
+
export const FooterSection = React.forwardRef<
|
|
12
|
+
HTMLDivElement,
|
|
13
|
+
FooterSectionProps
|
|
14
|
+
>(function FooterSection({ className, children, ...props }, ref) {
|
|
15
|
+
return (
|
|
16
|
+
<Base
|
|
17
|
+
as="div"
|
|
18
|
+
ref={ref}
|
|
19
|
+
className={clsx(className, {
|
|
20
|
+
'govgr-footer__section': true,
|
|
21
|
+
})}
|
|
22
|
+
{...props}
|
|
23
|
+
>
|
|
24
|
+
{children}
|
|
25
|
+
</Base>
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export default FooterSection;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Form with grid props 1`] = `
|
|
4
|
+
<ForwardRef(Form)
|
|
5
|
+
grid={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="form"
|
|
9
|
+
className="govgr-form govgr-grid"
|
|
10
|
+
>
|
|
11
|
+
<form
|
|
12
|
+
className="govgr-form govgr-grid"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</form>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(Form)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
exports[`renders the Form with no props 1`] = `
|
|
21
|
+
<ForwardRef(Form)>
|
|
22
|
+
<ForwardRef(Base)
|
|
23
|
+
as="form"
|
|
24
|
+
className="govgr-form"
|
|
25
|
+
>
|
|
26
|
+
<form
|
|
27
|
+
className="govgr-form"
|
|
28
|
+
>
|
|
29
|
+
hello
|
|
30
|
+
</form>
|
|
31
|
+
</ForwardRef(Base)>
|
|
32
|
+
</ForwardRef(Form)>
|
|
33
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import Form from '@digigov/react-core/Form';
|
|
5
|
+
|
|
6
|
+
it('renders the Form with no props', () => {
|
|
7
|
+
expect(mount(<Form>hello</Form>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the Form with grid props', () => {
|
|
11
|
+
expect(mount(<Form grid>hello</Form>)).toMatchSnapshot();
|
|
12
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface FormProps extends BaseProps<'form'> {
|
|
6
|
+
grid?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Use this inside the Content component for additional content
|
|
10
|
+
* that will be shown on the left one third of the page
|
|
11
|
+
*/
|
|
12
|
+
export const Form = React.forwardRef<HTMLFormElement, FormProps>(function Form(
|
|
13
|
+
{ className, children, grid = false, ...props },
|
|
14
|
+
ref
|
|
15
|
+
) {
|
|
16
|
+
return (
|
|
17
|
+
<Base
|
|
18
|
+
as="form"
|
|
19
|
+
ref={ref}
|
|
20
|
+
className={clsx(className, {
|
|
21
|
+
'govgr-form': true,
|
|
22
|
+
'govgr-grid': grid,
|
|
23
|
+
})}
|
|
24
|
+
{...props}
|
|
25
|
+
>
|
|
26
|
+
{children}
|
|
27
|
+
</Base>
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export default Form;
|