@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
|
@@ -10,9 +10,10 @@ export interface TextInputProps extends InputElementAttributes {
|
|
|
10
10
|
*/
|
|
11
11
|
characterWidth?: 2 | 3 | 4 | 5 | 10 | 20;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* cellWidth is optional.
|
|
14
|
+
* Use cellWidth prop to define a custom width for a specific reference number in your components.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
cellWidth?: 'one-quarter' | 'one-third' | 'one-half' | 'two-thirds' | 'three-quarters' | 'full';
|
|
16
17
|
/**
|
|
17
18
|
* error is optional. The default value is false.
|
|
18
19
|
* Use this prop when there is an error at the input.
|
|
@@ -23,5 +24,5 @@ export interface TextInputProps extends InputElementAttributes {
|
|
|
23
24
|
* TextInput component when you need to let users enter text that’s no
|
|
24
25
|
* longer than a single line, such as their name or phone number.
|
|
25
26
|
*/
|
|
26
|
-
export declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "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" | "form" | "pattern" | "list" | "step" | "type" | "value" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "size" | "alt" | "crossOrigin" | "height" | "src" | "width" | "error" | "autoComplete" | "multiple" | "required" | "maxLength" | "minLength" | "readOnly" | "characterWidth" | "accept" | "capture" | "checked" | "max" | "min"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
export declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "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" | "form" | "pattern" | "list" | "step" | "type" | "value" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "size" | "alt" | "crossOrigin" | "height" | "src" | "width" | "error" | "autoComplete" | "multiple" | "required" | "cellWidth" | "maxLength" | "minLength" | "readOnly" | "characterWidth" | "accept" | "capture" | "checked" | "max" | "min"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
28
|
export default TextInput;
|
package/dist/TextInput/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
17
|
|
|
18
|
-
var _excluded = ["type", "name", "characterWidth", "
|
|
18
|
+
var _excluded = ["type", "name", "characterWidth", "cellWidth", "error", "className", "children"];
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* TextInput component when you need to let users enter text that’s no
|
|
@@ -26,7 +26,7 @@ var TextInput = /*#__PURE__*/_react["default"].forwardRef(function TextInput(_re
|
|
|
26
26
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
27
27
|
name = _ref.name,
|
|
28
28
|
characterWidth = _ref.characterWidth,
|
|
29
|
-
|
|
29
|
+
cellWidth = _ref.cellWidth,
|
|
30
30
|
error = _ref.error,
|
|
31
31
|
className = _ref.className,
|
|
32
32
|
children = _ref.children,
|
|
@@ -35,7 +35,7 @@ var TextInput = /*#__PURE__*/_react["default"].forwardRef(function TextInput(_re
|
|
|
35
35
|
type: type,
|
|
36
36
|
name: name,
|
|
37
37
|
ref: ref,
|
|
38
|
-
className: (0, _clsx["default"])(className,
|
|
38
|
+
className: (0, _clsx["default"])(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')
|
|
39
39
|
}, props), children);
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -63,319 +63,319 @@ it('renders the TextInput with characterWidth=20', function () {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
var _ref8 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
66
|
-
|
|
66
|
+
cellWidth: 'one-quarter'
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
it('renders the TextInput with
|
|
69
|
+
it('renders the TextInput with cellWidth=one-quarter', function () {
|
|
70
70
|
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
var _ref9 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
74
|
-
|
|
74
|
+
cellWidth: 'one-third'
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
it('renders the TextInput with
|
|
77
|
+
it('renders the TextInput with cellWidth=one-third', function () {
|
|
78
78
|
expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
var _ref10 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
82
|
-
|
|
82
|
+
cellWidth: 'one-half'
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
it('renders the TextInput with
|
|
85
|
+
it('renders the TextInput with cellWidth=one-half', function () {
|
|
86
86
|
expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
|
|
87
87
|
});
|
|
88
88
|
|
|
89
89
|
var _ref11 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
90
|
-
|
|
90
|
+
cellWidth: 'two-thirds'
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
it('renders the TextInput with
|
|
93
|
+
it('renders the TextInput with cellWidth=two-thirds', function () {
|
|
94
94
|
expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
var _ref12 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
98
|
-
|
|
98
|
+
cellWidth: 'three-quarters'
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
-
it('renders the TextInput with
|
|
101
|
+
it('renders the TextInput with cellWidth=three-quarters', function () {
|
|
102
102
|
expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
|
|
103
103
|
});
|
|
104
104
|
|
|
105
105
|
var _ref13 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
106
|
-
|
|
106
|
+
cellWidth: 'full'
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
it('renders the TextInput with
|
|
109
|
+
it('renders the TextInput with cellWidth=full', function () {
|
|
110
110
|
expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
var _ref14 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
114
114
|
characterWidth: 2,
|
|
115
|
-
|
|
115
|
+
cellWidth: 'one-quarter'
|
|
116
116
|
});
|
|
117
117
|
|
|
118
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
118
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=one-quarter', function () {
|
|
119
119
|
expect((0, _enzyme.mount)(_ref14)).toMatchSnapshot();
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
var _ref15 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
123
123
|
characterWidth: 3,
|
|
124
|
-
|
|
124
|
+
cellWidth: 'one-quarter'
|
|
125
125
|
});
|
|
126
126
|
|
|
127
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
127
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=one-quarter', function () {
|
|
128
128
|
expect((0, _enzyme.mount)(_ref15)).toMatchSnapshot();
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
var _ref16 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
132
132
|
characterWidth: 4,
|
|
133
|
-
|
|
133
|
+
cellWidth: 'one-quarter'
|
|
134
134
|
});
|
|
135
135
|
|
|
136
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
136
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=one-quarter', function () {
|
|
137
137
|
expect((0, _enzyme.mount)(_ref16)).toMatchSnapshot();
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
var _ref17 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
141
141
|
characterWidth: 5,
|
|
142
|
-
|
|
142
|
+
cellWidth: 'one-quarter'
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
145
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=one-quarter', function () {
|
|
146
146
|
expect((0, _enzyme.mount)(_ref17)).toMatchSnapshot();
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
var _ref18 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
150
150
|
characterWidth: 20,
|
|
151
|
-
|
|
151
|
+
cellWidth: 'one-quarter'
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
154
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=one-quarter', function () {
|
|
155
155
|
expect((0, _enzyme.mount)(_ref18)).toMatchSnapshot();
|
|
156
156
|
});
|
|
157
157
|
|
|
158
158
|
var _ref19 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
159
159
|
characterWidth: 2,
|
|
160
|
-
|
|
160
|
+
cellWidth: 'one-third'
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
163
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=one-third', function () {
|
|
164
164
|
expect((0, _enzyme.mount)(_ref19)).toMatchSnapshot();
|
|
165
165
|
});
|
|
166
166
|
|
|
167
167
|
var _ref20 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
168
168
|
characterWidth: 3,
|
|
169
|
-
|
|
169
|
+
cellWidth: 'one-third'
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
172
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=one-third', function () {
|
|
173
173
|
expect((0, _enzyme.mount)(_ref20)).toMatchSnapshot();
|
|
174
174
|
});
|
|
175
175
|
|
|
176
176
|
var _ref21 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
177
177
|
characterWidth: 4,
|
|
178
|
-
|
|
178
|
+
cellWidth: 'one-third'
|
|
179
179
|
});
|
|
180
180
|
|
|
181
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
181
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=one-third', function () {
|
|
182
182
|
expect((0, _enzyme.mount)(_ref21)).toMatchSnapshot();
|
|
183
183
|
});
|
|
184
184
|
|
|
185
185
|
var _ref22 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
186
186
|
characterWidth: 5,
|
|
187
|
-
|
|
187
|
+
cellWidth: 'one-third'
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
190
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=one-third', function () {
|
|
191
191
|
expect((0, _enzyme.mount)(_ref22)).toMatchSnapshot();
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
var _ref23 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
195
195
|
characterWidth: 20,
|
|
196
|
-
|
|
196
|
+
cellWidth: 'one-third'
|
|
197
197
|
});
|
|
198
198
|
|
|
199
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
199
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=one-third', function () {
|
|
200
200
|
expect((0, _enzyme.mount)(_ref23)).toMatchSnapshot();
|
|
201
201
|
});
|
|
202
202
|
|
|
203
203
|
var _ref24 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
204
204
|
characterWidth: 2,
|
|
205
|
-
|
|
205
|
+
cellWidth: 'one-half'
|
|
206
206
|
});
|
|
207
207
|
|
|
208
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
208
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=one-half', function () {
|
|
209
209
|
expect((0, _enzyme.mount)(_ref24)).toMatchSnapshot();
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
var _ref25 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
213
213
|
characterWidth: 3,
|
|
214
|
-
|
|
214
|
+
cellWidth: 'one-half'
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
217
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=one-half', function () {
|
|
218
218
|
expect((0, _enzyme.mount)(_ref25)).toMatchSnapshot();
|
|
219
219
|
});
|
|
220
220
|
|
|
221
221
|
var _ref26 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
222
222
|
characterWidth: 4,
|
|
223
|
-
|
|
223
|
+
cellWidth: 'one-half'
|
|
224
224
|
});
|
|
225
225
|
|
|
226
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
226
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=one-half', function () {
|
|
227
227
|
expect((0, _enzyme.mount)(_ref26)).toMatchSnapshot();
|
|
228
228
|
});
|
|
229
229
|
|
|
230
230
|
var _ref27 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
231
231
|
characterWidth: 5,
|
|
232
|
-
|
|
232
|
+
cellWidth: 'one-half'
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
235
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=one-half', function () {
|
|
236
236
|
expect((0, _enzyme.mount)(_ref27)).toMatchSnapshot();
|
|
237
237
|
});
|
|
238
238
|
|
|
239
239
|
var _ref28 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
240
240
|
characterWidth: 20,
|
|
241
|
-
|
|
241
|
+
cellWidth: 'one-half'
|
|
242
242
|
});
|
|
243
243
|
|
|
244
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
244
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=one-half', function () {
|
|
245
245
|
expect((0, _enzyme.mount)(_ref28)).toMatchSnapshot();
|
|
246
246
|
});
|
|
247
247
|
|
|
248
248
|
var _ref29 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
249
249
|
characterWidth: 2,
|
|
250
|
-
|
|
250
|
+
cellWidth: 'two-thirds'
|
|
251
251
|
});
|
|
252
252
|
|
|
253
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
253
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=two-thirds', function () {
|
|
254
254
|
expect((0, _enzyme.mount)(_ref29)).toMatchSnapshot();
|
|
255
255
|
});
|
|
256
256
|
|
|
257
257
|
var _ref30 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
258
258
|
characterWidth: 3,
|
|
259
|
-
|
|
259
|
+
cellWidth: 'two-thirds'
|
|
260
260
|
});
|
|
261
261
|
|
|
262
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
262
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=two-thirds', function () {
|
|
263
263
|
expect((0, _enzyme.mount)(_ref30)).toMatchSnapshot();
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
var _ref31 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
267
267
|
characterWidth: 4,
|
|
268
|
-
|
|
268
|
+
cellWidth: 'two-thirds'
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
271
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=two-thirds', function () {
|
|
272
272
|
expect((0, _enzyme.mount)(_ref31)).toMatchSnapshot();
|
|
273
273
|
});
|
|
274
274
|
|
|
275
275
|
var _ref32 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
276
276
|
characterWidth: 5,
|
|
277
|
-
|
|
277
|
+
cellWidth: 'two-thirds'
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
280
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=two-thirds', function () {
|
|
281
281
|
expect((0, _enzyme.mount)(_ref32)).toMatchSnapshot();
|
|
282
282
|
});
|
|
283
283
|
|
|
284
284
|
var _ref33 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
285
285
|
characterWidth: 20,
|
|
286
|
-
|
|
286
|
+
cellWidth: 'two-thirds'
|
|
287
287
|
});
|
|
288
288
|
|
|
289
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
289
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=two-thirds', function () {
|
|
290
290
|
expect((0, _enzyme.mount)(_ref33)).toMatchSnapshot();
|
|
291
291
|
});
|
|
292
292
|
|
|
293
293
|
var _ref34 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
294
294
|
characterWidth: 2,
|
|
295
|
-
|
|
295
|
+
cellWidth: 'three-quarters'
|
|
296
296
|
});
|
|
297
297
|
|
|
298
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
298
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=three-quarters', function () {
|
|
299
299
|
expect((0, _enzyme.mount)(_ref34)).toMatchSnapshot();
|
|
300
300
|
});
|
|
301
301
|
|
|
302
302
|
var _ref35 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
303
303
|
characterWidth: 3,
|
|
304
|
-
|
|
304
|
+
cellWidth: 'three-quarters'
|
|
305
305
|
});
|
|
306
306
|
|
|
307
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
307
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=three-quarters', function () {
|
|
308
308
|
expect((0, _enzyme.mount)(_ref35)).toMatchSnapshot();
|
|
309
309
|
});
|
|
310
310
|
|
|
311
311
|
var _ref36 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
312
312
|
characterWidth: 4,
|
|
313
|
-
|
|
313
|
+
cellWidth: 'three-quarters'
|
|
314
314
|
});
|
|
315
315
|
|
|
316
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
316
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=three-quarters', function () {
|
|
317
317
|
expect((0, _enzyme.mount)(_ref36)).toMatchSnapshot();
|
|
318
318
|
});
|
|
319
319
|
|
|
320
320
|
var _ref37 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
321
321
|
characterWidth: 5,
|
|
322
|
-
|
|
322
|
+
cellWidth: 'three-quarters'
|
|
323
323
|
});
|
|
324
324
|
|
|
325
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
325
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=three-quarters', function () {
|
|
326
326
|
expect((0, _enzyme.mount)(_ref37)).toMatchSnapshot();
|
|
327
327
|
});
|
|
328
328
|
|
|
329
329
|
var _ref38 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
330
330
|
characterWidth: 20,
|
|
331
|
-
|
|
331
|
+
cellWidth: 'three-quarters'
|
|
332
332
|
});
|
|
333
333
|
|
|
334
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
334
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=three-quarters', function () {
|
|
335
335
|
expect((0, _enzyme.mount)(_ref38)).toMatchSnapshot();
|
|
336
336
|
});
|
|
337
337
|
|
|
338
338
|
var _ref39 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
339
339
|
characterWidth: 2,
|
|
340
|
-
|
|
340
|
+
cellWidth: 'full'
|
|
341
341
|
});
|
|
342
342
|
|
|
343
|
-
it('renders the TextInput with characterWidth=2 and with
|
|
343
|
+
it('renders the TextInput with characterWidth=2 and with cellWidth=full', function () {
|
|
344
344
|
expect((0, _enzyme.mount)(_ref39)).toMatchSnapshot();
|
|
345
345
|
});
|
|
346
346
|
|
|
347
347
|
var _ref40 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
348
348
|
characterWidth: 3,
|
|
349
|
-
|
|
349
|
+
cellWidth: 'full'
|
|
350
350
|
});
|
|
351
351
|
|
|
352
|
-
it('renders the TextInput with characterWidth=3 and with
|
|
352
|
+
it('renders the TextInput with characterWidth=3 and with cellWidth=full', function () {
|
|
353
353
|
expect((0, _enzyme.mount)(_ref40)).toMatchSnapshot();
|
|
354
354
|
});
|
|
355
355
|
|
|
356
356
|
var _ref41 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
357
357
|
characterWidth: 4,
|
|
358
|
-
|
|
358
|
+
cellWidth: 'full'
|
|
359
359
|
});
|
|
360
360
|
|
|
361
|
-
it('renders the TextInput with characterWidth=4 and with
|
|
361
|
+
it('renders the TextInput with characterWidth=4 and with cellWidth=full', function () {
|
|
362
362
|
expect((0, _enzyme.mount)(_ref41)).toMatchSnapshot();
|
|
363
363
|
});
|
|
364
364
|
|
|
365
365
|
var _ref42 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
366
366
|
characterWidth: 5,
|
|
367
|
-
|
|
367
|
+
cellWidth: 'full'
|
|
368
368
|
});
|
|
369
369
|
|
|
370
|
-
it('renders the TextInput with with characterWidth=5 with
|
|
370
|
+
it('renders the TextInput with with characterWidth=5 with cellWidth=full', function () {
|
|
371
371
|
expect((0, _enzyme.mount)(_ref42)).toMatchSnapshot();
|
|
372
372
|
});
|
|
373
373
|
|
|
374
374
|
var _ref43 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
375
375
|
characterWidth: 20,
|
|
376
|
-
|
|
376
|
+
cellWidth: 'full'
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
-
it('renders the TextInput with characterWidth=20 and with
|
|
379
|
+
it('renders the TextInput with characterWidth=20 and with cellWidth=full', function () {
|
|
380
380
|
expect((0, _enzyme.mount)(_ref43)).toMatchSnapshot();
|
|
381
381
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["className", "children"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* AccordionControls is a component that provides controls for an accordion.
|
|
9
|
+
*/
|
|
10
|
+
export var AccordionControls = /*#__PURE__*/React.forwardRef(function AccordionControls(_ref, ref) {
|
|
11
|
+
var className = _ref.className,
|
|
12
|
+
children = _ref.children,
|
|
13
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
16
|
+
ref: ref,
|
|
17
|
+
className: clsx(className, true && 'govgr-accordion__controls')
|
|
18
|
+
}, props), children);
|
|
19
|
+
});
|
|
20
|
+
export default AccordionControls;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import AccordionControls from '@digigov/react-core/AccordionControls';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(AccordionControls, null, /*#__PURE__*/React.createElement("button", null, "open all"));
|
|
6
|
+
|
|
7
|
+
it('renders the AccordionControls with button', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
|
|
@@ -8,15 +8,15 @@ import clsx from 'clsx';
|
|
|
8
8
|
* AccordionSection should be inside the Accordion component.
|
|
9
9
|
* Inside this component must place the AccordionSectionHeader and the AccordionSectionContent components.
|
|
10
10
|
*/
|
|
11
|
+
// eslint-disable-next-line react/display-name
|
|
11
12
|
export var AccordionSection = /*#__PURE__*/React.forwardRef(function AccordionSection(_ref, ref) {
|
|
12
|
-
var
|
|
13
|
-
className = _ref.className,
|
|
13
|
+
var className = _ref.className,
|
|
14
14
|
children = _ref.children,
|
|
15
15
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
16
|
|
|
17
|
-
return /*#__PURE__*/React.createElement("
|
|
17
|
+
return /*#__PURE__*/React.createElement("details", _extends({
|
|
18
18
|
ref: ref,
|
|
19
|
-
className: clsx(className,
|
|
19
|
+
className: clsx(className, true && 'govgr-accordion__section')
|
|
20
20
|
}, props), children);
|
|
21
21
|
});
|
|
22
22
|
export default AccordionSection;
|
|
@@ -12,7 +12,7 @@ export var AccordionSectionHeader = /*#__PURE__*/React.forwardRef(function Accor
|
|
|
12
12
|
children = _ref.children,
|
|
13
13
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
14
|
|
|
15
|
-
return /*#__PURE__*/React.createElement("
|
|
15
|
+
return /*#__PURE__*/React.createElement("summary", _extends({
|
|
16
16
|
ref: ref,
|
|
17
17
|
className: clsx(className, true && 'govgr-accordion__section-header')
|
|
18
18
|
}, props), /*#__PURE__*/React.createElement("h2", {
|
|
@@ -15,6 +15,9 @@ export var BackLink = /*#__PURE__*/React.forwardRef(function BackLink(_ref, ref)
|
|
|
15
15
|
|
|
16
16
|
return /*#__PURE__*/React.createElement("a", _extends({
|
|
17
17
|
href: href,
|
|
18
|
+
onClick: function onClick() {
|
|
19
|
+
!href && window.history.back();
|
|
20
|
+
},
|
|
18
21
|
ref: ref,
|
|
19
22
|
className: clsx(className, true && 'govgr-back-link')
|
|
20
23
|
}, props), /*#__PURE__*/React.createElement("span", {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["color", "className", "children"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Use the Button component to help users carry out an action.
|
|
9
|
+
*/
|
|
10
|
+
export var ButtonLink = /*#__PURE__*/React.forwardRef(function ButtonLink(_ref, ref) {
|
|
11
|
+
var _ref$color = _ref.color,
|
|
12
|
+
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
13
|
+
className = _ref.className,
|
|
14
|
+
children = _ref.children,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
|
|
17
|
+
return /*#__PURE__*/React.createElement("a", _extends({
|
|
18
|
+
ref: ref,
|
|
19
|
+
className: clsx(className, color === 'secondary' && 'govgr-btn-secondary', color === 'primary' && 'govgr-btn-primary', color === 'warning' && 'govgr-btn-warning', true && 'govgr-btn')
|
|
20
|
+
}, props), children);
|
|
21
|
+
});
|
|
22
|
+
export default ButtonLink;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import ButtonLink from '@digigov/react-core/ButtonLink';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(ButtonLink, null, "hello");
|
|
6
|
+
|
|
7
|
+
it('renders the ButtonLink with no props', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
12
|
+
color: 'primary'
|
|
13
|
+
}, "hello");
|
|
14
|
+
|
|
15
|
+
it('renders the ButtonLink with color=primary', function () {
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
20
|
+
color: 'secondary'
|
|
21
|
+
}, "hello");
|
|
22
|
+
|
|
23
|
+
it('renders the ButtonLink with color=secondary', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
28
|
+
color: 'warning'
|
|
29
|
+
}, "hello");
|
|
30
|
+
|
|
31
|
+
it('renders the ButtonLink with color=warning', function () {
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
var _ref5 = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
36
|
+
href: '#'
|
|
37
|
+
}, "hello");
|
|
38
|
+
|
|
39
|
+
it('renders the ButtonLink with href=#', function () {
|
|
40
|
+
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var _ref6 = /*#__PURE__*/React.createElement(ButtonLink, null, "hello");
|
|
44
|
+
|
|
45
|
+
it('renders the ButtonLink with disabled=false', function () {
|
|
46
|
+
expect(mount(_ref6)).toMatchSnapshot();
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
var _ref7 = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
50
|
+
href: '#',
|
|
51
|
+
color: 'primary'
|
|
52
|
+
}, "hello");
|
|
53
|
+
|
|
54
|
+
it('renders the ButtonLink with color=primary with href=#', function () {
|
|
55
|
+
expect(mount(_ref7)).toMatchSnapshot();
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
var _ref8 = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
59
|
+
href: '#',
|
|
60
|
+
color: 'secondary'
|
|
61
|
+
}, "hello");
|
|
62
|
+
|
|
63
|
+
it('renders the ButtonLink with color=secondary with href=#', function () {
|
|
64
|
+
expect(mount(_ref8)).toMatchSnapshot();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
var _ref9 = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
68
|
+
href: '#',
|
|
69
|
+
color: 'warning'
|
|
70
|
+
}, "hello");
|
|
71
|
+
|
|
72
|
+
it('renders the ButtonLink with color=warning with href=#', function () {
|
|
73
|
+
expect(mount(_ref9)).toMatchSnapshot();
|
|
74
|
+
});
|