@digigov/react-core 0.18.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Base/index.d.ts +10 -10
- package/Base/index.js +7 -4
- package/CHANGELOG.md +14 -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/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/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/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 +27 -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,346 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import NormalText from '@digigov/react-core/NormalText';
|
|
5
|
+
|
|
6
|
+
it('renders the NormalText with no props', () => {
|
|
7
|
+
expect(mount(<NormalText>hello</NormalText>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the NormalText with variant=lead', () => {
|
|
11
|
+
expect(
|
|
12
|
+
mount(<NormalText variant={'lead'}>hello</NormalText>)
|
|
13
|
+
).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('renders the NormalText with variant=normal', () => {
|
|
17
|
+
expect(
|
|
18
|
+
mount(<NormalText variant={'normal'}>hello</NormalText>)
|
|
19
|
+
).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('renders the NormalText with variant=small', () => {
|
|
23
|
+
expect(
|
|
24
|
+
mount(<NormalText variant={'small'}>hello</NormalText>)
|
|
25
|
+
).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('renders the NormalText with fontWeight=regular', () => {
|
|
29
|
+
expect(
|
|
30
|
+
mount(<NormalText fontWeight={'regular'}>hello</NormalText>)
|
|
31
|
+
).toMatchSnapshot();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('renders the NormalText with fontWeight=bold', () => {
|
|
35
|
+
expect(
|
|
36
|
+
mount(<NormalText fontWeight={'bold'}>hello</NormalText>)
|
|
37
|
+
).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('renders the NormalText with fontSize=14', () => {
|
|
41
|
+
expect(
|
|
42
|
+
mount(<NormalText fontSize={'14'}>hello</NormalText>)
|
|
43
|
+
).toMatchSnapshot();
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('renders the NormalText with fontSize=16', () => {
|
|
47
|
+
expect(
|
|
48
|
+
mount(<NormalText fontSize={'16'}>hello</NormalText>)
|
|
49
|
+
).toMatchSnapshot();
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
it('renders the NormalText with fontSize=19', () => {
|
|
53
|
+
expect(
|
|
54
|
+
mount(<NormalText fontSize={'19'}>hello</NormalText>)
|
|
55
|
+
).toMatchSnapshot();
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('renders the NormalText with fontSize=24', () => {
|
|
59
|
+
expect(
|
|
60
|
+
mount(<NormalText fontSize={'24'}>hello</NormalText>)
|
|
61
|
+
).toMatchSnapshot();
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('renders the NormalText with fontSize=30', () => {
|
|
65
|
+
expect(
|
|
66
|
+
mount(<NormalText fontSize={'30'}>hello</NormalText>)
|
|
67
|
+
).toMatchSnapshot();
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('renders the NormalText with fontSize=36', () => {
|
|
71
|
+
expect(
|
|
72
|
+
mount(<NormalText fontSize={'36'}>hello</NormalText>)
|
|
73
|
+
).toMatchSnapshot();
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it('renders the NormalText with fontSize=48', () => {
|
|
77
|
+
expect(
|
|
78
|
+
mount(<NormalText fontSize={'48'}>hello</NormalText>)
|
|
79
|
+
).toMatchSnapshot();
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('renders the NormalText with fontSize=72', () => {
|
|
83
|
+
expect(
|
|
84
|
+
mount(<NormalText fontSize={'72'}>hello</NormalText>)
|
|
85
|
+
).toMatchSnapshot();
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it('renders the NormalText with variant=lead and fontSize=14', () => {
|
|
89
|
+
expect(
|
|
90
|
+
mount(
|
|
91
|
+
<NormalText variant={'lead'} fontSize={'14'}>
|
|
92
|
+
hello
|
|
93
|
+
</NormalText>
|
|
94
|
+
)
|
|
95
|
+
).toMatchSnapshot();
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it('renders the NormalText with variant=lead and ontSize=16', () => {
|
|
99
|
+
expect(
|
|
100
|
+
mount(
|
|
101
|
+
<NormalText variant={'lead'} fontSize={'16'}>
|
|
102
|
+
hello
|
|
103
|
+
</NormalText>
|
|
104
|
+
)
|
|
105
|
+
).toMatchSnapshot();
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it('renders the NormalText with variant=lead and fontSize=19', () => {
|
|
109
|
+
expect(
|
|
110
|
+
mount(
|
|
111
|
+
<NormalText variant={'lead'} fontSize={'19'}>
|
|
112
|
+
hello
|
|
113
|
+
</NormalText>
|
|
114
|
+
)
|
|
115
|
+
).toMatchSnapshot();
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
it('renders the NormalText with variant=lead and fontSize=24', () => {
|
|
119
|
+
expect(
|
|
120
|
+
mount(
|
|
121
|
+
<NormalText variant={'lead'} fontSize={'24'}>
|
|
122
|
+
hello
|
|
123
|
+
</NormalText>
|
|
124
|
+
)
|
|
125
|
+
).toMatchSnapshot();
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it('renders the NormalText with variant=lead and fontSize=30', () => {
|
|
129
|
+
expect(
|
|
130
|
+
mount(
|
|
131
|
+
<NormalText variant={'lead'} fontSize={'30'}>
|
|
132
|
+
hello
|
|
133
|
+
</NormalText>
|
|
134
|
+
)
|
|
135
|
+
).toMatchSnapshot();
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
it('renders the NormalText with variant=lead and fontSize=36', () => {
|
|
139
|
+
expect(
|
|
140
|
+
mount(
|
|
141
|
+
<NormalText variant={'lead'} fontSize={'36'}>
|
|
142
|
+
hello
|
|
143
|
+
</NormalText>
|
|
144
|
+
)
|
|
145
|
+
).toMatchSnapshot();
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('renders the NormalText with variant=lead and font size fontSize=48', () => {
|
|
149
|
+
expect(
|
|
150
|
+
mount(
|
|
151
|
+
<NormalText variant={'lead'} fontSize={'48'}>
|
|
152
|
+
hello
|
|
153
|
+
</NormalText>
|
|
154
|
+
)
|
|
155
|
+
).toMatchSnapshot();
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
it('renders the NormalText with variant=lead and font size fontSize=72', () => {
|
|
159
|
+
expect(
|
|
160
|
+
mount(
|
|
161
|
+
<NormalText variant={'lead'} fontSize={'72'}>
|
|
162
|
+
hello
|
|
163
|
+
</NormalText>
|
|
164
|
+
)
|
|
165
|
+
).toMatchSnapshot();
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
it('renders the NormalText with variant=normal and fontSize=14', () => {
|
|
169
|
+
expect(
|
|
170
|
+
mount(
|
|
171
|
+
<NormalText variant={'normal'} fontSize={'14'}>
|
|
172
|
+
hello
|
|
173
|
+
</NormalText>
|
|
174
|
+
)
|
|
175
|
+
).toMatchSnapshot();
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
it('renders the NormalText with variant=normal and ontSize=16', () => {
|
|
179
|
+
expect(
|
|
180
|
+
mount(
|
|
181
|
+
<NormalText variant={'normal'} fontSize={'16'}>
|
|
182
|
+
hello
|
|
183
|
+
</NormalText>
|
|
184
|
+
)
|
|
185
|
+
).toMatchSnapshot();
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
it('renders the NormalText with variant=normal and fontSize=19', () => {
|
|
189
|
+
expect(
|
|
190
|
+
mount(
|
|
191
|
+
<NormalText variant={'normal'} fontSize={'19'}>
|
|
192
|
+
hello
|
|
193
|
+
</NormalText>
|
|
194
|
+
)
|
|
195
|
+
).toMatchSnapshot();
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
it('renders the NormalText with variant=normal and fontSize=24', () => {
|
|
199
|
+
expect(
|
|
200
|
+
mount(
|
|
201
|
+
<NormalText variant={'normal'} fontSize={'24'}>
|
|
202
|
+
hello
|
|
203
|
+
</NormalText>
|
|
204
|
+
)
|
|
205
|
+
).toMatchSnapshot();
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
it('renders the NormalText with variant=normal and fontSize=30', () => {
|
|
209
|
+
expect(
|
|
210
|
+
mount(
|
|
211
|
+
<NormalText variant={'normal'} fontSize={'30'}>
|
|
212
|
+
hello
|
|
213
|
+
</NormalText>
|
|
214
|
+
)
|
|
215
|
+
).toMatchSnapshot();
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
it('renders the NormalText with variant=normal and fontSize=36', () => {
|
|
219
|
+
expect(
|
|
220
|
+
mount(
|
|
221
|
+
<NormalText variant={'normal'} fontSize={'36'}>
|
|
222
|
+
hello
|
|
223
|
+
</NormalText>
|
|
224
|
+
)
|
|
225
|
+
).toMatchSnapshot();
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
it('renders the NormalText with variant=normal and font size fontSize=48', () => {
|
|
229
|
+
expect(
|
|
230
|
+
mount(
|
|
231
|
+
<NormalText variant={'normal'} fontSize={'48'}>
|
|
232
|
+
hello
|
|
233
|
+
</NormalText>
|
|
234
|
+
)
|
|
235
|
+
).toMatchSnapshot();
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
it('renders the NormalText with variant=normal and font size fontSize=72', () => {
|
|
239
|
+
expect(
|
|
240
|
+
mount(
|
|
241
|
+
<NormalText variant={'normal'} fontSize={'72'}>
|
|
242
|
+
hello
|
|
243
|
+
</NormalText>
|
|
244
|
+
)
|
|
245
|
+
).toMatchSnapshot();
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
it('renders the NormalText with variant=small and fontSize=14', () => {
|
|
249
|
+
expect(
|
|
250
|
+
mount(
|
|
251
|
+
<NormalText variant={'small'} fontSize={'14'}>
|
|
252
|
+
hello
|
|
253
|
+
</NormalText>
|
|
254
|
+
)
|
|
255
|
+
).toMatchSnapshot();
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
it('renders the NormalText with variant=small and ontSize=16', () => {
|
|
259
|
+
expect(
|
|
260
|
+
mount(
|
|
261
|
+
<NormalText variant={'small'} fontSize={'16'}>
|
|
262
|
+
hello
|
|
263
|
+
</NormalText>
|
|
264
|
+
)
|
|
265
|
+
).toMatchSnapshot();
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
it('renders the NormalText with variant=small and fontSize=19', () => {
|
|
269
|
+
expect(
|
|
270
|
+
mount(
|
|
271
|
+
<NormalText variant={'small'} fontSize={'19'}>
|
|
272
|
+
hello
|
|
273
|
+
</NormalText>
|
|
274
|
+
)
|
|
275
|
+
).toMatchSnapshot();
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
it('renders the NormalText with variant=small and fontSize=24', () => {
|
|
279
|
+
expect(
|
|
280
|
+
mount(
|
|
281
|
+
<NormalText variant={'small'} fontSize={'24'}>
|
|
282
|
+
hello
|
|
283
|
+
</NormalText>
|
|
284
|
+
)
|
|
285
|
+
).toMatchSnapshot();
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
it('renders the NormalText with variant=small and fontSize=30', () => {
|
|
289
|
+
expect(
|
|
290
|
+
mount(
|
|
291
|
+
<NormalText variant={'small'} fontSize={'30'}>
|
|
292
|
+
hello
|
|
293
|
+
</NormalText>
|
|
294
|
+
)
|
|
295
|
+
).toMatchSnapshot();
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
it('renders the NormalText with variant=lead and fontSize=36', () => {
|
|
299
|
+
expect(
|
|
300
|
+
mount(
|
|
301
|
+
<NormalText variant={'lead'} fontSize={'36'}>
|
|
302
|
+
hello
|
|
303
|
+
</NormalText>
|
|
304
|
+
)
|
|
305
|
+
).toMatchSnapshot();
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
it('renders the NormalText with variant=small and font size fontSize=48', () => {
|
|
309
|
+
expect(
|
|
310
|
+
mount(
|
|
311
|
+
<NormalText variant={'small'} fontSize={'48'}>
|
|
312
|
+
hello
|
|
313
|
+
</NormalText>
|
|
314
|
+
)
|
|
315
|
+
).toMatchSnapshot();
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
it('renders the NormalText with variant=small and font size fontSize=72', () => {
|
|
319
|
+
expect(
|
|
320
|
+
mount(
|
|
321
|
+
<NormalText variant={'small'} fontSize={'72'}>
|
|
322
|
+
hello
|
|
323
|
+
</NormalText>
|
|
324
|
+
)
|
|
325
|
+
).toMatchSnapshot();
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
it('renders the NormalText with variant=small, font size fontSize=72 and fontWeight=regular', () => {
|
|
329
|
+
expect(
|
|
330
|
+
mount(
|
|
331
|
+
<NormalText variant={'small'} fontSize={'72'} fontWeight={'regular'}>
|
|
332
|
+
hello
|
|
333
|
+
</NormalText>
|
|
334
|
+
)
|
|
335
|
+
).toMatchSnapshot();
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
it('renders the NormalText with variant=small, font size fontSize=72 and fontWeight=bold', () => {
|
|
339
|
+
expect(
|
|
340
|
+
mount(
|
|
341
|
+
<NormalText variant={'small'} fontSize={'72'} fontWeight={'bold'}>
|
|
342
|
+
hello
|
|
343
|
+
</NormalText>
|
|
344
|
+
)
|
|
345
|
+
).toMatchSnapshot();
|
|
346
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface NormalTextProps extends BaseProps<'span'> {
|
|
6
|
+
/**
|
|
7
|
+
* variant is optional.
|
|
8
|
+
* Use 'lead' when a lead text is an introductory paragraph that you can use at the top of a page to summarise the content.
|
|
9
|
+
* The majority of your body should use the standard 'normal' variant. This is the default value.
|
|
10
|
+
* You can use the 'small' sparingly to make your text font size smaller: 16px on larger screens and 14px on smaller screens.
|
|
11
|
+
*/
|
|
12
|
+
variant?: 'lead' | 'normal' | 'small';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* fontSize is optional.
|
|
16
|
+
* Add this fontSize override prop in order to change the font size.
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
fontSize?: '14' | '16' | '19' | '24' | '30' | '36' | '48' | '72';
|
|
20
|
+
/**
|
|
21
|
+
* fontWeight is optional.
|
|
22
|
+
* You can add a fontWeight override prop to change the font weight to regular or bold.
|
|
23
|
+
*/
|
|
24
|
+
fontWeight?: 'regular' | 'bold';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* NormalText component is used for text formatting.
|
|
28
|
+
* If you need a paragraph, use the Paragraph component instead.
|
|
29
|
+
*/
|
|
30
|
+
export const NormalText = React.forwardRef<HTMLSpanElement, NormalTextProps>(
|
|
31
|
+
function NormalText(
|
|
32
|
+
{ variant = 'normal', fontSize, fontWeight, className, children, ...props },
|
|
33
|
+
ref
|
|
34
|
+
) {
|
|
35
|
+
return (
|
|
36
|
+
<Base
|
|
37
|
+
as="span"
|
|
38
|
+
ref={ref}
|
|
39
|
+
className={clsx(className, {
|
|
40
|
+
'govgr-body': true,
|
|
41
|
+
'govgr-body-l': variant === 'lead',
|
|
42
|
+
'govgr-body-s': variant === 'small',
|
|
43
|
+
'govgr-!-font-size-14': fontSize === '14',
|
|
44
|
+
'govgr-!-font-size-16': fontSize === '16',
|
|
45
|
+
'govgr-!-font-size-19': fontSize === '19',
|
|
46
|
+
'govgr-!-font-size-24': fontSize === '24',
|
|
47
|
+
'govgr-!-font-size-30': fontSize === '30',
|
|
48
|
+
'govgr-!-font-size-36': fontSize === '36',
|
|
49
|
+
'govgr-!-font-size-48': fontSize === '48',
|
|
50
|
+
'govgr-!-font-size-72': fontSize === '72',
|
|
51
|
+
'govgr-!-font-weight-regular': fontWeight == 'regular',
|
|
52
|
+
'govgr-!-font-weight-bold': fontWeight == 'bold',
|
|
53
|
+
})}
|
|
54
|
+
{...props}
|
|
55
|
+
>
|
|
56
|
+
{children}
|
|
57
|
+
</Base>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
export default NormalText;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the NotificationBannerContainer with no props 1`] = `
|
|
4
|
+
<ForwardRef(NotificationBannerContainer)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
7
|
+
as="div"
|
|
8
|
+
className="govgr-notification-banner"
|
|
9
|
+
data-module="govgr-notification-banner"
|
|
10
|
+
role="region"
|
|
11
|
+
>
|
|
12
|
+
<div
|
|
13
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
14
|
+
className="govgr-notification-banner"
|
|
15
|
+
data-module="govgr-notification-banner"
|
|
16
|
+
role="region"
|
|
17
|
+
>
|
|
18
|
+
hello
|
|
19
|
+
</div>
|
|
20
|
+
</ForwardRef(Base)>
|
|
21
|
+
</ForwardRef(NotificationBannerContainer)>
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
exports[`renders the NotificationBannerContainer with success=false 1`] = `
|
|
25
|
+
<ForwardRef(NotificationBannerContainer)
|
|
26
|
+
success={false}
|
|
27
|
+
>
|
|
28
|
+
<ForwardRef(Base)
|
|
29
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
30
|
+
as="div"
|
|
31
|
+
className="govgr-notification-banner"
|
|
32
|
+
data-module="govgr-notification-banner"
|
|
33
|
+
role="region"
|
|
34
|
+
>
|
|
35
|
+
<div
|
|
36
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
37
|
+
className="govgr-notification-banner"
|
|
38
|
+
data-module="govgr-notification-banner"
|
|
39
|
+
role="region"
|
|
40
|
+
>
|
|
41
|
+
hello
|
|
42
|
+
</div>
|
|
43
|
+
</ForwardRef(Base)>
|
|
44
|
+
</ForwardRef(NotificationBannerContainer)>
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`renders the NotificationBannerContainer with success=true 1`] = `
|
|
48
|
+
<ForwardRef(NotificationBannerContainer)
|
|
49
|
+
success={true}
|
|
50
|
+
>
|
|
51
|
+
<ForwardRef(Base)
|
|
52
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
53
|
+
as="div"
|
|
54
|
+
className="govgr-notification-banner--success govgr-notification-banner"
|
|
55
|
+
data-module="govgr-notification-banner"
|
|
56
|
+
role="region"
|
|
57
|
+
>
|
|
58
|
+
<div
|
|
59
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
60
|
+
className="govgr-notification-banner--success govgr-notification-banner"
|
|
61
|
+
data-module="govgr-notification-banner"
|
|
62
|
+
role="region"
|
|
63
|
+
>
|
|
64
|
+
hello
|
|
65
|
+
</div>
|
|
66
|
+
</ForwardRef(Base)>
|
|
67
|
+
</ForwardRef(NotificationBannerContainer)>
|
|
68
|
+
`;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import NotificationBannerContainer from '@digigov/react-core/NotificationBannerContainer';
|
|
5
|
+
|
|
6
|
+
it('renders the NotificationBannerContainer with no props', () => {
|
|
7
|
+
expect(
|
|
8
|
+
mount(<NotificationBannerContainer>hello</NotificationBannerContainer>)
|
|
9
|
+
).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('renders the NotificationBannerContainer with success=true', () => {
|
|
13
|
+
expect(
|
|
14
|
+
mount(
|
|
15
|
+
<NotificationBannerContainer success={true}>
|
|
16
|
+
hello
|
|
17
|
+
</NotificationBannerContainer>
|
|
18
|
+
)
|
|
19
|
+
).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('renders the NotificationBannerContainer with success=false', () => {
|
|
23
|
+
expect(
|
|
24
|
+
mount(
|
|
25
|
+
<NotificationBannerContainer success={false}>
|
|
26
|
+
hello
|
|
27
|
+
</NotificationBannerContainer>
|
|
28
|
+
)
|
|
29
|
+
).toMatchSnapshot();
|
|
30
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface NotificationBannerContainerProps extends BaseProps<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* success is optional.
|
|
8
|
+
*/
|
|
9
|
+
success?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Details for the NotificationBannerContainer.
|
|
13
|
+
* NotificationBannerContainer componenent informs users about something they need to know about
|
|
14
|
+
* NotificationBannerContainer componenent must be placed at the top of the page.
|
|
15
|
+
* NotificationBannerContainer wraps NotificationBannerContainerHeader, NotificationBannerContainerContent,NotificationBannerContainerHeading
|
|
16
|
+
* and NotificationBannerContainerLink components as children
|
|
17
|
+
*/
|
|
18
|
+
export const NotificationBannerContainer = React.forwardRef<
|
|
19
|
+
HTMLDivElement,
|
|
20
|
+
NotificationBannerContainerProps
|
|
21
|
+
>(function NotificationBannerContainer(
|
|
22
|
+
{ success, className, children, ...props },
|
|
23
|
+
ref
|
|
24
|
+
) {
|
|
25
|
+
return (
|
|
26
|
+
<Base
|
|
27
|
+
as="div"
|
|
28
|
+
role="region"
|
|
29
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
30
|
+
data-module="govgr-notification-banner"
|
|
31
|
+
ref={ref}
|
|
32
|
+
className={clsx(className, {
|
|
33
|
+
'govgr-notification-banner': true,
|
|
34
|
+
'govgr-notification-banner--success': success === true,
|
|
35
|
+
})}
|
|
36
|
+
{...props}
|
|
37
|
+
>
|
|
38
|
+
{children}
|
|
39
|
+
</Base>
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export default NotificationBannerContainer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the NotificationBannerContent with no props 1`] = `
|
|
4
|
+
<ForwardRef(NotificationBannerContent)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-notification-banner__content"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-notification-banner__content"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(NotificationBannerContent)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import NotificationBannerContent from '@digigov/react-core/NotificationBannerContent';
|
|
5
|
+
|
|
6
|
+
it('renders the NotificationBannerContent with no props', () => {
|
|
7
|
+
expect(
|
|
8
|
+
mount(<NotificationBannerContent>hello</NotificationBannerContent>)
|
|
9
|
+
).toMatchSnapshot();
|
|
10
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface NotificationBannerContentProps extends BaseProps<'div'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Details for the NotificationBannerContent.
|
|
8
|
+
* NotificationBannerContent component is used as a content for
|
|
9
|
+
* NotificationBannerHeading and NotificationBannerLink components.
|
|
10
|
+
* NotificationBannerContent component must be used inside NotificationBanner component as children.
|
|
11
|
+
*/
|
|
12
|
+
export const NotificationBannerContent = React.forwardRef<
|
|
13
|
+
HTMLDivElement,
|
|
14
|
+
NotificationBannerContentProps
|
|
15
|
+
>(function NotificationBannerContent({ className, children, ...props }, ref) {
|
|
16
|
+
return (
|
|
17
|
+
<Base
|
|
18
|
+
as="div"
|
|
19
|
+
ref={ref}
|
|
20
|
+
className={clsx(className, {
|
|
21
|
+
'govgr-notification-banner__content': true,
|
|
22
|
+
})}
|
|
23
|
+
{...props}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</Base>
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export default NotificationBannerContent;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the NotificationBannerHeader with no props 1`] = `
|
|
4
|
+
<ForwardRef(NotificationBannerHeader)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-notification-banner__header"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-notification-banner__header"
|
|
11
|
+
>
|
|
12
|
+
<h2
|
|
13
|
+
className="govgr-notification-banner__title"
|
|
14
|
+
>
|
|
15
|
+
hello
|
|
16
|
+
</h2>
|
|
17
|
+
</div>
|
|
18
|
+
</ForwardRef(Base)>
|
|
19
|
+
</ForwardRef(NotificationBannerHeader)>
|
|
20
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import NotificationBannerHeader from '@digigov/react-core/NotificationBannerHeader';
|
|
5
|
+
|
|
6
|
+
it('renders the NotificationBannerHeader with no props', () => {
|
|
7
|
+
expect(
|
|
8
|
+
mount(<NotificationBannerHeader>hello</NotificationBannerHeader>)
|
|
9
|
+
).toMatchSnapshot();
|
|
10
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface NotificationBannerHeaderProps extends BaseProps<'div'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Details for the NotificationBannerHeader.
|
|
8
|
+
* NotificationBannerHeader component is used for placing head title to NotificationBanner component.
|
|
9
|
+
* NotificationBannerHeader component must be used inside NotificationBanner as children.
|
|
10
|
+
*/
|
|
11
|
+
export const NotificationBannerHeader = React.forwardRef<
|
|
12
|
+
HTMLDivElement,
|
|
13
|
+
NotificationBannerHeaderProps
|
|
14
|
+
>(function NotificationBannerHeader({ className, children, ...props }, ref) {
|
|
15
|
+
return (
|
|
16
|
+
<Base
|
|
17
|
+
as="div"
|
|
18
|
+
ref={ref}
|
|
19
|
+
className={clsx(className, {
|
|
20
|
+
'govgr-notification-banner__header': true,
|
|
21
|
+
})}
|
|
22
|
+
{...props}
|
|
23
|
+
>
|
|
24
|
+
<h2
|
|
25
|
+
className={clsx({
|
|
26
|
+
'govgr-notification-banner__title': true,
|
|
27
|
+
})}
|
|
28
|
+
>
|
|
29
|
+
{children}
|
|
30
|
+
</h2>
|
|
31
|
+
</Base>
|
|
32
|
+
);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export default NotificationBannerHeader;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the NotificationBannerHeading with no props 1`] = `
|
|
4
|
+
<ForwardRef(NotificationBannerHeading)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="h3"
|
|
7
|
+
className="govgr-notification-banner__heading"
|
|
8
|
+
>
|
|
9
|
+
<h3
|
|
10
|
+
className="govgr-notification-banner__heading"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</h3>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(NotificationBannerHeading)>
|
|
16
|
+
`;
|