@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,193 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Label with heading and size l props 1`] = `
|
|
4
|
+
<ForwardRef(LabelTitle)
|
|
5
|
+
heading={true}
|
|
6
|
+
size="l"
|
|
7
|
+
>
|
|
8
|
+
<ForwardRef(Base)
|
|
9
|
+
aria-level={1}
|
|
10
|
+
as="span"
|
|
11
|
+
className="govgr-heading-l"
|
|
12
|
+
role="heading"
|
|
13
|
+
>
|
|
14
|
+
<span
|
|
15
|
+
aria-level={1}
|
|
16
|
+
className="govgr-heading-l"
|
|
17
|
+
role="heading"
|
|
18
|
+
>
|
|
19
|
+
hello
|
|
20
|
+
</span>
|
|
21
|
+
</ForwardRef(Base)>
|
|
22
|
+
</ForwardRef(LabelTitle)>
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`renders the Label with heading and size m props 1`] = `
|
|
26
|
+
<ForwardRef(LabelTitle)
|
|
27
|
+
heading={true}
|
|
28
|
+
size="m"
|
|
29
|
+
>
|
|
30
|
+
<ForwardRef(Base)
|
|
31
|
+
aria-level={1}
|
|
32
|
+
as="span"
|
|
33
|
+
className="govgr-heading-m"
|
|
34
|
+
role="heading"
|
|
35
|
+
>
|
|
36
|
+
<span
|
|
37
|
+
aria-level={1}
|
|
38
|
+
className="govgr-heading-m"
|
|
39
|
+
role="heading"
|
|
40
|
+
>
|
|
41
|
+
hello
|
|
42
|
+
</span>
|
|
43
|
+
</ForwardRef(Base)>
|
|
44
|
+
</ForwardRef(LabelTitle)>
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`renders the Label with heading and size xl props 1`] = `
|
|
48
|
+
<ForwardRef(LabelTitle)
|
|
49
|
+
heading={true}
|
|
50
|
+
size="xl"
|
|
51
|
+
>
|
|
52
|
+
<ForwardRef(Base)
|
|
53
|
+
aria-level={1}
|
|
54
|
+
as="span"
|
|
55
|
+
className="govgr-heading-xl"
|
|
56
|
+
role="heading"
|
|
57
|
+
>
|
|
58
|
+
<span
|
|
59
|
+
aria-level={1}
|
|
60
|
+
className="govgr-heading-xl"
|
|
61
|
+
role="heading"
|
|
62
|
+
>
|
|
63
|
+
hello
|
|
64
|
+
</span>
|
|
65
|
+
</ForwardRef(Base)>
|
|
66
|
+
</ForwardRef(LabelTitle)>
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
exports[`renders the Label with heading and size s props 1`] = `
|
|
70
|
+
<ForwardRef(LabelTitle)
|
|
71
|
+
heading={true}
|
|
72
|
+
size="s"
|
|
73
|
+
>
|
|
74
|
+
<ForwardRef(Base)
|
|
75
|
+
aria-level={1}
|
|
76
|
+
as="span"
|
|
77
|
+
className="govgr-heading-s"
|
|
78
|
+
role="heading"
|
|
79
|
+
>
|
|
80
|
+
<span
|
|
81
|
+
aria-level={1}
|
|
82
|
+
className="govgr-heading-s"
|
|
83
|
+
role="heading"
|
|
84
|
+
>
|
|
85
|
+
hello
|
|
86
|
+
</span>
|
|
87
|
+
</ForwardRef(Base)>
|
|
88
|
+
</ForwardRef(LabelTitle)>
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
exports[`renders the Label with heading prop 1`] = `
|
|
92
|
+
<ForwardRef(LabelTitle)
|
|
93
|
+
heading={true}
|
|
94
|
+
>
|
|
95
|
+
<ForwardRef(Base)
|
|
96
|
+
aria-level={1}
|
|
97
|
+
as="span"
|
|
98
|
+
className=""
|
|
99
|
+
role="heading"
|
|
100
|
+
>
|
|
101
|
+
<span
|
|
102
|
+
aria-level={1}
|
|
103
|
+
className=""
|
|
104
|
+
role="heading"
|
|
105
|
+
>
|
|
106
|
+
hello
|
|
107
|
+
</span>
|
|
108
|
+
</ForwardRef(Base)>
|
|
109
|
+
</ForwardRef(LabelTitle)>
|
|
110
|
+
`;
|
|
111
|
+
|
|
112
|
+
exports[`renders the Label with size l prop 1`] = `
|
|
113
|
+
<ForwardRef(LabelTitle)
|
|
114
|
+
size="l"
|
|
115
|
+
>
|
|
116
|
+
<ForwardRef(Base)
|
|
117
|
+
as="span"
|
|
118
|
+
className="govgr-heading-l"
|
|
119
|
+
>
|
|
120
|
+
<span
|
|
121
|
+
className="govgr-heading-l"
|
|
122
|
+
>
|
|
123
|
+
hello
|
|
124
|
+
</span>
|
|
125
|
+
</ForwardRef(Base)>
|
|
126
|
+
</ForwardRef(LabelTitle)>
|
|
127
|
+
`;
|
|
128
|
+
|
|
129
|
+
exports[`renders the Label with size m prop 1`] = `
|
|
130
|
+
<ForwardRef(LabelTitle)
|
|
131
|
+
size="m"
|
|
132
|
+
>
|
|
133
|
+
<ForwardRef(Base)
|
|
134
|
+
as="span"
|
|
135
|
+
className="govgr-heading-m"
|
|
136
|
+
>
|
|
137
|
+
<span
|
|
138
|
+
className="govgr-heading-m"
|
|
139
|
+
>
|
|
140
|
+
hello
|
|
141
|
+
</span>
|
|
142
|
+
</ForwardRef(Base)>
|
|
143
|
+
</ForwardRef(LabelTitle)>
|
|
144
|
+
`;
|
|
145
|
+
|
|
146
|
+
exports[`renders the Label with size s prop 1`] = `
|
|
147
|
+
<ForwardRef(LabelTitle)
|
|
148
|
+
size="s"
|
|
149
|
+
>
|
|
150
|
+
<ForwardRef(Base)
|
|
151
|
+
as="span"
|
|
152
|
+
className="govgr-heading-s"
|
|
153
|
+
>
|
|
154
|
+
<span
|
|
155
|
+
className="govgr-heading-s"
|
|
156
|
+
>
|
|
157
|
+
hello
|
|
158
|
+
</span>
|
|
159
|
+
</ForwardRef(Base)>
|
|
160
|
+
</ForwardRef(LabelTitle)>
|
|
161
|
+
`;
|
|
162
|
+
|
|
163
|
+
exports[`renders the Label with size xl prop 1`] = `
|
|
164
|
+
<ForwardRef(LabelTitle)
|
|
165
|
+
size="xl"
|
|
166
|
+
>
|
|
167
|
+
<ForwardRef(Base)
|
|
168
|
+
as="span"
|
|
169
|
+
className="govgr-heading-xl"
|
|
170
|
+
>
|
|
171
|
+
<span
|
|
172
|
+
className="govgr-heading-xl"
|
|
173
|
+
>
|
|
174
|
+
hello
|
|
175
|
+
</span>
|
|
176
|
+
</ForwardRef(Base)>
|
|
177
|
+
</ForwardRef(LabelTitle)>
|
|
178
|
+
`;
|
|
179
|
+
|
|
180
|
+
exports[`renders the LabelTitle with no props 1`] = `
|
|
181
|
+
<ForwardRef(LabelTitle)>
|
|
182
|
+
<ForwardRef(Base)
|
|
183
|
+
as="span"
|
|
184
|
+
className=""
|
|
185
|
+
>
|
|
186
|
+
<span
|
|
187
|
+
className=""
|
|
188
|
+
>
|
|
189
|
+
hello
|
|
190
|
+
</span>
|
|
191
|
+
</ForwardRef(Base)>
|
|
192
|
+
</ForwardRef(LabelTitle)>
|
|
193
|
+
`;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import LabelTitle from '@digigov/react-core/LabelTitle';
|
|
5
|
+
|
|
6
|
+
it('renders the LabelTitle with no props', () => {
|
|
7
|
+
expect(mount(<LabelTitle>hello</LabelTitle>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the Label with heading prop', () => {
|
|
11
|
+
expect(mount(<LabelTitle heading>hello</LabelTitle>)).toMatchSnapshot();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('renders the Label with size s prop', () => {
|
|
15
|
+
expect(mount(<LabelTitle size="s">hello</LabelTitle>)).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('renders the Label with size m prop', () => {
|
|
19
|
+
expect(mount(<LabelTitle size="m">hello</LabelTitle>)).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('renders the Label with size l prop', () => {
|
|
23
|
+
expect(mount(<LabelTitle size="l">hello</LabelTitle>)).toMatchSnapshot();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('renders the Label with size xl prop', () => {
|
|
27
|
+
expect(mount(<LabelTitle size="xl">hello</LabelTitle>)).toMatchSnapshot();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('renders the Label with heading and size s props', () => {
|
|
31
|
+
expect(
|
|
32
|
+
mount(
|
|
33
|
+
<LabelTitle heading size="s">
|
|
34
|
+
hello
|
|
35
|
+
</LabelTitle>
|
|
36
|
+
)
|
|
37
|
+
).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('renders the Label with heading and size m props', () => {
|
|
41
|
+
expect(
|
|
42
|
+
mount(
|
|
43
|
+
<LabelTitle heading size="m">
|
|
44
|
+
hello
|
|
45
|
+
</LabelTitle>
|
|
46
|
+
)
|
|
47
|
+
).toMatchSnapshot();
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('renders the Label with heading and size l props', () => {
|
|
51
|
+
expect(
|
|
52
|
+
mount(
|
|
53
|
+
<LabelTitle heading size="l">
|
|
54
|
+
hello
|
|
55
|
+
</LabelTitle>
|
|
56
|
+
)
|
|
57
|
+
).toMatchSnapshot();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('renders the Label with heading and size xl props', () => {
|
|
61
|
+
expect(
|
|
62
|
+
mount(
|
|
63
|
+
<LabelTitle heading size="xl">
|
|
64
|
+
hello
|
|
65
|
+
</LabelTitle>
|
|
66
|
+
)
|
|
67
|
+
).toMatchSnapshot();
|
|
68
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface LabelFieldProps extends BaseProps<'span'> {
|
|
6
|
+
/**
|
|
7
|
+
* size is optional. The default value is 'l'
|
|
8
|
+
*/
|
|
9
|
+
size?: 'xl' | 'l' | 'm' | 's';
|
|
10
|
+
/**
|
|
11
|
+
* heading is optional.
|
|
12
|
+
* Add this prop if this Field component is the only one in this page.
|
|
13
|
+
* The default value is false.
|
|
14
|
+
*/
|
|
15
|
+
heading?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Label component defines a label for several elements at forms.
|
|
19
|
+
*/
|
|
20
|
+
export const LabelTitle = React.forwardRef<HTMLSpanElement, LabelFieldProps>(
|
|
21
|
+
function LabelTitle(
|
|
22
|
+
{ size, className, heading = false, children, ...props },
|
|
23
|
+
ref
|
|
24
|
+
) {
|
|
25
|
+
return (
|
|
26
|
+
<Base
|
|
27
|
+
as="span"
|
|
28
|
+
ref={ref}
|
|
29
|
+
className={clsx(className, {
|
|
30
|
+
'govgr-heading-xl': size === 'xl',
|
|
31
|
+
'govgr-heading-l': size === 'l',
|
|
32
|
+
'govgr-heading-m': size === 'm',
|
|
33
|
+
'govgr-heading-s': size === 's',
|
|
34
|
+
})}
|
|
35
|
+
{...(heading && { role: 'heading', 'aria-level': 1 })}
|
|
36
|
+
{...props}
|
|
37
|
+
>
|
|
38
|
+
{children}
|
|
39
|
+
</Base>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export default LabelTitle;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Layout with no props 1`] = `
|
|
4
|
+
<ForwardRef(Layout)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-layout-wrapper__full-height govgr-layout-wrapper"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-layout-wrapper__full-height govgr-layout-wrapper"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(Layout)>
|
|
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 LayoutProps extends BaseProps<'div'> {
|
|
6
|
+
fullHeight?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Wrapper component for the entire page except the Header and the Footer.
|
|
10
|
+
*/
|
|
11
|
+
export const Layout = React.forwardRef<HTMLDivElement, LayoutProps>(
|
|
12
|
+
function Layout({ className, children, fullHeight = true, ...props }, ref) {
|
|
13
|
+
return (
|
|
14
|
+
<Base
|
|
15
|
+
as="div"
|
|
16
|
+
ref={ref}
|
|
17
|
+
className={clsx(className, {
|
|
18
|
+
'govgr-layout-wrapper': true,
|
|
19
|
+
'govgr-layout-wrapper__full-height': fullHeight === true,
|
|
20
|
+
})}
|
|
21
|
+
{...props}
|
|
22
|
+
>
|
|
23
|
+
{children}
|
|
24
|
+
</Base>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export default Layout;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Link with no props 1`] = `
|
|
4
|
+
<ForwardRef(LinkBase)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="a"
|
|
7
|
+
className="govgr-link"
|
|
8
|
+
>
|
|
9
|
+
<a
|
|
10
|
+
className="govgr-link"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</a>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(LinkBase)>
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
exports[`renders the LinkBase with underline=false 1`] = `
|
|
19
|
+
<ForwardRef(LinkBase)
|
|
20
|
+
underline={false}
|
|
21
|
+
>
|
|
22
|
+
<ForwardRef(Base)
|
|
23
|
+
as="a"
|
|
24
|
+
className="govgr-link--no-underline govgr-link"
|
|
25
|
+
>
|
|
26
|
+
<a
|
|
27
|
+
className="govgr-link--no-underline govgr-link"
|
|
28
|
+
>
|
|
29
|
+
hello
|
|
30
|
+
</a>
|
|
31
|
+
</ForwardRef(Base)>
|
|
32
|
+
</ForwardRef(LinkBase)>
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
exports[`renders the LinkBase with underline=true 1`] = `
|
|
36
|
+
<ForwardRef(LinkBase)
|
|
37
|
+
underline={true}
|
|
38
|
+
>
|
|
39
|
+
<ForwardRef(Base)
|
|
40
|
+
as="a"
|
|
41
|
+
className="govgr-link"
|
|
42
|
+
>
|
|
43
|
+
<a
|
|
44
|
+
className="govgr-link"
|
|
45
|
+
>
|
|
46
|
+
hello
|
|
47
|
+
</a>
|
|
48
|
+
</ForwardRef(Base)>
|
|
49
|
+
</ForwardRef(LinkBase)>
|
|
50
|
+
`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import LinkBase from '@digigov/react-core/LinkBase';
|
|
5
|
+
|
|
6
|
+
it('renders the Link with no props', () => {
|
|
7
|
+
expect(mount(<LinkBase>hello</LinkBase>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the LinkBase with underline=true', () => {
|
|
11
|
+
expect(mount(<LinkBase underline={true}>hello</LinkBase>)).toMatchSnapshot();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('renders the LinkBase with underline=false', () => {
|
|
15
|
+
expect(mount(<LinkBase underline={false}>hello</LinkBase>)).toMatchSnapshot();
|
|
16
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface LinkBaseProps extends BaseProps<'a'> {
|
|
6
|
+
/**
|
|
7
|
+
* underline is optional. The default value is 'true'.
|
|
8
|
+
* Make it 'false' only if the context tells the user that the text is a link, even without the underline.
|
|
9
|
+
*/
|
|
10
|
+
underline?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* This component defines a hyperlink, which is used to link from one page to another.
|
|
14
|
+
*/
|
|
15
|
+
export const LinkBase = React.forwardRef<HTMLAnchorElement, LinkBaseProps>(
|
|
16
|
+
function LinkBase({ underline, className, children, ...props }, ref) {
|
|
17
|
+
return (
|
|
18
|
+
<Base
|
|
19
|
+
as="a"
|
|
20
|
+
ref={ref}
|
|
21
|
+
className={clsx(className, {
|
|
22
|
+
'govgr-link': true,
|
|
23
|
+
'govgr-link--no-underline': underline === false,
|
|
24
|
+
})}
|
|
25
|
+
{...props}
|
|
26
|
+
>
|
|
27
|
+
{children}
|
|
28
|
+
</Base>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
export default LinkBase;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the List with listStyle=bullet 1`] = `
|
|
4
|
+
<ForwardRef(List)
|
|
5
|
+
listStyle="bullet"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="ol"
|
|
9
|
+
className="govgr-list--bullet govgr-list"
|
|
10
|
+
>
|
|
11
|
+
<ol
|
|
12
|
+
className="govgr-list--bullet govgr-list"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</ol>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(List)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
exports[`renders the List with listStyle=bullet 2`] = `
|
|
21
|
+
<ForwardRef(List)
|
|
22
|
+
listStyle="bullet"
|
|
23
|
+
>
|
|
24
|
+
<ForwardRef(Base)
|
|
25
|
+
as="ol"
|
|
26
|
+
className="govgr-list--bullet govgr-list"
|
|
27
|
+
>
|
|
28
|
+
<ol
|
|
29
|
+
className="govgr-list--bullet govgr-list"
|
|
30
|
+
>
|
|
31
|
+
<ForwardRef(ListItem)>
|
|
32
|
+
<ForwardRef(Base)
|
|
33
|
+
as="li"
|
|
34
|
+
className="govgr-list__item"
|
|
35
|
+
>
|
|
36
|
+
<li
|
|
37
|
+
className="govgr-list__item"
|
|
38
|
+
>
|
|
39
|
+
hello Giorgos
|
|
40
|
+
</li>
|
|
41
|
+
</ForwardRef(Base)>
|
|
42
|
+
</ForwardRef(ListItem)>
|
|
43
|
+
<ForwardRef(ListItem)>
|
|
44
|
+
<ForwardRef(Base)
|
|
45
|
+
as="li"
|
|
46
|
+
className="govgr-list__item"
|
|
47
|
+
>
|
|
48
|
+
<li
|
|
49
|
+
className="govgr-list__item"
|
|
50
|
+
>
|
|
51
|
+
hello Katerina
|
|
52
|
+
</li>
|
|
53
|
+
</ForwardRef(Base)>
|
|
54
|
+
</ForwardRef(ListItem)>
|
|
55
|
+
</ol>
|
|
56
|
+
</ForwardRef(Base)>
|
|
57
|
+
</ForwardRef(List)>
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
exports[`renders the List with listStyle=bullet and spaced 1`] = `
|
|
61
|
+
<ForwardRef(List)
|
|
62
|
+
listStyle="bullet"
|
|
63
|
+
spaced={true}
|
|
64
|
+
>
|
|
65
|
+
<ForwardRef(Base)
|
|
66
|
+
as="ol"
|
|
67
|
+
className="govgr-list--bullet govgr-list--spaced govgr-list"
|
|
68
|
+
>
|
|
69
|
+
<ol
|
|
70
|
+
className="govgr-list--bullet govgr-list--spaced govgr-list"
|
|
71
|
+
>
|
|
72
|
+
<ForwardRef(ListItem)>
|
|
73
|
+
<ForwardRef(Base)
|
|
74
|
+
as="li"
|
|
75
|
+
className="govgr-list__item"
|
|
76
|
+
>
|
|
77
|
+
<li
|
|
78
|
+
className="govgr-list__item"
|
|
79
|
+
>
|
|
80
|
+
hello Giorgos
|
|
81
|
+
</li>
|
|
82
|
+
</ForwardRef(Base)>
|
|
83
|
+
</ForwardRef(ListItem)>
|
|
84
|
+
<ForwardRef(ListItem)>
|
|
85
|
+
<ForwardRef(Base)
|
|
86
|
+
as="li"
|
|
87
|
+
className="govgr-list__item"
|
|
88
|
+
>
|
|
89
|
+
<li
|
|
90
|
+
className="govgr-list__item"
|
|
91
|
+
>
|
|
92
|
+
hello Katerina
|
|
93
|
+
</li>
|
|
94
|
+
</ForwardRef(Base)>
|
|
95
|
+
</ForwardRef(ListItem)>
|
|
96
|
+
</ol>
|
|
97
|
+
</ForwardRef(Base)>
|
|
98
|
+
</ForwardRef(List)>
|
|
99
|
+
`;
|
|
100
|
+
|
|
101
|
+
exports[`renders the List with listStyle=number 1`] = `
|
|
102
|
+
<ForwardRef(List)
|
|
103
|
+
listStyle="number"
|
|
104
|
+
>
|
|
105
|
+
<ForwardRef(Base)
|
|
106
|
+
as="ol"
|
|
107
|
+
className="govgr-list--number govgr-list"
|
|
108
|
+
>
|
|
109
|
+
<ol
|
|
110
|
+
className="govgr-list--number govgr-list"
|
|
111
|
+
>
|
|
112
|
+
hello
|
|
113
|
+
</ol>
|
|
114
|
+
</ForwardRef(Base)>
|
|
115
|
+
</ForwardRef(List)>
|
|
116
|
+
`;
|
|
117
|
+
|
|
118
|
+
exports[`renders the List with listStyle=number 2`] = `
|
|
119
|
+
<ForwardRef(List)
|
|
120
|
+
listStyle="number"
|
|
121
|
+
>
|
|
122
|
+
<ForwardRef(Base)
|
|
123
|
+
as="ol"
|
|
124
|
+
className="govgr-list--number govgr-list"
|
|
125
|
+
>
|
|
126
|
+
<ol
|
|
127
|
+
className="govgr-list--number govgr-list"
|
|
128
|
+
>
|
|
129
|
+
<ForwardRef(ListItem)>
|
|
130
|
+
<ForwardRef(Base)
|
|
131
|
+
as="li"
|
|
132
|
+
className="govgr-list__item"
|
|
133
|
+
>
|
|
134
|
+
<li
|
|
135
|
+
className="govgr-list__item"
|
|
136
|
+
>
|
|
137
|
+
hello Giorgos
|
|
138
|
+
</li>
|
|
139
|
+
</ForwardRef(Base)>
|
|
140
|
+
</ForwardRef(ListItem)>
|
|
141
|
+
<ForwardRef(ListItem)>
|
|
142
|
+
<ForwardRef(Base)
|
|
143
|
+
as="li"
|
|
144
|
+
className="govgr-list__item"
|
|
145
|
+
>
|
|
146
|
+
<li
|
|
147
|
+
className="govgr-list__item"
|
|
148
|
+
>
|
|
149
|
+
hello Katerina
|
|
150
|
+
</li>
|
|
151
|
+
</ForwardRef(Base)>
|
|
152
|
+
</ForwardRef(ListItem)>
|
|
153
|
+
</ol>
|
|
154
|
+
</ForwardRef(Base)>
|
|
155
|
+
</ForwardRef(List)>
|
|
156
|
+
`;
|
|
157
|
+
|
|
158
|
+
exports[`renders the List with listStyle=number and spaced 1`] = `
|
|
159
|
+
<ForwardRef(List)
|
|
160
|
+
listStyle="number"
|
|
161
|
+
spaced={true}
|
|
162
|
+
>
|
|
163
|
+
<ForwardRef(Base)
|
|
164
|
+
as="ol"
|
|
165
|
+
className="govgr-list--number govgr-list--spaced govgr-list"
|
|
166
|
+
>
|
|
167
|
+
<ol
|
|
168
|
+
className="govgr-list--number govgr-list--spaced govgr-list"
|
|
169
|
+
>
|
|
170
|
+
<ForwardRef(ListItem)>
|
|
171
|
+
<ForwardRef(Base)
|
|
172
|
+
as="li"
|
|
173
|
+
className="govgr-list__item"
|
|
174
|
+
>
|
|
175
|
+
<li
|
|
176
|
+
className="govgr-list__item"
|
|
177
|
+
>
|
|
178
|
+
hello Giorgos
|
|
179
|
+
</li>
|
|
180
|
+
</ForwardRef(Base)>
|
|
181
|
+
</ForwardRef(ListItem)>
|
|
182
|
+
<ForwardRef(ListItem)>
|
|
183
|
+
<ForwardRef(Base)
|
|
184
|
+
as="li"
|
|
185
|
+
className="govgr-list__item"
|
|
186
|
+
>
|
|
187
|
+
<li
|
|
188
|
+
className="govgr-list__item"
|
|
189
|
+
>
|
|
190
|
+
hello Katerina
|
|
191
|
+
</li>
|
|
192
|
+
</ForwardRef(Base)>
|
|
193
|
+
</ForwardRef(ListItem)>
|
|
194
|
+
</ol>
|
|
195
|
+
</ForwardRef(Base)>
|
|
196
|
+
</ForwardRef(List)>
|
|
197
|
+
`;
|
|
198
|
+
|
|
199
|
+
exports[`renders the List with no props 1`] = `
|
|
200
|
+
<ForwardRef(List)>
|
|
201
|
+
<ForwardRef(Base)
|
|
202
|
+
as="ol"
|
|
203
|
+
className="govgr-list"
|
|
204
|
+
>
|
|
205
|
+
<ol
|
|
206
|
+
className="govgr-list"
|
|
207
|
+
>
|
|
208
|
+
hello
|
|
209
|
+
</ol>
|
|
210
|
+
</ForwardRef(Base)>
|
|
211
|
+
</ForwardRef(List)>
|
|
212
|
+
`;
|