@digigov/ui 0.11.0 → 0.12.2
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/.eslintrc.js +4 -0
- package/.prettierrc.js +3 -0
- package/.rush/temp/package-deps_build.json +176 -0
- package/.rush/temp/shrinkwrap-deps.json +278 -0
- package/CHANGELOG.json +796 -0
- package/CHANGELOG.md +22 -1
- package/docs/components.mdx +1 -0
- package/docs/create-a-new-service.mdx +93 -0
- package/docs/create-common-page-layout.mdx +205 -0
- package/docs/create-static-page.mdx +179 -0
- package/docs/edit-start-page.mdx +143 -0
- package/docs/index.mdx +66 -0
- package/docs/introduction.mdx +34 -0
- package/package.json +31 -8
- package/src/api/APIErrors.tsx +44 -0
- package/src/api/APIProvider.tsx +27 -0
- package/src/api/fetchAPI.ts +45 -0
- package/src/api/index.spec.tsx +419 -0
- package/{esm/api/index.js → src/api/index.tsx} +6 -3
- package/{api → src/api}/introduction.md +0 -0
- package/src/api/useResource.tsx +96 -0
- package/src/api/useResourceAction.tsx +80 -0
- package/src/api/useResourceQuery.tsx +177 -0
- package/src/api/utils.tsx +156 -0
- package/src/app/App.tsx +33 -0
- package/{app/Confirmation/index.d.ts → src/app/Confirmation/index.tsx} +0 -0
- package/{app/Footer/index.d.ts → src/app/Footer/index.tsx} +0 -0
- package/{es/app/Header/HeaderLogo.js → src/app/Header/HeaderLogo.tsx} +9 -7
- package/src/app/Header/HeaderSection.tsx +13 -0
- package/src/app/Header/HeaderTitle.tsx +24 -0
- package/{app → src/app}/Header/__snapshots__/index.spec.tsx.snap +0 -0
- package/{app → src/app}/Header/index.mdx +0 -0
- package/src/app/Header/index.spec.tsx +32 -0
- package/{esm/app/Header/index.js → src/app/Header/index.tsx} +10 -4
- package/src/app/NotFound/index.tsx +21 -0
- package/src/app/OutdatedBrowserBanner.tsx +37 -0
- package/src/app/PageTitle.tsx +70 -0
- package/{app → src/app}/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -0
- package/{app → src/app}/QrCodeScanner/index.mdx +0 -0
- package/src/app/QrCodeScanner/index.spec.tsx +19 -0
- package/src/app/QrCodeScanner/index.tsx +90 -0
- package/src/app/i18n.tsx +44 -0
- package/{app/index.d.ts → src/app/index.ts} +0 -0
- package/{core → src/core}/Accordion/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/Accordion/index.mdx +0 -0
- package/src/core/Accordion/index.spec.tsx +30 -0
- package/src/core/Accordion/index.tsx +86 -0
- package/{core → src/core}/Blockquote/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/Blockquote/index.mdx +0 -0
- package/src/core/Blockquote/index.spec.tsx +10 -0
- package/{esm/core/Blockquote/index.js → src/core/Blockquote/index.tsx} +9 -7
- package/{core/Breadcrumbs/index.d.ts → src/core/Breadcrumbs/index.tsx} +0 -0
- package/{esm/core/Button/BackButton.js → src/core/Button/BackButton.tsx} +10 -8
- package/src/core/Button/ButtonLink.tsx +20 -0
- package/src/core/Button/CallToAction.tsx +31 -0
- package/src/core/Button/Icon.tsx +9 -0
- package/{core → src/core}/Button/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/Button/index.mdx +0 -0
- package/src/core/Button/index.spec.tsx +8 -0
- package/src/core/Button/index.tsx +46 -0
- package/{core/Card/index.d.ts → src/core/Card/index.tsx} +0 -0
- package/{core → src/core}/Details/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/Details/index.mdx +0 -0
- package/src/core/Details/index.spec.tsx +38 -0
- package/{core/Details/index.d.ts → src/core/Details/index.tsx} +2 -0
- package/src/core/Divider/index.tsx +13 -0
- package/{core → src/core}/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/ErrorSummary/index.mdx +0 -0
- package/src/core/ErrorSummary/index.spec.tsx +10 -0
- package/{core/ErrorSummary/index.d.ts → src/core/ErrorSummary/index.tsx} +1 -0
- package/{core/Hidden/index.d.ts → src/core/Hidden/index.tsx} +0 -0
- package/{core → src/core}/Link/__snapshots__/index.spec.tsx.snap +0 -0
- package/src/core/Link/index.spec.tsx +22 -0
- package/src/core/Link/index.tsx +41 -0
- package/{core/List/List.d.ts → src/core/List/List.tsx} +2 -0
- package/{core/List/ListItem.d.ts → src/core/List/ListItem.tsx} +2 -0
- package/src/core/List/ListItemContent.tsx +32 -0
- package/src/core/List/ListItemIcon.tsx +31 -0
- package/src/core/List/ListItemText.tsx +23 -0
- package/src/core/List/ListItemTitle.tsx +37 -0
- package/{core → src/core}/List/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/List/index.mdx +0 -0
- package/src/core/List/index.spec.tsx +10 -0
- package/{core/List/index.d.ts → src/core/List/index.tsx} +0 -0
- package/src/core/NavList/NavList.tsx +103 -0
- package/src/core/NavList/NavListContext.tsx +85 -0
- package/src/core/NavList/NavListItem.tsx +143 -0
- package/src/core/NavList/NavListItemBase.tsx +146 -0
- package/src/core/NavList/NavListSubMenu.tsx +33 -0
- package/{core → src/core}/NavList/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/NavList/index.mdx +0 -0
- package/src/core/NavList/index.spec.tsx +10 -0
- package/{core/NavList/index.d.ts → src/core/NavList/index.tsx} +0 -0
- package/{core → src/core}/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/NotificationBanner/index.mdx +0 -0
- package/src/core/NotificationBanner/index.spec.tsx +27 -0
- package/src/core/NotificationBanner/index.tsx +52 -0
- package/{core → src/core}/ServiceBadge/ServiceBadge.mdx +0 -0
- package/{core → src/core}/ServiceBadge/index.mdx +0 -0
- package/src/core/ServiceBadge/index.tsx +35 -0
- package/{core → src/core}/SummaryList/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/SummaryList/index.mdx +0 -0
- package/src/core/SummaryList/index.spec.tsx +28 -0
- package/{core/SummaryList/index.d.ts → src/core/SummaryList/index.tsx} +2 -0
- package/{core/Table/index.d.ts → src/core/Table/index.tsx} +0 -0
- package/{core → src/core}/Tabs/index.mdx +0 -0
- package/src/core/Tabs/index.tsx +36 -0
- package/{core/VisuallyHidden/index.d.ts → src/core/VisuallyHidden/index.tsx} +0 -0
- package/{core → src/core}/WarningText/__snapshots__/index.spec.tsx.snap +0 -0
- package/{core → src/core}/WarningText/index.mdx +0 -0
- package/src/core/WarningText/index.spec.tsx +10 -0
- package/{core/WarningText/index.d.ts → src/core/WarningText/index.tsx} +1 -0
- package/{core/index.d.ts → src/core/index.ts} +3 -0
- package/src/custom.d.ts +8 -0
- package/{es → src}/form/inputs/Input/index.mdx +0 -0
- package/src/govgr/Footer/Copyright.tsx +64 -0
- package/{govgr/Footer/HellenicRepublicLogo.d.ts → src/govgr/Footer/HellenicRepublicLogo.tsx} +1 -0
- package/src/govgr/Footer/LicenseCCSA.tsx +24 -0
- package/{es → src}/govgr/Footer/index.mdx +0 -0
- package/src/govgr/Footer/index.tsx +49 -0
- package/{esm/govgr/Footer/logo.js → src/govgr/Footer/logo.ts} +1 -1
- package/{esm/govgr/Footer/logos/logo-el.js → src/govgr/Footer/logos/logo-el.ts} +1 -1
- package/{esm/govgr/Footer/logos/logo-en.js → src/govgr/Footer/logos/logo-en.ts} +1 -1
- package/{es → src}/govgr/Logo/govgr-logo.svg +0 -0
- package/{govgr/Logo/index.d.ts → src/govgr/Logo/index.tsx} +2 -0
- package/{es/govgr/Logo/logo.js → src/govgr/Logo/logo.ts} +1 -1
- package/{govgr/index.d.ts → src/govgr/index.ts} +0 -0
- package/src/hooks/useDebounce.ts +50 -0
- package/src/hooks/useLatest.ts +12 -0
- package/{esm/hooks/useOutdatedBrowserCheck.js → src/hooks/useOutdatedBrowserCheck.ts} +16 -15
- package/src/hooks/useSearch.ts +47 -0
- package/src/hooks/useTogglableSections.tsx +102 -0
- package/{index.d.ts → src/index.ts} +0 -0
- package/{es → src}/layouts/Basic/Bottom/index.mdx +0 -0
- package/{layouts/Basic/Bottom/index.d.ts → src/layouts/Basic/Bottom/index.tsx} +1 -0
- package/{es → src}/layouts/Basic/Content/index.mdx +0 -0
- package/src/layouts/Basic/Content/index.tsx +24 -0
- package/{es → src}/layouts/Basic/Main/index.mdx +0 -0
- package/{layouts/Basic/Main/index.d.ts → src/layouts/Basic/Main/index.tsx} +1 -0
- package/{es → src}/layouts/Basic/Masthead/index.mdx +0 -0
- package/{layouts/Basic/Masthead/index.d.ts → src/layouts/Basic/Masthead/index.tsx} +2 -0
- package/{es → src}/layouts/Basic/Side/index.mdx +0 -0
- package/{esm/layouts/Basic/Side/index.js → src/layouts/Basic/Side/index.tsx} +5 -3
- package/{es → src}/layouts/Basic/Top/index.mdx +0 -0
- package/{es/layouts/Basic/Top/index.js → src/layouts/Basic/Top/index.tsx} +7 -5
- package/{es → src}/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -0
- package/{es → src}/layouts/Basic/index.mdx +0 -0
- package/src/layouts/Basic/index.spec.tsx +24 -0
- package/{layouts/Basic/index.d.ts → src/layouts/Basic/index.tsx} +2 -0
- package/{layouts/Grid/index.d.ts → src/layouts/Grid/index.tsx} +0 -0
- package/{layouts/index.d.ts → src/layouts/index.ts} +0 -0
- package/src/locales/el.ts +60 -0
- package/{esm/locales/en.js → src/locales/en.ts} +25 -11
- package/{es → src}/router/index.mdx +0 -0
- package/src/router/index.tsx +28 -0
- package/src/test-utils/delay.ts +9 -0
- package/src/test-utils/mountWithTheme.tsx +33 -0
- package/{es → src}/themes/govgr.js +33 -29
- package/src/themes/grnet.js +109 -0
- package/src/themes/index.tsx +38 -0
- package/src/typography/Caption.tsx +15 -0
- package/src/typography/NormalText.tsx +7 -0
- package/src/typography/Paragraph.tsx +9 -0
- package/src/typography/Title.tsx +51 -0
- package/{es → src}/typography/index.mdx +0 -0
- package/{typography/index.d.ts → src/typography/index.ts} +0 -0
- package/src/utils/evaluateBrowserVersion.ts +346 -0
- package/src/utils/withDeprecation.tsx +97 -0
- package/tsconfig.json +18 -0
- package/tsconfig.production.json +27 -0
- package/ui.build.log +17 -0
- package/LICENSE +0 -0
- package/api/APIErrors.d.ts +0 -22
- package/api/APIErrors.js +0 -117
- package/api/APIProvider.d.ts +0 -15
- package/api/APIProvider.js +0 -43
- package/api/fetchAPI.d.ts +0 -18
- package/api/fetchAPI.js +0 -64
- package/api/index.d.ts +0 -9
- package/api/index.js +0 -104
- package/api/index.spec.d.ts +0 -1
- package/api/index.spec.js +0 -584
- package/api/useResource.d.ts +0 -11
- package/api/useResource.js +0 -144
- package/api/useResourceAction.d.ts +0 -2
- package/api/useResourceAction.js +0 -157
- package/api/useResourceQuery.d.ts +0 -18
- package/api/useResourceQuery.js +0 -229
- package/api/utils.d.ts +0 -6
- package/api/utils.js +0 -250
- package/app/App.d.ts +0 -14
- package/app/App.js +0 -49
- package/app/Confirmation/index.js +0 -44
- package/app/Footer/index.js +0 -200
- package/app/Header/HeaderLogo.d.ts +0 -3
- package/app/Header/HeaderLogo.js +0 -30
- package/app/Header/HeaderSection.d.ts +0 -5
- package/app/Header/HeaderSection.js +0 -20
- package/app/Header/HeaderTitle.d.ts +0 -5
- package/app/Header/HeaderTitle.js +0 -30
- package/app/Header/index.d.ts +0 -11
- package/app/Header/index.js +0 -106
- package/app/Header/index.spec.d.ts +0 -1
- package/app/Header/index.spec.js +0 -45
- package/app/NotFound/index.d.ts +0 -3
- package/app/NotFound/index.js +0 -29
- package/app/OutdatedBrowserBanner.d.ts +0 -2
- package/app/OutdatedBrowserBanner.js +0 -41
- package/app/PageTitle.d.ts +0 -10
- package/app/PageTitle.js +0 -76
- package/app/QrCodeScanner/index.d.ts +0 -29
- package/app/QrCodeScanner/index.js +0 -85
- package/app/QrCodeScanner/index.spec.d.ts +0 -1
- package/app/QrCodeScanner/index.spec.js +0 -26
- package/app/i18n.d.ts +0 -10
- package/app/i18n.js +0 -57
- package/app/index.js +0 -70
- package/core/Accordion/index.d.ts +0 -21
- package/core/Accordion/index.js +0 -127
- package/core/Accordion/index.spec.d.ts +0 -1
- package/core/Accordion/index.spec.js +0 -19
- package/core/Blockquote/index.d.ts +0 -3
- package/core/Blockquote/index.js +0 -29
- package/core/Blockquote/index.spec.d.ts +0 -1
- package/core/Blockquote/index.spec.js +0 -21
- package/core/Breadcrumbs/index.js +0 -44
- package/core/Button/BackButton.d.ts +0 -3
- package/core/Button/BackButton.js +0 -34
- package/core/Button/ButtonLink.d.ts +0 -4
- package/core/Button/ButtonLink.js +0 -28
- package/core/Button/CallToAction.d.ts +0 -7
- package/core/Button/CallToAction.js +0 -41
- package/core/Button/Icon.d.ts +0 -2
- package/core/Button/Icon.js +0 -19
- package/core/Button/index.d.ts +0 -15
- package/core/Button/index.js +0 -121
- package/core/Button/index.spec.d.ts +0 -1
- package/core/Button/index.spec.js +0 -21
- package/core/Card/index.js +0 -57
- package/core/Details/index.js +0 -35
- package/core/Details/index.spec.d.ts +0 -1
- package/core/Details/index.spec.js +0 -27
- package/core/Divider/index.d.ts +0 -5
- package/core/Divider/index.js +0 -20
- package/core/ErrorSummary/index.js +0 -19
- package/core/ErrorSummary/index.spec.d.ts +0 -1
- package/core/ErrorSummary/index.spec.js +0 -21
- package/core/Hidden/index.js +0 -18
- package/core/Link/index.d.ts +0 -12
- package/core/Link/index.js +0 -50
- package/core/Link/index.spec.d.ts +0 -1
- package/core/Link/index.spec.js +0 -31
- package/core/List/List.js +0 -19
- package/core/List/ListItem.js +0 -19
- package/core/List/ListItemContent.d.ts +0 -7
- package/core/List/ListItemContent.js +0 -45
- package/core/List/ListItemIcon.d.ts +0 -7
- package/core/List/ListItemIcon.js +0 -48
- package/core/List/ListItemText.d.ts +0 -8
- package/core/List/ListItemText.js +0 -36
- package/core/List/ListItemTitle.d.ts +0 -10
- package/core/List/ListItemTitle.js +0 -44
- package/core/List/index.js +0 -96
- package/core/List/index.spec.d.ts +0 -1
- package/core/List/index.spec.js +0 -21
- package/core/NavList/NavList.d.ts +0 -17
- package/core/NavList/NavList.js +0 -99
- package/core/NavList/NavListContext.d.ts +0 -20
- package/core/NavList/NavListContext.js +0 -102
- package/core/NavList/NavListItem.d.ts +0 -13
- package/core/NavList/NavListItem.js +0 -171
- package/core/NavList/NavListItemBase.d.ts +0 -16
- package/core/NavList/NavListItemBase.js +0 -161
- package/core/NavList/NavListSubMenu.d.ts +0 -8
- package/core/NavList/NavListSubMenu.js +0 -52
- package/core/NavList/index.js +0 -68
- package/core/NavList/index.spec.d.ts +0 -1
- package/core/NavList/index.spec.js +0 -21
- package/core/NotificationBanner/index.d.ts +0 -18
- package/core/NotificationBanner/index.js +0 -78
- package/core/NotificationBanner/index.spec.d.ts +0 -1
- package/core/NotificationBanner/index.spec.js +0 -32
- package/core/ServiceBadge/index.d.ts +0 -9
- package/core/ServiceBadge/index.js +0 -36
- package/core/SummaryList/index.js +0 -79
- package/core/SummaryList/index.spec.d.ts +0 -1
- package/core/SummaryList/index.spec.js +0 -19
- package/core/Table/index.js +0 -96
- package/core/Tabs/index.d.ts +0 -16
- package/core/Tabs/index.js +0 -88
- package/core/VisuallyHidden/index.js +0 -18
- package/core/WarningText/index.js +0 -19
- package/core/WarningText/index.spec.d.ts +0 -1
- package/core/WarningText/index.spec.js +0 -21
- package/core/index.js +0 -199
- package/custom.d.js +0 -1
- package/es/api/APIErrors.js +0 -96
- package/es/api/APIProvider.js +0 -25
- package/es/api/fetchAPI.js +0 -49
- package/es/api/index.js +0 -13
- package/es/api/index.spec.js +0 -546
- package/es/api/introduction.md +0 -6
- package/es/api/useResource.js +0 -128
- package/es/api/useResourceAction.js +0 -141
- package/es/api/useResourceQuery.js +0 -208
- package/es/api/utils.js +0 -233
- package/es/app/App.js +0 -27
- package/es/app/Confirmation/index.js +0 -3
- package/es/app/Footer/index.js +0 -15
- package/es/app/Header/HeaderSection.js +0 -7
- package/es/app/Header/HeaderTitle.js +0 -17
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +0 -393
- package/es/app/Header/index.js +0 -13
- package/es/app/Header/index.mdx +0 -50
- package/es/app/Header/index.spec.js +0 -32
- package/es/app/NotFound/index.js +0 -12
- package/es/app/OutdatedBrowserBanner.js +0 -24
- package/es/app/PageTitle.js +0 -57
- package/es/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -22
- package/es/app/QrCodeScanner/index.js +0 -64
- package/es/app/QrCodeScanner/index.mdx +0 -22
- package/es/app/QrCodeScanner/index.spec.js +0 -13
- package/es/app/i18n.js +0 -36
- package/es/app/index.js +0 -5
- package/es/core/Accordion/__snapshots__/index.spec.tsx.snap +0 -78
- package/es/core/Accordion/index.js +0 -67
- package/es/core/Accordion/index.mdx +0 -104
- package/es/core/Accordion/index.spec.js +0 -9
- package/es/core/Blockquote/__snapshots__/index.spec.tsx.snap +0 -13
- package/es/core/Blockquote/index.js +0 -16
- package/es/core/Blockquote/index.mdx +0 -61
- package/es/core/Blockquote/index.spec.js +0 -9
- package/es/core/Breadcrumbs/index.js +0 -3
- package/es/core/Button/BackButton.js +0 -21
- package/es/core/Button/ButtonLink.js +0 -16
- package/es/core/Button/CallToAction.js +0 -27
- package/es/core/Button/Icon.js +0 -7
- package/es/core/Button/__snapshots__/index.spec.tsx.snap +0 -13
- package/es/core/Button/index.js +0 -36
- package/es/core/Button/index.mdx +0 -65
- package/es/core/Button/index.spec.js +0 -9
- package/es/core/Card/index.js +0 -4
- package/es/core/Details/__snapshots__/index.spec.tsx.snap +0 -50
- package/es/core/Details/index.js +0 -5
- package/es/core/Details/index.mdx +0 -34
- package/es/core/Details/index.spec.js +0 -17
- package/es/core/Divider/index.js +0 -7
- package/es/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -322
- package/es/core/ErrorSummary/index.js +0 -3
- package/es/core/ErrorSummary/index.mdx +0 -61
- package/es/core/ErrorSummary/index.spec.js +0 -9
- package/es/core/Hidden/index.js +0 -1
- package/es/core/Link/__snapshots__/index.spec.tsx.snap +0 -31
- package/es/core/Link/index.js +0 -26
- package/es/core/Link/index.spec.js +0 -21
- package/es/core/List/List.js +0 -3
- package/es/core/List/ListItem.js +0 -3
- package/es/core/List/ListItemContent.js +0 -27
- package/es/core/List/ListItemIcon.js +0 -29
- package/es/core/List/ListItemText.js +0 -19
- package/es/core/List/ListItemTitle.js +0 -25
- package/es/core/List/__snapshots__/index.spec.tsx.snap +0 -322
- package/es/core/List/index.js +0 -7
- package/es/core/List/index.mdx +0 -40
- package/es/core/List/index.spec.js +0 -9
- package/es/core/NavList/NavList.js +0 -78
- package/es/core/NavList/NavListContext.js +0 -80
- package/es/core/NavList/NavListItem.js +0 -141
- package/es/core/NavList/NavListItemBase.js +0 -133
- package/es/core/NavList/NavListSubMenu.js +0 -27
- package/es/core/NavList/__snapshots__/index.spec.tsx.snap +0 -334
- package/es/core/NavList/index.js +0 -5
- package/es/core/NavList/index.mdx +0 -185
- package/es/core/NavList/index.spec.js +0 -9
- package/es/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -737
- package/es/core/NotificationBanner/index.js +0 -35
- package/es/core/NotificationBanner/index.mdx +0 -77
- package/es/core/NotificationBanner/index.spec.js +0 -20
- package/es/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/es/core/ServiceBadge/index.js +0 -20
- package/es/core/ServiceBadge/index.mdx +0 -42
- package/es/core/SummaryList/__snapshots__/index.spec.tsx.snap +0 -57
- package/es/core/SummaryList/index.js +0 -7
- package/es/core/SummaryList/index.mdx +0 -82
- package/es/core/SummaryList/index.spec.js +0 -9
- package/es/core/Table/index.js +0 -7
- package/es/core/Tabs/index.js +0 -37
- package/es/core/Tabs/index.mdx +0 -54
- package/es/core/VisuallyHidden/index.js +0 -1
- package/es/core/WarningText/__snapshots__/index.spec.tsx.snap +0 -336
- package/es/core/WarningText/index.js +0 -3
- package/es/core/WarningText/index.mdx +0 -46
- package/es/core/WarningText/index.spec.js +0 -9
- package/es/core/index.js +0 -14
- package/es/custom.d.js +0 -0
- package/es/govgr/Footer/Copyright.js +0 -37
- package/es/govgr/Footer/HellenicRepublicLogo.js +0 -3
- package/es/govgr/Footer/LicenseCCSA.js +0 -18
- package/es/govgr/Footer/index.js +0 -21
- package/es/govgr/Footer/logo.js +0 -1
- package/es/govgr/Footer/logos/logo-el.js +0 -1
- package/es/govgr/Footer/logos/logo-en.js +0 -1
- package/es/govgr/Logo/index.js +0 -3
- package/es/govgr/index.js +0 -4
- package/es/hooks/useDebounce.js +0 -41
- package/es/hooks/useLatest.js +0 -12
- package/es/hooks/useOutdatedBrowserCheck.js +0 -46
- package/es/hooks/useSearch.js +0 -25
- package/es/hooks/useTogglableSections.js +0 -96
- package/es/index.js +0 -5
- package/es/layouts/Basic/Bottom/index.js +0 -3
- package/es/layouts/Basic/Content/index.js +0 -18
- package/es/layouts/Basic/Main/index.js +0 -3
- package/es/layouts/Basic/Masthead/index.js +0 -4
- package/es/layouts/Basic/Side/index.js +0 -7
- package/es/layouts/Basic/index.js +0 -8
- package/es/layouts/Basic/index.spec.js +0 -10
- package/es/layouts/Grid/index.js +0 -1
- package/es/layouts/index.js +0 -2
- package/es/locales/el.js +0 -45
- package/es/locales/en.js +0 -45
- package/es/router/index.js +0 -15
- package/es/test-utils/delay.js +0 -31
- package/es/test-utils/mountWithTheme.js +0 -30
- package/es/themes/grnet.js +0 -110
- package/es/themes/index.js +0 -2
- package/es/typography/Caption.js +0 -7
- package/es/typography/NormalText.js +0 -3
- package/es/typography/Paragraph.js +0 -2
- package/es/typography/Title.js +0 -48
- package/es/typography/index.js +0 -8
- package/es/utils/evaluateBrowserVersion.js +0 -201
- package/es/utils/withDeprecation.js +0 -103
- package/esm/api/APIErrors.js +0 -96
- package/esm/api/APIProvider.js +0 -25
- package/esm/api/fetchAPI.js +0 -49
- package/esm/api/index.spec.js +0 -546
- package/esm/api/introduction.md +0 -6
- package/esm/api/useResource.js +0 -128
- package/esm/api/useResourceAction.js +0 -141
- package/esm/api/useResourceQuery.js +0 -208
- package/esm/api/utils.js +0 -233
- package/esm/app/App.js +0 -27
- package/esm/app/Confirmation/index.js +0 -3
- package/esm/app/Footer/index.js +0 -15
- package/esm/app/Header/HeaderLogo.js +0 -17
- package/esm/app/Header/HeaderSection.js +0 -7
- package/esm/app/Header/HeaderTitle.js +0 -17
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +0 -393
- package/esm/app/Header/index.mdx +0 -50
- package/esm/app/Header/index.spec.js +0 -32
- package/esm/app/NotFound/index.js +0 -12
- package/esm/app/OutdatedBrowserBanner.js +0 -24
- package/esm/app/PageTitle.js +0 -57
- package/esm/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -22
- package/esm/app/QrCodeScanner/index.js +0 -64
- package/esm/app/QrCodeScanner/index.mdx +0 -22
- package/esm/app/QrCodeScanner/index.spec.js +0 -13
- package/esm/app/i18n.js +0 -36
- package/esm/app/index.js +0 -5
- package/esm/core/Accordion/__snapshots__/index.spec.tsx.snap +0 -78
- package/esm/core/Accordion/index.js +0 -67
- package/esm/core/Accordion/index.mdx +0 -104
- package/esm/core/Accordion/index.spec.js +0 -9
- package/esm/core/Blockquote/__snapshots__/index.spec.tsx.snap +0 -13
- package/esm/core/Blockquote/index.mdx +0 -61
- package/esm/core/Blockquote/index.spec.js +0 -9
- package/esm/core/Breadcrumbs/index.js +0 -3
- package/esm/core/Button/ButtonLink.js +0 -16
- package/esm/core/Button/CallToAction.js +0 -27
- package/esm/core/Button/Icon.js +0 -7
- package/esm/core/Button/__snapshots__/index.spec.tsx.snap +0 -13
- package/esm/core/Button/index.js +0 -36
- package/esm/core/Button/index.mdx +0 -65
- package/esm/core/Button/index.spec.js +0 -9
- package/esm/core/Card/index.js +0 -4
- package/esm/core/Details/__snapshots__/index.spec.tsx.snap +0 -50
- package/esm/core/Details/index.js +0 -5
- package/esm/core/Details/index.mdx +0 -34
- package/esm/core/Details/index.spec.js +0 -17
- package/esm/core/Divider/index.js +0 -7
- package/esm/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -322
- package/esm/core/ErrorSummary/index.js +0 -3
- package/esm/core/ErrorSummary/index.mdx +0 -61
- package/esm/core/ErrorSummary/index.spec.js +0 -9
- package/esm/core/Hidden/index.js +0 -1
- package/esm/core/Link/__snapshots__/index.spec.tsx.snap +0 -31
- package/esm/core/Link/index.js +0 -26
- package/esm/core/Link/index.spec.js +0 -21
- package/esm/core/List/List.js +0 -3
- package/esm/core/List/ListItem.js +0 -3
- package/esm/core/List/ListItemContent.js +0 -27
- package/esm/core/List/ListItemIcon.js +0 -29
- package/esm/core/List/ListItemText.js +0 -19
- package/esm/core/List/ListItemTitle.js +0 -25
- package/esm/core/List/__snapshots__/index.spec.tsx.snap +0 -322
- package/esm/core/List/index.js +0 -7
- package/esm/core/List/index.mdx +0 -40
- package/esm/core/List/index.spec.js +0 -9
- package/esm/core/NavList/NavList.js +0 -78
- package/esm/core/NavList/NavListContext.js +0 -80
- package/esm/core/NavList/NavListItem.js +0 -141
- package/esm/core/NavList/NavListItemBase.js +0 -133
- package/esm/core/NavList/NavListSubMenu.js +0 -27
- package/esm/core/NavList/__snapshots__/index.spec.tsx.snap +0 -334
- package/esm/core/NavList/index.js +0 -5
- package/esm/core/NavList/index.mdx +0 -185
- package/esm/core/NavList/index.spec.js +0 -9
- package/esm/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -737
- package/esm/core/NotificationBanner/index.js +0 -35
- package/esm/core/NotificationBanner/index.mdx +0 -77
- package/esm/core/NotificationBanner/index.spec.js +0 -20
- package/esm/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/esm/core/ServiceBadge/index.js +0 -20
- package/esm/core/ServiceBadge/index.mdx +0 -42
- package/esm/core/SummaryList/__snapshots__/index.spec.tsx.snap +0 -57
- package/esm/core/SummaryList/index.js +0 -7
- package/esm/core/SummaryList/index.mdx +0 -82
- package/esm/core/SummaryList/index.spec.js +0 -9
- package/esm/core/Table/index.js +0 -7
- package/esm/core/Tabs/index.js +0 -37
- package/esm/core/Tabs/index.mdx +0 -54
- package/esm/core/VisuallyHidden/index.js +0 -1
- package/esm/core/WarningText/__snapshots__/index.spec.tsx.snap +0 -336
- package/esm/core/WarningText/index.js +0 -3
- package/esm/core/WarningText/index.mdx +0 -46
- package/esm/core/WarningText/index.spec.js +0 -9
- package/esm/core/index.js +0 -14
- package/esm/custom.d.js +0 -0
- package/esm/form/inputs/Input/index.mdx +0 -10
- package/esm/govgr/Footer/Copyright.js +0 -37
- package/esm/govgr/Footer/HellenicRepublicLogo.js +0 -3
- package/esm/govgr/Footer/LicenseCCSA.js +0 -18
- package/esm/govgr/Footer/index.js +0 -21
- package/esm/govgr/Footer/index.mdx +0 -97
- package/esm/govgr/Logo/govgr-logo.svg +0 -1
- package/esm/govgr/Logo/index.js +0 -3
- package/esm/govgr/Logo/logo.js +0 -1
- package/esm/govgr/index.js +0 -4
- package/esm/hooks/useDebounce.js +0 -41
- package/esm/hooks/useLatest.js +0 -12
- package/esm/hooks/useSearch.js +0 -25
- package/esm/hooks/useTogglableSections.js +0 -96
- package/esm/index.js +0 -10
- package/esm/layouts/Basic/Bottom/index.js +0 -3
- package/esm/layouts/Basic/Bottom/index.mdx +0 -37
- package/esm/layouts/Basic/Content/index.js +0 -18
- package/esm/layouts/Basic/Content/index.mdx +0 -64
- package/esm/layouts/Basic/Main/index.js +0 -3
- package/esm/layouts/Basic/Main/index.mdx +0 -64
- package/esm/layouts/Basic/Masthead/index.js +0 -4
- package/esm/layouts/Basic/Masthead/index.mdx +0 -74
- package/esm/layouts/Basic/Side/index.mdx +0 -71
- package/esm/layouts/Basic/Top/index.js +0 -11
- package/esm/layouts/Basic/Top/index.mdx +0 -74
- package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -54
- package/esm/layouts/Basic/index.js +0 -8
- package/esm/layouts/Basic/index.mdx +0 -62
- package/esm/layouts/Basic/index.spec.js +0 -10
- package/esm/layouts/Grid/index.js +0 -1
- package/esm/layouts/index.js +0 -2
- package/esm/locales/el.js +0 -45
- package/esm/router/index.js +0 -15
- package/esm/router/index.mdx +0 -40
- package/esm/test-utils/delay.js +0 -31
- package/esm/test-utils/mountWithTheme.js +0 -30
- package/esm/themes/govgr.js +0 -79
- package/esm/themes/grnet.js +0 -110
- package/esm/themes/index.js +0 -2
- package/esm/typography/Caption.js +0 -7
- package/esm/typography/NormalText.js +0 -3
- package/esm/typography/Paragraph.js +0 -2
- package/esm/typography/Title.js +0 -48
- package/esm/typography/index.js +0 -8
- package/esm/typography/index.mdx +0 -32
- package/esm/utils/evaluateBrowserVersion.js +0 -201
- package/esm/utils/withDeprecation.js +0 -103
- package/form/inputs/Input/index.mdx +0 -10
- package/govgr/Footer/Copyright.d.ts +0 -8
- package/govgr/Footer/Copyright.js +0 -52
- package/govgr/Footer/HellenicRepublicLogo.js +0 -19
- package/govgr/Footer/LicenseCCSA.d.ts +0 -3
- package/govgr/Footer/LicenseCCSA.js +0 -33
- package/govgr/Footer/index.d.ts +0 -13
- package/govgr/Footer/index.js +0 -39
- package/govgr/Footer/index.mdx +0 -97
- package/govgr/Footer/logo.d.ts +0 -2
- package/govgr/Footer/logo.js +0 -8
- package/govgr/Footer/logos/logo-el.d.ts +0 -2
- package/govgr/Footer/logos/logo-el.js +0 -8
- package/govgr/Footer/logos/logo-en.d.ts +0 -2
- package/govgr/Footer/logos/logo-en.js +0 -8
- package/govgr/Logo/govgr-logo.svg +0 -1
- package/govgr/Logo/index.js +0 -19
- package/govgr/Logo/logo.d.ts +0 -2
- package/govgr/Logo/logo.js +0 -8
- package/govgr/index.js +0 -57
- package/hooks/useDebounce.d.ts +0 -3
- package/hooks/useDebounce.js +0 -63
- package/hooks/useLatest.d.ts +0 -3
- package/hooks/useLatest.js +0 -26
- package/hooks/useOutdatedBrowserCheck.d.ts +0 -2
- package/hooks/useOutdatedBrowserCheck.js +0 -60
- package/hooks/useSearch.d.ts +0 -4
- package/hooks/useSearch.js +0 -40
- package/hooks/useTogglableSections.d.ts +0 -18
- package/hooks/useTogglableSections.js +0 -108
- package/index.js +0 -70
- package/layouts/Basic/Bottom/index.js +0 -19
- package/layouts/Basic/Bottom/index.mdx +0 -37
- package/layouts/Basic/Content/index.d.ts +0 -5
- package/layouts/Basic/Content/index.js +0 -31
- package/layouts/Basic/Content/index.mdx +0 -64
- package/layouts/Basic/Main/index.js +0 -19
- package/layouts/Basic/Main/index.mdx +0 -64
- package/layouts/Basic/Masthead/index.js +0 -27
- package/layouts/Basic/Masthead/index.mdx +0 -74
- package/layouts/Basic/Side/index.d.ts +0 -3
- package/layouts/Basic/Side/index.js +0 -20
- package/layouts/Basic/Side/index.mdx +0 -71
- package/layouts/Basic/Top/index.d.ts +0 -3
- package/layouts/Basic/Top/index.js +0 -24
- package/layouts/Basic/Top/index.mdx +0 -74
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -54
- package/layouts/Basic/index.js +0 -97
- package/layouts/Basic/index.mdx +0 -62
- package/layouts/Basic/index.spec.d.ts +0 -1
- package/layouts/Basic/index.spec.js +0 -20
- package/layouts/Grid/index.js +0 -18
- package/layouts/index.js +0 -34
- package/locales/el.d.ts +0 -46
- package/locales/el.js +0 -52
- package/locales/en.d.ts +0 -46
- package/locales/en.js +0 -52
- package/router/index.d.ts +0 -9
- package/router/index.js +0 -37
- package/router/index.mdx +0 -40
- package/test-utils/delay.d.ts +0 -2
- package/test-utils/delay.js +0 -45
- package/test-utils/mountWithTheme.d.ts +0 -3
- package/test-utils/mountWithTheme.js +0 -43
- package/themes/govgr.d.ts +0 -3
- package/themes/govgr.js +0 -89
- package/themes/grnet.d.ts +0 -2
- package/themes/grnet.js +0 -128
- package/themes/index.d.ts +0 -32
- package/themes/index.js +0 -19
- package/typography/Caption.d.ts +0 -7
- package/typography/Caption.js +0 -20
- package/typography/NormalText.d.ts +0 -5
- package/typography/NormalText.js +0 -19
- package/typography/Paragraph.d.ts +0 -6
- package/typography/Paragraph.js +0 -13
- package/typography/Title.d.ts +0 -9
- package/typography/Title.js +0 -63
- package/typography/index.js +0 -97
- package/typography/index.mdx +0 -32
- package/utils/evaluateBrowserVersion.d.ts +0 -15
- package/utils/evaluateBrowserVersion.js +0 -216
- package/utils/withDeprecation.d.ts +0 -16
- package/utils/withDeprecation.js +0 -116
|
@@ -1,79 +1,83 @@
|
|
|
1
1
|
import { createMuiTheme, responsiveFontSizes } from '@material-ui/core/styles';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
export const PORTAL_URL = 'http://34.194.85.187/';
|
|
4
|
+
|
|
5
|
+
const linkStyle = {
|
|
4
6
|
color: '#046ec5',
|
|
5
7
|
'&:hover': {
|
|
6
|
-
color: '#4c2c92'
|
|
8
|
+
color: '#4c2c92',
|
|
7
9
|
},
|
|
8
10
|
'&:visited': {
|
|
9
|
-
color: '#4c2c92'
|
|
11
|
+
color: '#4c2c92',
|
|
10
12
|
},
|
|
11
13
|
'&:active': {
|
|
12
|
-
color: '#212529'
|
|
13
|
-
}
|
|
14
|
+
color: '#212529',
|
|
15
|
+
},
|
|
14
16
|
};
|
|
15
|
-
|
|
17
|
+
let theme = createMuiTheme({
|
|
16
18
|
overrides: {
|
|
17
19
|
MuiCssBaseline: {
|
|
18
20
|
'@global': {
|
|
19
21
|
body: {
|
|
20
|
-
background: '#fff'
|
|
22
|
+
background: '#fff',
|
|
21
23
|
},
|
|
22
|
-
a: linkStyle
|
|
23
|
-
}
|
|
24
|
+
a: linkStyle,
|
|
25
|
+
},
|
|
24
26
|
},
|
|
25
27
|
MuiBaseLink: {
|
|
26
|
-
root: linkStyle
|
|
28
|
+
root: linkStyle,
|
|
27
29
|
},
|
|
28
30
|
MuiButton: {
|
|
29
31
|
root: {
|
|
30
|
-
borderRadius: 4
|
|
31
|
-
}
|
|
32
|
-
}
|
|
32
|
+
borderRadius: 4,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
33
35
|
},
|
|
34
36
|
shape: {
|
|
35
|
-
borderRadius: 8
|
|
37
|
+
borderRadius: 8,
|
|
36
38
|
},
|
|
37
39
|
palette: {
|
|
38
40
|
primary: {
|
|
39
|
-
main: '#003476'
|
|
41
|
+
main: '#003476',
|
|
40
42
|
},
|
|
41
43
|
secondary: {
|
|
42
|
-
main: '#046ec5'
|
|
44
|
+
main: '#046ec5',
|
|
43
45
|
},
|
|
44
46
|
success: {
|
|
45
|
-
main: '#00703c'
|
|
47
|
+
main: '#00703c',
|
|
46
48
|
},
|
|
47
49
|
error: {
|
|
48
|
-
main: '#ca2e2e'
|
|
50
|
+
main: '#ca2e2e',
|
|
49
51
|
},
|
|
50
52
|
warning: {
|
|
51
|
-
main: '#C25400'
|
|
53
|
+
main: '#C25400',
|
|
52
54
|
},
|
|
53
55
|
info: {
|
|
54
|
-
main: '#036ec5'
|
|
55
|
-
}
|
|
56
|
+
main: '#036ec5',
|
|
57
|
+
},
|
|
56
58
|
},
|
|
57
59
|
typography: {
|
|
58
|
-
htmlFontSize: 14
|
|
60
|
+
htmlFontSize: 14,
|
|
59
61
|
},
|
|
60
62
|
header: {
|
|
61
63
|
logo: {
|
|
62
|
-
height: 45
|
|
64
|
+
height: 45,
|
|
63
65
|
},
|
|
64
66
|
border: {
|
|
65
67
|
width: '100%',
|
|
66
68
|
height: 8,
|
|
67
|
-
background: '#046ec5'
|
|
69
|
+
background: '#046ec5',
|
|
68
70
|
},
|
|
69
|
-
height: '75px'
|
|
71
|
+
height: '75px',
|
|
70
72
|
},
|
|
71
73
|
footer: {
|
|
72
74
|
main: '#eeeeee',
|
|
73
75
|
link: '#00aeef',
|
|
74
|
-
contrastText: '#fff'
|
|
76
|
+
contrastText: '#fff',
|
|
75
77
|
},
|
|
76
|
-
spacing: 8
|
|
78
|
+
spacing: 8,
|
|
77
79
|
});
|
|
80
|
+
|
|
78
81
|
theme = responsiveFontSizes(theme, ['sm', 'md', 'lg']);
|
|
79
|
-
|
|
82
|
+
|
|
83
|
+
export default theme;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
createMuiTheme,
|
|
4
|
+
responsiveFontSizes,
|
|
5
|
+
makeStyles,
|
|
6
|
+
} from '@material-ui/core/styles';
|
|
7
|
+
import logo from '../govgr/Logo/govgr-logo.svg';
|
|
8
|
+
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
9
|
+
import Title from '@digigov/ui/typography/Title';
|
|
10
|
+
import Container from '@material-ui/core/Container';
|
|
11
|
+
import Toolbar from '@material-ui/core/Toolbar';
|
|
12
|
+
import Typography from '@material-ui/core/Typography';
|
|
13
|
+
import Grid from '@digigov/react-core/Grid';
|
|
14
|
+
import MuiAppBar from '@material-ui/core/AppBar';
|
|
15
|
+
|
|
16
|
+
const useStyles = makeStyles((theme) => ({
|
|
17
|
+
title: {
|
|
18
|
+
lineHeight: '2em',
|
|
19
|
+
marginBottom: 0,
|
|
20
|
+
marginLeft: '5px',
|
|
21
|
+
marginRight: theme.spacing(2),
|
|
22
|
+
},
|
|
23
|
+
appbar: {
|
|
24
|
+
background: theme.palette.footer.main,
|
|
25
|
+
color: theme.palette.footer.contrastText,
|
|
26
|
+
},
|
|
27
|
+
text: {
|
|
28
|
+
flexGrow: 1,
|
|
29
|
+
},
|
|
30
|
+
}));
|
|
31
|
+
|
|
32
|
+
const Logo = () => {
|
|
33
|
+
const { t } = useTranslation();
|
|
34
|
+
const styles = useStyles();
|
|
35
|
+
return (
|
|
36
|
+
<div style={{ display: 'flex' }}>
|
|
37
|
+
<img
|
|
38
|
+
src={logo}
|
|
39
|
+
height={24}
|
|
40
|
+
width={24}
|
|
41
|
+
style={{ display: 'flex', marginTop: '6px' }}
|
|
42
|
+
/>
|
|
43
|
+
<Title size="sm" className={styles.title}>
|
|
44
|
+
{t('header_appbar.govgr_icon')}
|
|
45
|
+
</Title>
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const Footer = () => {
|
|
51
|
+
const styles = useStyles();
|
|
52
|
+
return (
|
|
53
|
+
<MuiAppBar className={styles.appbar} position="static">
|
|
54
|
+
<Grid container>
|
|
55
|
+
<Container>
|
|
56
|
+
<Toolbar variant="dense" disableGutters>
|
|
57
|
+
<Typography variant="body2" className={styles.text}>
|
|
58
|
+
Powered by open source software
|
|
59
|
+
</Typography>
|
|
60
|
+
</Toolbar>
|
|
61
|
+
</Container>
|
|
62
|
+
</Grid>
|
|
63
|
+
</MuiAppBar>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
let theme = createMuiTheme({
|
|
68
|
+
overrides: {
|
|
69
|
+
MuiButton: {
|
|
70
|
+
root: {
|
|
71
|
+
borderRadius: 0,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
palette: {
|
|
76
|
+
primary: {
|
|
77
|
+
main: '#283d70',
|
|
78
|
+
},
|
|
79
|
+
secondary: {
|
|
80
|
+
main: '#ffffff',
|
|
81
|
+
dark: '#f5f5f5',
|
|
82
|
+
},
|
|
83
|
+
footer: {
|
|
84
|
+
main: '#e1e1e2',
|
|
85
|
+
contrastText: '#000',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
typography: {
|
|
89
|
+
htmlFontSize: 14,
|
|
90
|
+
},
|
|
91
|
+
header: {
|
|
92
|
+
logo: {
|
|
93
|
+
component: Logo,
|
|
94
|
+
height: 45,
|
|
95
|
+
},
|
|
96
|
+
border: {
|
|
97
|
+
width: '92%',
|
|
98
|
+
height: '5px',
|
|
99
|
+
},
|
|
100
|
+
height: '45px',
|
|
101
|
+
},
|
|
102
|
+
footer: {
|
|
103
|
+
component: Footer,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
theme = responsiveFontSizes(theme, ['sm', 'md', 'lg']);
|
|
108
|
+
|
|
109
|
+
export default theme;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactChild } from 'react';
|
|
2
|
+
import { useTheme, makeStyles } from '@material-ui/core';
|
|
3
|
+
|
|
4
|
+
interface Logo {
|
|
5
|
+
component: ReactChild;
|
|
6
|
+
height: string | number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Footer {
|
|
10
|
+
link: string;
|
|
11
|
+
contrastText: string;
|
|
12
|
+
main: string;
|
|
13
|
+
component?: ReactChild;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface Header {
|
|
17
|
+
logo: Logo;
|
|
18
|
+
border: {
|
|
19
|
+
width: string | number;
|
|
20
|
+
height: string | number;
|
|
21
|
+
background: string;
|
|
22
|
+
};
|
|
23
|
+
height: string | number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare module '@material-ui/core/styles/createMuiTheme' {
|
|
27
|
+
interface Theme {
|
|
28
|
+
header: Header;
|
|
29
|
+
footer: Footer;
|
|
30
|
+
}
|
|
31
|
+
// allow configuration using `createMuiTheme`
|
|
32
|
+
interface ThemeOptions {
|
|
33
|
+
header: Header;
|
|
34
|
+
footer: Footer;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { useTheme, makeStyles };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import HeadingCaption, {
|
|
2
|
+
HeadingCaptionProps,
|
|
3
|
+
} from '@digigov/react-core/HeadingCaption';
|
|
4
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
5
|
+
|
|
6
|
+
export const Caption = withDeprecation(HeadingCaption, {
|
|
7
|
+
name: 'Caption',
|
|
8
|
+
rename: 'HeadingCaption',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export interface CaptionProps extends HeadingCaptionProps {
|
|
12
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default Caption;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Heading, { HeadingProps } from '@digigov/react-core/Heading';
|
|
3
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
4
|
+
|
|
5
|
+
export interface TitleProps extends Omit<HeadingProps, 'size'> {
|
|
6
|
+
size?: 'xl' | 'lg' | 'md' | 'sm';
|
|
7
|
+
component?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
8
|
+
ref?: React.Ref<HTMLHeadingElement>;
|
|
9
|
+
}
|
|
10
|
+
const sizeMappings: Record<string, HeadingProps['size']> = {
|
|
11
|
+
xl: 'xl',
|
|
12
|
+
lg: 'l',
|
|
13
|
+
md: 'm',
|
|
14
|
+
sm: 's',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const Title: React.FC<TitleProps> = withDeprecation(
|
|
18
|
+
({ size = 'xl', component, children, ...props }) => {
|
|
19
|
+
const newSize = sizeMappings[size];
|
|
20
|
+
return (
|
|
21
|
+
<Heading size={newSize} element={component} {...props}>
|
|
22
|
+
{children}
|
|
23
|
+
</Heading>
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Title',
|
|
28
|
+
rename: 'Heading',
|
|
29
|
+
props: {
|
|
30
|
+
dense: {
|
|
31
|
+
error: true,
|
|
32
|
+
},
|
|
33
|
+
size: {
|
|
34
|
+
values: {
|
|
35
|
+
xs: {
|
|
36
|
+
error: true,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
component: {
|
|
41
|
+
values: {
|
|
42
|
+
h5: {
|
|
43
|
+
error: true,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export default Title;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
//copied from https://github.com/faisalman/ua-parser-js/blob/master/src/ua-parser.js
|
|
2
|
+
|
|
3
|
+
const EMPTY = '',
|
|
4
|
+
UNKNOWN = '?',
|
|
5
|
+
FUNC_TYPE = 'function',
|
|
6
|
+
UNDEF_TYPE = 'undefined',
|
|
7
|
+
OBJ_TYPE = 'object',
|
|
8
|
+
STR_TYPE = 'string',
|
|
9
|
+
NAME = 'name',
|
|
10
|
+
VERSION = 'version';
|
|
11
|
+
|
|
12
|
+
const BROWSER = 'Browser',
|
|
13
|
+
CHROME = 'Chrome',
|
|
14
|
+
FIREFOX = 'Firefox',
|
|
15
|
+
OPERA = 'Opera';
|
|
16
|
+
|
|
17
|
+
const oldSafariMap = {
|
|
18
|
+
'1.0': '/8',
|
|
19
|
+
'1.2': '/1',
|
|
20
|
+
'1.3': '/3',
|
|
21
|
+
'2.0': '/412',
|
|
22
|
+
'2.0.2': '/416',
|
|
23
|
+
'2.0.3': '/417',
|
|
24
|
+
'2.0.4': '/419',
|
|
25
|
+
'?': '/',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
function strMapper(str, map) {
|
|
29
|
+
for (const i in map) {
|
|
30
|
+
// check if current value is array
|
|
31
|
+
if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
|
|
32
|
+
for (let j = 0; j < map[i].length; j++) {
|
|
33
|
+
if (map[i][j].includes(str)) {
|
|
34
|
+
return i === UNKNOWN ? undefined : i;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
} else if (map[i].includes(str)) {
|
|
38
|
+
return i === UNKNOWN ? undefined : i;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return str;
|
|
42
|
+
}
|
|
43
|
+
function majorize(version) {
|
|
44
|
+
return typeof version === STR_TYPE
|
|
45
|
+
? version.replace(/[^\d.]/g, EMPTY).split('.')[0]
|
|
46
|
+
: undefined;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function rgxMapper(browser, ua, arrays) {
|
|
50
|
+
let i = 0,
|
|
51
|
+
j,
|
|
52
|
+
k,
|
|
53
|
+
p,
|
|
54
|
+
q,
|
|
55
|
+
matches,
|
|
56
|
+
match;
|
|
57
|
+
|
|
58
|
+
// loop through all regexes maps
|
|
59
|
+
while (i < arrays.length && !matches) {
|
|
60
|
+
const regex = arrays[i], // even sequence (0,2,4,..)
|
|
61
|
+
props = arrays[i + 1]; // odd sequence (1,3,5,..)
|
|
62
|
+
j = k = 0;
|
|
63
|
+
|
|
64
|
+
// try matching uastring with regexes
|
|
65
|
+
while (j < regex.length && !matches) {
|
|
66
|
+
matches = regex[j++].exec(ua);
|
|
67
|
+
|
|
68
|
+
if (matches) {
|
|
69
|
+
for (p = 0; p < props.length; p++) {
|
|
70
|
+
match = matches[++k];
|
|
71
|
+
q = props[p];
|
|
72
|
+
// check if given property is actually array
|
|
73
|
+
if (typeof q === OBJ_TYPE && q.length > 0) {
|
|
74
|
+
if (q.length == 2) {
|
|
75
|
+
if (typeof q[1] == FUNC_TYPE) {
|
|
76
|
+
// assign modified match
|
|
77
|
+
browser[q[0]] = q[1].call(browser, match);
|
|
78
|
+
} else {
|
|
79
|
+
// assign given value, ignore regex match
|
|
80
|
+
browser[q[0]] = q[1];
|
|
81
|
+
}
|
|
82
|
+
} else if (q.length == 3) {
|
|
83
|
+
// check whether function or regex
|
|
84
|
+
if (typeof q[1] === FUNC_TYPE && !(q[1].exec && q[1].test)) {
|
|
85
|
+
// call function (usually string mapper)
|
|
86
|
+
browser[q[0]] = match
|
|
87
|
+
? q[1].call(browser, match, q[2])
|
|
88
|
+
: undefined;
|
|
89
|
+
} else {
|
|
90
|
+
// sanitize match using given regex
|
|
91
|
+
browser[q[0]] = match ? match.replace(q[1], q[2]) : undefined;
|
|
92
|
+
}
|
|
93
|
+
} else if (q.length == 4) {
|
|
94
|
+
browser[q[0]] = match
|
|
95
|
+
? q[3].call(browser, match.replace(q[1], q[2]))
|
|
96
|
+
: undefined;
|
|
97
|
+
}
|
|
98
|
+
} else {
|
|
99
|
+
browser[q] = match ? match : undefined;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
i += 2;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const browserRegexes = [
|
|
109
|
+
[
|
|
110
|
+
/\b(?:crmo|crios)\/([\w.]+)/i, // Chrome for Android/iOS
|
|
111
|
+
],
|
|
112
|
+
[VERSION, [NAME, 'Chrome']],
|
|
113
|
+
[
|
|
114
|
+
/edg(?:e|ios|a)?\/([\w.]+)/i, // Microsoft Edge
|
|
115
|
+
],
|
|
116
|
+
[VERSION, [NAME, 'Edge']],
|
|
117
|
+
[
|
|
118
|
+
// Presto based
|
|
119
|
+
/(opera mini)\/([-\w.]+)/i, // Opera Mini
|
|
120
|
+
/(opera [mobiletab]{3,6})\b.+version\/([-\w.]+)/i, // Opera Mobi/Tablet
|
|
121
|
+
/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i, // Opera
|
|
122
|
+
],
|
|
123
|
+
[NAME, VERSION],
|
|
124
|
+
[
|
|
125
|
+
/opios[/ ]+([\w.]+)/i, // Opera mini on iphone >= 8.0
|
|
126
|
+
],
|
|
127
|
+
[VERSION, [NAME, OPERA + ' Mini']],
|
|
128
|
+
[
|
|
129
|
+
/\bopr\/([\w.]+)/i, // Opera Webkit
|
|
130
|
+
],
|
|
131
|
+
[VERSION, [NAME, OPERA]],
|
|
132
|
+
[
|
|
133
|
+
// Mixed
|
|
134
|
+
/(kindle)\/([\w.]+)/i, // Kindle
|
|
135
|
+
/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i, // Lunascape/Maxthon/Netfront/Jasmine/Blazer
|
|
136
|
+
// Trident based
|
|
137
|
+
/(avant |iemobile|slim)(?:browser)?[/ ]?([\w.]*)/i, // Avant/IEMobile/SlimBrowser
|
|
138
|
+
/(ba?idubrowser)[/ ]?([\w.]+)/i, // Baidu Browser
|
|
139
|
+
/(?:ms|\()(ie) ([\w.]+)/i, // Internet Explorer
|
|
140
|
+
|
|
141
|
+
// Webkit/KHTML based // Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS/Bowser/QupZilla/Falkon
|
|
142
|
+
/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w.]+)/i,
|
|
143
|
+
// Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ, aka ShouQ
|
|
144
|
+
/(weibo)__([\d.]+)/i, // Weibo
|
|
145
|
+
],
|
|
146
|
+
[NAME, VERSION],
|
|
147
|
+
[
|
|
148
|
+
/(?:\buc? ?browser|(?:juc.+)ucweb)[/ ]?([\w.]+)/i, // UCBrowser
|
|
149
|
+
],
|
|
150
|
+
[VERSION, [NAME, 'UC' + BROWSER]],
|
|
151
|
+
[
|
|
152
|
+
/\bqbcore\/([\w.]+)/i, // WeChat Desktop for Windows Built-in Browser
|
|
153
|
+
],
|
|
154
|
+
[VERSION, [NAME, 'WeChat(Win) Desktop']],
|
|
155
|
+
[
|
|
156
|
+
/micromessenger\/([\w.]+)/i, // WeChat
|
|
157
|
+
],
|
|
158
|
+
[VERSION, [NAME, 'WeChat']],
|
|
159
|
+
[
|
|
160
|
+
/konqueror\/([\w.]+)/i, // Konqueror
|
|
161
|
+
],
|
|
162
|
+
[VERSION, [NAME, 'Konqueror']],
|
|
163
|
+
[
|
|
164
|
+
/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i, // IE11
|
|
165
|
+
],
|
|
166
|
+
[VERSION, [NAME, 'IE']],
|
|
167
|
+
[
|
|
168
|
+
/yabrowser\/([\w.]+)/i, // Yandex
|
|
169
|
+
],
|
|
170
|
+
[VERSION, [NAME, 'Yandex']],
|
|
171
|
+
[
|
|
172
|
+
/(avast|avg)\/([\w.]+)/i, // Avast/AVG Secure Browser
|
|
173
|
+
],
|
|
174
|
+
[[NAME, /(.+)/, '$1 Secure ' + BROWSER], VERSION],
|
|
175
|
+
[
|
|
176
|
+
/\bfocus\/([\w.]+)/i, // Firefox Focus
|
|
177
|
+
],
|
|
178
|
+
[VERSION, [NAME, FIREFOX + ' Focus']],
|
|
179
|
+
[
|
|
180
|
+
/\bopt\/([\w.]+)/i, // Opera Touch
|
|
181
|
+
],
|
|
182
|
+
[VERSION, [NAME, OPERA + ' Touch']],
|
|
183
|
+
[
|
|
184
|
+
/coc_coc\w+\/([\w.]+)/i, // Coc Coc Browser
|
|
185
|
+
],
|
|
186
|
+
[VERSION, [NAME, 'Coc Coc']],
|
|
187
|
+
[
|
|
188
|
+
/dolfin\/([\w.]+)/i, // Dolphin
|
|
189
|
+
],
|
|
190
|
+
[VERSION, [NAME, 'Dolphin']],
|
|
191
|
+
[
|
|
192
|
+
/coast\/([\w.]+)/i, // Opera Coast
|
|
193
|
+
],
|
|
194
|
+
[VERSION, [NAME, OPERA + ' Coast']],
|
|
195
|
+
[
|
|
196
|
+
/miuibrowser\/([\w.]+)/i, // MIUI Browser
|
|
197
|
+
],
|
|
198
|
+
[VERSION, [NAME, 'MIUI ' + BROWSER]],
|
|
199
|
+
[
|
|
200
|
+
/fxios\/([-\w.]+)/i, // Firefox for iOS
|
|
201
|
+
],
|
|
202
|
+
[VERSION, [NAME, FIREFOX]],
|
|
203
|
+
[
|
|
204
|
+
/\bqihu|(qi?ho?o?|360)browser/i, // 360
|
|
205
|
+
],
|
|
206
|
+
[[NAME, '360 ' + BROWSER]],
|
|
207
|
+
[/(oculus|samsung|sailfish)browser\/([\w.]+)/i],
|
|
208
|
+
[[NAME, /(.+)/, '$1 ' + BROWSER], VERSION],
|
|
209
|
+
[
|
|
210
|
+
// Oculus/Samsung/Sailfish Browser
|
|
211
|
+
/(comodo_dragon)\/([\w.]+)/i, // Comodo Dragon
|
|
212
|
+
],
|
|
213
|
+
[[NAME, /_/g, ' '], VERSION],
|
|
214
|
+
[
|
|
215
|
+
/(electron)\/([\w.]+) safari/i, // Electron-based App
|
|
216
|
+
/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i, // Tesla
|
|
217
|
+
/m?(qqbrowser|baiduboxapp|2345Explorer)[/ ]?([\w.]+)/i, // QQBrowser/Baidu App/2345 Browser
|
|
218
|
+
],
|
|
219
|
+
[NAME, VERSION],
|
|
220
|
+
[
|
|
221
|
+
/(metasr)[/ ]?([\w.]+)/i, // SouGouBrowser
|
|
222
|
+
/(lbbrowser)/i, // LieBao Browser
|
|
223
|
+
],
|
|
224
|
+
[NAME],
|
|
225
|
+
[
|
|
226
|
+
// WebView
|
|
227
|
+
/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i, // Facebook App for iOS & Android
|
|
228
|
+
],
|
|
229
|
+
[[NAME, 'Facebook'], VERSION],
|
|
230
|
+
[
|
|
231
|
+
/safari (line)\/([\w.]+)/i, // Line App for iOS
|
|
232
|
+
/\b(line)\/([\w.]+)\/iab/i, // Line App for Android
|
|
233
|
+
/(chromium|instagram)[/ ]([-\w.]+)/i, // Chromium/Instagram
|
|
234
|
+
],
|
|
235
|
+
[NAME, VERSION],
|
|
236
|
+
[
|
|
237
|
+
/\bgsa\/([\w.]+) .*safari\//i, // Google Search Appliance on iOS
|
|
238
|
+
],
|
|
239
|
+
[VERSION, [NAME, 'GSA']],
|
|
240
|
+
[
|
|
241
|
+
/headlesschrome(?:\/([\w.]+)| )/i, // Chrome Headless
|
|
242
|
+
],
|
|
243
|
+
[VERSION, [NAME, CHROME + ' Headless']],
|
|
244
|
+
[
|
|
245
|
+
/ wv\).+(chrome)\/([\w.]+)/i, // Chrome WebView
|
|
246
|
+
],
|
|
247
|
+
[[NAME, CHROME + ' WebView'], VERSION],
|
|
248
|
+
[
|
|
249
|
+
/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i, // Android Browser
|
|
250
|
+
],
|
|
251
|
+
[VERSION, [NAME, 'Android ' + BROWSER]],
|
|
252
|
+
[
|
|
253
|
+
/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i, // Chrome/OmniWeb/Arora/Tizen/Nokia
|
|
254
|
+
],
|
|
255
|
+
[NAME, VERSION],
|
|
256
|
+
[
|
|
257
|
+
/version\/([\w.]+) .*mobile\/\w+ (safari)/i, // Mobile Safari
|
|
258
|
+
],
|
|
259
|
+
[VERSION, [NAME, 'Mobile Safari']],
|
|
260
|
+
[
|
|
261
|
+
/version\/([\w.]+) .*(mobile ?safari|safari)/i, // Safari & Safari Mobile
|
|
262
|
+
],
|
|
263
|
+
[VERSION, NAME],
|
|
264
|
+
[
|
|
265
|
+
/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i, // Safari < 3.0
|
|
266
|
+
],
|
|
267
|
+
[NAME, [VERSION, strMapper, oldSafariMap]],
|
|
268
|
+
[/(webkit|khtml)\/([\w.]+)/i],
|
|
269
|
+
[NAME, VERSION],
|
|
270
|
+
[
|
|
271
|
+
// Gecko based
|
|
272
|
+
/(navigator|netscape\d?)\/([-\w.]+)/i, // Netscape
|
|
273
|
+
],
|
|
274
|
+
[[NAME, 'Netscape'], VERSION],
|
|
275
|
+
[
|
|
276
|
+
/mobile vr; rv:([\w.]+)\).+firefox/i, // Firefox Reality
|
|
277
|
+
],
|
|
278
|
+
[VERSION, [NAME, FIREFOX + ' Reality']],
|
|
279
|
+
[
|
|
280
|
+
/ekiohf.+(flow)\/([\w.]+)/i, // Flow
|
|
281
|
+
/(swiftfox)/i, // Swiftfox
|
|
282
|
+
/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,
|
|
283
|
+
// IceDragon/Iceweasel/Camino/Chimera/Fennec/Maemo/Minimo/Conkeror/Klar
|
|
284
|
+
/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,
|
|
285
|
+
// Firefox/SeaMonkey/K-Meleon/IceCat/IceApe/Firebird/Phoenix
|
|
286
|
+
/(firefox)\/([\w.]+)/i, // Other Firefox-based
|
|
287
|
+
/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i, // Mozilla
|
|
288
|
+
|
|
289
|
+
// Other
|
|
290
|
+
/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,
|
|
291
|
+
// Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Sleipnir/Obigo/Mosaic/Go/ICE/UP.Browser
|
|
292
|
+
/(links) \(([\w.]+)/i, // Links
|
|
293
|
+
],
|
|
294
|
+
[NAME, VERSION],
|
|
295
|
+
];
|
|
296
|
+
|
|
297
|
+
const _ua =
|
|
298
|
+
typeof window !== UNDEF_TYPE && window.navigator && window.navigator.userAgent
|
|
299
|
+
? window.navigator.userAgent
|
|
300
|
+
: EMPTY;
|
|
301
|
+
|
|
302
|
+
interface Browser {
|
|
303
|
+
name?: string;
|
|
304
|
+
version?: string;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function evaluateBrowserVersion(): Browser {
|
|
308
|
+
const browser: Browser = { name: '', version: '' };
|
|
309
|
+
rgxMapper(browser, _ua, browserRegexes);
|
|
310
|
+
browser.version = majorize(browser.version);
|
|
311
|
+
return browser;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
type Mobile = RegExpMatchArray | null;
|
|
315
|
+
|
|
316
|
+
export const isMobile = {
|
|
317
|
+
Android: function (): Mobile {
|
|
318
|
+
return navigator.userAgent.match(/Android/i);
|
|
319
|
+
},
|
|
320
|
+
BlackBerry: function (): Mobile {
|
|
321
|
+
return navigator.userAgent.match(/BlackBerry/i);
|
|
322
|
+
},
|
|
323
|
+
iOS: function (): Mobile {
|
|
324
|
+
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
|
|
325
|
+
},
|
|
326
|
+
Opera: function (): Mobile {
|
|
327
|
+
return navigator.userAgent.match(/Opera Mini/i);
|
|
328
|
+
},
|
|
329
|
+
Windows: function (): Mobile {
|
|
330
|
+
return (
|
|
331
|
+
navigator.userAgent.match(/IEMobile/i) ||
|
|
332
|
+
navigator.userAgent.match(/WPDesktop/i)
|
|
333
|
+
);
|
|
334
|
+
},
|
|
335
|
+
any: function (): Mobile {
|
|
336
|
+
return (
|
|
337
|
+
isMobile.Android() ||
|
|
338
|
+
isMobile.BlackBerry() ||
|
|
339
|
+
isMobile.iOS() ||
|
|
340
|
+
isMobile.Opera() ||
|
|
341
|
+
isMobile.Windows()
|
|
342
|
+
);
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
export default evaluateBrowserVersion;
|