@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,115 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the ArrowIcon with direction down prop 1`] = `
|
|
4
|
+
<ForwardRef(ArrowIcon)
|
|
5
|
+
direction="down"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(SvgIcon)
|
|
8
|
+
className="govgr-arrow--down"
|
|
9
|
+
>
|
|
10
|
+
<ForwardRef(Base)
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
as="svg"
|
|
13
|
+
className="govgr-arrow--down govgr-svg-icon"
|
|
14
|
+
focusable="false"
|
|
15
|
+
viewBox="0 0 24 24"
|
|
16
|
+
>
|
|
17
|
+
<svg
|
|
18
|
+
aria-hidden="true"
|
|
19
|
+
className="govgr-arrow--down govgr-svg-icon"
|
|
20
|
+
focusable="false"
|
|
21
|
+
viewBox="0 0 24 24"
|
|
22
|
+
>
|
|
23
|
+
<path
|
|
24
|
+
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
25
|
+
/>
|
|
26
|
+
</svg>
|
|
27
|
+
</ForwardRef(Base)>
|
|
28
|
+
</ForwardRef(SvgIcon)>
|
|
29
|
+
</ForwardRef(ArrowIcon)>
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
exports[`renders the ArrowIcon with direction left prop 1`] = `
|
|
33
|
+
<ForwardRef(ArrowIcon)
|
|
34
|
+
direction="left"
|
|
35
|
+
>
|
|
36
|
+
<ForwardRef(SvgIcon)
|
|
37
|
+
className="govgr-arrow--left"
|
|
38
|
+
>
|
|
39
|
+
<ForwardRef(Base)
|
|
40
|
+
aria-hidden="true"
|
|
41
|
+
as="svg"
|
|
42
|
+
className="govgr-arrow--left govgr-svg-icon"
|
|
43
|
+
focusable="false"
|
|
44
|
+
viewBox="0 0 24 24"
|
|
45
|
+
>
|
|
46
|
+
<svg
|
|
47
|
+
aria-hidden="true"
|
|
48
|
+
className="govgr-arrow--left govgr-svg-icon"
|
|
49
|
+
focusable="false"
|
|
50
|
+
viewBox="0 0 24 24"
|
|
51
|
+
>
|
|
52
|
+
<path
|
|
53
|
+
d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
|
|
54
|
+
/>
|
|
55
|
+
</svg>
|
|
56
|
+
</ForwardRef(Base)>
|
|
57
|
+
</ForwardRef(SvgIcon)>
|
|
58
|
+
</ForwardRef(ArrowIcon)>
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
exports[`renders the ArrowIcon with direction up prop 1`] = `
|
|
62
|
+
<ForwardRef(ArrowIcon)
|
|
63
|
+
direction="up"
|
|
64
|
+
>
|
|
65
|
+
<ForwardRef(SvgIcon)
|
|
66
|
+
className="govgr-arrow--up"
|
|
67
|
+
>
|
|
68
|
+
<ForwardRef(Base)
|
|
69
|
+
aria-hidden="true"
|
|
70
|
+
as="svg"
|
|
71
|
+
className="govgr-arrow--up govgr-svg-icon"
|
|
72
|
+
focusable="false"
|
|
73
|
+
viewBox="0 0 24 24"
|
|
74
|
+
>
|
|
75
|
+
<svg
|
|
76
|
+
aria-hidden="true"
|
|
77
|
+
className="govgr-arrow--up govgr-svg-icon"
|
|
78
|
+
focusable="false"
|
|
79
|
+
viewBox="0 0 24 24"
|
|
80
|
+
>
|
|
81
|
+
<path
|
|
82
|
+
d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
|
|
83
|
+
/>
|
|
84
|
+
</svg>
|
|
85
|
+
</ForwardRef(Base)>
|
|
86
|
+
</ForwardRef(SvgIcon)>
|
|
87
|
+
</ForwardRef(ArrowIcon)>
|
|
88
|
+
`;
|
|
89
|
+
|
|
90
|
+
exports[`renders the ArrowIcon with no props, direction prop is right by default 1`] = `
|
|
91
|
+
<ForwardRef(ArrowIcon)>
|
|
92
|
+
<ForwardRef(SvgIcon)
|
|
93
|
+
className="govgr-arrow--right"
|
|
94
|
+
>
|
|
95
|
+
<ForwardRef(Base)
|
|
96
|
+
aria-hidden="true"
|
|
97
|
+
as="svg"
|
|
98
|
+
className="govgr-arrow--right govgr-svg-icon"
|
|
99
|
+
focusable="false"
|
|
100
|
+
viewBox="0 0 24 24"
|
|
101
|
+
>
|
|
102
|
+
<svg
|
|
103
|
+
aria-hidden="true"
|
|
104
|
+
className="govgr-arrow--right govgr-svg-icon"
|
|
105
|
+
focusable="false"
|
|
106
|
+
viewBox="0 0 24 24"
|
|
107
|
+
>
|
|
108
|
+
<path
|
|
109
|
+
d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
|
|
110
|
+
/>
|
|
111
|
+
</svg>
|
|
112
|
+
</ForwardRef(Base)>
|
|
113
|
+
</ForwardRef(SvgIcon)>
|
|
114
|
+
</ForwardRef(ArrowIcon)>
|
|
115
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import ArrowIcon from '@digigov/react-core/ArrowIcon';
|
|
5
|
+
|
|
6
|
+
it('renders the ArrowIcon with no props, direction prop is right by default', () => {
|
|
7
|
+
expect(mount(<ArrowIcon />)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the ArrowIcon with direction left prop', () => {
|
|
11
|
+
expect(mount(<ArrowIcon direction="left" />)).toMatchSnapshot();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('renders the ArrowIcon with direction up prop', () => {
|
|
15
|
+
expect(mount(<ArrowIcon direction="up" />)).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('renders the ArrowIcon with direction down prop', () => {
|
|
19
|
+
expect(mount(<ArrowIcon direction="down" />)).toMatchSnapshot();
|
|
20
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SvgIcon, { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
export interface ArrowIconProps extends SvgIconProps {
|
|
5
|
+
ref?: React.Ref<SVGSVGElement>;
|
|
6
|
+
/**
|
|
7
|
+
* direction is optional.
|
|
8
|
+
* direction prop declares the direction of the svg icon.
|
|
9
|
+
*/
|
|
10
|
+
direction?: 'up' | 'right' | 'down' | 'left';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* ArrowIcon component is used to add arrow icon.
|
|
14
|
+
* ArrowIcon component can be used inside other components, for example CallToAction component.
|
|
15
|
+
*/
|
|
16
|
+
export const ArrowIcon: React.FC<ArrowIconProps> = React.forwardRef<
|
|
17
|
+
SVGSVGElement,
|
|
18
|
+
ArrowIconProps
|
|
19
|
+
>(function ArrowIcon(
|
|
20
|
+
{ size, variant, direction = 'right', className, ...props },
|
|
21
|
+
ref
|
|
22
|
+
) {
|
|
23
|
+
return (
|
|
24
|
+
<SvgIcon
|
|
25
|
+
size={size}
|
|
26
|
+
variant={variant}
|
|
27
|
+
className={clsx(className, {
|
|
28
|
+
'govgr-arrow--right': direction === 'right',
|
|
29
|
+
'govgr-arrow--left': direction === 'left',
|
|
30
|
+
'govgr-arrow--up': direction === 'up',
|
|
31
|
+
'govgr-arrow--down': direction === 'down',
|
|
32
|
+
})}
|
|
33
|
+
ref={ref}
|
|
34
|
+
{...props}
|
|
35
|
+
>
|
|
36
|
+
{direction === 'left' && (
|
|
37
|
+
<path d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z" />
|
|
38
|
+
)}
|
|
39
|
+
{direction === 'right' && (
|
|
40
|
+
<path d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z" />
|
|
41
|
+
)}
|
|
42
|
+
{direction === 'up' && (
|
|
43
|
+
<path d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z" />
|
|
44
|
+
)}
|
|
45
|
+
{direction === 'down' && (
|
|
46
|
+
<path d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z" />
|
|
47
|
+
)}
|
|
48
|
+
</SvgIcon>
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export default ArrowIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Aside with no props 1`] = `
|
|
4
|
+
<ForwardRef(Aside)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="aside"
|
|
7
|
+
className="govgr-grid-column-one-third"
|
|
8
|
+
>
|
|
9
|
+
<aside
|
|
10
|
+
className="govgr-grid-column-one-third"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</aside>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(Aside)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface AsideProps extends BaseProps<'aside'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Use this inside the Content component for additional content
|
|
8
|
+
* that will be shown on the left one third of the page
|
|
9
|
+
*/
|
|
10
|
+
export const Aside = React.forwardRef<HTMLElement, AsideProps>(function Aside(
|
|
11
|
+
{ className, children, ...props },
|
|
12
|
+
ref
|
|
13
|
+
) {
|
|
14
|
+
return (
|
|
15
|
+
<Base
|
|
16
|
+
as="aside"
|
|
17
|
+
ref={ref}
|
|
18
|
+
className={clsx(className, {
|
|
19
|
+
'govgr-grid-column-one-third': true,
|
|
20
|
+
})}
|
|
21
|
+
{...props}
|
|
22
|
+
>
|
|
23
|
+
{children}
|
|
24
|
+
</Base>
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export default Aside;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the BackLink with href="#" 1`] = `
|
|
4
|
+
<ForwardRef(BackLink)
|
|
5
|
+
href="#"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="a"
|
|
9
|
+
className="govgr-back-link"
|
|
10
|
+
href="#"
|
|
11
|
+
onClick={[Function]}
|
|
12
|
+
printHidden={true}
|
|
13
|
+
tabIndex={0}
|
|
14
|
+
>
|
|
15
|
+
<a
|
|
16
|
+
className="govgr-back-link govgr-print-hidden"
|
|
17
|
+
href="#"
|
|
18
|
+
onClick={[Function]}
|
|
19
|
+
tabIndex={0}
|
|
20
|
+
>
|
|
21
|
+
<ForwardRef(CaretIcon)>
|
|
22
|
+
<ForwardRef(SvgIcon)
|
|
23
|
+
className="govgr-caret--left"
|
|
24
|
+
>
|
|
25
|
+
<ForwardRef(Base)
|
|
26
|
+
aria-hidden="true"
|
|
27
|
+
as="svg"
|
|
28
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
29
|
+
focusable="false"
|
|
30
|
+
viewBox="0 0 24 24"
|
|
31
|
+
>
|
|
32
|
+
<svg
|
|
33
|
+
aria-hidden="true"
|
|
34
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
35
|
+
focusable="false"
|
|
36
|
+
viewBox="0 0 24 24"
|
|
37
|
+
>
|
|
38
|
+
<path
|
|
39
|
+
d="M18,22V2L6,12L18,22z"
|
|
40
|
+
/>
|
|
41
|
+
</svg>
|
|
42
|
+
</ForwardRef(Base)>
|
|
43
|
+
</ForwardRef(SvgIcon)>
|
|
44
|
+
</ForwardRef(CaretIcon)>
|
|
45
|
+
hello
|
|
46
|
+
</a>
|
|
47
|
+
</ForwardRef(Base)>
|
|
48
|
+
</ForwardRef(BackLink)>
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
exports[`renders the BackLink with no props 1`] = `
|
|
52
|
+
<ForwardRef(BackLink)>
|
|
53
|
+
<ForwardRef(Base)
|
|
54
|
+
as="a"
|
|
55
|
+
className="govgr-back-link"
|
|
56
|
+
onClick={[Function]}
|
|
57
|
+
printHidden={true}
|
|
58
|
+
tabIndex={0}
|
|
59
|
+
>
|
|
60
|
+
<a
|
|
61
|
+
className="govgr-back-link govgr-print-hidden"
|
|
62
|
+
onClick={[Function]}
|
|
63
|
+
tabIndex={0}
|
|
64
|
+
>
|
|
65
|
+
<ForwardRef(CaretIcon)>
|
|
66
|
+
<ForwardRef(SvgIcon)
|
|
67
|
+
className="govgr-caret--left"
|
|
68
|
+
>
|
|
69
|
+
<ForwardRef(Base)
|
|
70
|
+
aria-hidden="true"
|
|
71
|
+
as="svg"
|
|
72
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
73
|
+
focusable="false"
|
|
74
|
+
viewBox="0 0 24 24"
|
|
75
|
+
>
|
|
76
|
+
<svg
|
|
77
|
+
aria-hidden="true"
|
|
78
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
79
|
+
focusable="false"
|
|
80
|
+
viewBox="0 0 24 24"
|
|
81
|
+
>
|
|
82
|
+
<path
|
|
83
|
+
d="M18,22V2L6,12L18,22z"
|
|
84
|
+
/>
|
|
85
|
+
</svg>
|
|
86
|
+
</ForwardRef(Base)>
|
|
87
|
+
</ForwardRef(SvgIcon)>
|
|
88
|
+
</ForwardRef(CaretIcon)>
|
|
89
|
+
hello
|
|
90
|
+
</a>
|
|
91
|
+
</ForwardRef(Base)>
|
|
92
|
+
</ForwardRef(BackLink)>
|
|
93
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import BackLink from '@digigov/react-core/BackLink';
|
|
5
|
+
|
|
6
|
+
it('renders the BackLink with no props', () => {
|
|
7
|
+
expect(mount(<BackLink>hello</BackLink>)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
it('renders the BackLink with href="#"', () => {
|
|
10
|
+
expect(mount(<BackLink href="#">hello</BackLink>)).toMatchSnapshot();
|
|
11
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import CaretIcon from '@digigov/react-core/CaretIcon';
|
|
5
|
+
export interface BackLinkProps extends BaseProps<'a'> {
|
|
6
|
+
/**
|
|
7
|
+
* href is optional.
|
|
8
|
+
*/
|
|
9
|
+
href?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Use BackLink component to help users go back to the previous page in a multi-page transaction.
|
|
13
|
+
*/
|
|
14
|
+
export const BackLink = React.forwardRef<HTMLAnchorElement, BackLinkProps>(
|
|
15
|
+
function BackLink(
|
|
16
|
+
{ href, tabIndex = 0, printHidden= true, className, children, ...props },
|
|
17
|
+
ref
|
|
18
|
+
) {
|
|
19
|
+
return (
|
|
20
|
+
<Base
|
|
21
|
+
as="a"
|
|
22
|
+
printHidden={printHidden}
|
|
23
|
+
href={href}
|
|
24
|
+
onClick={() => {
|
|
25
|
+
!href && window.history.back();
|
|
26
|
+
}}
|
|
27
|
+
ref={ref}
|
|
28
|
+
className={clsx(className, {
|
|
29
|
+
'govgr-back-link': true,
|
|
30
|
+
})}
|
|
31
|
+
tabIndex={tabIndex}
|
|
32
|
+
{...props}
|
|
33
|
+
>
|
|
34
|
+
<CaretIcon />
|
|
35
|
+
{children}
|
|
36
|
+
</Base>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
export default BackLink;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
|
|
4
|
+
type AsProp<C extends React.ElementType> = {
|
|
5
|
+
as?: C;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
9
|
+
|
|
10
|
+
// This is the first reusable type utility we built
|
|
11
|
+
type PolymorphicComponentProp<
|
|
12
|
+
C extends React.ElementType,
|
|
13
|
+
Props = Record<string, unknown>
|
|
14
|
+
> = React.PropsWithChildren<Props & AsProp<C>> &
|
|
15
|
+
Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
16
|
+
|
|
17
|
+
// This is a new type utitlity with ref!
|
|
18
|
+
type PolymorphicComponentPropWithRef<
|
|
19
|
+
C extends React.ElementType,
|
|
20
|
+
Props = Record<string, unknown>
|
|
21
|
+
> = PolymorphicComponentProp<C, Props> & { ref?: PolymorphicRef<C> };
|
|
22
|
+
|
|
23
|
+
// This is the type for the "ref" only
|
|
24
|
+
type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<
|
|
25
|
+
C
|
|
26
|
+
>['ref'];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
30
|
+
*/
|
|
31
|
+
export type BaseProps<
|
|
32
|
+
C extends React.ElementType
|
|
33
|
+
> = PolymorphicComponentPropWithRef<
|
|
34
|
+
C,
|
|
35
|
+
{
|
|
36
|
+
/** margin is optional. It has not a default value. */
|
|
37
|
+
margin?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
38
|
+
/** marginTop is optional. It has not a default value. */
|
|
39
|
+
marginTop?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
40
|
+
/** marginBottom is optional. It has not a default value. */
|
|
41
|
+
marginBottom?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
42
|
+
/** marginLeft is optional. It has not a default value. */
|
|
43
|
+
marginLeft?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
44
|
+
/** marginRight is optional. It has not a default value. */
|
|
45
|
+
marginRight?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
46
|
+
/** padding is optional. It has not a default value. */
|
|
47
|
+
padding?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
48
|
+
/** paddingTop is optional. It has not a default value. */
|
|
49
|
+
paddingTop?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
50
|
+
/** paddingBottom is optional. It has not a default value. */
|
|
51
|
+
paddingBottom?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
52
|
+
/** paddingLeft is optional. It has not a default value. */
|
|
53
|
+
paddingLeft?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
54
|
+
/** paddingRight is optional. It has not a default value. */
|
|
55
|
+
paddingRight?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
56
|
+
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
57
|
+
printHidden?: boolean;
|
|
58
|
+
}
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* This is the type used in the type annotation for the component
|
|
63
|
+
*/
|
|
64
|
+
type BaseComponent = <C extends React.ElementType = 'span'>(
|
|
65
|
+
props: BaseProps<C>
|
|
66
|
+
) => React.ReactElement | null;
|
|
67
|
+
|
|
68
|
+
function calculateClasses(
|
|
69
|
+
margin?: number,
|
|
70
|
+
marginTop?: number,
|
|
71
|
+
marginBottom?: number,
|
|
72
|
+
marginRight?: number,
|
|
73
|
+
marginLeft?: number,
|
|
74
|
+
padding?: number,
|
|
75
|
+
paddingTop?: number,
|
|
76
|
+
paddingBottom?: number,
|
|
77
|
+
paddingRight?: number,
|
|
78
|
+
paddingLeft?: number,
|
|
79
|
+
printHidden?: boolean,
|
|
80
|
+
printVisible?: "block" | "inline"
|
|
81
|
+
) {
|
|
82
|
+
const classList = {} as Record<string, boolean>;
|
|
83
|
+
for (let i = 0; i <= 12; i++) {
|
|
84
|
+
classList[`govgr-m-${i}`] = margin === i;
|
|
85
|
+
classList[`govgr-mt-${i}`] = marginTop === i;
|
|
86
|
+
classList[`govgr-mb-${i}`] = marginBottom === i;
|
|
87
|
+
classList[`govgr-mr-${i}`] = marginRight === i;
|
|
88
|
+
classList[`govgr-ml-${i}`] = marginLeft === i;
|
|
89
|
+
classList[`govgr-p-${i}`] = padding === i;
|
|
90
|
+
classList[`govgr-pt-${i}`] = paddingTop === i;
|
|
91
|
+
classList[`govgr-pb-${i}`] = paddingBottom === i;
|
|
92
|
+
classList[`govgr-pr-${i}`] = paddingRight === i;
|
|
93
|
+
classList[`govgr-pl-${i}`] = paddingLeft === i;
|
|
94
|
+
}
|
|
95
|
+
classList['govgr-print-hidden'] = !!printHidden;
|
|
96
|
+
classList['govgr-print-visible-block'] = printVisible === "block";
|
|
97
|
+
classList['govgr-print-visible-inline'] = printVisible === "inline";
|
|
98
|
+
return classList;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export const Base: BaseComponent = React.forwardRef(function Base<
|
|
102
|
+
C extends React.ElementType = 'span'
|
|
103
|
+
>(
|
|
104
|
+
{
|
|
105
|
+
as,
|
|
106
|
+
margin,
|
|
107
|
+
marginTop,
|
|
108
|
+
marginBottom,
|
|
109
|
+
marginLeft,
|
|
110
|
+
marginRight,
|
|
111
|
+
padding,
|
|
112
|
+
paddingTop,
|
|
113
|
+
paddingBottom,
|
|
114
|
+
paddingLeft,
|
|
115
|
+
paddingRight,
|
|
116
|
+
printHidden,
|
|
117
|
+
printVisible,
|
|
118
|
+
children,
|
|
119
|
+
className,
|
|
120
|
+
...props
|
|
121
|
+
}: BaseProps<C>,
|
|
122
|
+
ref?: PolymorphicRef<C>
|
|
123
|
+
) {
|
|
124
|
+
const Component = as || 'span';
|
|
125
|
+
|
|
126
|
+
return (
|
|
127
|
+
<Component
|
|
128
|
+
ref={ref}
|
|
129
|
+
className={clsx(
|
|
130
|
+
className,
|
|
131
|
+
calculateClasses(
|
|
132
|
+
margin,
|
|
133
|
+
marginTop,
|
|
134
|
+
marginBottom,
|
|
135
|
+
marginRight,
|
|
136
|
+
marginLeft,
|
|
137
|
+
padding,
|
|
138
|
+
paddingTop,
|
|
139
|
+
paddingBottom,
|
|
140
|
+
paddingRight,
|
|
141
|
+
paddingLeft,
|
|
142
|
+
printHidden,
|
|
143
|
+
printVisible,
|
|
144
|
+
)
|
|
145
|
+
)}
|
|
146
|
+
{...props}
|
|
147
|
+
>
|
|
148
|
+
{children}
|
|
149
|
+
</Component>
|
|
150
|
+
);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
export default Base;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Blockquote with no props 1`] = `
|
|
4
|
+
<ForwardRef(Blockquote)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="blockquote"
|
|
7
|
+
className="govgr-blockquote"
|
|
8
|
+
>
|
|
9
|
+
<blockquote
|
|
10
|
+
className="govgr-blockquote"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</blockquote>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(Blockquote)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface BlockquoteProps extends BaseProps<'blockquote'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Use Blockquote to differentiate a block of text from the content that surrounds it.
|
|
8
|
+
*/
|
|
9
|
+
export const Blockquote = React.forwardRef<HTMLElement, BlockquoteProps>(
|
|
10
|
+
function Blockquote({ className, children, ...props }, ref) {
|
|
11
|
+
return (
|
|
12
|
+
<Base
|
|
13
|
+
as="blockquote"
|
|
14
|
+
ref={ref}
|
|
15
|
+
className={clsx(className, {
|
|
16
|
+
'govgr-blockquote': true,
|
|
17
|
+
})}
|
|
18
|
+
{...props}
|
|
19
|
+
>
|
|
20
|
+
{children}
|
|
21
|
+
</Base>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export default Blockquote;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Bottom with no props 1`] = `
|
|
4
|
+
<ForwardRef(Bottom)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-bottom"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-bottom"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(Bottom)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
|
|
5
|
+
export interface BottomProps extends BaseProps<'div'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Bottom is used inside the Layout component and it must be the last component in order.
|
|
8
|
+
*/
|
|
9
|
+
export const Bottom = React.forwardRef<HTMLDivElement, BottomProps>(
|
|
10
|
+
function Bottom({ className, children, ...props }, ref) {
|
|
11
|
+
return (
|
|
12
|
+
<Base
|
|
13
|
+
as="div"
|
|
14
|
+
ref={ref}
|
|
15
|
+
className={clsx(className, {
|
|
16
|
+
'govgr-bottom': true,
|
|
17
|
+
})}
|
|
18
|
+
{...props}
|
|
19
|
+
>
|
|
20
|
+
{children}
|
|
21
|
+
</Base>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export default Bottom;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Breadcrumbs with no props 1`] = `
|
|
4
|
+
<ForwardRef(Breadcrumbs)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="nav"
|
|
7
|
+
className="govgr-breadcrumbs"
|
|
8
|
+
>
|
|
9
|
+
<nav
|
|
10
|
+
className="govgr-breadcrumbs"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</nav>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(Breadcrumbs)>
|
|
16
|
+
`;
|