@digigov/react-core 0.2.0 → 0.3.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 +34 -0
- package/CHANGELOG.md +15 -1
- package/dist/AccordionControls/index.d.ts +9 -0
- package/dist/AccordionControls/index.js +35 -0
- package/dist/AccordionControls/index.test.d.ts +1 -0
- package/dist/AccordionControls/index.test.js +15 -0
- package/dist/AccordionSection/index.js +5 -5
- package/dist/AccordionSectionHeader/index.js +1 -1
- package/dist/BackLink/index.js +3 -0
- package/dist/ButtonLink/index.d.ts +17 -0
- package/dist/ButtonLink/index.js +37 -0
- package/dist/ButtonLink/index.test.d.ts +1 -0
- package/dist/ButtonLink/index.test.js +80 -0
- package/dist/CHANGELOG.md +15 -1
- package/dist/CallToAction/index.d.ts +4 -7
- package/dist/CallToAction/index.js +6 -7
- package/dist/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
- package/dist/Container/index.js +0 -1
- package/dist/GovGRLogo/index.d.ts +1 -5
- package/dist/Grid/__snapshots__/index.test.tsx.snap +105 -0
- package/dist/Grid/index.d.ts +20 -0
- package/dist/Grid/index.js +46 -0
- package/dist/Grid/index.test.d.ts +1 -0
- package/dist/Grid/index.test.js +71 -0
- package/dist/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/dist/HeaderLogo/index.d.ts +10 -2
- package/dist/HeaderLogo/index.js +8 -6
- package/dist/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/HeaderSecondaryLogo/index.js +1 -1
- package/dist/Heading/index.d.ts +2 -1
- package/dist/Heading/index.js +22 -3
- package/dist/HellenicRepublicLogo/index.d.ts +5 -0
- package/dist/HellenicRepublicLogo/index.js +8 -4
- package/dist/HellenicRepublicLogo/logo-el.d.ts +2 -0
- package/dist/HellenicRepublicLogo/logo-el.js +8 -0
- package/dist/HellenicRepublicLogo/logo-en.d.ts +2 -0
- package/dist/HellenicRepublicLogo/logo-en.js +8 -0
- package/dist/Layout/index.d.ts +2 -1
- package/dist/Layout/index.js +4 -2
- package/dist/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
- package/dist/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
- package/dist/PhaseBanner/index.d.ts +6 -1
- package/dist/PhaseBanner/index.js +4 -2
- package/dist/PhaseBanner/index.test.js +8 -0
- package/dist/Table/__snapshots__/index.test.tsx.snap +59 -0
- package/dist/Table/index.d.ts +34 -0
- package/dist/Table/index.js +42 -0
- package/dist/Table/index.test.d.ts +1 -0
- package/dist/Table/index.test.js +47 -0
- package/dist/TableBody/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/TableBody/index.d.ts +9 -0
- package/dist/TableBody/index.js +35 -0
- package/dist/TableBody/index.test.d.ts +1 -0
- package/dist/TableBody/index.test.js +15 -0
- package/dist/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
- package/dist/TableCaption/index.d.ts +15 -0
- package/dist/TableCaption/index.js +37 -0
- package/dist/TableCaption/index.test.d.ts +1 -0
- package/dist/TableCaption/index.test.js +47 -0
- package/dist/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
- package/dist/TableDataCell/index.d.ts +15 -0
- package/dist/TableDataCell/index.js +37 -0
- package/dist/TableDataCell/index.test.d.ts +1 -0
- package/dist/TableDataCell/index.test.js +23 -0
- package/dist/TableHead/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/TableHead/index.d.ts +9 -0
- package/dist/TableHead/index.js +35 -0
- package/dist/TableHead/index.test.d.ts +1 -0
- package/dist/TableHead/index.test.js +15 -0
- package/dist/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
- package/dist/TableHeaderCell/index.d.ts +21 -0
- package/dist/TableHeaderCell/index.js +38 -0
- package/dist/TableHeaderCell/index.test.d.ts +1 -0
- package/dist/TableHeaderCell/index.test.js +125 -0
- package/dist/TableRow/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/TableRow/index.d.ts +9 -0
- package/dist/TableRow/index.js +35 -0
- package/dist/TableRow/index.test.d.ts +1 -0
- package/dist/TableRow/index.test.js +15 -0
- package/dist/TabsListItem/index.d.ts +3 -3
- package/dist/TabsListItem/index.js +8 -7
- package/dist/TabsPanel/index.js +2 -0
- package/dist/TextInput/__snapshots__/index.test.tsx.snap +161 -161
- package/dist/TextInput/index.d.ts +4 -3
- package/dist/TextInput/index.js +3 -3
- package/dist/TextInput/index.test.js +72 -72
- package/dist/es/AccordionControls/index.js +20 -0
- package/dist/es/AccordionControls/index.test.js +9 -0
- package/dist/es/AccordionSection/index.js +5 -5
- package/dist/es/AccordionSectionHeader/index.js +1 -1
- package/dist/es/BackLink/index.js +3 -0
- package/dist/es/ButtonLink/index.js +22 -0
- package/dist/es/ButtonLink/index.test.js +74 -0
- package/dist/es/CallToAction/index.js +5 -7
- package/dist/es/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
- package/dist/es/Container/index.js +0 -1
- package/dist/es/Grid/__snapshots__/index.test.tsx.snap +105 -0
- package/dist/es/Grid/index.js +31 -0
- package/dist/es/Grid/index.test.js +65 -0
- package/dist/es/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/dist/es/HeaderLogo/index.js +8 -6
- package/dist/es/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/es/HeaderSecondaryLogo/index.js +1 -1
- package/dist/es/Heading/index.js +22 -3
- package/dist/es/HellenicRepublicLogo/index.js +6 -4
- package/dist/es/HellenicRepublicLogo/logo-el.js +1 -0
- package/dist/es/HellenicRepublicLogo/logo-en.js +1 -0
- package/dist/es/Layout/index.js +4 -2
- package/dist/es/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
- package/dist/es/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
- package/dist/es/PhaseBanner/index.js +4 -2
- package/dist/es/PhaseBanner/index.test.js +8 -0
- package/dist/es/Table/__snapshots__/index.test.tsx.snap +59 -0
- package/dist/es/Table/index.js +27 -0
- package/dist/es/Table/index.test.js +41 -0
- package/dist/es/TableBody/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/es/TableBody/index.js +20 -0
- package/dist/es/TableBody/index.test.js +9 -0
- package/dist/es/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
- package/dist/es/TableCaption/index.js +22 -0
- package/dist/es/TableCaption/index.test.js +41 -0
- package/dist/es/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
- package/dist/es/TableDataCell/index.js +22 -0
- package/dist/es/TableDataCell/index.test.js +17 -0
- package/dist/es/TableHead/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/es/TableHead/index.js +20 -0
- package/dist/es/TableHead/index.test.js +9 -0
- package/dist/es/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
- package/dist/es/TableHeaderCell/index.js +23 -0
- package/dist/es/TableHeaderCell/index.test.js +119 -0
- package/dist/es/TableRow/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/es/TableRow/index.js +20 -0
- package/dist/es/TableRow/index.test.js +9 -0
- package/dist/es/TabsListItem/index.js +8 -7
- package/dist/es/TabsPanel/index.js +2 -0
- package/dist/es/TextInput/__snapshots__/index.test.tsx.snap +161 -161
- package/dist/es/TextInput/index.js +3 -3
- package/dist/es/TextInput/index.test.js +72 -72
- package/dist/es/index.js +7 -0
- package/dist/esm/AccordionControls/index.js +20 -0
- package/dist/esm/AccordionControls/index.test.js +9 -0
- package/dist/esm/AccordionSection/index.js +5 -5
- package/dist/esm/AccordionSectionHeader/index.js +1 -1
- package/dist/esm/BackLink/index.js +3 -0
- package/dist/esm/ButtonLink/index.js +22 -0
- package/dist/esm/ButtonLink/index.test.js +74 -0
- package/dist/esm/CallToAction/index.js +5 -7
- package/dist/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
- package/dist/esm/Container/index.js +0 -1
- package/dist/esm/Grid/__snapshots__/index.test.tsx.snap +105 -0
- package/dist/esm/Grid/index.js +31 -0
- package/dist/esm/Grid/index.test.js +65 -0
- package/dist/esm/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/dist/esm/HeaderLogo/index.js +8 -6
- package/dist/esm/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/dist/esm/HeaderSecondaryLogo/index.js +1 -1
- package/dist/esm/Heading/index.js +22 -3
- package/dist/esm/HellenicRepublicLogo/index.js +6 -4
- package/dist/esm/HellenicRepublicLogo/logo-el.js +1 -0
- package/dist/esm/HellenicRepublicLogo/logo-en.js +1 -0
- package/dist/esm/Layout/index.js +4 -2
- package/dist/esm/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
- package/dist/esm/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
- package/dist/esm/PhaseBanner/index.js +4 -2
- package/dist/esm/PhaseBanner/index.test.js +8 -0
- package/dist/esm/Table/__snapshots__/index.test.tsx.snap +59 -0
- package/dist/esm/Table/index.js +27 -0
- package/dist/esm/Table/index.test.js +41 -0
- package/dist/esm/TableBody/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/esm/TableBody/index.js +20 -0
- package/dist/esm/TableBody/index.test.js +9 -0
- package/dist/esm/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
- package/dist/esm/TableCaption/index.js +22 -0
- package/dist/esm/TableCaption/index.test.js +41 -0
- package/dist/esm/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
- package/dist/esm/TableDataCell/index.js +22 -0
- package/dist/esm/TableDataCell/index.test.js +17 -0
- package/dist/esm/TableHead/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/esm/TableHead/index.js +20 -0
- package/dist/esm/TableHead/index.test.js +9 -0
- package/dist/esm/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
- package/dist/esm/TableHeaderCell/index.js +23 -0
- package/dist/esm/TableHeaderCell/index.test.js +119 -0
- package/dist/esm/TableRow/__snapshots__/index.test.tsx.snap +11 -0
- package/dist/esm/TableRow/index.js +20 -0
- package/dist/esm/TableRow/index.test.js +9 -0
- package/dist/esm/TabsListItem/index.js +8 -7
- package/dist/esm/TabsPanel/index.js +2 -0
- package/dist/esm/TextInput/__snapshots__/index.test.tsx.snap +161 -161
- package/dist/esm/TextInput/index.js +3 -3
- package/dist/esm/TextInput/index.test.js +72 -72
- package/dist/esm/index.js +8 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +56 -0
- package/dist/package.json +2 -2
- package/package.json +3 -3
- package/react-core.build.log +15 -13
- package/src/AccordionControls/index.test.tsx +14 -0
- package/src/AccordionControls/index.tsx +24 -0
- package/src/AccordionSection/index.tsx +4 -5
- package/src/AccordionSectionHeader/index.tsx +2 -2
- package/src/BackLink/index.tsx +3 -0
- package/src/ButtonLink/index.test.tsx +56 -0
- package/src/ButtonLink/index.tsx +40 -0
- package/src/CallToAction/index.tsx +7 -13
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
- package/src/Container/index.tsx +0 -1
- package/src/GovGRLogo/index.tsx +1 -6
- package/src/Grid/__snapshots__/index.test.tsx.snap +105 -0
- package/src/Grid/index.test.tsx +29 -0
- package/src/Grid/index.tsx +121 -0
- package/src/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderLogo/index.tsx +15 -6
- package/src/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/src/HeaderSecondaryLogo/index.tsx +1 -1
- package/src/Heading/index.tsx +22 -3
- package/src/HellenicRepublicLogo/index.tsx +10 -10
- package/src/HellenicRepublicLogo/logo-el.ts +1 -0
- package/src/HellenicRepublicLogo/logo-en.ts +1 -0
- package/src/Layout/index.tsx +5 -2
- package/src/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
- package/src/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
- package/src/PhaseBanner/index.test.tsx +4 -0
- package/src/PhaseBanner/index.tsx +9 -2
- package/src/Table/__snapshots__/index.test.tsx.snap +59 -0
- package/src/Table/index.test.tsx +24 -0
- package/src/Table/index.tsx +68 -0
- package/src/TableBody/__snapshots__/index.test.tsx.snap +11 -0
- package/src/TableBody/index.test.tsx +8 -0
- package/src/TableBody/index.tsx +26 -0
- package/src/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
- package/src/TableCaption/index.test.tsx +32 -0
- package/src/TableCaption/index.tsx +36 -0
- package/src/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
- package/src/TableDataCell/index.test.tsx +14 -0
- package/src/TableDataCell/index.tsx +37 -0
- package/src/TableHead/__snapshots__/index.test.tsx.snap +11 -0
- package/src/TableHead/index.test.tsx +8 -0
- package/src/TableHead/index.tsx +26 -0
- package/src/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
- package/src/TableHeaderCell/index.test.tsx +113 -0
- package/src/TableHeaderCell/index.tsx +55 -0
- package/src/TableRow/__snapshots__/index.test.tsx.snap +11 -0
- package/src/TableRow/index.test.tsx +8 -0
- package/src/TableRow/index.tsx +25 -0
- package/src/TabsListItem/index.tsx +24 -24
- package/src/TabsPanel/index.tsx +2 -0
- package/src/TextInput/__snapshots__/index.test.tsx.snap +161 -161
- package/src/TextInput/index.test.tsx +88 -72
- package/src/TextInput/index.tsx +10 -9
- package/src/index.ts +7 -0
- package/coverage/clover.xml +0 -919
- package/coverage/coverage-final.json +0 -115
- package/coverage/lcov-report/Accordion/index.html +0 -111
- package/coverage/lcov-report/Accordion/index.tsx.html +0 -158
- package/coverage/lcov-report/AccordionSection/index.html +0 -111
- package/coverage/lcov-report/AccordionSection/index.tsx.html +0 -182
- package/coverage/lcov-report/AccordionSectionContent/index.html +0 -111
- package/coverage/lcov-report/AccordionSectionContent/index.tsx.html +0 -161
- package/coverage/lcov-report/AccordionSectionHeader/index.html +0 -111
- package/coverage/lcov-report/AccordionSectionHeader/index.tsx.html +0 -194
- package/coverage/lcov-report/Aside/index.html +0 -111
- package/coverage/lcov-report/Aside/index.tsx.html +0 -161
- package/coverage/lcov-report/BackLink/index.html +0 -111
- package/coverage/lcov-report/BackLink/index.tsx.html +0 -188
- package/coverage/lcov-report/Blockquote/index.html +0 -111
- package/coverage/lcov-report/Blockquote/index.tsx.html +0 -155
- package/coverage/lcov-report/Bottom/index.html +0 -111
- package/coverage/lcov-report/Bottom/index.tsx.html +0 -149
- package/coverage/lcov-report/Breadcrumbs/index.html +0 -111
- package/coverage/lcov-report/Breadcrumbs/index.tsx.html +0 -158
- package/coverage/lcov-report/BreadcrumbsList/index.html +0 -111
- package/coverage/lcov-report/BreadcrumbsList/index.tsx.html +0 -158
- package/coverage/lcov-report/BreadcrumbsListItem/index.html +0 -111
- package/coverage/lcov-report/BreadcrumbsListItem/index.tsx.html +0 -197
- package/coverage/lcov-report/BurgerIcon/index.html +0 -111
- package/coverage/lcov-report/BurgerIcon/index.tsx.html +0 -227
- package/coverage/lcov-report/Button/index.html +0 -111
- package/coverage/lcov-report/Button/index.tsx.html +0 -221
- package/coverage/lcov-report/ButtonGroup/index.html +0 -111
- package/coverage/lcov-report/ButtonGroup/index.tsx.html +0 -155
- package/coverage/lcov-report/CallToAction/index.html +0 -111
- package/coverage/lcov-report/CallToAction/index.tsx.html +0 -203
- package/coverage/lcov-report/Card/index.html +0 -111
- package/coverage/lcov-report/Card/index.tsx.html +0 -203
- package/coverage/lcov-report/CardAction/index.html +0 -111
- package/coverage/lcov-report/CardAction/index.tsx.html +0 -164
- package/coverage/lcov-report/CardHeading/index.html +0 -111
- package/coverage/lcov-report/CardHeading/index.tsx.html +0 -167
- package/coverage/lcov-report/CardText/index.html +0 -111
- package/coverage/lcov-report/CardText/index.tsx.html +0 -161
- package/coverage/lcov-report/Checkbox/index.html +0 -111
- package/coverage/lcov-report/Checkbox/index.tsx.html +0 -161
- package/coverage/lcov-report/CheckboxConditional/index.html +0 -111
- package/coverage/lcov-report/CheckboxConditional/index.tsx.html +0 -236
- package/coverage/lcov-report/CheckboxItem/index.html +0 -111
- package/coverage/lcov-report/CheckboxItem/index.tsx.html +0 -233
- package/coverage/lcov-report/Confirmation/index.html +0 -111
- package/coverage/lcov-report/Confirmation/index.tsx.html +0 -158
- package/coverage/lcov-report/ConfirmationBody/index.html +0 -111
- package/coverage/lcov-report/ConfirmationBody/index.tsx.html +0 -158
- package/coverage/lcov-report/ConfirmationTitle/index.html +0 -111
- package/coverage/lcov-report/ConfirmationTitle/index.tsx.html +0 -158
- package/coverage/lcov-report/Container/index.html +0 -111
- package/coverage/lcov-report/Container/index.tsx.html +0 -179
- package/coverage/lcov-report/Copyright/index.html +0 -111
- package/coverage/lcov-report/Copyright/index.tsx.html +0 -158
- package/coverage/lcov-report/DateInput/index.html +0 -111
- package/coverage/lcov-report/DateInput/index.tsx.html +0 -164
- package/coverage/lcov-report/DateInputItem/index.html +0 -111
- package/coverage/lcov-report/DateInputItem/index.tsx.html +0 -227
- package/coverage/lcov-report/Details/index.html +0 -111
- package/coverage/lcov-report/Details/index.tsx.html +0 -158
- package/coverage/lcov-report/DetailsContent/index.html +0 -111
- package/coverage/lcov-report/DetailsContent/index.tsx.html +0 -161
- package/coverage/lcov-report/DetailsSummary/index.html +0 -111
- package/coverage/lcov-report/DetailsSummary/index.tsx.html +0 -158
- package/coverage/lcov-report/ErrorMessage/index.html +0 -111
- package/coverage/lcov-report/ErrorMessage/index.tsx.html +0 -164
- package/coverage/lcov-report/ErrorSummary/index.html +0 -111
- package/coverage/lcov-report/ErrorSummary/index.tsx.html +0 -155
- package/coverage/lcov-report/Fieldset/index.html +0 -111
- package/coverage/lcov-report/Fieldset/index.tsx.html +0 -158
- package/coverage/lcov-report/FieldsetLegend/index.html +0 -111
- package/coverage/lcov-report/FieldsetLegend/index.tsx.html +0 -233
- package/coverage/lcov-report/FileUpload/index.html +0 -111
- package/coverage/lcov-report/FileUpload/index.tsx.html +0 -197
- package/coverage/lcov-report/Footer/index.html +0 -111
- package/coverage/lcov-report/Footer/index.tsx.html +0 -155
- package/coverage/lcov-report/FooterContainer/index.html +0 -111
- package/coverage/lcov-report/FooterContainer/index.tsx.html +0 -158
- package/coverage/lcov-report/FooterContent/index.html +0 -111
- package/coverage/lcov-report/FooterContent/index.tsx.html +0 -161
- package/coverage/lcov-report/FooterContentLogos/index.html +0 -111
- package/coverage/lcov-report/FooterContentLogos/index.tsx.html +0 -164
- package/coverage/lcov-report/FooterHeading/index.html +0 -111
- package/coverage/lcov-report/FooterHeading/index.tsx.html +0 -185
- package/coverage/lcov-report/FooterImage/index.html +0 -111
- package/coverage/lcov-report/FooterImage/index.tsx.html +0 -161
- package/coverage/lcov-report/FooterInlineList/index.html +0 -111
- package/coverage/lcov-report/FooterInlineList/index.tsx.html +0 -164
- package/coverage/lcov-report/FooterInlineListItem/index.html +0 -111
- package/coverage/lcov-report/FooterInlineListItem/index.tsx.html +0 -158
- package/coverage/lcov-report/FooterLink/index.html +0 -111
- package/coverage/lcov-report/FooterLink/index.tsx.html +0 -173
- package/coverage/lcov-report/FooterList/index.html +0 -111
- package/coverage/lcov-report/FooterList/index.tsx.html +0 -179
- package/coverage/lcov-report/FooterListItem/index.html +0 -111
- package/coverage/lcov-report/FooterListItem/index.tsx.html +0 -161
- package/coverage/lcov-report/FooterMeta/index.html +0 -111
- package/coverage/lcov-report/FooterMeta/index.tsx.html +0 -161
- package/coverage/lcov-report/FooterMetaItem/index.html +0 -111
- package/coverage/lcov-report/FooterMetaItem/index.tsx.html +0 -179
- package/coverage/lcov-report/FooterNavigation/index.html +0 -111
- package/coverage/lcov-report/FooterNavigation/index.tsx.html +0 -164
- package/coverage/lcov-report/FooterSection/index.html +0 -111
- package/coverage/lcov-report/FooterSection/index.tsx.html +0 -164
- package/coverage/lcov-report/FormGroup/index.html +0 -111
- package/coverage/lcov-report/FormGroup/index.tsx.html +0 -173
- package/coverage/lcov-report/GovGRFooter/index.html +0 -111
- package/coverage/lcov-report/GovGRFooter/index.tsx.html +0 -155
- package/coverage/lcov-report/GovGRLogo/index.html +0 -111
- package/coverage/lcov-report/GovGRLogo/index.tsx.html +0 -176
- package/coverage/lcov-report/Header/index.html +0 -111
- package/coverage/lcov-report/Header/index.tsx.html +0 -167
- package/coverage/lcov-report/HeaderContent/index.html +0 -111
- package/coverage/lcov-report/HeaderContent/index.tsx.html +0 -158
- package/coverage/lcov-report/HeaderLogo/index.html +0 -111
- package/coverage/lcov-report/HeaderLogo/index.tsx.html +0 -164
- package/coverage/lcov-report/HeaderSecondaryLogo/index.html +0 -111
- package/coverage/lcov-report/HeaderSecondaryLogo/index.tsx.html +0 -185
- package/coverage/lcov-report/HeaderSection/index.html +0 -111
- package/coverage/lcov-report/HeaderSection/index.tsx.html +0 -158
- package/coverage/lcov-report/HeaderSubtitle/index.html +0 -111
- package/coverage/lcov-report/HeaderSubtitle/index.tsx.html +0 -140
- package/coverage/lcov-report/HeaderTitle/index.html +0 -111
- package/coverage/lcov-report/HeaderTitle/index.tsx.html +0 -176
- package/coverage/lcov-report/Heading/index.html +0 -111
- package/coverage/lcov-report/Heading/index.tsx.html +0 -212
- package/coverage/lcov-report/HeadingCaption/index.html +0 -111
- package/coverage/lcov-report/HeadingCaption/index.tsx.html +0 -185
- package/coverage/lcov-report/HellenicRepublicLogo/index.html +0 -111
- package/coverage/lcov-report/HellenicRepublicLogo/index.tsx.html +0 -206
- package/coverage/lcov-report/Hint/index.html +0 -111
- package/coverage/lcov-report/Hint/index.tsx.html +0 -155
- package/coverage/lcov-report/Label/index.html +0 -111
- package/coverage/lcov-report/Label/index.tsx.html +0 -176
- package/coverage/lcov-report/Layout/index.html +0 -111
- package/coverage/lcov-report/Layout/index.tsx.html +0 -155
- package/coverage/lcov-report/Link/index.html +0 -111
- package/coverage/lcov-report/Link/index.tsx.html +0 -176
- package/coverage/lcov-report/List/index.html +0 -111
- package/coverage/lcov-report/List/index.tsx.html +0 -197
- package/coverage/lcov-report/ListItem/index.html +0 -111
- package/coverage/lcov-report/ListItem/index.tsx.html +0 -155
- package/coverage/lcov-report/Main/index.html +0 -111
- package/coverage/lcov-report/Main/index.tsx.html +0 -158
- package/coverage/lcov-report/Masthead/index.html +0 -111
- package/coverage/lcov-report/Masthead/index.tsx.html +0 -206
- package/coverage/lcov-report/MastheadBody/index.html +0 -111
- package/coverage/lcov-report/MastheadBody/index.tsx.html +0 -158
- package/coverage/lcov-report/NavHorizontal/index.html +0 -111
- package/coverage/lcov-report/NavHorizontal/index.tsx.html +0 -182
- package/coverage/lcov-report/NavHorizontalList/index.html +0 -111
- package/coverage/lcov-report/NavHorizontalList/index.tsx.html +0 -161
- package/coverage/lcov-report/NavHorizontalListItem/index.html +0 -111
- package/coverage/lcov-report/NavHorizontalListItem/index.tsx.html +0 -206
- package/coverage/lcov-report/NavVertical/index.html +0 -111
- package/coverage/lcov-report/NavVertical/index.tsx.html +0 -161
- package/coverage/lcov-report/NavVerticalItem/index.html +0 -111
- package/coverage/lcov-report/NavVerticalItem/index.tsx.html +0 -182
- package/coverage/lcov-report/NormalText/index.html +0 -111
- package/coverage/lcov-report/NormalText/index.tsx.html +0 -263
- package/coverage/lcov-report/NotificationBanner/index.html +0 -111
- package/coverage/lcov-report/NotificationBanner/index.tsx.html +0 -197
- package/coverage/lcov-report/NotificationBannerContent/index.html +0 -111
- package/coverage/lcov-report/NotificationBannerContent/index.tsx.html +0 -167
- package/coverage/lcov-report/NotificationBannerHeader/index.html +0 -111
- package/coverage/lcov-report/NotificationBannerHeader/index.tsx.html +0 -182
- package/coverage/lcov-report/NotificationBannerHeading/index.html +0 -111
- package/coverage/lcov-report/NotificationBannerHeading/index.tsx.html +0 -164
- package/coverage/lcov-report/NotificationBannerLink/index.html +0 -111
- package/coverage/lcov-report/NotificationBannerLink/index.tsx.html +0 -191
- package/coverage/lcov-report/PageTitle/index.html +0 -111
- package/coverage/lcov-report/PageTitle/index.tsx.html +0 -137
- package/coverage/lcov-report/PageTitleCaption/index.html +0 -111
- package/coverage/lcov-report/PageTitleCaption/index.tsx.html +0 -191
- package/coverage/lcov-report/PageTitleHeading/index.html +0 -111
- package/coverage/lcov-report/PageTitleHeading/index.tsx.html +0 -191
- package/coverage/lcov-report/PageTitleSection/index.html +0 -111
- package/coverage/lcov-report/PageTitleSection/index.tsx.html +0 -140
- package/coverage/lcov-report/Paragraph/index.html +0 -111
- package/coverage/lcov-report/Paragraph/index.tsx.html +0 -260
- package/coverage/lcov-report/PhaseBanner/index.html +0 -111
- package/coverage/lcov-report/PhaseBanner/index.tsx.html +0 -176
- package/coverage/lcov-report/PhaseBannerTag/index.html +0 -111
- package/coverage/lcov-report/PhaseBannerTag/index.tsx.html +0 -161
- package/coverage/lcov-report/PhaseBannerText/index.html +0 -111
- package/coverage/lcov-report/PhaseBannerText/index.tsx.html +0 -164
- package/coverage/lcov-report/Radio/index.html +0 -111
- package/coverage/lcov-report/Radio/index.tsx.html +0 -158
- package/coverage/lcov-report/RadioItem/index.html +0 -111
- package/coverage/lcov-report/RadioItem/index.tsx.html +0 -230
- package/coverage/lcov-report/SectionBreak/index.html +0 -111
- package/coverage/lcov-report/SectionBreak/index.tsx.html +0 -194
- package/coverage/lcov-report/Select/index.html +0 -111
- package/coverage/lcov-report/Select/index.tsx.html +0 -179
- package/coverage/lcov-report/SelectOption/index.html +0 -111
- package/coverage/lcov-report/SelectOption/index.tsx.html +0 -200
- package/coverage/lcov-report/ServiceBadge/index.html +0 -111
- package/coverage/lcov-report/ServiceBadge/index.tsx.html +0 -161
- package/coverage/lcov-report/SummaryList/index.html +0 -111
- package/coverage/lcov-report/SummaryList/index.tsx.html +0 -158
- package/coverage/lcov-report/SummaryListItem/index.html +0 -111
- package/coverage/lcov-report/SummaryListItem/index.tsx.html +0 -161
- package/coverage/lcov-report/SummaryListItemAction/index.html +0 -111
- package/coverage/lcov-report/SummaryListItemAction/index.tsx.html +0 -161
- package/coverage/lcov-report/SummaryListItemKey/index.html +0 -111
- package/coverage/lcov-report/SummaryListItemKey/index.tsx.html +0 -161
- package/coverage/lcov-report/SummaryListItemValue/index.html +0 -111
- package/coverage/lcov-report/SummaryListItemValue/index.tsx.html +0 -158
- package/coverage/lcov-report/Tabs/index.html +0 -111
- package/coverage/lcov-report/Tabs/index.tsx.html +0 -161
- package/coverage/lcov-report/TabsHeading/index.html +0 -111
- package/coverage/lcov-report/TabsHeading/index.tsx.html +0 -185
- package/coverage/lcov-report/TabsList/index.html +0 -111
- package/coverage/lcov-report/TabsList/index.tsx.html +0 -161
- package/coverage/lcov-report/TabsListItem/index.html +0 -111
- package/coverage/lcov-report/TabsListItem/index.tsx.html +0 -227
- package/coverage/lcov-report/TabsPanel/index.html +0 -111
- package/coverage/lcov-report/TabsPanel/index.tsx.html +0 -182
- package/coverage/lcov-report/TextArea/index.html +0 -111
- package/coverage/lcov-report/TextArea/index.tsx.html +0 -224
- package/coverage/lcov-report/TextInput/index.html +0 -111
- package/coverage/lcov-report/TextInput/index.tsx.html +0 -320
- package/coverage/lcov-report/Top/index.html +0 -111
- package/coverage/lcov-report/Top/index.tsx.html +0 -152
- package/coverage/lcov-report/VisuallyHidden/index.html +0 -111
- package/coverage/lcov-report/VisuallyHidden/index.tsx.html +0 -161
- package/coverage/lcov-report/WarningText/index.html +0 -111
- package/coverage/lcov-report/WarningText/index.tsx.html +0 -221
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -1806
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -170
- package/coverage/lcov.info +0 -1508
|
@@ -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 = ["type", "name", "characterWidth", "
|
|
3
|
+
var _excluded = ["type", "name", "characterWidth", "cellWidth", "error", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ export var TextInput = /*#__PURE__*/React.forwardRef(function TextInput(_ref, re
|
|
|
13
13
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
14
14
|
name = _ref.name,
|
|
15
15
|
characterWidth = _ref.characterWidth,
|
|
16
|
-
|
|
16
|
+
cellWidth = _ref.cellWidth,
|
|
17
17
|
error = _ref.error,
|
|
18
18
|
className = _ref.className,
|
|
19
19
|
children = _ref.children,
|
|
@@ -23,7 +23,7 @@ export var TextInput = /*#__PURE__*/React.forwardRef(function TextInput(_ref, re
|
|
|
23
23
|
type: type,
|
|
24
24
|
name: name,
|
|
25
25
|
ref: ref,
|
|
26
|
-
className: clsx(className,
|
|
26
|
+
className: clsx(className, cellWidth === 'three-quarters' && 'govgr-!-width-three-quarters', cellWidth === 'one-quarter' && 'govgr-!-width-one-quarter', cellWidth === 'two-thirds' && 'govgr-!-width-two-thirds', cellWidth === 'one-third' && 'govgr-!-width-one-third', cellWidth === 'one-half' && 'govgr-!-width-one-half', characterWidth === 10 && 'govgr-input--width-10', characterWidth === 20 && 'govgr-input--width-20', characterWidth === 2 && 'govgr-input--width-2', characterWidth === 3 && 'govgr-input--width-3', characterWidth === 4 && 'govgr-input--width-4', characterWidth === 5 && 'govgr-input--width-5', cellWidth === 'full' && 'govgr-!-width-full', error === true && 'govgr-error-input', true && 'govgr-input')
|
|
27
27
|
}, props), children);
|
|
28
28
|
});
|
|
29
29
|
export default TextInput;
|
|
@@ -57,319 +57,319 @@ it('renders the TextInput with characterWidth=20', function () {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
var _ref8 = /*#__PURE__*/React.createElement(TextInput, {
|
|
60
|
-
|
|
60
|
+
cellWidth: 'one-quarter'
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
it('renders the TextInput with
|
|
63
|
+
it('renders the TextInput with cellWidth=one-quarter', function () {
|
|
64
64
|
expect(mount(_ref8)).toMatchSnapshot();
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
var _ref9 = /*#__PURE__*/React.createElement(TextInput, {
|
|
68
|
-
|
|
68
|
+
cellWidth: 'one-third'
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
it('renders the TextInput with
|
|
71
|
+
it('renders the TextInput with cellWidth=one-third', function () {
|
|
72
72
|
expect(mount(_ref9)).toMatchSnapshot();
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
var _ref10 = /*#__PURE__*/React.createElement(TextInput, {
|
|
76
|
-
|
|
76
|
+
cellWidth: 'one-half'
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
it('renders the TextInput with
|
|
79
|
+
it('renders the TextInput with cellWidth=one-half', function () {
|
|
80
80
|
expect(mount(_ref10)).toMatchSnapshot();
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
var _ref11 = /*#__PURE__*/React.createElement(TextInput, {
|
|
84
|
-
|
|
84
|
+
cellWidth: 'two-thirds'
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
it('renders the TextInput with
|
|
87
|
+
it('renders the TextInput with cellWidth=two-thirds', function () {
|
|
88
88
|
expect(mount(_ref11)).toMatchSnapshot();
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
var _ref12 = /*#__PURE__*/React.createElement(TextInput, {
|
|
92
|
-
|
|
92
|
+
cellWidth: 'three-quarters'
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
it('renders the TextInput with
|
|
95
|
+
it('renders the TextInput with cellWidth=three-quarters', function () {
|
|
96
96
|
expect(mount(_ref12)).toMatchSnapshot();
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
var _ref13 = /*#__PURE__*/React.createElement(TextInput, {
|
|
100
|
-
|
|
100
|
+
cellWidth: 'full'
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
it('renders the TextInput with
|
|
103
|
+
it('renders the TextInput with cellWidth=full', function () {
|
|
104
104
|
expect(mount(_ref13)).toMatchSnapshot();
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
var _ref14 = /*#__PURE__*/React.createElement(TextInput, {
|
|
108
108
|
characterWidth: 2,
|
|
109
|
-
|
|
109
|
+
cellWidth: 'one-quarter'
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
112
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=one-quarter', function () {
|
|
113
113
|
expect(mount(_ref14)).toMatchSnapshot();
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
var _ref15 = /*#__PURE__*/React.createElement(TextInput, {
|
|
117
117
|
characterWidth: 3,
|
|
118
|
-
|
|
118
|
+
cellWidth: 'one-quarter'
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
121
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=one-quarter', function () {
|
|
122
122
|
expect(mount(_ref15)).toMatchSnapshot();
|
|
123
123
|
});
|
|
124
124
|
|
|
125
125
|
var _ref16 = /*#__PURE__*/React.createElement(TextInput, {
|
|
126
126
|
characterWidth: 4,
|
|
127
|
-
|
|
127
|
+
cellWidth: 'one-quarter'
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
130
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=one-quarter', function () {
|
|
131
131
|
expect(mount(_ref16)).toMatchSnapshot();
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
var _ref17 = /*#__PURE__*/React.createElement(TextInput, {
|
|
135
135
|
characterWidth: 5,
|
|
136
|
-
|
|
136
|
+
cellWidth: 'one-quarter'
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
139
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=one-quarter', function () {
|
|
140
140
|
expect(mount(_ref17)).toMatchSnapshot();
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
var _ref18 = /*#__PURE__*/React.createElement(TextInput, {
|
|
144
144
|
characterWidth: 20,
|
|
145
|
-
|
|
145
|
+
cellWidth: 'one-quarter'
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
148
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=one-quarter', function () {
|
|
149
149
|
expect(mount(_ref18)).toMatchSnapshot();
|
|
150
150
|
});
|
|
151
151
|
|
|
152
152
|
var _ref19 = /*#__PURE__*/React.createElement(TextInput, {
|
|
153
153
|
characterWidth: 2,
|
|
154
|
-
|
|
154
|
+
cellWidth: 'one-third'
|
|
155
155
|
});
|
|
156
156
|
|
|
157
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
157
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=one-third', function () {
|
|
158
158
|
expect(mount(_ref19)).toMatchSnapshot();
|
|
159
159
|
});
|
|
160
160
|
|
|
161
161
|
var _ref20 = /*#__PURE__*/React.createElement(TextInput, {
|
|
162
162
|
characterWidth: 3,
|
|
163
|
-
|
|
163
|
+
cellWidth: 'one-third'
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
166
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=one-third', function () {
|
|
167
167
|
expect(mount(_ref20)).toMatchSnapshot();
|
|
168
168
|
});
|
|
169
169
|
|
|
170
170
|
var _ref21 = /*#__PURE__*/React.createElement(TextInput, {
|
|
171
171
|
characterWidth: 4,
|
|
172
|
-
|
|
172
|
+
cellWidth: 'one-third'
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
175
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=one-third', function () {
|
|
176
176
|
expect(mount(_ref21)).toMatchSnapshot();
|
|
177
177
|
});
|
|
178
178
|
|
|
179
179
|
var _ref22 = /*#__PURE__*/React.createElement(TextInput, {
|
|
180
180
|
characterWidth: 5,
|
|
181
|
-
|
|
181
|
+
cellWidth: 'one-third'
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
184
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=one-third', function () {
|
|
185
185
|
expect(mount(_ref22)).toMatchSnapshot();
|
|
186
186
|
});
|
|
187
187
|
|
|
188
188
|
var _ref23 = /*#__PURE__*/React.createElement(TextInput, {
|
|
189
189
|
characterWidth: 20,
|
|
190
|
-
|
|
190
|
+
cellWidth: 'one-third'
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
193
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=one-third', function () {
|
|
194
194
|
expect(mount(_ref23)).toMatchSnapshot();
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
var _ref24 = /*#__PURE__*/React.createElement(TextInput, {
|
|
198
198
|
characterWidth: 2,
|
|
199
|
-
|
|
199
|
+
cellWidth: 'one-half'
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
202
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=one-half', function () {
|
|
203
203
|
expect(mount(_ref24)).toMatchSnapshot();
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
var _ref25 = /*#__PURE__*/React.createElement(TextInput, {
|
|
207
207
|
characterWidth: 3,
|
|
208
|
-
|
|
208
|
+
cellWidth: 'one-half'
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
211
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=one-half', function () {
|
|
212
212
|
expect(mount(_ref25)).toMatchSnapshot();
|
|
213
213
|
});
|
|
214
214
|
|
|
215
215
|
var _ref26 = /*#__PURE__*/React.createElement(TextInput, {
|
|
216
216
|
characterWidth: 4,
|
|
217
|
-
|
|
217
|
+
cellWidth: 'one-half'
|
|
218
218
|
});
|
|
219
219
|
|
|
220
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
220
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=one-half', function () {
|
|
221
221
|
expect(mount(_ref26)).toMatchSnapshot();
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
var _ref27 = /*#__PURE__*/React.createElement(TextInput, {
|
|
225
225
|
characterWidth: 5,
|
|
226
|
-
|
|
226
|
+
cellWidth: 'one-half'
|
|
227
227
|
});
|
|
228
228
|
|
|
229
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
229
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=one-half', function () {
|
|
230
230
|
expect(mount(_ref27)).toMatchSnapshot();
|
|
231
231
|
});
|
|
232
232
|
|
|
233
233
|
var _ref28 = /*#__PURE__*/React.createElement(TextInput, {
|
|
234
234
|
characterWidth: 20,
|
|
235
|
-
|
|
235
|
+
cellWidth: 'one-half'
|
|
236
236
|
});
|
|
237
237
|
|
|
238
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
238
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=one-half', function () {
|
|
239
239
|
expect(mount(_ref28)).toMatchSnapshot();
|
|
240
240
|
});
|
|
241
241
|
|
|
242
242
|
var _ref29 = /*#__PURE__*/React.createElement(TextInput, {
|
|
243
243
|
characterWidth: 2,
|
|
244
|
-
|
|
244
|
+
cellWidth: 'two-thirds'
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
247
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=two-thirds', function () {
|
|
248
248
|
expect(mount(_ref29)).toMatchSnapshot();
|
|
249
249
|
});
|
|
250
250
|
|
|
251
251
|
var _ref30 = /*#__PURE__*/React.createElement(TextInput, {
|
|
252
252
|
characterWidth: 3,
|
|
253
|
-
|
|
253
|
+
cellWidth: 'two-thirds'
|
|
254
254
|
});
|
|
255
255
|
|
|
256
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
256
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=two-thirds', function () {
|
|
257
257
|
expect(mount(_ref30)).toMatchSnapshot();
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
var _ref31 = /*#__PURE__*/React.createElement(TextInput, {
|
|
261
261
|
characterWidth: 4,
|
|
262
|
-
|
|
262
|
+
cellWidth: 'two-thirds'
|
|
263
263
|
});
|
|
264
264
|
|
|
265
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
265
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=two-thirds', function () {
|
|
266
266
|
expect(mount(_ref31)).toMatchSnapshot();
|
|
267
267
|
});
|
|
268
268
|
|
|
269
269
|
var _ref32 = /*#__PURE__*/React.createElement(TextInput, {
|
|
270
270
|
characterWidth: 5,
|
|
271
|
-
|
|
271
|
+
cellWidth: 'two-thirds'
|
|
272
272
|
});
|
|
273
273
|
|
|
274
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
274
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=two-thirds', function () {
|
|
275
275
|
expect(mount(_ref32)).toMatchSnapshot();
|
|
276
276
|
});
|
|
277
277
|
|
|
278
278
|
var _ref33 = /*#__PURE__*/React.createElement(TextInput, {
|
|
279
279
|
characterWidth: 20,
|
|
280
|
-
|
|
280
|
+
cellWidth: 'two-thirds'
|
|
281
281
|
});
|
|
282
282
|
|
|
283
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
283
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=two-thirds', function () {
|
|
284
284
|
expect(mount(_ref33)).toMatchSnapshot();
|
|
285
285
|
});
|
|
286
286
|
|
|
287
287
|
var _ref34 = /*#__PURE__*/React.createElement(TextInput, {
|
|
288
288
|
characterWidth: 2,
|
|
289
|
-
|
|
289
|
+
cellWidth: 'three-quarters'
|
|
290
290
|
});
|
|
291
291
|
|
|
292
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
292
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=three-quarters', function () {
|
|
293
293
|
expect(mount(_ref34)).toMatchSnapshot();
|
|
294
294
|
});
|
|
295
295
|
|
|
296
296
|
var _ref35 = /*#__PURE__*/React.createElement(TextInput, {
|
|
297
297
|
characterWidth: 3,
|
|
298
|
-
|
|
298
|
+
cellWidth: 'three-quarters'
|
|
299
299
|
});
|
|
300
300
|
|
|
301
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
301
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=three-quarters', function () {
|
|
302
302
|
expect(mount(_ref35)).toMatchSnapshot();
|
|
303
303
|
});
|
|
304
304
|
|
|
305
305
|
var _ref36 = /*#__PURE__*/React.createElement(TextInput, {
|
|
306
306
|
characterWidth: 4,
|
|
307
|
-
|
|
307
|
+
cellWidth: 'three-quarters'
|
|
308
308
|
});
|
|
309
309
|
|
|
310
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
310
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=three-quarters', function () {
|
|
311
311
|
expect(mount(_ref36)).toMatchSnapshot();
|
|
312
312
|
});
|
|
313
313
|
|
|
314
314
|
var _ref37 = /*#__PURE__*/React.createElement(TextInput, {
|
|
315
315
|
characterWidth: 5,
|
|
316
|
-
|
|
316
|
+
cellWidth: 'three-quarters'
|
|
317
317
|
});
|
|
318
318
|
|
|
319
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
319
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=three-quarters', function () {
|
|
320
320
|
expect(mount(_ref37)).toMatchSnapshot();
|
|
321
321
|
});
|
|
322
322
|
|
|
323
323
|
var _ref38 = /*#__PURE__*/React.createElement(TextInput, {
|
|
324
324
|
characterWidth: 20,
|
|
325
|
-
|
|
325
|
+
cellWidth: 'three-quarters'
|
|
326
326
|
});
|
|
327
327
|
|
|
328
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
328
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=three-quarters', function () {
|
|
329
329
|
expect(mount(_ref38)).toMatchSnapshot();
|
|
330
330
|
});
|
|
331
331
|
|
|
332
332
|
var _ref39 = /*#__PURE__*/React.createElement(TextInput, {
|
|
333
333
|
characterWidth: 2,
|
|
334
|
-
|
|
334
|
+
cellWidth: 'full'
|
|
335
335
|
});
|
|
336
336
|
|
|
337
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
337
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=full', function () {
|
|
338
338
|
expect(mount(_ref39)).toMatchSnapshot();
|
|
339
339
|
});
|
|
340
340
|
|
|
341
341
|
var _ref40 = /*#__PURE__*/React.createElement(TextInput, {
|
|
342
342
|
characterWidth: 3,
|
|
343
|
-
|
|
343
|
+
cellWidth: 'full'
|
|
344
344
|
});
|
|
345
345
|
|
|
346
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
346
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=full', function () {
|
|
347
347
|
expect(mount(_ref40)).toMatchSnapshot();
|
|
348
348
|
});
|
|
349
349
|
|
|
350
350
|
var _ref41 = /*#__PURE__*/React.createElement(TextInput, {
|
|
351
351
|
characterWidth: 4,
|
|
352
|
-
|
|
352
|
+
cellWidth: 'full'
|
|
353
353
|
});
|
|
354
354
|
|
|
355
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
355
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=full', function () {
|
|
356
356
|
expect(mount(_ref41)).toMatchSnapshot();
|
|
357
357
|
});
|
|
358
358
|
|
|
359
359
|
var _ref42 = /*#__PURE__*/React.createElement(TextInput, {
|
|
360
360
|
characterWidth: 5,
|
|
361
|
-
|
|
361
|
+
cellWidth: 'full'
|
|
362
362
|
});
|
|
363
363
|
|
|
364
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
364
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=full', function () {
|
|
365
365
|
expect(mount(_ref42)).toMatchSnapshot();
|
|
366
366
|
});
|
|
367
367
|
|
|
368
368
|
var _ref43 = /*#__PURE__*/React.createElement(TextInput, {
|
|
369
369
|
characterWidth: 20,
|
|
370
|
-
|
|
370
|
+
cellWidth: 'full'
|
|
371
371
|
});
|
|
372
372
|
|
|
373
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
373
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=full', function () {
|
|
374
374
|
expect(mount(_ref43)).toMatchSnapshot();
|
|
375
375
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Digigov v0.
|
|
1
|
+
/** @license Digigov v0.3.0
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -107,6 +107,13 @@ export { default as SummaryListItem } from '@digigov/react-core/SummaryListItem'
|
|
|
107
107
|
export { default as SummaryListItemAction } from '@digigov/react-core/SummaryListItemAction';
|
|
108
108
|
export { default as SummaryListItemKey } from '@digigov/react-core/SummaryListItemKey';
|
|
109
109
|
export { default as SummaryListItemValue } from '@digigov/react-core/SummaryListItemValue';
|
|
110
|
+
export { default as Table } from '@digigov/react-core/Table';
|
|
111
|
+
export { default as TableRow } from '@digigov/react-core/TableRow';
|
|
112
|
+
export { default as TableCaption } from '@digigov/react-core/TableCaption';
|
|
113
|
+
export { default as TableHead } from '@digigov/react-core/TableHead';
|
|
114
|
+
export { default as TableBody } from '@digigov/react-core/TableBody';
|
|
115
|
+
export { default as TableDataCell } from '@digigov/react-core/TableDataCell';
|
|
116
|
+
export { default as TableHeaderCell } from '@digigov/react-core/TableHeaderCell';
|
|
110
117
|
export { default as TabsList } from '@digigov/react-core/TabsList';
|
|
111
118
|
export { default as TabsListItem } from '@digigov/react-core/TabsListItem';
|
|
112
119
|
export { default as TabsPanel } from '@digigov/react-core/TabsPanel';
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,13 @@ export { default as SummaryListItem } from '@digigov/react-core/SummaryListItem'
|
|
|
102
102
|
export { default as SummaryListItemAction } from '@digigov/react-core/SummaryListItemAction';
|
|
103
103
|
export { default as SummaryListItemKey } from '@digigov/react-core/SummaryListItemKey';
|
|
104
104
|
export { default as SummaryListItemValue } from '@digigov/react-core/SummaryListItemValue';
|
|
105
|
+
export { default as Table } from '@digigov/react-core/Table';
|
|
106
|
+
export { default as TableRow } from '@digigov/react-core/TableRow';
|
|
107
|
+
export { default as TableCaption } from '@digigov/react-core/TableCaption';
|
|
108
|
+
export { default as TableHead } from '@digigov/react-core/TableHead';
|
|
109
|
+
export { default as TableBody } from '@digigov/react-core/TableBody';
|
|
110
|
+
export { default as TableDataCell } from '@digigov/react-core/TableDataCell';
|
|
111
|
+
export { default as TableHeaderCell } from '@digigov/react-core/TableHeaderCell';
|
|
105
112
|
export { default as TabsList } from '@digigov/react-core/TabsList';
|
|
106
113
|
export { default as TabsListItem } from '@digigov/react-core/TabsListItem';
|
|
107
114
|
export { default as TabsPanel } from '@digigov/react-core/TabsPanel';
|
package/dist/index.js
CHANGED
|
@@ -629,6 +629,48 @@ Object.defineProperty(exports, "SummaryListItemValue", {
|
|
|
629
629
|
return _SummaryListItemValue["default"];
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
|
+
Object.defineProperty(exports, "Table", {
|
|
633
|
+
enumerable: true,
|
|
634
|
+
get: function get() {
|
|
635
|
+
return _Table["default"];
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
Object.defineProperty(exports, "TableBody", {
|
|
639
|
+
enumerable: true,
|
|
640
|
+
get: function get() {
|
|
641
|
+
return _TableBody["default"];
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
Object.defineProperty(exports, "TableCaption", {
|
|
645
|
+
enumerable: true,
|
|
646
|
+
get: function get() {
|
|
647
|
+
return _TableCaption["default"];
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
Object.defineProperty(exports, "TableDataCell", {
|
|
651
|
+
enumerable: true,
|
|
652
|
+
get: function get() {
|
|
653
|
+
return _TableDataCell["default"];
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
Object.defineProperty(exports, "TableHead", {
|
|
657
|
+
enumerable: true,
|
|
658
|
+
get: function get() {
|
|
659
|
+
return _TableHead["default"];
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
Object.defineProperty(exports, "TableHeaderCell", {
|
|
663
|
+
enumerable: true,
|
|
664
|
+
get: function get() {
|
|
665
|
+
return _TableHeaderCell["default"];
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
Object.defineProperty(exports, "TableRow", {
|
|
669
|
+
enumerable: true,
|
|
670
|
+
get: function get() {
|
|
671
|
+
return _TableRow["default"];
|
|
672
|
+
}
|
|
673
|
+
});
|
|
632
674
|
Object.defineProperty(exports, "Tabs", {
|
|
633
675
|
enumerable: true,
|
|
634
676
|
get: function get() {
|
|
@@ -898,6 +940,20 @@ var _SummaryListItemKey = _interopRequireDefault(require("@digigov/react-core/Su
|
|
|
898
940
|
|
|
899
941
|
var _SummaryListItemValue = _interopRequireDefault(require("@digigov/react-core/SummaryListItemValue"));
|
|
900
942
|
|
|
943
|
+
var _Table = _interopRequireDefault(require("@digigov/react-core/Table"));
|
|
944
|
+
|
|
945
|
+
var _TableRow = _interopRequireDefault(require("@digigov/react-core/TableRow"));
|
|
946
|
+
|
|
947
|
+
var _TableCaption = _interopRequireDefault(require("@digigov/react-core/TableCaption"));
|
|
948
|
+
|
|
949
|
+
var _TableHead = _interopRequireDefault(require("@digigov/react-core/TableHead"));
|
|
950
|
+
|
|
951
|
+
var _TableBody = _interopRequireDefault(require("@digigov/react-core/TableBody"));
|
|
952
|
+
|
|
953
|
+
var _TableDataCell = _interopRequireDefault(require("@digigov/react-core/TableDataCell"));
|
|
954
|
+
|
|
955
|
+
var _TableHeaderCell = _interopRequireDefault(require("@digigov/react-core/TableHeaderCell"));
|
|
956
|
+
|
|
901
957
|
var _TabsList = _interopRequireDefault(require("@digigov/react-core/TabsList"));
|
|
902
958
|
|
|
903
959
|
var _TabsListItem = _interopRequireDefault(require("@digigov/react-core/TabsListItem"));
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "@digigov react core components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@digigov/css": "0.
|
|
14
|
+
"@digigov/css": "0.5.0",
|
|
15
15
|
"clsx": "~1.1.1",
|
|
16
16
|
"react": "16.14.0",
|
|
17
17
|
"react-dom": "16.14.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "@digigov react core components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prepublish": "digigov build --subpackages"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@digigov/css": "0.
|
|
20
|
+
"@digigov/css": "0.5.0",
|
|
21
21
|
"clsx": "~1.1.1",
|
|
22
22
|
"react": "16.14.0",
|
|
23
23
|
"react-dom": "16.14.0"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@digigov/cli": "0.5.25",
|
|
27
27
|
"@digigov/cli-lint": "0.5.25",
|
|
28
|
-
"@digigov/cli-build": "0.
|
|
28
|
+
"@digigov/cli-build": "0.6.0",
|
|
29
29
|
"@digigov/cli-test": "0.5.24",
|
|
30
30
|
"typescript": "4.2.3",
|
|
31
31
|
"@types/node": "14.14.9",
|
package/react-core.build.log
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
Unable to calculate incremental build state. Instead running full rebuild. Ensure Git is present.
|
|
2
|
+
|
|
1
3
|
Invoking: digigov build --subpackages
|
|
2
4
|
|
|
3
|
-
Running /
|
|
4
|
-
Running /
|
|
5
|
-
Running /
|
|
6
|
-
Successfully compiled
|
|
7
|
-
Running /
|
|
8
|
-
Successfully compiled
|
|
9
|
-
Created package.json in /
|
|
10
|
-
Copied /
|
|
11
|
-
Copied /
|
|
12
|
-
Copied /
|
|
5
|
+
Running /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/node_modules/.bin/rimraf dist
|
|
6
|
+
Running /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/node_modules/.bin/tsc --emitDeclarationOnly --outDir dist
|
|
7
|
+
Running /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/node_modules/.bin/babel --config-file /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/babel.config.js src --extensions .tsx,.ts,.js,.jsx --copy-files --out-dir dist/esm
|
|
8
|
+
Successfully compiled 251 files with Babel (9321ms).
|
|
9
|
+
Running /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/node_modules/.bin/babel --config-file /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/babel.config.js src --extensions .tsx,.ts,.js,.jsx --copy-files --out-dir dist/es
|
|
10
|
+
Successfully compiled 251 files with Babel (6828ms).
|
|
11
|
+
Created package.json in /home/vasilis/Grnet/digigov-meta/digigov-sdk/libs-ui/react-core/dist/package.json
|
|
12
|
+
Copied /home/vasilis/Grnet/digigov-meta/digigov-sdk/libs-ui/react-core/README.md to /home/vasilis/Grnet/digigov-meta/digigov-sdk/libs-ui/react-core/dist/README.md
|
|
13
|
+
Copied /home/vasilis/Grnet/digigov-meta/digigov-sdk/libs-ui/react-core/CHANGELOG.md to /home/vasilis/Grnet/digigov-meta/digigov-sdk/libs-ui/react-core/dist/CHANGELOG.md
|
|
14
|
+
Copied /home/vasilis/Grnet/digigov-meta/digigov-sdk/LICENSE to /home/vasilis/Grnet/digigov-meta/digigov-sdk/libs-ui/react-core/dist/LICENSE
|
|
13
15
|
Skipped license for ./index.js
|
|
14
|
-
Skipped license for ./umd/digigov-ui.production.min.js
|
|
15
16
|
Skipped license for ./umd/digigov-ui.development.js
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
Skipped license for ./umd/digigov-ui.production.min.js
|
|
18
|
+
Running /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/node_modules/.bin/babel --config-file /home/vasilis/Grnet/digigov-meta/digigov-sdk/tooling/cli-build/babel.config.js src --extensions .tsx,.ts,.js,.jsx --copy-files --out-dir dist
|
|
19
|
+
Successfully compiled 251 files with Babel (8267ms).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import AccordionControls from '@digigov/react-core/AccordionControls';
|
|
5
|
+
|
|
6
|
+
it('renders the AccordionControls with button', () => {
|
|
7
|
+
expect(
|
|
8
|
+
mount(
|
|
9
|
+
<AccordionControls>
|
|
10
|
+
<button>open all</button>
|
|
11
|
+
</AccordionControls>
|
|
12
|
+
)
|
|
13
|
+
).toMatchSnapshot();
|
|
14
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
|
|
4
|
+
type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
5
|
+
export interface AccordionControlsProps extends DivElementAttributes {}
|
|
6
|
+
/**
|
|
7
|
+
* AccordionControls is a component that provides controls for an accordion.
|
|
8
|
+
*/
|
|
9
|
+
export const AccordionControls = React.forwardRef<
|
|
10
|
+
HTMLDivElement,
|
|
11
|
+
AccordionControlsProps
|
|
12
|
+
>(function AccordionControls({ className, children, ...props }, ref) {
|
|
13
|
+
return (
|
|
14
|
+
<div
|
|
15
|
+
ref={ref}
|
|
16
|
+
className={clsx(className, { 'govgr-accordion__controls': true })}
|
|
17
|
+
{...props}
|
|
18
|
+
>
|
|
19
|
+
{children}
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export default AccordionControls;
|