@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
package/es/Table/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["headerVariant", "variant", "dense", "verticalBorders", "stacked", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -9,9 +9,8 @@ import Base from '@digigov/react-core/Base';
|
|
|
9
9
|
* Table component is used to wrap the sub components of a table
|
|
10
10
|
*/
|
|
11
11
|
export var Table = /*#__PURE__*/React.forwardRef(function Table(_ref, ref) {
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
zebra = _ref$zebra === void 0 ? false : _ref$zebra,
|
|
12
|
+
var headerVariant = _ref.headerVariant,
|
|
13
|
+
variant = _ref.variant,
|
|
15
14
|
_ref$dense = _ref.dense,
|
|
16
15
|
dense = _ref$dense === void 0 ? false : _ref$dense,
|
|
17
16
|
_ref$verticalBorders = _ref.verticalBorders,
|
|
@@ -25,7 +24,7 @@ export var Table = /*#__PURE__*/React.forwardRef(function Table(_ref, ref) {
|
|
|
25
24
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
26
25
|
as: "table",
|
|
27
26
|
ref: ref,
|
|
28
|
-
className: clsx(className,
|
|
27
|
+
className: clsx(className, headerVariant === 'light' && 'govgr-table--light', headerVariant === 'dark' && 'govgr-table--dark', stacked === 'always' && 'govgr-table--stacked-always', variant === 'zebra' && 'govgr-table--zebra', stacked === 'sm' && 'govgr-table--stacked-sm', stacked == 'md' && 'govgr-table--stacked-md', verticalBorders && 'govgr-table--vertical-lines', dense && 'govgr-table--dense', true && 'govgr-table')
|
|
29
28
|
}, props), children);
|
|
30
29
|
});
|
|
31
30
|
export default Table;
|
package/es/Table/index.test.js
CHANGED
|
@@ -9,23 +9,23 @@ it('renders the Table with no props', function () {
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
var _ref2 = /*#__PURE__*/React.createElement(Table, {
|
|
12
|
-
|
|
12
|
+
headerVariant: "dark"
|
|
13
13
|
}, "hello");
|
|
14
14
|
|
|
15
|
-
it('renders the Table with dark
|
|
15
|
+
it('renders the Table with dark headerVariant prop', function () {
|
|
16
16
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
var _ref3 = /*#__PURE__*/React.createElement(Table, {
|
|
20
|
-
|
|
20
|
+
headerVariant: "light"
|
|
21
21
|
}, "hello");
|
|
22
22
|
|
|
23
|
-
it('renders the Table with light
|
|
23
|
+
it('renders the Table with light headerVariant prop', function () {
|
|
24
24
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
var _ref4 = /*#__PURE__*/React.createElement(Table, {
|
|
28
|
-
|
|
28
|
+
variant: "zebra"
|
|
29
29
|
}, "hello");
|
|
30
30
|
|
|
31
31
|
it('renders the Table with zebra prop', function () {
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["dataType", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import Base from '@digigov/react-core/Base';
|
|
6
|
+
import Base from '@digigov/react-core/Base'; // import PhaseBannerTag from '@digigov/react-core/PhaseBannerTag';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Use TableDataCell inside the Table component to fill the data of a cell in a table.
|
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the Table with color="secondary" prop 1`] = `
|
|
4
|
+
<ForwardRef(TableRow)
|
|
5
|
+
color="secondary"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="tr"
|
|
9
|
+
className="govgr-table__row--secondary govgr-table__row"
|
|
10
|
+
>
|
|
11
|
+
<tr
|
|
12
|
+
className="govgr-table__row--secondary govgr-table__row"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</tr>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(TableRow)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
exports[`renders the Table with highlight prop 1`] = `
|
|
21
|
+
<ForwardRef(TableRow)
|
|
22
|
+
highlight={true}
|
|
23
|
+
>
|
|
24
|
+
<ForwardRef(Base)
|
|
25
|
+
as="tr"
|
|
26
|
+
className="govgr-table__row--highlight govgr-table__row"
|
|
27
|
+
>
|
|
28
|
+
<tr
|
|
29
|
+
className="govgr-table__row--highlight govgr-table__row"
|
|
30
|
+
>
|
|
31
|
+
hello
|
|
32
|
+
</tr>
|
|
33
|
+
</ForwardRef(Base)>
|
|
34
|
+
</ForwardRef(TableRow)>
|
|
35
|
+
`;
|
|
36
|
+
|
|
3
37
|
exports[`renders the Table with no props 1`] = `
|
|
4
38
|
<ForwardRef(TableRow)>
|
|
5
39
|
<ForwardRef(Base)
|
package/es/TableRow/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["highlight", "color", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -9,8 +9,9 @@ import Base from '@digigov/react-core/Base';
|
|
|
9
9
|
* Use TableRow inside the Table component to provide a new row to the table.
|
|
10
10
|
*/
|
|
11
11
|
export var TableRow = /*#__PURE__*/React.forwardRef(function TableRow(_ref, ref) {
|
|
12
|
-
var _ref$
|
|
13
|
-
|
|
12
|
+
var _ref$highlight = _ref.highlight,
|
|
13
|
+
highlight = _ref$highlight === void 0 ? false : _ref$highlight,
|
|
14
|
+
color = _ref.color,
|
|
14
15
|
className = _ref.className,
|
|
15
16
|
children = _ref.children,
|
|
16
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -18,7 +19,7 @@ export var TableRow = /*#__PURE__*/React.forwardRef(function TableRow(_ref, ref)
|
|
|
18
19
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
19
20
|
as: "tr",
|
|
20
21
|
ref: ref,
|
|
21
|
-
className: clsx(className,
|
|
22
|
+
className: clsx(className, color === 'secondary' && 'govgr-table__row--secondary', highlight && 'govgr-table__row--highlight', true && 'govgr-table__row')
|
|
22
23
|
}, props), children);
|
|
23
24
|
});
|
|
24
25
|
export default TableRow;
|
|
@@ -6,4 +6,20 @@ var _ref = /*#__PURE__*/React.createElement(TableRow, null, "hello");
|
|
|
6
6
|
|
|
7
7
|
it('renders the Table with no props', function () {
|
|
8
8
|
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(TableRow, {
|
|
12
|
+
highlight: true
|
|
13
|
+
}, "hello");
|
|
14
|
+
|
|
15
|
+
it('renders the Table with highlight prop', function () {
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(TableRow, {
|
|
20
|
+
color: "secondary"
|
|
21
|
+
}, "hello");
|
|
22
|
+
|
|
23
|
+
it('renders the Table with color="secondary" prop', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
9
25
|
});
|
package/es/index.js
CHANGED
|
@@ -23,10 +23,10 @@ export * from '@digigov/react-core/TableSortIconContainer';
|
|
|
23
23
|
export * from '@digigov/react-core/Checkbox';
|
|
24
24
|
export * from '@digigov/react-core/CheckboxConditional';
|
|
25
25
|
export * from '@digigov/react-core/CheckboxItem';
|
|
26
|
-
export * from '@digigov/react-core/
|
|
27
|
-
export * from '@digigov/react-core/
|
|
28
|
-
export * from '@digigov/react-core/
|
|
29
|
-
export * from '@digigov/react-core/
|
|
26
|
+
export * from '@digigov/react-core/ChoiceDividerText';
|
|
27
|
+
export * from '@digigov/react-core/Panel';
|
|
28
|
+
export * from '@digigov/react-core/PanelBody';
|
|
29
|
+
export * from '@digigov/react-core/PanelBody';
|
|
30
30
|
export * from '@digigov/react-core/Container';
|
|
31
31
|
export * from '@digigov/react-core/CopyrightContainer';
|
|
32
32
|
export * from '@digigov/react-core/DateInputContainer';
|
|
@@ -62,7 +62,6 @@ export * from '@digigov/react-core/HeaderContent';
|
|
|
62
62
|
export * from '@digigov/react-core/HeaderLogo';
|
|
63
63
|
export * from '@digigov/react-core/HeaderSecondaryLogo';
|
|
64
64
|
export * from '@digigov/react-core/HeaderSection';
|
|
65
|
-
export * from '@digigov/react-core/HeaderSubtitle';
|
|
66
65
|
export * from '@digigov/react-core/HeaderTitle';
|
|
67
66
|
export * from '@digigov/react-core/Heading';
|
|
68
67
|
export * from '@digigov/react-core/HeadingCaption';
|
|
@@ -97,10 +96,8 @@ export * from '@digigov/react-core/NotificationBannerContent';
|
|
|
97
96
|
export * from '@digigov/react-core/NotificationBannerHeader';
|
|
98
97
|
export * from '@digigov/react-core/NotificationBannerHeading';
|
|
99
98
|
export * from '@digigov/react-core/NotificationBannerLink';
|
|
100
|
-
export * from '@digigov/react-core/
|
|
101
|
-
export * from '@digigov/react-core/PageTitleCaption';
|
|
99
|
+
export * from '@digigov/react-core/Section';
|
|
102
100
|
export * from '@digigov/react-core/PageTitleHeading';
|
|
103
|
-
export * from '@digigov/react-core/PageTitleSection';
|
|
104
101
|
export * from '@digigov/react-core/Paragraph';
|
|
105
102
|
export * from '@digigov/react-core/PhaseBannerHeaderContainer';
|
|
106
103
|
export * from '@digigov/react-core/PhaseBanner';
|
package/es/registry.js
CHANGED
|
@@ -57,11 +57,8 @@ import * as _digigov_react_core_ChipHeading from '@digigov/react-core/ChipHeadin
|
|
|
57
57
|
import * as _digigov_react_core_ChipKeyValue from '@digigov/react-core/ChipKeyValue';
|
|
58
58
|
import * as _digigov_react_core_ChipSection from '@digigov/react-core/ChipSection';
|
|
59
59
|
import * as _digigov_react_core_ChipSectionWrapper from '@digigov/react-core/ChipSectionWrapper';
|
|
60
|
-
import * as
|
|
60
|
+
import * as _digigov_react_core_ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';
|
|
61
61
|
import * as _digigov_react_core_CircularProgress from '@digigov/react-core/CircularProgress';
|
|
62
|
-
import * as _digigov_react_core_Confirmation from '@digigov/react-core/Confirmation';
|
|
63
|
-
import * as _digigov_react_core_ConfirmationBody from '@digigov/react-core/ConfirmationBody';
|
|
64
|
-
import * as _digigov_react_core_ConfirmationTitle from '@digigov/react-core/ConfirmationTitle';
|
|
65
62
|
import * as _digigov_react_core_Container from '@digigov/react-core/Container';
|
|
66
63
|
import * as _digigov_react_core_CopyrightContainer from '@digigov/react-core/CopyrightContainer';
|
|
67
64
|
import * as _digigov_react_core_CopyToClipboardContainer from '@digigov/react-core/CopyToClipboardContainer';
|
|
@@ -118,7 +115,6 @@ import * as _digigov_react_core_HeaderLogo from '@digigov/react-core/HeaderLogo'
|
|
|
118
115
|
import * as _digigov_react_core_HeaderNavMenuContent from '@digigov/react-core/HeaderNavMenuContent';
|
|
119
116
|
import * as _digigov_react_core_HeaderSecondaryLogo from '@digigov/react-core/HeaderSecondaryLogo';
|
|
120
117
|
import * as _digigov_react_core_HeaderSection from '@digigov/react-core/HeaderSection';
|
|
121
|
-
import * as _digigov_react_core_HeaderSubtitle from '@digigov/react-core/HeaderSubtitle';
|
|
122
118
|
import * as _digigov_react_core_HeaderTitle from '@digigov/react-core/HeaderTitle';
|
|
123
119
|
import * as _digigov_react_core_Heading from '@digigov/react-core/Heading';
|
|
124
120
|
import * as _digigov_react_core_HeadingCaption from '@digigov/react-core/HeadingCaption';
|
|
@@ -174,14 +170,14 @@ import * as _digigov_react_core_NotificationBannerContent from '@digigov/react-c
|
|
|
174
170
|
import * as _digigov_react_core_NotificationBannerHeader from '@digigov/react-core/NotificationBannerHeader';
|
|
175
171
|
import * as _digigov_react_core_NotificationBannerHeading from '@digigov/react-core/NotificationBannerHeading';
|
|
176
172
|
import * as _digigov_react_core_NotificationBannerLink from '@digigov/react-core/NotificationBannerLink';
|
|
177
|
-
import * as _digigov_react_core_PageTitle from '@digigov/react-core/PageTitle';
|
|
178
|
-
import * as _digigov_react_core_PageTitleCaption from '@digigov/react-core/PageTitleCaption';
|
|
179
173
|
import * as _digigov_react_core_PageTitleHeading from '@digigov/react-core/PageTitleHeading';
|
|
180
|
-
import * as _digigov_react_core_PageTitleSection from '@digigov/react-core/PageTitleSection';
|
|
181
174
|
import * as _digigov_react_core_Pagination from '@digigov/react-core/Pagination';
|
|
182
175
|
import * as _digigov_react_core_PaginationLabelContainer from '@digigov/react-core/PaginationLabelContainer';
|
|
183
176
|
import * as _digigov_react_core_PaginationList from '@digigov/react-core/PaginationList';
|
|
184
177
|
import * as _digigov_react_core_PaginationListItem from '@digigov/react-core/PaginationListItem';
|
|
178
|
+
import * as _digigov_react_core_Panel from '@digigov/react-core/Panel';
|
|
179
|
+
import * as _digigov_react_core_PanelBody from '@digigov/react-core/PanelBody';
|
|
180
|
+
import * as _digigov_react_core_PanelTitle from '@digigov/react-core/PanelTitle';
|
|
185
181
|
import * as _digigov_react_core_Paragraph from '@digigov/react-core/Paragraph';
|
|
186
182
|
import * as _digigov_react_core_PhaseBanner from '@digigov/react-core/PhaseBanner';
|
|
187
183
|
import * as _digigov_react_core_PhaseBannerHeaderContainer from '@digigov/react-core/PhaseBannerHeaderContainer';
|
|
@@ -195,6 +191,7 @@ import * as _digigov_react_core_ResultsHeading from '@digigov/react-core/Results
|
|
|
195
191
|
import * as _digigov_react_core_ResultsHeadingActions from '@digigov/react-core/ResultsHeadingActions';
|
|
196
192
|
import * as _digigov_react_core_SearchButton from '@digigov/react-core/SearchButton';
|
|
197
193
|
import * as _digigov_react_core_SearchSection from '@digigov/react-core/SearchSection';
|
|
194
|
+
import * as _digigov_react_core_Section from '@digigov/react-core/Section';
|
|
198
195
|
import * as _digigov_react_core_SectionBreak from '@digigov/react-core/SectionBreak';
|
|
199
196
|
import * as _digigov_react_core_SelectContainer from '@digigov/react-core/SelectContainer';
|
|
200
197
|
import * as _digigov_react_core_SelectOption from '@digigov/react-core/SelectOption';
|
|
@@ -326,11 +323,8 @@ export default {
|
|
|
326
323
|
'@digigov/react-core/ChipKeyValue': lazyImport(_digigov_react_core_ChipKeyValue),
|
|
327
324
|
'@digigov/react-core/ChipSection': lazyImport(_digigov_react_core_ChipSection),
|
|
328
325
|
'@digigov/react-core/ChipSectionWrapper': lazyImport(_digigov_react_core_ChipSectionWrapper),
|
|
329
|
-
'@digigov/react-core/
|
|
326
|
+
'@digigov/react-core/ChoiceDividerText': lazyImport(_digigov_react_core_ChoiceDividerText),
|
|
330
327
|
'@digigov/react-core/CircularProgress': lazyImport(_digigov_react_core_CircularProgress),
|
|
331
|
-
'@digigov/react-core/Confirmation': lazyImport(_digigov_react_core_Confirmation),
|
|
332
|
-
'@digigov/react-core/ConfirmationBody': lazyImport(_digigov_react_core_ConfirmationBody),
|
|
333
|
-
'@digigov/react-core/ConfirmationTitle': lazyImport(_digigov_react_core_ConfirmationTitle),
|
|
334
328
|
'@digigov/react-core/Container': lazyImport(_digigov_react_core_Container),
|
|
335
329
|
'@digigov/react-core/CopyrightContainer': lazyImport(_digigov_react_core_CopyrightContainer),
|
|
336
330
|
'@digigov/react-core/CopyToClipboardContainer': lazyImport(_digigov_react_core_CopyToClipboardContainer),
|
|
@@ -387,7 +381,6 @@ export default {
|
|
|
387
381
|
'@digigov/react-core/HeaderNavMenuContent': lazyImport(_digigov_react_core_HeaderNavMenuContent),
|
|
388
382
|
'@digigov/react-core/HeaderSecondaryLogo': lazyImport(_digigov_react_core_HeaderSecondaryLogo),
|
|
389
383
|
'@digigov/react-core/HeaderSection': lazyImport(_digigov_react_core_HeaderSection),
|
|
390
|
-
'@digigov/react-core/HeaderSubtitle': lazyImport(_digigov_react_core_HeaderSubtitle),
|
|
391
384
|
'@digigov/react-core/HeaderTitle': lazyImport(_digigov_react_core_HeaderTitle),
|
|
392
385
|
'@digigov/react-core/Heading': lazyImport(_digigov_react_core_Heading),
|
|
393
386
|
'@digigov/react-core/HeadingCaption': lazyImport(_digigov_react_core_HeadingCaption),
|
|
@@ -443,14 +436,14 @@ export default {
|
|
|
443
436
|
'@digigov/react-core/NotificationBannerHeader': lazyImport(_digigov_react_core_NotificationBannerHeader),
|
|
444
437
|
'@digigov/react-core/NotificationBannerHeading': lazyImport(_digigov_react_core_NotificationBannerHeading),
|
|
445
438
|
'@digigov/react-core/NotificationBannerLink': lazyImport(_digigov_react_core_NotificationBannerLink),
|
|
446
|
-
'@digigov/react-core/PageTitle': lazyImport(_digigov_react_core_PageTitle),
|
|
447
|
-
'@digigov/react-core/PageTitleCaption': lazyImport(_digigov_react_core_PageTitleCaption),
|
|
448
439
|
'@digigov/react-core/PageTitleHeading': lazyImport(_digigov_react_core_PageTitleHeading),
|
|
449
|
-
'@digigov/react-core/PageTitleSection': lazyImport(_digigov_react_core_PageTitleSection),
|
|
450
440
|
'@digigov/react-core/Pagination': lazyImport(_digigov_react_core_Pagination),
|
|
451
441
|
'@digigov/react-core/PaginationLabelContainer': lazyImport(_digigov_react_core_PaginationLabelContainer),
|
|
452
442
|
'@digigov/react-core/PaginationList': lazyImport(_digigov_react_core_PaginationList),
|
|
453
443
|
'@digigov/react-core/PaginationListItem': lazyImport(_digigov_react_core_PaginationListItem),
|
|
444
|
+
'@digigov/react-core/Panel': lazyImport(_digigov_react_core_Panel),
|
|
445
|
+
'@digigov/react-core/PanelBody': lazyImport(_digigov_react_core_PanelBody),
|
|
446
|
+
'@digigov/react-core/PanelTitle': lazyImport(_digigov_react_core_PanelTitle),
|
|
454
447
|
'@digigov/react-core/Paragraph': lazyImport(_digigov_react_core_Paragraph),
|
|
455
448
|
'@digigov/react-core/PhaseBanner': lazyImport(_digigov_react_core_PhaseBanner),
|
|
456
449
|
'@digigov/react-core/PhaseBannerHeaderContainer': lazyImport(_digigov_react_core_PhaseBannerHeaderContainer),
|
|
@@ -464,6 +457,7 @@ export default {
|
|
|
464
457
|
'@digigov/react-core/ResultsHeadingActions': lazyImport(_digigov_react_core_ResultsHeadingActions),
|
|
465
458
|
'@digigov/react-core/SearchButton': lazyImport(_digigov_react_core_SearchButton),
|
|
466
459
|
'@digigov/react-core/SearchSection': lazyImport(_digigov_react_core_SearchSection),
|
|
460
|
+
'@digigov/react-core/Section': lazyImport(_digigov_react_core_Section),
|
|
467
461
|
'@digigov/react-core/SectionBreak': lazyImport(_digigov_react_core_SectionBreak),
|
|
468
462
|
'@digigov/react-core/SelectContainer': lazyImport(_digigov_react_core_SelectContainer),
|
|
469
463
|
'@digigov/react-core/SelectOption': lazyImport(_digigov_react_core_SelectOption),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`renders the Checkbox with
|
|
3
|
+
exports[`renders the Checkbox with layout=horizontal and CheckboxItems 1`] = `
|
|
4
4
|
<ForwardRef(Checkbox)
|
|
5
|
-
|
|
5
|
+
layout="horizontal"
|
|
6
6
|
>
|
|
7
7
|
<ForwardRef(Base)
|
|
8
8
|
as="div"
|
|
9
|
-
className="govgr-checkboxes--
|
|
9
|
+
className="govgr-checkboxes--horizontal govgr-checkboxes"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
|
-
className="govgr-checkboxes--
|
|
12
|
+
className="govgr-checkboxes--horizontal govgr-checkboxes"
|
|
13
13
|
>
|
|
14
14
|
<ForwardRef(CheckboxItem)>
|
|
15
15
|
<div
|
package/esm/Checkbox/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["layout", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -11,7 +11,7 @@ import Base from '@digigov/react-core/Base';
|
|
|
11
11
|
* It takes CheckboxItem as children
|
|
12
12
|
*/
|
|
13
13
|
export var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(_ref, ref) {
|
|
14
|
-
var
|
|
14
|
+
var layout = _ref.layout,
|
|
15
15
|
className = _ref.className,
|
|
16
16
|
children = _ref.children,
|
|
17
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -19,7 +19,7 @@ export var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(_ref, ref)
|
|
|
19
19
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
20
20
|
as: "div",
|
|
21
21
|
ref: ref,
|
|
22
|
-
className: clsx(className,
|
|
22
|
+
className: clsx(className, layout === 'horizontal' && 'govgr-checkboxes--horizontal', true && 'govgr-checkboxes')
|
|
23
23
|
}, props), children);
|
|
24
24
|
});
|
|
25
25
|
export default Checkbox;
|
|
@@ -16,9 +16,9 @@ it('renders the Checkbox with no props and CheckboxItem', function () {
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
var _ref3 = /*#__PURE__*/React.createElement(Checkbox, {
|
|
19
|
-
|
|
19
|
+
layout: "horizontal"
|
|
20
20
|
}, /*#__PURE__*/React.createElement(CheckboxItem, null, "This is item 1"), /*#__PURE__*/React.createElement(CheckboxItem, null, "This is item 2"));
|
|
21
21
|
|
|
22
|
-
it('renders the Checkbox with
|
|
22
|
+
it('renders the Checkbox with layout=horizontal and CheckboxItems', function () {
|
|
23
23
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
24
24
|
});
|
|
@@ -39,22 +39,20 @@ exports[`renders the CheckboxItem with \`disabled\` prop 1`] = `
|
|
|
39
39
|
|
|
40
40
|
exports[`renders the CheckboxItem with \`divider\` prop 1`] = `
|
|
41
41
|
<ForwardRef(CheckboxItem)
|
|
42
|
-
|
|
42
|
+
dividerText="ή"
|
|
43
43
|
>
|
|
44
|
-
<ForwardRef(
|
|
45
|
-
text="ή"
|
|
46
|
-
>
|
|
44
|
+
<ForwardRef(ChoiceDividerText)>
|
|
47
45
|
<ForwardRef(Base)
|
|
48
46
|
as="div"
|
|
49
|
-
className="govgr-choice-divider"
|
|
47
|
+
className="govgr-choice-divider-text"
|
|
50
48
|
>
|
|
51
49
|
<div
|
|
52
|
-
className="govgr-choice-divider"
|
|
50
|
+
className="govgr-choice-divider-text"
|
|
53
51
|
>
|
|
54
52
|
ή
|
|
55
53
|
</div>
|
|
56
54
|
</ForwardRef(Base)>
|
|
57
|
-
</ForwardRef(
|
|
55
|
+
</ForwardRef(ChoiceDividerText)>
|
|
58
56
|
<div
|
|
59
57
|
className="govgr-checkboxes__item"
|
|
60
58
|
>
|
|
@@ -169,24 +167,22 @@ exports[`renders the CheckboxItem with \`value\` \`name\` and \`disabled\` props
|
|
|
169
167
|
exports[`renders the CheckboxItem with \`value\` \`name\`, \`divider\` and \`disabled\` props 1`] = `
|
|
170
168
|
<ForwardRef(CheckboxItem)
|
|
171
169
|
disabled={true}
|
|
172
|
-
|
|
170
|
+
dividerText="ή"
|
|
173
171
|
name="example"
|
|
174
172
|
value="example"
|
|
175
173
|
>
|
|
176
|
-
<ForwardRef(
|
|
177
|
-
text="ή"
|
|
178
|
-
>
|
|
174
|
+
<ForwardRef(ChoiceDividerText)>
|
|
179
175
|
<ForwardRef(Base)
|
|
180
176
|
as="div"
|
|
181
|
-
className="govgr-choice-divider"
|
|
177
|
+
className="govgr-choice-divider-text"
|
|
182
178
|
>
|
|
183
179
|
<div
|
|
184
|
-
className="govgr-choice-divider"
|
|
180
|
+
className="govgr-choice-divider-text"
|
|
185
181
|
>
|
|
186
182
|
ή
|
|
187
183
|
</div>
|
|
188
184
|
</ForwardRef(Base)>
|
|
189
|
-
</ForwardRef(
|
|
185
|
+
</ForwardRef(ChoiceDividerText)>
|
|
190
186
|
<div
|
|
191
187
|
className="govgr-checkboxes__item"
|
|
192
188
|
>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["name", "value", "
|
|
3
|
+
var _excluded = ["name", "value", "dividerText", "className", "disabled", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
7
|
-
import
|
|
7
|
+
import ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';
|
|
8
8
|
import LabelContainer from '@digigov/react-core/LabelContainer';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -15,15 +15,13 @@ import LabelContainer from '@digigov/react-core/LabelContainer';
|
|
|
15
15
|
export var CheckboxItem = /*#__PURE__*/React.forwardRef(function CheckboxItem(_ref, ref) {
|
|
16
16
|
var name = _ref.name,
|
|
17
17
|
value = _ref.value,
|
|
18
|
-
|
|
18
|
+
dividerText = _ref.dividerText,
|
|
19
19
|
className = _ref.className,
|
|
20
20
|
disabled = _ref.disabled,
|
|
21
21
|
children = _ref.children,
|
|
22
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
23
|
|
|
24
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
25
|
-
text: divider
|
|
26
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, dividerText && /*#__PURE__*/React.createElement(ChoiceDividerText, null, dividerText), /*#__PURE__*/React.createElement("div", {
|
|
27
25
|
className: clsx(className, true && 'govgr-checkboxes__item')
|
|
28
26
|
}, /*#__PURE__*/React.createElement(LabelContainer, {
|
|
29
27
|
className: clsx(disabled && 'govgr-checkboxes__label--disabled', true && 'govgr-checkboxes__label')
|
|
@@ -33,7 +33,7 @@ it('renders the CheckboxItem with `disabled` prop', function () {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
var _ref5 = /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
36
|
-
|
|
36
|
+
dividerText: "\u03AE"
|
|
37
37
|
}, "hello");
|
|
38
38
|
|
|
39
39
|
it('renders the CheckboxItem with `divider` prop', function () {
|
|
@@ -53,7 +53,7 @@ it('renders the CheckboxItem with `value` `name` and `disabled` props', function
|
|
|
53
53
|
var _ref7 = /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
54
54
|
value: "example",
|
|
55
55
|
name: "example",
|
|
56
|
-
|
|
56
|
+
dividerText: "\u03AE",
|
|
57
57
|
disabled: true
|
|
58
58
|
}, "hello");
|
|
59
59
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import ChipKeyValue from '@digigov/react-core/ChipKeyValue';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(ChipKeyValue, null, "hello");
|
|
6
|
+
|
|
7
|
+
it('renders the ChipKeyValue with no props', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
@@ -15,7 +15,7 @@ export var ChipSectionWrapper = /*#__PURE__*/React.forwardRef(function ChipSecti
|
|
|
15
15
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
16
|
|
|
17
17
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
18
|
-
as: "
|
|
18
|
+
as: "div",
|
|
19
19
|
ref: ref,
|
|
20
20
|
className: clsx(className)
|
|
21
21
|
}, props), children);
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`renders the ChoiceDivider with text prop 1`] = `
|
|
4
|
-
<ForwardRef(
|
|
5
|
-
text="ή"
|
|
6
|
-
>
|
|
4
|
+
<ForwardRef(ChoiceDividerText)>
|
|
7
5
|
<ForwardRef(Base)
|
|
8
6
|
as="div"
|
|
9
|
-
className="govgr-choice-divider"
|
|
7
|
+
className="govgr-choice-divider-text"
|
|
10
8
|
>
|
|
11
9
|
<div
|
|
12
|
-
className="govgr-choice-divider"
|
|
10
|
+
className="govgr-choice-divider-text"
|
|
13
11
|
>
|
|
14
12
|
ή
|
|
15
13
|
</div>
|
|
16
14
|
</ForwardRef(Base)>
|
|
17
|
-
</ForwardRef(
|
|
15
|
+
</ForwardRef(ChoiceDividerText)>
|
|
18
16
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -9,15 +9,15 @@ import Base from '@digigov/react-core/Base';
|
|
|
9
9
|
* ChoiceDivider component adds a text divider on top of a Radio or Checkbox item.
|
|
10
10
|
* It's been used as a prop ("divider") inside RadioItem and CheckboxItem.
|
|
11
11
|
*/
|
|
12
|
-
export var
|
|
13
|
-
var
|
|
14
|
-
|
|
12
|
+
export var ChoiceDividerText = /*#__PURE__*/React.forwardRef(function ChoiceDividerText(_ref, ref) {
|
|
13
|
+
var className = _ref.className,
|
|
14
|
+
children = _ref.children,
|
|
15
15
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
16
|
|
|
17
17
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
18
18
|
as: "div",
|
|
19
19
|
ref: ref,
|
|
20
|
-
className: clsx(className, true && 'govgr-choice-divider')
|
|
21
|
-
}, props),
|
|
20
|
+
className: clsx(className, true && 'govgr-choice-divider-text')
|
|
21
|
+
}, props), children);
|
|
22
22
|
});
|
|
23
|
-
export default
|
|
23
|
+
export default ChoiceDividerText;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
|
-
import
|
|
3
|
+
import ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';
|
|
4
4
|
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(
|
|
6
|
-
text: "\u03AE"
|
|
7
|
-
});
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(ChoiceDividerText, null, "\u03AE");
|
|
8
6
|
|
|
9
7
|
it('renders the ChoiceDivider with text prop', function () {
|
|
10
8
|
expect(mount(_ref)).toMatchSnapshot();
|