@digigov/react-core 1.0.0-002c630d → 1.0.0-6b93ebf2
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/AccessibilityMenu/index.d.ts +5 -0
- package/AccessibilityMenuOptionButton/index.d.ts +5 -0
- package/AccessibilityMenuSteps/index.d.ts +11 -0
- package/AdminLayout/index.d.ts +4 -0
- package/AutoCompleteInput/index.d.ts +11 -6
- package/AutoCompleteResultList/index.d.ts +15 -10
- package/AutoCompleteResultListItem/index.d.ts +28 -20
- package/AutoCompleteWrapper/index.d.ts +9 -3
- package/BottomInfo/index.d.ts +1 -1
- package/BottomInfoContainer/index.d.ts +1 -1
- package/BreadcrumbsListItem/index.d.ts +3 -2
- package/Button/index.d.ts +15 -8
- package/ButtonLink/index.d.ts +10 -6
- package/Card/index.d.ts +19 -12
- package/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
- package/Checkbox/index.d.ts +8 -5
- package/Checkbox/index.js +3 -3
- package/Checkbox/index.test.js +2 -2
- package/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
- package/CheckboxItem/index.d.ts +4 -4
- package/CheckboxItem/index.js +4 -6
- package/CheckboxItem/index.test.js +2 -2
- package/Chip/index.d.ts +3 -0
- package/ChipKeyValue/index.d.ts +1 -1
- package/ChipKeyValue/index.test.js +15 -0
- package/ChipSection/index.d.ts +4 -0
- package/ChipSectionWrapper/index.d.ts +2 -2
- package/ChipSectionWrapper/index.js +1 -1
- package/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
- package/{ConfirmationTitle → ChoiceDividerText}/index.d.ts +5 -4
- package/{ChoiceDivider → ChoiceDividerText}/index.js +9 -9
- package/{ChoiceDivider → ChoiceDividerText}/index.test.js +2 -4
- package/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
- package/CircularProgress/index.d.ts +15 -10
- package/CircularProgress/index.js +4 -4
- package/CircularProgress/index.test.js +8 -8
- package/Container/__snapshots__/index.test.tsx.snap +6 -6
- package/Container/index.d.ts +12 -6
- package/Container/index.js +5 -5
- package/Container/index.test.js +1 -1
- package/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
- package/CopyToClipboardContainer/index.d.ts +13 -4
- package/CopyToClipboardContainer/index.js +7 -4
- package/CopyToClipboardContainer/index.spec.js +2 -1
- package/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
- package/CopyToClipboardMessage/index.d.ts +7 -10
- package/CopyToClipboardMessage/index.js +3 -4
- package/CopyToClipboardMessage/index.test.js +2 -8
- package/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/CopyrightContainer/index.js +1 -1
- package/DateInputItem/index.d.ts +11 -6
- package/Details/index.d.ts +1 -1
- package/Drawer/index.d.ts +20 -10
- package/DrawerHeading/index.d.ts +5 -17
- package/DrawerHeading/index.js +7 -10
- package/DropdownBase/index.d.ts +16 -9
- package/DropdownBase/index.js +0 -1
- package/DropdownButton/index.d.ts +28 -16
- package/ErrorSummary/index.d.ts +1 -1
- package/ErrorSummary/index.js +8 -8
- package/FieldContainer/index.d.ts +4 -2
- package/FieldsetLegend/index.d.ts +14 -6
- package/FieldsetLegend/index.js +2 -2
- package/FileUpload/index.d.ts +5 -2
- package/FileUploadContainer/index.d.ts +5 -2
- package/FilterCloseButton/index.d.ts +5 -4
- package/FilterOptionsSection/index.d.ts +4 -0
- package/FilterSection/index.d.ts +21 -9
- package/FilterSelectedSection/index.d.ts +4 -0
- package/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/FooterContainer/index.d.ts +7 -5
- package/FooterContainer/index.js +1 -1
- package/FooterHeading/index.d.ts +7 -4
- package/FooterList/index.d.ts +5 -3
- package/FooterMetaItem/index.d.ts +5 -3
- package/Form/index.d.ts +5 -0
- package/Grid/index.d.ts +38 -0
- package/HeaderLogo/index.d.ts +6 -4
- package/HeaderSecondaryLogo/index.d.ts +6 -4
- package/Heading/index.d.ts +12 -6
- package/HeadingCaption/index.d.ts +7 -3
- package/HellenicRepublicLogo/index.d.ts +5 -3
- package/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/Hidden/index.d.ts +29 -4
- package/Hidden/index.js +5 -9
- package/Hint/index.d.ts +6 -3
- package/KitchenSinkContent/index.d.ts +7 -4
- package/LabelTitle/index.d.ts +13 -6
- package/LabeledText/index.d.ts +5 -3
- package/Layout/index.d.ts +5 -0
- package/LinkBase/index.d.ts +5 -3
- package/LinkBase/index.js +3 -2
- package/List/index.d.ts +15 -6
- package/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/LoaderContainer/index.js +1 -1
- package/Masthead/__snapshots__/index.test.tsx.snap +3 -3
- package/Masthead/index.d.ts +8 -5
- package/Masthead/index.js +1 -1
- package/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
- package/ModalContainer/index.d.ts +4 -0
- package/Nav/index.d.ts +31 -16
- package/NavList/index.d.ts +6 -3
- package/NavListItemButton/index.d.ts +14 -9
- package/NavListItemLink/index.d.ts +6 -4
- package/NavMenu/index.d.ts +12 -7
- package/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/NavMenuContainer/index.d.ts +6 -3
- package/NavMenuContainer/index.js +1 -1
- package/NavVerticalItem/index.d.ts +5 -3
- package/NormalText/index.d.ts +27 -13
- package/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
- package/NotificationBannerContainer/index.d.ts +10 -5
- package/NotificationBannerContainer/index.js +6 -5
- package/NotificationBannerContainer/index.test.js +2 -10
- package/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
- package/NotificationBannerHeader/index.js +6 -1
- package/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
- package/NotificationBannerHeading/index.d.ts +3 -3
- package/NotificationBannerHeading/index.js +4 -3
- package/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
- package/NotificationBannerLink/index.d.ts +3 -3
- package/NotificationBannerLink/index.js +3 -7
- package/PageTitleHeading/index.d.ts +4 -7
- package/PageTitleHeading/index.js +7 -9
- package/Pagination/index.d.ts +6 -3
- package/PaginationListItem/index.d.ts +13 -6
- package/Panel/__snapshots__/index.test.tsx.snap +16 -0
- package/Panel/index.d.ts +15 -0
- package/{Confirmation → Panel}/index.js +10 -8
- package/{PageTitle → Panel}/index.test.js +3 -3
- package/{es/ConfirmationBody → PanelBody}/__snapshots__/index.test.tsx.snap +3 -3
- package/{PageTitle → PanelBody}/index.d.ts +4 -4
- package/{ConfirmationBody → PanelBody}/index.js +5 -5
- package/PanelBody/index.test.js +15 -0
- package/{ConfirmationBody → PanelTitle}/__snapshots__/index.test.tsx.snap +3 -3
- package/PanelTitle/index.d.ts +9 -0
- package/{ConfirmationTitle → PanelTitle}/index.js +5 -5
- package/PanelTitle/index.test.js +15 -0
- package/Paragraph/index.d.ts +2 -18
- package/Paragraph/index.js +5 -13
- package/PhaseBanner/index.d.ts +6 -3
- package/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/RadioContainer/index.d.ts +8 -5
- package/RadioContainer/index.js +4 -4
- package/RadioContainer/index.test.js +8 -0
- package/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
- package/RadioItem/index.d.ts +4 -4
- package/RadioItem/index.js +2 -4
- package/Section/index.d.ts +10 -0
- package/{HeaderSubtitle → Section}/index.js +6 -5
- package/Section/index.test.js +15 -0
- package/SectionBreak/index.d.ts +13 -5
- package/SingleCharacterInputItem/index.d.ts +16 -10
- package/StepNavAccordionHeadingText/index.d.ts +16 -10
- package/StepNavAccordionSummaryHeading/index.d.ts +11 -4
- package/StepNavCircleNumber/index.d.ts +7 -4
- package/SummaryList/index.d.ts +7 -4
- package/SummaryListItem/index.d.ts +7 -4
- package/SvgIcon/index.d.ts +20 -6
- package/Table/__snapshots__/index.test.tsx.snap +7 -7
- package/Table/index.d.ts +37 -24
- package/Table/index.js +4 -5
- package/Table/index.test.js +5 -5
- package/TableBody/index.d.ts +7 -3
- package/TableCaption/index.d.ts +9 -4
- package/TableContainer/index.d.ts +5 -2
- package/TableDataCell/index.d.ts +7 -4
- package/TableHeadCell/index.d.ts +17 -8
- package/TableRow/__snapshots__/index.test.tsx.snap +34 -0
- package/TableRow/index.d.ts +15 -4
- package/TableRow/index.js +5 -4
- package/TableRow/index.test.js +16 -0
- package/TabsHeading/index.d.ts +7 -4
- package/TabsListItem/index.d.ts +6 -4
- package/TabsPanel/index.d.ts +6 -4
- package/TaskListItemHeading/index.d.ts +11 -4
- package/TaskListItemTag/index.d.ts +5 -2
- package/TextArea/index.d.ts +5 -3
- package/TextInput/index.d.ts +22 -8
- package/Timeline/index.d.ts +5 -2
- package/TimelineHeading/index.d.ts +11 -4
- package/es/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
- package/es/Checkbox/index.js +3 -3
- package/es/Checkbox/index.test.js +2 -2
- package/es/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
- package/es/CheckboxItem/index.js +4 -6
- package/es/CheckboxItem/index.test.js +2 -2
- package/es/ChipKeyValue/index.test.js +9 -0
- package/es/ChipSectionWrapper/index.js +1 -1
- package/es/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
- package/{esm/ChoiceDivider → es/ChoiceDividerText}/index.js +7 -7
- package/{esm/ChoiceDivider → es/ChoiceDividerText}/index.test.js +2 -4
- package/es/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
- package/es/CircularProgress/index.js +4 -4
- package/es/CircularProgress/index.test.js +8 -8
- package/es/Container/__snapshots__/index.test.tsx.snap +6 -6
- package/es/Container/index.js +5 -5
- package/es/Container/index.test.js +1 -1
- package/es/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
- package/es/CopyToClipboardContainer/index.js +7 -4
- package/es/CopyToClipboardContainer/index.spec.js +2 -1
- package/es/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
- package/es/CopyToClipboardMessage/index.js +3 -4
- package/es/CopyToClipboardMessage/index.test.js +2 -8
- package/es/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/es/CopyrightContainer/index.js +1 -1
- package/es/DrawerHeading/index.js +6 -9
- package/es/DropdownBase/index.js +0 -1
- package/es/ErrorSummary/index.js +8 -8
- package/es/FieldsetLegend/index.js +2 -2
- package/es/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/es/FooterContainer/index.js +1 -1
- package/es/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/es/Hidden/index.js +5 -9
- package/es/LinkBase/index.js +3 -2
- package/es/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/es/LoaderContainer/index.js +1 -1
- package/es/Masthead/__snapshots__/index.test.tsx.snap +3 -3
- package/es/Masthead/index.js +1 -1
- package/es/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
- package/es/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/es/NavMenuContainer/index.js +1 -1
- package/es/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
- package/es/NotificationBannerContainer/index.js +6 -5
- package/es/NotificationBannerContainer/index.test.js +2 -10
- package/es/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
- package/es/NotificationBannerHeader/index.js +5 -1
- package/es/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
- package/es/NotificationBannerHeading/index.js +4 -3
- package/es/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
- package/es/NotificationBannerLink/index.js +3 -7
- package/es/PageTitleHeading/index.js +7 -8
- package/es/Panel/__snapshots__/index.test.tsx.snap +16 -0
- package/es/Panel/index.js +24 -0
- package/es/Panel/index.test.js +9 -0
- package/{esm/ConfirmationBody → es/PanelBody}/__snapshots__/index.test.tsx.snap +3 -3
- package/{esm/ConfirmationBody → es/PanelBody}/index.js +3 -3
- package/es/PanelBody/index.test.js +9 -0
- package/{src/ConfirmationBody → es/PanelTitle}/__snapshots__/index.test.tsx.snap +3 -3
- package/{esm/ConfirmationTitle → es/PanelTitle}/index.js +3 -3
- package/es/PanelTitle/index.test.js +9 -0
- package/es/Paragraph/index.js +5 -12
- package/es/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/es/RadioContainer/index.js +4 -4
- package/es/RadioContainer/index.test.js +8 -0
- package/es/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
- package/es/RadioItem/index.js +2 -4
- package/es/{PageTitle → Section}/index.js +4 -3
- package/es/Section/index.test.js +9 -0
- package/es/Table/__snapshots__/index.test.tsx.snap +7 -7
- package/es/Table/index.js +4 -5
- package/es/Table/index.test.js +5 -5
- package/es/TableDataCell/index.js +1 -1
- package/es/TableRow/__snapshots__/index.test.tsx.snap +34 -0
- package/es/TableRow/index.js +5 -4
- package/es/TableRow/index.test.js +16 -0
- package/es/index.js +5 -8
- package/es/registry.js +10 -16
- package/esm/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
- package/esm/Checkbox/index.js +3 -3
- package/esm/Checkbox/index.test.js +2 -2
- package/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
- package/esm/CheckboxItem/index.js +4 -6
- package/esm/CheckboxItem/index.test.js +2 -2
- package/esm/ChipKeyValue/index.test.js +9 -0
- package/esm/ChipSectionWrapper/index.js +1 -1
- package/esm/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
- package/{es/ChoiceDivider → esm/ChoiceDividerText}/index.js +7 -7
- package/{es/ChoiceDivider → esm/ChoiceDividerText}/index.test.js +2 -4
- package/esm/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
- package/esm/CircularProgress/index.js +4 -4
- package/esm/CircularProgress/index.test.js +8 -8
- package/esm/Container/__snapshots__/index.test.tsx.snap +6 -6
- package/esm/Container/index.js +5 -5
- package/esm/Container/index.test.js +1 -1
- package/esm/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
- package/esm/CopyToClipboardContainer/index.js +7 -4
- package/esm/CopyToClipboardContainer/index.spec.js +2 -1
- package/esm/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
- package/esm/CopyToClipboardMessage/index.js +3 -4
- package/esm/CopyToClipboardMessage/index.test.js +2 -8
- package/esm/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/CopyrightContainer/index.js +1 -1
- package/esm/DrawerHeading/index.js +6 -9
- package/esm/DropdownBase/index.js +0 -1
- package/esm/ErrorSummary/index.js +8 -8
- package/esm/FieldsetLegend/index.js +2 -2
- package/esm/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/FooterContainer/index.js +1 -1
- package/esm/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/esm/Hidden/index.js +5 -9
- package/esm/LinkBase/index.js +3 -2
- package/esm/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/LoaderContainer/index.js +1 -1
- package/esm/Masthead/__snapshots__/index.test.tsx.snap +3 -3
- package/esm/Masthead/index.js +1 -1
- package/esm/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/NavMenuContainer/index.js +1 -1
- package/esm/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
- package/esm/NotificationBannerContainer/index.js +6 -5
- package/esm/NotificationBannerContainer/index.test.js +2 -10
- package/esm/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
- package/esm/NotificationBannerHeader/index.js +5 -1
- package/esm/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
- package/esm/NotificationBannerHeading/index.js +4 -3
- package/esm/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
- package/esm/NotificationBannerLink/index.js +3 -7
- package/esm/PageTitleHeading/index.js +7 -8
- package/esm/Panel/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/Panel/index.js +24 -0
- package/esm/Panel/index.test.js +9 -0
- package/esm/PanelBody/__snapshots__/index.test.tsx.snap +16 -0
- package/{es/ConfirmationBody → esm/PanelBody}/index.js +3 -3
- package/esm/PanelBody/index.test.js +9 -0
- package/esm/PanelTitle/__snapshots__/index.test.tsx.snap +16 -0
- package/{es/ConfirmationTitle → esm/PanelTitle}/index.js +3 -3
- package/esm/PanelTitle/index.test.js +9 -0
- package/esm/Paragraph/index.js +5 -12
- package/esm/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/RadioContainer/index.js +4 -4
- package/esm/RadioContainer/index.test.js +8 -0
- package/esm/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
- package/esm/RadioItem/index.js +2 -4
- package/{es/HeaderSubtitle → esm/Section}/index.js +4 -3
- package/esm/Section/index.test.js +9 -0
- package/esm/Table/__snapshots__/index.test.tsx.snap +7 -7
- package/esm/Table/index.js +4 -5
- package/esm/Table/index.test.js +5 -5
- package/esm/TableDataCell/index.js +1 -1
- package/esm/TableRow/__snapshots__/index.test.tsx.snap +34 -0
- package/esm/TableRow/index.js +5 -4
- package/esm/TableRow/index.test.js +16 -0
- package/esm/index.js +6 -9
- package/esm/registry.js +10 -16
- package/index.d.ts +5 -8
- package/index.js +16 -68
- package/package.json +3 -3
- package/registry.d.ts +5 -8
- package/registry.js +14 -23
- package/src/AccessibilityMenu/index.tsx +6 -1
- package/src/AccessibilityMenuHeader/index.tsx +1 -2
- package/src/AccessibilityMenuOptionButton/index.tsx +6 -1
- package/src/AccessibilityMenuSteps/index.tsx +13 -3
- package/src/AccordionSection/index.tsx +6 -3
- package/src/AdminLayout/index.tsx +5 -1
- package/src/AutoCompleteInput/index.tsx +11 -6
- package/src/AutoCompleteResultList/index.tsx +15 -10
- package/src/AutoCompleteResultListItem/index.tsx +28 -20
- package/src/AutoCompleteWrapper/index.tsx +9 -3
- package/src/BreadcrumbsListItem/index.tsx +3 -2
- package/src/Button/index.tsx +15 -8
- package/src/ButtonLink/index.tsx +10 -6
- package/src/Card/index.tsx +19 -12
- package/src/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
- package/src/Checkbox/index.test.tsx +2 -2
- package/src/Checkbox/index.tsx +9 -6
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
- package/src/CheckboxItem/index.test.tsx +2 -2
- package/src/CheckboxItem/index.tsx +6 -6
- package/src/Chip/index.tsx +4 -1
- package/src/ChipKeyValue/index.test.tsx +8 -0
- package/src/ChipKeyValue/index.tsx +2 -2
- package/src/ChipSection/index.tsx +5 -1
- package/src/ChipSectionWrapper/index.tsx +3 -3
- package/src/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
- package/src/ChoiceDividerText/index.test.tsx +8 -0
- package/src/{ChoiceDivider → ChoiceDividerText}/index.tsx +7 -9
- package/src/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
- package/src/CircularProgress/index.test.tsx +8 -8
- package/src/CircularProgress/index.tsx +20 -17
- package/src/Container/__snapshots__/index.test.tsx.snap +6 -6
- package/src/Container/index.test.tsx +1 -1
- package/src/Container/index.tsx +15 -9
- package/src/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
- package/src/CopyToClipboardContainer/index.spec.tsx +2 -1
- package/src/CopyToClipboardContainer/index.tsx +18 -8
- package/src/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
- package/src/CopyToClipboardMessage/index.test.tsx +4 -4
- package/src/CopyToClipboardMessage/index.tsx +8 -18
- package/src/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/CopyrightContainer/index.tsx +2 -2
- package/src/DateInputItem/index.tsx +11 -6
- package/src/Details/index.tsx +1 -1
- package/src/DetailsSummary/index.tsx +4 -2
- package/src/Drawer/index.tsx +20 -10
- package/src/DrawerHeading/index.tsx +9 -26
- package/src/DropdownBase/index.tsx +16 -10
- package/src/DropdownButton/index.tsx +28 -16
- package/src/ErrorSummary/index.tsx +12 -11
- package/src/FieldContainer/index.tsx +4 -2
- package/src/FieldsetLegend/index.tsx +29 -23
- package/src/FileUpload/index.tsx +5 -2
- package/src/FileUploadContainer/index.tsx +5 -2
- package/src/FilterCloseButton/index.tsx +5 -4
- package/src/FilterOptionsSection/index.tsx +5 -1
- package/src/FilterSection/index.tsx +21 -9
- package/src/FilterSelectedSection/index.tsx +5 -1
- package/src/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterContainer/index.tsx +9 -7
- package/src/FooterHeading/index.tsx +7 -4
- package/src/FooterList/index.tsx +5 -3
- package/src/FooterMetaItem/index.tsx +5 -3
- package/src/Form/index.tsx +6 -1
- package/src/Grid/index.tsx +47 -9
- package/src/HeaderLogo/index.tsx +6 -4
- package/src/HeaderSecondaryLogo/index.tsx +6 -4
- package/src/Heading/index.tsx +12 -6
- package/src/HeadingCaption/index.tsx +7 -3
- package/src/HellenicRepublicLogo/index.tsx +5 -3
- package/src/Hidden/__snapshots__/index.test.tsx.snap +96 -0
- package/src/Hidden/index.tsx +34 -9
- package/src/Hint/index.tsx +6 -3
- package/src/KitchenSinkContent/index.tsx +7 -4
- package/src/LabelTitle/index.tsx +13 -6
- package/src/LabeledText/index.tsx +5 -3
- package/src/Layout/index.tsx +6 -1
- package/src/LinkBase/index.tsx +7 -5
- package/src/List/index.tsx +15 -6
- package/src/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/LoaderContainer/index.tsx +2 -2
- package/src/Masthead/__snapshots__/index.test.tsx.snap +3 -3
- package/src/Masthead/index.tsx +9 -6
- package/src/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
- package/src/ModalContainer/index.tsx +5 -1
- package/src/Nav/index.tsx +31 -16
- package/src/NavList/index.tsx +6 -3
- package/src/NavListItemButton/index.tsx +14 -9
- package/src/NavListItemLink/index.tsx +6 -4
- package/src/NavMenu/index.tsx +12 -7
- package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/NavMenuContainer/index.tsx +7 -4
- package/src/NavVerticalItem/index.tsx +5 -3
- package/src/NormalText/index.tsx +58 -43
- package/src/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
- package/src/NotificationBannerContainer/index.test.tsx +2 -11
- package/src/NotificationBannerContainer/index.tsx +11 -6
- package/src/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
- package/src/NotificationBannerHeader/index.tsx +6 -2
- package/src/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
- package/src/NotificationBannerHeading/index.tsx +6 -5
- package/src/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
- package/src/NotificationBannerLink/index.tsx +5 -7
- package/src/PageTitleHeading/index.tsx +6 -24
- package/src/Pagination/index.tsx +6 -3
- package/src/PaginationListItem/index.tsx +13 -6
- package/src/Panel/__snapshots__/index.test.tsx.snap +16 -0
- package/src/Panel/index.test.tsx +8 -0
- package/src/Panel/index.tsx +34 -0
- package/src/PanelBody/__snapshots__/index.test.tsx.snap +16 -0
- package/src/PanelBody/index.test.tsx +8 -0
- package/src/PanelBody/index.tsx +27 -0
- package/src/PanelTitle/__snapshots__/index.test.tsx.snap +16 -0
- package/src/PanelTitle/index.test.tsx +8 -0
- package/src/PanelTitle/index.tsx +27 -0
- package/src/Paragraph/index.tsx +8 -48
- package/src/PhaseBanner/index.tsx +6 -3
- package/src/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/src/RadioContainer/index.test.tsx +3 -0
- package/src/RadioContainer/index.tsx +9 -6
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
- package/src/RadioItem/index.tsx +6 -6
- package/src/Section/index.test.tsx +8 -0
- package/src/Section/index.tsx +20 -0
- package/src/SectionBreak/index.tsx +13 -5
- package/src/SingleCharacterInputItem/index.tsx +16 -10
- package/src/StepNavAccordionHeadingText/index.tsx +16 -10
- package/src/StepNavAccordionSummaryHeading/index.tsx +11 -4
- package/src/StepNavCircleNumber/index.tsx +7 -4
- package/src/SummaryList/index.tsx +7 -4
- package/src/SummaryListItem/index.tsx +7 -4
- package/src/SvgIcon/index.tsx +20 -6
- package/src/Table/__snapshots__/index.test.tsx.snap +7 -7
- package/src/Table/index.test.tsx +5 -5
- package/src/Table/index.tsx +40 -27
- package/src/TableBody/index.tsx +7 -3
- package/src/TableCaption/index.tsx +9 -4
- package/src/TableContainer/index.tsx +5 -2
- package/src/TableDataCell/index.tsx +8 -4
- package/src/TableHeadCell/index.tsx +17 -8
- package/src/TableRow/__snapshots__/index.test.tsx.snap +34 -0
- package/src/TableRow/index.test.tsx +7 -0
- package/src/TableRow/index.tsx +18 -5
- package/src/TabsHeading/index.tsx +7 -4
- package/src/TabsListItem/index.tsx +6 -4
- package/src/TabsPanel/index.tsx +6 -4
- package/src/TaskListItemHeading/index.tsx +11 -4
- package/src/TaskListItemTag/index.tsx +5 -2
- package/src/TextArea/index.tsx +5 -3
- package/src/TextInput/index.tsx +22 -8
- package/src/Timeline/index.tsx +5 -2
- package/src/TimelineHeading/index.tsx +11 -4
- package/src/index.ts +5 -8
- package/src/registry.js +10 -16
- package/ChoiceDivider/index.d.ts +0 -11
- package/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
- package/Confirmation/index.d.ts +0 -9
- package/Confirmation/index.test.js +0 -15
- package/ConfirmationBody/index.d.ts +0 -9
- package/ConfirmationBody/index.test.js +0 -15
- package/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/ConfirmationTitle/index.test.js +0 -15
- package/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
- package/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
- package/HeaderSubtitle/index.d.ts +0 -9
- package/HeaderSubtitle/index.test.js +0 -15
- package/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/PageTitle/index.js +0 -38
- package/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
- package/PageTitleCaption/index.d.ts +0 -14
- package/PageTitleCaption/index.js +0 -40
- package/PageTitleCaption/index.test.d.ts +0 -1
- package/PageTitleCaption/index.test.js +0 -39
- package/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
- package/PageTitleSection/index.d.ts +0 -10
- package/PageTitleSection/index.js +0 -39
- package/PageTitleSection/index.test.d.ts +0 -1
- package/PageTitleSection/index.test.js +0 -15
- package/es/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
- package/es/Confirmation/index.js +0 -22
- package/es/Confirmation/index.test.js +0 -9
- package/es/ConfirmationBody/index.test.js +0 -9
- package/es/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/es/ConfirmationTitle/index.test.js +0 -9
- package/es/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
- package/es/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
- package/es/HeaderSubtitle/index.test.js +0 -9
- package/es/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/es/PageTitle/index.test.js +0 -9
- package/es/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
- package/es/PageTitleCaption/index.js +0 -24
- package/es/PageTitleCaption/index.test.js +0 -33
- package/es/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
- package/es/PageTitleSection/index.js +0 -23
- package/es/PageTitleSection/index.test.js +0 -9
- package/esm/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
- package/esm/Confirmation/index.js +0 -22
- package/esm/Confirmation/index.test.js +0 -9
- package/esm/ConfirmationBody/index.test.js +0 -9
- package/esm/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/esm/ConfirmationTitle/index.test.js +0 -9
- package/esm/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
- package/esm/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
- package/esm/HeaderSubtitle/index.js +0 -22
- package/esm/HeaderSubtitle/index.test.js +0 -9
- package/esm/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/esm/PageTitle/index.js +0 -22
- package/esm/PageTitle/index.test.js +0 -9
- package/esm/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
- package/esm/PageTitleCaption/index.js +0 -24
- package/esm/PageTitleCaption/index.test.js +0 -33
- package/esm/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
- package/esm/PageTitleSection/index.js +0 -23
- package/esm/PageTitleSection/index.test.js +0 -9
- package/src/ChoiceDivider/index.test.tsx +0 -8
- package/src/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
- package/src/Confirmation/index.test.tsx +0 -8
- package/src/Confirmation/index.tsx +0 -27
- package/src/ConfirmationBody/index.test.tsx +0 -8
- package/src/ConfirmationBody/index.tsx +0 -27
- package/src/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/src/ConfirmationTitle/index.test.tsx +0 -8
- package/src/ConfirmationTitle/index.tsx +0 -27
- package/src/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
- package/src/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
- package/src/HeaderSubtitle/index.test.tsx +0 -8
- package/src/HeaderSubtitle/index.tsx +0 -20
- package/src/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
- package/src/PageTitle/index.test.tsx +0 -8
- package/src/PageTitle/index.tsx +0 -19
- package/src/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
- package/src/PageTitleCaption/index.test.tsx +0 -26
- package/src/PageTitleCaption/index.tsx +0 -38
- package/src/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
- package/src/PageTitleSection/index.test.tsx +0 -8
- package/src/PageTitleSection/index.tsx +0 -21
- /package/{ChoiceDivider → ChipKeyValue}/index.test.d.ts +0 -0
- /package/{Confirmation → ChoiceDividerText}/index.test.d.ts +0 -0
- /package/{ConfirmationBody → Panel}/index.test.d.ts +0 -0
- /package/{ConfirmationTitle → PanelBody}/index.test.d.ts +0 -0
- /package/{HeaderSubtitle → PanelTitle}/index.test.d.ts +0 -0
- /package/{PageTitle → Section}/index.test.d.ts +0 -0
|
@@ -5,13 +5,13 @@ exports[`renders the CircularProgress 1`] = `
|
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
aria-hidden="true"
|
|
7
7
|
as="svg"
|
|
8
|
-
className="govgr-
|
|
8
|
+
className="govgr-circular-progress--md govgr-circular-progress"
|
|
9
9
|
focusable="false"
|
|
10
10
|
viewBox="0 0 200 200"
|
|
11
11
|
>
|
|
12
12
|
<svg
|
|
13
13
|
aria-hidden="true"
|
|
14
|
-
className="govgr-
|
|
14
|
+
className="govgr-circular-progress--md govgr-circular-progress"
|
|
15
15
|
focusable="false"
|
|
16
16
|
viewBox="0 0 200 200"
|
|
17
17
|
>
|
|
@@ -28,21 +28,21 @@ exports[`renders the CircularProgress 1`] = `
|
|
|
28
28
|
</ForwardRef(CircularProgress)>
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
|
-
exports[`renders the CircularProgress with
|
|
31
|
+
exports[`renders the CircularProgress with color=secondary and size lg props 1`] = `
|
|
32
32
|
<ForwardRef(CircularProgress)
|
|
33
|
-
|
|
33
|
+
color="secondary"
|
|
34
34
|
size="lg"
|
|
35
35
|
>
|
|
36
36
|
<ForwardRef(Base)
|
|
37
37
|
aria-hidden="true"
|
|
38
38
|
as="svg"
|
|
39
|
-
className="govgr-
|
|
39
|
+
className="govgr-circular-progress--secondary govgr-circular-progress--lg govgr-circular-progress"
|
|
40
40
|
focusable="false"
|
|
41
41
|
viewBox="0 0 200 200"
|
|
42
42
|
>
|
|
43
43
|
<svg
|
|
44
44
|
aria-hidden="true"
|
|
45
|
-
className="govgr-
|
|
45
|
+
className="govgr-circular-progress--secondary govgr-circular-progress--lg govgr-circular-progress"
|
|
46
46
|
focusable="false"
|
|
47
47
|
viewBox="0 0 200 200"
|
|
48
48
|
>
|
|
@@ -59,21 +59,21 @@ exports[`renders the CircularProgress with inverse and size l props 1`] = `
|
|
|
59
59
|
</ForwardRef(CircularProgress)>
|
|
60
60
|
`;
|
|
61
61
|
|
|
62
|
-
exports[`renders the CircularProgress with
|
|
62
|
+
exports[`renders the CircularProgress with color=secondary and size sm props 1`] = `
|
|
63
63
|
<ForwardRef(CircularProgress)
|
|
64
|
-
|
|
64
|
+
color="secondary"
|
|
65
65
|
size="sm"
|
|
66
66
|
>
|
|
67
67
|
<ForwardRef(Base)
|
|
68
68
|
aria-hidden="true"
|
|
69
69
|
as="svg"
|
|
70
|
-
className="govgr-
|
|
70
|
+
className="govgr-circular-progress--secondary govgr-circular-progress--sm govgr-circular-progress"
|
|
71
71
|
focusable="false"
|
|
72
72
|
viewBox="0 0 200 200"
|
|
73
73
|
>
|
|
74
74
|
<svg
|
|
75
75
|
aria-hidden="true"
|
|
76
|
-
className="govgr-
|
|
76
|
+
className="govgr-circular-progress--secondary govgr-circular-progress--sm govgr-circular-progress"
|
|
77
77
|
focusable="false"
|
|
78
78
|
viewBox="0 0 200 200"
|
|
79
79
|
>
|
|
@@ -90,20 +90,20 @@ exports[`renders the CircularProgress with inverse and size s props 1`] = `
|
|
|
90
90
|
</ForwardRef(CircularProgress)>
|
|
91
91
|
`;
|
|
92
92
|
|
|
93
|
-
exports[`renders the CircularProgress with
|
|
93
|
+
exports[`renders the CircularProgress with color=secondary prop 1`] = `
|
|
94
94
|
<ForwardRef(CircularProgress)
|
|
95
|
-
|
|
95
|
+
color="secondary"
|
|
96
96
|
>
|
|
97
97
|
<ForwardRef(Base)
|
|
98
98
|
aria-hidden="true"
|
|
99
99
|
as="svg"
|
|
100
|
-
className="govgr-
|
|
100
|
+
className="govgr-circular-progress--secondary govgr-circular-progress--md govgr-circular-progress"
|
|
101
101
|
focusable="false"
|
|
102
102
|
viewBox="0 0 200 200"
|
|
103
103
|
>
|
|
104
104
|
<svg
|
|
105
105
|
aria-hidden="true"
|
|
106
|
-
className="govgr-
|
|
106
|
+
className="govgr-circular-progress--secondary govgr-circular-progress--md govgr-circular-progress"
|
|
107
107
|
focusable="false"
|
|
108
108
|
viewBox="0 0 200 200"
|
|
109
109
|
>
|
|
@@ -120,20 +120,20 @@ exports[`renders the CircularProgress with inverse prop 1`] = `
|
|
|
120
120
|
</ForwardRef(CircularProgress)>
|
|
121
121
|
`;
|
|
122
122
|
|
|
123
|
-
exports[`renders the CircularProgress with size
|
|
123
|
+
exports[`renders the CircularProgress with size lg 1`] = `
|
|
124
124
|
<ForwardRef(CircularProgress)
|
|
125
125
|
size="lg"
|
|
126
126
|
>
|
|
127
127
|
<ForwardRef(Base)
|
|
128
128
|
aria-hidden="true"
|
|
129
129
|
as="svg"
|
|
130
|
-
className="govgr-
|
|
130
|
+
className="govgr-circular-progress--lg govgr-circular-progress"
|
|
131
131
|
focusable="false"
|
|
132
132
|
viewBox="0 0 200 200"
|
|
133
133
|
>
|
|
134
134
|
<svg
|
|
135
135
|
aria-hidden="true"
|
|
136
|
-
className="govgr-
|
|
136
|
+
className="govgr-circular-progress--lg govgr-circular-progress"
|
|
137
137
|
focusable="false"
|
|
138
138
|
viewBox="0 0 200 200"
|
|
139
139
|
>
|
|
@@ -150,20 +150,20 @@ exports[`renders the CircularProgress with size l 1`] = `
|
|
|
150
150
|
</ForwardRef(CircularProgress)>
|
|
151
151
|
`;
|
|
152
152
|
|
|
153
|
-
exports[`renders the CircularProgress with size
|
|
153
|
+
exports[`renders the CircularProgress with size sm 1`] = `
|
|
154
154
|
<ForwardRef(CircularProgress)
|
|
155
155
|
size="sm"
|
|
156
156
|
>
|
|
157
157
|
<ForwardRef(Base)
|
|
158
158
|
aria-hidden="true"
|
|
159
159
|
as="svg"
|
|
160
|
-
className="govgr-
|
|
160
|
+
className="govgr-circular-progress--sm govgr-circular-progress"
|
|
161
161
|
focusable="false"
|
|
162
162
|
viewBox="0 0 200 200"
|
|
163
163
|
>
|
|
164
164
|
<svg
|
|
165
165
|
aria-hidden="true"
|
|
166
|
-
className="govgr-
|
|
166
|
+
className="govgr-circular-progress--sm govgr-circular-progress"
|
|
167
167
|
focusable="false"
|
|
168
168
|
viewBox="0 0 200 200"
|
|
169
169
|
>
|
|
@@ -7,22 +7,22 @@ it('renders the CircularProgress', () => {
|
|
|
7
7
|
expect(mount(<CircularProgress />)).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
it('renders the CircularProgress with size
|
|
10
|
+
it('renders the CircularProgress with size sm', () => {
|
|
11
11
|
expect(mount(<CircularProgress size="sm" />)).toMatchSnapshot();
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
it('renders the CircularProgress with size
|
|
14
|
+
it('renders the CircularProgress with size lg', () => {
|
|
15
15
|
expect(mount(<CircularProgress size="lg" />)).toMatchSnapshot();
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
it('renders the CircularProgress with
|
|
19
|
-
expect(mount(<CircularProgress
|
|
18
|
+
it('renders the CircularProgress with color=secondary prop', () => {
|
|
19
|
+
expect(mount(<CircularProgress color={'secondary'} />)).toMatchSnapshot();
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
it('renders the CircularProgress with
|
|
23
|
-
expect(mount(<CircularProgress
|
|
22
|
+
it('renders the CircularProgress with color=secondary and size sm props', () => {
|
|
23
|
+
expect(mount(<CircularProgress color={'secondary'} size="sm" />)).toMatchSnapshot();
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
it('renders the CircularProgress with
|
|
27
|
-
expect(mount(<CircularProgress
|
|
26
|
+
it('renders the CircularProgress with color=secondary and size lg props', () => {
|
|
27
|
+
expect(mount(<CircularProgress color={'secondary'} size="lg" />)).toMatchSnapshot();
|
|
28
28
|
});
|
|
@@ -4,18 +4,21 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface CircularProgressProps extends BaseProps<'svg'> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
* color prop is optional.
|
|
8
|
+
* color prop is used to change the color of the loader.
|
|
9
|
+
* @value 'primary' is the default color.
|
|
10
|
+
* @value 'secondary' recommended for dark backgrounds.
|
|
11
|
+
* @default 'primary'
|
|
12
|
+
*/
|
|
13
|
+
color?: 'primary' | 'secondary';
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
* size prop is optional.
|
|
16
|
+
* size prop is used to change the size of the loader.
|
|
17
|
+
* @value 'sm'
|
|
18
|
+
* @value 'md'
|
|
19
|
+
* @value 'lg'
|
|
20
|
+
* @default 'md'
|
|
21
|
+
*/
|
|
19
22
|
size?: 'sm' | 'md' | 'lg';
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
@@ -26,7 +29,7 @@ export const CircularProgress = React.forwardRef<
|
|
|
26
29
|
SVGSVGElement,
|
|
27
30
|
CircularProgressProps
|
|
28
31
|
>(function CircularProgress(
|
|
29
|
-
{
|
|
32
|
+
{ color = 'primary', size = 'md', className, ...props },
|
|
30
33
|
ref
|
|
31
34
|
) {
|
|
32
35
|
return (
|
|
@@ -34,11 +37,11 @@ export const CircularProgress = React.forwardRef<
|
|
|
34
37
|
as="svg"
|
|
35
38
|
ref={ref}
|
|
36
39
|
className={clsx(className, {
|
|
37
|
-
'govgr-
|
|
38
|
-
'govgr-
|
|
39
|
-
'govgr-
|
|
40
|
-
'govgr-
|
|
41
|
-
'govgr-
|
|
40
|
+
'govgr-circular-progress': true,
|
|
41
|
+
'govgr-circular-progress--secondary': color === 'secondary',
|
|
42
|
+
'govgr-circular-progress--sm': size === 'sm',
|
|
43
|
+
'govgr-circular-progress--md': size === 'md',
|
|
44
|
+
'govgr-circular-progress--lg': size === 'lg',
|
|
42
45
|
})}
|
|
43
46
|
focusable="false"
|
|
44
47
|
viewBox="0 0 200 200"
|
|
@@ -7,10 +7,10 @@ exports[`renders the Container with cols={false} prop 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<ForwardRef(Base)
|
|
9
9
|
as="div"
|
|
10
|
-
className="govgr-full-width
|
|
10
|
+
className="govgr-container--full-width"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
className="govgr-full-width
|
|
13
|
+
className="govgr-container--full-width"
|
|
14
14
|
>
|
|
15
15
|
<ForwardRef(Base)
|
|
16
16
|
as="div"
|
|
@@ -33,10 +33,10 @@ exports[`renders the Container with fullWidth prop 1`] = `
|
|
|
33
33
|
>
|
|
34
34
|
<ForwardRef(Base)
|
|
35
35
|
as="div"
|
|
36
|
-
className="govgr-full-width
|
|
36
|
+
className="govgr-container--full-width"
|
|
37
37
|
>
|
|
38
38
|
<div
|
|
39
|
-
className="govgr-full-width
|
|
39
|
+
className="govgr-container--full-width"
|
|
40
40
|
>
|
|
41
41
|
<ForwardRef(Base)
|
|
42
42
|
as="div"
|
|
@@ -57,10 +57,10 @@ exports[`renders the Container with no props 1`] = `
|
|
|
57
57
|
<ForwardRef(Container)>
|
|
58
58
|
<ForwardRef(Base)
|
|
59
59
|
as="div"
|
|
60
|
-
className="govgr-
|
|
60
|
+
className="govgr-container"
|
|
61
61
|
>
|
|
62
62
|
<div
|
|
63
|
-
className="govgr-
|
|
63
|
+
className="govgr-container"
|
|
64
64
|
>
|
|
65
65
|
<ForwardRef(Base)
|
|
66
66
|
as="div"
|
package/src/Container/index.tsx
CHANGED
|
@@ -4,20 +4,26 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface ContainerProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* grid is optional. Set to false if you don't need 3 columns layout.
|
|
8
|
+
* @value true
|
|
9
|
+
* @value false
|
|
10
|
+
* @default true
|
|
8
11
|
*/
|
|
9
|
-
|
|
12
|
+
grid?: boolean;
|
|
10
13
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
* fullWidth is optional. Set to true if you need a full width layout.
|
|
15
|
+
* @value true
|
|
16
|
+
* @value false
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
fullWidth?: boolean;
|
|
14
20
|
}
|
|
15
21
|
/**
|
|
16
22
|
* Use Container as a wrapper.
|
|
17
23
|
*/
|
|
18
24
|
export const Container = React.forwardRef<HTMLDivElement, ContainerProps>(
|
|
19
25
|
function Container(
|
|
20
|
-
{
|
|
26
|
+
{ grid = true, fullWidth = false, className, children, ...props },
|
|
21
27
|
ref
|
|
22
28
|
) {
|
|
23
29
|
return (
|
|
@@ -25,15 +31,15 @@ export const Container = React.forwardRef<HTMLDivElement, ContainerProps>(
|
|
|
25
31
|
as="div"
|
|
26
32
|
ref={ref}
|
|
27
33
|
className={clsx(className, {
|
|
28
|
-
'govgr-
|
|
29
|
-
'govgr-full-width
|
|
34
|
+
'govgr-container': true,
|
|
35
|
+
'govgr-container--full-width': fullWidth,
|
|
30
36
|
})}
|
|
31
37
|
{...props}
|
|
32
38
|
>
|
|
33
39
|
<Base
|
|
34
40
|
as="div"
|
|
35
41
|
className={clsx({
|
|
36
|
-
'govgr-main-wrapper':
|
|
42
|
+
'govgr-main-wrapper': grid,
|
|
37
43
|
})}
|
|
38
44
|
>
|
|
39
45
|
{children}
|
|
@@ -4,13 +4,13 @@ exports[`renders the CopyToClipboardContainer with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(CopyToClipboardContainer)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="div"
|
|
7
|
-
className="govgr-copy-to-clipboard
|
|
7
|
+
className="govgr-copy-to-clipboard"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
className="govgr-copy-to-clipboard
|
|
10
|
+
className="govgr-copy-to-clipboard"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
className=""
|
|
13
|
+
className="govgr-copy-to-clipboard__tooltip--right govgr-copy-to-clipboard__tooltip"
|
|
14
14
|
>
|
|
15
15
|
Text copied!
|
|
16
16
|
</div>
|
|
@@ -25,13 +25,13 @@ exports[`renders the CopyToClipboardContainer with variant=banner 1`] = `
|
|
|
25
25
|
>
|
|
26
26
|
<ForwardRef(Base)
|
|
27
27
|
as="div"
|
|
28
|
-
className="govgr-copy-to-clipboard
|
|
28
|
+
className="govgr-copy-to-clipboard"
|
|
29
29
|
>
|
|
30
30
|
<div
|
|
31
|
-
className="govgr-copy-to-clipboard
|
|
31
|
+
className="govgr-copy-to-clipboard"
|
|
32
32
|
>
|
|
33
33
|
<div
|
|
34
|
-
className=""
|
|
34
|
+
className="govgr-copy-to-clipboard__banner"
|
|
35
35
|
>
|
|
36
36
|
Text copied!
|
|
37
37
|
</div>
|
|
@@ -42,17 +42,18 @@ exports[`renders the CopyToClipboardContainer with variant=banner 1`] = `
|
|
|
42
42
|
|
|
43
43
|
exports[`renders the CopyToClipboardContainer with variant=tooltip 1`] = `
|
|
44
44
|
<ForwardRef(CopyToClipboardContainer)
|
|
45
|
-
|
|
45
|
+
tooltipAlign="right"
|
|
46
|
+
variant="tooltip"
|
|
46
47
|
>
|
|
47
48
|
<ForwardRef(Base)
|
|
48
49
|
as="div"
|
|
49
|
-
className="govgr-copy-to-clipboard
|
|
50
|
+
className="govgr-copy-to-clipboard"
|
|
50
51
|
>
|
|
51
52
|
<div
|
|
52
|
-
className="govgr-copy-to-clipboard
|
|
53
|
+
className="govgr-copy-to-clipboard"
|
|
53
54
|
>
|
|
54
55
|
<div
|
|
55
|
-
className="govgr-copy-to-
|
|
56
|
+
className="govgr-copy-to-clipboard__tooltip--right govgr-copy-to-clipboard__tooltip"
|
|
56
57
|
>
|
|
57
58
|
Text copied!
|
|
58
59
|
</div>
|
|
@@ -11,7 +11,8 @@ it('renders the CopyToClipboardContainer with no props', () => {
|
|
|
11
11
|
it('renders the CopyToClipboardContainer with variant=tooltip', () => {
|
|
12
12
|
expect(
|
|
13
13
|
mount(
|
|
14
|
-
<CopyToClipboardContainer variant="tooltip
|
|
14
|
+
<CopyToClipboardContainer variant="tooltip"
|
|
15
|
+
tooltipAlign="right">
|
|
15
16
|
Text copied!
|
|
16
17
|
</CopyToClipboardContainer>
|
|
17
18
|
)
|
|
@@ -4,11 +4,19 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface CopyToClipboardContainerProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
* 'tooltip' is used when you want to show the message inside a tooltip.
|
|
8
|
-
* 'banner' is used when you want to show the message inside a banner.
|
|
7
|
+
* @value 'tooltip' is used when you want to show the message inside a tooltip.
|
|
8
|
+
* @value 'banner' is used when you want to show the message inside a banner.
|
|
9
|
+
* @default 'tooltip'
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
variant?: 'tooltip' | 'banner';
|
|
12
|
+
/**
|
|
13
|
+
* tooltipAlign is optional.
|
|
14
|
+
* tooltipAlign prop adds tooltip right or left and is used only if variant is tooltip.
|
|
15
|
+
* @value 'right'
|
|
16
|
+
* @value 'left'
|
|
17
|
+
* @default 'right'
|
|
18
|
+
*/
|
|
19
|
+
tooltipAlign?: 'right' | 'left';
|
|
12
20
|
}
|
|
13
21
|
/**
|
|
14
22
|
* CopyToClipboardContainer is a wrapper component for CopyToClipboardMessage
|
|
@@ -17,7 +25,7 @@ export const CopyToClipboardContainer = React.forwardRef<
|
|
|
17
25
|
HTMLDivElement,
|
|
18
26
|
CopyToClipboardContainerProps
|
|
19
27
|
>(function CopyToClipboardContainer(
|
|
20
|
-
{ variant, className, children, ...props },
|
|
28
|
+
{ variant = 'tooltip', tooltipAlign = 'right', className, children, ...props },
|
|
21
29
|
ref
|
|
22
30
|
) {
|
|
23
31
|
return (
|
|
@@ -26,14 +34,16 @@ export const CopyToClipboardContainer = React.forwardRef<
|
|
|
26
34
|
ref={ref}
|
|
27
35
|
{...props}
|
|
28
36
|
className={clsx(className, {
|
|
29
|
-
'govgr-copy-to-clipboard
|
|
37
|
+
'govgr-copy-to-clipboard': true,
|
|
30
38
|
})}
|
|
31
39
|
{...props}
|
|
32
40
|
>
|
|
33
41
|
<div
|
|
34
42
|
className={clsx(className, {
|
|
35
|
-
'govgr-copy-to-
|
|
36
|
-
|
|
43
|
+
'govgr-copy-to-clipboard__tooltip': variant === 'tooltip',
|
|
44
|
+
'govgr-copy-to-clipboard__tooltip--left': variant === 'tooltip' && tooltipAlign === 'left',
|
|
45
|
+
'govgr-copy-to-clipboard__tooltip--right': variant === 'tooltip' && tooltipAlign === 'right',
|
|
46
|
+
'govgr-copy-to-clipboard__banner': variant === 'banner',
|
|
37
47
|
})}
|
|
38
48
|
>
|
|
39
49
|
{children}
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
exports[`renders the CopyToClipboardMessage with banner copied prop 1`] = `
|
|
4
4
|
<ForwardRef(CopyToClipboardMessage)
|
|
5
5
|
enabled={true}
|
|
6
|
-
variant="banner"
|
|
7
6
|
>
|
|
8
7
|
<ForwardRef(Base)
|
|
9
8
|
as="div"
|
|
10
|
-
className="govgr-copy-to-
|
|
9
|
+
className="govgr-copy-to-clipboard__message"
|
|
11
10
|
>
|
|
12
11
|
<div
|
|
13
|
-
className="govgr-copy-to-
|
|
12
|
+
className="govgr-copy-to-clipboard__message"
|
|
14
13
|
>
|
|
15
14
|
Text copied!
|
|
16
15
|
</div>
|
|
@@ -19,15 +18,13 @@ exports[`renders the CopyToClipboardMessage with banner copied prop 1`] = `
|
|
|
19
18
|
`;
|
|
20
19
|
|
|
21
20
|
exports[`renders the CopyToClipboardMessage with banner prop 1`] = `
|
|
22
|
-
<ForwardRef(CopyToClipboardMessage)
|
|
23
|
-
variant="banner"
|
|
24
|
-
>
|
|
21
|
+
<ForwardRef(CopyToClipboardMessage)>
|
|
25
22
|
<ForwardRef(Base)
|
|
26
23
|
as="div"
|
|
27
|
-
className="govgr-copy-to-clipboard--
|
|
24
|
+
className="govgr-copy-to-clipboard--hidden govgr-copy-to-clipboard__message"
|
|
28
25
|
>
|
|
29
26
|
<div
|
|
30
|
-
className="govgr-copy-to-clipboard--
|
|
27
|
+
className="govgr-copy-to-clipboard--hidden govgr-copy-to-clipboard__message"
|
|
31
28
|
>
|
|
32
29
|
Text copied!
|
|
33
30
|
</div>
|
|
@@ -41,10 +38,10 @@ exports[`renders the CopyToClipboardMessage with copied prop 1`] = `
|
|
|
41
38
|
>
|
|
42
39
|
<ForwardRef(Base)
|
|
43
40
|
as="div"
|
|
44
|
-
className=""
|
|
41
|
+
className="govgr-copy-to-clipboard__message"
|
|
45
42
|
>
|
|
46
43
|
<div
|
|
47
|
-
className=""
|
|
44
|
+
className="govgr-copy-to-clipboard__message"
|
|
48
45
|
>
|
|
49
46
|
Text copied!
|
|
50
47
|
</div>
|
|
@@ -56,10 +53,10 @@ exports[`renders the CopyToClipboardMessage with no props 1`] = `
|
|
|
56
53
|
<ForwardRef(CopyToClipboardMessage)>
|
|
57
54
|
<ForwardRef(Base)
|
|
58
55
|
as="div"
|
|
59
|
-
className="govgr-copy-to-clipboard--hidden"
|
|
56
|
+
className="govgr-copy-to-clipboard--hidden govgr-copy-to-clipboard__message"
|
|
60
57
|
>
|
|
61
58
|
<div
|
|
62
|
-
className="govgr-copy-to-clipboard--hidden"
|
|
59
|
+
className="govgr-copy-to-clipboard--hidden govgr-copy-to-clipboard__message"
|
|
63
60
|
>
|
|
64
61
|
Text copied!
|
|
65
62
|
</div>
|
|
@@ -70,14 +67,13 @@ exports[`renders the CopyToClipboardMessage with no props 1`] = `
|
|
|
70
67
|
exports[`renders the CopyToClipboardMessage with tooltip and copied prop 1`] = `
|
|
71
68
|
<ForwardRef(CopyToClipboardMessage)
|
|
72
69
|
enabled={true}
|
|
73
|
-
variant="tooltip-right"
|
|
74
70
|
>
|
|
75
71
|
<ForwardRef(Base)
|
|
76
72
|
as="div"
|
|
77
|
-
className="govgr-copy-to-
|
|
73
|
+
className="govgr-copy-to-clipboard__message"
|
|
78
74
|
>
|
|
79
75
|
<div
|
|
80
|
-
className="govgr-copy-to-
|
|
76
|
+
className="govgr-copy-to-clipboard__message"
|
|
81
77
|
>
|
|
82
78
|
Text copied!
|
|
83
79
|
</div>
|
|
@@ -86,15 +82,13 @@ exports[`renders the CopyToClipboardMessage with tooltip and copied prop 1`] = `
|
|
|
86
82
|
`;
|
|
87
83
|
|
|
88
84
|
exports[`renders the CopyToClipboardMessage with tooltip prop 1`] = `
|
|
89
|
-
<ForwardRef(CopyToClipboardMessage)
|
|
90
|
-
variant="tooltip-right"
|
|
91
|
-
>
|
|
85
|
+
<ForwardRef(CopyToClipboardMessage)>
|
|
92
86
|
<ForwardRef(Base)
|
|
93
87
|
as="div"
|
|
94
|
-
className="govgr-copy-to-clipboard--
|
|
88
|
+
className="govgr-copy-to-clipboard--hidden govgr-copy-to-clipboard__message"
|
|
95
89
|
>
|
|
96
90
|
<div
|
|
97
|
-
className="govgr-copy-to-clipboard--
|
|
91
|
+
className="govgr-copy-to-clipboard--hidden govgr-copy-to-clipboard__message"
|
|
98
92
|
>
|
|
99
93
|
Text copied!
|
|
100
94
|
</div>
|
|
@@ -12,7 +12,7 @@ it('renders the CopyToClipboardMessage with no props', () => {
|
|
|
12
12
|
it('renders the CopyToClipboardMessage with banner prop', () => {
|
|
13
13
|
expect(
|
|
14
14
|
mount(
|
|
15
|
-
<CopyToClipboardMessage
|
|
15
|
+
<CopyToClipboardMessage>
|
|
16
16
|
Text copied!
|
|
17
17
|
</CopyToClipboardMessage>
|
|
18
18
|
)
|
|
@@ -22,7 +22,7 @@ it('renders the CopyToClipboardMessage with banner prop', () => {
|
|
|
22
22
|
it('renders the CopyToClipboardMessage with tooltip prop', () => {
|
|
23
23
|
expect(
|
|
24
24
|
mount(
|
|
25
|
-
<CopyToClipboardMessage
|
|
25
|
+
<CopyToClipboardMessage>
|
|
26
26
|
Text copied!
|
|
27
27
|
</CopyToClipboardMessage>
|
|
28
28
|
)
|
|
@@ -42,7 +42,7 @@ it('renders the CopyToClipboardMessage with copied prop', () => {
|
|
|
42
42
|
it('renders the CopyToClipboardMessage with tooltip and copied prop', () => {
|
|
43
43
|
expect(
|
|
44
44
|
mount(
|
|
45
|
-
<CopyToClipboardMessage
|
|
45
|
+
<CopyToClipboardMessage enabled={true}>
|
|
46
46
|
Text copied!
|
|
47
47
|
</CopyToClipboardMessage>
|
|
48
48
|
)
|
|
@@ -52,7 +52,7 @@ it('renders the CopyToClipboardMessage with tooltip and copied prop', () => {
|
|
|
52
52
|
it('renders the CopyToClipboardMessage with banner copied prop', () => {
|
|
53
53
|
expect(
|
|
54
54
|
mount(
|
|
55
|
-
<CopyToClipboardMessage
|
|
55
|
+
<CopyToClipboardMessage enabled={true}>
|
|
56
56
|
Text copied!
|
|
57
57
|
</CopyToClipboardMessage>
|
|
58
58
|
)
|
|
@@ -4,18 +4,12 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface CopyToClipboardMessageProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* enabled is a boolean prop passed from the CopyToClipboard component.
|
|
15
|
-
* When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.
|
|
16
|
-
* When it's false it resets the animations of the CopyToClipboardMessage.
|
|
17
|
-
*/
|
|
18
|
-
|
|
7
|
+
* enabled is a boolean prop passed from the CopyToClipboard component.
|
|
8
|
+
* When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.
|
|
9
|
+
* When it's false it resets the animations of the CopyToClipboardMessage.
|
|
10
|
+
* @value true
|
|
11
|
+
* @value false
|
|
12
|
+
*/
|
|
19
13
|
enabled?: boolean;
|
|
20
14
|
}
|
|
21
15
|
/**
|
|
@@ -26,7 +20,7 @@ export const CopyToClipboardMessage = React.forwardRef<
|
|
|
26
20
|
HTMLDivElement,
|
|
27
21
|
CopyToClipboardMessageProps
|
|
28
22
|
>(function CopyToClipboardMessage(
|
|
29
|
-
{
|
|
23
|
+
{ enabled, className, children, ...props },
|
|
30
24
|
ref
|
|
31
25
|
) {
|
|
32
26
|
return (
|
|
@@ -34,11 +28,7 @@ export const CopyToClipboardMessage = React.forwardRef<
|
|
|
34
28
|
as="div"
|
|
35
29
|
ref={ref}
|
|
36
30
|
className={clsx(className, {
|
|
37
|
-
'govgr-copy-to-
|
|
38
|
-
'govgr-copy-to-clipboard--tooltip':
|
|
39
|
-
variant === 'tooltip-left' || variant === 'tooltip-right',
|
|
40
|
-
'govgr-copy-to-clipboard--tooltip-right': variant === 'tooltip-right',
|
|
41
|
-
'govgr-copy-to-clipboard--tooltip-left': variant === 'tooltip-left',
|
|
31
|
+
'govgr-copy-to-clipboard__message': true,
|
|
42
32
|
'govgr-copy-to-clipboard--hidden': !enabled,
|
|
43
33
|
})}
|
|
44
34
|
{...props}
|
|
@@ -4,10 +4,10 @@ exports[`renders the CopyrightContainer with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(CopyrightContainer)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="p"
|
|
7
|
-
className="govgr-
|
|
7
|
+
className="govgr-footer__copyright"
|
|
8
8
|
>
|
|
9
9
|
<p
|
|
10
|
-
className="govgr-
|
|
10
|
+
className="govgr-footer__copyright"
|
|
11
11
|
>
|
|
12
12
|
hello
|
|
13
13
|
</p>
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface CopyrightContainerProps extends BaseProps<'p'> {}
|
|
5
|
+
export interface CopyrightContainerProps extends BaseProps<'p'> { }
|
|
6
6
|
/**
|
|
7
7
|
* CopyrightContainer is used inside the Footer component.
|
|
8
8
|
* CopyrightContainer has no props.
|
|
@@ -16,7 +16,7 @@ export const CopyrightContainer = React.forwardRef<
|
|
|
16
16
|
as="p"
|
|
17
17
|
ref={ref}
|
|
18
18
|
className={clsx(className, {
|
|
19
|
-
'govgr-
|
|
19
|
+
'govgr-footer__copyright': true,
|
|
20
20
|
})}
|
|
21
21
|
{...props}
|
|
22
22
|
>
|