@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,17 +5,22 @@ import { ArrowIcon } from '@digigov/react-icons';
|
|
|
5
5
|
|
|
6
6
|
export interface NavListItemButtonProps extends ButtonProps {
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
* When the NavListItemButton is active, that means that we are in this option / page of the Nav.
|
|
9
|
+
* NavListItemButton for nav menu.
|
|
10
|
+
* active is optional.
|
|
11
|
+
*
|
|
12
|
+
* @value true
|
|
13
|
+
* @value false
|
|
14
|
+
*/
|
|
13
15
|
active?: boolean;
|
|
14
16
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* use arrow prop if you want to have arrows in navigation buttons.
|
|
18
|
+
* arrow is optional.
|
|
19
|
+
*
|
|
20
|
+
* @value true
|
|
21
|
+
* @value false
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
19
24
|
arrow?: boolean;
|
|
20
25
|
}
|
|
21
26
|
/**
|
|
@@ -5,10 +5,12 @@ import Link from '@digigov/react-core/LinkBase';
|
|
|
5
5
|
|
|
6
6
|
export interface NavListItemLinkProps extends BaseProps<'a'> {
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
* When the NavListItemLink is active, that means that we are in this option / page of the Nav.
|
|
9
|
+
* active is optional.
|
|
10
|
+
*
|
|
11
|
+
* @value true
|
|
12
|
+
* @value false
|
|
13
|
+
*/
|
|
12
14
|
active?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/**
|
package/src/NavMenu/index.tsx
CHANGED
|
@@ -4,15 +4,20 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface NavMenuProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* active is optional.
|
|
8
|
+
* Exactly one NavMenu should be active every time.
|
|
9
|
+
* This declares that this content is active and should depend of the 'selected' NavItem.
|
|
10
|
+
* @value true
|
|
11
|
+
* @value false
|
|
12
|
+
*/
|
|
11
13
|
active?: boolean;
|
|
12
14
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
* layout prop sets the display layout for the nav list
|
|
16
|
+
* layout is horizontal by default.
|
|
17
|
+
* @value 'vertical'
|
|
18
|
+
* @value 'horizontal'
|
|
19
|
+
* @default 'horizontal'
|
|
20
|
+
*/
|
|
16
21
|
layout?: 'vertical' | 'horizontal';
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
@@ -7,10 +7,10 @@ exports[`renders the NavMenuContainer with no props 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<ForwardRef(Base)
|
|
9
9
|
as="div"
|
|
10
|
-
className="govgr-
|
|
10
|
+
className="govgr-container"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
className="govgr-
|
|
13
|
+
className="govgr-container"
|
|
14
14
|
>
|
|
15
15
|
<ForwardRef(Base)
|
|
16
16
|
as="div"
|
|
@@ -4,9 +4,12 @@ import Container from '@digigov/react-core/Container';
|
|
|
4
4
|
|
|
5
5
|
export interface NavMenuContainerProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* layout prop sets the display layout for the nav list
|
|
8
|
+
* layout is horizontal by default.
|
|
9
|
+
* @value 'vertical'
|
|
10
|
+
* @value 'horizontal'
|
|
11
|
+
* @default 'horizontal'
|
|
12
|
+
*/
|
|
10
13
|
layout?: 'vertical' | 'horizontal';
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
@@ -22,7 +25,7 @@ export const NavMenuContainer = React.forwardRef<
|
|
|
22
25
|
) {
|
|
23
26
|
return (
|
|
24
27
|
<Container
|
|
25
|
-
|
|
28
|
+
grid={layout === 'horizontal'}
|
|
26
29
|
ref={ref}
|
|
27
30
|
className={className}
|
|
28
31
|
{...props}
|
|
@@ -4,9 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface NavVerticalItemProps extends BaseProps<'a'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* active is optional.
|
|
8
|
+
* When the NavVerticalItem is active, that means that we are in this option / title / page of the NavVertical.
|
|
9
|
+
* @value true
|
|
10
|
+
* @value false
|
|
11
|
+
*/
|
|
10
12
|
active?: boolean;
|
|
11
13
|
}
|
|
12
14
|
/**
|
package/src/NormalText/index.tsx
CHANGED
|
@@ -2,59 +2,74 @@ 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 NormalTextProps extends BaseProps<'span'> {
|
|
5
|
+
export interface NormalTextProps extends BaseProps<'span' | 'p'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
* variant is optional.
|
|
8
|
+
* Use 'lg' when a lg text is an introductory paragraph that you can use at the top of a page to summarize the content.
|
|
9
|
+
* The majority of your body should use the standard 'md' variant. This is the default value.
|
|
10
|
+
* You can use the 'sm' sparingly to make your text font size smaller: 16px on larger screens and 14px on smaller screens.
|
|
11
|
+
* @value 'lg'
|
|
12
|
+
* @value 'md'
|
|
13
|
+
* @value 'sm'
|
|
14
|
+
* @default 'md'
|
|
15
|
+
*/
|
|
12
16
|
variant?: 'lg' | 'md' | 'sm';
|
|
13
17
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
* fontSize is optional.
|
|
19
|
+
* Add this fontSize override prop in order to change the font size.
|
|
20
|
+
* @value '14'
|
|
21
|
+
* @value '16'
|
|
22
|
+
* @value '19'
|
|
23
|
+
* @value '24'
|
|
24
|
+
* @value '30'
|
|
25
|
+
* @value '36'
|
|
26
|
+
* @value '48'
|
|
27
|
+
* @value '72'
|
|
28
|
+
*/
|
|
17
29
|
fontSize?: '14' | '16' | '19' | '24' | '30' | '36' | '48' | '72';
|
|
18
30
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
* fontWeight is optional.
|
|
32
|
+
* You can add a fontWeight override prop to change the font weight to regular or bold.
|
|
33
|
+
* @value 'regular'
|
|
34
|
+
* @value 'bold'
|
|
35
|
+
*/
|
|
22
36
|
fontWeight?: 'regular' | 'bold';
|
|
23
37
|
}
|
|
24
38
|
/**
|
|
25
39
|
* NormalText component is used for text formatting.
|
|
26
40
|
* If you need a paragraph, use the Paragraph component instead.
|
|
27
41
|
*/
|
|
28
|
-
export const NormalText = React.forwardRef<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
42
|
+
export const NormalText = React.forwardRef<
|
|
43
|
+
HTMLSpanElement | HTMLParagraphElement,
|
|
44
|
+
NormalTextProps
|
|
45
|
+
>(function NormalText(
|
|
46
|
+
{ variant = 'md', fontSize, fontWeight, className, children, ...props },
|
|
47
|
+
ref
|
|
48
|
+
) {
|
|
49
|
+
return (
|
|
50
|
+
<Base
|
|
51
|
+
as="span"
|
|
52
|
+
ref={ref}
|
|
53
|
+
className={clsx(className, {
|
|
54
|
+
'govgr-body': true,
|
|
55
|
+
'govgr-body-lg': variant === 'lg',
|
|
56
|
+
'govgr-body-sm': variant === 'sm',
|
|
57
|
+
'govgr-!-font-size-14': fontSize === '14',
|
|
58
|
+
'govgr-!-font-size-16': fontSize === '16',
|
|
59
|
+
'govgr-!-font-size-19': fontSize === '19',
|
|
60
|
+
'govgr-!-font-size-24': fontSize === '24',
|
|
61
|
+
'govgr-!-font-size-30': fontSize === '30',
|
|
62
|
+
'govgr-!-font-size-36': fontSize === '36',
|
|
63
|
+
'govgr-!-font-size-48': fontSize === '48',
|
|
64
|
+
'govgr-!-font-size-72': fontSize === '72',
|
|
65
|
+
'govgr-!-font-weight-regular': fontWeight == 'regular',
|
|
66
|
+
'govgr-!-font-weight-bold': fontWeight == 'bold',
|
|
67
|
+
})}
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
{children}
|
|
71
|
+
</Base>
|
|
72
|
+
);
|
|
73
|
+
});
|
|
59
74
|
|
|
60
75
|
export default NormalText;
|
|
@@ -5,13 +5,13 @@ exports[`renders the NotificationBannerContainer with no props 1`] = `
|
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
aria-labelledby="govgr-notification-banner-title"
|
|
7
7
|
as="div"
|
|
8
|
-
className="govgr-notification-banner"
|
|
8
|
+
className="govgr-notification-banner--info govgr-notification-banner"
|
|
9
9
|
data-module="govgr-notification-banner"
|
|
10
10
|
role="region"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
13
|
aria-labelledby="govgr-notification-banner-title"
|
|
14
|
-
className="govgr-notification-banner"
|
|
14
|
+
className="govgr-notification-banner--info govgr-notification-banner"
|
|
15
15
|
data-module="govgr-notification-banner"
|
|
16
16
|
role="region"
|
|
17
17
|
>
|
|
@@ -21,32 +21,9 @@ exports[`renders the NotificationBannerContainer with no props 1`] = `
|
|
|
21
21
|
</ForwardRef(NotificationBannerContainer)>
|
|
22
22
|
`;
|
|
23
23
|
|
|
24
|
-
exports[`renders the NotificationBannerContainer with success
|
|
24
|
+
exports[`renders the NotificationBannerContainer with variant=success 1`] = `
|
|
25
25
|
<ForwardRef(NotificationBannerContainer)
|
|
26
|
-
success
|
|
27
|
-
>
|
|
28
|
-
<ForwardRef(Base)
|
|
29
|
-
aria-labelledby="govgr-notification-banner-title"
|
|
30
|
-
as="div"
|
|
31
|
-
className="govgr-notification-banner"
|
|
32
|
-
data-module="govgr-notification-banner"
|
|
33
|
-
role="region"
|
|
34
|
-
>
|
|
35
|
-
<div
|
|
36
|
-
aria-labelledby="govgr-notification-banner-title"
|
|
37
|
-
className="govgr-notification-banner"
|
|
38
|
-
data-module="govgr-notification-banner"
|
|
39
|
-
role="region"
|
|
40
|
-
>
|
|
41
|
-
hello
|
|
42
|
-
</div>
|
|
43
|
-
</ForwardRef(Base)>
|
|
44
|
-
</ForwardRef(NotificationBannerContainer)>
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
exports[`renders the NotificationBannerContainer with success=true 1`] = `
|
|
48
|
-
<ForwardRef(NotificationBannerContainer)
|
|
49
|
-
success={true}
|
|
26
|
+
variant="success"
|
|
50
27
|
>
|
|
51
28
|
<ForwardRef(Base)
|
|
52
29
|
aria-labelledby="govgr-notification-banner-title"
|
|
@@ -9,22 +9,13 @@ it('renders the NotificationBannerContainer with no props', () => {
|
|
|
9
9
|
).toMatchSnapshot();
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
it('renders the NotificationBannerContainer with success
|
|
12
|
+
it('renders the NotificationBannerContainer with variant=success', () => {
|
|
13
13
|
expect(
|
|
14
14
|
mount(
|
|
15
|
-
<NotificationBannerContainer
|
|
15
|
+
<NotificationBannerContainer variant={'success'}>
|
|
16
16
|
hello
|
|
17
17
|
</NotificationBannerContainer>
|
|
18
18
|
)
|
|
19
19
|
).toMatchSnapshot();
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
it('renders the NotificationBannerContainer with success=false', () => {
|
|
23
|
-
expect(
|
|
24
|
-
mount(
|
|
25
|
-
<NotificationBannerContainer success={false}>
|
|
26
|
-
hello
|
|
27
|
-
</NotificationBannerContainer>
|
|
28
|
-
)
|
|
29
|
-
).toMatchSnapshot();
|
|
30
|
-
});
|
|
@@ -4,14 +4,19 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface NotificationBannerContainerProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* variant is optional.
|
|
8
|
+
* variant is used to change the color of the NotificationBannerContainer.
|
|
9
|
+
* @value 'info'
|
|
10
|
+
* @value 'success'
|
|
11
|
+
* @value 'error'
|
|
12
|
+
* @default 'info'.
|
|
8
13
|
*/
|
|
9
|
-
|
|
14
|
+
variant?: 'info' | 'success' | 'error';
|
|
10
15
|
}
|
|
11
16
|
/**
|
|
12
17
|
* Details for the NotificationBannerContainer.
|
|
13
|
-
* NotificationBannerContainer
|
|
14
|
-
* NotificationBannerContainer
|
|
18
|
+
* NotificationBannerContainer component informs users about something they need to know about
|
|
19
|
+
* NotificationBannerContainer component must be placed at the top of the page.
|
|
15
20
|
* NotificationBannerContainer wraps NotificationBannerContainerHeader, NotificationBannerContainerContent,NotificationBannerContainerHeading
|
|
16
21
|
* and NotificationBannerContainerLink components as children
|
|
17
22
|
*/
|
|
@@ -19,7 +24,7 @@ export const NotificationBannerContainer = React.forwardRef<
|
|
|
19
24
|
HTMLDivElement,
|
|
20
25
|
NotificationBannerContainerProps
|
|
21
26
|
>(function NotificationBannerContainer(
|
|
22
|
-
{
|
|
27
|
+
{ variant = 'info', className, children, ...props },
|
|
23
28
|
ref
|
|
24
29
|
) {
|
|
25
30
|
return (
|
|
@@ -31,7 +36,7 @@ export const NotificationBannerContainer = React.forwardRef<
|
|
|
31
36
|
ref={ref}
|
|
32
37
|
className={clsx(className, {
|
|
33
38
|
'govgr-notification-banner': true,
|
|
34
|
-
|
|
39
|
+
[`govgr-notification-banner--${variant}`]: variant !== undefined,
|
|
35
40
|
})}
|
|
36
41
|
{...props}
|
|
37
42
|
>
|
|
@@ -9,11 +9,24 @@ exports[`renders the NotificationBannerHeader with no props 1`] = `
|
|
|
9
9
|
<div
|
|
10
10
|
className="govgr-notification-banner__header"
|
|
11
11
|
>
|
|
12
|
-
<
|
|
12
|
+
<ForwardRef(Heading)
|
|
13
13
|
className="govgr-notification-banner__title"
|
|
14
|
+
element="h2"
|
|
15
|
+
marginBottom={0}
|
|
16
|
+
size="sm"
|
|
14
17
|
>
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
<ForwardRef(Base)
|
|
19
|
+
as="h2"
|
|
20
|
+
className="govgr-notification-banner__title govgr-heading-sm"
|
|
21
|
+
marginBottom={0}
|
|
22
|
+
>
|
|
23
|
+
<h2
|
|
24
|
+
className="govgr-notification-banner__title govgr-heading-sm govgr-mb-0"
|
|
25
|
+
>
|
|
26
|
+
hello
|
|
27
|
+
</h2>
|
|
28
|
+
</ForwardRef(Base)>
|
|
29
|
+
</ForwardRef(Heading)>
|
|
17
30
|
</div>
|
|
18
31
|
</ForwardRef(Base)>
|
|
19
32
|
</ForwardRef(NotificationBannerHeader)>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
|
+
import Heading from '@digigov/react-core/Heading';
|
|
4
5
|
|
|
5
6
|
export interface NotificationBannerHeaderProps extends BaseProps<'div'> {}
|
|
6
7
|
/**
|
|
@@ -21,13 +22,16 @@ export const NotificationBannerHeader = React.forwardRef<
|
|
|
21
22
|
})}
|
|
22
23
|
{...props}
|
|
23
24
|
>
|
|
24
|
-
<
|
|
25
|
+
<Heading
|
|
26
|
+
element="h2"
|
|
27
|
+
size="sm"
|
|
28
|
+
marginBottom={0}
|
|
25
29
|
className={clsx({
|
|
26
30
|
'govgr-notification-banner__title': true,
|
|
27
31
|
})}
|
|
28
32
|
>
|
|
29
33
|
{children}
|
|
30
|
-
</
|
|
34
|
+
</Heading>
|
|
31
35
|
</Base>
|
|
32
36
|
);
|
|
33
37
|
});
|
|
@@ -2,15 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the NotificationBannerHeading with no props 1`] = `
|
|
4
4
|
<ForwardRef(NotificationBannerHeading)>
|
|
5
|
-
<ForwardRef(
|
|
6
|
-
as="h3"
|
|
5
|
+
<ForwardRef(Heading)
|
|
7
6
|
className="govgr-notification-banner__heading"
|
|
7
|
+
element="h3"
|
|
8
|
+
size="md"
|
|
8
9
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
10
|
+
<ForwardRef(Base)
|
|
11
|
+
as="h3"
|
|
12
|
+
className="govgr-notification-banner__heading govgr-heading-md"
|
|
11
13
|
>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
<h3
|
|
15
|
+
className="govgr-notification-banner__heading govgr-heading-md"
|
|
16
|
+
>
|
|
17
|
+
hello
|
|
18
|
+
</h3>
|
|
19
|
+
</ForwardRef(Base)>
|
|
20
|
+
</ForwardRef(Heading)>
|
|
15
21
|
</ForwardRef(NotificationBannerHeading)>
|
|
16
22
|
`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import
|
|
3
|
+
import Heading, { HeadingProps } from '@digigov/react-core/Heading';
|
|
4
4
|
|
|
5
|
-
export interface NotificationBannerHeadingProps extends
|
|
5
|
+
export interface NotificationBannerHeadingProps extends HeadingProps {}
|
|
6
6
|
/**
|
|
7
7
|
* Details for the NotificationBannerHeading.
|
|
8
8
|
* NotificationBannerHeading component is used for placing text content to NotificationBanner component.
|
|
@@ -13,8 +13,9 @@ export const NotificationBannerHeading = React.forwardRef<
|
|
|
13
13
|
NotificationBannerHeadingProps
|
|
14
14
|
>(function NotificationBannerHeading({ className, children, ...props }, ref) {
|
|
15
15
|
return (
|
|
16
|
-
<
|
|
17
|
-
|
|
16
|
+
<Heading
|
|
17
|
+
element="h3"
|
|
18
|
+
size='md'
|
|
18
19
|
ref={ref}
|
|
19
20
|
className={clsx(className, {
|
|
20
21
|
'govgr-notification-banner__heading': true,
|
|
@@ -22,7 +23,7 @@ export const NotificationBannerHeading = React.forwardRef<
|
|
|
22
23
|
{...props}
|
|
23
24
|
>
|
|
24
25
|
{children}
|
|
25
|
-
</
|
|
26
|
+
</Heading>
|
|
26
27
|
);
|
|
27
28
|
});
|
|
28
29
|
|
|
@@ -4,34 +4,41 @@ exports[`renders the NotificationBannerLink with href prop props 1`] = `
|
|
|
4
4
|
<ForwardRef(NotificationBannerLink)
|
|
5
5
|
href="https://www.w3schools.com/html/html_links.asp"
|
|
6
6
|
>
|
|
7
|
-
<ForwardRef(
|
|
8
|
-
as="a"
|
|
7
|
+
<ForwardRef(LinkBase)
|
|
9
8
|
className="govgr-notification-banner__link"
|
|
10
9
|
href="https://www.w3schools.com/html/html_links.asp"
|
|
11
10
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
11
|
+
<ForwardRef(Base)
|
|
12
|
+
as="a"
|
|
13
|
+
className="govgr-notification-banner__link govgr-link"
|
|
14
14
|
href="https://www.w3schools.com/html/html_links.asp"
|
|
15
15
|
>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
<a
|
|
17
|
+
className="govgr-notification-banner__link govgr-link"
|
|
18
|
+
href="https://www.w3schools.com/html/html_links.asp"
|
|
19
|
+
>
|
|
20
|
+
hello
|
|
21
|
+
</a>
|
|
22
|
+
</ForwardRef(Base)>
|
|
23
|
+
</ForwardRef(LinkBase)>
|
|
19
24
|
</ForwardRef(NotificationBannerLink)>
|
|
20
25
|
`;
|
|
21
26
|
|
|
22
27
|
exports[`renders the NotificationBannerLink with no props 1`] = `
|
|
23
28
|
<ForwardRef(NotificationBannerLink)>
|
|
24
|
-
<ForwardRef(
|
|
25
|
-
as="a"
|
|
29
|
+
<ForwardRef(LinkBase)
|
|
26
30
|
className="govgr-notification-banner__link"
|
|
27
|
-
href="#"
|
|
28
31
|
>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
<ForwardRef(Base)
|
|
33
|
+
as="a"
|
|
34
|
+
className="govgr-notification-banner__link govgr-link"
|
|
32
35
|
>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
<a
|
|
37
|
+
className="govgr-notification-banner__link govgr-link"
|
|
38
|
+
>
|
|
39
|
+
hello
|
|
40
|
+
</a>
|
|
41
|
+
</ForwardRef(Base)>
|
|
42
|
+
</ForwardRef(LinkBase)>
|
|
36
43
|
</ForwardRef(NotificationBannerLink)>
|
|
37
44
|
`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import
|
|
3
|
+
import LinkBase, { LinkBaseProps } from '@digigov/react-core/LinkBase';
|
|
4
4
|
|
|
5
|
-
export interface NotificationBannerLinkProps extends
|
|
5
|
+
export interface NotificationBannerLinkProps extends LinkBaseProps {}
|
|
6
6
|
/**
|
|
7
7
|
* Details for the NotificationBannerLink.
|
|
8
8
|
* NotificationBannerLink allow users to click their way from page to page.
|
|
@@ -12,21 +12,19 @@ export const NotificationBannerLink = React.forwardRef<
|
|
|
12
12
|
HTMLAnchorElement,
|
|
13
13
|
NotificationBannerLinkProps
|
|
14
14
|
>(function NotificationBannerLink(
|
|
15
|
-
{ className,
|
|
15
|
+
{ className, children, ...props },
|
|
16
16
|
ref
|
|
17
17
|
) {
|
|
18
18
|
return (
|
|
19
|
-
<
|
|
20
|
-
as="a"
|
|
19
|
+
<LinkBase
|
|
21
20
|
ref={ref}
|
|
22
|
-
href={href}
|
|
23
21
|
className={clsx(className, {
|
|
24
22
|
'govgr-notification-banner__link': true,
|
|
25
23
|
})}
|
|
26
24
|
{...props}
|
|
27
25
|
>
|
|
28
26
|
{children}
|
|
29
|
-
</
|
|
27
|
+
</LinkBase>
|
|
30
28
|
);
|
|
31
29
|
});
|
|
32
30
|
|
|
@@ -1,37 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
2
|
+
import Heading, { HeadingProps } from '@digigov/react-core/Heading';
|
|
4
3
|
|
|
5
|
-
export interface PageTitleHeadingProps extends
|
|
6
|
-
/**
|
|
7
|
-
* size is optional.
|
|
8
|
-
*/
|
|
9
|
-
size?: 'xl' | 'lg' | 'md' | 'sm';
|
|
10
|
-
}
|
|
4
|
+
export interface PageTitleHeadingProps extends HeadingProps { }
|
|
11
5
|
/**
|
|
12
6
|
* Details for the PageTitleHeading.
|
|
7
|
+
* Use PageTitleHeading for the main page title.
|
|
13
8
|
*/
|
|
14
9
|
export const PageTitleHeading = React.forwardRef<
|
|
15
10
|
HTMLHeadingElement,
|
|
16
11
|
PageTitleHeadingProps
|
|
17
|
-
>(function PageTitleHeading(
|
|
18
|
-
{ size = 'xl', className, children, ...props },
|
|
19
|
-
ref
|
|
20
|
-
) {
|
|
12
|
+
>(function PageTitleHeading({ size, className, children, ...props }, ref) {
|
|
21
13
|
return (
|
|
22
|
-
<
|
|
23
|
-
as="h1"
|
|
24
|
-
ref={ref}
|
|
25
|
-
className={clsx(className, {
|
|
26
|
-
'govgr-heading-xl': size === 'xl',
|
|
27
|
-
'govgr-heading-lg': size === 'lg',
|
|
28
|
-
'govgr-heading-md': size === 'md',
|
|
29
|
-
'govgr-heading-sm': size === 'sm',
|
|
30
|
-
})}
|
|
31
|
-
{...props}
|
|
32
|
-
>
|
|
14
|
+
<Heading size={size} className={className} ref={ref} {...props}>
|
|
33
15
|
{children}
|
|
34
|
-
</
|
|
16
|
+
</Heading>
|
|
35
17
|
);
|
|
36
18
|
});
|
|
37
19
|
|
package/src/Pagination/index.tsx
CHANGED
|
@@ -4,9 +4,12 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface PaginationProps extends BaseProps<'nav'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* fontSize is optional.
|
|
8
|
+
* You can add this fontSize override prop in order to change the font size.
|
|
9
|
+
* @value 'sm'
|
|
10
|
+
* @value 'md'
|
|
11
|
+
* @default 'md'
|
|
12
|
+
*/
|
|
10
13
|
fontSize?: 'sm' | 'md';
|
|
11
14
|
}
|
|
12
15
|
/**
|