@digigov/ui 0.12.2 → 0.13.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.md +8 -1
- package/{src/core/ServiceBadge/ServiceBadge.mdx → LICENSE} +0 -0
- package/api/APIErrors.d.ts +22 -0
- package/api/APIErrors.js +117 -0
- package/api/APIProvider.d.ts +15 -0
- package/api/APIProvider.js +43 -0
- package/api/fetchAPI.d.ts +18 -0
- package/api/fetchAPI.js +64 -0
- package/api/index.d.ts +9 -0
- package/api/index.js +104 -0
- package/api/index.spec.d.ts +1 -0
- package/api/index.spec.js +584 -0
- package/{src/api → api}/introduction.md +0 -0
- package/api/useResource.d.ts +11 -0
- package/api/useResource.js +144 -0
- package/api/useResourceAction.d.ts +2 -0
- package/api/useResourceAction.js +157 -0
- package/api/useResourceQuery.d.ts +18 -0
- package/api/useResourceQuery.js +229 -0
- package/api/utils.d.ts +6 -0
- package/api/utils.js +250 -0
- package/app/App.d.ts +14 -0
- package/app/App.js +49 -0
- package/{src/app/Confirmation/index.tsx → app/Confirmation/index.d.ts} +0 -0
- package/app/Confirmation/index.js +44 -0
- package/{src/app/Footer/index.tsx → app/Footer/index.d.ts} +0 -0
- package/app/Footer/index.js +200 -0
- package/app/Header/HeaderLogo.d.ts +3 -0
- package/app/Header/HeaderLogo.js +30 -0
- package/app/Header/HeaderSection.d.ts +5 -0
- package/app/Header/HeaderSection.js +20 -0
- package/app/Header/HeaderTitle.d.ts +5 -0
- package/app/Header/HeaderTitle.js +30 -0
- package/{src/app → app}/Header/__snapshots__/index.spec.tsx.snap +0 -0
- package/app/Header/index.d.ts +11 -0
- package/app/Header/index.js +106 -0
- package/{src/app → app}/Header/index.mdx +0 -0
- package/app/Header/index.spec.d.ts +1 -0
- package/app/Header/index.spec.js +45 -0
- package/app/NotFound/index.d.ts +3 -0
- package/app/NotFound/index.js +29 -0
- package/app/OutdatedBrowserBanner.d.ts +2 -0
- package/app/OutdatedBrowserBanner.js +41 -0
- package/app/PageTitle.d.ts +10 -0
- package/app/PageTitle.js +76 -0
- package/{src/app → app}/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -0
- package/app/QrCodeScanner/index.d.ts +29 -0
- package/app/QrCodeScanner/index.js +85 -0
- package/{src/app → app}/QrCodeScanner/index.mdx +0 -0
- package/app/QrCodeScanner/index.spec.d.ts +1 -0
- package/app/QrCodeScanner/index.spec.js +26 -0
- package/app/i18n.d.ts +10 -0
- package/app/i18n.js +63 -0
- package/{src/app/index.ts → app/index.d.ts} +0 -0
- package/app/index.js +70 -0
- package/{src/core → core}/Accordion/__snapshots__/index.spec.tsx.snap +0 -0
- package/core/Accordion/index.d.ts +21 -0
- package/core/Accordion/index.js +127 -0
- package/{src/core → core}/Accordion/index.mdx +0 -0
- package/core/Accordion/index.spec.d.ts +1 -0
- package/core/Accordion/index.spec.js +19 -0
- package/{src/core → core}/Blockquote/__snapshots__/index.spec.tsx.snap +0 -0
- package/core/Blockquote/index.d.ts +3 -0
- package/core/Blockquote/index.js +29 -0
- package/{src/core → core}/Blockquote/index.mdx +0 -0
- package/core/Blockquote/index.spec.d.ts +1 -0
- package/core/Blockquote/index.spec.js +21 -0
- package/{src/core/Breadcrumbs/index.tsx → core/Breadcrumbs/index.d.ts} +0 -0
- package/core/Breadcrumbs/index.js +44 -0
- package/core/Button/BackButton.d.ts +3 -0
- package/core/Button/BackButton.js +34 -0
- package/core/Button/ButtonLink.d.ts +4 -0
- package/core/Button/ButtonLink.js +28 -0
- package/core/Button/CallToAction.d.ts +7 -0
- package/core/Button/CallToAction.js +41 -0
- package/core/Button/Icon.d.ts +2 -0
- package/core/Button/Icon.js +19 -0
- package/{src/core → core}/Button/__snapshots__/index.spec.tsx.snap +0 -0
- package/core/Button/index.d.ts +15 -0
- package/core/Button/index.js +122 -0
- package/{src/core → core}/Button/index.mdx +0 -0
- package/core/Button/index.spec.d.ts +1 -0
- package/core/Button/index.spec.js +21 -0
- package/{src/core/Card/index.tsx → core/Card/index.d.ts} +0 -0
- package/core/Card/index.js +57 -0
- package/{src/core → core}/Details/__snapshots__/index.spec.tsx.snap +0 -0
- package/{src/core/Details/index.tsx → core/Details/index.d.ts} +0 -2
- package/core/Details/index.js +35 -0
- package/{src/core → core}/Details/index.mdx +0 -0
- package/core/Details/index.spec.d.ts +1 -0
- package/core/Details/index.spec.js +27 -0
- package/core/Divider/index.d.ts +5 -0
- package/core/Divider/index.js +20 -0
- package/{src/core → core}/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -0
- package/{src/core/ErrorSummary/index.tsx → core/ErrorSummary/index.d.ts} +0 -1
- package/core/ErrorSummary/index.js +19 -0
- package/{src/core → core}/ErrorSummary/index.mdx +0 -0
- package/core/ErrorSummary/index.spec.d.ts +1 -0
- package/core/ErrorSummary/index.spec.js +21 -0
- package/{src/core/Hidden/index.tsx → core/Hidden/index.d.ts} +0 -0
- package/core/Hidden/index.js +18 -0
- package/{src/core → core}/Link/__snapshots__/index.spec.tsx.snap +0 -0
- package/core/Link/index.d.ts +12 -0
- package/core/Link/index.js +50 -0
- package/core/Link/index.spec.d.ts +1 -0
- package/core/Link/index.spec.js +31 -0
- package/{src/core/List/List.tsx → core/List/List.d.ts} +0 -2
- package/core/List/List.js +19 -0
- package/{src/core/List/ListItem.tsx → core/List/ListItem.d.ts} +0 -2
- package/core/List/ListItem.js +19 -0
- package/core/List/ListItemContent.d.ts +7 -0
- package/core/List/ListItemContent.js +45 -0
- package/core/List/ListItemIcon.d.ts +7 -0
- package/core/List/ListItemIcon.js +48 -0
- package/core/List/ListItemText.d.ts +8 -0
- package/core/List/ListItemText.js +36 -0
- package/core/List/ListItemTitle.d.ts +10 -0
- package/core/List/ListItemTitle.js +44 -0
- package/{src/core → core}/List/__snapshots__/index.spec.tsx.snap +0 -0
- package/{src/core/List/index.tsx → core/List/index.d.ts} +0 -0
- package/core/List/index.js +96 -0
- package/{src/core → core}/List/index.mdx +0 -0
- package/core/List/index.spec.d.ts +1 -0
- package/core/List/index.spec.js +21 -0
- package/core/NavList/NavList.d.ts +17 -0
- package/core/NavList/NavList.js +99 -0
- package/core/NavList/NavListContext.d.ts +20 -0
- package/core/NavList/NavListContext.js +102 -0
- package/core/NavList/NavListItem.d.ts +13 -0
- package/core/NavList/NavListItem.js +171 -0
- package/core/NavList/NavListItemBase.d.ts +16 -0
- package/core/NavList/NavListItemBase.js +161 -0
- package/core/NavList/NavListSubMenu.d.ts +8 -0
- package/core/NavList/NavListSubMenu.js +52 -0
- package/{src/core → core}/NavList/__snapshots__/index.spec.tsx.snap +0 -0
- package/{src/core/NavList/index.tsx → core/NavList/index.d.ts} +0 -0
- package/core/NavList/index.js +68 -0
- package/{src/core → core}/NavList/index.mdx +0 -0
- package/core/NavList/index.spec.d.ts +1 -0
- package/core/NavList/index.spec.js +21 -0
- package/{src/core → core}/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -0
- package/core/NotificationBanner/index.d.ts +18 -0
- package/core/NotificationBanner/index.js +78 -0
- package/{src/core → core}/NotificationBanner/index.mdx +0 -0
- package/core/NotificationBanner/index.spec.d.ts +1 -0
- package/core/NotificationBanner/index.spec.js +32 -0
- package/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/core/ServiceBadge/index.d.ts +9 -0
- package/core/ServiceBadge/index.js +36 -0
- package/{src/core → core}/ServiceBadge/index.mdx +0 -0
- package/{src/core → core}/SummaryList/__snapshots__/index.spec.tsx.snap +0 -0
- package/{src/core/SummaryList/index.tsx → core/SummaryList/index.d.ts} +0 -2
- package/core/SummaryList/index.js +79 -0
- package/{src/core → core}/SummaryList/index.mdx +0 -0
- package/core/SummaryList/index.spec.d.ts +1 -0
- package/core/SummaryList/index.spec.js +19 -0
- package/{src/core/Table/index.tsx → core/Table/index.d.ts} +0 -0
- package/core/Table/index.js +96 -0
- package/core/Tabs/index.d.ts +16 -0
- package/core/Tabs/index.js +88 -0
- package/{src/core → core}/Tabs/index.mdx +0 -0
- package/{src/core/VisuallyHidden/index.tsx → core/VisuallyHidden/index.d.ts} +0 -0
- package/core/VisuallyHidden/index.js +18 -0
- package/{src/core → core}/WarningText/__snapshots__/index.spec.tsx.snap +0 -0
- package/{src/core/WarningText/index.tsx → core/WarningText/index.d.ts} +0 -1
- package/core/WarningText/index.js +19 -0
- package/{src/core → core}/WarningText/index.mdx +0 -0
- package/core/WarningText/index.spec.d.ts +1 -0
- package/core/WarningText/index.spec.js +21 -0
- package/{src/core/index.ts → core/index.d.ts} +0 -0
- package/core/index.js +227 -0
- package/custom.d.js +1 -0
- package/es/api/APIErrors.js +96 -0
- package/es/api/APIProvider.js +25 -0
- package/es/api/fetchAPI.js +49 -0
- package/{src/api/index.tsx → es/api/index.js} +3 -6
- package/es/api/index.spec.js +546 -0
- package/es/api/introduction.md +6 -0
- package/es/api/useResource.js +128 -0
- package/es/api/useResourceAction.js +141 -0
- package/es/api/useResourceQuery.js +208 -0
- package/es/api/utils.js +233 -0
- package/es/app/App.js +27 -0
- package/es/app/Confirmation/index.js +3 -0
- package/es/app/Footer/index.js +15 -0
- package/{src/app/Header/HeaderLogo.tsx → es/app/Header/HeaderLogo.js} +7 -9
- package/es/app/Header/HeaderSection.js +7 -0
- package/es/app/Header/HeaderTitle.js +17 -0
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +393 -0
- package/{src/app/Header/index.tsx → es/app/Header/index.js} +4 -10
- package/es/app/Header/index.mdx +50 -0
- package/es/app/Header/index.spec.js +32 -0
- package/es/app/NotFound/index.js +12 -0
- package/es/app/OutdatedBrowserBanner.js +24 -0
- package/es/app/PageTitle.js +57 -0
- package/es/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/es/app/QrCodeScanner/index.js +64 -0
- package/es/app/QrCodeScanner/index.mdx +22 -0
- package/es/app/QrCodeScanner/index.spec.js +13 -0
- package/es/app/i18n.js +42 -0
- package/es/app/index.js +5 -0
- package/es/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/es/core/Accordion/index.js +67 -0
- package/es/core/Accordion/index.mdx +104 -0
- package/es/core/Accordion/index.spec.js +9 -0
- package/es/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/{src/core/Blockquote/index.tsx → es/core/Blockquote/index.js} +7 -9
- package/es/core/Blockquote/index.mdx +61 -0
- package/es/core/Blockquote/index.spec.js +9 -0
- package/es/core/Breadcrumbs/index.js +3 -0
- package/{src/core/Button/BackButton.tsx → es/core/Button/BackButton.js} +8 -10
- package/es/core/Button/ButtonLink.js +16 -0
- package/es/core/Button/CallToAction.js +27 -0
- package/es/core/Button/Icon.js +7 -0
- package/es/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/es/core/Button/index.js +37 -0
- package/es/core/Button/index.mdx +65 -0
- package/es/core/Button/index.spec.js +9 -0
- package/es/core/Card/index.js +4 -0
- package/es/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/es/core/Details/index.js +5 -0
- package/es/core/Details/index.mdx +34 -0
- package/es/core/Details/index.spec.js +17 -0
- package/es/core/Divider/index.js +7 -0
- package/es/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/es/core/ErrorSummary/index.js +3 -0
- package/es/core/ErrorSummary/index.mdx +61 -0
- package/es/core/ErrorSummary/index.spec.js +9 -0
- package/es/core/Hidden/index.js +1 -0
- package/es/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/es/core/Link/index.js +26 -0
- package/es/core/Link/index.spec.js +21 -0
- package/es/core/List/List.js +3 -0
- package/es/core/List/ListItem.js +3 -0
- package/es/core/List/ListItemContent.js +27 -0
- package/es/core/List/ListItemIcon.js +29 -0
- package/es/core/List/ListItemText.js +19 -0
- package/es/core/List/ListItemTitle.js +25 -0
- package/es/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/es/core/List/index.js +7 -0
- package/es/core/List/index.mdx +40 -0
- package/es/core/List/index.spec.js +9 -0
- package/es/core/NavList/NavList.js +78 -0
- package/es/core/NavList/NavListContext.js +80 -0
- package/es/core/NavList/NavListItem.js +141 -0
- package/es/core/NavList/NavListItemBase.js +133 -0
- package/es/core/NavList/NavListSubMenu.js +27 -0
- package/es/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/es/core/NavList/index.js +5 -0
- package/es/core/NavList/index.mdx +185 -0
- package/es/core/NavList/index.spec.js +9 -0
- package/es/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/es/core/NotificationBanner/index.js +35 -0
- package/es/core/NotificationBanner/index.mdx +77 -0
- package/es/core/NotificationBanner/index.spec.js +20 -0
- package/es/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/es/core/ServiceBadge/index.js +20 -0
- package/es/core/ServiceBadge/index.mdx +42 -0
- package/es/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/es/core/SummaryList/index.js +7 -0
- package/es/core/SummaryList/index.mdx +82 -0
- package/es/core/SummaryList/index.spec.js +9 -0
- package/es/core/Table/index.js +7 -0
- package/es/core/Tabs/index.js +37 -0
- package/es/core/Tabs/index.mdx +54 -0
- package/es/core/VisuallyHidden/index.js +1 -0
- package/es/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/es/core/WarningText/index.js +3 -0
- package/es/core/WarningText/index.mdx +46 -0
- package/es/core/WarningText/index.spec.js +9 -0
- package/es/core/index.js +17 -0
- package/es/custom.d.js +0 -0
- package/{src → es}/form/inputs/Input/index.mdx +0 -0
- package/es/govgr/Footer/Copyright.js +37 -0
- package/es/govgr/Footer/HellenicRepublicLogo.js +3 -0
- package/es/govgr/Footer/LicenseCCSA.js +18 -0
- package/es/govgr/Footer/index.js +21 -0
- package/{src → es}/govgr/Footer/index.mdx +0 -0
- package/{src/govgr/Footer/logo.ts → es/govgr/Footer/logo.js} +1 -1
- package/{src/govgr/Footer/logos/logo-el.ts → es/govgr/Footer/logos/logo-el.js} +1 -1
- package/{src/govgr/Footer/logos/logo-en.ts → es/govgr/Footer/logos/logo-en.js} +1 -1
- package/{src → es}/govgr/Logo/govgr-logo.svg +0 -0
- package/es/govgr/Logo/index.js +3 -0
- package/{src/govgr/Logo/logo.ts → es/govgr/Logo/logo.js} +1 -1
- package/es/govgr/index.js +4 -0
- package/es/hooks/useDebounce.js +41 -0
- package/es/hooks/useLatest.js +12 -0
- package/{src/hooks/useOutdatedBrowserCheck.ts → es/hooks/useOutdatedBrowserCheck.js} +15 -16
- package/es/hooks/useSearch.js +25 -0
- package/es/hooks/useTogglableSections.js +96 -0
- package/es/index.js +5 -0
- package/es/layouts/Basic/Bottom/index.js +3 -0
- package/{src → es}/layouts/Basic/Bottom/index.mdx +0 -0
- package/es/layouts/Basic/Content/index.js +18 -0
- package/{src → es}/layouts/Basic/Content/index.mdx +0 -0
- package/es/layouts/Basic/Main/index.js +3 -0
- package/{src → es}/layouts/Basic/Main/index.mdx +0 -0
- package/es/layouts/Basic/Masthead/index.js +4 -0
- package/{src → es}/layouts/Basic/Masthead/index.mdx +0 -0
- package/{src/layouts/Basic/Side/index.tsx → es/layouts/Basic/Side/index.js} +3 -5
- package/{src → es}/layouts/Basic/Side/index.mdx +0 -0
- package/{src/layouts/Basic/Top/index.tsx → es/layouts/Basic/Top/index.js} +5 -7
- package/{src → es}/layouts/Basic/Top/index.mdx +0 -0
- package/{src → es}/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -0
- package/es/layouts/Basic/index.js +8 -0
- package/{src → es}/layouts/Basic/index.mdx +0 -0
- package/es/layouts/Basic/index.spec.js +10 -0
- package/es/layouts/Grid/index.js +1 -0
- package/es/layouts/index.js +2 -0
- package/{src/locales/el.ts → es/locales/el.js} +14 -19
- package/{src/locales/en.ts → es/locales/en.js} +13 -17
- package/es/router/index.js +15 -0
- package/{src → es}/router/index.mdx +0 -0
- package/es/test-utils/delay.js +31 -0
- package/es/test-utils/mountWithTheme.js +30 -0
- package/{src → es}/themes/govgr.js +29 -33
- package/es/themes/grnet.js +110 -0
- package/es/themes/index.js +2 -0
- package/es/typography/Caption.js +7 -0
- package/es/typography/NormalText.js +3 -0
- package/es/typography/Paragraph.js +2 -0
- package/es/typography/Title.js +48 -0
- package/es/typography/index.js +8 -0
- package/{src → es}/typography/index.mdx +0 -0
- package/es/utils/evaluateBrowserVersion.js +201 -0
- package/es/utils/withDeprecation.js +103 -0
- package/esm/api/APIErrors.js +96 -0
- package/esm/api/APIProvider.js +25 -0
- package/esm/api/fetchAPI.js +49 -0
- package/esm/api/index.js +13 -0
- package/esm/api/index.spec.js +546 -0
- package/esm/api/introduction.md +6 -0
- package/esm/api/useResource.js +128 -0
- package/esm/api/useResourceAction.js +141 -0
- package/esm/api/useResourceQuery.js +208 -0
- package/esm/api/utils.js +233 -0
- package/esm/app/App.js +27 -0
- package/esm/app/Confirmation/index.js +3 -0
- package/esm/app/Footer/index.js +15 -0
- package/esm/app/Header/HeaderLogo.js +17 -0
- package/esm/app/Header/HeaderSection.js +7 -0
- package/esm/app/Header/HeaderTitle.js +17 -0
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +393 -0
- package/esm/app/Header/index.js +13 -0
- package/esm/app/Header/index.mdx +50 -0
- package/esm/app/Header/index.spec.js +32 -0
- package/esm/app/NotFound/index.js +12 -0
- package/esm/app/OutdatedBrowserBanner.js +24 -0
- package/esm/app/PageTitle.js +57 -0
- package/esm/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/esm/app/QrCodeScanner/index.js +64 -0
- package/esm/app/QrCodeScanner/index.mdx +22 -0
- package/esm/app/QrCodeScanner/index.spec.js +13 -0
- package/esm/app/i18n.js +42 -0
- package/esm/app/index.js +5 -0
- package/esm/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/esm/core/Accordion/index.js +67 -0
- package/esm/core/Accordion/index.mdx +104 -0
- package/esm/core/Accordion/index.spec.js +9 -0
- package/esm/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/esm/core/Blockquote/index.js +16 -0
- package/esm/core/Blockquote/index.mdx +61 -0
- package/esm/core/Blockquote/index.spec.js +9 -0
- package/esm/core/Breadcrumbs/index.js +3 -0
- package/esm/core/Button/BackButton.js +21 -0
- package/esm/core/Button/ButtonLink.js +16 -0
- package/esm/core/Button/CallToAction.js +27 -0
- package/esm/core/Button/Icon.js +7 -0
- package/esm/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/esm/core/Button/index.js +37 -0
- package/esm/core/Button/index.mdx +65 -0
- package/esm/core/Button/index.spec.js +9 -0
- package/esm/core/Card/index.js +4 -0
- package/esm/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/esm/core/Details/index.js +5 -0
- package/esm/core/Details/index.mdx +34 -0
- package/esm/core/Details/index.spec.js +17 -0
- package/esm/core/Divider/index.js +7 -0
- package/esm/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/esm/core/ErrorSummary/index.js +3 -0
- package/esm/core/ErrorSummary/index.mdx +61 -0
- package/esm/core/ErrorSummary/index.spec.js +9 -0
- package/esm/core/Hidden/index.js +1 -0
- package/esm/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/esm/core/Link/index.js +26 -0
- package/esm/core/Link/index.spec.js +21 -0
- package/esm/core/List/List.js +3 -0
- package/esm/core/List/ListItem.js +3 -0
- package/esm/core/List/ListItemContent.js +27 -0
- package/esm/core/List/ListItemIcon.js +29 -0
- package/esm/core/List/ListItemText.js +19 -0
- package/esm/core/List/ListItemTitle.js +25 -0
- package/esm/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/esm/core/List/index.js +7 -0
- package/esm/core/List/index.mdx +40 -0
- package/esm/core/List/index.spec.js +9 -0
- package/esm/core/NavList/NavList.js +78 -0
- package/esm/core/NavList/NavListContext.js +80 -0
- package/esm/core/NavList/NavListItem.js +141 -0
- package/esm/core/NavList/NavListItemBase.js +133 -0
- package/esm/core/NavList/NavListSubMenu.js +27 -0
- package/esm/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/esm/core/NavList/index.js +5 -0
- package/esm/core/NavList/index.mdx +185 -0
- package/esm/core/NavList/index.spec.js +9 -0
- package/esm/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/esm/core/NotificationBanner/index.js +35 -0
- package/esm/core/NotificationBanner/index.mdx +77 -0
- package/esm/core/NotificationBanner/index.spec.js +20 -0
- package/esm/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/esm/core/ServiceBadge/index.js +20 -0
- package/esm/core/ServiceBadge/index.mdx +42 -0
- package/esm/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/esm/core/SummaryList/index.js +7 -0
- package/esm/core/SummaryList/index.mdx +82 -0
- package/esm/core/SummaryList/index.spec.js +9 -0
- package/esm/core/Table/index.js +7 -0
- package/esm/core/Tabs/index.js +37 -0
- package/esm/core/Tabs/index.mdx +54 -0
- package/esm/core/VisuallyHidden/index.js +1 -0
- package/esm/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/esm/core/WarningText/index.js +3 -0
- package/esm/core/WarningText/index.mdx +46 -0
- package/esm/core/WarningText/index.spec.js +9 -0
- package/esm/core/index.js +17 -0
- package/esm/custom.d.js +0 -0
- package/esm/form/inputs/Input/index.mdx +10 -0
- package/esm/govgr/Footer/Copyright.js +37 -0
- package/esm/govgr/Footer/HellenicRepublicLogo.js +3 -0
- package/esm/govgr/Footer/LicenseCCSA.js +18 -0
- package/esm/govgr/Footer/index.js +21 -0
- package/esm/govgr/Footer/index.mdx +97 -0
- package/esm/govgr/Footer/logo.js +1 -0
- package/esm/govgr/Footer/logos/logo-el.js +1 -0
- package/esm/govgr/Footer/logos/logo-en.js +1 -0
- package/esm/govgr/Logo/govgr-logo.svg +1 -0
- package/esm/govgr/Logo/index.js +3 -0
- package/esm/govgr/Logo/logo.js +1 -0
- package/esm/govgr/index.js +4 -0
- package/esm/hooks/useDebounce.js +41 -0
- package/esm/hooks/useLatest.js +12 -0
- package/esm/hooks/useOutdatedBrowserCheck.js +46 -0
- package/esm/hooks/useSearch.js +25 -0
- package/esm/hooks/useTogglableSections.js +96 -0
- package/esm/index.js +10 -0
- package/esm/layouts/Basic/Bottom/index.js +3 -0
- package/esm/layouts/Basic/Bottom/index.mdx +37 -0
- package/esm/layouts/Basic/Content/index.js +18 -0
- package/esm/layouts/Basic/Content/index.mdx +64 -0
- package/esm/layouts/Basic/Main/index.js +3 -0
- package/esm/layouts/Basic/Main/index.mdx +64 -0
- package/esm/layouts/Basic/Masthead/index.js +4 -0
- package/esm/layouts/Basic/Masthead/index.mdx +74 -0
- package/esm/layouts/Basic/Side/index.js +7 -0
- package/esm/layouts/Basic/Side/index.mdx +71 -0
- package/esm/layouts/Basic/Top/index.js +11 -0
- package/esm/layouts/Basic/Top/index.mdx +74 -0
- package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/esm/layouts/Basic/index.js +8 -0
- package/esm/layouts/Basic/index.mdx +62 -0
- package/esm/layouts/Basic/index.spec.js +10 -0
- package/esm/layouts/Grid/index.js +1 -0
- package/esm/layouts/index.js +2 -0
- package/esm/locales/el.js +55 -0
- package/esm/locales/en.js +55 -0
- package/esm/router/index.js +15 -0
- package/esm/router/index.mdx +40 -0
- package/esm/test-utils/delay.js +31 -0
- package/esm/test-utils/mountWithTheme.js +30 -0
- package/esm/themes/govgr.js +79 -0
- package/esm/themes/grnet.js +110 -0
- package/esm/themes/index.js +2 -0
- package/esm/typography/Caption.js +7 -0
- package/esm/typography/NormalText.js +3 -0
- package/esm/typography/Paragraph.js +2 -0
- package/esm/typography/Title.js +48 -0
- package/esm/typography/index.js +8 -0
- package/esm/typography/index.mdx +32 -0
- package/esm/utils/evaluateBrowserVersion.js +201 -0
- package/esm/utils/withDeprecation.js +103 -0
- package/form/inputs/Input/index.mdx +10 -0
- package/govgr/Footer/Copyright.d.ts +8 -0
- package/govgr/Footer/Copyright.js +52 -0
- package/{src/govgr/Footer/HellenicRepublicLogo.tsx → govgr/Footer/HellenicRepublicLogo.d.ts} +0 -1
- package/govgr/Footer/HellenicRepublicLogo.js +19 -0
- package/govgr/Footer/LicenseCCSA.d.ts +3 -0
- package/govgr/Footer/LicenseCCSA.js +33 -0
- package/govgr/Footer/index.d.ts +13 -0
- package/govgr/Footer/index.js +39 -0
- package/govgr/Footer/index.mdx +97 -0
- package/govgr/Footer/logo.d.ts +2 -0
- package/govgr/Footer/logo.js +8 -0
- package/govgr/Footer/logos/logo-el.d.ts +2 -0
- package/govgr/Footer/logos/logo-el.js +8 -0
- package/govgr/Footer/logos/logo-en.d.ts +2 -0
- package/govgr/Footer/logos/logo-en.js +8 -0
- package/govgr/Logo/govgr-logo.svg +1 -0
- package/{src/govgr/Logo/index.tsx → govgr/Logo/index.d.ts} +0 -2
- package/govgr/Logo/index.js +19 -0
- package/govgr/Logo/logo.d.ts +2 -0
- package/govgr/Logo/logo.js +8 -0
- package/{src/govgr/index.ts → govgr/index.d.ts} +0 -0
- package/govgr/index.js +57 -0
- package/hooks/useDebounce.d.ts +3 -0
- package/hooks/useDebounce.js +63 -0
- package/hooks/useLatest.d.ts +3 -0
- package/hooks/useLatest.js +26 -0
- package/hooks/useOutdatedBrowserCheck.d.ts +2 -0
- package/hooks/useOutdatedBrowserCheck.js +60 -0
- package/hooks/useSearch.d.ts +4 -0
- package/hooks/useSearch.js +40 -0
- package/hooks/useTogglableSections.d.ts +18 -0
- package/hooks/useTogglableSections.js +108 -0
- package/{src/index.ts → index.d.ts} +0 -0
- package/index.js +70 -0
- package/{src/layouts/Basic/Bottom/index.tsx → layouts/Basic/Bottom/index.d.ts} +0 -1
- package/layouts/Basic/Bottom/index.js +19 -0
- package/layouts/Basic/Bottom/index.mdx +37 -0
- package/layouts/Basic/Content/index.d.ts +5 -0
- package/layouts/Basic/Content/index.js +31 -0
- package/layouts/Basic/Content/index.mdx +64 -0
- package/{src/layouts/Basic/Main/index.tsx → layouts/Basic/Main/index.d.ts} +0 -1
- package/layouts/Basic/Main/index.js +19 -0
- package/layouts/Basic/Main/index.mdx +64 -0
- package/{src/layouts/Basic/Masthead/index.tsx → layouts/Basic/Masthead/index.d.ts} +0 -2
- package/layouts/Basic/Masthead/index.js +27 -0
- package/layouts/Basic/Masthead/index.mdx +74 -0
- package/layouts/Basic/Side/index.d.ts +3 -0
- package/layouts/Basic/Side/index.js +20 -0
- package/layouts/Basic/Side/index.mdx +71 -0
- package/layouts/Basic/Top/index.d.ts +3 -0
- package/layouts/Basic/Top/index.js +24 -0
- package/layouts/Basic/Top/index.mdx +74 -0
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/{src/layouts/Basic/index.tsx → layouts/Basic/index.d.ts} +0 -2
- package/layouts/Basic/index.js +97 -0
- package/layouts/Basic/index.mdx +62 -0
- package/layouts/Basic/index.spec.d.ts +1 -0
- package/layouts/Basic/index.spec.js +20 -0
- package/{src/layouts/Grid/index.tsx → layouts/Grid/index.d.ts} +0 -0
- package/layouts/Grid/index.js +18 -0
- package/{src/layouts/index.ts → layouts/index.d.ts} +0 -0
- package/layouts/index.js +34 -0
- package/locales/el.d.ts +56 -0
- package/locales/el.js +62 -0
- package/locales/en.d.ts +56 -0
- package/locales/en.js +62 -0
- package/package.json +8 -31
- package/router/index.d.ts +9 -0
- package/router/index.js +37 -0
- package/router/index.mdx +40 -0
- package/test-utils/delay.d.ts +2 -0
- package/test-utils/delay.js +45 -0
- package/test-utils/mountWithTheme.d.ts +3 -0
- package/test-utils/mountWithTheme.js +43 -0
- package/themes/govgr.d.ts +3 -0
- package/themes/govgr.js +89 -0
- package/themes/grnet.d.ts +2 -0
- package/themes/grnet.js +128 -0
- package/themes/index.d.ts +32 -0
- package/themes/index.js +19 -0
- package/typography/Caption.d.ts +7 -0
- package/typography/Caption.js +20 -0
- package/typography/NormalText.d.ts +5 -0
- package/typography/NormalText.js +19 -0
- package/typography/Paragraph.d.ts +6 -0
- package/typography/Paragraph.js +13 -0
- package/typography/Title.d.ts +9 -0
- package/typography/Title.js +63 -0
- package/{src/typography/index.ts → typography/index.d.ts} +0 -0
- package/typography/index.js +97 -0
- package/typography/index.mdx +32 -0
- package/utils/evaluateBrowserVersion.d.ts +15 -0
- package/utils/evaluateBrowserVersion.js +216 -0
- package/utils/withDeprecation.d.ts +16 -0
- package/utils/withDeprecation.js +116 -0
- package/.eslintrc.js +0 -4
- package/.prettierrc.js +0 -3
- package/.rush/temp/package-deps_build.json +0 -176
- package/.rush/temp/shrinkwrap-deps.json +0 -278
- package/CHANGELOG.json +0 -796
- package/docs/components.mdx +0 -1
- package/docs/create-a-new-service.mdx +0 -93
- package/docs/create-common-page-layout.mdx +0 -205
- package/docs/create-static-page.mdx +0 -179
- package/docs/edit-start-page.mdx +0 -143
- package/docs/index.mdx +0 -66
- package/docs/introduction.mdx +0 -34
- package/src/api/APIErrors.tsx +0 -44
- package/src/api/APIProvider.tsx +0 -27
- package/src/api/fetchAPI.ts +0 -45
- package/src/api/index.spec.tsx +0 -419
- package/src/api/useResource.tsx +0 -96
- package/src/api/useResourceAction.tsx +0 -80
- package/src/api/useResourceQuery.tsx +0 -177
- package/src/api/utils.tsx +0 -156
- package/src/app/App.tsx +0 -33
- package/src/app/Header/HeaderSection.tsx +0 -13
- package/src/app/Header/HeaderTitle.tsx +0 -24
- package/src/app/Header/index.spec.tsx +0 -32
- package/src/app/NotFound/index.tsx +0 -21
- package/src/app/OutdatedBrowserBanner.tsx +0 -37
- package/src/app/PageTitle.tsx +0 -70
- package/src/app/QrCodeScanner/index.spec.tsx +0 -19
- package/src/app/QrCodeScanner/index.tsx +0 -90
- package/src/app/i18n.tsx +0 -44
- package/src/core/Accordion/index.spec.tsx +0 -30
- package/src/core/Accordion/index.tsx +0 -86
- package/src/core/Blockquote/index.spec.tsx +0 -10
- package/src/core/Button/ButtonLink.tsx +0 -20
- package/src/core/Button/CallToAction.tsx +0 -31
- package/src/core/Button/Icon.tsx +0 -9
- package/src/core/Button/index.spec.tsx +0 -8
- package/src/core/Button/index.tsx +0 -46
- package/src/core/Details/index.spec.tsx +0 -38
- package/src/core/Divider/index.tsx +0 -13
- package/src/core/ErrorSummary/index.spec.tsx +0 -10
- package/src/core/Link/index.spec.tsx +0 -22
- package/src/core/Link/index.tsx +0 -41
- package/src/core/List/ListItemContent.tsx +0 -32
- package/src/core/List/ListItemIcon.tsx +0 -31
- package/src/core/List/ListItemText.tsx +0 -23
- package/src/core/List/ListItemTitle.tsx +0 -37
- package/src/core/List/index.spec.tsx +0 -10
- package/src/core/NavList/NavList.tsx +0 -103
- package/src/core/NavList/NavListContext.tsx +0 -85
- package/src/core/NavList/NavListItem.tsx +0 -143
- package/src/core/NavList/NavListItemBase.tsx +0 -146
- package/src/core/NavList/NavListSubMenu.tsx +0 -33
- package/src/core/NavList/index.spec.tsx +0 -10
- package/src/core/NotificationBanner/index.spec.tsx +0 -27
- package/src/core/NotificationBanner/index.tsx +0 -52
- package/src/core/ServiceBadge/index.tsx +0 -35
- package/src/core/SummaryList/index.spec.tsx +0 -28
- package/src/core/Tabs/index.tsx +0 -36
- package/src/core/WarningText/index.spec.tsx +0 -10
- package/src/custom.d.ts +0 -8
- package/src/govgr/Footer/Copyright.tsx +0 -64
- package/src/govgr/Footer/LicenseCCSA.tsx +0 -24
- package/src/govgr/Footer/index.tsx +0 -49
- package/src/hooks/useDebounce.ts +0 -50
- package/src/hooks/useLatest.ts +0 -12
- package/src/hooks/useSearch.ts +0 -47
- package/src/hooks/useTogglableSections.tsx +0 -102
- package/src/layouts/Basic/Content/index.tsx +0 -24
- package/src/layouts/Basic/index.spec.tsx +0 -24
- package/src/router/index.tsx +0 -28
- package/src/test-utils/delay.ts +0 -9
- package/src/test-utils/mountWithTheme.tsx +0 -33
- package/src/themes/grnet.js +0 -109
- package/src/themes/index.tsx +0 -38
- package/src/typography/Caption.tsx +0 -15
- package/src/typography/NormalText.tsx +0 -7
- package/src/typography/Paragraph.tsx +0 -9
- package/src/typography/Title.tsx +0 -51
- package/src/utils/evaluateBrowserVersion.ts +0 -346
- package/src/utils/withDeprecation.tsx +0 -97
- package/tsconfig.json +0 -18
- package/tsconfig.production.json +0 -27
- package/ui.build.log +0 -17
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Bottom
|
|
3
|
+
parent: docs/ui/components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Bottom
|
|
7
|
+
|
|
8
|
+
import { Bottom } from '@digigov/ui/layouts/Basic';
|
|
9
|
+
import PropsDoc from '@docs-components/propsDoc';
|
|
10
|
+
|
|
11
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
12
|
+
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
13
|
+
|
|
14
|
+
function Bottom{
|
|
15
|
+
return (
|
|
16
|
+
<Bottom>
|
|
17
|
+
<GovGRFooter />
|
|
18
|
+
</Bottom>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
export Bottom
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<br />
|
|
26
|
+
|
|
27
|
+
## How it works
|
|
28
|
+
|
|
29
|
+
Use the Bottom component in order to wrap the Footer's components.
|
|
30
|
+
|
|
31
|
+
<br />
|
|
32
|
+
|
|
33
|
+
## API
|
|
34
|
+
|
|
35
|
+
### Properties
|
|
36
|
+
|
|
37
|
+
<PropsDoc data={Bottom.__doc__} />
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CoreContainer from '@digigov/react-core/Container';
|
|
2
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
|
+
export var Content = withDeprecation(CoreContainer, {
|
|
4
|
+
name: 'Content',
|
|
5
|
+
rename: 'Container',
|
|
6
|
+
props: {
|
|
7
|
+
maxWidth: {
|
|
8
|
+
error: true
|
|
9
|
+
},
|
|
10
|
+
flex: {
|
|
11
|
+
error: true
|
|
12
|
+
},
|
|
13
|
+
dense: {
|
|
14
|
+
error: true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export default Content;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Content
|
|
3
|
+
parent: docs/ui/components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Content
|
|
7
|
+
|
|
8
|
+
import { Content } from '@digigov/ui/layouts/Basic';
|
|
9
|
+
import PropsDoc from '@docs-components/propsDoc';
|
|
10
|
+
import StylesDoc from '@docs-components/stylesDoc';
|
|
11
|
+
|
|
12
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
13
|
+
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
14
|
+
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
15
|
+
import Grid from '@digigov/react-core/Grid';
|
|
16
|
+
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
17
|
+
|
|
18
|
+
function Side{
|
|
19
|
+
return (
|
|
20
|
+
<BasicLayout>
|
|
21
|
+
<Top>
|
|
22
|
+
<Header>
|
|
23
|
+
<GovGRLogo />
|
|
24
|
+
<HeaderTitle>
|
|
25
|
+
<ServiceBadge />
|
|
26
|
+
</HeaderTitle>
|
|
27
|
+
</Header>
|
|
28
|
+
</Top>
|
|
29
|
+
<Content>
|
|
30
|
+
<Main>
|
|
31
|
+
<Title size="lg">Main</Title>
|
|
32
|
+
<Paragraph>Main content</Paragraph>
|
|
33
|
+
</Main>
|
|
34
|
+
<Side>
|
|
35
|
+
<Title size="lg">Side</Title>
|
|
36
|
+
<Paragraph>Side content</Paragraph>
|
|
37
|
+
</Side>
|
|
38
|
+
</Content>
|
|
39
|
+
</BasicLayout>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
export Side
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
<br />
|
|
49
|
+
|
|
50
|
+
## How it works
|
|
51
|
+
|
|
52
|
+
The Content component is used as a wrapper for the Main and Side components.
|
|
53
|
+
|
|
54
|
+
## API
|
|
55
|
+
|
|
56
|
+
### Properties
|
|
57
|
+
|
|
58
|
+
<PropsDoc data={Content.__doc__} />
|
|
59
|
+
|
|
60
|
+
<br />
|
|
61
|
+
|
|
62
|
+
### Styles
|
|
63
|
+
|
|
64
|
+
<StylesDoc data={Content.__doc__} />
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Main
|
|
3
|
+
parent: docs/ui/components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Main
|
|
7
|
+
|
|
8
|
+
import { Main } from '@digigov/ui/layouts/Basic';
|
|
9
|
+
import PropsDoc from '@docs-components/propsDoc';
|
|
10
|
+
import StylesDoc from '@docs-components/stylesDoc';
|
|
11
|
+
|
|
12
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
13
|
+
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
14
|
+
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
15
|
+
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
16
|
+
|
|
17
|
+
function Main{
|
|
18
|
+
return (
|
|
19
|
+
<>
|
|
20
|
+
<Top>
|
|
21
|
+
<Header>
|
|
22
|
+
<GovGRLogo />
|
|
23
|
+
<HeaderTitle>
|
|
24
|
+
<ServiceBadge />
|
|
25
|
+
</HeaderTitle>
|
|
26
|
+
</Header>
|
|
27
|
+
</Top>
|
|
28
|
+
<Content>
|
|
29
|
+
<Main>
|
|
30
|
+
<Title size="xl">Main content</Title>
|
|
31
|
+
<Paragraph>
|
|
32
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
|
|
33
|
+
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
34
|
+
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
35
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
36
|
+
Excepteur sint occaecat cupidatat non proident,
|
|
37
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
38
|
+
</Paragraph>
|
|
39
|
+
</Main>
|
|
40
|
+
</Content>
|
|
41
|
+
</>
|
|
42
|
+
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
export Main
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
<br />
|
|
50
|
+
|
|
51
|
+
## How it works
|
|
52
|
+
|
|
53
|
+
The Main component is used to include tha main information of the page,
|
|
54
|
+
spanning two-thirds of the page width.
|
|
55
|
+
|
|
56
|
+
## API
|
|
57
|
+
|
|
58
|
+
### Properties
|
|
59
|
+
|
|
60
|
+
<PropsDoc data={Main.__doc__} />
|
|
61
|
+
|
|
62
|
+
### Styles
|
|
63
|
+
|
|
64
|
+
<StylesDoc data={Main.__doc__} />
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Masthead
|
|
3
|
+
parent: docs/ui/components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Masthead
|
|
7
|
+
|
|
8
|
+
import { Masthead } from '@digigov/ui/layouts/Basic';
|
|
9
|
+
import PropsDoc from '@docs-components/propsDoc';
|
|
10
|
+
import StylesDoc from '@docs-components/stylesDoc';
|
|
11
|
+
|
|
12
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
13
|
+
import PropsDoc from '@docs-components/propsDoc';
|
|
14
|
+
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
15
|
+
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
16
|
+
import Grid from '@digigov/react-core/Grid';
|
|
17
|
+
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
18
|
+
|
|
19
|
+
function Masthead{
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<BasicLayout>
|
|
23
|
+
<Top>
|
|
24
|
+
<Header>
|
|
25
|
+
<GovGRLogo />
|
|
26
|
+
<HeaderTitle>
|
|
27
|
+
<ServiceBadge />
|
|
28
|
+
</HeaderTitle>
|
|
29
|
+
</Header>
|
|
30
|
+
</Top>
|
|
31
|
+
<Masthead>
|
|
32
|
+
<Caption>Powered by GRNET</Caption>
|
|
33
|
+
<Title size="xl">
|
|
34
|
+
Digigov creates tools that help teams build GOV.GR services
|
|
35
|
+
</Title>
|
|
36
|
+
<Paragraph>
|
|
37
|
+
Here you can find everything you'd need to get started
|
|
38
|
+
building your shiny new service. We build and maintain libraries
|
|
39
|
+
SDKs that they help you create dynamic and responsive user
|
|
40
|
+
interface for a variety of devices.
|
|
41
|
+
</Paragraph>
|
|
42
|
+
</Masthead>
|
|
43
|
+
<Content>
|
|
44
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
|
|
45
|
+
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
46
|
+
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
47
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
48
|
+
Excepteur sint occaecat cupidatat non proident,
|
|
49
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
50
|
+
</Content>
|
|
51
|
+
</BasicLayout>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
export Masthead
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
<br />
|
|
59
|
+
|
|
60
|
+
## How it works
|
|
61
|
+
|
|
62
|
+
The Masthead component is a set of features or layout that marks the page and delivers identifying information to web users.
|
|
63
|
+
|
|
64
|
+
## API
|
|
65
|
+
|
|
66
|
+
### Properties
|
|
67
|
+
|
|
68
|
+
<PropsDoc data={Masthead.__doc__} />
|
|
69
|
+
|
|
70
|
+
<br />
|
|
71
|
+
|
|
72
|
+
### Styles
|
|
73
|
+
|
|
74
|
+
<StylesDoc data={Masthead.__doc__} />
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Side
|
|
3
|
+
parent: docs/ui/components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Side
|
|
7
|
+
|
|
8
|
+
import { Side } from '@digigov/ui/layouts/Basic';
|
|
9
|
+
import PropsDoc from '@docs-components/propsDoc';
|
|
10
|
+
import StylesDoc from '@docs-components/stylesDoc';
|
|
11
|
+
|
|
12
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
13
|
+
|
|
14
|
+
function Side{
|
|
15
|
+
return (
|
|
16
|
+
<BasicLayout>
|
|
17
|
+
<Top>
|
|
18
|
+
<Header>
|
|
19
|
+
<GovGRLogo />
|
|
20
|
+
<HeaderTitle>
|
|
21
|
+
<ServiceBadge />
|
|
22
|
+
</HeaderTitle>
|
|
23
|
+
</Header>
|
|
24
|
+
</Top>
|
|
25
|
+
<Content>
|
|
26
|
+
<Main>
|
|
27
|
+
<Title size="xl">Main</Title>
|
|
28
|
+
<Paragraph>
|
|
29
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
|
|
30
|
+
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
31
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
32
|
+
Excepteur sint occaecat cupidatat non proident,
|
|
33
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
34
|
+
</Paragraph>
|
|
35
|
+
</Main>
|
|
36
|
+
<Side>
|
|
37
|
+
<Title size="md">Side content</Title>
|
|
38
|
+
<Paragraph>
|
|
39
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
|
|
40
|
+
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
41
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
42
|
+
Excepteur sint occaecat cupidatat non proident,
|
|
43
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
44
|
+
</Paragraph>
|
|
45
|
+
</Side>
|
|
46
|
+
</Content>
|
|
47
|
+
</BasicLayout>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
export Side
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
<br />
|
|
55
|
+
|
|
56
|
+
## How it works
|
|
57
|
+
|
|
58
|
+
The Side component covers the right one-third of the page width.
|
|
59
|
+
Note that the Side component is optional, so there could be occasions that Side is empty.
|
|
60
|
+
|
|
61
|
+
## API
|
|
62
|
+
|
|
63
|
+
### Properties
|
|
64
|
+
|
|
65
|
+
<PropsDoc data={Side.__doc__} />
|
|
66
|
+
|
|
67
|
+
<br />
|
|
68
|
+
|
|
69
|
+
### Styles
|
|
70
|
+
|
|
71
|
+
<StylesDoc data={Side.__doc__} />
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Top
|
|
3
|
+
parent: docs/ui/components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Top
|
|
7
|
+
|
|
8
|
+
import { Top } from '@digigov/ui/layouts/Basic';
|
|
9
|
+
import PropsDoc from '@docs-components/propsDoc';
|
|
10
|
+
import StylesDoc from '@docs-components/stylesDoc';
|
|
11
|
+
|
|
12
|
+
### Example without bottom margin
|
|
13
|
+
|
|
14
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
15
|
+
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
16
|
+
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
function Top{
|
|
20
|
+
return (
|
|
21
|
+
<Top dense>
|
|
22
|
+
<Header>
|
|
23
|
+
<GovGRLogo />
|
|
24
|
+
<HeaderTitle>
|
|
25
|
+
<ServiceBadge />
|
|
26
|
+
</HeaderTitle>
|
|
27
|
+
</Header>
|
|
28
|
+
</Top>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
export Top
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Example with bottom margin
|
|
36
|
+
|
|
37
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
38
|
+
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
39
|
+
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
function Top{
|
|
43
|
+
return (
|
|
44
|
+
<Top>
|
|
45
|
+
<Header>
|
|
46
|
+
<GovGRLogo />
|
|
47
|
+
<HeaderTitle>
|
|
48
|
+
<ServiceBadge />
|
|
49
|
+
</HeaderTitle>
|
|
50
|
+
</Header>
|
|
51
|
+
</Top>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
export Top
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
<br />
|
|
59
|
+
|
|
60
|
+
## How it works
|
|
61
|
+
|
|
62
|
+
The Top component is used to group the Header components.
|
|
63
|
+
|
|
64
|
+
## API
|
|
65
|
+
|
|
66
|
+
### Properties
|
|
67
|
+
|
|
68
|
+
<PropsDoc data={Top.__doc__} />
|
|
69
|
+
|
|
70
|
+
<br />
|
|
71
|
+
|
|
72
|
+
### Styles
|
|
73
|
+
|
|
74
|
+
<StylesDoc data={Top.__doc__} />
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the BasicLayout with Top, Content, Bottom, Main and Side children 1`] = `
|
|
4
|
+
<ForwardRef(Layout)>
|
|
5
|
+
<div
|
|
6
|
+
className="govgr-layout-wrapper__full-height govgr-layout-wrapper"
|
|
7
|
+
>
|
|
8
|
+
<withDeprecationComponent>
|
|
9
|
+
<ForwardRef(Top)>
|
|
10
|
+
<div
|
|
11
|
+
className="govgr-top"
|
|
12
|
+
>
|
|
13
|
+
Header content
|
|
14
|
+
</div>
|
|
15
|
+
</ForwardRef(Top)>
|
|
16
|
+
</withDeprecationComponent>
|
|
17
|
+
<withDeprecationComponent>
|
|
18
|
+
<ForwardRef(Container)>
|
|
19
|
+
<div
|
|
20
|
+
className="govgr-width-container"
|
|
21
|
+
>
|
|
22
|
+
<div
|
|
23
|
+
className="govgr-main-wrapper"
|
|
24
|
+
>
|
|
25
|
+
<ForwardRef(Main)>
|
|
26
|
+
<main
|
|
27
|
+
className="govgr-grid-column-two-thirds"
|
|
28
|
+
>
|
|
29
|
+
Main content
|
|
30
|
+
</main>
|
|
31
|
+
</ForwardRef(Main)>
|
|
32
|
+
<withDeprecationComponent>
|
|
33
|
+
<ForwardRef(Aside)>
|
|
34
|
+
<aside
|
|
35
|
+
className="govgr-grid-column-one-third"
|
|
36
|
+
>
|
|
37
|
+
Side content
|
|
38
|
+
</aside>
|
|
39
|
+
</ForwardRef(Aside)>
|
|
40
|
+
</withDeprecationComponent>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</ForwardRef(Container)>
|
|
44
|
+
</withDeprecationComponent>
|
|
45
|
+
<ForwardRef(Bottom)>
|
|
46
|
+
<div
|
|
47
|
+
className="govgr-bottom"
|
|
48
|
+
>
|
|
49
|
+
Bottom content
|
|
50
|
+
</div>
|
|
51
|
+
</ForwardRef(Bottom)>
|
|
52
|
+
</div>
|
|
53
|
+
</ForwardRef(Layout)>
|
|
54
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Layout from '@digigov/react-core/Layout';
|
|
2
|
+
export * from '@digigov/ui/layouts/Basic/Top';
|
|
3
|
+
export * from '@digigov/ui/layouts/Basic/Side';
|
|
4
|
+
export * from '@digigov/ui/layouts/Basic/Main';
|
|
5
|
+
export * from '@digigov/ui/layouts/Basic/Content';
|
|
6
|
+
export * from '@digigov/ui/layouts/Basic/Bottom';
|
|
7
|
+
export * from '@digigov/ui/layouts/Basic/Masthead';
|
|
8
|
+
export default Layout;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Basic Layout
|
|
3
|
+
parent: docs/ui/components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BasicLayout
|
|
7
|
+
|
|
8
|
+
import BasicLayout, {
|
|
9
|
+
Top,
|
|
10
|
+
Side,
|
|
11
|
+
Main,
|
|
12
|
+
Content,
|
|
13
|
+
Bottom,
|
|
14
|
+
} from '@digigov/ui/layouts/Basic';
|
|
15
|
+
import StylesDoc from '@docs-components/stylesDoc';
|
|
16
|
+
|
|
17
|
+
Use the BasicLayout component to create a basic page layout.
|
|
18
|
+
|
|
19
|
+
```jsx live path=layouts/Basic/index.tsx
|
|
20
|
+
import BasicLayout, { Top, Side, Main , Content, Bottom } from '@digigov/ui/layouts/Basic';
|
|
21
|
+
function CustomLayout (props){
|
|
22
|
+
return (
|
|
23
|
+
<BasicLayout>
|
|
24
|
+
<Top>Header content</Top>
|
|
25
|
+
<Content>
|
|
26
|
+
<Main>Main content</Main>
|
|
27
|
+
<Side>Side content</Side>
|
|
28
|
+
</Content>
|
|
29
|
+
<Bottom>Bottom content</Bottom>
|
|
30
|
+
</BasicLayout>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
export CustomLayout
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
<br />
|
|
38
|
+
|
|
39
|
+
## How it works
|
|
40
|
+
|
|
41
|
+
The BasicLayout component is used in combination with the Top, Side, Main,
|
|
42
|
+
Content and Bottom components.
|
|
43
|
+
|
|
44
|
+
## API
|
|
45
|
+
|
|
46
|
+
### Properties
|
|
47
|
+
|
|
48
|
+
<br />
|
|
49
|
+
|
|
50
|
+
### Styles
|
|
51
|
+
|
|
52
|
+
<StylesDoc data={BasicLayout.__doc__} />
|
|
53
|
+
<br />
|
|
54
|
+
<StylesDoc data={Top.__doc__} />
|
|
55
|
+
<br />
|
|
56
|
+
<StylesDoc data={Content.__doc__} />
|
|
57
|
+
<br />
|
|
58
|
+
<StylesDoc data={Main.__doc__} />
|
|
59
|
+
<br />
|
|
60
|
+
<StylesDoc data={Side.__doc__} />
|
|
61
|
+
<br />
|
|
62
|
+
<StylesDoc data={Bottom.__doc__} />
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import BasicLayout, { Top, Side, Main, Content, Bottom } from '@digigov/ui/layouts/Basic';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(BasicLayout, null, /*#__PURE__*/React.createElement(Top, null, "Header content"), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(Main, null, "Main content"), /*#__PURE__*/React.createElement(Side, null, "Side content")), /*#__PURE__*/React.createElement(Bottom, null, "Bottom content"));
|
|
6
|
+
|
|
7
|
+
it('renders the BasicLayout with Top, Content, Bottom, Main and Side children ', function () {
|
|
8
|
+
var jsx = _ref;
|
|
9
|
+
expect(mount(jsx)).toMatchSnapshot();
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@digigov/react-core/Grid';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
form: {
|
|
3
|
+
label: {
|
|
4
|
+
day: 'Ημέρα',
|
|
5
|
+
month: 'Μήνας',
|
|
6
|
+
year: 'Έτος'
|
|
7
|
+
},
|
|
8
|
+
error: {
|
|
9
|
+
required: 'Το πεδίο είναι υποχρεωτικό.',
|
|
10
|
+
number: 'Συμπληρώστε έναν έγκυρο αριθμό',
|
|
11
|
+
positive_number: 'Συμπληρώστε έναν θετικό αριθμό',
|
|
12
|
+
string: 'Το πεδίο πρέπει να είναι string',
|
|
13
|
+
email: 'Συμπληρώστε μια έγκυρη ηλεκτρονική διεύθυνση (e-mail).',
|
|
14
|
+
afm: 'Ο Α.Φ.Μ που πληκτρολογήσατε είναι λανθασμένος.',
|
|
15
|
+
file_size: 'Το μέγεθος του αρχείου είναι μεγαλύτερο απο το επιτρεπόμενο.',
|
|
16
|
+
mobile_phone: 'Συμπληρώστε έναν έγκυρο αριθμό κινητού τηλεφώνου.',
|
|
17
|
+
uuid4: 'Ο κωδικός επιβεβαίωσης δεν είναι έγκυρος.',
|
|
18
|
+
date: {
|
|
19
|
+
invalid: 'Η ημερομηνία πρέπει να είναι έγκυρη.',
|
|
20
|
+
earlier_than: 'Συμπληρώστε μια ημερομηνία προγενέστερη της {{maxDate}}',
|
|
21
|
+
later_than: 'Συμπληρώστε μια ημερομηνία μεταγενέστερη της {{minDate}}'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
button: {
|
|
26
|
+
start: 'Ξεκινήστε εδώ',
|
|
27
|
+
login: 'Σύνδεση',
|
|
28
|
+
back: 'Πίσω',
|
|
29
|
+
"continue": 'Συνέχεια',
|
|
30
|
+
search_ref: 'Αναζητήστε',
|
|
31
|
+
scan: 'Σαρώστε QR Code',
|
|
32
|
+
save: 'Αποθήκευση',
|
|
33
|
+
logout: 'Εξοδος',
|
|
34
|
+
submit: 'Υποβολή',
|
|
35
|
+
"delete": 'Διαγραφή'
|
|
36
|
+
},
|
|
37
|
+
footer: {
|
|
38
|
+
created_by: 'Υλοποίηση από το',
|
|
39
|
+
grnet: 'ΕΔΥΤΕ',
|
|
40
|
+
mindigital: 'Υπουργείο Ψηφιακής Διακυβέρνησης',
|
|
41
|
+
using: 'με χρήση',
|
|
42
|
+
open_source: 'Ανοιχτού Λογισμικού',
|
|
43
|
+
creative_commons: 'Άδεια χρήσης περιεχομένου'
|
|
44
|
+
},
|
|
45
|
+
notfound: {
|
|
46
|
+
page_not_found: 'Η σελίδα δεν βρέθηκε',
|
|
47
|
+
wrong_key_address: 'Εάν έχετε πληκτρολογήσει τη διεύθυνση της σελίδας, ελέγξτε ότι είναι σωστή.',
|
|
48
|
+
wrong_cp_address: 'Εάν έχετε επικολλήσει τη διεύθυνση της σελίδας, ελέγξτε ότι έχετε αντιγράψει ολόκληρη τη διεύθυνση.',
|
|
49
|
+
service_contact: 'Εάν η διεύθυνση της σελίδας είναι σωστή ή έχετε επιλέξει κάποιον σύνδεσμο ή κουμπί, επικοινωνήστε με τη γραμμή εξυπηρέτησης σε περίπτωση που χρειαστείτε βοήθεια.'
|
|
50
|
+
},
|
|
51
|
+
outdated: {
|
|
52
|
+
mobile: 'Η ιστοσελίδα ενδέχεται να μην λειτουργεί σωστά καθώς ο browser σας είτε δεν υποστηρίζεται είτε είναι μη επικαιροποιημένος. Παρακαλούμε επικαιροποιήστε τον browser σας.',
|
|
53
|
+
web: 'Η ιστοσελίδα ενδέχεται να μην λειτουργεί σωστά καθώς ο browser σας είναι μη επικαιροποιημένος. Για να επικαιροποιήσετε τον browser σας επισκεφθείτε την ιστοσελίδα: '
|
|
54
|
+
}
|
|
55
|
+
};
|