@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
|
@@ -4,14 +4,19 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface DateInputItemProps extends BaseProps<'input'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* Width property is optional.
|
|
8
|
+
* Use this property for year field to grow width.
|
|
9
|
+
* @value 2
|
|
10
|
+
* @value 4
|
|
11
|
+
* @default 2
|
|
12
|
+
*/
|
|
10
13
|
width?: 2 | 4;
|
|
11
14
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
* error is optional. The default value is false.
|
|
16
|
+
* Use this prop when there is an error at the input.
|
|
17
|
+
* @value true
|
|
18
|
+
* @value false
|
|
19
|
+
*/
|
|
15
20
|
error?: boolean;
|
|
16
21
|
}
|
|
17
22
|
/**
|
package/src/Details/index.tsx
CHANGED
|
@@ -7,7 +7,7 @@ export interface DetailsProps extends BaseProps<'details'> {}
|
|
|
7
7
|
* Details is used to make a page easier to scan when it contains information that only some users will need.
|
|
8
8
|
* Details component wraps DetailsSummary and DetailsContent as children components
|
|
9
9
|
*/
|
|
10
|
-
export const Details = React.forwardRef<
|
|
10
|
+
export const Details = React.forwardRef<HTMLDetailsElement, DetailsProps>(
|
|
11
11
|
function Details({ className, children, ...props }, ref) {
|
|
12
12
|
return (
|
|
13
13
|
<Base
|
|
@@ -4,8 +4,10 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface DetailsSummaryProps extends BaseProps<'summary'> {
|
|
6
6
|
/*
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
** size is optional. Default value is 'md'.
|
|
8
|
+
* @value 'md'
|
|
9
|
+
* @value 'lg'
|
|
10
|
+
*/
|
|
9
11
|
size?: 'md' | 'lg';
|
|
10
12
|
}
|
|
11
13
|
/**
|
package/src/Drawer/index.tsx
CHANGED
|
@@ -4,22 +4,32 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface DrawerProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* open is optional.
|
|
8
|
+
* This declares if the drawer is open at small screens.
|
|
9
|
+
* @value true
|
|
10
|
+
* @value false
|
|
11
|
+
*/
|
|
10
12
|
open?: boolean;
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* direction is optional.
|
|
16
|
+
* Add the direction of the drawer, when this is open at mobile view.
|
|
17
|
+
* The default value is 'left'.
|
|
18
|
+
* @value 'right'
|
|
19
|
+
* @value 'left'
|
|
20
|
+
* @default 'left'
|
|
21
|
+
*/
|
|
17
22
|
direction?: 'right' | 'left';
|
|
18
23
|
|
|
19
24
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
* upRelative is optional. This declares if the drawer is open at large screens in a relative position.
|
|
26
|
+
* The default value is never.
|
|
27
|
+
* * @value 'sm'
|
|
28
|
+
* @value 'md'
|
|
29
|
+
* @value 'lg'
|
|
30
|
+
* @value 'never'
|
|
31
|
+
* @default 'never'
|
|
32
|
+
*/
|
|
23
33
|
upRelative?: 'sm' | 'md' | 'lg' | 'never';
|
|
24
34
|
}
|
|
25
35
|
/**
|
|
@@ -1,30 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
|
-
import LinkBase from '@digigov/react-core/LinkBase';
|
|
5
4
|
import { CloseIcon } from '@digigov/react-icons';
|
|
5
|
+
import Button from '@digigov/react-core/Button';
|
|
6
6
|
|
|
7
7
|
export interface DrawerHeadingProps extends BaseProps<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* includeClose is optional.
|
|
10
|
-
* This declares if the close icon should be included.
|
|
11
|
-
* The default value is true.
|
|
12
|
-
*/
|
|
13
|
-
includeClose?: boolean;
|
|
14
8
|
|
|
15
9
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
* closeLabel is optional.
|
|
11
|
+
* This declares the label of the close icon.
|
|
12
|
+
* @default 'Κλείσιμο'
|
|
13
|
+
*/
|
|
20
14
|
closeLabel?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* closeIcon is optional.
|
|
24
|
-
* This declares the close icon.
|
|
25
|
-
* The default value is CloseIcon.
|
|
26
|
-
* */
|
|
27
|
-
closeIcon?: React.ReactNode;
|
|
28
15
|
}
|
|
29
16
|
/**
|
|
30
17
|
* Use DrawerHeading component inside Drawing
|
|
@@ -38,9 +25,7 @@ export const DrawerHeading = React.forwardRef<
|
|
|
38
25
|
{
|
|
39
26
|
className,
|
|
40
27
|
children,
|
|
41
|
-
includeClose = true,
|
|
42
28
|
closeLabel = 'Κλείσιμο',
|
|
43
|
-
closeIcon = <CloseIcon />,
|
|
44
29
|
...props
|
|
45
30
|
},
|
|
46
31
|
ref
|
|
@@ -60,12 +45,10 @@ export const DrawerHeading = React.forwardRef<
|
|
|
60
45
|
'govgr-drawer__close-container': true,
|
|
61
46
|
})}
|
|
62
47
|
>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
</LinkBase>
|
|
68
|
-
)}
|
|
48
|
+
<Button className="govgr-drawer__close-icon" variant='link'>
|
|
49
|
+
{closeLabel}
|
|
50
|
+
<CloseIcon />
|
|
51
|
+
</Button>
|
|
69
52
|
</div>
|
|
70
53
|
</Base>
|
|
71
54
|
);
|
|
@@ -3,26 +3,32 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
export interface DropdownBaseProps extends BaseProps<'details'> {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* align is optional. The default value is right.
|
|
7
|
+
* align prop adds DropdownBaseContent right or left.
|
|
8
|
+
* @value 'right'
|
|
9
|
+
* @value 'left'
|
|
10
|
+
* @default 'left'
|
|
11
|
+
*/
|
|
9
12
|
align?: 'right' | 'left';
|
|
10
13
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
* placement is optional. The default value is bottom.
|
|
15
|
+
* placement prop adds DropdownBaseContent top or bottom.
|
|
16
|
+
* @value 'top'
|
|
17
|
+
* @value 'bottom'
|
|
18
|
+
*/
|
|
14
19
|
placement?: 'top' | 'bottom';
|
|
15
20
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
* disabled is optional. The default value is false.
|
|
22
|
+
* disabled prop diables any action for DropdownBase component.
|
|
23
|
+
* @value true
|
|
24
|
+
* @value false
|
|
25
|
+
*/
|
|
19
26
|
disabled?: boolean;
|
|
20
27
|
}
|
|
21
28
|
/**
|
|
22
29
|
* DropdownBase is the main component for a dropdownBase.
|
|
23
30
|
* Inside this component must be DropdownBaseButton and DropdownBaseContent components.
|
|
24
31
|
*/
|
|
25
|
-
// eslint-disable-next-line react/display-name
|
|
26
32
|
export const DropdownBase = React.forwardRef<
|
|
27
33
|
HTMLDetailsElement,
|
|
28
34
|
DropdownBaseProps
|
|
@@ -4,28 +4,40 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
import { ArrowIcon } from '@digigov/react-icons';
|
|
5
5
|
export interface DropdownButtonProps extends BaseProps<'summary'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
* color is optional.
|
|
8
|
+
* 'primary' color gives DropdownButton the primary green color.
|
|
9
|
+
* 'secondary' color gives DropdownButton the secondary gray color.
|
|
10
|
+
* 'warning' color gives DropdownButton the warning red color.
|
|
11
|
+
* The default value is 'primary'.
|
|
12
|
+
* @value 'primary'
|
|
13
|
+
* @value 'secondary'
|
|
14
|
+
* @value 'warning'
|
|
15
|
+
* @default 'primary'
|
|
16
|
+
*/
|
|
13
17
|
color?: 'primary' | 'secondary' | 'warning';
|
|
14
18
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
* variant is optional.
|
|
20
|
+
* variant prop changes DropdownButton to button or link.
|
|
21
|
+
* @value 'link'
|
|
22
|
+
* @value 'button'
|
|
23
|
+
* @default 'button'
|
|
24
|
+
*/
|
|
18
25
|
variant?: 'link' | 'button';
|
|
19
26
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
* arrow is optional.
|
|
28
|
+
* arrow prop adds checkIcon component inside DropdownButton.
|
|
29
|
+
* arrow prop is false by default
|
|
30
|
+
* @value true
|
|
31
|
+
* @value false
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
24
34
|
arrow?: boolean;
|
|
25
35
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
* underline is optional.
|
|
37
|
+
* Use this prop when you want to use Dropdown button as <th> header in sorted table.
|
|
38
|
+
* @value true
|
|
39
|
+
* @value false
|
|
40
|
+
*/
|
|
29
41
|
underline?: boolean;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
import NotificationBannerContainer from '@digigov/react-core/NotificationBannerContainer';
|
|
4
|
+
import NotificationBannerContent from '@digigov/react-core/NotificationBannerContent';
|
|
4
5
|
|
|
5
|
-
export interface ErrorSummaryProps extends BaseProps<'div'> {}
|
|
6
|
+
export interface ErrorSummaryProps extends BaseProps<'div'> { }
|
|
6
7
|
/**
|
|
7
|
-
* Use this component at the top of a page to
|
|
8
|
+
* Use this component at the top of a page to summarize any errors a user has made.
|
|
8
9
|
*/
|
|
9
10
|
export const ErrorSummary = React.forwardRef<HTMLDivElement, ErrorSummaryProps>(
|
|
10
11
|
function ErrorSummary({ className, children, ...props }, ref) {
|
|
11
12
|
return (
|
|
12
|
-
<
|
|
13
|
-
|
|
13
|
+
<NotificationBannerContainer
|
|
14
|
+
variant={'error'}
|
|
15
|
+
className={className}
|
|
14
16
|
ref={ref}
|
|
15
|
-
className={clsx(className, {
|
|
16
|
-
'govgr-error-summary': true,
|
|
17
|
-
})}
|
|
18
17
|
{...props}
|
|
19
18
|
>
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
<NotificationBannerContent>
|
|
20
|
+
{children}
|
|
21
|
+
</NotificationBannerContent>
|
|
22
|
+
</NotificationBannerContainer>
|
|
22
23
|
);
|
|
23
24
|
}
|
|
24
25
|
);
|
|
@@ -4,15 +4,23 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FieldsetLegendProps extends BaseProps<'legend'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* size is optional. The default value is 'lg'
|
|
8
|
+
* @value 'xl'
|
|
9
|
+
* @value 'lg'
|
|
10
|
+
* @value 'md'
|
|
11
|
+
* @value 'sm'
|
|
12
|
+
* @default 'lg'
|
|
13
|
+
*/
|
|
9
14
|
size?: 'xl' | 'lg' | 'md' | 'sm';
|
|
10
15
|
|
|
11
16
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
* heading is optional.
|
|
18
|
+
* Add this prop if this Fieldset component is the only one in this page.
|
|
19
|
+
* The default value is false.
|
|
20
|
+
* @value true
|
|
21
|
+
* @value false
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
16
24
|
heading?: boolean;
|
|
17
25
|
}
|
|
18
26
|
/**
|
|
@@ -26,23 +34,21 @@ export const FieldsetLegend = React.forwardRef<
|
|
|
26
34
|
ref
|
|
27
35
|
) {
|
|
28
36
|
return (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</Base>
|
|
45
|
-
</>
|
|
37
|
+
<Base
|
|
38
|
+
as="legend"
|
|
39
|
+
ref={ref}
|
|
40
|
+
className={clsx(className, {
|
|
41
|
+
'govgr-fieldset__legend': true,
|
|
42
|
+
'govgr-heading-xl': size === 'xl',
|
|
43
|
+
'govgr-heading-lg': size === 'lg',
|
|
44
|
+
'govgr-heading-md': size === 'md',
|
|
45
|
+
'govgr-heading-sm': size === 'sm',
|
|
46
|
+
})}
|
|
47
|
+
{...(heading && { role: 'heading', 'aria-level': 1 })}
|
|
48
|
+
{...props}
|
|
49
|
+
>
|
|
50
|
+
{children}
|
|
51
|
+
</Base>
|
|
46
52
|
);
|
|
47
53
|
});
|
|
48
54
|
|
package/src/FileUpload/index.tsx
CHANGED
|
@@ -4,8 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FileUploadProps extends BaseProps<'input'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* hasFiles is optional.
|
|
8
|
+
* @value true
|
|
9
|
+
* @value false
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
9
12
|
hasFiles?: boolean;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
@@ -4,8 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FileUploadContainerProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* hasFiles is optional.
|
|
8
|
+
* @value true
|
|
9
|
+
* @value false
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
9
12
|
hasUploadedFile?: boolean;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
@@ -5,10 +5,11 @@ import { CloseIcon } from '@digigov/react-icons/CloseIcon';
|
|
|
5
5
|
|
|
6
6
|
export interface FilterCloseButtonProps extends ButtonProps {
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
* closeIcon is optional.
|
|
9
|
+
* This declares the close icon.
|
|
10
|
+
* The default value is CloseIcon.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
12
13
|
closeIcon?: React.ReactNode;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
@@ -3,7 +3,11 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
5
|
export interface FilterOptionsSectionProps extends BaseProps<'div'> {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @value true
|
|
8
|
+
* @value false
|
|
9
|
+
*/
|
|
10
|
+
horizontal?: boolean
|
|
7
11
|
}
|
|
8
12
|
/**
|
|
9
13
|
* FilterOptionsSection is a wrapper component for the filter elements.
|
|
@@ -4,21 +4,33 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FilterSectionProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* Use open prop to open the filters when at mobile.
|
|
8
|
+
* The default value is false.
|
|
9
|
+
* @value true
|
|
10
|
+
* @value false
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
10
13
|
open?: boolean;
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
* Use border prop to add a gray border at the filters section.
|
|
17
|
+
* The default value is true.
|
|
18
|
+
* @value true
|
|
19
|
+
* @value false
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
16
22
|
border?: boolean;
|
|
17
23
|
|
|
18
24
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
* Use visible prop to make the filter section have position relative in the page.
|
|
26
|
+
* The default value is md.
|
|
27
|
+
* @value 'always'
|
|
28
|
+
* @value 'sm'
|
|
29
|
+
* @value 'md'
|
|
30
|
+
* @value 'lg'
|
|
31
|
+
* @value 'never'
|
|
32
|
+
* @default 'md'
|
|
33
|
+
*/
|
|
22
34
|
positionRelative?: 'always' | 'sm' | 'md' | 'lg' | 'never';
|
|
23
35
|
}
|
|
24
36
|
|
|
@@ -3,7 +3,11 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
5
|
export interface FilterSelectedSectionProps extends BaseProps<'div'> {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @value true
|
|
8
|
+
* @value false
|
|
9
|
+
*/
|
|
10
|
+
indicator?: boolean
|
|
7
11
|
}
|
|
8
12
|
/**
|
|
9
13
|
* FilterSelectedSection is a wrapper for the area of the selected filters
|
|
@@ -4,10 +4,10 @@ exports[`renders the FooterContainer with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(FooterContainer)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="div"
|
|
7
|
-
className="govgr-
|
|
7
|
+
className="govgr-container"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
className="govgr-
|
|
10
|
+
className="govgr-container"
|
|
11
11
|
>
|
|
12
12
|
hello
|
|
13
13
|
</div>
|
|
@@ -4,11 +4,13 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FooterContainerProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
* fullWidth is optional.
|
|
8
|
+
* fullWidth property is used to give full width to FooterContainer component.
|
|
9
|
+
* fullWidth property places the footer elements at the edges of the container.
|
|
10
|
+
* @value true
|
|
11
|
+
* @value false
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
12
14
|
fullWidth?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
@@ -26,8 +28,8 @@ export const FooterContainer = React.forwardRef<
|
|
|
26
28
|
as="div"
|
|
27
29
|
ref={ref}
|
|
28
30
|
className={clsx(className, {
|
|
29
|
-
'govgr-
|
|
30
|
-
'govgr-full-width
|
|
31
|
+
'govgr-container': true,
|
|
32
|
+
'govgr-container--full-width': fullWidth,
|
|
31
33
|
})}
|
|
32
34
|
{...props}
|
|
33
35
|
>
|
|
@@ -4,10 +4,13 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FooterHeadingProps extends BaseProps<'h2'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* size is optional.
|
|
8
|
+
* The values are: 'md' for medium, 'sm' for small.
|
|
9
|
+
* The default value is 'sm'.
|
|
10
|
+
* @value 'md'
|
|
11
|
+
* @value 'sm'
|
|
12
|
+
* @default 'sm'
|
|
13
|
+
*/
|
|
11
14
|
size?: 'md' | 'sm';
|
|
12
15
|
}
|
|
13
16
|
/**
|
package/src/FooterList/index.tsx
CHANGED
|
@@ -4,9 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FooterListProps extends BaseProps<'ul'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* columns is optional.
|
|
8
|
+
* The values for this are 1 and 2. The default value is 1.
|
|
9
|
+
* @value 1
|
|
10
|
+
* @value 2
|
|
11
|
+
*/
|
|
10
12
|
columns?: 1 | 2;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
@@ -4,9 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
|
|
5
5
|
export interface FooterMetaItemProps extends BaseProps<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* grow is optional.
|
|
8
|
+
* Use this prop If wanted this component to have it's maxinum grow.
|
|
9
|
+
* @value true
|
|
10
|
+
* @value false
|
|
11
|
+
*/
|
|
10
12
|
grow?: boolean;
|
|
11
13
|
}
|
|
12
14
|
/**
|
package/src/Form/index.tsx
CHANGED
|
@@ -3,7 +3,12 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
5
|
export interface FormProps extends BaseProps<'form'> {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @value true
|
|
8
|
+
* @value false
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
grid?: boolean
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
14
|
* Use this inside the Content component for additional content
|