@digigov/react-core 0.1.0 → 0.2.0
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/CHANGELOG.json +22 -0
- package/CHANGELOG.md +12 -1
- package/coverage/clover.xml +919 -0
- package/coverage/coverage-final.json +115 -0
- package/coverage/lcov-report/Accordion/index.html +111 -0
- package/coverage/lcov-report/Accordion/index.tsx.html +158 -0
- package/coverage/lcov-report/AccordionSection/index.html +111 -0
- package/coverage/lcov-report/AccordionSection/index.tsx.html +182 -0
- package/coverage/lcov-report/AccordionSectionContent/index.html +111 -0
- package/coverage/lcov-report/AccordionSectionContent/index.tsx.html +161 -0
- package/coverage/lcov-report/AccordionSectionHeader/index.html +111 -0
- package/coverage/lcov-report/AccordionSectionHeader/index.tsx.html +194 -0
- package/coverage/lcov-report/Aside/index.html +111 -0
- package/coverage/lcov-report/Aside/index.tsx.html +161 -0
- package/coverage/lcov-report/BackLink/index.html +111 -0
- package/coverage/lcov-report/BackLink/index.tsx.html +188 -0
- package/coverage/lcov-report/Blockquote/index.html +111 -0
- package/coverage/lcov-report/Blockquote/index.tsx.html +155 -0
- package/coverage/lcov-report/Bottom/index.html +111 -0
- package/coverage/lcov-report/Bottom/index.tsx.html +149 -0
- package/coverage/lcov-report/Breadcrumbs/index.html +111 -0
- package/coverage/lcov-report/Breadcrumbs/index.tsx.html +158 -0
- package/coverage/lcov-report/BreadcrumbsList/index.html +111 -0
- package/coverage/lcov-report/BreadcrumbsList/index.tsx.html +158 -0
- package/coverage/lcov-report/BreadcrumbsListItem/index.html +111 -0
- package/coverage/lcov-report/BreadcrumbsListItem/index.tsx.html +197 -0
- package/coverage/lcov-report/BurgerIcon/index.html +111 -0
- package/coverage/lcov-report/BurgerIcon/index.tsx.html +227 -0
- package/coverage/lcov-report/Button/index.html +111 -0
- package/coverage/lcov-report/Button/index.tsx.html +221 -0
- package/coverage/lcov-report/ButtonGroup/index.html +111 -0
- package/coverage/lcov-report/ButtonGroup/index.tsx.html +155 -0
- package/coverage/lcov-report/CallToAction/index.html +111 -0
- package/coverage/lcov-report/CallToAction/index.tsx.html +203 -0
- package/coverage/lcov-report/Card/index.html +111 -0
- package/coverage/lcov-report/Card/index.tsx.html +203 -0
- package/coverage/lcov-report/CardAction/index.html +111 -0
- package/coverage/lcov-report/CardAction/index.tsx.html +164 -0
- package/coverage/lcov-report/CardHeading/index.html +111 -0
- package/coverage/lcov-report/CardHeading/index.tsx.html +167 -0
- package/coverage/lcov-report/CardText/index.html +111 -0
- package/coverage/lcov-report/CardText/index.tsx.html +161 -0
- package/coverage/lcov-report/Checkbox/index.html +111 -0
- package/coverage/lcov-report/Checkbox/index.tsx.html +161 -0
- package/coverage/lcov-report/CheckboxConditional/index.html +111 -0
- package/coverage/lcov-report/CheckboxConditional/index.tsx.html +236 -0
- package/coverage/lcov-report/CheckboxItem/index.html +111 -0
- package/coverage/lcov-report/CheckboxItem/index.tsx.html +233 -0
- package/coverage/lcov-report/Confirmation/index.html +111 -0
- package/coverage/lcov-report/Confirmation/index.tsx.html +158 -0
- package/coverage/lcov-report/ConfirmationBody/index.html +111 -0
- package/coverage/lcov-report/ConfirmationBody/index.tsx.html +158 -0
- package/coverage/lcov-report/ConfirmationTitle/index.html +111 -0
- package/coverage/lcov-report/ConfirmationTitle/index.tsx.html +158 -0
- package/coverage/lcov-report/Container/index.html +111 -0
- package/coverage/lcov-report/Container/index.tsx.html +179 -0
- package/coverage/lcov-report/Copyright/index.html +111 -0
- package/coverage/lcov-report/Copyright/index.tsx.html +158 -0
- package/coverage/lcov-report/DateInput/index.html +111 -0
- package/coverage/lcov-report/DateInput/index.tsx.html +164 -0
- package/coverage/lcov-report/DateInputItem/index.html +111 -0
- package/coverage/lcov-report/DateInputItem/index.tsx.html +227 -0
- package/coverage/lcov-report/Details/index.html +111 -0
- package/coverage/lcov-report/Details/index.tsx.html +158 -0
- package/coverage/lcov-report/DetailsContent/index.html +111 -0
- package/coverage/lcov-report/DetailsContent/index.tsx.html +161 -0
- package/coverage/lcov-report/DetailsSummary/index.html +111 -0
- package/coverage/lcov-report/DetailsSummary/index.tsx.html +158 -0
- package/coverage/lcov-report/ErrorMessage/index.html +111 -0
- package/coverage/lcov-report/ErrorMessage/index.tsx.html +164 -0
- package/coverage/lcov-report/ErrorSummary/index.html +111 -0
- package/coverage/lcov-report/ErrorSummary/index.tsx.html +155 -0
- package/coverage/lcov-report/Fieldset/index.html +111 -0
- package/coverage/lcov-report/Fieldset/index.tsx.html +158 -0
- package/coverage/lcov-report/FieldsetLegend/index.html +111 -0
- package/coverage/lcov-report/FieldsetLegend/index.tsx.html +233 -0
- package/coverage/lcov-report/FileUpload/index.html +111 -0
- package/coverage/lcov-report/FileUpload/index.tsx.html +197 -0
- package/coverage/lcov-report/Footer/index.html +111 -0
- package/coverage/lcov-report/Footer/index.tsx.html +155 -0
- package/coverage/lcov-report/FooterContainer/index.html +111 -0
- package/coverage/lcov-report/FooterContainer/index.tsx.html +158 -0
- package/coverage/lcov-report/FooterContent/index.html +111 -0
- package/coverage/lcov-report/FooterContent/index.tsx.html +161 -0
- package/coverage/lcov-report/FooterContentLogos/index.html +111 -0
- package/coverage/lcov-report/FooterContentLogos/index.tsx.html +164 -0
- package/coverage/lcov-report/FooterHeading/index.html +111 -0
- package/coverage/lcov-report/FooterHeading/index.tsx.html +185 -0
- package/coverage/lcov-report/FooterImage/index.html +111 -0
- package/coverage/lcov-report/FooterImage/index.tsx.html +161 -0
- package/coverage/lcov-report/FooterInlineList/index.html +111 -0
- package/coverage/lcov-report/FooterInlineList/index.tsx.html +164 -0
- package/coverage/lcov-report/FooterInlineListItem/index.html +111 -0
- package/coverage/lcov-report/FooterInlineListItem/index.tsx.html +158 -0
- package/coverage/lcov-report/FooterLink/index.html +111 -0
- package/coverage/lcov-report/FooterLink/index.tsx.html +173 -0
- package/coverage/lcov-report/FooterList/index.html +111 -0
- package/coverage/lcov-report/FooterList/index.tsx.html +179 -0
- package/coverage/lcov-report/FooterListItem/index.html +111 -0
- package/coverage/lcov-report/FooterListItem/index.tsx.html +161 -0
- package/coverage/lcov-report/FooterMeta/index.html +111 -0
- package/coverage/lcov-report/FooterMeta/index.tsx.html +161 -0
- package/coverage/lcov-report/FooterMetaItem/index.html +111 -0
- package/coverage/lcov-report/FooterMetaItem/index.tsx.html +179 -0
- package/coverage/lcov-report/FooterNavigation/index.html +111 -0
- package/coverage/lcov-report/FooterNavigation/index.tsx.html +164 -0
- package/coverage/lcov-report/FooterSection/index.html +111 -0
- package/coverage/lcov-report/FooterSection/index.tsx.html +164 -0
- package/coverage/lcov-report/FormGroup/index.html +111 -0
- package/coverage/lcov-report/FormGroup/index.tsx.html +173 -0
- package/coverage/lcov-report/GovGRFooter/index.html +111 -0
- package/coverage/lcov-report/GovGRFooter/index.tsx.html +155 -0
- package/coverage/lcov-report/GovGRLogo/index.html +111 -0
- package/coverage/lcov-report/GovGRLogo/index.tsx.html +176 -0
- package/coverage/lcov-report/Header/index.html +111 -0
- package/coverage/lcov-report/Header/index.tsx.html +167 -0
- package/coverage/lcov-report/HeaderContent/index.html +111 -0
- package/coverage/lcov-report/HeaderContent/index.tsx.html +158 -0
- package/coverage/lcov-report/HeaderLogo/index.html +111 -0
- package/coverage/lcov-report/HeaderLogo/index.tsx.html +164 -0
- package/coverage/lcov-report/HeaderSecondaryLogo/index.html +111 -0
- package/coverage/lcov-report/HeaderSecondaryLogo/index.tsx.html +185 -0
- package/coverage/lcov-report/HeaderSection/index.html +111 -0
- package/coverage/lcov-report/HeaderSection/index.tsx.html +158 -0
- package/coverage/lcov-report/HeaderSubtitle/index.html +111 -0
- package/coverage/lcov-report/HeaderSubtitle/index.tsx.html +140 -0
- package/coverage/lcov-report/HeaderTitle/index.html +111 -0
- package/coverage/lcov-report/HeaderTitle/index.tsx.html +176 -0
- package/coverage/lcov-report/Heading/index.html +111 -0
- package/coverage/lcov-report/Heading/index.tsx.html +212 -0
- package/coverage/lcov-report/HeadingCaption/index.html +111 -0
- package/coverage/lcov-report/HeadingCaption/index.tsx.html +185 -0
- package/coverage/lcov-report/HellenicRepublicLogo/index.html +111 -0
- package/coverage/lcov-report/HellenicRepublicLogo/index.tsx.html +206 -0
- package/coverage/lcov-report/Hint/index.html +111 -0
- package/coverage/lcov-report/Hint/index.tsx.html +155 -0
- package/coverage/lcov-report/Label/index.html +111 -0
- package/coverage/lcov-report/Label/index.tsx.html +176 -0
- package/coverage/lcov-report/Layout/index.html +111 -0
- package/coverage/lcov-report/Layout/index.tsx.html +155 -0
- package/coverage/lcov-report/Link/index.html +111 -0
- package/coverage/lcov-report/Link/index.tsx.html +176 -0
- package/coverage/lcov-report/List/index.html +111 -0
- package/coverage/lcov-report/List/index.tsx.html +197 -0
- package/coverage/lcov-report/ListItem/index.html +111 -0
- package/coverage/lcov-report/ListItem/index.tsx.html +155 -0
- package/coverage/lcov-report/Main/index.html +111 -0
- package/coverage/lcov-report/Main/index.tsx.html +158 -0
- package/coverage/lcov-report/Masthead/index.html +111 -0
- package/coverage/lcov-report/Masthead/index.tsx.html +206 -0
- package/coverage/lcov-report/MastheadBody/index.html +111 -0
- package/coverage/lcov-report/MastheadBody/index.tsx.html +158 -0
- package/coverage/lcov-report/NavHorizontal/index.html +111 -0
- package/coverage/lcov-report/NavHorizontal/index.tsx.html +182 -0
- package/coverage/lcov-report/NavHorizontalList/index.html +111 -0
- package/coverage/lcov-report/NavHorizontalList/index.tsx.html +161 -0
- package/coverage/lcov-report/NavHorizontalListItem/index.html +111 -0
- package/coverage/lcov-report/NavHorizontalListItem/index.tsx.html +206 -0
- package/coverage/lcov-report/NavVertical/index.html +111 -0
- package/coverage/lcov-report/NavVertical/index.tsx.html +161 -0
- package/coverage/lcov-report/NavVerticalItem/index.html +111 -0
- package/coverage/lcov-report/NavVerticalItem/index.tsx.html +182 -0
- package/coverage/lcov-report/NormalText/index.html +111 -0
- package/coverage/lcov-report/NormalText/index.tsx.html +263 -0
- package/coverage/lcov-report/NotificationBanner/index.html +111 -0
- package/coverage/lcov-report/NotificationBanner/index.tsx.html +197 -0
- package/coverage/lcov-report/NotificationBannerContent/index.html +111 -0
- package/coverage/lcov-report/NotificationBannerContent/index.tsx.html +167 -0
- package/coverage/lcov-report/NotificationBannerHeader/index.html +111 -0
- package/coverage/lcov-report/NotificationBannerHeader/index.tsx.html +182 -0
- package/coverage/lcov-report/NotificationBannerHeading/index.html +111 -0
- package/coverage/lcov-report/NotificationBannerHeading/index.tsx.html +164 -0
- package/coverage/lcov-report/NotificationBannerLink/index.html +111 -0
- package/coverage/lcov-report/NotificationBannerLink/index.tsx.html +191 -0
- package/coverage/lcov-report/PageTitle/index.html +111 -0
- package/coverage/lcov-report/PageTitle/index.tsx.html +137 -0
- package/coverage/lcov-report/PageTitleCaption/index.html +111 -0
- package/coverage/lcov-report/PageTitleCaption/index.tsx.html +191 -0
- package/coverage/lcov-report/PageTitleHeading/index.html +111 -0
- package/coverage/lcov-report/PageTitleHeading/index.tsx.html +191 -0
- package/coverage/lcov-report/PageTitleSection/index.html +111 -0
- package/coverage/lcov-report/PageTitleSection/index.tsx.html +140 -0
- package/coverage/lcov-report/Paragraph/index.html +111 -0
- package/coverage/lcov-report/Paragraph/index.tsx.html +260 -0
- package/coverage/lcov-report/PhaseBanner/index.html +111 -0
- package/coverage/lcov-report/PhaseBanner/index.tsx.html +176 -0
- package/coverage/lcov-report/PhaseBannerTag/index.html +111 -0
- package/coverage/lcov-report/PhaseBannerTag/index.tsx.html +161 -0
- package/coverage/lcov-report/PhaseBannerText/index.html +111 -0
- package/coverage/lcov-report/PhaseBannerText/index.tsx.html +164 -0
- package/coverage/lcov-report/Radio/index.html +111 -0
- package/coverage/lcov-report/Radio/index.tsx.html +158 -0
- package/coverage/lcov-report/RadioItem/index.html +111 -0
- package/coverage/lcov-report/RadioItem/index.tsx.html +230 -0
- package/coverage/lcov-report/SectionBreak/index.html +111 -0
- package/coverage/lcov-report/SectionBreak/index.tsx.html +194 -0
- package/coverage/lcov-report/Select/index.html +111 -0
- package/coverage/lcov-report/Select/index.tsx.html +179 -0
- package/coverage/lcov-report/SelectOption/index.html +111 -0
- package/coverage/lcov-report/SelectOption/index.tsx.html +200 -0
- package/coverage/lcov-report/ServiceBadge/index.html +111 -0
- package/coverage/lcov-report/ServiceBadge/index.tsx.html +161 -0
- package/coverage/lcov-report/SummaryList/index.html +111 -0
- package/coverage/lcov-report/SummaryList/index.tsx.html +158 -0
- package/coverage/lcov-report/SummaryListItem/index.html +111 -0
- package/coverage/lcov-report/SummaryListItem/index.tsx.html +161 -0
- package/coverage/lcov-report/SummaryListItemAction/index.html +111 -0
- package/coverage/lcov-report/SummaryListItemAction/index.tsx.html +161 -0
- package/coverage/lcov-report/SummaryListItemKey/index.html +111 -0
- package/coverage/lcov-report/SummaryListItemKey/index.tsx.html +161 -0
- package/coverage/lcov-report/SummaryListItemValue/index.html +111 -0
- package/coverage/lcov-report/SummaryListItemValue/index.tsx.html +158 -0
- package/coverage/lcov-report/Tabs/index.html +111 -0
- package/coverage/lcov-report/Tabs/index.tsx.html +161 -0
- package/coverage/lcov-report/TabsHeading/index.html +111 -0
- package/coverage/lcov-report/TabsHeading/index.tsx.html +185 -0
- package/coverage/lcov-report/TabsList/index.html +111 -0
- package/coverage/lcov-report/TabsList/index.tsx.html +161 -0
- package/coverage/lcov-report/TabsListItem/index.html +111 -0
- package/coverage/lcov-report/TabsListItem/index.tsx.html +227 -0
- package/coverage/lcov-report/TabsPanel/index.html +111 -0
- package/coverage/lcov-report/TabsPanel/index.tsx.html +182 -0
- package/coverage/lcov-report/TextArea/index.html +111 -0
- package/coverage/lcov-report/TextArea/index.tsx.html +224 -0
- package/coverage/lcov-report/TextInput/index.html +111 -0
- package/coverage/lcov-report/TextInput/index.tsx.html +320 -0
- package/coverage/lcov-report/Top/index.html +111 -0
- package/coverage/lcov-report/Top/index.tsx.html +152 -0
- package/coverage/lcov-report/VisuallyHidden/index.html +111 -0
- package/coverage/lcov-report/VisuallyHidden/index.tsx.html +161 -0
- package/coverage/lcov-report/WarningText/index.html +111 -0
- package/coverage/lcov-report/WarningText/index.tsx.html +221 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +79 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +1806 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +170 -0
- package/coverage/lcov.info +1508 -0
- package/dist/CHANGELOG.md +12 -1
- package/dist/Card/__snapshots__/index.test.tsx.snap +31 -0
- package/dist/Card/index.d.ts +16 -0
- package/dist/Card/index.js +40 -0
- package/dist/Card/index.test.d.ts +1 -0
- package/dist/Card/index.test.js +23 -0
- package/dist/CardAction/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/CardAction/index.d.ts +11 -0
- package/dist/CardAction/index.js +37 -0
- package/dist/CardAction/index.test.d.ts +1 -0
- package/dist/CardAction/index.test.js +15 -0
- package/dist/CardHeading/__snapshots__/index.test.tsx.snap +13 -0
- package/dist/CardHeading/index.d.ts +10 -0
- package/dist/CardHeading/index.js +38 -0
- package/dist/CardHeading/index.test.d.ts +1 -0
- package/dist/CardHeading/index.test.js +15 -0
- package/dist/CardText/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/CardText/index.d.ts +10 -0
- package/dist/CardText/index.js +36 -0
- package/dist/CardText/index.test.d.ts +1 -0
- package/dist/CardText/index.test.js +15 -0
- package/dist/FileUpload/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/FileUpload/index.js +1 -1
- package/dist/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/dist/HeaderLogo/index.js +1 -1
- package/dist/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/HeaderSecondaryLogo/index.js +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +1 -1
- package/dist/es/Card/__snapshots__/index.test.tsx.snap +31 -0
- package/dist/es/Card/index.js +25 -0
- package/dist/es/Card/index.test.js +17 -0
- package/dist/es/CardAction/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/es/CardAction/index.js +22 -0
- package/dist/es/CardAction/index.test.js +9 -0
- package/dist/es/CardHeading/__snapshots__/index.test.tsx.snap +13 -0
- package/dist/es/CardHeading/index.js +23 -0
- package/dist/es/CardHeading/index.test.js +9 -0
- package/dist/es/CardText/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/es/CardText/index.js +21 -0
- package/dist/es/CardText/index.test.js +9 -0
- package/dist/es/FileUpload/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/es/FileUpload/index.js +1 -1
- package/dist/es/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/dist/es/HeaderLogo/index.js +1 -1
- package/dist/es/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/es/HeaderSecondaryLogo/index.js +1 -1
- package/dist/es/Layout/index.js +1 -1
- package/dist/es/index.js +4 -0
- package/dist/esm/Card/__snapshots__/index.test.tsx.snap +31 -0
- package/dist/esm/Card/index.js +25 -0
- package/dist/esm/Card/index.test.js +17 -0
- package/dist/esm/CardAction/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/esm/CardAction/index.js +22 -0
- package/dist/esm/CardAction/index.test.js +9 -0
- package/dist/esm/CardHeading/__snapshots__/index.test.tsx.snap +13 -0
- package/dist/esm/CardHeading/index.js +23 -0
- package/dist/esm/CardHeading/index.test.js +9 -0
- package/dist/esm/CardText/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/esm/CardText/index.js +21 -0
- package/dist/esm/CardText/index.test.js +9 -0
- package/dist/esm/FileUpload/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/esm/FileUpload/index.js +1 -1
- package/dist/esm/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/dist/esm/HeaderLogo/index.js +1 -1
- package/dist/esm/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/esm/HeaderSecondaryLogo/index.js +1 -1
- package/dist/esm/Layout/index.js +1 -1
- package/dist/esm/index.js +5 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +32 -0
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/react-core.build.log +5 -5
- package/src/Card/__snapshots__/index.test.tsx.snap +31 -0
- package/src/Card/index.test.tsx +12 -0
- package/src/Card/index.tsx +41 -0
- package/src/CardAction/__snapshots__/index.test.tsx.snap +11 -0
- package/src/CardAction/index.test.tsx +8 -0
- package/src/CardAction/index.tsx +28 -0
- package/src/CardHeading/__snapshots__/index.test.tsx.snap +13 -0
- package/src/CardHeading/index.test.tsx +8 -0
- package/src/CardHeading/index.tsx +29 -0
- package/src/CardText/__snapshots__/index.test.tsx.snap +11 -0
- package/src/CardText/index.test.tsx +8 -0
- package/src/CardText/index.tsx +27 -0
- package/src/FileUpload/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FileUpload/index.tsx +1 -2
- package/src/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderLogo/index.tsx +3 -1
- package/src/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/src/HeaderSecondaryLogo/index.tsx +8 -1
- package/src/Layout/index.tsx +2 -2
- package/src/index.ts +4 -0
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# Change Log - @digigov/react-core
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 23 Nov 2021 14:17:33 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.2.0
|
|
6
|
+
Tue, 23 Nov 2021 14:17:33 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- create a new set of UI components for a Card component
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Update class names following @digigov/css changes
|
|
4
15
|
|
|
5
16
|
## 0.1.0
|
|
6
17
|
Fri, 05 Nov 2021 12:24:20 GMT
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Card with border props 1`] = `
|
|
4
|
+
<ForwardRef(Card)
|
|
5
|
+
border={true}
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
className="govgr-card--border govgr-card"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
className="govgr-card__body"
|
|
12
|
+
>
|
|
13
|
+
hello
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</ForwardRef(Card)>
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
exports[`renders the Card with no props 1`] = `
|
|
20
|
+
<ForwardRef(Card)>
|
|
21
|
+
<div
|
|
22
|
+
className="govgr-card"
|
|
23
|
+
>
|
|
24
|
+
<div
|
|
25
|
+
className="govgr-card__body"
|
|
26
|
+
>
|
|
27
|
+
hello
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</ForwardRef(Card)>
|
|
31
|
+
`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
3
|
+
export interface CardProps extends DivElementAttributes {
|
|
4
|
+
/**
|
|
5
|
+
* By default, we recommend using Cards without border style. Card border increases the contrast to its background.
|
|
6
|
+
* `border` property is optional.
|
|
7
|
+
*/
|
|
8
|
+
border?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Cards can be used to divide and organise interface content for better understandability and readability.
|
|
12
|
+
* Cards can help your users to scan through vast amounts of information quicker.
|
|
13
|
+
* Use Card as parent component to wrap CardHeading, CardText and CartAction components
|
|
14
|
+
*/
|
|
15
|
+
export declare const Card: React.ForwardRefExoticComponent<Pick<CardProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "border"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export default Card;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Card = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["border", "className", "children"];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Cards can be used to divide and organise interface content for better understandability and readability.
|
|
22
|
+
* Cards can help your users to scan through vast amounts of information quicker.
|
|
23
|
+
* Use Card as parent component to wrap CardHeading, CardText and CartAction components
|
|
24
|
+
*/
|
|
25
|
+
var Card = /*#__PURE__*/_react["default"].forwardRef(function Card(_ref, ref) {
|
|
26
|
+
var border = _ref.border,
|
|
27
|
+
className = _ref.className,
|
|
28
|
+
children = _ref.children,
|
|
29
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: (0, _clsx["default"])(className, border === true && 'govgr-card--border', true && 'govgr-card')
|
|
33
|
+
}, props), /*#__PURE__*/_react["default"].createElement("div", {
|
|
34
|
+
className: (0, _clsx["default"])(true && 'govgr-card__body')
|
|
35
|
+
}, children));
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
exports.Card = Card;
|
|
39
|
+
var _default = Card;
|
|
40
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _Card = _interopRequireDefault(require("@digigov/react-core/Card"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Card["default"], null, "hello");
|
|
12
|
+
|
|
13
|
+
it('renders the Card with no props', function () {
|
|
14
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
18
|
+
border: true
|
|
19
|
+
}, "hello");
|
|
20
|
+
|
|
21
|
+
it('renders the Card with border props', function () {
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
3
|
+
export interface CardActionProps extends DivElementAttributes {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* CardAction contains the action behavior for Card Component.
|
|
7
|
+
* We can use links, Buttons or ButtonGroup with max of two buttons
|
|
8
|
+
* Use CardAction inside Card component as childern
|
|
9
|
+
*/
|
|
10
|
+
export declare const CardAction: React.ForwardRefExoticComponent<Pick<CardActionProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default CardAction;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.CardAction = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["className", "children"];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* CardAction contains the action behavior for Card Component.
|
|
22
|
+
* We can use links, Buttons or ButtonGroup with max of two buttons
|
|
23
|
+
* Use CardAction inside Card component as childern
|
|
24
|
+
*/
|
|
25
|
+
var CardAction = /*#__PURE__*/_react["default"].forwardRef(function CardText(_ref, ref) {
|
|
26
|
+
var className = _ref.className,
|
|
27
|
+
children = _ref.children,
|
|
28
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
30
|
+
ref: ref,
|
|
31
|
+
className: (0, _clsx["default"])(className && className, true && 'govgr-card__action')
|
|
32
|
+
}, props), children);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
exports.CardAction = CardAction;
|
|
36
|
+
var _default = CardAction;
|
|
37
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _CardAction = _interopRequireDefault(require("@digigov/react-core/CardAction"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_CardAction["default"], null, "hello");
|
|
12
|
+
|
|
13
|
+
it('renders the CardAction with no props', function () {
|
|
14
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the CardAction with no props 1`] = `
|
|
4
|
+
<ForwardRef(CardHeading)>
|
|
5
|
+
<div
|
|
6
|
+
aria-level={2}
|
|
7
|
+
className="govgr-card__heading"
|
|
8
|
+
role="heading"
|
|
9
|
+
>
|
|
10
|
+
hello
|
|
11
|
+
</div>
|
|
12
|
+
</ForwardRef(CardHeading)>
|
|
13
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
3
|
+
export interface CardHeadingProps extends DivElementAttributes {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* CardHeading gives header title to Card Component
|
|
7
|
+
* Use CardHeading inside Card component as children
|
|
8
|
+
*/
|
|
9
|
+
export declare const CardHeading: React.ForwardRefExoticComponent<Pick<CardHeadingProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default CardHeading;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.CardHeading = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["className", "children"];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* CardHeading gives header title to Card Component
|
|
22
|
+
* Use CardHeading inside Card component as children
|
|
23
|
+
*/
|
|
24
|
+
var CardHeading = /*#__PURE__*/_react["default"].forwardRef(function CardHeading(_ref, ref) {
|
|
25
|
+
var className = _ref.className,
|
|
26
|
+
children = _ref.children,
|
|
27
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
29
|
+
ref: ref,
|
|
30
|
+
role: "heading",
|
|
31
|
+
"aria-level": 2,
|
|
32
|
+
className: (0, _clsx["default"])(className && className, true && 'govgr-card__heading')
|
|
33
|
+
}, props), children);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
exports.CardHeading = CardHeading;
|
|
37
|
+
var _default = CardHeading;
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _CardHeading = _interopRequireDefault(require("@digigov/react-core/CardHeading"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_CardHeading["default"], null, "hello");
|
|
12
|
+
|
|
13
|
+
it('renders the CardAction with no props', function () {
|
|
14
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
3
|
+
export interface CardTextProps extends DivElementAttributes {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* CardText contains the text for Card Component
|
|
7
|
+
* Use CardText inside Card component as children
|
|
8
|
+
*/
|
|
9
|
+
export declare const CardText: React.ForwardRefExoticComponent<Pick<CardTextProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default CardText;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.CardText = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["className", "children"];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* CardText contains the text for Card Component
|
|
22
|
+
* Use CardText inside Card component as children
|
|
23
|
+
*/
|
|
24
|
+
var CardText = /*#__PURE__*/_react["default"].forwardRef(function CardText(_ref, ref) {
|
|
25
|
+
var className = _ref.className,
|
|
26
|
+
children = _ref.children,
|
|
27
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
29
|
+
ref: ref,
|
|
30
|
+
className: (0, _clsx["default"])(className && className, true && 'govgr-card__text')
|
|
31
|
+
}, props), children);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
exports.CardText = CardText;
|
|
35
|
+
var _default = CardText;
|
|
36
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _CardText = _interopRequireDefault(require("@digigov/react-core/CardText"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_CardText["default"], null, "hello");
|
|
12
|
+
|
|
13
|
+
it('renders the CardAction with no props', function () {
|
|
14
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
@@ -8,7 +8,7 @@ exports[`renders the FileUpload with name prop 1`] = `
|
|
|
8
8
|
className="upload-file"
|
|
9
9
|
>
|
|
10
10
|
<input
|
|
11
|
-
className="
|
|
11
|
+
className="govgr-file-upload"
|
|
12
12
|
name="some-name"
|
|
13
13
|
type="file"
|
|
14
14
|
/>
|
|
@@ -22,7 +22,7 @@ exports[`renders the FileUpload with no props 1`] = `
|
|
|
22
22
|
className="upload-file"
|
|
23
23
|
>
|
|
24
24
|
<input
|
|
25
|
-
className="
|
|
25
|
+
className="govgr-file-upload"
|
|
26
26
|
type="file"
|
|
27
27
|
/>
|
|
28
28
|
</div>
|
package/dist/FileUpload/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var FileUpload = /*#__PURE__*/_react["default"].forwardRef(function FileUpload(_
|
|
|
32
32
|
}, props), children, /*#__PURE__*/_react["default"].createElement("input", {
|
|
33
33
|
type: "file",
|
|
34
34
|
name: name,
|
|
35
|
-
className: (0, _clsx["default"])(true &&
|
|
35
|
+
className: (0, _clsx["default"])(true && 'govgr-file-upload')
|
|
36
36
|
}));
|
|
37
37
|
});
|
|
38
38
|
|
package/dist/HeaderLogo/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var HeaderLogo = /*#__PURE__*/_react["default"].forwardRef(function HeaderLogo(_
|
|
|
26
26
|
return /*#__PURE__*/_react["default"].createElement("a", (0, _extends2["default"])({
|
|
27
27
|
href: "https://www.gov.gr/",
|
|
28
28
|
ref: ref,
|
|
29
|
-
className: (0, _clsx["default"])(className)
|
|
29
|
+
className: (0, _clsx["default"])(className, true && 'govuk-header-link')
|
|
30
30
|
}, props), /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
31
|
src: "https://www.gov.gr/gov_gr_logo.svg",
|
|
32
32
|
className: (0, _clsx["default"])(className, true && 'govgr-header-logo')
|
|
@@ -5,7 +5,7 @@ exports[`renders the HeaderSecondaryLogo with src 1`] = `
|
|
|
5
5
|
src="https://dilosi.services.gov.gr/minedu-logo.svg"
|
|
6
6
|
>
|
|
7
7
|
<a
|
|
8
|
-
className=""
|
|
8
|
+
className="govuk-header-link"
|
|
9
9
|
>
|
|
10
10
|
<img
|
|
11
11
|
className="govgr-header-secondary-logo"
|
|
@@ -21,7 +21,7 @@ exports[`renders the HeaderSecondaryLogo with src and href 1`] = `
|
|
|
21
21
|
src="https://dilosi.services.gov.gr/minedu-logo.svg"
|
|
22
22
|
>
|
|
23
23
|
<a
|
|
24
|
-
className=""
|
|
24
|
+
className="govuk-header-link"
|
|
25
25
|
href="https://www.minedu.gov.gr/"
|
|
26
26
|
>
|
|
27
27
|
<img
|
|
@@ -28,7 +28,7 @@ var HeaderSecondaryLogo = /*#__PURE__*/_react["default"].forwardRef(function Hea
|
|
|
28
28
|
return /*#__PURE__*/_react["default"].createElement("a", (0, _extends2["default"])({
|
|
29
29
|
href: href,
|
|
30
30
|
ref: ref,
|
|
31
|
-
className: (0, _clsx["default"])(className)
|
|
31
|
+
className: (0, _clsx["default"])(className, true && 'govuk-header-link')
|
|
32
32
|
}, props), /*#__PURE__*/_react["default"].createElement("img", {
|
|
33
33
|
src: src,
|
|
34
34
|
className: (0, _clsx["default"])(className, true && 'govgr-header-secondary-logo')
|
package/dist/Layout/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
|
3
3
|
export interface LayoutProps extends DivElementAttributes {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
* Wrapper component for the entire page.
|
|
6
|
+
* Wrapper component for the entire page except the Header and the Footer.
|
|
7
7
|
*/
|
|
8
8
|
export declare const Layout: React.ForwardRefExoticComponent<Pick<LayoutProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
export default Layout;
|
package/dist/Layout/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
18
18
|
var _excluded = ["className", "children"];
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Wrapper component for the entire page.
|
|
21
|
+
* Wrapper component for the entire page except the Header and the Footer.
|
|
22
22
|
*/
|
|
23
23
|
var Layout = /*#__PURE__*/_react["default"].forwardRef(function Layout(_ref, ref) {
|
|
24
24
|
var className = _ref.className,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the Card with border props 1`] = `
|
|
4
|
+
<ForwardRef(Card)
|
|
5
|
+
border={true}
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
className="govgr-card--border govgr-card"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
className="govgr-card__body"
|
|
12
|
+
>
|
|
13
|
+
hello
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</ForwardRef(Card)>
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
exports[`renders the Card with no props 1`] = `
|
|
20
|
+
<ForwardRef(Card)>
|
|
21
|
+
<div
|
|
22
|
+
className="govgr-card"
|
|
23
|
+
>
|
|
24
|
+
<div
|
|
25
|
+
className="govgr-card__body"
|
|
26
|
+
>
|
|
27
|
+
hello
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</ForwardRef(Card)>
|
|
31
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["border", "className", "children"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Cards can be used to divide and organise interface content for better understandability and readability.
|
|
9
|
+
* Cards can help your users to scan through vast amounts of information quicker.
|
|
10
|
+
* Use Card as parent component to wrap CardHeading, CardText and CartAction components
|
|
11
|
+
*/
|
|
12
|
+
export var Card = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) {
|
|
13
|
+
var border = _ref.border,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
children = _ref.children,
|
|
16
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
|
|
18
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
19
|
+
ref: ref,
|
|
20
|
+
className: clsx(className, border === true && 'govgr-card--border', true && 'govgr-card')
|
|
21
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: clsx(true && 'govgr-card__body')
|
|
23
|
+
}, children));
|
|
24
|
+
});
|
|
25
|
+
export default Card;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import Card from '@digigov/react-core/Card';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(Card, null, "hello");
|
|
6
|
+
|
|
7
|
+
it('renders the Card with no props', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(Card, {
|
|
12
|
+
border: true
|
|
13
|
+
}, "hello");
|
|
14
|
+
|
|
15
|
+
it('renders the Card with border props', function () {
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|