@digigov/ui 0.30.2 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/admin/AccessibilityMenu/index.d.ts +13 -0
- package/admin/AccessibilityMenu/index.js +170 -0
- package/admin/AutoComplete/index.d.ts +2 -2
- package/admin/Chip/index.d.ts +1 -0
- package/admin/Chip/index.js +14 -0
- package/admin/Drawer/__stories__/Default.js +18 -7
- package/admin/Dropdown/__stories__/AlignRight.js +0 -2
- package/admin/Dropdown/__stories__/Default.js +0 -2
- package/admin/Dropdown/__stories__/PlacementTop.js +0 -2
- package/admin/FilterSection/index.d.ts +1 -2
- package/admin/FilterSection/index.js +4 -18
- package/admin/Modal/index.d.ts +2 -2
- package/admin/Modal/index.js +17 -12
- package/admin/Pagination/__stories__/Default.js +4 -7
- package/admin/Pagination/__stories__/PaginationSmall.js +2 -3
- package/app/Footer/__stories__/FooterAllInclusive.js +1 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
- package/app/Header/__stories__/WithNavigation.js +10 -8
- package/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/app/QrCodeViewer/QRCode.stories.d.ts +0 -1
- package/app/QrCodeViewer/index.d.ts +1 -2
- package/app/QrCodeViewer/index.js +10 -10
- package/app/ThemeOptionsForm/index.d.ts +2 -0
- package/app/ThemeOptionsForm/index.js +243 -0
- package/app/ThemePaletteForm/index.d.ts +2 -0
- package/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +9 -8
- package/app/index.d.ts +2 -1
- package/app/index.js +17 -4
- package/core/Accordion/index.d.ts +2 -2
- package/core/Accordion/index.js +7 -7
- package/core/Divider/__stories__/Default.js +5 -10
- package/core/ErrorSummary/__stories__/Default.js +3 -3
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
- package/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
- package/core/Link/__stories__/DarkBackground.js +6 -2
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
- package/core/NavList/NavList.stories.d.ts +3 -1
- package/core/NavList/NavList.stories.js +32 -4
- package/core/NavList/NavList.stories.playwright.json +6 -6
- package/core/NavList/{NavListAuto.js → NavListAuto/NavListAuto.js} +11 -5
- package/core/NavList/{NavListBase.d.ts → NavListAuto/NavListBaseAuto.d.ts} +1 -1
- package/core/NavList/{NavListBase.js → NavListAuto/NavListBaseAuto.js} +6 -4
- package/core/NavList/{NavListContext.d.ts → NavListAuto/NavListContextAuto.d.ts} +7 -4
- package/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +23 -11
- package/core/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +11 -0
- package/core/NavList/{NavListSubMenu.js → NavListAuto/NavListItemAnchorAuto.js} +25 -21
- package/core/NavList/{NavListItemAuto.js → NavListAuto/NavListItemAuto.js} +23 -20
- package/core/NavList/NavListAuto/NavListItemButtonAuto.d.ts +12 -0
- package/core/NavList/NavListAuto/NavListItemButtonAuto.js +50 -0
- package/core/NavList/NavListAuto/NavListMenuAuto.d.ts +11 -0
- package/core/NavList/NavListAuto/NavListMenuAuto.js +59 -0
- package/core/NavList/NavListAuto/NavListSubMenuAuto.d.ts +9 -0
- package/core/NavList/NavListAuto/NavListSubMenuAuto.js +46 -0
- package/core/NavList/NavListItem.js +6 -5
- package/core/NavList/NavListItemBase.d.ts +1 -1
- package/core/NavList/NavListItemBase.js +3 -3
- package/core/NavList/NavMenuContainerContentList.d.ts +3 -1
- package/core/NavList/NavMenuContainerContentList.js +76 -3
- package/core/NavList/__stories__/Default.js +19 -6
- package/core/NavList/__stories__/NavHorizontalLayout.js +17 -5
- package/core/NavList/__stories__/NavListEpathlaExample.js +24 -12
- package/core/NavList/__stories__/NavListHorizontalAutoExample.d.ts +2 -0
- package/core/NavList/__stories__/NavListHorizontalAutoExample.js +67 -0
- package/core/NavList/__stories__/NavListSecondaryAutoExample.d.ts +2 -0
- package/core/NavList/__stories__/NavListSecondaryAutoExample.js +281 -0
- package/core/NavList/__stories__/NavListVerticalAutoExample.d.ts +2 -0
- package/core/NavList/__stories__/NavListVerticalAutoExample.js +67 -0
- package/core/NavList/index.d.ts +2 -5
- package/core/NavList/index.js +5 -33
- package/core/NavList/types.d.ts +20 -10
- package/core/Tabs/__stories__/Default.js +5 -5
- package/core/Tabs/index.d.ts +2 -2
- package/core/Tabs/index.js +5 -7
- package/es/admin/AccessibilityMenu/index.js +13 -0
- package/es/admin/Chip/index.js +1 -0
- package/es/admin/Drawer/__stories__/Default.js +19 -8
- package/es/admin/Dropdown/__stories__/AlignRight.js +0 -2
- package/es/admin/Dropdown/__stories__/Default.js +0 -2
- package/es/admin/Dropdown/__stories__/PlacementTop.js +0 -2
- package/es/admin/FilterSection/index.js +1 -2
- package/es/admin/Modal/index.js +16 -11
- package/es/admin/Pagination/__stories__/Default.js +4 -7
- package/es/admin/Pagination/__stories__/PaginationSmall.js +2 -3
- package/es/app/Footer/__stories__/FooterAllInclusive.js +1 -0
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
- package/es/app/Header/__stories__/WithNavigation.js +10 -8
- package/es/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/es/app/QrCodeViewer/index.js +8 -9
- package/es/app/ThemeOptionsForm/index.js +215 -0
- package/es/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +5 -4
- package/es/app/index.js +2 -1
- package/es/core/Accordion/index.js +7 -7
- package/es/core/Divider/__stories__/Default.js +5 -10
- package/es/core/ErrorSummary/__stories__/Default.js +3 -3
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
- package/es/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
- package/es/core/Link/__stories__/DarkBackground.js +6 -2
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
- package/es/core/NavList/NavList.stories.js +3 -1
- package/es/core/NavList/NavList.stories.playwright.json +6 -6
- package/{esm/core/NavList → es/core/NavList/NavListAuto}/NavListAuto.js +11 -5
- package/{esm/core/NavList/NavListBase.js → es/core/NavList/NavListAuto/NavListBaseAuto.js} +4 -2
- package/es/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +20 -8
- package/es/core/NavList/NavListAuto/NavListItemAnchorAuto.js +29 -0
- package/es/core/NavList/NavListAuto/NavListItemAuto.js +42 -0
- package/es/core/NavList/NavListAuto/NavListItemButtonAuto.js +32 -0
- package/es/core/NavList/NavListAuto/NavListMenuAuto.js +39 -0
- package/es/core/NavList/NavListAuto/NavListSubMenuAuto.js +28 -0
- package/es/core/NavList/NavListItem.js +8 -7
- package/es/core/NavList/NavListItemBase.js +3 -3
- package/es/core/NavList/NavMenuContainerContentList.js +67 -1
- package/es/core/NavList/__stories__/Default.js +19 -6
- package/es/core/NavList/__stories__/NavHorizontalLayout.js +17 -5
- package/es/core/NavList/__stories__/NavListEpathlaExample.js +24 -12
- package/es/core/NavList/__stories__/NavListHorizontalAutoExample.js +51 -0
- package/es/core/NavList/__stories__/NavListSecondaryAutoExample.js +255 -0
- package/es/core/NavList/__stories__/NavListVerticalAutoExample.js +51 -0
- package/es/core/NavList/index.js +2 -5
- package/es/core/Tabs/__stories__/Default.js +5 -5
- package/es/core/Tabs/index.js +5 -7
- package/es/hooks/useFontSize.js +10 -0
- package/es/hooks/useHighlightLinks.js +38 -0
- package/es/hooks/useLetterSpacing.js +10 -0
- package/es/hooks/useLineHeight.js +10 -0
- package/es/hooks/useNavList.js +10 -7
- package/es/hooks/useTheme.js +19 -11
- package/es/hooks/useTogglableNav.js +292 -0
- package/es/hooks/{useTogglableSections.js → useTogglableTab.js} +2 -8
- package/es/hooks/useVariantVars.js +30 -0
- package/es/layouts/Basic/__stories__/Default.js +2 -2
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
- package/es/registry.js +36 -14
- package/es/typography/NormalText/__stories__/FontSizes.js +18 -6
- package/es/typography/NormalText/__stories__/FontWeight.js +3 -1
- package/es/typography/NormalText/__stories__/Variants.js +3 -1
- package/esm/admin/AccessibilityMenu/index.js +13 -0
- package/esm/admin/Chip/index.js +1 -0
- package/esm/admin/Drawer/__stories__/Default.js +19 -8
- package/esm/admin/Dropdown/__stories__/AlignRight.js +0 -2
- package/esm/admin/Dropdown/__stories__/Default.js +0 -2
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +0 -2
- package/esm/admin/FilterSection/index.js +1 -2
- package/esm/admin/Modal/index.js +16 -11
- package/esm/admin/Pagination/__stories__/Default.js +4 -7
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +2 -3
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +1 -0
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
- package/esm/app/Header/__stories__/WithNavigation.js +10 -8
- package/esm/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/esm/app/QrCodeViewer/index.js +8 -9
- package/esm/app/ThemeOptionsForm/index.js +215 -0
- package/esm/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +5 -4
- package/esm/app/index.js +2 -1
- package/esm/core/Accordion/index.js +7 -7
- package/esm/core/Divider/__stories__/Default.js +5 -10
- package/esm/core/ErrorSummary/__stories__/Default.js +3 -3
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
- package/esm/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
- package/esm/core/Link/__stories__/DarkBackground.js +6 -2
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
- package/esm/core/NavList/NavList.stories.js +3 -1
- package/esm/core/NavList/NavList.stories.playwright.json +6 -6
- package/{es/core/NavList → esm/core/NavList/NavListAuto}/NavListAuto.js +11 -5
- package/{es/core/NavList/NavListBase.js → esm/core/NavList/NavListAuto/NavListBaseAuto.js} +4 -2
- package/esm/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +20 -8
- package/esm/core/NavList/NavListAuto/NavListItemAnchorAuto.js +29 -0
- package/esm/core/NavList/NavListAuto/NavListItemAuto.js +42 -0
- package/esm/core/NavList/NavListAuto/NavListItemButtonAuto.js +32 -0
- package/esm/core/NavList/NavListAuto/NavListMenuAuto.js +39 -0
- package/esm/core/NavList/NavListAuto/NavListSubMenuAuto.js +28 -0
- package/esm/core/NavList/NavListItem.js +8 -7
- package/esm/core/NavList/NavListItemBase.js +3 -3
- package/esm/core/NavList/NavMenuContainerContentList.js +67 -1
- package/esm/core/NavList/__stories__/Default.js +19 -6
- package/esm/core/NavList/__stories__/NavHorizontalLayout.js +17 -5
- package/esm/core/NavList/__stories__/NavListEpathlaExample.js +24 -12
- package/esm/core/NavList/__stories__/NavListHorizontalAutoExample.js +51 -0
- package/esm/core/NavList/__stories__/NavListSecondaryAutoExample.js +255 -0
- package/esm/core/NavList/__stories__/NavListVerticalAutoExample.js +51 -0
- package/esm/core/NavList/index.js +2 -5
- package/esm/core/Tabs/__stories__/Default.js +5 -5
- package/esm/core/Tabs/index.js +5 -7
- package/esm/hooks/useFontSize.js +10 -0
- package/esm/hooks/useHighlightLinks.js +38 -0
- package/esm/hooks/useLetterSpacing.js +10 -0
- package/esm/hooks/useLineHeight.js +10 -0
- package/esm/hooks/useNavList.js +10 -7
- package/esm/hooks/useTheme.js +19 -11
- package/esm/hooks/useTogglableNav.js +292 -0
- package/esm/hooks/{useTogglableSections.js → useTogglableTab.js} +2 -8
- package/esm/hooks/useVariantVars.js +30 -0
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/__stories__/Default.js +2 -2
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
- package/esm/registry.js +36 -14
- package/esm/typography/NormalText/__stories__/FontSizes.js +18 -6
- package/esm/typography/NormalText/__stories__/FontWeight.js +3 -1
- package/esm/typography/NormalText/__stories__/Variants.js +3 -1
- package/hooks/useFontSize.d.ts +6 -0
- package/hooks/useFontSize.js +23 -0
- package/hooks/useHighlightLinks.d.ts +8 -0
- package/hooks/useHighlightLinks.js +52 -0
- package/hooks/useLetterSpacing.d.ts +6 -0
- package/hooks/useLetterSpacing.js +23 -0
- package/hooks/useLineHeight.d.ts +6 -0
- package/hooks/useLineHeight.js +23 -0
- package/hooks/useNavList.d.ts +2 -2
- package/hooks/useNavList.js +11 -8
- package/hooks/useTheme.d.ts +4 -4
- package/hooks/useTheme.js +19 -12
- package/hooks/useTogglableNav.d.ts +25 -0
- package/hooks/useTogglableNav.js +305 -0
- package/hooks/{useTogglableSections.d.ts → useTogglableTab.d.ts} +4 -3
- package/hooks/{useTogglableSections.js → useTogglableTab.js} +3 -9
- package/hooks/useVariantVars.d.ts +11 -0
- package/hooks/useVariantVars.js +41 -0
- package/layouts/Basic/__stories__/Default.js +2 -2
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
- package/package.json +3 -3
- package/registry.d.ts +18 -7
- package/registry.js +49 -16
- package/src/admin/AccessibilityMenu/index.tsx +14 -0
- package/src/admin/AutoComplete/index.tsx +2 -2
- package/src/admin/Chip/index.tsx +1 -0
- package/src/admin/Drawer/__stories__/Default.tsx +23 -9
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +2 -2
- package/src/admin/Dropdown/__stories__/Default.tsx +2 -2
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +2 -2
- package/src/admin/FilterSection/index.tsx +1 -2
- package/src/admin/Modal/index.tsx +43 -39
- package/src/admin/Pagination/__stories__/Default.tsx +4 -4
- package/src/admin/Pagination/__stories__/PaginationSmall.tsx +2 -2
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +1 -1
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +1 -1
- package/src/app/Header/__stories__/WithNavigation.tsx +8 -8
- package/src/app/QrCodeScanner/__stories__/Default.tsx +2 -2
- package/src/app/QrCodeViewer/index.tsx +16 -14
- package/src/app/ThemeOptionsForm/index.tsx +220 -0
- package/src/app/{ThemeSelectorOptions → ThemePaletteForm}/index.tsx +3 -3
- package/src/app/index.ts +2 -1
- package/src/core/Accordion/index.tsx +5 -11
- package/src/core/Divider/__stories__/Default.tsx +5 -5
- package/src/core/ErrorSummary/__stories__/Default.tsx +2 -2
- package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -2
- package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +2 -2
- package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +2 -2
- package/src/core/Link/__stories__/DarkBackground.tsx +2 -3
- package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +2 -3
- package/src/core/NavList/NavList.stories.js +3 -1
- package/src/core/NavList/NavList.stories.playwright.json +6 -6
- package/src/core/NavList/NavListAuto/NavListAuto.tsx +34 -0
- package/src/core/NavList/{NavListBase.tsx → NavListAuto/NavListBaseAuto.tsx} +2 -2
- package/src/core/NavList/{NavListContext.tsx → NavListAuto/NavListContextAuto.tsx} +26 -11
- package/src/core/NavList/NavListAuto/NavListItemAnchorAuto.tsx +41 -0
- package/src/core/NavList/NavListAuto/NavListItemAuto.tsx +51 -0
- package/src/core/NavList/NavListAuto/NavListItemButtonAuto.tsx +53 -0
- package/src/core/NavList/NavListAuto/NavListMenuAuto.tsx +51 -0
- package/src/core/NavList/NavListAuto/NavListSubMenuAuto.tsx +32 -0
- package/src/core/NavList/NavListItem.tsx +15 -9
- package/src/core/NavList/NavListItemBase.tsx +3 -3
- package/src/core/NavList/NavMenuContainerContentList.tsx +63 -1
- package/src/core/NavList/__stories__/Default.tsx +23 -8
- package/src/core/NavList/__stories__/NavHorizontalLayout.tsx +24 -8
- package/src/core/NavList/__stories__/NavListEpathlaExample.tsx +46 -25
- package/src/core/NavList/__stories__/NavListHorizontalAutoExample.tsx +65 -0
- package/src/core/NavList/__stories__/NavListSecondaryAutoExample.tsx +284 -0
- package/src/core/NavList/__stories__/NavListVerticalAutoExample.tsx +65 -0
- package/src/core/NavList/index.tsx +2 -5
- package/src/core/NavList/types.tsx +23 -9
- package/src/core/Tabs/__stories__/Default.tsx +5 -5
- package/src/core/Tabs/index.tsx +5 -9
- package/src/hooks/useFontSize.ts +32 -0
- package/src/hooks/useHighlightLinks.ts +45 -0
- package/src/hooks/useLetterSpacing.ts +27 -0
- package/src/hooks/useLineHeight.ts +31 -0
- package/src/hooks/useNavList.ts +5 -7
- package/src/hooks/useTheme.ts +28 -20
- package/src/hooks/useTogglableNav.tsx +294 -0
- package/src/hooks/{useTogglableSections.tsx → useTogglableTab.tsx} +12 -13
- package/src/hooks/useVariantVars.ts +35 -0
- package/src/layouts/Basic/__stories__/Default.tsx +3 -3
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +8 -8
- package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +6 -6
- package/src/registry.js +36 -14
- package/src/typography/NormalText/__stories__/FontSizes.tsx +6 -6
- package/src/typography/NormalText/__stories__/FontWeight.tsx +1 -1
- package/src/typography/NormalText/__stories__/Variants.tsx +1 -1
- package/typography/NormalText/__stories__/FontSizes.js +18 -6
- package/typography/NormalText/__stories__/FontWeight.js +3 -1
- package/typography/NormalText/__stories__/Variants.js +3 -1
- package/app/ThemeSelectorOptions/index.d.ts +0 -2
- package/core/NavList/NavListSubMenu.d.ts +0 -8
- package/core/NavList/__stories__/NavListAutoExample.d.ts +0 -2
- package/core/NavList/__stories__/NavListAutoExample.js +0 -63
- package/es/core/NavList/NavListItemAuto.js +0 -40
- package/es/core/NavList/NavListSubMenu.js +0 -25
- package/es/core/NavList/__stories__/NavListAutoExample.js +0 -48
- package/esm/core/NavList/NavListItemAuto.js +0 -40
- package/esm/core/NavList/NavListSubMenu.js +0 -25
- package/esm/core/NavList/__stories__/NavListAutoExample.js +0 -48
- package/src/core/NavList/NavListAuto.tsx +0 -20
- package/src/core/NavList/NavListItemAuto.tsx +0 -41
- package/src/core/NavList/NavListSubMenu.tsx +0 -28
- package/src/core/NavList/__stories__/NavListAutoExample.tsx +0 -53
- /package/core/NavList/{NavListAuto.d.ts → NavListAuto/NavListAuto.d.ts} +0 -0
- /package/core/NavList/{NavListItemAuto.d.ts → NavListAuto/NavListItemAuto.d.ts} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
11
11
|
import { Link } from '@digigov/ui/core/Link';
|
|
12
|
-
import {
|
|
12
|
+
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
13
13
|
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
14
14
|
|
|
15
15
|
export const Default = () => (
|
|
@@ -50,7 +50,7 @@ export const Default = () => (
|
|
|
50
50
|
</PaginationList>
|
|
51
51
|
</Pagination>
|
|
52
52
|
|
|
53
|
-
<
|
|
53
|
+
<SectionBreak size="l" />
|
|
54
54
|
|
|
55
55
|
<Pagination>
|
|
56
56
|
<PaginationLabel start={10} end={20} total={10000}></PaginationLabel>
|
|
@@ -87,7 +87,7 @@ export const Default = () => (
|
|
|
87
87
|
</PaginationList>
|
|
88
88
|
</Pagination>
|
|
89
89
|
|
|
90
|
-
<
|
|
90
|
+
<SectionBreak size="l" />
|
|
91
91
|
|
|
92
92
|
<Pagination>
|
|
93
93
|
<PaginationLabel start={10} end={20} total={10000}></PaginationLabel>
|
|
@@ -124,7 +124,7 @@ export const Default = () => (
|
|
|
124
124
|
</PaginationList>
|
|
125
125
|
</Pagination>
|
|
126
126
|
|
|
127
|
-
<
|
|
127
|
+
<SectionBreak size="l" />
|
|
128
128
|
|
|
129
129
|
<Pagination>
|
|
130
130
|
<PaginationLabel start={1} end={10} total={15}></PaginationLabel>
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
11
11
|
import { Link } from '@digigov/ui/core/Link';
|
|
12
|
-
import {
|
|
12
|
+
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
13
13
|
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
14
14
|
|
|
15
15
|
export const PaginationSmall = () => (
|
|
@@ -36,7 +36,7 @@ export const PaginationSmall = () => (
|
|
|
36
36
|
</PaginationListItem>
|
|
37
37
|
</PaginationList>
|
|
38
38
|
</Pagination>
|
|
39
|
-
<
|
|
39
|
+
<SectionBreak size="l" />
|
|
40
40
|
</I18NProvider>
|
|
41
41
|
</div>
|
|
42
42
|
);
|
|
@@ -11,10 +11,10 @@ import { SectionBreak } from '@digigov/ui';
|
|
|
11
11
|
import { useNavList } from '@digigov/ui/hooks/useNavList';
|
|
12
12
|
|
|
13
13
|
export const WithNavigation = () => {
|
|
14
|
-
const {
|
|
14
|
+
const { registerButton } = useNavList();
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
return { ...
|
|
16
|
+
const setRegisterButton = (name: string) => {
|
|
17
|
+
return { ...registerButton(name) };
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
return (
|
|
@@ -34,21 +34,21 @@ export const WithNavigation = () => {
|
|
|
34
34
|
label: 'Home',
|
|
35
35
|
subMenu: [],
|
|
36
36
|
}}
|
|
37
|
-
|
|
37
|
+
setRegisterButton={setRegisterButton}
|
|
38
38
|
/>
|
|
39
39
|
<NavListItem
|
|
40
40
|
link={{ name: 'form', label: 'Form registration', subMenu: [] }}
|
|
41
|
-
|
|
41
|
+
setRegisterButton={setRegisterButton}
|
|
42
42
|
/>
|
|
43
43
|
<NavListItem
|
|
44
44
|
link={{ name: 'news', label: 'News', subMenu: [] }}
|
|
45
|
-
|
|
45
|
+
setRegisterButton={setRegisterButton}
|
|
46
46
|
/>
|
|
47
47
|
<NavListItem
|
|
48
48
|
link={{ name: 'contact', label: 'Contact', subMenu: [] }}
|
|
49
|
-
|
|
49
|
+
setRegisterButton={setRegisterButton}
|
|
50
50
|
/>
|
|
51
|
-
<SectionBreak
|
|
51
|
+
<SectionBreak visible={false} />
|
|
52
52
|
</NavList>
|
|
53
53
|
</Nav>
|
|
54
54
|
</Top>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Suspense, useState } from 'react';
|
|
2
2
|
import { QrCodeScanner } from '@digigov/ui/app/QrCodeScanner';
|
|
3
|
-
import {
|
|
3
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
4
4
|
import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
|
|
5
5
|
|
|
6
6
|
export const Default = () => {
|
|
@@ -32,7 +32,7 @@ export const Default = () => {
|
|
|
32
32
|
>
|
|
33
33
|
{error.message && (
|
|
34
34
|
<ErrorSummary>
|
|
35
|
-
<
|
|
35
|
+
<Heading size="s">{error.message}</Heading>
|
|
36
36
|
</ErrorSummary>
|
|
37
37
|
)}
|
|
38
38
|
</QrCodeScanner>
|
|
@@ -14,7 +14,7 @@ const DEFAULT_BGCOLOR = '#FFFFFF';
|
|
|
14
14
|
const DEFAULT_FGCOLOR = '#000000';
|
|
15
15
|
const DEFAULT_INCLUDEMARGIN = false;
|
|
16
16
|
|
|
17
|
-
const SUPPORTS_PATH2D = (function
|
|
17
|
+
const SUPPORTS_PATH2D = (function() {
|
|
18
18
|
try {
|
|
19
19
|
new Path2D().addPath(new Path2D());
|
|
20
20
|
} catch (e) {
|
|
@@ -28,8 +28,10 @@ const ERROR_LEVEL_MAP: { [index: string]: qrcodegen.QrCode.Ecc } = {
|
|
|
28
28
|
Q: qrcodegen.QrCode.Ecc.QUARTILE,
|
|
29
29
|
H: qrcodegen.QrCode.Ecc.HIGH,
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const QrCodeViewerCanvas = React.forwardRef(function QrCodeViewerCanvas(
|
|
32
|
+
props: QRPropsCanvas,
|
|
33
|
+
ref: any
|
|
34
|
+
) {
|
|
33
35
|
const {
|
|
34
36
|
value,
|
|
35
37
|
size = DEFAULT_SIZE,
|
|
@@ -42,9 +44,8 @@ function QrCodeViewerCanvas(props: QRPropsCanvas) {
|
|
|
42
44
|
...otherProps
|
|
43
45
|
} = props;
|
|
44
46
|
const imgSrc = imageSettings?.src;
|
|
45
|
-
const _canvas = useRef<HTMLCanvasElement>(null);
|
|
47
|
+
const _canvas = ref || useRef<HTMLCanvasElement>(null);
|
|
46
48
|
const _image = useRef<HTMLImageElement>(null);
|
|
47
|
-
|
|
48
49
|
// We're just using this state to trigger rerenders when images load. We
|
|
49
50
|
// Don't actually read the value anywhere. A smarter use of useEffect would
|
|
50
51
|
// depend on this value.
|
|
@@ -108,8 +109,8 @@ function QrCodeViewerCanvas(props: QRPropsCanvas) {
|
|
|
108
109
|
// $FlowFixMe: Path2D c'tor doesn't support args yet.
|
|
109
110
|
ctx.fill(new Path2D(generatePath(cells, margin)));
|
|
110
111
|
} else {
|
|
111
|
-
cells.forEach(function
|
|
112
|
-
row.forEach(function
|
|
112
|
+
cells.forEach(function(row, rdx) {
|
|
113
|
+
row.forEach(function(cell, cdx) {
|
|
113
114
|
if (cell) {
|
|
114
115
|
ctx.fillRect(cdx + margin, rdx + margin, 1, 1);
|
|
115
116
|
}
|
|
@@ -164,12 +165,13 @@ function QrCodeViewerCanvas(props: QRPropsCanvas) {
|
|
|
164
165
|
{img}
|
|
165
166
|
</>
|
|
166
167
|
);
|
|
167
|
-
}
|
|
168
|
+
});
|
|
168
169
|
|
|
169
|
-
export interface QrCodeViewerProps extends QRPropsCanvas {}
|
|
170
|
-
|
|
171
|
-
export const QrCodeViewer = (props: QrCodeViewerProps): React.ReactElement => {
|
|
172
|
-
return <QrCodeViewerCanvas {...props} />;
|
|
173
|
-
};
|
|
170
|
+
export interface QrCodeViewerProps extends QRPropsCanvas { }
|
|
174
171
|
|
|
175
|
-
export
|
|
172
|
+
export const QrCodeViewer = React.forwardRef(function QrCodeViewer(
|
|
173
|
+
props: QrCodeViewerProps,
|
|
174
|
+
ref
|
|
175
|
+
) {
|
|
176
|
+
return <QrCodeViewerCanvas {...props} ref={ref} />;
|
|
177
|
+
});
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import Button from '@digigov/ui/core/Button';
|
|
3
|
+
import FieldContainer, {
|
|
4
|
+
Fieldset,
|
|
5
|
+
FieldsetLegend,
|
|
6
|
+
} from '@digigov/ui/core/FieldContainer';
|
|
7
|
+
import { RadioContainer, RadioItem } from '@digigov/ui/core/RadioContainer';
|
|
8
|
+
import SectionBreak from '@digigov/ui/core/SectionBreak';
|
|
9
|
+
|
|
10
|
+
import useTheme, { ThemeSelectOptions } from '@digigov/ui/hooks/useTheme';
|
|
11
|
+
import useFontSize, { FontSizeOptions } from '@digigov/ui/hooks/useFontSize';
|
|
12
|
+
import useLineHeight, {
|
|
13
|
+
LineHeightOptions,
|
|
14
|
+
} from '@digigov/ui/hooks/useLineHeight';
|
|
15
|
+
import useLetterSpacing, {
|
|
16
|
+
LetterSpacingOptions,
|
|
17
|
+
} from '@digigov/ui/hooks/useLetterSpacing';
|
|
18
|
+
import useHighlightLinks, {
|
|
19
|
+
HighlightLinksOptions,
|
|
20
|
+
} from '@digigov/ui/hooks/useHighlightLinks';
|
|
21
|
+
|
|
22
|
+
export const ThemeOptionsForm = () => {
|
|
23
|
+
const [theme, changeTheme] = useTheme();
|
|
24
|
+
const [selectedTheme, setSelectedTheme] = useState<ThemeSelectOptions>(
|
|
25
|
+
theme || 'auto'
|
|
26
|
+
);
|
|
27
|
+
const [fontSize, changeFontSize] = useFontSize();
|
|
28
|
+
const [selectedFontSize, setSelectedFontSize] = useState<FontSizeOptions>(
|
|
29
|
+
fontSize || 'default'
|
|
30
|
+
);
|
|
31
|
+
const [lineHeight, changeLineHeight] = useLineHeight();
|
|
32
|
+
const [
|
|
33
|
+
selectedLineHeight,
|
|
34
|
+
setSelectedLineHeight,
|
|
35
|
+
] = useState<LineHeightOptions>(lineHeight || 'default');
|
|
36
|
+
const [letterSpacing, changeLetterSpacing] = useLetterSpacing();
|
|
37
|
+
const [
|
|
38
|
+
selectedLetterSpacing,
|
|
39
|
+
setSelectedLetterSpacing,
|
|
40
|
+
] = useState<LetterSpacingOptions>(letterSpacing || 'default');
|
|
41
|
+
|
|
42
|
+
const [highlightLinks, changeHighlightLinks] = useHighlightLinks();
|
|
43
|
+
const [
|
|
44
|
+
selectedHighlightLinks,
|
|
45
|
+
setSelectedHighlightLinks,
|
|
46
|
+
] = useState<HighlightLinksOptions>(highlightLinks || 'default');
|
|
47
|
+
|
|
48
|
+
function handleOptions() {
|
|
49
|
+
changeTheme(selectedTheme);
|
|
50
|
+
changeFontSize(selectedFontSize);
|
|
51
|
+
changeLineHeight(selectedLineHeight);
|
|
52
|
+
changeLetterSpacing(selectedLetterSpacing);
|
|
53
|
+
changeHighlightLinks(selectedHighlightLinks);
|
|
54
|
+
}
|
|
55
|
+
function resetOptions() {
|
|
56
|
+
setSelectedTheme('light');
|
|
57
|
+
setSelectedFontSize('default');
|
|
58
|
+
setSelectedLineHeight('default');
|
|
59
|
+
setSelectedLetterSpacing('default');
|
|
60
|
+
setSelectedHighlightLinks('default');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function optionsHasChanged() {
|
|
64
|
+
if (
|
|
65
|
+
theme != selectedTheme ||
|
|
66
|
+
fontSize != selectedFontSize ||
|
|
67
|
+
lineHeight != selectedLineHeight ||
|
|
68
|
+
letterSpacing != selectedLetterSpacing ||
|
|
69
|
+
highlightLinks != selectedHighlightLinks
|
|
70
|
+
) {
|
|
71
|
+
return true;
|
|
72
|
+
} else {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return (
|
|
78
|
+
<>
|
|
79
|
+
<FieldContainer marginBottom={4}>
|
|
80
|
+
<Fieldset>
|
|
81
|
+
<FieldsetLegend size="s">Επιλογή θέματος</FieldsetLegend>
|
|
82
|
+
<RadioContainer>
|
|
83
|
+
<RadioItem
|
|
84
|
+
name="theme_mode"
|
|
85
|
+
value="light"
|
|
86
|
+
onChange={() => setSelectedTheme('light')}
|
|
87
|
+
checked={selectedTheme === 'light'}
|
|
88
|
+
>
|
|
89
|
+
Φωτεινό θέμα
|
|
90
|
+
</RadioItem>
|
|
91
|
+
<RadioItem
|
|
92
|
+
name="theme_mode"
|
|
93
|
+
value="dark"
|
|
94
|
+
onChange={() => setSelectedTheme('dark')}
|
|
95
|
+
checked={selectedTheme === 'dark'}
|
|
96
|
+
>
|
|
97
|
+
Σκούρο θέμα
|
|
98
|
+
</RadioItem>
|
|
99
|
+
<RadioItem
|
|
100
|
+
name="theme_mode"
|
|
101
|
+
value="auto"
|
|
102
|
+
onChange={() => setSelectedTheme('auto')}
|
|
103
|
+
checked={selectedTheme === 'auto'}
|
|
104
|
+
>
|
|
105
|
+
Επιλογή συστήματος
|
|
106
|
+
</RadioItem>
|
|
107
|
+
</RadioContainer>
|
|
108
|
+
</Fieldset>
|
|
109
|
+
</FieldContainer>
|
|
110
|
+
<FieldContainer marginBottom={4}>
|
|
111
|
+
<Fieldset>
|
|
112
|
+
<FieldsetLegend size="s">Mέγεθος γραμμάτων</FieldsetLegend>
|
|
113
|
+
<RadioContainer inline>
|
|
114
|
+
<RadioItem
|
|
115
|
+
name="font-size"
|
|
116
|
+
value="no"
|
|
117
|
+
onChange={() => setSelectedFontSize('default')}
|
|
118
|
+
checked={selectedFontSize === 'default'}
|
|
119
|
+
>
|
|
120
|
+
Κανονικό (προεπιλογή)
|
|
121
|
+
</RadioItem>
|
|
122
|
+
<RadioItem
|
|
123
|
+
name="font-size"
|
|
124
|
+
value="yes"
|
|
125
|
+
onChange={() => {
|
|
126
|
+
setSelectedFontSize('large');
|
|
127
|
+
}}
|
|
128
|
+
checked={selectedFontSize === 'large'}
|
|
129
|
+
>
|
|
130
|
+
Μεγαλύτερο
|
|
131
|
+
</RadioItem>
|
|
132
|
+
</RadioContainer>
|
|
133
|
+
</Fieldset>
|
|
134
|
+
</FieldContainer>
|
|
135
|
+
<FieldContainer marginBottom={4}>
|
|
136
|
+
<Fieldset>
|
|
137
|
+
<FieldsetLegend size="s">Ύψος γραμμής κειμένων</FieldsetLegend>
|
|
138
|
+
<RadioContainer inline>
|
|
139
|
+
<RadioItem
|
|
140
|
+
name="line-height"
|
|
141
|
+
value="no"
|
|
142
|
+
onChange={() => setSelectedLineHeight('default')}
|
|
143
|
+
checked={selectedLineHeight === 'default'}
|
|
144
|
+
>
|
|
145
|
+
Κανονικό (προεπιλογή)
|
|
146
|
+
</RadioItem>
|
|
147
|
+
<RadioItem
|
|
148
|
+
name="line-height"
|
|
149
|
+
value="yes"
|
|
150
|
+
onChange={() => {
|
|
151
|
+
setSelectedLineHeight('large');
|
|
152
|
+
}}
|
|
153
|
+
checked={selectedLineHeight === 'large'}
|
|
154
|
+
>
|
|
155
|
+
Μεγαλύτερο
|
|
156
|
+
</RadioItem>
|
|
157
|
+
</RadioContainer>
|
|
158
|
+
</Fieldset>
|
|
159
|
+
</FieldContainer>
|
|
160
|
+
<FieldContainer marginBottom={4}>
|
|
161
|
+
<Fieldset>
|
|
162
|
+
<FieldsetLegend size="s">Απόσταση γραμμάτων</FieldsetLegend>
|
|
163
|
+
<RadioContainer inline>
|
|
164
|
+
<RadioItem
|
|
165
|
+
name="letter-spacing"
|
|
166
|
+
value="no"
|
|
167
|
+
onChange={() => setSelectedLetterSpacing('default')}
|
|
168
|
+
checked={selectedLetterSpacing === 'default'}
|
|
169
|
+
>
|
|
170
|
+
Κανονική (προεπιλογή)
|
|
171
|
+
</RadioItem>
|
|
172
|
+
<RadioItem
|
|
173
|
+
name="letter-spacing"
|
|
174
|
+
value="yes"
|
|
175
|
+
onChange={() => {
|
|
176
|
+
setSelectedLetterSpacing('extra');
|
|
177
|
+
}}
|
|
178
|
+
checked={selectedLetterSpacing === 'extra'}
|
|
179
|
+
>
|
|
180
|
+
Μεγαλύτερη
|
|
181
|
+
</RadioItem>
|
|
182
|
+
</RadioContainer>
|
|
183
|
+
</Fieldset>
|
|
184
|
+
</FieldContainer>
|
|
185
|
+
<FieldContainer marginBottom={4}>
|
|
186
|
+
<Fieldset>
|
|
187
|
+
<FieldsetLegend size="s">Έντονη εμφάνιση συνδέσμων</FieldsetLegend>
|
|
188
|
+
<RadioContainer inline>
|
|
189
|
+
<RadioItem
|
|
190
|
+
name="highlight-links"
|
|
191
|
+
value="no"
|
|
192
|
+
onChange={() => setSelectedHighlightLinks('default')}
|
|
193
|
+
checked={selectedHighlightLinks === 'default'}
|
|
194
|
+
>
|
|
195
|
+
Όχι (προεπιλογή)
|
|
196
|
+
</RadioItem>
|
|
197
|
+
<RadioItem
|
|
198
|
+
name="highlight-links"
|
|
199
|
+
value="yes"
|
|
200
|
+
onChange={() => {
|
|
201
|
+
setSelectedHighlightLinks('highlight');
|
|
202
|
+
}}
|
|
203
|
+
checked={selectedHighlightLinks === 'highlight'}
|
|
204
|
+
>
|
|
205
|
+
Ναι
|
|
206
|
+
</RadioItem>
|
|
207
|
+
</RadioContainer>
|
|
208
|
+
<Button onClick={resetOptions} variant="link">
|
|
209
|
+
Επαναφορά όλων των επιλογών
|
|
210
|
+
</Button>
|
|
211
|
+
</Fieldset>
|
|
212
|
+
</FieldContainer>
|
|
213
|
+
<SectionBreak visible={false} />
|
|
214
|
+
<Button onClick={handleOptions} disabled={!optionsHasChanged()}>
|
|
215
|
+
Εφαρμογή
|
|
216
|
+
</Button>
|
|
217
|
+
</>
|
|
218
|
+
);
|
|
219
|
+
};
|
|
220
|
+
export default ThemeOptionsForm;
|
|
@@ -7,8 +7,8 @@ import SectionBreak from '@digigov/ui/core/SectionBreak';
|
|
|
7
7
|
|
|
8
8
|
import useTheme, { ThemeSelectOptions } from '@digigov/ui/hooks/useTheme';
|
|
9
9
|
|
|
10
|
-
export const
|
|
11
|
-
const
|
|
10
|
+
export const ThemePaletteForm = () => {
|
|
11
|
+
const [ theme, changeTheme ] = useTheme();
|
|
12
12
|
const [selectedOption, setSelectedOption] = useState<ThemeSelectOptions>(
|
|
13
13
|
theme || 'auto'
|
|
14
14
|
);
|
|
@@ -51,4 +51,4 @@ export const ThemeToggleOptions = () => {
|
|
|
51
51
|
</>
|
|
52
52
|
);
|
|
53
53
|
};
|
|
54
|
-
export default
|
|
54
|
+
export default ThemePaletteForm;
|
package/src/app/index.ts
CHANGED
|
@@ -10,4 +10,5 @@ export * from '@digigov/ui/app/Header';
|
|
|
10
10
|
export * from '@digigov/ui/app/i18n';
|
|
11
11
|
export * from '@digigov/ui/app/I18nText';
|
|
12
12
|
export * from '@digigov/ui/app/PhaseBannerHeader';
|
|
13
|
-
export * from '@digigov/ui/app/
|
|
13
|
+
export * from '@digigov/ui/app/ThemePaletteForm';
|
|
14
|
+
export * from '@digigov/ui/app/ThemeOptionsForm';
|
|
@@ -8,9 +8,9 @@ import AccordionSectionSummary from '@digigov/react-core/AccordionSectionSummary
|
|
|
8
8
|
import AccordionControls from '@digigov/react-core/AccordionControls';
|
|
9
9
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from '@digigov/ui/hooks/
|
|
11
|
+
useTogglableTab,
|
|
12
|
+
UseTogglableTabReturn,
|
|
13
|
+
} from '@digigov/ui/hooks/useTogglableTab';
|
|
14
14
|
|
|
15
15
|
export const AccordionItemDetails = withDeprecation(AccordionSectionContent, {
|
|
16
16
|
name: 'AccordionItemDetails',
|
|
@@ -44,15 +44,9 @@ export const AccordionItem = withDeprecation(
|
|
|
44
44
|
export interface UseAccordionProps {
|
|
45
45
|
singleOpen?: boolean;
|
|
46
46
|
}
|
|
47
|
-
export interface UseAccordionReturn extends
|
|
47
|
+
export interface UseAccordionReturn extends UseTogglableTabReturn {}
|
|
48
48
|
const useAccordion = (props: UseAccordionProps): UseAccordionReturn => {
|
|
49
|
-
const {
|
|
50
|
-
register,
|
|
51
|
-
setOpened,
|
|
52
|
-
opened,
|
|
53
|
-
registered,
|
|
54
|
-
...rest
|
|
55
|
-
} = useTogglableSections({
|
|
49
|
+
const { register, setOpened, opened, registered, ...rest } = useTogglableTab({
|
|
56
50
|
toggleProperty: 'open',
|
|
57
51
|
onToggleProperty: 'onToggle',
|
|
58
52
|
singleOpen: props && !!props.singleOpen,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
3
3
|
|
|
4
4
|
export const Default = () => (
|
|
5
5
|
<>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
6
|
+
<SectionBreak />
|
|
7
|
+
<SectionBreak size="m" />
|
|
8
|
+
<SectionBreak size="l" />
|
|
9
|
+
<SectionBreak size="xl" />
|
|
10
10
|
</>
|
|
11
11
|
);
|
|
12
12
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
|
|
3
|
-
import {
|
|
3
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
|
|
6
6
|
export const Default = () => (
|
|
7
7
|
<ErrorSummary>
|
|
8
|
-
<
|
|
8
|
+
<Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
|
|
9
9
|
<Link>Πρέπει να συμπληρώσετε το έτος</Link>
|
|
10
10
|
</ErrorSummary>
|
|
11
11
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
|
|
3
|
-
import {
|
|
3
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
import { Hint } from '@digigov/ui/typography/Hint';
|
|
6
6
|
import { ErrorMessage } from '@digigov/ui/core/ErrorMessage';
|
|
@@ -17,7 +17,7 @@ import { Checkbox, CheckboxItem } from '@digigov/ui/core/Checkbox';
|
|
|
17
17
|
export const LinkedToCheckbox = () => (
|
|
18
18
|
<div className="example">
|
|
19
19
|
<ErrorSummary>
|
|
20
|
-
<
|
|
20
|
+
<Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
|
|
21
21
|
<Link href="#england">Επιλέξτε μία ή παραπάνω χώρες.</Link>
|
|
22
22
|
</ErrorSummary>
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
|
|
3
|
-
import {
|
|
3
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
import { Hint } from '@digigov/ui/typography/Hint';
|
|
6
6
|
import { ErrorMessage } from '@digigov/ui/core/ErrorMessage';
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
export const LinkedToField = () => (
|
|
21
21
|
<div className="example">
|
|
22
22
|
<ErrorSummary>
|
|
23
|
-
<
|
|
23
|
+
<Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
|
|
24
24
|
<Link href="#passport-date">
|
|
25
25
|
Η ημερομηνία έκδοσης του διαβατηρίου σας θα πρέπει να είναι στο
|
|
26
26
|
παρελθόν.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
|
|
3
|
-
import {
|
|
3
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
import { TextInput } from '@digigov/ui/core/TextInput';
|
|
6
6
|
import { FieldContainer } from '@digigov/ui/core/FieldContainer';
|
|
@@ -13,7 +13,7 @@ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
|
13
13
|
export const LinkedToInput = () => (
|
|
14
14
|
<div className="example">
|
|
15
15
|
<ErrorSummary>
|
|
16
|
-
<
|
|
16
|
+
<Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
|
|
17
17
|
<Link href="#business-name">
|
|
18
18
|
Πρέπει να συμπληρώσετε το όνομα επιχείρησης
|
|
19
19
|
</Link>
|
|
@@ -2,10 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { Link } from '@digigov/ui/core/Link';
|
|
3
3
|
import { Masthead } from '@digigov/ui/layouts/Basic/Masthead';
|
|
4
4
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
5
|
-
|
|
6
5
|
export const DarkBackground = () => (
|
|
7
6
|
<Masthead>
|
|
8
|
-
<SectionBreak />
|
|
7
|
+
<SectionBreak visible={false} />
|
|
9
8
|
<Link
|
|
10
9
|
aria-label="πλοηγηθείτε στην ιστοσελίδα το govgr"
|
|
11
10
|
role="link"
|
|
@@ -13,7 +12,7 @@ export const DarkBackground = () => (
|
|
|
13
12
|
>
|
|
14
13
|
govgr link
|
|
15
14
|
</Link>
|
|
16
|
-
<SectionBreak />
|
|
15
|
+
<SectionBreak visible={false} />
|
|
17
16
|
</Masthead>
|
|
18
17
|
);
|
|
19
18
|
|
|
@@ -2,10 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { Link } from '@digigov/ui/core/Link';
|
|
3
3
|
import { Masthead } from '@digigov/ui/layouts/Basic/Masthead';
|
|
4
4
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
5
|
-
|
|
6
5
|
export const DarkBackgroundNoUnderline = () => (
|
|
7
6
|
<Masthead>
|
|
8
|
-
<SectionBreak />
|
|
7
|
+
<SectionBreak visible={false} />
|
|
9
8
|
<Link
|
|
10
9
|
aria-label="πλοηγηθείτε στην ιστοσελίδα το govgr"
|
|
11
10
|
role="link"
|
|
@@ -14,7 +13,7 @@ export const DarkBackgroundNoUnderline = () => (
|
|
|
14
13
|
>
|
|
15
14
|
govgr link
|
|
16
15
|
</Link>
|
|
17
|
-
<SectionBreak />
|
|
16
|
+
<SectionBreak visible={false} />
|
|
18
17
|
</Masthead>
|
|
19
18
|
);
|
|
20
19
|
|
|
@@ -8,6 +8,8 @@ export default {
|
|
|
8
8
|
displayName: 'NavList',
|
|
9
9
|
};
|
|
10
10
|
export * from '@digigov/ui/core/NavList/__stories__/Default';
|
|
11
|
-
export * from '@digigov/ui/core/NavList/__stories__/
|
|
11
|
+
export * from '@digigov/ui/core/NavList/__stories__/NavListHorizontalAutoExample';
|
|
12
|
+
export * from '@digigov/ui/core/NavList/__stories__/NavListVerticalAutoExample';
|
|
13
|
+
export * from '@digigov/ui/core/NavList/__stories__/NavListSecondaryAutoExample';
|
|
12
14
|
export * from '@digigov/ui/core/NavList/__stories__/NavListEpathlaExample';
|
|
13
15
|
export * from '@digigov/ui/core/NavList/__stories__/NavHorizontalLayout';
|
|
@@ -6,26 +6,26 @@
|
|
|
6
6
|
{
|
|
7
7
|
"actions": [
|
|
8
8
|
{
|
|
9
|
-
"name": "
|
|
9
|
+
"name": "hover",
|
|
10
10
|
"args": {
|
|
11
11
|
"selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(3)>button"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
|
-
"id": "
|
|
16
|
-
"title": "
|
|
15
|
+
"id": "dHQxEQCIJ4bJ",
|
|
16
|
+
"title": "Hover item"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"actions": [
|
|
20
20
|
{
|
|
21
|
-
"name": "
|
|
21
|
+
"name": "click",
|
|
22
22
|
"args": {
|
|
23
23
|
"selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(3)>button"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
|
-
"id": "
|
|
28
|
-
"title": "
|
|
27
|
+
"id": "WMfgyO3E_9S_",
|
|
28
|
+
"title": "Open sub menu"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
}
|