@digigov/react-core 0.17.2 → 0.18.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/Accordion/__snapshots__/index.test.tsx.snap +8 -3
- package/AccordionControls/__snapshots__/index.test.tsx.snap +10 -5
- package/AccordionSection/__snapshots__/index.test.tsx.snap +26 -9
- package/AccordionSectionContent/__snapshots__/index.test.tsx.snap +8 -3
- package/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +14 -9
- package/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +12 -3
- package/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +17 -6
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +56 -24
- package/Aside/__snapshots__/index.test.tsx.snap +8 -3
- package/BackLink/__snapshots__/index.test.tsx.snap +69 -36
- package/Blockquote/__snapshots__/index.test.tsx.snap +8 -3
- package/Bottom/__snapshots__/index.test.tsx.snap +8 -3
- package/Breadcrumbs/__snapshots__/index.test.tsx.snap +8 -3
- package/BreadcrumbsList/__snapshots__/index.test.tsx.snap +8 -3
- package/BreadcrumbsListItem/__snapshots__/index.test.tsx.snap +23 -13
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +281 -193
- package/Button/__snapshots__/index.test.tsx.snap +106 -33
- package/ButtonGroup/__snapshots__/index.test.tsx.snap +8 -3
- package/ButtonLink/__snapshots__/index.test.tsx.snap +94 -33
- package/CHANGELOG.md +13 -1
- package/CallToAction/__snapshots__/index.test.tsx.snap +39 -6
- package/Card/__snapshots__/index.test.tsx.snap +92 -42
- package/CardAction/__snapshots__/index.test.tsx.snap +8 -3
- package/CardHeading/__snapshots__/index.test.tsx.snap +10 -3
- package/CardText/__snapshots__/index.test.tsx.snap +8 -3
- package/CaretIcon/__snapshots__/index.test.tsx.snap +56 -24
- package/CheckIcon/__snapshots__/index.test.tsx.snap +227 -91
- package/Checkbox/__snapshots__/index.test.tsx.snap +35 -19
- package/CheckboxConditional/__snapshots__/index.test.tsx.snap +12 -27
- package/CheckboxItem/__snapshots__/index.test.tsx.snap +26 -6
- package/CloseIcon/__snapshots__/index.test.tsx.snap +14 -6
- package/Confirmation/__snapshots__/index.test.tsx.snap +8 -3
- package/ConfirmationBody/__snapshots__/index.test.tsx.snap +8 -3
- package/ConfirmationTitle/__snapshots__/index.test.tsx.snap +8 -3
- package/Container/__snapshots__/index.test.tsx.snap +42 -12
- package/CopyrightContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/CopyrightContainer/index.d.ts +10 -0
- package/{Copyright → CopyrightContainer}/index.js +6 -6
- package/{Copyright → CopyrightContainer}/index.test.d.ts +0 -0
- package/{Copyright → CopyrightContainer}/index.test.js +3 -3
- package/DateInputContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/{NotificationBanner → DateInputContainer}/index.d.ts +7 -12
- package/{DateInput → DateInputContainer}/index.js +6 -6
- package/{DateInput → DateInputContainer}/index.test.d.ts +0 -0
- package/{DateInput → DateInputContainer}/index.test.js +3 -3
- package/DateInputItem/__snapshots__/index.test.tsx.snap +32 -6
- package/Details/__snapshots__/index.test.tsx.snap +8 -3
- package/DetailsContent/__snapshots__/index.test.tsx.snap +8 -3
- package/DetailsSummary/__snapshots__/index.test.tsx.snap +8 -3
- package/ErrorMessage/__snapshots__/index.test.tsx.snap +8 -3
- package/ErrorSummary/__snapshots__/index.test.tsx.snap +8 -3
- package/FieldContainer/__snapshots__/index.test.tsx.snap +77 -0
- package/FieldContainer/index.d.ts +13 -0
- package/{Field → FieldContainer}/index.js +4 -4
- package/{Field → FieldContainer}/index.test.d.ts +0 -0
- package/FieldContainer/index.test.js +31 -0
- package/Fieldset/__snapshots__/index.test.tsx.snap +8 -3
- package/FieldsetLegend/__snapshots__/index.test.tsx.snap +90 -30
- package/FileUpload/__snapshots__/index.test.tsx.snap +46 -15
- package/Footer/__snapshots__/index.test.tsx.snap +8 -3
- package/FooterContainer/__snapshots__/index.test.tsx.snap +8 -3
- package/FooterContent/__snapshots__/index.test.tsx.snap +8 -3
- package/FooterContentLogos/__snapshots__/index.test.tsx.snap +8 -3
- package/FooterHeading/__snapshots__/index.test.tsx.snap +24 -9
- package/FooterImage/__snapshots__/index.test.tsx.snap +8 -2
- package/FooterInlineList/__snapshots__/index.test.tsx.snap +8 -3
- package/FooterInlineListItem/__snapshots__/index.test.tsx.snap +6 -6
- package/FooterLink/__snapshots__/index.test.tsx.snap +17 -6
- package/FooterList/__snapshots__/index.test.tsx.snap +16 -6
- package/FooterListItem/__snapshots__/index.test.tsx.snap +6 -6
- package/FooterMeta/__snapshots__/index.test.tsx.snap +8 -3
- package/FooterMetaItem/__snapshots__/index.test.tsx.snap +24 -9
- package/FooterNavigation/__snapshots__/index.test.tsx.snap +8 -3
- package/FooterSection/__snapshots__/index.test.tsx.snap +8 -3
- package/Form/__snapshots__/index.test.tsx.snap +16 -6
- package/GovGRLogo/__snapshots__/index.test.tsx.snap +18 -7
- package/Grid/__snapshots__/index.test.tsx.snap +65 -35
- package/Header/__snapshots__/index.test.tsx.snap +10 -4
- package/HeaderContent/__snapshots__/index.test.tsx.snap +8 -3
- package/HeaderLogo/__snapshots__/index.test.tsx.snap +10 -5
- package/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +25 -14
- package/HeaderSection/__snapshots__/index.test.tsx.snap +8 -3
- package/HeaderSubtitle/__snapshots__/index.test.tsx.snap +8 -3
- package/HeaderTitle/__snapshots__/index.test.tsx.snap +18 -6
- package/Heading/__snapshots__/index.test.tsx.snap +136 -51
- package/HeadingCaption/__snapshots__/index.test.tsx.snap +33 -13
- package/HellenicRepublicLogo/__snapshots__/index.test.tsx.snap +22 -3
- package/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/Hint/__snapshots__/index.test.tsx.snap +32 -12
- package/LabelContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/LabelContainer/index.d.ts +9 -0
- package/{Label → LabelContainer}/index.js +4 -4
- package/{GovGRFooter → LabelContainer}/index.test.d.ts +0 -0
- package/{Label → LabelContainer}/index.test.js +2 -2
- package/LabelTitle/__snapshots__/index.test.tsx.snap +90 -30
- package/Layout/__snapshots__/index.test.tsx.snap +9 -4
- package/LinkBase/__snapshots__/index.test.tsx.snap +50 -0
- package/LinkBase/index.d.ts +14 -0
- package/{Link → LinkBase}/index.js +4 -4
- package/{Label → LinkBase}/index.test.d.ts +0 -0
- package/{Link → LinkBase}/index.test.js +6 -6
- package/List/__snapshots__/index.test.tsx.snap +149 -74
- package/ListItem/__snapshots__/index.test.tsx.snap +8 -3
- package/Main/__snapshots__/index.test.tsx.snap +10 -3
- package/Masthead/__snapshots__/index.test.tsx.snap +8 -3
- package/MastheadBody/__snapshots__/index.test.tsx.snap +8 -3
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +390 -270
- package/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -9
- package/NavHorizontalList/__snapshots__/index.test.tsx.snap +8 -3
- package/NavHorizontalListItem/__snapshots__/index.test.tsx.snap +45 -15
- package/NavVertical/__snapshots__/index.test.tsx.snap +8 -3
- package/NavVerticalItem/__snapshots__/index.test.tsx.snap +24 -9
- package/NormalText/__snapshots__/index.test.tsx.snap +320 -120
- package/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +68 -0
- package/NotificationBannerContainer/index.d.ts +17 -0
- package/{NotificationBanner → NotificationBannerContainer}/index.js +9 -9
- package/{Link → NotificationBannerContainer}/index.test.d.ts +0 -0
- package/{NotificationBanner → NotificationBannerContainer}/index.test.js +7 -7
- package/NotificationBannerContent/__snapshots__/index.test.tsx.snap +8 -3
- package/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +11 -6
- package/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +8 -3
- package/NotificationBannerLink/__snapshots__/index.test.tsx.snap +18 -6
- package/PageTitle/__snapshots__/index.test.tsx.snap +8 -3
- package/PageTitleCaption/__snapshots__/index.test.tsx.snap +33 -13
- package/PageTitleHeading/__snapshots__/index.test.tsx.snap +40 -15
- package/PageTitleSection/__snapshots__/index.test.tsx.snap +8 -3
- package/Paragraph/__snapshots__/index.test.tsx.snap +328 -123
- package/PhaseBanner/__snapshots__/index.test.tsx.snap +22 -12
- package/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +8 -3
- package/PhaseBannerTag/__snapshots__/index.test.tsx.snap +8 -3
- package/PhaseBannerText/__snapshots__/index.test.tsx.snap +8 -3
- package/README.md +10 -0
- package/RadioConditional/__snapshots__/index.test.tsx.snap +12 -27
- package/RadioContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/RadioContainer/index.d.ts +14 -0
- package/{Radio → RadioContainer}/index.js +5 -5
- package/{NotificationBanner → RadioContainer}/index.test.d.ts +0 -0
- package/RadioContainer/index.test.js +15 -0
- package/RadioItem/__snapshots__/index.test.tsx.snap +36 -8
- package/SectionBreak/__snapshots__/index.test.tsx.snap +42 -12
- package/SelectContainer/__snapshots__/index.test.tsx.snap +57 -0
- package/SelectContainer/index.d.ts +14 -0
- package/{Select → SelectContainer}/index.js +5 -5
- package/{Radio → SelectContainer}/index.test.d.ts +0 -0
- package/{Select → SelectContainer}/index.test.js +7 -7
- package/SelectOption/__snapshots__/index.test.tsx.snap +17 -6
- package/SkipLink/__snapshots__/index.test.tsx.snap +10 -3
- package/SummaryList/__snapshots__/index.test.tsx.snap +8 -3
- package/SummaryListItem/__snapshots__/index.test.tsx.snap +8 -3
- package/SummaryListItemAction/__snapshots__/index.test.tsx.snap +8 -3
- package/SummaryListItemKey/__snapshots__/index.test.tsx.snap +8 -3
- package/SummaryListItemValue/__snapshots__/index.test.tsx.snap +8 -3
- package/SvgIcon/__snapshots__/index.test.tsx.snap +177 -57
- package/Table/__snapshots__/index.test.tsx.snap +40 -15
- package/TableBody/__snapshots__/index.test.tsx.snap +8 -3
- package/TableCaption/__snapshots__/index.test.tsx.snap +40 -15
- package/TableContainer/__snapshots__/index.test.tsx.snap +16 -6
- package/TableDataCell/__snapshots__/index.test.tsx.snap +16 -6
- package/TableHead/__snapshots__/index.test.tsx.snap +8 -3
- package/TableHeadCell/__snapshots__/index.test.tsx.snap +100 -63
- package/TableNoDataRow/__snapshots__/index.test.tsx.snap +9 -3
- package/TableRow/__snapshots__/index.test.tsx.snap +8 -3
- package/Tabs/__snapshots__/index.test.tsx.snap +8 -3
- package/TabsHeading/__snapshots__/index.test.tsx.snap +24 -9
- package/TabsList/__snapshots__/index.test.tsx.snap +9 -3
- package/TabsListItem/__snapshots__/index.test.tsx.snap +65 -15
- package/TabsPanel/__snapshots__/index.test.tsx.snap +48 -12
- package/TextArea/__snapshots__/index.test.tsx.snap +55 -18
- package/TextInput/__snapshots__/index.test.tsx.snap +344 -86
- package/Top/__snapshots__/index.test.tsx.snap +8 -3
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +195 -75
- package/VisuallyHidden/__snapshots__/index.test.tsx.snap +8 -3
- package/WarningText/__snapshots__/index.test.tsx.snap +18 -13
- package/es/Accordion/__snapshots__/index.test.tsx.snap +8 -3
- package/es/AccordionControls/__snapshots__/index.test.tsx.snap +10 -5
- package/es/AccordionSection/__snapshots__/index.test.tsx.snap +26 -9
- package/es/AccordionSectionContent/__snapshots__/index.test.tsx.snap +8 -3
- package/es/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +14 -9
- package/es/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +12 -3
- package/es/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +17 -6
- package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +56 -24
- package/es/Aside/__snapshots__/index.test.tsx.snap +8 -3
- package/es/BackLink/__snapshots__/index.test.tsx.snap +69 -36
- package/es/Blockquote/__snapshots__/index.test.tsx.snap +8 -3
- package/es/Bottom/__snapshots__/index.test.tsx.snap +8 -3
- package/es/Breadcrumbs/__snapshots__/index.test.tsx.snap +8 -3
- package/es/BreadcrumbsList/__snapshots__/index.test.tsx.snap +8 -3
- package/es/BreadcrumbsListItem/__snapshots__/index.test.tsx.snap +23 -13
- package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +281 -193
- package/es/Button/__snapshots__/index.test.tsx.snap +106 -33
- package/es/ButtonGroup/__snapshots__/index.test.tsx.snap +8 -3
- package/es/ButtonLink/__snapshots__/index.test.tsx.snap +94 -33
- package/es/CallToAction/__snapshots__/index.test.tsx.snap +39 -6
- package/es/Card/__snapshots__/index.test.tsx.snap +92 -42
- package/es/CardAction/__snapshots__/index.test.tsx.snap +8 -3
- package/es/CardHeading/__snapshots__/index.test.tsx.snap +10 -3
- package/es/CardText/__snapshots__/index.test.tsx.snap +8 -3
- package/es/CaretIcon/__snapshots__/index.test.tsx.snap +56 -24
- package/es/CheckIcon/__snapshots__/index.test.tsx.snap +227 -91
- package/es/Checkbox/__snapshots__/index.test.tsx.snap +35 -19
- package/es/CheckboxConditional/__snapshots__/index.test.tsx.snap +12 -27
- package/es/CheckboxItem/__snapshots__/index.test.tsx.snap +26 -6
- package/es/CloseIcon/__snapshots__/index.test.tsx.snap +14 -6
- package/es/Confirmation/__snapshots__/index.test.tsx.snap +8 -3
- package/es/ConfirmationBody/__snapshots__/index.test.tsx.snap +8 -3
- package/es/ConfirmationTitle/__snapshots__/index.test.tsx.snap +8 -3
- package/es/Container/__snapshots__/index.test.tsx.snap +42 -12
- package/es/CopyrightContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/es/{Copyright → CopyrightContainer}/index.js +4 -4
- package/es/CopyrightContainer/index.test.js +9 -0
- package/es/DateInputContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/{esm/DateInput → es/DateInputContainer}/index.js +4 -4
- package/es/DateInputContainer/index.test.js +9 -0
- package/es/DateInputItem/__snapshots__/index.test.tsx.snap +32 -6
- package/es/Details/__snapshots__/index.test.tsx.snap +8 -3
- package/es/DetailsContent/__snapshots__/index.test.tsx.snap +8 -3
- package/es/DetailsSummary/__snapshots__/index.test.tsx.snap +8 -3
- package/es/ErrorMessage/__snapshots__/index.test.tsx.snap +8 -3
- package/es/ErrorSummary/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FieldContainer/__snapshots__/index.test.tsx.snap +77 -0
- package/{esm/Field → es/FieldContainer}/index.js +2 -2
- package/es/FieldContainer/index.test.js +25 -0
- package/es/Fieldset/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FieldsetLegend/__snapshots__/index.test.tsx.snap +90 -30
- package/es/FileUpload/__snapshots__/index.test.tsx.snap +46 -15
- package/es/Footer/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FooterContainer/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FooterContent/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FooterContentLogos/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FooterHeading/__snapshots__/index.test.tsx.snap +24 -9
- package/es/FooterImage/__snapshots__/index.test.tsx.snap +8 -2
- package/es/FooterInlineList/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FooterInlineListItem/__snapshots__/index.test.tsx.snap +6 -6
- package/es/FooterLink/__snapshots__/index.test.tsx.snap +17 -6
- package/es/FooterList/__snapshots__/index.test.tsx.snap +16 -6
- package/es/FooterListItem/__snapshots__/index.test.tsx.snap +6 -6
- package/es/FooterMeta/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FooterMetaItem/__snapshots__/index.test.tsx.snap +24 -9
- package/es/FooterNavigation/__snapshots__/index.test.tsx.snap +8 -3
- package/es/FooterSection/__snapshots__/index.test.tsx.snap +8 -3
- package/es/Form/__snapshots__/index.test.tsx.snap +16 -6
- package/es/GovGRLogo/__snapshots__/index.test.tsx.snap +18 -7
- package/es/Grid/__snapshots__/index.test.tsx.snap +65 -35
- package/es/Header/__snapshots__/index.test.tsx.snap +10 -4
- package/es/HeaderContent/__snapshots__/index.test.tsx.snap +8 -3
- package/es/HeaderLogo/__snapshots__/index.test.tsx.snap +10 -5
- package/es/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +25 -14
- package/es/HeaderSection/__snapshots__/index.test.tsx.snap +8 -3
- package/es/HeaderSubtitle/__snapshots__/index.test.tsx.snap +8 -3
- package/es/HeaderTitle/__snapshots__/index.test.tsx.snap +18 -6
- package/es/Heading/__snapshots__/index.test.tsx.snap +136 -51
- package/es/HeadingCaption/__snapshots__/index.test.tsx.snap +33 -13
- package/es/HellenicRepublicLogo/__snapshots__/index.test.tsx.snap +22 -3
- package/es/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/es/Hint/__snapshots__/index.test.tsx.snap +32 -12
- package/es/LabelContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/es/{Label → LabelContainer}/index.js +2 -2
- package/es/{Label → LabelContainer}/index.test.js +2 -2
- package/es/LabelTitle/__snapshots__/index.test.tsx.snap +90 -30
- package/es/Layout/__snapshots__/index.test.tsx.snap +9 -4
- package/es/LinkBase/__snapshots__/index.test.tsx.snap +50 -0
- package/es/{Link → LinkBase}/index.js +2 -2
- package/es/LinkBase/index.test.js +25 -0
- package/es/List/__snapshots__/index.test.tsx.snap +149 -74
- package/es/ListItem/__snapshots__/index.test.tsx.snap +8 -3
- package/es/Main/__snapshots__/index.test.tsx.snap +10 -3
- package/es/Masthead/__snapshots__/index.test.tsx.snap +8 -3
- package/es/MastheadBody/__snapshots__/index.test.tsx.snap +8 -3
- package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +390 -270
- package/es/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -9
- package/es/NavHorizontalList/__snapshots__/index.test.tsx.snap +8 -3
- package/es/NavHorizontalListItem/__snapshots__/index.test.tsx.snap +45 -15
- package/es/NavVertical/__snapshots__/index.test.tsx.snap +8 -3
- package/es/NavVerticalItem/__snapshots__/index.test.tsx.snap +24 -9
- package/es/NormalText/__snapshots__/index.test.tsx.snap +320 -120
- package/es/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +68 -0
- package/{esm/NotificationBanner → es/NotificationBannerContainer}/index.js +7 -7
- package/es/NotificationBannerContainer/index.test.js +25 -0
- package/es/NotificationBannerContent/__snapshots__/index.test.tsx.snap +8 -3
- package/es/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +11 -6
- package/es/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +8 -3
- package/es/NotificationBannerLink/__snapshots__/index.test.tsx.snap +18 -6
- package/es/PageTitle/__snapshots__/index.test.tsx.snap +8 -3
- package/es/PageTitleCaption/__snapshots__/index.test.tsx.snap +33 -13
- package/es/PageTitleHeading/__snapshots__/index.test.tsx.snap +40 -15
- package/es/PageTitleSection/__snapshots__/index.test.tsx.snap +8 -3
- package/es/Paragraph/__snapshots__/index.test.tsx.snap +328 -123
- package/es/PhaseBanner/__snapshots__/index.test.tsx.snap +22 -12
- package/es/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +8 -3
- package/es/PhaseBannerTag/__snapshots__/index.test.tsx.snap +8 -3
- package/es/PhaseBannerText/__snapshots__/index.test.tsx.snap +8 -3
- package/es/RadioConditional/__snapshots__/index.test.tsx.snap +12 -27
- package/es/RadioContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/es/{Radio → RadioContainer}/index.js +3 -3
- package/es/RadioContainer/index.test.js +9 -0
- package/es/RadioItem/__snapshots__/index.test.tsx.snap +36 -8
- package/es/SectionBreak/__snapshots__/index.test.tsx.snap +42 -12
- package/es/SelectContainer/__snapshots__/index.test.tsx.snap +57 -0
- package/es/{Select → SelectContainer}/index.js +3 -3
- package/es/SelectContainer/index.test.js +26 -0
- package/es/SelectOption/__snapshots__/index.test.tsx.snap +17 -6
- package/es/SkipLink/__snapshots__/index.test.tsx.snap +10 -3
- package/es/SummaryList/__snapshots__/index.test.tsx.snap +8 -3
- package/es/SummaryListItem/__snapshots__/index.test.tsx.snap +8 -3
- package/es/SummaryListItemAction/__snapshots__/index.test.tsx.snap +8 -3
- package/es/SummaryListItemKey/__snapshots__/index.test.tsx.snap +8 -3
- package/es/SummaryListItemValue/__snapshots__/index.test.tsx.snap +8 -3
- package/es/SvgIcon/__snapshots__/index.test.tsx.snap +177 -57
- package/es/Table/__snapshots__/index.test.tsx.snap +40 -15
- package/es/TableBody/__snapshots__/index.test.tsx.snap +8 -3
- package/es/TableCaption/__snapshots__/index.test.tsx.snap +40 -15
- package/es/TableContainer/__snapshots__/index.test.tsx.snap +16 -6
- package/es/TableDataCell/__snapshots__/index.test.tsx.snap +16 -6
- package/es/TableHead/__snapshots__/index.test.tsx.snap +8 -3
- package/es/TableHeadCell/__snapshots__/index.test.tsx.snap +100 -63
- package/es/TableNoDataRow/__snapshots__/index.test.tsx.snap +9 -3
- package/es/TableRow/__snapshots__/index.test.tsx.snap +8 -3
- package/es/Tabs/__snapshots__/index.test.tsx.snap +8 -3
- package/es/TabsHeading/__snapshots__/index.test.tsx.snap +24 -9
- package/es/TabsList/__snapshots__/index.test.tsx.snap +9 -3
- package/es/TabsListItem/__snapshots__/index.test.tsx.snap +65 -15
- package/es/TabsPanel/__snapshots__/index.test.tsx.snap +48 -12
- package/es/TextArea/__snapshots__/index.test.tsx.snap +55 -18
- package/es/TextInput/__snapshots__/index.test.tsx.snap +344 -86
- package/es/Top/__snapshots__/index.test.tsx.snap +8 -3
- package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +195 -75
- package/es/VisuallyHidden/__snapshots__/index.test.tsx.snap +8 -3
- package/es/WarningText/__snapshots__/index.test.tsx.snap +18 -13
- package/es/index.js +8 -10
- package/es/registry.js +16 -20
- package/esm/Accordion/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/AccordionControls/__snapshots__/index.test.tsx.snap +10 -5
- package/esm/AccordionSection/__snapshots__/index.test.tsx.snap +26 -9
- package/esm/AccordionSectionContent/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +14 -9
- package/esm/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +12 -3
- package/esm/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +17 -6
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +56 -24
- package/esm/Aside/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/BackLink/__snapshots__/index.test.tsx.snap +69 -36
- package/esm/Blockquote/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/Bottom/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/Breadcrumbs/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/BreadcrumbsList/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/BreadcrumbsListItem/__snapshots__/index.test.tsx.snap +23 -13
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +281 -193
- package/esm/Button/__snapshots__/index.test.tsx.snap +106 -33
- package/esm/ButtonGroup/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/ButtonLink/__snapshots__/index.test.tsx.snap +94 -33
- package/esm/CallToAction/__snapshots__/index.test.tsx.snap +39 -6
- package/esm/Card/__snapshots__/index.test.tsx.snap +92 -42
- package/esm/CardAction/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/CardHeading/__snapshots__/index.test.tsx.snap +10 -3
- package/esm/CardText/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +56 -24
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +227 -91
- package/esm/Checkbox/__snapshots__/index.test.tsx.snap +35 -19
- package/esm/CheckboxConditional/__snapshots__/index.test.tsx.snap +12 -27
- package/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +26 -6
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +14 -6
- package/esm/Confirmation/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/ConfirmationBody/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/ConfirmationTitle/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/Container/__snapshots__/index.test.tsx.snap +42 -12
- package/esm/CopyrightContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/{Copyright → CopyrightContainer}/index.js +4 -4
- package/esm/CopyrightContainer/index.test.js +9 -0
- package/esm/DateInputContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/{es/DateInput → esm/DateInputContainer}/index.js +4 -4
- package/esm/DateInputContainer/index.test.js +9 -0
- package/esm/DateInputItem/__snapshots__/index.test.tsx.snap +32 -6
- package/esm/Details/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/DetailsContent/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/DetailsSummary/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/ErrorMessage/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/ErrorSummary/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FieldContainer/__snapshots__/index.test.tsx.snap +77 -0
- package/{es/Field → esm/FieldContainer}/index.js +2 -2
- package/esm/FieldContainer/index.test.js +25 -0
- package/esm/Fieldset/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FieldsetLegend/__snapshots__/index.test.tsx.snap +90 -30
- package/esm/FileUpload/__snapshots__/index.test.tsx.snap +46 -15
- package/esm/Footer/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FooterContainer/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FooterContent/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FooterContentLogos/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FooterHeading/__snapshots__/index.test.tsx.snap +24 -9
- package/esm/FooterImage/__snapshots__/index.test.tsx.snap +8 -2
- package/esm/FooterInlineList/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FooterInlineListItem/__snapshots__/index.test.tsx.snap +6 -6
- package/esm/FooterLink/__snapshots__/index.test.tsx.snap +17 -6
- package/esm/FooterList/__snapshots__/index.test.tsx.snap +16 -6
- package/esm/FooterListItem/__snapshots__/index.test.tsx.snap +6 -6
- package/esm/FooterMeta/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FooterMetaItem/__snapshots__/index.test.tsx.snap +24 -9
- package/esm/FooterNavigation/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/FooterSection/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/Form/__snapshots__/index.test.tsx.snap +16 -6
- package/esm/GovGRLogo/__snapshots__/index.test.tsx.snap +18 -7
- package/esm/Grid/__snapshots__/index.test.tsx.snap +65 -35
- package/esm/Header/__snapshots__/index.test.tsx.snap +10 -4
- package/esm/HeaderContent/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/HeaderLogo/__snapshots__/index.test.tsx.snap +10 -5
- package/esm/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +25 -14
- package/esm/HeaderSection/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/HeaderSubtitle/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/HeaderTitle/__snapshots__/index.test.tsx.snap +18 -6
- package/esm/Heading/__snapshots__/index.test.tsx.snap +136 -51
- package/esm/HeadingCaption/__snapshots__/index.test.tsx.snap +33 -13
- package/esm/HellenicRepublicLogo/__snapshots__/index.test.tsx.snap +22 -3
- package/esm/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/esm/Hint/__snapshots__/index.test.tsx.snap +32 -12
- package/esm/LabelContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/{Label → LabelContainer}/index.js +2 -2
- package/esm/{Label → LabelContainer}/index.test.js +2 -2
- package/esm/LabelTitle/__snapshots__/index.test.tsx.snap +90 -30
- package/esm/Layout/__snapshots__/index.test.tsx.snap +9 -4
- package/esm/LinkBase/__snapshots__/index.test.tsx.snap +50 -0
- package/esm/{Link → LinkBase}/index.js +2 -2
- package/esm/LinkBase/index.test.js +25 -0
- package/esm/List/__snapshots__/index.test.tsx.snap +149 -74
- package/esm/ListItem/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/Main/__snapshots__/index.test.tsx.snap +10 -3
- package/esm/Masthead/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/MastheadBody/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +390 -270
- package/esm/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -9
- package/esm/NavHorizontalList/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/NavHorizontalListItem/__snapshots__/index.test.tsx.snap +45 -15
- package/esm/NavVertical/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/NavVerticalItem/__snapshots__/index.test.tsx.snap +24 -9
- package/esm/NormalText/__snapshots__/index.test.tsx.snap +320 -120
- package/esm/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +68 -0
- package/{es/NotificationBanner → esm/NotificationBannerContainer}/index.js +7 -7
- package/esm/NotificationBannerContainer/index.test.js +25 -0
- package/esm/NotificationBannerContent/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +11 -6
- package/esm/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/NotificationBannerLink/__snapshots__/index.test.tsx.snap +18 -6
- package/esm/PageTitle/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/PageTitleCaption/__snapshots__/index.test.tsx.snap +33 -13
- package/esm/PageTitleHeading/__snapshots__/index.test.tsx.snap +40 -15
- package/esm/PageTitleSection/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/Paragraph/__snapshots__/index.test.tsx.snap +328 -123
- package/esm/PhaseBanner/__snapshots__/index.test.tsx.snap +22 -12
- package/esm/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +8 -3
- package/esm/PhaseBannerTag/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/PhaseBannerText/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/RadioConditional/__snapshots__/index.test.tsx.snap +12 -27
- package/esm/RadioContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/{Radio → RadioContainer}/index.js +3 -3
- package/esm/RadioContainer/index.test.js +9 -0
- package/esm/RadioItem/__snapshots__/index.test.tsx.snap +36 -8
- package/esm/SectionBreak/__snapshots__/index.test.tsx.snap +42 -12
- package/esm/SelectContainer/__snapshots__/index.test.tsx.snap +57 -0
- package/esm/{Select → SelectContainer}/index.js +3 -3
- package/esm/SelectContainer/index.test.js +26 -0
- package/esm/SelectOption/__snapshots__/index.test.tsx.snap +17 -6
- package/esm/SkipLink/__snapshots__/index.test.tsx.snap +10 -3
- package/esm/SummaryList/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/SummaryListItem/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/SummaryListItemAction/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/SummaryListItemKey/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/SummaryListItemValue/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/SvgIcon/__snapshots__/index.test.tsx.snap +177 -57
- package/esm/Table/__snapshots__/index.test.tsx.snap +40 -15
- package/esm/TableBody/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/TableCaption/__snapshots__/index.test.tsx.snap +40 -15
- package/esm/TableContainer/__snapshots__/index.test.tsx.snap +16 -6
- package/esm/TableDataCell/__snapshots__/index.test.tsx.snap +16 -6
- package/esm/TableHead/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/TableHeadCell/__snapshots__/index.test.tsx.snap +100 -63
- package/esm/TableNoDataRow/__snapshots__/index.test.tsx.snap +9 -3
- package/esm/TableRow/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/Tabs/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/TabsHeading/__snapshots__/index.test.tsx.snap +24 -9
- package/esm/TabsList/__snapshots__/index.test.tsx.snap +9 -3
- package/esm/TabsListItem/__snapshots__/index.test.tsx.snap +65 -15
- package/esm/TabsPanel/__snapshots__/index.test.tsx.snap +48 -12
- package/esm/TextArea/__snapshots__/index.test.tsx.snap +55 -18
- package/esm/TextInput/__snapshots__/index.test.tsx.snap +344 -86
- package/esm/Top/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +195 -75
- package/esm/VisuallyHidden/__snapshots__/index.test.tsx.snap +8 -3
- package/esm/WarningText/__snapshots__/index.test.tsx.snap +18 -13
- package/esm/index.js +9 -11
- package/esm/registry.js +16 -20
- package/index.d.ts +8 -10
- package/index.js +26 -42
- package/package.json +2 -2
- package/registry.d.ts +8 -10
- package/registry.js +17 -23
- package/Copyright/__snapshots__/index.test.tsx.snap +0 -11
- package/Copyright/index.d.ts +0 -10
- package/DateInput/__snapshots__/index.test.tsx.snap +0 -11
- package/DateInput/index.d.ts +0 -12
- package/Field/__snapshots__/index.test.tsx.snap +0 -35
- package/Field/index.d.ts +0 -13
- package/Field/index.test.js +0 -31
- package/GovGRFooter/__snapshots__/index.test.tsx.snap +0 -11
- package/GovGRFooter/index.d.ts +0 -9
- package/GovGRFooter/index.js +0 -38
- package/GovGRFooter/index.test.js +0 -15
- package/Label/__snapshots__/index.test.tsx.snap +0 -11
- package/Label/index.d.ts +0 -9
- package/Link/__snapshots__/index.test.tsx.snap +0 -35
- package/Link/index.d.ts +0 -14
- package/NotificationBanner/__snapshots__/index.test.tsx.snap +0 -35
- package/Radio/__snapshots__/index.test.tsx.snap +0 -11
- package/Radio/index.d.ts +0 -14
- package/Radio/index.test.js +0 -15
- package/Select/__snapshots__/index.test.tsx.snap +0 -39
- package/Select/index.d.ts +0 -14
- package/Select/index.test.d.ts +0 -1
- package/ServiceBadge/__snapshots__/index.test.tsx.snap +0 -11
- package/ServiceBadge/index.d.ts +0 -11
- package/ServiceBadge/index.js +0 -40
- package/ServiceBadge/index.test.d.ts +0 -1
- package/ServiceBadge/index.test.js +0 -15
- package/es/Copyright/__snapshots__/index.test.tsx.snap +0 -11
- package/es/Copyright/index.test.js +0 -9
- package/es/DateInput/__snapshots__/index.test.tsx.snap +0 -11
- package/es/DateInput/index.test.js +0 -9
- package/es/Field/__snapshots__/index.test.tsx.snap +0 -35
- package/es/Field/index.test.js +0 -25
- package/es/GovGRFooter/__snapshots__/index.test.tsx.snap +0 -11
- package/es/GovGRFooter/index.js +0 -22
- package/es/GovGRFooter/index.test.js +0 -9
- package/es/Label/__snapshots__/index.test.tsx.snap +0 -11
- package/es/Link/__snapshots__/index.test.tsx.snap +0 -35
- package/es/Link/index.test.js +0 -25
- package/es/NotificationBanner/__snapshots__/index.test.tsx.snap +0 -35
- package/es/NotificationBanner/index.test.js +0 -25
- package/es/Radio/__snapshots__/index.test.tsx.snap +0 -11
- package/es/Radio/index.test.js +0 -9
- package/es/Select/__snapshots__/index.test.tsx.snap +0 -39
- package/es/Select/index.test.js +0 -26
- package/es/ServiceBadge/__snapshots__/index.test.tsx.snap +0 -11
- package/es/ServiceBadge/index.js +0 -24
- package/es/ServiceBadge/index.test.js +0 -9
- package/esm/Copyright/__snapshots__/index.test.tsx.snap +0 -11
- package/esm/Copyright/index.test.js +0 -9
- package/esm/DateInput/__snapshots__/index.test.tsx.snap +0 -11
- package/esm/DateInput/index.test.js +0 -9
- package/esm/Field/__snapshots__/index.test.tsx.snap +0 -35
- package/esm/Field/index.test.js +0 -25
- package/esm/GovGRFooter/__snapshots__/index.test.tsx.snap +0 -11
- package/esm/GovGRFooter/index.js +0 -22
- package/esm/GovGRFooter/index.test.js +0 -9
- package/esm/Label/__snapshots__/index.test.tsx.snap +0 -11
- package/esm/Link/__snapshots__/index.test.tsx.snap +0 -35
- package/esm/Link/index.test.js +0 -25
- package/esm/NotificationBanner/__snapshots__/index.test.tsx.snap +0 -35
- package/esm/NotificationBanner/index.test.js +0 -25
- package/esm/Radio/__snapshots__/index.test.tsx.snap +0 -11
- package/esm/Radio/index.test.js +0 -9
- package/esm/Select/__snapshots__/index.test.tsx.snap +0 -39
- package/esm/Select/index.test.js +0 -26
- package/esm/ServiceBadge/__snapshots__/index.test.tsx.snap +0 -11
- package/esm/ServiceBadge/index.js +0 -24
- package/esm/ServiceBadge/index.test.js +0 -9
|
@@ -2,15 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the PhaseBanner with no props 1`] = `
|
|
4
4
|
<ForwardRef(PhaseBanner)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
6
7
|
className="govgr-phase-banner"
|
|
7
8
|
>
|
|
8
|
-
<
|
|
9
|
-
className="govgr-phase-
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-phase-banner"
|
|
10
11
|
>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<p
|
|
13
|
+
className="govgr-phase-banner__content"
|
|
14
|
+
>
|
|
15
|
+
hello
|
|
16
|
+
</p>
|
|
17
|
+
</div>
|
|
18
|
+
</ForwardRef(Base)>
|
|
14
19
|
</ForwardRef(PhaseBanner)>
|
|
15
20
|
`;
|
|
16
21
|
|
|
@@ -18,14 +23,19 @@ exports[`renders the PhaseBanner with underline prop 1`] = `
|
|
|
18
23
|
<ForwardRef(PhaseBanner)
|
|
19
24
|
underline={true}
|
|
20
25
|
>
|
|
21
|
-
<
|
|
26
|
+
<ForwardRef(Base)
|
|
27
|
+
as="div"
|
|
22
28
|
className="govgr-phase-banner__underline govgr-phase-banner"
|
|
23
29
|
>
|
|
24
|
-
<
|
|
25
|
-
className="govgr-phase-
|
|
30
|
+
<div
|
|
31
|
+
className="govgr-phase-banner__underline govgr-phase-banner"
|
|
26
32
|
>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
<p
|
|
34
|
+
className="govgr-phase-banner__content"
|
|
35
|
+
>
|
|
36
|
+
hello
|
|
37
|
+
</p>
|
|
38
|
+
</div>
|
|
39
|
+
</ForwardRef(Base)>
|
|
30
40
|
</ForwardRef(PhaseBanner)>
|
|
31
41
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the PhaseBannerHeaderContainer with no props 1`] = `
|
|
4
4
|
<ForwardRef(PhaseBannerHeaderContainer)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
6
7
|
className="govgr-phase-banner_header"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-phase-banner_header"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(PhaseBannerHeaderContainer)>
|
|
11
16
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the PhaseBannerTag with no props 1`] = `
|
|
4
4
|
<ForwardRef(PhaseBannerTag)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="strong"
|
|
6
7
|
className="govgr-tag govgr-phase-banner__content__tag"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<strong
|
|
10
|
+
className="govgr-tag govgr-phase-banner__content__tag"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</strong>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(PhaseBannerTag)>
|
|
11
16
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the PhaseBannerText with no props 1`] = `
|
|
4
4
|
<ForwardRef(PhaseBannerText)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="span"
|
|
6
7
|
className="govgr-phase-banner__text"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<span
|
|
10
|
+
className="govgr-phase-banner__text"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</span>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(PhaseBannerText)>
|
|
11
16
|
`;
|
|
@@ -1,39 +1,24 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`renders the Blockquote with name prop 1`] = `
|
|
4
|
-
<ForwardRef(RadioConditional)
|
|
5
|
-
name="some-name"
|
|
6
|
-
>
|
|
7
|
-
<div
|
|
8
|
-
className="govgr-radios__conditional"
|
|
9
|
-
>
|
|
10
|
-
<div
|
|
11
|
-
className="govgr-field"
|
|
12
|
-
>
|
|
13
|
-
<label
|
|
14
|
-
className="govgr-label"
|
|
15
|
-
>
|
|
16
|
-
hello
|
|
17
|
-
</label>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</ForwardRef(RadioConditional)>
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
3
|
exports[`renders the Blockquote with no props 1`] = `
|
|
24
4
|
<ForwardRef(RadioConditional)>
|
|
25
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
26
7
|
className="govgr-radios__conditional"
|
|
27
8
|
>
|
|
28
9
|
<div
|
|
29
|
-
className="govgr-
|
|
10
|
+
className="govgr-radios__conditional"
|
|
30
11
|
>
|
|
31
|
-
<
|
|
32
|
-
className="govgr-
|
|
12
|
+
<div
|
|
13
|
+
className="govgr-field"
|
|
33
14
|
>
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
<label
|
|
16
|
+
className="govgr-label"
|
|
17
|
+
>
|
|
18
|
+
hello
|
|
19
|
+
</label>
|
|
20
|
+
</div>
|
|
36
21
|
</div>
|
|
37
|
-
</
|
|
22
|
+
</ForwardRef(Base)>
|
|
38
23
|
</ForwardRef(RadioConditional)>
|
|
39
24
|
`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the RadioContainer with no props 1`] = `
|
|
4
|
+
<ForwardRef(RadioContainer)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-radios"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-radios"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(RadioContainer)>
|
|
16
|
+
`;
|
|
@@ -6,10 +6,10 @@ import Base from '@digigov/react-core/Base';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* RadioContainer component is uses when users can only select one option from a list.
|
|
10
10
|
* It is used as parent component to wrap RadioItem compoent.
|
|
11
11
|
*/
|
|
12
|
-
export var
|
|
12
|
+
export var RadioContainer = /*#__PURE__*/React.forwardRef(function RadioContainer(_ref, ref) {
|
|
13
13
|
var className = _ref.className,
|
|
14
14
|
children = _ref.children,
|
|
15
15
|
inline = _ref.inline,
|
|
@@ -21,4 +21,4 @@ export var Radio = /*#__PURE__*/React.forwardRef(function Radio(_ref, ref) {
|
|
|
21
21
|
className: clsx(className, inline === true && 'govgr-radios--inline', true && 'govgr-radios')
|
|
22
22
|
}, props), children);
|
|
23
23
|
});
|
|
24
|
-
export default
|
|
24
|
+
export default RadioContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import RadioContainer from '@digigov/react-core/RadioContainer';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(RadioContainer, null, "hello");
|
|
6
|
+
|
|
7
|
+
it('renders the RadioContainer with no props', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
@@ -11,11 +11,18 @@ exports[`renders the RadioItem value props 1`] = `
|
|
|
11
11
|
className="govgr-label govgr-radios__label"
|
|
12
12
|
>
|
|
13
13
|
hello
|
|
14
|
-
<
|
|
14
|
+
<ForwardRef(Base)
|
|
15
|
+
as="input"
|
|
15
16
|
className="govgr-radios__input"
|
|
16
17
|
type="radio"
|
|
17
18
|
value="someValue"
|
|
18
|
-
|
|
19
|
+
>
|
|
20
|
+
<input
|
|
21
|
+
className="govgr-radios__input"
|
|
22
|
+
type="radio"
|
|
23
|
+
value="someValue"
|
|
24
|
+
/>
|
|
25
|
+
</ForwardRef(Base)>
|
|
19
26
|
</label>
|
|
20
27
|
</div>
|
|
21
28
|
</ForwardRef(RadioItem)>
|
|
@@ -32,11 +39,18 @@ exports[`renders the RadioItem with name props 1`] = `
|
|
|
32
39
|
className="govgr-label govgr-radios__label"
|
|
33
40
|
>
|
|
34
41
|
hello
|
|
35
|
-
<
|
|
42
|
+
<ForwardRef(Base)
|
|
43
|
+
as="input"
|
|
36
44
|
className="govgr-radios__input"
|
|
37
45
|
name="name"
|
|
38
46
|
type="radio"
|
|
39
|
-
|
|
47
|
+
>
|
|
48
|
+
<input
|
|
49
|
+
className="govgr-radios__input"
|
|
50
|
+
name="name"
|
|
51
|
+
type="radio"
|
|
52
|
+
/>
|
|
53
|
+
</ForwardRef(Base)>
|
|
40
54
|
</label>
|
|
41
55
|
</div>
|
|
42
56
|
</ForwardRef(RadioItem)>
|
|
@@ -54,12 +68,20 @@ exports[`renders the RadioItem with name and value props 1`] = `
|
|
|
54
68
|
className="govgr-label govgr-radios__label"
|
|
55
69
|
>
|
|
56
70
|
hello
|
|
57
|
-
<
|
|
71
|
+
<ForwardRef(Base)
|
|
72
|
+
as="input"
|
|
58
73
|
className="govgr-radios__input"
|
|
59
74
|
name="name"
|
|
60
75
|
type="radio"
|
|
61
76
|
value="someValue"
|
|
62
|
-
|
|
77
|
+
>
|
|
78
|
+
<input
|
|
79
|
+
className="govgr-radios__input"
|
|
80
|
+
name="name"
|
|
81
|
+
type="radio"
|
|
82
|
+
value="someValue"
|
|
83
|
+
/>
|
|
84
|
+
</ForwardRef(Base)>
|
|
63
85
|
</label>
|
|
64
86
|
</div>
|
|
65
87
|
</ForwardRef(RadioItem)>
|
|
@@ -74,10 +96,16 @@ exports[`renders the RadioItem with no props 1`] = `
|
|
|
74
96
|
className="govgr-label govgr-radios__label"
|
|
75
97
|
>
|
|
76
98
|
hello
|
|
77
|
-
<
|
|
99
|
+
<ForwardRef(Base)
|
|
100
|
+
as="input"
|
|
78
101
|
className="govgr-radios__input"
|
|
79
102
|
type="radio"
|
|
80
|
-
|
|
103
|
+
>
|
|
104
|
+
<input
|
|
105
|
+
className="govgr-radios__input"
|
|
106
|
+
type="radio"
|
|
107
|
+
/>
|
|
108
|
+
</ForwardRef(Base)>
|
|
81
109
|
</label>
|
|
82
110
|
</div>
|
|
83
111
|
</ForwardRef(RadioItem)>
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SectionBreak with no props 1`] = `
|
|
4
4
|
<ForwardRef(SectionBreak)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="hr"
|
|
6
7
|
className="govgr-section-break"
|
|
7
|
-
|
|
8
|
+
>
|
|
9
|
+
<hr
|
|
10
|
+
className="govgr-section-break"
|
|
11
|
+
/>
|
|
12
|
+
</ForwardRef(Base)>
|
|
8
13
|
</ForwardRef(SectionBreak)>
|
|
9
14
|
`;
|
|
10
15
|
|
|
@@ -12,9 +17,14 @@ exports[`renders the SectionBreak with size=l 1`] = `
|
|
|
12
17
|
<ForwardRef(SectionBreak)
|
|
13
18
|
size="l"
|
|
14
19
|
>
|
|
15
|
-
<
|
|
20
|
+
<ForwardRef(Base)
|
|
21
|
+
as="hr"
|
|
16
22
|
className="govgr-section-break--l govgr-section-break"
|
|
17
|
-
|
|
23
|
+
>
|
|
24
|
+
<hr
|
|
25
|
+
className="govgr-section-break--l govgr-section-break"
|
|
26
|
+
/>
|
|
27
|
+
</ForwardRef(Base)>
|
|
18
28
|
</ForwardRef(SectionBreak)>
|
|
19
29
|
`;
|
|
20
30
|
|
|
@@ -22,9 +32,14 @@ exports[`renders the SectionBreak with size=m 1`] = `
|
|
|
22
32
|
<ForwardRef(SectionBreak)
|
|
23
33
|
size="m"
|
|
24
34
|
>
|
|
25
|
-
<
|
|
35
|
+
<ForwardRef(Base)
|
|
36
|
+
as="hr"
|
|
26
37
|
className="govgr-section-break--m govgr-section-break"
|
|
27
|
-
|
|
38
|
+
>
|
|
39
|
+
<hr
|
|
40
|
+
className="govgr-section-break--m govgr-section-break"
|
|
41
|
+
/>
|
|
42
|
+
</ForwardRef(Base)>
|
|
28
43
|
</ForwardRef(SectionBreak)>
|
|
29
44
|
`;
|
|
30
45
|
|
|
@@ -32,9 +47,14 @@ exports[`renders the SectionBreak with size=xl 1`] = `
|
|
|
32
47
|
<ForwardRef(SectionBreak)
|
|
33
48
|
size="xl"
|
|
34
49
|
>
|
|
35
|
-
<
|
|
50
|
+
<ForwardRef(Base)
|
|
51
|
+
as="hr"
|
|
36
52
|
className="govgr-section-break--xl govgr-section-break"
|
|
37
|
-
|
|
53
|
+
>
|
|
54
|
+
<hr
|
|
55
|
+
className="govgr-section-break--xl govgr-section-break"
|
|
56
|
+
/>
|
|
57
|
+
</ForwardRef(Base)>
|
|
38
58
|
</ForwardRef(SectionBreak)>
|
|
39
59
|
`;
|
|
40
60
|
|
|
@@ -42,9 +62,14 @@ exports[`renders the SectionBreak with visible=false 1`] = `
|
|
|
42
62
|
<ForwardRef(SectionBreak)
|
|
43
63
|
visible={false}
|
|
44
64
|
>
|
|
45
|
-
<
|
|
65
|
+
<ForwardRef(Base)
|
|
66
|
+
as="hr"
|
|
46
67
|
className="govgr-section-break"
|
|
47
|
-
|
|
68
|
+
>
|
|
69
|
+
<hr
|
|
70
|
+
className="govgr-section-break"
|
|
71
|
+
/>
|
|
72
|
+
</ForwardRef(Base)>
|
|
48
73
|
</ForwardRef(SectionBreak)>
|
|
49
74
|
`;
|
|
50
75
|
|
|
@@ -52,8 +77,13 @@ exports[`renders the SectionBreak with visible=true 1`] = `
|
|
|
52
77
|
<ForwardRef(SectionBreak)
|
|
53
78
|
visible={true}
|
|
54
79
|
>
|
|
55
|
-
<
|
|
80
|
+
<ForwardRef(Base)
|
|
81
|
+
as="hr"
|
|
56
82
|
className="govgr-section-break--visible govgr-section-break"
|
|
57
|
-
|
|
83
|
+
>
|
|
84
|
+
<hr
|
|
85
|
+
className="govgr-section-break--visible govgr-section-break"
|
|
86
|
+
/>
|
|
87
|
+
</ForwardRef(Base)>
|
|
58
88
|
</ForwardRef(SectionBreak)>
|
|
59
89
|
`;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the SelectContainer with name and defaultValue 1`] = `
|
|
4
|
+
<ForwardRef(SelectContainer)
|
|
5
|
+
defaultValue="some-value"
|
|
6
|
+
name="some-name"
|
|
7
|
+
>
|
|
8
|
+
<ForwardRef(Base)
|
|
9
|
+
as="select"
|
|
10
|
+
className="govgr-select"
|
|
11
|
+
defaultValue="some-value"
|
|
12
|
+
name="some-name"
|
|
13
|
+
>
|
|
14
|
+
<select
|
|
15
|
+
className="govgr-select"
|
|
16
|
+
defaultValue="some-value"
|
|
17
|
+
name="some-name"
|
|
18
|
+
>
|
|
19
|
+
hello
|
|
20
|
+
</select>
|
|
21
|
+
</ForwardRef(Base)>
|
|
22
|
+
</ForwardRef(SelectContainer)>
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`renders the SelectContainer with name props 1`] = `
|
|
26
|
+
<ForwardRef(SelectContainer)
|
|
27
|
+
name="some-name"
|
|
28
|
+
>
|
|
29
|
+
<ForwardRef(Base)
|
|
30
|
+
as="select"
|
|
31
|
+
className="govgr-select"
|
|
32
|
+
name="some-name"
|
|
33
|
+
>
|
|
34
|
+
<select
|
|
35
|
+
className="govgr-select"
|
|
36
|
+
name="some-name"
|
|
37
|
+
>
|
|
38
|
+
hello
|
|
39
|
+
</select>
|
|
40
|
+
</ForwardRef(Base)>
|
|
41
|
+
</ForwardRef(SelectContainer)>
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
exports[`renders the SelectContainer with no props 1`] = `
|
|
45
|
+
<ForwardRef(SelectContainer)>
|
|
46
|
+
<ForwardRef(Base)
|
|
47
|
+
as="select"
|
|
48
|
+
className="govgr-select"
|
|
49
|
+
>
|
|
50
|
+
<select
|
|
51
|
+
className="govgr-select"
|
|
52
|
+
>
|
|
53
|
+
hello
|
|
54
|
+
</select>
|
|
55
|
+
</ForwardRef(Base)>
|
|
56
|
+
</ForwardRef(SelectContainer)>
|
|
57
|
+
`;
|
|
@@ -6,10 +6,10 @@ import Base from '@digigov/react-core/Base';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The SelectContainer component allows users to choose an option from a long list.
|
|
10
10
|
* It is used as a parent component to wrap SelectOption component.
|
|
11
11
|
*/
|
|
12
|
-
export var
|
|
12
|
+
export var SelectContainer = /*#__PURE__*/React.forwardRef(function SelectContainer(_ref, ref) {
|
|
13
13
|
var name = _ref.name,
|
|
14
14
|
className = _ref.className,
|
|
15
15
|
children = _ref.children,
|
|
@@ -22,4 +22,4 @@ export var Select = /*#__PURE__*/React.forwardRef(function Select(_ref, ref) {
|
|
|
22
22
|
className: clsx(className, true && 'govgr-select')
|
|
23
23
|
}, props), children);
|
|
24
24
|
});
|
|
25
|
-
export default
|
|
25
|
+
export default SelectContainer;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import SelectContainer from '@digigov/react-core/SelectContainer';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(SelectContainer, null, "hello");
|
|
6
|
+
|
|
7
|
+
it('renders the SelectContainer with no props', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(SelectContainer, {
|
|
12
|
+
name: 'some-name'
|
|
13
|
+
}, "hello");
|
|
14
|
+
|
|
15
|
+
it('renders the SelectContainer with name props', function () {
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(SelectContainer, {
|
|
20
|
+
name: 'some-name',
|
|
21
|
+
defaultValue: 'some-value'
|
|
22
|
+
}, "hello");
|
|
23
|
+
|
|
24
|
+
it('renders the SelectContainer with name and defaultValue', function () {
|
|
25
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
26
|
+
});
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SelectOption with no props 1`] = `
|
|
4
4
|
<ForwardRef(SelectOption)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="option"
|
|
6
7
|
className=""
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<option
|
|
10
|
+
className=""
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</option>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(SelectOption)>
|
|
11
16
|
`;
|
|
12
17
|
|
|
@@ -14,11 +19,17 @@ exports[`renders the SelectOption with value props 1`] = `
|
|
|
14
19
|
<ForwardRef(SelectOption)
|
|
15
20
|
value="some-value"
|
|
16
21
|
>
|
|
17
|
-
<
|
|
22
|
+
<ForwardRef(Base)
|
|
23
|
+
as="option"
|
|
18
24
|
className=""
|
|
19
25
|
value="some-value"
|
|
20
26
|
>
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
<option
|
|
28
|
+
className=""
|
|
29
|
+
value="some-value"
|
|
30
|
+
>
|
|
31
|
+
hello
|
|
32
|
+
</option>
|
|
33
|
+
</ForwardRef(Base)>
|
|
23
34
|
</ForwardRef(SelectOption)>
|
|
24
35
|
`;
|
|
@@ -2,12 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SkipLink with no props 1`] = `
|
|
4
4
|
<ForwardRef(SkipLink)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="a"
|
|
6
7
|
className="govgr--skip-link"
|
|
7
8
|
href="#main-content"
|
|
8
9
|
tabIndex={0}
|
|
9
10
|
>
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
<a
|
|
12
|
+
className="govgr--skip-link"
|
|
13
|
+
href="#main-content"
|
|
14
|
+
tabIndex={0}
|
|
15
|
+
>
|
|
16
|
+
hello
|
|
17
|
+
</a>
|
|
18
|
+
</ForwardRef(Base)>
|
|
12
19
|
</ForwardRef(SkipLink)>
|
|
13
20
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SummaryList with no props 1`] = `
|
|
4
4
|
<ForwardRef(SummaryList)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="dl"
|
|
6
7
|
className="govgr-summary-list"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<dl
|
|
10
|
+
className="govgr-summary-list"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</dl>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(SummaryList)>
|
|
11
16
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SummaryListItem with no props 1`] = `
|
|
4
4
|
<ForwardRef(SummaryListItem)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
6
7
|
className="govgr-summary-list__row"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-summary-list__row"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(SummaryListItem)>
|
|
11
16
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SummaryListItemAction with no props 1`] = `
|
|
4
4
|
<ForwardRef(SummaryListItemAction)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="dd"
|
|
6
7
|
className="govgr-summary-list__actions"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<dd
|
|
10
|
+
className="govgr-summary-list__actions"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</dd>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(SummaryListItemAction)>
|
|
11
16
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SummaryListItemKey with no props 1`] = `
|
|
4
4
|
<ForwardRef(SummaryListItemKey)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="dt"
|
|
6
7
|
className="govgr-summary-list__key"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<dt
|
|
10
|
+
className="govgr-summary-list__key"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</dt>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(SummaryListItemKey)>
|
|
11
16
|
`;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the SummaryListItemValue with no props 1`] = `
|
|
4
4
|
<ForwardRef(SummaryListItemValue)>
|
|
5
|
-
<
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="dd"
|
|
6
7
|
className="govgr-summary-list__value"
|
|
7
8
|
>
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
<dd
|
|
10
|
+
className="govgr-summary-list__value"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</dd>
|
|
14
|
+
</ForwardRef(Base)>
|
|
10
15
|
</ForwardRef(SummaryListItemValue)>
|
|
11
16
|
`;
|