@digigov/react-core 2.0.0-254f7786 → 2.0.0-264e5fff
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/Accordion/index.d.ts +2 -28
- package/Accordion/index.js +3 -34
- package/Accordion/index.js.map +3 -3
- package/Accordion/index.native/index.js +22 -0
- package/Accordion/index.native/package.json +6 -0
- package/Accordion/index.native.d.ts +2 -0
- package/Accordion/index.native.js.map +7 -0
- package/Accordion/index.web/index.js +37 -0
- package/Accordion/index.web/package.json +6 -0
- package/Accordion/index.web.d.ts +28 -0
- package/Accordion/index.web.js.map +7 -0
- package/AccordionSection/index.d.ts +2 -11
- package/AccordionSection/index.js +3 -20
- package/AccordionSection/index.js.map +3 -3
- package/AccordionSection/index.native/index.js +21 -0
- package/AccordionSection/index.native/package.json +6 -0
- package/AccordionSection/index.native.d.ts +2 -0
- package/AccordionSection/index.native.js.map +7 -0
- package/AccordionSection/index.web/index.js +23 -0
- package/AccordionSection/index.web/package.json +6 -0
- package/AccordionSection/index.web.d.ts +10 -0
- package/AccordionSection/index.web.js.map +7 -0
- package/AccordionSectionSummaryHeading/index.d.ts +1 -0
- package/AccordionSectionSummaryHeading/index.js +5 -3
- package/AccordionSectionSummaryHeading/index.js.map +2 -2
- package/BackLinkBase/index.d.ts +9 -0
- package/BackLinkBase/index.js +29 -0
- package/BackLinkBase/index.js.map +7 -0
- package/{ButtonLink → BackLinkBase}/package.json +1 -1
- package/BannerContainer/index.js +1 -1
- package/BannerContainer/index.js.map +2 -2
- package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
- package/Base/compat/Input/RadioInput.native.js.map +2 -2
- package/Base/compat/details.native/index.js +2 -1
- package/Base/compat/details.native.d.ts +2 -1
- package/Base/compat/details.native.js.map +2 -2
- package/Base/index.native.js.map +2 -2
- package/Base/index.web.d.ts +1 -1
- package/Base/index.web.js.map +1 -1
- package/Base/mapping.native.d.ts +1 -1
- package/Base/mapping.native.js.map +2 -2
- package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
- package/BreadcrumbsListItemLinkBase/index.js +23 -0
- package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
- package/BreadcrumbsListItemLinkBase/package.json +6 -0
- package/BreadcrumbsListItemWrapper/index.d.ts +10 -0
- package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +4 -4
- package/BreadcrumbsListItemWrapper/index.js.map +7 -0
- package/{AutoCompleteInputTypeahead → BreadcrumbsListItemWrapper}/package.json +1 -1
- package/Button/index.js +2 -0
- package/Button/index.js.map +2 -2
- package/{ButtonLink → ButtonLinkBase}/index.d.ts +4 -4
- package/ButtonLinkBase/index.js +27 -0
- package/ButtonLinkBase/index.js.map +7 -0
- package/{FooterLink → ButtonLinkBase}/package.json +1 -1
- package/CallToActionBase/index.d.ts +9 -0
- package/{CallToAction → CallToActionBase}/index.js +6 -6
- package/CallToActionBase/index.js.map +7 -0
- package/{CircularProgress → CallToActionBase}/package.json +1 -1
- package/{CircularProgress → CircularProgressBase}/index.d.ts +5 -5
- package/{CircularProgress → CircularProgressBase}/index.js +4 -4
- package/CircularProgressBase/index.js.map +7 -0
- package/CircularProgressBase/package.json +6 -0
- package/CopyToClipboardMessage/index.native/index.js +1 -1
- package/CopyToClipboardMessage/index.native.d.ts +1 -3
- package/CopyToClipboardMessage/index.native.js.map +1 -1
- package/DateInputItem/index.native/index.js +1 -1
- package/DateInputItem/index.native.d.ts +1 -3
- package/DateInputItem/index.native.js.map +1 -1
- package/Details/index.native/index.js +1 -1
- package/Details/index.native.d.ts +1 -3
- package/Details/index.native.js.map +1 -1
- package/DetailsContent/index.d.ts +1 -0
- package/DetailsContent/index.js +3 -2
- package/DetailsContent/index.js.map +2 -2
- package/ErrorSummary/index.d.ts +9 -0
- package/ErrorSummary/index.js +3 -3
- package/ErrorSummary/index.js.map +2 -2
- package/FileUpload/index.d.ts +7 -0
- package/FileUpload/index.js +12 -4
- package/FileUpload/index.js.map +2 -2
- package/FileUploadContainer/index.d.ts +7 -0
- package/FileUploadContainer/index.js +3 -2
- package/FileUploadContainer/index.js.map +2 -2
- package/FooterLinkBase/index.d.ts +9 -0
- package/FooterLinkBase/index.js +23 -0
- package/FooterLinkBase/index.js.map +7 -0
- package/{CallToAction → FooterLinkBase}/package.json +1 -1
- package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
- package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
- package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
- package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
- package/GovGRLogoBase/index.d.ts +9 -0
- package/GovGRLogoBase/index.js +43 -0
- package/GovGRLogoBase/index.js.map +7 -0
- package/{BackLink → GovGRLogoBase}/package.json +1 -1
- package/Grid/index.d.ts +1 -7
- package/Grid/index.js +1 -0
- package/Grid/index.js.map +2 -2
- package/HeaderLogoBase/index.d.ts +19 -0
- package/HeaderLogoBase/index.js +33 -0
- package/HeaderLogoBase/index.js.map +7 -0
- package/HeaderLogoBase/package.json +6 -0
- package/HeaderSecondaryLogoBase/index.d.ts +19 -0
- package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
- package/HeaderSecondaryLogoBase/index.js.map +7 -0
- package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
- package/HeaderTitleBase/index.d.ts +9 -0
- package/HeaderTitleBase/index.js +24 -0
- package/HeaderTitleBase/index.js.map +7 -0
- package/HeaderTitleBase/package.json +6 -0
- package/LinkBase/index.js +1 -0
- package/LinkBase/index.js.map +2 -2
- package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
- package/{NavListItemAction → NavListItemActionBase}/index.js +7 -7
- package/NavListItemActionBase/index.js.map +7 -0
- package/NavListItemActionBase/package.json +6 -0
- package/NavListItemActionContainer/index.native/index.js +1 -1
- package/NavListItemActionContainer/index.native.d.ts +0 -2
- package/NavListItemActionContainer/index.native.js.map +1 -1
- package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
- package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
- package/NavListItemLinkBase/index.js.map +7 -0
- package/{BreadcrumbsListItem → NavListItemLinkBase}/package.json +1 -1
- package/NotificationBannerContainer/index.d.ts +2 -1
- package/NotificationBannerContainer/index.js.map +2 -2
- package/NotificationBannerContent/index.d.ts +22 -0
- package/NotificationBannerContent/index.js +14 -3
- package/NotificationBannerContent/index.js.map +2 -2
- package/NotificationBannerLink/index.native/index.js +1 -1
- package/NotificationBannerLink/index.native.d.ts +1 -3
- package/NotificationBannerLink/index.native.js.map +1 -1
- package/Skeleton/index.js +2 -1
- package/Skeleton/index.js.map +2 -2
- package/SummaryList/index.d.ts +10 -2
- package/SummaryList/index.js +10 -2
- package/SummaryList/index.js.map +2 -2
- package/SummaryListItem/index.js +1 -1
- package/SummaryListItem/index.js.map +2 -2
- package/SummaryListItemKey/index.d.ts +14 -0
- package/SummaryListItemKey/index.js +14 -2
- package/SummaryListItemKey/index.js.map +2 -2
- package/SummaryListItemValue/index.d.ts +14 -0
- package/SummaryListItemValue/index.js +11 -2
- package/SummaryListItemValue/index.js.map +2 -2
- package/Table/index.d.ts +9 -0
- package/Table/index.js +4 -1
- package/Table/index.js.map +2 -2
- package/TableDataCell/index.d.ts +22 -0
- package/TableDataCell/index.js +18 -2
- package/TableDataCell/index.js.map +2 -2
- package/TextArea/index.native/index.js +1 -1
- package/TextArea/index.native.d.ts +1 -3
- package/TextArea/index.native.js.map +1 -1
- package/TextInput/index.native/index.js +1 -1
- package/TextInput/index.native.d.ts +1 -3
- package/TextInput/index.native.js.map +1 -1
- package/Typography/index.d.ts +1 -1
- package/Typography/index.js +15 -17
- package/Typography/index.js.map +2 -2
- package/WarningText/index.d.ts +7 -0
- package/WarningText/index.js +10 -2
- package/WarningText/index.js.map +2 -2
- package/cjs/Accordion/index.js +5 -35
- package/cjs/Accordion/index.js.map +3 -3
- package/cjs/{utils/extend.native → Accordion/index.native}/index.js +22 -16
- package/cjs/Accordion/index.native.js.map +7 -0
- package/cjs/{ButtonLink → Accordion/index.web}/index.js +24 -16
- package/cjs/Accordion/index.web.js.map +7 -0
- package/cjs/AccordionSection/index.js +5 -21
- package/cjs/AccordionSection/index.js.map +3 -3
- package/cjs/{CheckboxItemInput → AccordionSection}/index.native/index.js +13 -12
- package/cjs/AccordionSection/index.native.js.map +7 -0
- package/cjs/{HeaderTitle → AccordionSection/index.web}/index.js +11 -12
- package/cjs/AccordionSection/index.web.js.map +7 -0
- package/cjs/AccordionSectionSummaryHeading/index.js +5 -3
- package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
- package/cjs/BackLinkBase/index.js +62 -0
- package/cjs/BackLinkBase/index.js.map +7 -0
- package/cjs/BannerContainer/index.js +1 -1
- package/cjs/BannerContainer/index.js.map +2 -2
- package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
- package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
- package/cjs/Base/compat/details.native/index.js +2 -1
- package/cjs/Base/compat/details.native.js.map +2 -2
- package/cjs/Base/index.native.js.map +2 -2
- package/cjs/Base/index.web.js.map +1 -1
- package/cjs/Base/mapping.native.js.map +2 -2
- package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
- package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
- package/cjs/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +8 -8
- package/cjs/BreadcrumbsListItemWrapper/index.js.map +7 -0
- package/cjs/Button/index.js +2 -0
- package/cjs/Button/index.js.map +2 -2
- package/cjs/ButtonLinkBase/index.js +60 -0
- package/cjs/ButtonLinkBase/index.js.map +7 -0
- package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
- package/cjs/CallToActionBase/index.js.map +7 -0
- package/cjs/{CircularProgress → CircularProgressBase}/index.js +8 -8
- package/cjs/CircularProgressBase/index.js.map +7 -0
- package/cjs/CopyToClipboardMessage/index.native/index.js +2 -2
- package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
- package/cjs/DateInputItem/index.native/index.js +2 -2
- package/cjs/DateInputItem/index.native.js.map +2 -2
- package/cjs/Details/index.native/index.js +2 -2
- package/cjs/Details/index.native.js.map +2 -2
- package/cjs/DetailsContent/index.js +3 -2
- package/cjs/DetailsContent/index.js.map +2 -2
- package/cjs/ErrorSummary/index.js +3 -3
- package/cjs/ErrorSummary/index.js.map +2 -2
- package/cjs/FileUpload/index.js +12 -4
- package/cjs/FileUpload/index.js.map +2 -2
- package/cjs/FileUploadContainer/index.js +3 -2
- package/cjs/FileUploadContainer/index.js.map +2 -2
- package/cjs/FooterLinkBase/index.js +56 -0
- package/cjs/FooterLinkBase/index.js.map +7 -0
- package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
- package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
- package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
- package/cjs/GovGRLogoBase/index.js.map +7 -0
- package/cjs/Grid/index.js +1 -0
- package/cjs/Grid/index.js.map +2 -2
- package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
- package/cjs/HeaderLogoBase/index.js.map +7 -0
- package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
- package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
- package/cjs/HeaderTitleBase/index.js +57 -0
- package/cjs/HeaderTitleBase/index.js.map +7 -0
- package/cjs/LinkBase/index.js +1 -0
- package/cjs/LinkBase/index.js.map +2 -2
- package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +11 -11
- package/cjs/NavListItemActionBase/index.js.map +7 -0
- package/cjs/NavListItemActionContainer/index.native/index.js +2 -2
- package/cjs/NavListItemActionContainer/index.native.js.map +2 -2
- package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
- package/cjs/NavListItemLinkBase/index.js.map +7 -0
- package/cjs/NotificationBannerContainer/index.js.map +2 -2
- package/cjs/NotificationBannerContent/index.js +14 -3
- package/cjs/NotificationBannerContent/index.js.map +2 -2
- package/cjs/NotificationBannerLink/index.native/index.js +2 -2
- package/cjs/NotificationBannerLink/index.native.js.map +2 -2
- package/cjs/Skeleton/index.js +2 -1
- package/cjs/Skeleton/index.js.map +2 -2
- package/cjs/SummaryList/index.js +10 -2
- package/cjs/SummaryList/index.js.map +2 -2
- package/cjs/SummaryListItem/index.js +1 -1
- package/cjs/SummaryListItem/index.js.map +2 -2
- package/cjs/SummaryListItemKey/index.js +14 -2
- package/cjs/SummaryListItemKey/index.js.map +3 -3
- package/cjs/SummaryListItemValue/index.js +11 -2
- package/cjs/SummaryListItemValue/index.js.map +3 -3
- package/cjs/Table/index.js +4 -1
- package/cjs/Table/index.js.map +2 -2
- package/cjs/TableDataCell/index.js +18 -2
- package/cjs/TableDataCell/index.js.map +3 -3
- package/cjs/TextArea/index.native/index.js +2 -2
- package/cjs/TextArea/index.native.js.map +2 -2
- package/cjs/TextInput/index.native/index.js +2 -2
- package/cjs/TextInput/index.native.js.map +2 -2
- package/cjs/Typography/index.js +15 -17
- package/cjs/Typography/index.js.map +2 -2
- package/cjs/WarningText/index.js +10 -2
- package/cjs/WarningText/index.js.map +2 -2
- package/cjs/index.js +24 -26
- package/cjs/index.js.map +2 -2
- package/cjs/lazy/index.js +15 -16
- package/cjs/lazy.js.map +2 -2
- package/cjs/registry/index.js +38 -36
- package/cjs/registry.js.map +2 -2
- package/cjs/utils/index.native/index.js +86 -0
- package/cjs/utils/index.native.js.map +7 -0
- package/index.d.ts +12 -13
- package/index.js +13 -14
- package/index.js.map +2 -2
- package/lazy/index.js +15 -16
- package/package.json +5 -5
- package/registry/index.js +38 -36
- package/src/Accordion/__snapshots__/index.test.tsx.snap +48 -0
- package/src/Accordion/index.native.tsx +19 -0
- package/src/Accordion/index.test.tsx +24 -0
- package/src/Accordion/index.tsx +2 -71
- package/src/Accordion/index.web.tsx +71 -0
- package/src/AccordionSection/index.native.tsx +18 -0
- package/src/AccordionSection/index.tsx +2 -28
- package/src/AccordionSection/index.web.tsx +27 -0
- package/src/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +17 -0
- package/src/AccordionSectionSummaryHeading/index.test.tsx +9 -0
- package/src/AccordionSectionSummaryHeading/index.tsx +12 -4
- package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
- package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/BackLinkBase/index.test.tsx +15 -0
- package/src/BackLinkBase/index.tsx +36 -0
- package/src/BannerContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BannerContainer/index.tsx +1 -1
- package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
- package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
- package/src/Base/compat/details.native.tsx +3 -1
- package/src/Base/index.native.tsx +2 -2
- package/src/Base/index.web.tsx +2 -2
- package/src/Base/mapping.native.tsx +1 -1
- package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
- package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
- package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
- package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.tsx +1 -1
- package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.tsx +5 -5
- package/src/Button/index.tsx +2 -0
- package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
- package/src/ButtonLinkBase/index.test.tsx +75 -0
- package/src/ButtonLinkBase/index.tsx +55 -0
- package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CallToActionBase/index.test.tsx +10 -0
- package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
- package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
- package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
- package/src/{CircularProgress → CircularProgressBase}/__snapshots__/index.test.tsx.snap +6 -6
- package/src/CircularProgressBase/index.test.tsx +38 -0
- package/src/{CircularProgress → CircularProgressBase}/index.tsx +7 -7
- package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
- package/src/CopyToClipboardMessage/index.native.tsx +1 -1
- package/src/DateInputItem/index.native.tsx +1 -1
- package/src/Details/index.native.tsx +1 -1
- package/src/DetailsContent/index.tsx +11 -2
- package/src/ErrorSummary/index.tsx +17 -4
- package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
- package/src/FileUpload/index.tsx +20 -4
- package/src/FileUploadContainer/index.tsx +10 -1
- package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterLinkBase/index.test.tsx +16 -0
- package/src/FooterLinkBase/index.tsx +27 -0
- package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
- package/src/GovGRLogoBase/index.test.tsx +8 -0
- package/src/GovGRLogoBase/index.tsx +43 -0
- package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
- package/src/Grid/index.tsx +2 -7
- package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderLogoBase/index.test.tsx +8 -0
- package/src/HeaderLogoBase/index.tsx +44 -0
- package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
- package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
- package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
- package/src/HeaderTitleBase/index.test.tsx +17 -0
- package/src/HeaderTitleBase/index.tsx +28 -0
- package/src/LinkBase/index.tsx +1 -0
- package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +100 -0
- package/src/NavListItemActionBase/index.test.tsx +42 -0
- package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +15 -14
- package/src/NavListItemActionContainer/index.native.tsx +1 -1
- package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
- package/src/NavListItemLinkBase/index.test.tsx +41 -0
- package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
- package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
- package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NotificationBannerContainer/index.tsx +2 -1
- package/src/NotificationBannerContent/index.tsx +50 -4
- package/src/NotificationBannerLink/index.native.tsx +1 -1
- package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
- package/src/Skeleton/index.tsx +3 -2
- package/src/SummaryList/__snapshots__/index.test.tsx.snap +36 -0
- package/src/SummaryList/index.test.tsx +15 -0
- package/src/SummaryList/index.tsx +20 -3
- package/src/SummaryListItem/index.tsx +1 -1
- package/src/SummaryListItemKey/__snapshots__/index.test.tsx.snap +70 -0
- package/src/SummaryListItemKey/index.test.tsx +29 -0
- package/src/SummaryListItemKey/index.tsx +29 -1
- package/src/SummaryListItemValue/__snapshots__/index.test.tsx.snap +34 -0
- package/src/SummaryListItemValue/index.test.tsx +14 -0
- package/src/SummaryListItemValue/index.tsx +30 -2
- package/src/Table/index.tsx +12 -0
- package/src/TableDataCell/__snapshots__/index.test.tsx.snap +79 -2
- package/src/TableDataCell/index.test.tsx +42 -0
- package/src/TableDataCell/index.tsx +56 -1
- package/src/TableRow/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TableRow/index.test.tsx +1 -1
- package/src/TextArea/index.native.tsx +1 -1
- package/src/TextInput/index.native.tsx +1 -1
- package/src/Typography/index.tsx +21 -20
- package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
- package/src/WarningText/index.test.tsx +5 -0
- package/src/WarningText/index.tsx +17 -2
- package/src/index.ts +12 -13
- package/src/lazy.js +246 -0
- package/src/registry.js +549 -0
- package/src/utils/index.native.tsx +122 -0
- package/utils/index.native/index.js +52 -0
- package/utils/index.native/package.json +6 -0
- package/utils/index.native.d.ts +43 -0
- package/utils/index.native.js.map +7 -0
- package/AutoCompleteInputTypeahead/index.d.ts +0 -11
- package/AutoCompleteInputTypeahead/index.js +0 -25
- package/AutoCompleteInputTypeahead/index.js.map +0 -7
- package/BackLink/index.d.ts +0 -9
- package/BackLink/index.js +0 -31
- package/BackLink/index.js.map +0 -7
- package/BreadcrumbsListItem/index.d.ts +0 -10
- package/BreadcrumbsListItem/index.js.map +0 -7
- package/BreadcrumbsListItemLink/index.js +0 -24
- package/BreadcrumbsListItemLink/index.js.map +0 -7
- package/ButtonLink/index.js +0 -29
- package/ButtonLink/index.js.map +0 -7
- package/CallToAction/index.d.ts +0 -9
- package/CallToAction/index.js.map +0 -7
- package/CheckboxItemInput/index.native/index.js +0 -20
- package/CheckboxItemInput/index.native/package.json +0 -6
- package/CheckboxItemInput/index.native.d.ts +0 -4
- package/CheckboxItemInput/index.native.js.map +0 -7
- package/CircularProgress/index.js.map +0 -7
- package/FooterLink/index.d.ts +0 -9
- package/FooterLink/index.js +0 -25
- package/FooterLink/index.js.map +0 -7
- package/GovGRLogo/govgr-logo-base64/package.json +0 -6
- package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
- package/GovGRLogo/index.d.ts +0 -9
- package/GovGRLogo/index.js +0 -45
- package/GovGRLogo/index.js.map +0 -7
- package/GovGRLogo/package.json +0 -6
- package/HeaderLogo/index.d.ts +0 -19
- package/HeaderLogo/index.js +0 -35
- package/HeaderLogo/index.js.map +0 -7
- package/HeaderLogo/package.json +0 -6
- package/HeaderSecondaryLogo/index.d.ts +0 -19
- package/HeaderSecondaryLogo/index.js.map +0 -7
- package/HeaderSecondaryLogo/package.json +0 -6
- package/HeaderTitle/index.d.ts +0 -9
- package/HeaderTitle/index.js +0 -24
- package/HeaderTitle/index.js.map +0 -7
- package/HeaderTitle/package.json +0 -6
- package/NavListItemAction/index.js.map +0 -7
- package/NavListItemAction/package.json +0 -6
- package/NavListItemLink/index.js.map +0 -7
- package/NavListItemLink/index.test.d.ts +0 -1
- package/NavListItemLink/package.json +0 -6
- package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
- package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
- package/cjs/BackLink/index.js +0 -64
- package/cjs/BackLink/index.js.map +0 -7
- package/cjs/BreadcrumbsListItem/index.js.map +0 -7
- package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
- package/cjs/ButtonLink/index.js.map +0 -7
- package/cjs/CallToAction/index.js.map +0 -7
- package/cjs/CheckboxItemInput/index.native.js.map +0 -7
- package/cjs/CircularProgress/index.js.map +0 -7
- package/cjs/FooterLink/index.js +0 -58
- package/cjs/FooterLink/index.js.map +0 -7
- package/cjs/GovGRLogo/index.js.map +0 -7
- package/cjs/HeaderLogo/index.js +0 -68
- package/cjs/HeaderLogo/index.js.map +0 -7
- package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
- package/cjs/HeaderTitle/index.js.map +0 -7
- package/cjs/NavListItemAction/index.js.map +0 -7
- package/cjs/NavListItemLink/index.js.map +0 -7
- package/cjs/utils/extend.native.js.map +0 -7
- package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
- package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
- package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
- package/src/BackLink/index.test.tsx +0 -13
- package/src/BackLink/index.tsx +0 -35
- package/src/BreadcrumbsListItemLink/index.test.tsx +0 -16
- package/src/ButtonLink/index.test.tsx +0 -69
- package/src/ButtonLink/index.tsx +0 -54
- package/src/CallToAction/index.test.tsx +0 -10
- package/src/CheckboxItemInput/index.native.tsx +0 -17
- package/src/CircularProgress/index.test.tsx +0 -34
- package/src/FooterLink/index.test.tsx +0 -14
- package/src/FooterLink/index.tsx +0 -26
- package/src/GovGRLogo/index.test.tsx +0 -8
- package/src/GovGRLogo/index.tsx +0 -42
- package/src/HeaderLogo/index.test.tsx +0 -8
- package/src/HeaderLogo/index.tsx +0 -43
- package/src/HeaderTitle/index.test.tsx +0 -16
- package/src/HeaderTitle/index.tsx +0 -28
- package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
- package/src/NavListItemAction/index.test.tsx +0 -11
- package/src/NavListItemLink/index.test.tsx +0 -39
- package/src/utils/extend.native.tsx +0 -36
- package/utils/extend.native/index.js +0 -14
- package/utils/extend.native/package.json +0 -6
- package/utils/extend.native.d.ts +0 -23
- package/utils/extend.native.js.map +0 -7
- /package/{AutoCompleteInputTypeahead → BackLinkBase}/index.test.d.ts +0 -0
- /package/{BackLink → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
- /package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.d.ts +0 -0
- /package/{BreadcrumbsListItemLink → ButtonLinkBase}/index.test.d.ts +0 -0
- /package/{ButtonLink → CallToActionBase}/index.test.d.ts +0 -0
- /package/{CallToAction → CircularProgressBase}/index.test.d.ts +0 -0
- /package/{CircularProgress → FooterLinkBase}/index.test.d.ts +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
- /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
- /package/{FooterLink → GovGRLogoBase}/index.test.d.ts +0 -0
- /package/{GovGRLogo → HeaderLogoBase}/index.test.d.ts +0 -0
- /package/{HeaderLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
- /package/{HeaderSecondaryLogo → HeaderTitleBase}/index.test.d.ts +0 -0
- /package/{HeaderTitle → NavListItemActionBase}/index.test.d.ts +0 -0
- /package/{NavListItemAction → NavListItemLinkBase}/index.test.d.ts +0 -0
- /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
- /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
- /package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/__snapshots__/index.test.tsx.snap +0 -0
- /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
- /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
|
|
4
|
+
type PropFactory<TProps> = (props: TProps) => any;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A HOC that transforms the props of the wrapped component before passing them through
|
|
8
|
+
*
|
|
9
|
+
* @param Component The component to wrap
|
|
10
|
+
* @param [propFactory=(props) => props] The function that transforms the props
|
|
11
|
+
* @returns The wrapped component that accepts the transformed props
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* type MyComponentProps = { name: string; };
|
|
15
|
+
* const MyComponent = (props: MyComponentProps) => <p>Hi {props.name}</p>;
|
|
16
|
+
*
|
|
17
|
+
* const MyNativeComponent = extend(MyComponent, (props) => ({ name: props.name.toUpperCase(), ...props }));
|
|
18
|
+
*
|
|
19
|
+
* type AdditionalProps = { lastName: string; };
|
|
20
|
+
* const MyExpandedNativeComponent = extend<MyComponentProps, AdditionalProps>(MyNativeComponent, (props) => ({ name: `${props.name} ${props.lastName}`, ...props }));
|
|
21
|
+
*/
|
|
22
|
+
export function extend<TProps, TAdditionalProps>(
|
|
23
|
+
Component: React.ComponentType<TProps>,
|
|
24
|
+
propFactory: PropFactory<React.PropsWithoutRef<TProps & TAdditionalProps>> = (
|
|
25
|
+
props
|
|
26
|
+
) => props
|
|
27
|
+
) {
|
|
28
|
+
const ExtendedComponent = React.forwardRef<
|
|
29
|
+
unknown,
|
|
30
|
+
TProps & TAdditionalProps
|
|
31
|
+
>(function ExtendedComponent(props, ref) {
|
|
32
|
+
const transformedProps = propFactory(props);
|
|
33
|
+
|
|
34
|
+
return <Component ref={ref} {...transformedProps} />;
|
|
35
|
+
});
|
|
36
|
+
return ExtendedComponent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface PseudoclassOptions {
|
|
40
|
+
self?: Record<string, string[]>;
|
|
41
|
+
children?: Record<string, string[]>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A HOC that adds pseudoclass support to the wrapped component
|
|
46
|
+
*
|
|
47
|
+
* @param Component The component to wrap
|
|
48
|
+
* @param options The pseudoclass options
|
|
49
|
+
* @returns The wrapped component that supports pseudoclasses
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* const MyComponent = (props) => <p {...props}>Hi</p>;
|
|
53
|
+
* const MyComponentWithPseudoclass = enablePseudoclass(MyComponent
|
|
54
|
+
* { self: { 'empty': ['ds-component__empty'] }, childrenClassNames: { 'first-child': ['ds-component__first-child'] } });
|
|
55
|
+
*
|
|
56
|
+
* <MyComponentWithPseudoclass className="my-class" empty focus>
|
|
57
|
+
* <p>First child</p>
|
|
58
|
+
* <p>Second child</p>
|
|
59
|
+
* </MyComponentWithPseudoclass>
|
|
60
|
+
*
|
|
61
|
+
* */
|
|
62
|
+
export function enablePseudoclass<T extends React.ElementType>(
|
|
63
|
+
Component: T,
|
|
64
|
+
{ self = {}, children = {} }: PseudoclassOptions
|
|
65
|
+
) {
|
|
66
|
+
return React.forwardRef<
|
|
67
|
+
React.ComponentRef<T>,
|
|
68
|
+
React.ComponentPropsWithRef<T>
|
|
69
|
+
>(function enablePseudoclassComponent(
|
|
70
|
+
{ className, children: componentChildren, ...props },
|
|
71
|
+
ref
|
|
72
|
+
) {
|
|
73
|
+
// Handle if children is an array, add the corresponding classnames to the first and last child
|
|
74
|
+
if (Array.isArray(componentChildren)) {
|
|
75
|
+
return (
|
|
76
|
+
<Component ref={ref} {...(props as any)} className={className}>
|
|
77
|
+
{componentChildren.map((child, index) => {
|
|
78
|
+
return React.cloneElement(child, {
|
|
79
|
+
key: index,
|
|
80
|
+
className: clsx(
|
|
81
|
+
child.props.className,
|
|
82
|
+
...Object.entries(children).map(([key, classNames]) => {
|
|
83
|
+
if (index === 0 && key === 'first-child') return classNames;
|
|
84
|
+
if (
|
|
85
|
+
index === componentChildren.length - 1 &&
|
|
86
|
+
key === 'last-child'
|
|
87
|
+
)
|
|
88
|
+
return classNames;
|
|
89
|
+
return '';
|
|
90
|
+
})
|
|
91
|
+
),
|
|
92
|
+
});
|
|
93
|
+
})}
|
|
94
|
+
</Component>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
// Handle if children is a single element, add the corresponding classname for empty pseudoclass
|
|
98
|
+
if (componentChildren === undefined) {
|
|
99
|
+
const componentClassNames = Object.entries(self).map(([key, value]) => {
|
|
100
|
+
if (key === 'empty') return value.join(' ');
|
|
101
|
+
return '';
|
|
102
|
+
});
|
|
103
|
+
return (
|
|
104
|
+
<Component
|
|
105
|
+
ref={ref}
|
|
106
|
+
{...(props as any)}
|
|
107
|
+
className={clsx(className, ...componentClassNames)}
|
|
108
|
+
>
|
|
109
|
+
{componentChildren}
|
|
110
|
+
</Component>
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
// Else return the component as it is
|
|
114
|
+
return (
|
|
115
|
+
<Component ref={ref} {...(props as any)} className={className}>
|
|
116
|
+
{componentChildren}
|
|
117
|
+
</Component>
|
|
118
|
+
);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default extend;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
function extend(Component, propFactory = (props) => props) {
|
|
4
|
+
const ExtendedComponent = React.forwardRef(function ExtendedComponent2(props, ref) {
|
|
5
|
+
const transformedProps = propFactory(props);
|
|
6
|
+
return /* @__PURE__ */ React.createElement(Component, { ref, ...transformedProps });
|
|
7
|
+
});
|
|
8
|
+
return ExtendedComponent;
|
|
9
|
+
}
|
|
10
|
+
function enablePseudoclass(Component, { self = {}, children = {} }) {
|
|
11
|
+
return React.forwardRef(function enablePseudoclassComponent({ className, children: componentChildren, ...props }, ref) {
|
|
12
|
+
if (Array.isArray(componentChildren)) {
|
|
13
|
+
return /* @__PURE__ */ React.createElement(Component, { ref, ...props, className }, componentChildren.map((child, index) => {
|
|
14
|
+
return React.cloneElement(child, {
|
|
15
|
+
key: index,
|
|
16
|
+
className: clsx(
|
|
17
|
+
child.props.className,
|
|
18
|
+
...Object.entries(children).map(([key, classNames]) => {
|
|
19
|
+
if (index === 0 && key === "first-child") return classNames;
|
|
20
|
+
if (index === componentChildren.length - 1 && key === "last-child")
|
|
21
|
+
return classNames;
|
|
22
|
+
return "";
|
|
23
|
+
})
|
|
24
|
+
)
|
|
25
|
+
});
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
if (componentChildren === void 0) {
|
|
29
|
+
const componentClassNames = Object.entries(self).map(([key, value]) => {
|
|
30
|
+
if (key === "empty") return value.join(" ");
|
|
31
|
+
return "";
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ React.createElement(
|
|
34
|
+
Component,
|
|
35
|
+
{
|
|
36
|
+
ref,
|
|
37
|
+
...props,
|
|
38
|
+
className: clsx(className, ...componentClassNames)
|
|
39
|
+
},
|
|
40
|
+
componentChildren
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ React.createElement(Component, { ref, ...props, className }, componentChildren);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
var index_native_default = extend;
|
|
47
|
+
export {
|
|
48
|
+
index_native_default as default,
|
|
49
|
+
enablePseudoclass,
|
|
50
|
+
extend
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type PropFactory<TProps> = (props: TProps) => any;
|
|
3
|
+
/**
|
|
4
|
+
* A HOC that transforms the props of the wrapped component before passing them through
|
|
5
|
+
*
|
|
6
|
+
* @param Component The component to wrap
|
|
7
|
+
* @param [propFactory=(props) => props] The function that transforms the props
|
|
8
|
+
* @returns The wrapped component that accepts the transformed props
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* type MyComponentProps = { name: string; };
|
|
12
|
+
* const MyComponent = (props: MyComponentProps) => <p>Hi {props.name}</p>;
|
|
13
|
+
*
|
|
14
|
+
* const MyNativeComponent = extend(MyComponent, (props) => ({ name: props.name.toUpperCase(), ...props }));
|
|
15
|
+
*
|
|
16
|
+
* type AdditionalProps = { lastName: string; };
|
|
17
|
+
* const MyExpandedNativeComponent = extend<MyComponentProps, AdditionalProps>(MyNativeComponent, (props) => ({ name: `${props.name} ${props.lastName}`, ...props }));
|
|
18
|
+
*/
|
|
19
|
+
export declare function extend<TProps, TAdditionalProps>(Component: React.ComponentType<TProps>, propFactory?: PropFactory<React.PropsWithoutRef<TProps & TAdditionalProps>>): React.ForwardRefExoticComponent<React.PropsWithoutRef<TProps & TAdditionalProps> & React.RefAttributes<unknown>>;
|
|
20
|
+
interface PseudoclassOptions {
|
|
21
|
+
self?: Record<string, string[]>;
|
|
22
|
+
children?: Record<string, string[]>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A HOC that adds pseudoclass support to the wrapped component
|
|
26
|
+
*
|
|
27
|
+
* @param Component The component to wrap
|
|
28
|
+
* @param options The pseudoclass options
|
|
29
|
+
* @returns The wrapped component that supports pseudoclasses
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* const MyComponent = (props) => <p {...props}>Hi</p>;
|
|
33
|
+
* const MyComponentWithPseudoclass = enablePseudoclass(MyComponent
|
|
34
|
+
* { self: { 'empty': ['ds-component__empty'] }, childrenClassNames: { 'first-child': ['ds-component__first-child'] } });
|
|
35
|
+
*
|
|
36
|
+
* <MyComponentWithPseudoclass className="my-class" empty focus>
|
|
37
|
+
* <p>First child</p>
|
|
38
|
+
* <p>Second child</p>
|
|
39
|
+
* </MyComponentWithPseudoclass>
|
|
40
|
+
*
|
|
41
|
+
* */
|
|
42
|
+
export declare function enablePseudoclass<T extends React.ElementType>(Component: T, { self, children }: PseudoclassOptions): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.ComponentPropsWithRef<T>> & React.RefAttributes<React.ComponentRef<T>>>;
|
|
43
|
+
export default extend;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/index.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\n\ntype PropFactory<TProps> = (props: TProps) => any;\n\n/**\n * A HOC that transforms the props of the wrapped component before passing them through\n *\n * @param Component The component to wrap\n * @param [propFactory=(props) => props] The function that transforms the props\n * @returns The wrapped component that accepts the transformed props\n *\n * @example\n * type MyComponentProps = { name: string; };\n * const MyComponent = (props: MyComponentProps) => <p>Hi {props.name}</p>;\n *\n * const MyNativeComponent = extend(MyComponent, (props) => ({ name: props.name.toUpperCase(), ...props }));\n *\n * type AdditionalProps = { lastName: string; };\n * const MyExpandedNativeComponent = extend<MyComponentProps, AdditionalProps>(MyNativeComponent, (props) => ({ name: `${props.name} ${props.lastName}`, ...props }));\n */\nexport function extend<TProps, TAdditionalProps>(\n Component: React.ComponentType<TProps>,\n propFactory: PropFactory<React.PropsWithoutRef<TProps & TAdditionalProps>> = (\n props\n ) => props\n) {\n const ExtendedComponent = React.forwardRef<\n unknown,\n TProps & TAdditionalProps\n >(function ExtendedComponent(props, ref) {\n const transformedProps = propFactory(props);\n\n return <Component ref={ref} {...transformedProps} />;\n });\n return ExtendedComponent;\n}\n\ninterface PseudoclassOptions {\n self?: Record<string, string[]>;\n children?: Record<string, string[]>;\n}\n\n/**\n * A HOC that adds pseudoclass support to the wrapped component\n *\n * @param Component The component to wrap\n * @param options The pseudoclass options\n * @returns The wrapped component that supports pseudoclasses\n *\n * @example\n * const MyComponent = (props) => <p {...props}>Hi</p>;\n * const MyComponentWithPseudoclass = enablePseudoclass(MyComponent\n * { self: { 'empty': ['ds-component__empty'] }, childrenClassNames: { 'first-child': ['ds-component__first-child'] } });\n *\n * <MyComponentWithPseudoclass className=\"my-class\" empty focus>\n * <p>First child</p>\n * <p>Second child</p>\n * </MyComponentWithPseudoclass>\n *\n * */\nexport function enablePseudoclass<T extends React.ElementType>(\n Component: T,\n { self = {}, children = {} }: PseudoclassOptions\n) {\n return React.forwardRef<\n React.ComponentRef<T>,\n React.ComponentPropsWithRef<T>\n >(function enablePseudoclassComponent(\n { className, children: componentChildren, ...props },\n ref\n ) {\n // Handle if children is an array, add the corresponding classnames to the first and last child\n if (Array.isArray(componentChildren)) {\n return (\n <Component ref={ref} {...(props as any)} className={className}>\n {componentChildren.map((child, index) => {\n return React.cloneElement(child, {\n key: index,\n className: clsx(\n child.props.className,\n ...Object.entries(children).map(([key, classNames]) => {\n if (index === 0 && key === 'first-child') return classNames;\n if (\n index === componentChildren.length - 1 &&\n key === 'last-child'\n )\n return classNames;\n return '';\n })\n ),\n });\n })}\n </Component>\n );\n }\n // Handle if children is a single element, add the corresponding classname for empty pseudoclass\n if (componentChildren === undefined) {\n const componentClassNames = Object.entries(self).map(([key, value]) => {\n if (key === 'empty') return value.join(' ');\n return '';\n });\n return (\n <Component\n ref={ref}\n {...(props as any)}\n className={clsx(className, ...componentClassNames)}\n >\n {componentChildren}\n </Component>\n );\n }\n // Else return the component as it is\n return (\n <Component ref={ref} {...(props as any)} className={className}>\n {componentChildren}\n </Component>\n );\n });\n}\n\nexport default extend;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AAoBV,SAAS,OACd,WACA,cAA6E,CAC3E,UACG,OACL;AACA,QAAM,oBAAoB,MAAM,WAG9B,SAASA,mBAAkB,OAAO,KAAK;AACvC,UAAM,mBAAmB,YAAY,KAAK;AAE1C,WAAO,oCAAC,aAAU,KAAW,GAAG,kBAAkB;AAAA,EACpD,CAAC;AACD,SAAO;AACT;AAyBO,SAAS,kBACd,WACA,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,EAAE,GAC3B;AACA,SAAO,MAAM,WAGX,SAAS,2BACT,EAAE,WAAW,UAAU,mBAAmB,GAAG,MAAM,GACnD,KACA;AAEA,QAAI,MAAM,QAAQ,iBAAiB,GAAG;AACpC,aACE,oCAAC,aAAU,KAAW,GAAI,OAAe,aACtC,kBAAkB,IAAI,CAAC,OAAO,UAAU;AACvC,eAAO,MAAM,aAAa,OAAO;AAAA,UAC/B,KAAK;AAAA,UACL,WAAW;AAAA,YACT,MAAM,MAAM;AAAA,YACZ,GAAG,OAAO,QAAQ,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,UAAU,MAAM;AACrD,kBAAI,UAAU,KAAK,QAAQ,cAAe,QAAO;AACjD,kBACE,UAAU,kBAAkB,SAAS,KACrC,QAAQ;AAER,uBAAO;AACT,qBAAO;AAAA,YACT,CAAC;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH,CAAC,CACH;AAAA,IAEJ;AAEA,QAAI,sBAAsB,QAAW;AACnC,YAAM,sBAAsB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AACrE,YAAI,QAAQ,QAAS,QAAO,MAAM,KAAK,GAAG;AAC1C,eAAO;AAAA,MACT,CAAC;AACD,aACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACC,GAAI;AAAA,UACL,WAAW,KAAK,WAAW,GAAG,mBAAmB;AAAA;AAAA,QAEhD;AAAA,MACH;AAAA,IAEJ;AAEA,WACE,oCAAC,aAAU,KAAW,GAAI,OAAe,aACtC,iBACH;AAAA,EAEJ,CAAC;AACH;AAEA,IAAO,uBAAQ;",
|
|
6
|
+
"names": ["ExtendedComponent"]
|
|
7
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* AutoCompleteInputTypeahead component is used to display the hole search value
|
|
7
|
-
* in the background.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export declare const AutoCompleteInputTypeahead: React.ForwardRefExoticComponent<Omit<AutoCompleteInputTypeaheadProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
-
export default AutoCompleteInputTypeahead;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import Base from "@digigov/react-core/Base";
|
|
4
|
-
const AutoCompleteInputTypeahead = React.forwardRef(function AutoCompleteInputTypeahead2({ className, ...props }, ref) {
|
|
5
|
-
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
|
|
6
|
-
Base,
|
|
7
|
-
{
|
|
8
|
-
as: "input",
|
|
9
|
-
type: "text",
|
|
10
|
-
readOnly: true,
|
|
11
|
-
ref,
|
|
12
|
-
tabIndex: -1,
|
|
13
|
-
className: clsx(className, {
|
|
14
|
-
"ds-autocomplete__hint": true
|
|
15
|
-
}),
|
|
16
|
-
...props
|
|
17
|
-
}
|
|
18
|
-
));
|
|
19
|
-
});
|
|
20
|
-
var AutoCompleteInputTypeahead_default = AutoCompleteInputTypeahead;
|
|
21
|
-
export {
|
|
22
|
-
AutoCompleteInputTypeahead,
|
|
23
|
-
AutoCompleteInputTypeahead_default as default
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/AutoCompleteInputTypeahead/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {}\n/**\n * AutoCompleteInputTypeahead component is used to display the hole search value\n * in the background.\n *\n */\nexport const AutoCompleteInputTypeahead = React.forwardRef<\n HTMLInputElement,\n AutoCompleteInputTypeaheadProps\n>(function AutoCompleteInputTypeahead({ className, ...props }, ref) {\n return (\n <span>\n <Base\n as=\"input\"\n type=\"text\"\n readOnly\n ref={ref}\n tabIndex={-1}\n className={clsx(className, {\n 'ds-autocomplete__hint': true,\n })}\n {...props}\n />\n </span>\n );\n});\n\nexport default AutoCompleteInputTypeahead;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAQzB,MAAM,6BAA6B,MAAM,WAG9C,SAASA,4BAA2B,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK;AAClE,SACE,oCAAC,cACC;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,MAAK;AAAA,MACL,UAAQ;AAAA,MACR;AAAA,MACA,UAAU;AAAA,MACV,WAAW,KAAK,WAAW;AAAA,QACzB,yBAAyB;AAAA,MAC3B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,EACN,CACF;AAEJ,CAAC;AAED,IAAO,qCAAQ;",
|
|
6
|
-
"names": ["AutoCompleteInputTypeahead"]
|
|
7
|
-
}
|
package/BackLink/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface BackLinkProps extends BaseProps<'a'> {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Use BackLink component to help users go back to the previous page in a multi-page transaction.
|
|
7
|
-
*/
|
|
8
|
-
export declare const BackLink: React.ForwardRefExoticComponent<Omit<BackLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
-
export default BackLink;
|
package/BackLink/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import Base from "@digigov/react-core/Base";
|
|
4
|
-
import { CaretIcon } from "@digigov/react-icons";
|
|
5
|
-
const BackLink = React.forwardRef(
|
|
6
|
-
function BackLink2({ href, printHidden = true, className, children, ...props }, ref) {
|
|
7
|
-
return /* @__PURE__ */ React.createElement(
|
|
8
|
-
Base,
|
|
9
|
-
{
|
|
10
|
-
as: "a",
|
|
11
|
-
printHidden,
|
|
12
|
-
href,
|
|
13
|
-
onClick: () => !href && window.history.back(),
|
|
14
|
-
ref,
|
|
15
|
-
className: clsx(className, {
|
|
16
|
-
"ds-back-link": true
|
|
17
|
-
}),
|
|
18
|
-
tabIndex: 0,
|
|
19
|
-
...props
|
|
20
|
-
},
|
|
21
|
-
/* @__PURE__ */ React.createElement(CaretIcon, { direction: "left" }),
|
|
22
|
-
children
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
var BackLink_default = BackLink;
|
|
27
|
-
export {
|
|
28
|
-
BackLink,
|
|
29
|
-
BackLink_default as default
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
package/BackLink/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/BackLink/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport { CaretIcon } from '@digigov/react-icons';\n\nexport interface BackLinkProps extends BaseProps<'a'> {}\n/**\n * Use BackLink component to help users go back to the previous page in a multi-page transaction.\n */\nexport const BackLink = React.forwardRef<HTMLAnchorElement, BackLinkProps>(\n function BackLink(\n { href, printHidden = true, className, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"a\"\n printHidden={printHidden}\n href={href}\n onClick={() => !href && window.history.back()}\n ref={ref}\n className={clsx(className, {\n 'ds-back-link': true,\n })}\n tabIndex={0}\n {...props}\n >\n <CaretIcon direction={'left'} />\n {children}\n </Base>\n );\n }\n);\n\nexport default BackLink;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAChC,SAAS,iBAAiB;AAMnB,MAAM,WAAW,MAAM;AAAA,EAC5B,SAASA,UACP,EAAE,MAAM,cAAc,MAAM,WAAW,UAAU,GAAG,MAAM,GAC1D,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA;AAAA,QACA,SAAS,MAAM,CAAC,QAAQ,OAAO,QAAQ,KAAK;AAAA,QAC5C;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,gBAAgB;AAAA,QAClB,CAAC;AAAA,QACD,UAAU;AAAA,QACT,GAAG;AAAA;AAAA,MAEJ,oCAAC,aAAU,WAAW,QAAQ;AAAA,MAC7B;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ;",
|
|
6
|
-
"names": ["BackLink"]
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface BreadcrumbsListItemBaseProps extends BaseProps<'li'> {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* BreadcrumbsListItem creates a list of items with the possibility of navigation.
|
|
7
|
-
* It should be used inside BreadcrumbsList as children component
|
|
8
|
-
*/
|
|
9
|
-
export declare const BreadcrumbsListItemBase: React.ForwardRefExoticComponent<Omit<BreadcrumbsListItemBaseProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
-
export default BreadcrumbsListItemBase;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/BreadcrumbsListItem/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface BreadcrumbsListItemBaseProps extends BaseProps<'li'> {}\n/**\n * BreadcrumbsListItem creates a list of items with the possibility of navigation.\n * It should be used inside BreadcrumbsList as children component\n */\nexport const BreadcrumbsListItemBase = React.forwardRef<\n HTMLLIElement,\n BreadcrumbsListItemBaseProps\n>(function BreadcrumbsListItemBase({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"li\"\n ref={ref}\n className={clsx(className, {\n 'ds-breadcrumbs__list-item': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default BreadcrumbsListItemBase;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAOzB,MAAM,0BAA0B,MAAM,WAG3C,SAASA,yBAAwB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACzE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,6BAA6B;AAAA,MAC/B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,8BAAQ;",
|
|
6
|
-
"names": ["BreadcrumbsListItemBase"]
|
|
7
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import Link from "@digigov/react-core/LinkBase";
|
|
4
|
-
const BreadcrumbsListItemLink = React.forwardRef(function BreadcrumbsListItemLink2({ href, className, children }, ref) {
|
|
5
|
-
return /* @__PURE__ */ React.createElement(
|
|
6
|
-
Link,
|
|
7
|
-
{
|
|
8
|
-
href,
|
|
9
|
-
defaultStyle: false,
|
|
10
|
-
className: clsx(className, {
|
|
11
|
-
"ds-breadcrumbs__link": true,
|
|
12
|
-
"ds-breadcrumbs__link--inactive": href === void 0
|
|
13
|
-
}),
|
|
14
|
-
ref
|
|
15
|
-
},
|
|
16
|
-
children
|
|
17
|
-
);
|
|
18
|
-
});
|
|
19
|
-
var BreadcrumbsListItemLink_default = BreadcrumbsListItemLink;
|
|
20
|
-
export {
|
|
21
|
-
BreadcrumbsListItemLink,
|
|
22
|
-
BreadcrumbsListItemLink_default as default
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/BreadcrumbsListItemLink/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Link, { LinkBaseProps } from '@digigov/react-core/LinkBase';\n\nexport interface BreadcrumbsListItemLinkProps extends LinkBaseProps {}\n/**\n * BreadcrumbsListItemLink creates an anchor link to navigate in different\n * parts of the breadcrumbs.\n * It should be used inside BreadcrumbsListItem as children component. This is\n * the default link component for the BreadcrumbsListItem and it uses the LinkBase\n * component from `@digigov/react-core`. In case you need to use a different Link\n * component from a framework or a custom router, use `@digigov/ui/navigation/BreadcrumbsListItemLink` instead.\n */\nexport const BreadcrumbsListItemLink = React.forwardRef<\n HTMLAnchorElement,\n BreadcrumbsListItemLinkProps\n>(function BreadcrumbsListItemLink({ href, className, children }, ref) {\n return (\n <Link\n href={href}\n defaultStyle={false}\n className={clsx(className, {\n 'ds-breadcrumbs__link': true,\n 'ds-breadcrumbs__link--inactive': href === undefined,\n })}\n ref={ref}\n >\n {children}\n </Link>\n );\n});\n\nexport default BreadcrumbsListItemLink;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAA6B;AAW7B,MAAM,0BAA0B,MAAM,WAG3C,SAASA,yBAAwB,EAAE,MAAM,WAAW,SAAS,GAAG,KAAK;AACrE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,cAAc;AAAA,MACd,WAAW,KAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,QACxB,kCAAkC,SAAS;AAAA,MAC7C,CAAC;AAAA,MACD;AAAA;AAAA,IAEC;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,kCAAQ;",
|
|
6
|
-
"names": ["BreadcrumbsListItemLink"]
|
|
7
|
-
}
|
package/ButtonLink/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import Base from "@digigov/react-core/Base";
|
|
4
|
-
const ButtonLink = React.forwardRef(
|
|
5
|
-
function ButtonLink2({ color = "primary", dense, className, children, ...props }, ref) {
|
|
6
|
-
return /* @__PURE__ */ React.createElement(
|
|
7
|
-
Base,
|
|
8
|
-
{
|
|
9
|
-
as: "a",
|
|
10
|
-
ref,
|
|
11
|
-
className: clsx(className, {
|
|
12
|
-
"ds-btn": true,
|
|
13
|
-
"ds-btn--dense": dense,
|
|
14
|
-
"ds-btn-primary": color === "primary",
|
|
15
|
-
"ds-btn-secondary": color === "secondary",
|
|
16
|
-
"ds-btn-warning": color === "warning"
|
|
17
|
-
}),
|
|
18
|
-
...props
|
|
19
|
-
},
|
|
20
|
-
children
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
var ButtonLink_default = ButtonLink;
|
|
25
|
-
export {
|
|
26
|
-
ButtonLink,
|
|
27
|
-
ButtonLink_default as default
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
package/ButtonLink/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/ButtonLink/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface ButtonLinkProps extends BaseProps<'a'> {\n /**\n * color is optional.\n * 'primary' color is used for the main call to action on a page.\n * 'secondary' color is used for secondary calls to action on a page.\n * 'warning' color is used to make users think carefully before they use them.\n * The default value is 'primary'.\n * @value 'primary'\n * @value 'secondary'\n * @value 'warning'\n * @default 'primary'\n */\n color?: 'primary' | 'secondary' | 'warning';\n\n /**\n * dense is optional.\n * @value true Button will be dense.\n * @value false\n * @default false\n */\n dense?: boolean;\n}\n/**\n * Use the Button component to help users carry out an action.\n */\nexport const ButtonLink = React.forwardRef<HTMLAnchorElement, ButtonLinkProps>(\n function ButtonLink(\n { color = 'primary', dense, className, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"a\"\n ref={ref}\n className={clsx(className, {\n 'ds-btn': true,\n 'ds-btn--dense': dense,\n 'ds-btn-primary': color === 'primary',\n 'ds-btn-secondary': color === 'secondary',\n 'ds-btn-warning': color === 'warning',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default ButtonLink;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA2BzB,MAAM,aAAa,MAAM;AAAA,EAC9B,SAASA,YACP,EAAE,QAAQ,WAAW,OAAO,WAAW,UAAU,GAAG,MAAM,GAC1D,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,UAAU;AAAA,UACV,iBAAiB;AAAA,UACjB,kBAAkB,UAAU;AAAA,UAC5B,oBAAoB,UAAU;AAAA,UAC9B,kBAAkB,UAAU;AAAA,QAC9B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,qBAAQ;",
|
|
6
|
-
"names": ["ButtonLink"]
|
|
7
|
-
}
|
package/CallToAction/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ButtonLinkProps } from '@digigov/react-core/ButtonLink';
|
|
3
|
-
export interface CallToActionProps extends ButtonLinkProps {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Use this button for the main call to action on your service’s start page.
|
|
7
|
-
*/
|
|
8
|
-
export declare const CallToAction: React.ForwardRefExoticComponent<Omit<CallToActionProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
-
export default CallToAction;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/CallToAction/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport ButtonLink, { ButtonLinkProps } from '@digigov/react-core/ButtonLink';\nimport { ChevronIcon } from '@digigov/react-icons';\n\nexport interface CallToActionProps extends ButtonLinkProps {}\n/**\n * Use this button for the main call to action on your service\u2019s start page.\n */\nexport const CallToAction = React.forwardRef<\n HTMLAnchorElement,\n CallToActionProps\n>(function CallToAction(\n { printHidden = true, className, children, ...props },\n ref\n) {\n return (\n <ButtonLink\n ref={ref}\n printHidden={printHidden}\n className={clsx(className, {\n 'ds-btn-cta': true,\n })}\n {...props}\n >\n {children}\n <ChevronIcon className=\"ds-btn-cta__icon\" />\n </ButtonLink>\n );\n});\n\nexport default CallToAction;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,gBAAqC;AAC5C,SAAS,mBAAmB;AAMrB,MAAM,eAAe,MAAM,WAGhC,SAASA,cACT,EAAE,cAAc,MAAM,WAAW,UAAU,GAAG,MAAM,GACpD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,cAAc;AAAA,MAChB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,IACD,oCAAC,eAAY,WAAU,oBAAmB;AAAA,EAC5C;AAEJ,CAAC;AAED,IAAO,uBAAQ;",
|
|
6
|
-
"names": ["CallToAction"]
|
|
7
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx";
|
|
2
|
-
import CoreCheckboxItemInput from "@digigov/react-core/CheckboxItemInput/index.web";
|
|
3
|
-
import extend from "@digigov/react-core/utils/extend.native";
|
|
4
|
-
const CheckboxItemInput = extend(
|
|
5
|
-
CoreCheckboxItemInput,
|
|
6
|
-
({ className, ...props }) => {
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
className: clsx(className, {
|
|
10
|
-
"ds-checkboxes__input__wrapper": true
|
|
11
|
-
})
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
var index_native_default = CheckboxItemInput;
|
|
16
|
-
export {
|
|
17
|
-
CheckboxItemInput,
|
|
18
|
-
index_native_default as default
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const CheckboxItemInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@digigov/react-core/CheckboxItemInput/index.web").CheckboxItemInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement> & {
|
|
2
|
-
className?: string;
|
|
3
|
-
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
4
|
-
export default CheckboxItemInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/CheckboxItemInput/index.native.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport CoreCheckboxItemInput from '@digigov/react-core/CheckboxItemInput/index.web';\nimport extend from '@digigov/react-core/utils/extend.native';\n\nexport const CheckboxItemInput = extend(\n CoreCheckboxItemInput,\n ({ className, ...props }) => {\n return {\n ...props,\n className: clsx(className, {\n 'ds-checkboxes__input__wrapper': true,\n }),\n };\n }\n);\n\nexport default CheckboxItemInput;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,2BAA2B;AAClC,OAAO,YAAY;AAEZ,MAAM,oBAAoB;AAAA,EAC/B;AAAA,EACA,CAAC,EAAE,WAAW,GAAG,MAAM,MAAM;AAC3B,WAAO;AAAA,MACL,GAAG;AAAA,MACH,WAAW,KAAK,WAAW;AAAA,QACzB,iCAAiC;AAAA,MACnC,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/CircularProgress/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface CircularProgressProps extends BaseProps<'svg'> {\n /**\n * color prop is optional.\n * color prop is used to change the color of the loader.\n * @value 'primary' is the default color.\n * @value 'secondary' recommended for dark backgrounds.\n * @default 'primary'\n */\n color?: 'primary' | 'secondary';\n /**\n * size prop is optional.\n * size prop is used to change the size of the loader.\n * @value 'sm'\n * @value 'md'\n * @value 'lg'\n * @default 'md'\n */\n size?: 'sm' | 'md' | 'lg';\n}\n/**\n * Use CircularProgress component as an animated loader.\n * CircularProgress can be used inside LoaderContainer component.\n */\nexport const CircularProgress = React.forwardRef<\n SVGSVGElement,\n CircularProgressProps\n>(function CircularProgress(\n { color = 'primary', size = 'md', className, ...props },\n ref\n) {\n return (\n <Base\n as=\"svg\"\n ref={ref}\n className={clsx(className, {\n 'ds-circular-progress': true,\n 'ds-circular-progress--secondary': color === 'secondary',\n 'ds-circular-progress--sm': size === 'sm',\n 'ds-circular-progress--md': size === 'md',\n 'ds-circular-progress--lg': size === 'lg',\n })}\n focusable=\"false\"\n viewBox=\"0 0 200 200\"\n aria-hidden=\"true\"\n {...props}\n >\n <path\n className=\"ds-circular-progress__circle ds-circular-progress__circle--1\"\n d=\"M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z\"\n />\n <path\n className=\"ds-circular-progress__circle ds-circular-progress__circle--2\"\n d=\"M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z\"\n />\n </Base>\n );\n});\n\nexport default CircularProgress;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAyBzB,MAAM,mBAAmB,MAAM,WAGpC,SAASA,kBACT,EAAE,QAAQ,WAAW,OAAO,MAAM,WAAW,GAAG,MAAM,GACtD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,QACxB,mCAAmC,UAAU;AAAA,QAC7C,4BAA4B,SAAS;AAAA,QACrC,4BAA4B,SAAS;AAAA,QACrC,4BAA4B,SAAS;AAAA,MACvC,CAAC;AAAA,MACD,WAAU;AAAA,MACV,SAAQ;AAAA,MACR,eAAY;AAAA,MACX,GAAG;AAAA;AAAA,IAEJ;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,GAAE;AAAA;AAAA,IACJ;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,GAAE;AAAA;AAAA,IACJ;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,2BAAQ;",
|
|
6
|
-
"names": ["CircularProgress"]
|
|
7
|
-
}
|
package/FooterLink/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface FooterLinkProps extends BaseProps<'a'> {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* FooterLink in used inside the Footer component.
|
|
7
|
-
*/
|
|
8
|
-
export declare const FooterLink: React.ForwardRefExoticComponent<Omit<FooterLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
-
export default FooterLink;
|
package/FooterLink/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import Base from "@digigov/react-core/Base";
|
|
4
|
-
const FooterLink = React.forwardRef(
|
|
5
|
-
function FooterLink2({ className, children, ...props }, ref) {
|
|
6
|
-
return /* @__PURE__ */ React.createElement(
|
|
7
|
-
Base,
|
|
8
|
-
{
|
|
9
|
-
as: "a",
|
|
10
|
-
ref,
|
|
11
|
-
className: clsx(className, {
|
|
12
|
-
"ds-footer__link": true
|
|
13
|
-
}),
|
|
14
|
-
...props
|
|
15
|
-
},
|
|
16
|
-
children
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
var FooterLink_default = FooterLink;
|
|
21
|
-
export {
|
|
22
|
-
FooterLink,
|
|
23
|
-
FooterLink_default as default
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/FooterLink/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/FooterLink/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface FooterLinkProps extends BaseProps<'a'> {}\n/**\n * FooterLink in used inside the Footer component.\n */\nexport const FooterLink = React.forwardRef<HTMLAnchorElement, FooterLinkProps>(\n function FooterLink({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"a\"\n ref={ref}\n className={clsx(className, {\n 'ds-footer__link': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default FooterLink;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAMzB,MAAM,aAAa,MAAM;AAAA,EAC9B,SAASA,YAAW,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAC1D,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,QACrB,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,qBAAQ;",
|
|
6
|
-
"names": ["FooterLink"]
|
|
7
|
-
}
|
package/GovGRLogo/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface GovGRLogoProps extends BaseProps<'a'> {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Use this component anywhere you what to provide the gov.gr logo.
|
|
7
|
-
* */
|
|
8
|
-
export declare const GovGRLogo: React.ForwardRefExoticComponent<Omit<GovGRLogoProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
-
export default GovGRLogo;
|