@digigov/ui 0.8.3 → 0.9.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/CHANGELOG.md +34 -1
- package/app/App.js +6 -8
- package/app/Header/HeaderLogo.js +19 -39
- package/app/Header/HeaderSection.js +6 -43
- package/app/Header/HeaderTitle.js +14 -91
- package/app/Header/index.js +20 -67
- package/app/Header/index.spec.js +0 -1
- package/app/PageTitle.js +45 -81
- package/core/Accordion/index.js +103 -57
- package/core/Blockquote/index.js +17 -47
- package/core/Button/BackButton.js +20 -42
- package/core/Button/ButtonLink.js +28 -0
- package/core/Button/CallToAction.js +21 -12
- package/core/Button/Icon.js +5 -47
- package/core/Button/index.js +49 -99
- package/core/Details/index.js +22 -70
- package/core/Divider/index.js +9 -9
- package/core/ErrorSummary/index.js +8 -28
- package/core/List/List.js +8 -34
- package/core/List/ListItem.js +8 -38
- package/core/List/ListItemTitle.js +1 -3
- package/core/NavList/NavListItem.js +2 -2
- package/core/NotificationBanner/index.js +49 -48
- package/core/NotificationBanner/index.spec.js +3 -1
- package/core/ServiceBadge/index.js +17 -28
- package/core/SummaryList/index.js +57 -124
- package/core/Tabs/index.js +65 -98
- package/core/WarningText/index.js +8 -41
- package/es/app/App.js +6 -8
- package/es/app/Header/HeaderLogo.js +15 -30
- package/es/app/Header/HeaderSection.js +5 -36
- package/es/app/Header/HeaderTitle.js +13 -78
- package/es/app/Header/index.js +6 -56
- package/es/app/Header/index.spec.js +0 -1
- package/es/app/PageTitle.js +46 -74
- package/es/core/Accordion/index.js +64 -52
- package/es/core/Blockquote/index.js +13 -39
- package/es/core/Button/BackButton.js +18 -36
- package/es/core/Button/ButtonLink.js +16 -0
- package/es/core/Button/CallToAction.js +19 -9
- package/es/core/Button/Icon.js +5 -35
- package/es/core/Button/index.js +26 -87
- package/es/core/Details/index.js +5 -62
- package/es/core/Divider/index.js +7 -6
- package/es/core/ErrorSummary/index.js +2 -21
- package/es/core/List/List.js +2 -26
- package/es/core/List/ListItem.js +2 -30
- package/es/core/List/ListItemTitle.js +1 -3
- package/es/core/NavList/NavListItem.js +1 -1
- package/es/core/NotificationBanner/index.js +27 -45
- package/es/core/NotificationBanner/index.spec.js +3 -1
- package/es/core/ServiceBadge/index.js +15 -25
- package/es/core/SummaryList/index.js +7 -119
- package/es/core/Tabs/index.js +33 -93
- package/es/core/WarningText/index.js +2 -33
- package/es/govgr/Footer/Copyright.js +14 -36
- package/es/govgr/Footer/HellenicRepublicLogo.js +2 -30
- package/es/govgr/Footer/LicenseCCSA.js +2 -17
- package/es/govgr/Footer/index.js +23 -69
- package/es/govgr/Logo/index.js +2 -14
- package/es/hooks/useTogglableSections.js +96 -0
- package/es/layouts/Basic/Bottom/index.js +3 -13
- package/es/layouts/Basic/Content/index.js +14 -51
- package/es/layouts/Basic/Content/index.mdx +1 -1
- package/es/layouts/Basic/Main/index.js +3 -21
- package/es/layouts/Basic/Masthead/index.js +4 -47
- package/es/layouts/Basic/Masthead/index.mdx +1 -1
- package/es/layouts/Basic/Side/index.js +6 -28
- package/es/layouts/Basic/Top/index.js +7 -36
- package/es/layouts/Basic/index.js +3 -49
- package/es/themes/grnet.js +1 -1
- package/es/typography/Caption.js +5 -21
- package/es/typography/NormalText.js +2 -10
- package/es/typography/Paragraph.js +1 -29
- package/es/typography/Title.js +40 -87
- package/es/utils/withDeprecation.js +102 -0
- package/esm/app/App.js +6 -8
- package/esm/app/Header/HeaderLogo.js +15 -30
- package/esm/app/Header/HeaderSection.js +5 -36
- package/esm/app/Header/HeaderTitle.js +13 -78
- package/esm/app/Header/index.js +6 -56
- package/esm/app/Header/index.spec.js +0 -1
- package/esm/app/PageTitle.js +46 -74
- package/esm/core/Accordion/index.js +64 -52
- package/esm/core/Blockquote/index.js +13 -39
- package/esm/core/Button/BackButton.js +18 -36
- package/esm/core/Button/ButtonLink.js +16 -0
- package/esm/core/Button/CallToAction.js +19 -9
- package/esm/core/Button/Icon.js +5 -35
- package/esm/core/Button/index.js +26 -87
- package/esm/core/Details/index.js +5 -62
- package/esm/core/Divider/index.js +7 -6
- package/esm/core/ErrorSummary/index.js +2 -21
- package/esm/core/List/List.js +2 -26
- package/esm/core/List/ListItem.js +2 -30
- package/esm/core/List/ListItemTitle.js +1 -3
- package/esm/core/NavList/NavListItem.js +1 -1
- package/esm/core/NotificationBanner/index.js +27 -45
- package/esm/core/NotificationBanner/index.spec.js +3 -1
- package/esm/core/ServiceBadge/index.js +15 -25
- package/esm/core/SummaryList/index.js +7 -119
- package/esm/core/Tabs/index.js +33 -93
- package/esm/core/WarningText/index.js +2 -33
- package/esm/govgr/Footer/Copyright.js +14 -36
- package/esm/govgr/Footer/HellenicRepublicLogo.js +2 -30
- package/esm/govgr/Footer/LicenseCCSA.js +2 -17
- package/esm/govgr/Footer/index.js +23 -69
- package/esm/govgr/Logo/index.js +2 -14
- package/esm/hooks/useTogglableSections.js +96 -0
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/Bottom/index.js +3 -13
- package/esm/layouts/Basic/Content/index.js +14 -51
- package/esm/layouts/Basic/Content/index.mdx +1 -1
- package/esm/layouts/Basic/Main/index.js +3 -21
- package/esm/layouts/Basic/Masthead/index.js +4 -47
- package/esm/layouts/Basic/Masthead/index.mdx +1 -1
- package/esm/layouts/Basic/Side/index.js +6 -28
- package/esm/layouts/Basic/Top/index.js +7 -36
- package/esm/layouts/Basic/index.js +3 -49
- package/esm/themes/grnet.js +1 -1
- package/esm/typography/Caption.js +5 -21
- package/esm/typography/NormalText.js +2 -10
- package/esm/typography/Paragraph.js +1 -29
- package/esm/typography/Title.js +40 -87
- package/esm/utils/withDeprecation.js +102 -0
- package/govgr/Footer/Copyright.js +15 -42
- package/govgr/Footer/HellenicRepublicLogo.js +8 -39
- package/govgr/Footer/LicenseCCSA.js +2 -19
- package/govgr/Footer/index.js +23 -72
- package/govgr/Logo/index.js +9 -28
- package/hooks/useTogglableSections.js +108 -0
- package/layouts/Basic/Bottom/index.js +10 -19
- package/layouts/Basic/Content/index.js +17 -68
- package/layouts/Basic/Content/index.mdx +1 -1
- package/layouts/Basic/Main/index.js +10 -23
- package/layouts/Basic/Masthead/index.js +17 -54
- package/layouts/Basic/Masthead/index.mdx +1 -1
- package/layouts/Basic/Side/index.js +9 -35
- package/layouts/Basic/Top/index.js +7 -40
- package/layouts/Basic/index.js +4 -57
- package/{api → libs/ui/src/api}/APIErrors.d.ts +0 -0
- package/{api → libs/ui/src/api}/APIProvider.d.ts +0 -0
- package/{api → libs/ui/src/api}/fetchAPI.d.ts +0 -0
- package/{api → libs/ui/src/api}/index.d.ts +0 -0
- package/{api → libs/ui/src/api}/index.spec.d.ts +0 -0
- package/{api → libs/ui/src/api}/useResource.d.ts +0 -0
- package/{api → libs/ui/src/api}/useResourceAction.d.ts +0 -0
- package/{api → libs/ui/src/api}/useResourceQuery.d.ts +0 -0
- package/{api → libs/ui/src/api}/utils.d.ts +0 -0
- package/{app → libs/ui/src/app}/App.d.ts +0 -0
- package/libs/ui/src/app/Header/HeaderLogo.d.ts +3 -0
- package/libs/ui/src/app/Header/HeaderSection.d.ts +5 -0
- package/libs/ui/src/app/Header/HeaderTitle.d.ts +5 -0
- package/libs/ui/src/app/Header/index.d.ts +9 -0
- package/{app → libs/ui/src/app}/Header/index.spec.d.ts +0 -0
- package/{app → libs/ui/src/app}/NotFound/index.d.ts +0 -0
- package/{app → libs/ui/src/app}/OutdatedBrowserBanner.d.ts +0 -0
- package/libs/ui/src/app/PageTitle.d.ts +10 -0
- package/{app → libs/ui/src/app}/QrCodeScanner/index.d.ts +0 -0
- package/{app → libs/ui/src/app}/QrCodeScanner/index.spec.d.ts +0 -0
- package/{app → libs/ui/src/app}/i18n.d.ts +0 -0
- package/{app → libs/ui/src/app}/index.d.ts +0 -0
- package/libs/ui/src/core/Accordion/index.d.ts +21 -0
- package/{core → libs/ui/src/core}/Accordion/index.spec.d.ts +0 -0
- package/libs/ui/src/core/Blockquote/index.d.ts +3 -0
- package/{core → libs/ui/src/core}/Blockquote/index.spec.d.ts +0 -0
- package/libs/ui/src/core/Button/BackButton.d.ts +3 -0
- package/libs/ui/src/core/Button/ButtonLink.d.ts +4 -0
- package/libs/ui/src/core/Button/CallToAction.d.ts +7 -0
- package/libs/ui/src/core/Button/Icon.d.ts +2 -0
- package/libs/ui/src/core/Button/index.d.ts +14 -0
- package/{core → libs/ui/src/core}/Button/index.spec.d.ts +0 -0
- package/libs/ui/src/core/Details/index.d.ts +5 -0
- package/{core → libs/ui/src/core}/Details/index.spec.d.ts +0 -0
- package/libs/ui/src/core/Divider/index.d.ts +5 -0
- package/libs/ui/src/core/ErrorSummary/index.d.ts +3 -0
- package/{core → libs/ui/src/core}/ErrorSummary/index.spec.d.ts +0 -0
- package/{core → libs/ui/src/core}/Link/index.d.ts +0 -0
- package/{core → libs/ui/src/core}/Link/index.spec.d.ts +0 -0
- package/libs/ui/src/core/List/List.d.ts +3 -0
- package/libs/ui/src/core/List/ListItem.d.ts +3 -0
- package/{core → libs/ui/src/core}/List/ListItemContent.d.ts +0 -0
- package/{core → libs/ui/src/core}/List/ListItemIcon.d.ts +0 -0
- package/{core → libs/ui/src/core}/List/ListItemText.d.ts +1 -0
- package/{core → libs/ui/src/core}/List/ListItemTitle.d.ts +0 -0
- package/{core → libs/ui/src/core}/List/index.d.ts +0 -0
- package/{core → libs/ui/src/core}/List/index.spec.d.ts +0 -0
- package/{core → libs/ui/src/core}/NavList/NavList.d.ts +1 -1
- package/{core → libs/ui/src/core}/NavList/NavListContext.d.ts +0 -0
- package/{core → libs/ui/src/core}/NavList/NavListItem.d.ts +0 -0
- package/{core → libs/ui/src/core}/NavList/NavListItemBase.d.ts +1 -1
- package/{core → libs/ui/src/core}/NavList/NavListSubMenu.d.ts +0 -0
- package/{core → libs/ui/src/core}/NavList/index.d.ts +0 -0
- package/{core → libs/ui/src/core}/NavList/index.spec.d.ts +0 -0
- package/libs/ui/src/core/NotificationBanner/index.d.ts +17 -0
- package/{core → libs/ui/src/core}/NotificationBanner/index.spec.d.ts +0 -0
- package/libs/ui/src/core/ServiceBadge/index.d.ts +8 -0
- package/libs/ui/src/core/SummaryList/index.d.ts +7 -0
- package/{core → libs/ui/src/core}/SummaryList/index.spec.d.ts +0 -0
- package/libs/ui/src/core/Tabs/index.d.ts +16 -0
- package/libs/ui/src/core/WarningText/index.d.ts +3 -0
- package/{core → libs/ui/src/core}/WarningText/index.spec.d.ts +0 -0
- package/{core → libs/ui/src/core}/index.d.ts +0 -0
- package/{govgr → libs/ui/src/govgr}/Footer/Copyright.d.ts +1 -1
- package/libs/ui/src/govgr/Footer/HellenicRepublicLogo.d.ts +3 -0
- package/{govgr → libs/ui/src/govgr}/Footer/LicenseCCSA.d.ts +0 -0
- package/{govgr → libs/ui/src/govgr}/Footer/index.d.ts +3 -3
- package/{govgr → libs/ui/src/govgr}/Footer/logo.d.ts +0 -0
- package/libs/ui/src/govgr/Footer/logos/logo-el.d.ts +2 -0
- package/libs/ui/src/govgr/Footer/logos/logo-en.d.ts +2 -0
- package/libs/ui/src/govgr/Logo/index.d.ts +3 -0
- package/{govgr → libs/ui/src/govgr}/Logo/logo.d.ts +0 -0
- package/{govgr → libs/ui/src/govgr}/index.d.ts +0 -0
- package/{hooks → libs/ui/src/hooks}/useDebounce.d.ts +0 -0
- package/{hooks → libs/ui/src/hooks}/useLatest.d.ts +0 -0
- package/{hooks → libs/ui/src/hooks}/useOutdatedBrowserCheck.d.ts +0 -0
- package/{hooks → libs/ui/src/hooks}/useSearch.d.ts +0 -0
- package/libs/ui/src/hooks/useTogglableSections.d.ts +18 -0
- package/{index.d.ts → libs/ui/src/index.d.ts} +0 -0
- package/libs/ui/src/layouts/Basic/Bottom/index.d.ts +3 -0
- package/libs/ui/src/layouts/Basic/Content/index.d.ts +5 -0
- package/libs/ui/src/layouts/Basic/Main/index.d.ts +3 -0
- package/libs/ui/src/layouts/Basic/Masthead/index.d.ts +4 -0
- package/libs/ui/src/layouts/Basic/Side/index.d.ts +3 -0
- package/libs/ui/src/layouts/Basic/Top/index.d.ts +3 -0
- package/libs/ui/src/layouts/Basic/index.d.ts +8 -0
- package/{layouts → libs/ui/src/layouts}/Basic/index.spec.d.ts +0 -0
- package/{layouts → libs/ui/src/layouts}/index.d.ts +0 -0
- package/{locales → libs/ui/src/locales}/el.d.ts +0 -0
- package/{locales → libs/ui/src/locales}/en.d.ts +0 -0
- package/{router → libs/ui/src/router}/index.d.ts +0 -0
- package/{test-utils → libs/ui/src/test-utils}/delay.d.ts +0 -0
- package/{test-utils → libs/ui/src/test-utils}/mountWithTheme.d.ts +0 -0
- package/{themes → libs/ui/src/themes}/govgr.d.ts +0 -0
- package/{themes → libs/ui/src/themes}/grnet.d.ts +0 -0
- package/{themes → libs/ui/src/themes}/index.d.ts +0 -0
- package/libs/ui/src/typography/Caption.d.ts +7 -0
- package/libs/ui/src/typography/NormalText.d.ts +5 -0
- package/libs/ui/src/typography/Paragraph.d.ts +6 -0
- package/libs/ui/src/typography/Title.d.ts +9 -0
- package/{typography → libs/ui/src/typography}/index.d.ts +0 -0
- package/{utils → libs/ui/src/utils}/evaluateBrowserVersion.d.ts +0 -0
- package/libs/ui/src/utils/withDeprecation.d.ts +16 -0
- package/libs-ui/react-core/src/Accordion/index.d.ts +10 -0
- package/libs-ui/react-core/src/AccordionControls/index.d.ts +9 -0
- package/libs-ui/react-core/src/AccordionSection/index.d.ts +15 -0
- package/libs-ui/react-core/src/AccordionSectionContent/index.d.ts +10 -0
- package/libs-ui/react-core/src/AccordionSectionHeader/index.d.ts +9 -0
- package/libs-ui/react-core/src/Aside/index.d.ts +10 -0
- package/libs-ui/react-core/src/BackLink/index.d.ts +13 -0
- package/libs-ui/react-core/src/Blockquote/index.d.ts +9 -0
- package/libs-ui/react-core/src/Bottom/index.d.ts +9 -0
- package/libs-ui/react-core/src/Button/index.d.ts +21 -0
- package/libs-ui/react-core/src/ButtonLink/index.d.ts +17 -0
- package/libs-ui/react-core/src/CallToAction/index.d.ts +10 -0
- package/libs-ui/react-core/src/Container/index.d.ts +9 -0
- package/libs-ui/react-core/src/Copyright/index.d.ts +10 -0
- package/libs-ui/react-core/src/Details/index.d.ts +10 -0
- package/libs-ui/react-core/src/DetailsContent/index.d.ts +10 -0
- package/libs-ui/react-core/src/DetailsSummary/index.d.ts +9 -0
- package/libs-ui/react-core/src/ErrorSummary/index.d.ts +9 -0
- package/libs-ui/react-core/src/Footer/index.d.ts +9 -0
- package/libs-ui/react-core/src/FooterContainer/index.d.ts +9 -0
- package/libs-ui/react-core/src/FooterMeta/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterMetaItem/index.d.ts +14 -0
- package/libs-ui/react-core/src/GovGRLogo/index.d.ts +9 -0
- package/libs-ui/react-core/src/Grid/index.d.ts +20 -0
- package/libs-ui/react-core/src/Header/index.d.ts +10 -0
- package/libs-ui/react-core/src/HeaderLogo/index.d.ts +17 -0
- package/libs-ui/react-core/src/HeaderSection/index.d.ts +9 -0
- package/libs-ui/react-core/src/HeaderSubtitle/index.d.ts +9 -0
- package/libs-ui/react-core/src/HeaderTitle/index.d.ts +13 -0
- package/libs-ui/react-core/src/Heading/index.d.ts +21 -0
- package/libs-ui/react-core/src/HeadingCaption/index.d.ts +15 -0
- package/libs-ui/react-core/src/HellenicRepublicLogo/index.d.ts +20 -0
- package/{govgr/Footer/logos → libs-ui/react-core/src/HellenicRepublicLogo}/logo-el.d.ts +0 -0
- package/{govgr/Footer/logos → libs-ui/react-core/src/HellenicRepublicLogo}/logo-en.d.ts +0 -0
- package/libs-ui/react-core/src/Layout/index.d.ts +10 -0
- package/libs-ui/react-core/src/List/index.d.ts +18 -0
- package/libs-ui/react-core/src/ListItem/index.d.ts +9 -0
- package/libs-ui/react-core/src/Main/index.d.ts +9 -0
- package/libs-ui/react-core/src/Masthead/index.d.ts +9 -0
- package/libs-ui/react-core/src/MastheadBody/index.d.ts +9 -0
- package/libs-ui/react-core/src/NormalText/index.d.ts +28 -0
- package/libs-ui/react-core/src/NotificationBanner/index.d.ts +17 -0
- package/libs-ui/react-core/src/NotificationBannerContent/index.d.ts +12 -0
- package/libs-ui/react-core/src/NotificationBannerHeader/index.d.ts +11 -0
- package/libs-ui/react-core/src/NotificationBannerHeading/index.d.ts +11 -0
- package/libs-ui/react-core/src/Paragraph/index.d.ts +26 -0
- package/libs-ui/react-core/src/PhaseBanner/index.d.ts +15 -0
- package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +9 -0
- package/libs-ui/react-core/src/SectionBreak/index.d.ts +18 -0
- package/libs-ui/react-core/src/SummaryList/index.d.ts +10 -0
- package/libs-ui/react-core/src/SummaryListItem/index.d.ts +10 -0
- package/libs-ui/react-core/src/SummaryListItemAction/index.d.ts +10 -0
- package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +10 -0
- package/libs-ui/react-core/src/SummaryListItemValue/index.d.ts +9 -0
- package/libs-ui/react-core/src/Tabs/index.d.ts +10 -0
- package/libs-ui/react-core/src/TabsHeading/index.d.ts +15 -0
- package/libs-ui/react-core/src/TabsList/index.d.ts +10 -0
- package/libs-ui/react-core/src/TabsListItem/index.d.ts +20 -0
- package/libs-ui/react-core/src/TabsPanel/index.d.ts +16 -0
- package/libs-ui/react-core/src/Top/index.d.ts +9 -0
- package/libs-ui/react-core/src/WarningText/index.d.ts +11 -0
- package/package.json +3 -2
- package/themes/grnet.js +1 -1
- package/typography/Caption.js +5 -25
- package/typography/NormalText.js +9 -16
- package/typography/Paragraph.js +3 -39
- package/typography/Title.js +42 -88
- package/utils/withDeprecation.js +114 -0
- package/app/Header/HeaderLogo.d.ts +0 -12
- package/app/Header/HeaderSection.d.ts +0 -6
- package/app/Header/HeaderTitle.d.ts +0 -26
- package/app/Header/index.d.ts +0 -20
- package/app/PageTitle.d.ts +0 -21
- package/core/Accordion/index.d.ts +0 -23
- package/core/Blockquote/index.d.ts +0 -9
- package/core/Button/BackButton.d.ts +0 -4
- package/core/Button/CallToAction.d.ts +0 -8
- package/core/Button/Icon.d.ts +0 -9
- package/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
- package/core/Button/index.d.js +0 -1
- package/core/Button/index.d.ts +0 -26
- package/core/Details/index.d.ts +0 -17
- package/core/Divider/index.d.ts +0 -6
- package/core/ErrorSummary/index.d.ts +0 -8
- package/core/List/List.d.ts +0 -10
- package/core/List/ListItem.d.ts +0 -10
- package/core/NotificationBanner/index.d.ts +0 -7
- package/core/ServiceBadge/index.d.ts +0 -7
- package/core/SummaryList/index.d.ts +0 -29
- package/core/Tabs/index.d.ts +0 -21
- package/core/WarningText/index.d.ts +0 -8
- package/es/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
- package/es/core/Button/index.d.js +0 -0
- package/esm/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
- package/esm/core/Button/index.d.js +0 -0
- package/govgr/Footer/HellenicRepublicLogo.d.ts +0 -6
- package/govgr/Logo/index.d.ts +0 -3
- package/layouts/Basic/Bottom/index.d.ts +0 -5
- package/layouts/Basic/Content/index.d.ts +0 -9
- package/layouts/Basic/Main/index.d.ts +0 -8
- package/layouts/Basic/Masthead/index.d.ts +0 -7
- package/layouts/Basic/Side/index.d.ts +0 -14
- package/layouts/Basic/Top/index.d.ts +0 -13
- package/layouts/Basic/index.d.ts +0 -31
- package/typography/Caption.d.ts +0 -10
- package/typography/NormalText.d.ts +0 -6
- package/typography/Paragraph.d.ts +0 -7
- package/typography/Title.d.ts +0 -16
|
@@ -1,146 +1,79 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
23
|
-
|
|
24
|
-
var _excluded = ["children", "className", "handleClick"],
|
|
25
|
-
_excluded2 = ["children"],
|
|
26
|
-
_excluded3 = ["children", "className"];
|
|
27
|
-
var useSummaryListItemActionStyles = (0, _styles.makeStyles)(function () {
|
|
28
|
-
return {
|
|
29
|
-
action: {
|
|
30
|
-
'& :hover': {
|
|
31
|
-
cursor: 'pointer',
|
|
32
|
-
color: '#1d70b8'
|
|
33
|
-
},
|
|
34
|
-
textAlign: 'right',
|
|
35
|
-
color: '#4c2c92',
|
|
36
|
-
textDecoration: 'underline'
|
|
6
|
+
var _exportNames = {};
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
|
|
9
|
+
var _SummaryList = require("@digigov/react-core/SummaryList");
|
|
10
|
+
|
|
11
|
+
Object.keys(_SummaryList).forEach(function (key) {
|
|
12
|
+
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
14
|
+
if (key in exports && exports[key] === _SummaryList[key]) return;
|
|
15
|
+
Object.defineProperty(exports, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function get() {
|
|
18
|
+
return _SummaryList[key];
|
|
37
19
|
}
|
|
38
|
-
};
|
|
20
|
+
});
|
|
39
21
|
});
|
|
40
22
|
|
|
41
|
-
var
|
|
42
|
-
var children = _ref.children,
|
|
43
|
-
className = _ref.className,
|
|
44
|
-
handleClick = _ref.handleClick,
|
|
45
|
-
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
46
|
-
var classes = useSummaryListItemActionStyles();
|
|
47
|
-
return /*#__PURE__*/_react["default"].createElement(_Grid["default"], (0, _extends2["default"])({
|
|
48
|
-
item: true,
|
|
49
|
-
xs: 12,
|
|
50
|
-
sm: 2,
|
|
51
|
-
className: (0, _clsx["default"])(className, classes.action)
|
|
52
|
-
}, props), /*#__PURE__*/_react["default"].createElement("span", {
|
|
53
|
-
onClick: handleClick
|
|
54
|
-
}, children));
|
|
55
|
-
};
|
|
23
|
+
var _SummaryListItemAction = require("@digigov/react-core/SummaryListItemAction");
|
|
56
24
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
25
|
+
Object.keys(_SummaryListItemAction).forEach(function (key) {
|
|
26
|
+
if (key === "default" || key === "__esModule") return;
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
+
if (key in exports && exports[key] === _SummaryListItemAction[key]) return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function get() {
|
|
32
|
+
return _SummaryListItemAction[key];
|
|
63
33
|
}
|
|
64
|
-
};
|
|
34
|
+
});
|
|
65
35
|
});
|
|
66
36
|
|
|
67
|
-
var
|
|
68
|
-
var children = _ref2.children,
|
|
69
|
-
props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2);
|
|
70
|
-
var classes = useSummaryListItemValueStyles();
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement(_Grid["default"], (0, _extends2["default"])({
|
|
72
|
-
item: true,
|
|
73
|
-
xs: 12,
|
|
74
|
-
sm: 7,
|
|
75
|
-
className: classes.value
|
|
76
|
-
}, props), /*#__PURE__*/_react["default"].createElement("span", null, children));
|
|
77
|
-
};
|
|
37
|
+
var _SummaryListItem = require("@digigov/react-core/SummaryListItem");
|
|
78
38
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
39
|
+
Object.keys(_SummaryListItem).forEach(function (key) {
|
|
40
|
+
if (key === "default" || key === "__esModule") return;
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
42
|
+
if (key in exports && exports[key] === _SummaryListItem[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _SummaryListItem[key];
|
|
84
47
|
}
|
|
85
|
-
};
|
|
48
|
+
});
|
|
86
49
|
});
|
|
87
50
|
|
|
88
|
-
var
|
|
89
|
-
var children = _ref3.children,
|
|
90
|
-
className = _ref3.className,
|
|
91
|
-
props = (0, _objectWithoutProperties2["default"])(_ref3, _excluded3);
|
|
92
|
-
var classes = useSummaryListItemKeyStyles();
|
|
93
|
-
return /*#__PURE__*/_react["default"].createElement(_Grid["default"], (0, _extends2["default"])({
|
|
94
|
-
item: true,
|
|
95
|
-
xs: 12,
|
|
96
|
-
sm: 3,
|
|
97
|
-
className: (0, _clsx["default"])(className, classes.key)
|
|
98
|
-
}, props), children);
|
|
99
|
-
};
|
|
51
|
+
var _SummaryListItemKey = require("@digigov/react-core/SummaryListItemKey");
|
|
100
52
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
53
|
+
Object.keys(_SummaryListItemKey).forEach(function (key) {
|
|
54
|
+
if (key === "default" || key === "__esModule") return;
|
|
55
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
56
|
+
if (key in exports && exports[key] === _SummaryListItemKey[key]) return;
|
|
57
|
+
Object.defineProperty(exports, key, {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function get() {
|
|
60
|
+
return _SummaryListItemKey[key];
|
|
106
61
|
}
|
|
107
|
-
};
|
|
62
|
+
});
|
|
108
63
|
});
|
|
109
64
|
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
var SummaryListItem = function SummaryListItem(_ref4) {
|
|
113
|
-
var children = _ref4.children,
|
|
114
|
-
className = _ref4.className;
|
|
115
|
-
var classes = useSummaryListItemStyles();
|
|
116
|
-
return /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
117
|
-
item: true,
|
|
118
|
-
container: true,
|
|
119
|
-
className: className
|
|
120
|
-
}, children, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
121
|
-
xs: 12,
|
|
122
|
-
item: true,
|
|
123
|
-
className: classes.dividerWrapper
|
|
124
|
-
}, _ref5));
|
|
125
|
-
};
|
|
65
|
+
var _SummaryListItemValue = require("@digigov/react-core/SummaryListItemValue");
|
|
126
66
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
67
|
+
Object.keys(_SummaryListItemValue).forEach(function (key) {
|
|
68
|
+
if (key === "default" || key === "__esModule") return;
|
|
69
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
70
|
+
if (key in exports && exports[key] === _SummaryListItemValue[key]) return;
|
|
71
|
+
Object.defineProperty(exports, key, {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function get() {
|
|
74
|
+
return _SummaryListItemValue[key];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
134
77
|
});
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var children = _ref6.children,
|
|
138
|
-
className = _ref6.className;
|
|
139
|
-
var classes = useSummaryListStyles();
|
|
140
|
-
return /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
141
|
-
container: true,
|
|
142
|
-
className: (0, _clsx["default"])(className, classes.root)
|
|
143
|
-
}, children);
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
exports.SummaryList = SummaryList;
|
|
78
|
+
var _default = _SummaryList.SummaryList;
|
|
79
|
+
exports["default"] = _default;
|
package/core/Tabs/index.js
CHANGED
|
@@ -5,117 +5,84 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Object.defineProperty(exports, "Tabs", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _Tabs["default"];
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "TabsHeading", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _TabsHeading["default"];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "TabsList", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _TabsList["default"];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "TabsListItem", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _TabsListItem["default"];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "TabsPanel", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _TabsPanel["default"];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
exports.useTabs = exports["default"] = void 0;
|
|
12
39
|
|
|
13
40
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
41
|
|
|
15
|
-
var
|
|
42
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
43
|
|
|
17
|
-
var
|
|
44
|
+
var _react = require("react");
|
|
18
45
|
|
|
19
|
-
var
|
|
46
|
+
var _Tabs = _interopRequireDefault(require("@digigov/react-core/Tabs"));
|
|
20
47
|
|
|
21
|
-
var
|
|
48
|
+
var _TabsList = _interopRequireDefault(require("@digigov/react-core/TabsList"));
|
|
22
49
|
|
|
23
|
-
var
|
|
24
|
-
_excluded2 = ["children", "value", "index"];
|
|
25
|
-
var useTabsStyles = (0, _styles.makeStyles)(function (theme) {
|
|
26
|
-
return {
|
|
27
|
-
flexContainer: {
|
|
28
|
-
borderBottom: "1px solid ".concat(theme.palette.grey['400'])
|
|
29
|
-
},
|
|
30
|
-
indicator: {
|
|
31
|
-
display: 'none'
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
var useTabStyles = (0, _styles.makeStyles)(function (theme) {
|
|
36
|
-
return {
|
|
37
|
-
root: {
|
|
38
|
-
padding: theme.spacing(1)
|
|
39
|
-
},
|
|
40
|
-
selected: {
|
|
41
|
-
borderTop: "1px solid ".concat(theme.palette.grey['400']),
|
|
42
|
-
borderRight: "1px solid ".concat(theme.palette.grey['400']),
|
|
43
|
-
borderLeft: "1px solid ".concat(theme.palette.grey['400']),
|
|
44
|
-
borderBottom: "1px solid ".concat(theme.palette.common.white),
|
|
45
|
-
position: 'relative',
|
|
46
|
-
background: theme.palette.common.white,
|
|
47
|
-
top: 3,
|
|
48
|
-
'& .MuiTab-wrapper': {
|
|
49
|
-
textDecoration: 'none',
|
|
50
|
-
background: theme.palette.common.white
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
textColorInherit: {
|
|
54
|
-
opacity: 1
|
|
55
|
-
},
|
|
56
|
-
wrapper: (0, _extends2["default"])({
|
|
57
|
-
textDecoration: 'underline',
|
|
58
|
-
textTransform: 'none',
|
|
59
|
-
background: theme.palette.grey['200'],
|
|
60
|
-
color: theme.palette.text.primary,
|
|
61
|
-
padding: theme.spacing(1, 2)
|
|
62
|
-
}, theme.typography.body1)
|
|
63
|
-
};
|
|
64
|
-
});
|
|
65
|
-
var useTabPanelStyles = (0, _styles.makeStyles)(function (theme) {
|
|
66
|
-
return {
|
|
67
|
-
root: {
|
|
68
|
-
border: "1px solid ".concat(theme.palette.grey['400']),
|
|
69
|
-
borderTop: 0,
|
|
70
|
-
background: theme.palette.common.white,
|
|
71
|
-
padding: theme.spacing(3)
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
});
|
|
50
|
+
var _TabsListItem = _interopRequireDefault(require("@digigov/react-core/TabsListItem"));
|
|
75
51
|
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
id: "digigov-ui-tab-".concat(index),
|
|
79
|
-
'aria-controls': "digigov-ui-tabpanel-".concat(index)
|
|
80
|
-
};
|
|
81
|
-
}
|
|
52
|
+
var _TabsPanel = _interopRequireDefault(require("@digigov/react-core/TabsPanel"));
|
|
82
53
|
|
|
83
|
-
var
|
|
84
|
-
var children = _ref.children,
|
|
85
|
-
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
86
|
-
var classes = useTabsStyles();
|
|
87
|
-
return /*#__PURE__*/_react["default"].createElement(_Tabs["default"], (0, _extends2["default"])({
|
|
88
|
-
classes: classes,
|
|
89
|
-
indicatorColor: "primary"
|
|
90
|
-
}, props), children);
|
|
91
|
-
};
|
|
54
|
+
var _TabsHeading = _interopRequireDefault(require("@digigov/react-core/TabsHeading"));
|
|
92
55
|
|
|
93
|
-
|
|
56
|
+
var _useTogglableSections2 = require("@digigov/ui/hooks/useTogglableSections");
|
|
94
57
|
|
|
95
|
-
var
|
|
96
|
-
var classes = useTabStyles();
|
|
97
|
-
return /*#__PURE__*/_react["default"].createElement(_Tab["default"], (0, _extends2["default"])({
|
|
98
|
-
classes: classes
|
|
99
|
-
}, props));
|
|
100
|
-
};
|
|
58
|
+
var _excluded = ["register", "opened"];
|
|
101
59
|
|
|
102
|
-
|
|
60
|
+
var useTabs = function useTabs() {
|
|
61
|
+
var _useTogglableSections = (0, _useTogglableSections2.useTogglableSections)({
|
|
62
|
+
singleOpen: true,
|
|
63
|
+
toggleProperty: 'selected',
|
|
64
|
+
onToggleProperty: 'onClick',
|
|
65
|
+
firstOpen: true,
|
|
66
|
+
ariaNavigation: true
|
|
67
|
+
}),
|
|
68
|
+
register = _useTogglableSections.register,
|
|
69
|
+
opened = _useTogglableSections.opened,
|
|
70
|
+
rest = (0, _objectWithoutProperties2["default"])(_useTogglableSections, _excluded);
|
|
103
71
|
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}, other), value === index && children);
|
|
72
|
+
var panel = (0, _react.useCallback)(function (key) {
|
|
73
|
+
return {
|
|
74
|
+
active: opened[key],
|
|
75
|
+
id: key,
|
|
76
|
+
tabIndex: opened[key] ? 1 : -1
|
|
77
|
+
};
|
|
78
|
+
}, [opened]);
|
|
79
|
+
return (0, _extends2["default"])({
|
|
80
|
+
register: register,
|
|
81
|
+
opened: opened,
|
|
82
|
+
panel: panel
|
|
83
|
+
}, rest);
|
|
117
84
|
};
|
|
118
85
|
|
|
119
|
-
exports.
|
|
120
|
-
var _default =
|
|
86
|
+
exports.useTabs = useTabs;
|
|
87
|
+
var _default = _Tabs["default"];
|
|
121
88
|
exports["default"] = _default;
|
|
@@ -5,48 +5,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var _styles = require("@material-ui/core/styles");
|
|
15
|
-
|
|
16
|
-
var _Error = _interopRequireDefault(require("@material-ui/icons/Error"));
|
|
17
|
-
|
|
18
|
-
var useWarningTextStyles = (0, _styles.makeStyles)(function (theme) {
|
|
19
|
-
return {
|
|
20
|
-
root: {
|
|
21
|
-
margin: theme.spacing(4, 0)
|
|
22
|
-
},
|
|
23
|
-
icon: {
|
|
24
|
-
"float": 'left',
|
|
25
|
-
marginLeft: theme.spacing(1)
|
|
26
|
-
},
|
|
27
|
-
text: {
|
|
28
|
-
paddingLeft: theme.spacing(8)
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
name: 'MuiWarningText'
|
|
8
|
+
Object.defineProperty(exports, "WarningText", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _WarningText["default"];
|
|
12
|
+
}
|
|
33
13
|
});
|
|
34
|
-
exports
|
|
14
|
+
exports["default"] = void 0;
|
|
35
15
|
|
|
36
|
-
var
|
|
37
|
-
var className = _ref.className,
|
|
38
|
-
children = _ref.children;
|
|
39
|
-
var classes = useWarningTextStyles();
|
|
40
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
-
className: (0, _clsx["default"])(className, classes.root)
|
|
42
|
-
}, /*#__PURE__*/_react["default"].createElement(_Error["default"], {
|
|
43
|
-
className: classes.icon,
|
|
44
|
-
fontSize: "large"
|
|
45
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
46
|
-
className: classes.text
|
|
47
|
-
}, children));
|
|
48
|
-
};
|
|
16
|
+
var _WarningText = _interopRequireDefault(require("@digigov/react-core/WarningText"));
|
|
49
17
|
|
|
50
|
-
|
|
51
|
-
var _default = WarningText;
|
|
18
|
+
var _default = _WarningText["default"];
|
|
52
19
|
exports["default"] = _default;
|
package/es/app/App.js
CHANGED
|
@@ -5,25 +5,23 @@ export var useAppStyles = makeStyles({
|
|
|
5
5
|
root: {}
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
var _ref2 = /*#__PURE__*/React.createElement(CssBaseline, null);
|
|
9
|
-
|
|
10
8
|
var App = function App(_ref) {
|
|
11
9
|
var theme = _ref.theme,
|
|
12
10
|
children = _ref.children;
|
|
13
11
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
14
12
|
theme: theme
|
|
15
|
-
},
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Suspense, {
|
|
16
14
|
fallback: 'loading...'
|
|
17
15
|
}, children));
|
|
18
16
|
};
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
var _ref3 = /*#__PURE__*/React.createElement(CssBaseline, null);
|
|
21
19
|
|
|
22
|
-
export var StaticApp = function StaticApp(
|
|
23
|
-
var theme =
|
|
24
|
-
children =
|
|
20
|
+
export var StaticApp = function StaticApp(_ref2) {
|
|
21
|
+
var theme = _ref2.theme,
|
|
22
|
+
children = _ref2.children;
|
|
25
23
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26
24
|
theme: theme
|
|
27
|
-
},
|
|
25
|
+
}, _ref3, children);
|
|
28
26
|
};
|
|
29
27
|
export default App;
|
|
@@ -1,32 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import CoreHeaderLogo from '@digigov/react-core/HeaderLogo';
|
|
2
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
|
+
export var HeaderLogo = withDeprecation(CoreHeaderLogo, {
|
|
4
|
+
name: 'HeaderLogo',
|
|
5
|
+
props: {
|
|
6
|
+
height: {
|
|
7
|
+
warning: true
|
|
8
|
+
},
|
|
9
|
+
linkprops: {
|
|
10
|
+
warning: true
|
|
11
|
+
},
|
|
12
|
+
label: {
|
|
13
|
+
warning: true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
11
16
|
});
|
|
12
|
-
export var HeaderLogo = function HeaderLogo(_ref) {
|
|
13
|
-
var _ref$href = _ref.href,
|
|
14
|
-
href = _ref$href === void 0 ? '' : _ref$href,
|
|
15
|
-
src = _ref.src,
|
|
16
|
-
label = _ref.label,
|
|
17
|
-
height = _ref.height,
|
|
18
|
-
className = _ref.className,
|
|
19
|
-
children = _ref.children,
|
|
20
|
-
linkProps = _ref.linkProps;
|
|
21
|
-
var styles = useHeaderLogoStyles();
|
|
22
|
-
return /*#__PURE__*/React.createElement(HeaderTitle, {
|
|
23
|
-
linkComponent: "a",
|
|
24
|
-
href: href,
|
|
25
|
-
linkProps: linkProps,
|
|
26
|
-
className: clsx(className, styles.root)
|
|
27
|
-
}, src ? /*#__PURE__*/React.createElement("img", {
|
|
28
|
-
src: src,
|
|
29
|
-
height: height || 40
|
|
30
|
-
}) : children || label || '');
|
|
31
|
-
};
|
|
32
17
|
export default HeaderLogo;
|
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import Grid from '@material-ui/core/Grid';
|
|
7
|
-
import { makeStyles } from '@material-ui/core';
|
|
8
|
-
export var useHeaderSectionStyles = makeStyles(function (theme) {
|
|
9
|
-
return {
|
|
10
|
-
root: {
|
|
11
|
-
display: 'flex',
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
padding: theme.spacing(2, 0)
|
|
14
|
-
},
|
|
15
|
-
container: {
|
|
16
|
-
padding: theme.spacing(2, 0)
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}, {
|
|
20
|
-
name: 'MuiHeaderSection'
|
|
1
|
+
import CoreHeaderSection from '@digigov/react-core/HeaderSection';
|
|
2
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
|
+
export var HeaderSection = withDeprecation(CoreHeaderSection, {
|
|
4
|
+
name: 'HeaderSection',
|
|
5
|
+
rename: 'HeaderSection'
|
|
21
6
|
});
|
|
22
|
-
export var HeaderSection = function HeaderSection(_ref) {
|
|
23
|
-
var children = _ref.children,
|
|
24
|
-
className = _ref.className,
|
|
25
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
-
|
|
27
|
-
var styles = useHeaderSectionStyles();
|
|
28
|
-
return /*#__PURE__*/React.createElement(Grid, _extends({
|
|
29
|
-
item: true,
|
|
30
|
-
className: clsx(className, styles.root)
|
|
31
|
-
}, props), /*#__PURE__*/React.createElement(Grid, {
|
|
32
|
-
container: true,
|
|
33
|
-
alignItems: "center",
|
|
34
|
-
spacing: 2,
|
|
35
|
-
className: styles.container
|
|
36
|
-
}, children));
|
|
37
|
-
};
|
|
38
7
|
export default HeaderSection;
|
|
@@ -1,82 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import Title from '@digigov/ui/typography/Title';
|
|
9
|
-
import Link from '@digigov/ui/core/Link';
|
|
10
|
-
import Grid from '@material-ui/core/Grid';
|
|
11
|
-
import { makeStyles } from '@material-ui/core';
|
|
12
|
-
export var useHeaderTitleStyles = makeStyles(function (theme) {
|
|
13
|
-
return {
|
|
14
|
-
link: {},
|
|
15
|
-
grid: {
|
|
16
|
-
display: 'flex',
|
|
17
|
-
alignItems: 'center'
|
|
1
|
+
import CoreHeaderTitle from '@digigov/react-core/HeaderTitle';
|
|
2
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
|
+
export var HeaderTitle = withDeprecation(CoreHeaderTitle, {
|
|
4
|
+
name: 'Header',
|
|
5
|
+
props: {
|
|
6
|
+
xs: {
|
|
7
|
+
error: true
|
|
18
8
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
lineHeight: '1.5rem'
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
name: 'MuiHeaderTitle'
|
|
29
|
-
});
|
|
30
|
-
export var HeaderTitle = function HeaderTitle(_ref) {
|
|
31
|
-
var children = _ref.children,
|
|
32
|
-
className = _ref.className,
|
|
33
|
-
_ref$href = _ref.href,
|
|
34
|
-
href = _ref$href === void 0 ? '/' : _ref$href,
|
|
35
|
-
_ref$linkComponent = _ref.linkComponent,
|
|
36
|
-
linkComponent = _ref$linkComponent === void 0 ? Link : _ref$linkComponent,
|
|
37
|
-
linkProps = _ref.linkProps,
|
|
38
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
39
|
-
|
|
40
|
-
var styles = useHeaderTitleStyles(props);
|
|
41
|
-
var xs = props.xs === undefined ? 'auto' : props.xs;
|
|
42
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
43
|
-
item: true,
|
|
44
|
-
xs: xs,
|
|
45
|
-
className: clsx(className, styles.grid)
|
|
46
|
-
}, /*#__PURE__*/React.createElement(MuiButton, _extends({
|
|
47
|
-
className: styles.link,
|
|
48
|
-
disableRipple: true,
|
|
49
|
-
component: linkComponent,
|
|
50
|
-
href: href
|
|
51
|
-
}, linkProps), /*#__PURE__*/React.createElement(Title, {
|
|
52
|
-
className: styles.root,
|
|
53
|
-
size: "md"
|
|
54
|
-
}, children)));
|
|
55
|
-
};
|
|
56
|
-
export var useHeaderSubtitleStyles = makeStyles(function (theme) {
|
|
57
|
-
return {
|
|
58
|
-
root: {
|
|
59
|
-
marginLeft: theme.spacing(1),
|
|
60
|
-
fontSize: '1.2rem',
|
|
61
|
-
'& a': {
|
|
62
|
-
color: theme.palette.common.white,
|
|
63
|
-
'&:visited': {
|
|
64
|
-
color: theme.palette.common.white
|
|
65
|
-
}
|
|
66
|
-
}
|
|
9
|
+
linkProps: {
|
|
10
|
+
error: 'The `linkProps` property is deprecated. You can use native anchor link props instead.'
|
|
11
|
+
},
|
|
12
|
+
linkComponent: {
|
|
13
|
+
error: 'The `linkComponent` property is deprecated.'
|
|
67
14
|
}
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
70
|
-
name: 'MuiHeaderSubtitle'
|
|
15
|
+
}
|
|
71
16
|
});
|
|
72
|
-
export var HeaderSubtitle = function HeaderSubtitle(_ref2) {
|
|
73
|
-
var children = _ref2.children,
|
|
74
|
-
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
75
|
-
|
|
76
|
-
var styles = useHeaderSubtitleStyles(props);
|
|
77
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
78
|
-
item: true,
|
|
79
|
-
className: styles.root
|
|
80
|
-
}, children);
|
|
81
|
-
};
|
|
82
17
|
export default HeaderTitle;
|