@digigov/ui 1.1.5-496927f3 → 1.2.0-01ea6f24
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/app/Header/__snapshots__/index.spec.tsx.snap +4 -4
- package/app/QrCodeViewer/QRCode.stories.d.ts +1 -0
- package/app/QrCodeViewer/index.d.ts +1 -0
- package/app/QrCodeViewer/index.js +2 -1
- package/app/hooks/useHighlightLinks/index.js +4 -4
- package/cjs/app/Header/__snapshots__/index.spec.tsx.snap +4 -4
- package/cjs/app/QrCodeViewer/index.js +3 -2
- package/cjs/app/hooks/useHighlightLinks/index.js +4 -4
- package/cjs/content/Accordion/__snapshots__/index.spec.tsx.snap +20 -20
- package/cjs/content/Blockquote/__snapshots__/index.spec.tsx.snap +2 -2
- package/cjs/content/Details/__snapshots__/index.spec.tsx.snap +12 -12
- package/cjs/content/SafeHTML/index.js +9 -9
- package/cjs/content/SummaryList/__snapshots__/index.spec.tsx.snap +16 -16
- package/cjs/form/AutoComplete/index.js +2 -2
- package/cjs/form/Button/__snapshots__/index.spec.tsx.snap +2 -2
- package/cjs/layouts/Basic/__snapshots__/index.spec.tsx.snap +15 -15
- package/cjs/layouts/Screen/Screen.stories/index.js +12 -0
- package/cjs/layouts/Screen/__stories__/ScreenUp/index.js +16 -0
- package/cjs/lazy/index.js +2884 -0
- package/cjs/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
- package/cjs/typography/Heading/__stories__/Default/index.js +5 -5
- package/cjs/typography/HeadingCaption/__stories__/Default/index.js +6 -6
- package/cjs/typography/HeadingCaption/__stories__/NestedToTitle/index.js +1 -1
- package/cjs/typography/Hint/__stories__/Default/index.js +1 -1
- package/cjs/typography/Hint/__stories__/FontSizes/index.js +4 -4
- package/cjs/typography/NormalText/__stories__/Default/index.js +1 -1
- package/cjs/typography/NormalText/__stories__/FontSizes/index.js +7 -7
- package/cjs/typography/NormalText/__stories__/FontWeight/index.js +2 -2
- package/cjs/typography/NormalText/__stories__/Variants/index.js +2 -2
- package/cjs/typography/Paragraph/__stories__/Default/index.js +1 -1
- package/cjs/typography/Paragraph/__stories__/FontSizes/index.js +7 -7
- package/cjs/typography/Paragraph/__stories__/FontWeight/index.js +2 -2
- package/cjs/typography/Paragraph/__stories__/LeadVariant/index.js +1 -1
- package/cjs/typography/Paragraph/__stories__/SmallVariant/index.js +1 -1
- package/cjs/utils/hooks/useScreen/index.js +0 -2
- package/content/Accordion/__snapshots__/index.spec.tsx.snap +20 -20
- package/content/Blockquote/__snapshots__/index.spec.tsx.snap +2 -2
- package/content/Details/__snapshots__/index.spec.tsx.snap +12 -12
- package/content/SafeHTML/index.d.ts +1 -1
- package/content/SafeHTML/index.js +9 -9
- package/content/SummaryList/__snapshots__/index.spec.tsx.snap +16 -16
- package/form/AutoComplete/index.js +2 -2
- package/form/Button/__snapshots__/index.spec.tsx.snap +2 -2
- package/index.js +1 -1
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +15 -15
- package/layouts/Screen/Screen.stories/index.js +2 -1
- package/layouts/Screen/Screen.stories.d.ts +1 -0
- package/layouts/Screen/__stories__/ScreenUp/index.js +9 -0
- package/layouts/Screen/__stories__/ScreenUp/package.json +6 -0
- package/layouts/Screen/__stories__/ScreenUp.d.ts +3 -0
- package/lazy/index.js +2236 -0
- package/lazy/package.json +6 -0
- package/lazy.d.ts +347 -0
- package/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
- package/package.json +5 -6
- package/src/app/Header/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/app/QrCodeViewer/index.tsx +2 -0
- package/src/app/hooks/useHighlightLinks.ts +4 -4
- package/src/content/Accordion/__snapshots__/index.spec.tsx.snap +20 -20
- package/src/content/Blockquote/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/content/Details/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/content/SafeHTML/index.tsx +10 -10
- package/src/content/SummaryList/__snapshots__/index.spec.tsx.snap +16 -16
- package/src/form/AutoComplete/index.tsx +4 -4
- package/src/form/Button/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +15 -15
- package/src/layouts/Screen/Screen.stories.js +2 -1
- package/src/layouts/Screen/__stories__/ScreenUp.tsx +11 -0
- package/src/lazy.js +323 -0
- package/src/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/typography/Heading/__stories__/Default.tsx +5 -5
- package/src/typography/HeadingCaption/__stories__/Default.tsx +6 -6
- package/src/typography/HeadingCaption/__stories__/NestedToTitle.tsx +2 -2
- package/src/typography/Hint/__stories__/Default.tsx +1 -1
- package/src/typography/Hint/__stories__/FontSizes.tsx +4 -4
- package/src/typography/NormalText/__stories__/Default.tsx +1 -1
- package/src/typography/NormalText/__stories__/FontSizes.tsx +7 -7
- package/src/typography/NormalText/__stories__/FontWeight.tsx +2 -2
- package/src/typography/NormalText/__stories__/Variants.tsx +2 -2
- package/src/typography/Paragraph/__stories__/Default.tsx +1 -1
- package/src/typography/Paragraph/__stories__/FontSizes.tsx +7 -7
- package/src/typography/Paragraph/__stories__/FontWeight.tsx +2 -2
- package/src/typography/Paragraph/__stories__/LeadVariant.tsx +1 -1
- package/src/typography/Paragraph/__stories__/SmallVariant.tsx +1 -1
- package/src/utils/hooks/useScreen.ts +1 -2
- package/typography/Heading/__stories__/Default/index.js +5 -5
- package/typography/HeadingCaption/__stories__/Default/index.js +6 -6
- package/typography/HeadingCaption/__stories__/NestedToTitle/index.js +1 -1
- package/typography/Hint/__stories__/Default/index.js +1 -1
- package/typography/Hint/__stories__/FontSizes/index.js +4 -4
- package/typography/NormalText/__stories__/Default/index.js +1 -1
- package/typography/NormalText/__stories__/FontSizes/index.js +7 -7
- package/typography/NormalText/__stories__/FontWeight/index.js +2 -2
- package/typography/NormalText/__stories__/Variants/index.js +2 -2
- package/typography/Paragraph/__stories__/Default/index.js +1 -1
- package/typography/Paragraph/__stories__/FontSizes/index.js +7 -7
- package/typography/Paragraph/__stories__/FontWeight/index.js +2 -2
- package/typography/Paragraph/__stories__/LeadVariant/index.js +1 -1
- package/typography/Paragraph/__stories__/SmallVariant/index.js +1 -1
- package/utils/hooks/useScreen/index.js +0 -2
package/package.json
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-01ea6f24",
|
|
4
4
|
"description": "@digigov reusable components toolkit",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"google-libphonenumber": "3.2.8",
|
|
9
8
|
"@uides/react-qr-reader": "3.0.0",
|
|
10
|
-
"react-query": "2.26.4",
|
|
11
9
|
"yup": "0.32.11",
|
|
12
10
|
"publint": "0.1.8",
|
|
13
|
-
"@digigov/react-icons": "1.2.0-
|
|
11
|
+
"@digigov/react-icons": "1.2.0-01ea6f24",
|
|
14
12
|
"dompurify": "3.0.6"
|
|
15
13
|
},
|
|
16
14
|
"peerDependencies": {
|
|
15
|
+
"react-query": "2.26.4",
|
|
17
16
|
"@material-ui/core": "4.11.3",
|
|
18
17
|
"@material-ui/icons": "4.11.2",
|
|
19
18
|
"clsx": "1.1.1",
|
|
20
19
|
"react": "^16.8.0 || ^17.0.0",
|
|
21
20
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
22
|
-
"@digigov/react-core": "1.
|
|
23
|
-
"@digigov/css": "1.
|
|
21
|
+
"@digigov/react-core": "1.3.0-01ea6f24",
|
|
22
|
+
"@digigov/css": "1.3.0-01ea6f24"
|
|
24
23
|
},
|
|
25
24
|
"gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871",
|
|
26
25
|
"private": false,
|
|
@@ -4,11 +4,11 @@ exports[`renders the HeaderTitle component 1`] = `
|
|
|
4
4
|
<ForwardRef(HeaderTitle)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="a"
|
|
7
|
-
className="
|
|
7
|
+
className="ds-header__title"
|
|
8
8
|
href="/"
|
|
9
9
|
>
|
|
10
10
|
<a
|
|
11
|
-
className="
|
|
11
|
+
className="ds-header__title"
|
|
12
12
|
href="/"
|
|
13
13
|
>
|
|
14
14
|
A title
|
|
@@ -23,11 +23,11 @@ exports[`renders the HeaderTitle component with custom href 1`] = `
|
|
|
23
23
|
>
|
|
24
24
|
<ForwardRef(Base)
|
|
25
25
|
as="a"
|
|
26
|
-
className="
|
|
26
|
+
className="ds-header__title"
|
|
27
27
|
href="/somelink"
|
|
28
28
|
>
|
|
29
29
|
<a
|
|
30
|
-
className="
|
|
30
|
+
className="ds-header__title"
|
|
31
31
|
href="/somelink"
|
|
32
32
|
>
|
|
33
33
|
A title
|
|
@@ -19,21 +19,21 @@ export const useHighlightLinks = (): UseHighlightLinksResult => {
|
|
|
19
19
|
|
|
20
20
|
useEffect(() => {
|
|
21
21
|
if (highlightLinks === 'highlight') {
|
|
22
|
-
document.documentElement.classList.add(`
|
|
22
|
+
document.documentElement.classList.add(`ds-highlight-links`);
|
|
23
23
|
} else {
|
|
24
|
-
document.documentElement.classList.remove(`
|
|
24
|
+
document.documentElement.classList.remove(`ds-highlight-links`);
|
|
25
25
|
}
|
|
26
26
|
localStorage.setItem('--theme-highlight-links', highlightLinks);
|
|
27
27
|
}, [highlightLinks]);
|
|
28
28
|
|
|
29
29
|
useEffect(() => {
|
|
30
30
|
const beforePrintListener = () => {
|
|
31
|
-
document.documentElement.classList.remove(`
|
|
31
|
+
document.documentElement.classList.remove(`ds-highlight-links`);
|
|
32
32
|
};
|
|
33
33
|
const afterPrintListener = () => {
|
|
34
34
|
document.documentElement.classList.add(
|
|
35
35
|
localStorage.getItem('--theme-highlight-links') === 'highlight'
|
|
36
|
-
? `
|
|
36
|
+
? `ds-highlight-links`
|
|
37
37
|
: ''
|
|
38
38
|
);
|
|
39
39
|
};
|
|
@@ -4,19 +4,19 @@ exports[`renders the Accordion 1`] = `
|
|
|
4
4
|
<ForwardRef(Accordion)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="div"
|
|
7
|
-
className="
|
|
7
|
+
className="ds-accordion--border-top ds-accordion"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
className="
|
|
10
|
+
className="ds-accordion--border-top ds-accordion"
|
|
11
11
|
>
|
|
12
12
|
<withDeprecationComponent>
|
|
13
13
|
<ForwardRef(AccordionSection)>
|
|
14
14
|
<ForwardRef(Base)
|
|
15
15
|
as="details"
|
|
16
|
-
className="
|
|
16
|
+
className="ds-accordion__section"
|
|
17
17
|
>
|
|
18
18
|
<details
|
|
19
|
-
className="
|
|
19
|
+
className="ds-accordion__section"
|
|
20
20
|
>
|
|
21
21
|
<withDeprecationComponent>
|
|
22
22
|
<Component>
|
|
@@ -24,12 +24,12 @@ exports[`renders the Accordion 1`] = `
|
|
|
24
24
|
<ForwardRef(Base)
|
|
25
25
|
aria-level={2}
|
|
26
26
|
as="summary"
|
|
27
|
-
className="
|
|
27
|
+
className="ds-accordion__section-summary"
|
|
28
28
|
role="heading"
|
|
29
29
|
>
|
|
30
30
|
<summary
|
|
31
31
|
aria-level={2}
|
|
32
|
-
className="
|
|
32
|
+
className="ds-accordion__section-summary"
|
|
33
33
|
role="heading"
|
|
34
34
|
>
|
|
35
35
|
<ForwardRef(AccordionSectionSummaryHeading)
|
|
@@ -39,18 +39,18 @@ exports[`renders the Accordion 1`] = `
|
|
|
39
39
|
<ForwardRef(Base)
|
|
40
40
|
aria-expanded={false}
|
|
41
41
|
as="h2"
|
|
42
|
-
className="
|
|
42
|
+
className="ds-accordion__section-heading"
|
|
43
43
|
onClick={[Function]}
|
|
44
44
|
role="button"
|
|
45
45
|
>
|
|
46
46
|
<h2
|
|
47
47
|
aria-expanded={false}
|
|
48
|
-
className="
|
|
48
|
+
className="ds-accordion__section-heading"
|
|
49
49
|
onClick={[Function]}
|
|
50
50
|
role="button"
|
|
51
51
|
>
|
|
52
52
|
<span
|
|
53
|
-
className="
|
|
53
|
+
className="ds-accordion__section-button"
|
|
54
54
|
>
|
|
55
55
|
Βασικες Ρυθμισεις
|
|
56
56
|
</span>
|
|
@@ -66,10 +66,10 @@ exports[`renders the Accordion 1`] = `
|
|
|
66
66
|
<ForwardRef(AccordionSectionContent)>
|
|
67
67
|
<ForwardRef(Base)
|
|
68
68
|
as="div"
|
|
69
|
-
className="
|
|
69
|
+
className="ds-accordion__section-content"
|
|
70
70
|
>
|
|
71
71
|
<div
|
|
72
|
-
className="
|
|
72
|
+
className="ds-accordion__section-content"
|
|
73
73
|
>
|
|
74
74
|
Περιεχομενο Βασικων Ρυθμισεων
|
|
75
75
|
</div>
|
|
@@ -84,10 +84,10 @@ exports[`renders the Accordion 1`] = `
|
|
|
84
84
|
<ForwardRef(AccordionSection)>
|
|
85
85
|
<ForwardRef(Base)
|
|
86
86
|
as="details"
|
|
87
|
-
className="
|
|
87
|
+
className="ds-accordion__section"
|
|
88
88
|
>
|
|
89
89
|
<details
|
|
90
|
-
className="
|
|
90
|
+
className="ds-accordion__section"
|
|
91
91
|
>
|
|
92
92
|
<withDeprecationComponent>
|
|
93
93
|
<Component>
|
|
@@ -95,12 +95,12 @@ exports[`renders the Accordion 1`] = `
|
|
|
95
95
|
<ForwardRef(Base)
|
|
96
96
|
aria-level={2}
|
|
97
97
|
as="summary"
|
|
98
|
-
className="
|
|
98
|
+
className="ds-accordion__section-summary"
|
|
99
99
|
role="heading"
|
|
100
100
|
>
|
|
101
101
|
<summary
|
|
102
102
|
aria-level={2}
|
|
103
|
-
className="
|
|
103
|
+
className="ds-accordion__section-summary"
|
|
104
104
|
role="heading"
|
|
105
105
|
>
|
|
106
106
|
<ForwardRef(AccordionSectionSummaryHeading)
|
|
@@ -110,18 +110,18 @@ exports[`renders the Accordion 1`] = `
|
|
|
110
110
|
<ForwardRef(Base)
|
|
111
111
|
aria-expanded={false}
|
|
112
112
|
as="h2"
|
|
113
|
-
className="
|
|
113
|
+
className="ds-accordion__section-heading"
|
|
114
114
|
onClick={[Function]}
|
|
115
115
|
role="button"
|
|
116
116
|
>
|
|
117
117
|
<h2
|
|
118
118
|
aria-expanded={false}
|
|
119
|
-
className="
|
|
119
|
+
className="ds-accordion__section-heading"
|
|
120
120
|
onClick={[Function]}
|
|
121
121
|
role="button"
|
|
122
122
|
>
|
|
123
123
|
<span
|
|
124
|
-
className="
|
|
124
|
+
className="ds-accordion__section-button"
|
|
125
125
|
>
|
|
126
126
|
Υπολοιπες Ρυθμισεις
|
|
127
127
|
</span>
|
|
@@ -137,10 +137,10 @@ exports[`renders the Accordion 1`] = `
|
|
|
137
137
|
<ForwardRef(AccordionSectionContent)>
|
|
138
138
|
<ForwardRef(Base)
|
|
139
139
|
as="div"
|
|
140
|
-
className="
|
|
140
|
+
className="ds-accordion__section-content"
|
|
141
141
|
>
|
|
142
142
|
<div
|
|
143
|
-
className="
|
|
143
|
+
className="ds-accordion__section-content"
|
|
144
144
|
>
|
|
145
145
|
Περιεχομενο Υπολοιπων Ρυθμισεων
|
|
146
146
|
</div>
|
|
@@ -4,10 +4,10 @@ exports[`renders the Blockquote with sample data 1`] = `
|
|
|
4
4
|
<ForwardRef(Blockquote)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="blockquote"
|
|
7
|
-
className="
|
|
7
|
+
className="ds-blockquote"
|
|
8
8
|
>
|
|
9
9
|
<blockquote
|
|
10
|
-
className="
|
|
10
|
+
className="ds-blockquote"
|
|
11
11
|
>
|
|
12
12
|
this is some random data
|
|
13
13
|
</blockquote>
|
|
@@ -4,18 +4,18 @@ exports[`renders the closed Details component 1`] = `
|
|
|
4
4
|
<ForwardRef(Details)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="details"
|
|
7
|
-
className="
|
|
7
|
+
className="ds-details"
|
|
8
8
|
>
|
|
9
9
|
<details
|
|
10
|
-
className="
|
|
10
|
+
className="ds-details"
|
|
11
11
|
>
|
|
12
12
|
<ForwardRef(DetailsSummary)>
|
|
13
13
|
<ForwardRef(Base)
|
|
14
14
|
as="summary"
|
|
15
|
-
className="
|
|
15
|
+
className="ds-details__summary"
|
|
16
16
|
>
|
|
17
17
|
<summary
|
|
18
|
-
className="
|
|
18
|
+
className="ds-details__summary"
|
|
19
19
|
>
|
|
20
20
|
Help with nationality
|
|
21
21
|
</summary>
|
|
@@ -24,10 +24,10 @@ exports[`renders the closed Details component 1`] = `
|
|
|
24
24
|
<ForwardRef(DetailsContent)>
|
|
25
25
|
<ForwardRef(Base)
|
|
26
26
|
as="div"
|
|
27
|
-
className="
|
|
27
|
+
className="ds-details__content"
|
|
28
28
|
>
|
|
29
29
|
<div
|
|
30
|
-
className="
|
|
30
|
+
className="ds-details__content"
|
|
31
31
|
>
|
|
32
32
|
We need to know your nationality so we can work out which elections you’re entitled to vote in. If you cannot provide your nationality, you’ll have to send copies of identity documents through the post.
|
|
33
33
|
</div>
|
|
@@ -44,20 +44,20 @@ exports[`renders the open Details component 1`] = `
|
|
|
44
44
|
>
|
|
45
45
|
<ForwardRef(Base)
|
|
46
46
|
as="details"
|
|
47
|
-
className="
|
|
47
|
+
className="ds-details"
|
|
48
48
|
open={true}
|
|
49
49
|
>
|
|
50
50
|
<details
|
|
51
|
-
className="
|
|
51
|
+
className="ds-details"
|
|
52
52
|
open={true}
|
|
53
53
|
>
|
|
54
54
|
<ForwardRef(DetailsSummary)>
|
|
55
55
|
<ForwardRef(Base)
|
|
56
56
|
as="summary"
|
|
57
|
-
className="
|
|
57
|
+
className="ds-details__summary"
|
|
58
58
|
>
|
|
59
59
|
<summary
|
|
60
|
-
className="
|
|
60
|
+
className="ds-details__summary"
|
|
61
61
|
>
|
|
62
62
|
Help with nationality
|
|
63
63
|
</summary>
|
|
@@ -66,10 +66,10 @@ exports[`renders the open Details component 1`] = `
|
|
|
66
66
|
<ForwardRef(DetailsContent)>
|
|
67
67
|
<ForwardRef(Base)
|
|
68
68
|
as="div"
|
|
69
|
-
className="
|
|
69
|
+
className="ds-details__content"
|
|
70
70
|
>
|
|
71
71
|
<div
|
|
72
|
-
className="
|
|
72
|
+
className="ds-details__content"
|
|
73
73
|
>
|
|
74
74
|
We need to know your nationality so we can work out which elections you’re entitled to vote in. If you cannot provide your nationality, you’ll have to send copies of identity documents through the post.
|
|
75
75
|
</div>
|
|
@@ -15,14 +15,14 @@ const defaultTags = [
|
|
|
15
15
|
];
|
|
16
16
|
|
|
17
17
|
const elementClassNameMapping = {
|
|
18
|
-
a: '
|
|
19
|
-
p: '
|
|
20
|
-
b: '
|
|
21
|
-
strong: '
|
|
22
|
-
sub: '
|
|
23
|
-
ul: '
|
|
24
|
-
ol: '
|
|
25
|
-
li: '
|
|
18
|
+
a: 'ds-link',
|
|
19
|
+
p: 'ds-body',
|
|
20
|
+
b: 'ds-bold',
|
|
21
|
+
strong: 'ds-bold',
|
|
22
|
+
sub: 'ds-sub',
|
|
23
|
+
ul: 'ds-list ds-list--bullet',
|
|
24
|
+
ol: 'ds-list ds-list--number',
|
|
25
|
+
li: 'ds-list__item',
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
if (typeof window !== 'undefined') {
|
|
@@ -62,7 +62,7 @@ export const getClosingTags = (htmlString) => {
|
|
|
62
62
|
return stack;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
interface SafeHTMLProps {
|
|
65
|
+
export interface SafeHTMLProps {
|
|
66
66
|
content: string;
|
|
67
67
|
tags?: Array<string>;
|
|
68
68
|
Tag?: string;
|
|
@@ -90,7 +90,7 @@ export const SafeHTML = ({
|
|
|
90
90
|
<Tag
|
|
91
91
|
// @ts-ignore
|
|
92
92
|
style={{ whiteSpace: 'break-spaces', ...style }}
|
|
93
|
-
className="
|
|
93
|
+
className="ds-body"
|
|
94
94
|
dangerouslySetInnerHTML={{
|
|
95
95
|
__html: parsedHTML,
|
|
96
96
|
}}
|
|
@@ -4,26 +4,26 @@ exports[`renders the SummaryList with sample data 1`] = `
|
|
|
4
4
|
<ForwardRef(SummaryList)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="dl"
|
|
7
|
-
className="
|
|
7
|
+
className="ds-summary-list"
|
|
8
8
|
>
|
|
9
9
|
<dl
|
|
10
|
-
className="
|
|
10
|
+
className="ds-summary-list"
|
|
11
11
|
>
|
|
12
12
|
<ForwardRef(SummaryListItem)>
|
|
13
13
|
<ForwardRef(Base)
|
|
14
14
|
as="div"
|
|
15
|
-
className="
|
|
15
|
+
className="ds-summary-list__row"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
|
-
className="
|
|
18
|
+
className="ds-summary-list__row"
|
|
19
19
|
>
|
|
20
20
|
<ForwardRef(SummaryListItemKey)>
|
|
21
21
|
<ForwardRef(Base)
|
|
22
22
|
as="dt"
|
|
23
|
-
className="
|
|
23
|
+
className="ds-summary-list__key"
|
|
24
24
|
>
|
|
25
25
|
<dt
|
|
26
|
-
className="
|
|
26
|
+
className="ds-summary-list__key"
|
|
27
27
|
>
|
|
28
28
|
Όνομα
|
|
29
29
|
</dt>
|
|
@@ -32,10 +32,10 @@ exports[`renders the SummaryList with sample data 1`] = `
|
|
|
32
32
|
<ForwardRef(SummaryListItemValue)>
|
|
33
33
|
<ForwardRef(Base)
|
|
34
34
|
as="dd"
|
|
35
|
-
className="
|
|
35
|
+
className="ds-summary-list__value"
|
|
36
36
|
>
|
|
37
37
|
<dd
|
|
38
|
-
className="
|
|
38
|
+
className="ds-summary-list__value"
|
|
39
39
|
>
|
|
40
40
|
Μάριος
|
|
41
41
|
</dd>
|
|
@@ -44,10 +44,10 @@ exports[`renders the SummaryList with sample data 1`] = `
|
|
|
44
44
|
<ForwardRef(SummaryListItemAction)>
|
|
45
45
|
<ForwardRef(Base)
|
|
46
46
|
as="dd"
|
|
47
|
-
className="
|
|
47
|
+
className="ds-summary-list__actions"
|
|
48
48
|
>
|
|
49
49
|
<dd
|
|
50
|
-
className="
|
|
50
|
+
className="ds-summary-list__actions"
|
|
51
51
|
>
|
|
52
52
|
Αλλαγή
|
|
53
53
|
</dd>
|
|
@@ -59,18 +59,18 @@ exports[`renders the SummaryList with sample data 1`] = `
|
|
|
59
59
|
<ForwardRef(SummaryListItem)>
|
|
60
60
|
<ForwardRef(Base)
|
|
61
61
|
as="div"
|
|
62
|
-
className="
|
|
62
|
+
className="ds-summary-list__row"
|
|
63
63
|
>
|
|
64
64
|
<div
|
|
65
|
-
className="
|
|
65
|
+
className="ds-summary-list__row"
|
|
66
66
|
>
|
|
67
67
|
<ForwardRef(SummaryListItemKey)>
|
|
68
68
|
<ForwardRef(Base)
|
|
69
69
|
as="dt"
|
|
70
|
-
className="
|
|
70
|
+
className="ds-summary-list__key"
|
|
71
71
|
>
|
|
72
72
|
<dt
|
|
73
|
-
className="
|
|
73
|
+
className="ds-summary-list__key"
|
|
74
74
|
>
|
|
75
75
|
Επώνυμο
|
|
76
76
|
</dt>
|
|
@@ -79,10 +79,10 @@ exports[`renders the SummaryList with sample data 1`] = `
|
|
|
79
79
|
<ForwardRef(SummaryListItemValue)>
|
|
80
80
|
<ForwardRef(Base)
|
|
81
81
|
as="dd"
|
|
82
|
-
className="
|
|
82
|
+
className="ds-summary-list__value"
|
|
83
83
|
>
|
|
84
84
|
<dd
|
|
85
|
-
className="
|
|
85
|
+
className="ds-summary-list__value"
|
|
86
86
|
>
|
|
87
87
|
Μενεξές
|
|
88
88
|
</dd>
|
|
@@ -63,7 +63,7 @@ export default class AutoComplete extends Component<AutoCompleteProps, State> {
|
|
|
63
63
|
defaultValue: '',
|
|
64
64
|
displayMenu: 'overlay',
|
|
65
65
|
minLength: 0,
|
|
66
|
-
name: '
|
|
66
|
+
name: 'ds-input-autocomplete',
|
|
67
67
|
placeholder: '',
|
|
68
68
|
onConfirm: (): void => {
|
|
69
69
|
return;
|
|
@@ -503,7 +503,7 @@ export default class AutoComplete extends Component<AutoCompleteProps, State> {
|
|
|
503
503
|
queryNotEmpty &&
|
|
504
504
|
queryLongEnough;
|
|
505
505
|
const componentIsFocused = focused !== null;
|
|
506
|
-
const dropdownArrowClassName = `
|
|
506
|
+
const dropdownArrowClassName = `ds-autocomplete__dropdown-arrow-down`;
|
|
507
507
|
const optionFocused = focused !== -1 && focused !== null;
|
|
508
508
|
const menuIsVisible = menuOpen || showNoOptionsFound;
|
|
509
509
|
const selectedOptionText = this.templateInputValue(options[selected]);
|
|
@@ -518,8 +518,8 @@ export default class AutoComplete extends Component<AutoCompleteProps, State> {
|
|
|
518
518
|
const assistiveHintID = id + '__assistiveHint';
|
|
519
519
|
const ariaDescribedProp = ariaHint
|
|
520
520
|
? {
|
|
521
|
-
|
|
522
|
-
|
|
521
|
+
'aria-describedby': assistiveHintID,
|
|
522
|
+
}
|
|
523
523
|
: null;
|
|
524
524
|
|
|
525
525
|
return (
|
|
@@ -4,11 +4,11 @@ exports[`renders the button 1`] = `
|
|
|
4
4
|
<ForwardRef(Button)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="button"
|
|
7
|
-
className="
|
|
7
|
+
className="ds-btn-primary ds-btn"
|
|
8
8
|
printHidden={true}
|
|
9
9
|
>
|
|
10
10
|
<button
|
|
11
|
-
className="
|
|
11
|
+
className="ds-btn-primary ds-btn ds-print-hidden"
|
|
12
12
|
>
|
|
13
13
|
hello
|
|
14
14
|
</button>
|
|
@@ -5,18 +5,18 @@ children 1`] = `
|
|
|
5
5
|
<ForwardRef(Layout)>
|
|
6
6
|
<ForwardRef(Base)
|
|
7
7
|
as="div"
|
|
8
|
-
className="
|
|
8
|
+
className="ds-layout--full-height ds-layout"
|
|
9
9
|
>
|
|
10
10
|
<div
|
|
11
|
-
className="
|
|
11
|
+
className="ds-layout--full-height ds-layout"
|
|
12
12
|
>
|
|
13
13
|
<ForwardRef(Top)>
|
|
14
14
|
<ForwardRef(Base)
|
|
15
15
|
as="div"
|
|
16
|
-
className="
|
|
16
|
+
className="ds-top"
|
|
17
17
|
>
|
|
18
18
|
<div
|
|
19
|
-
className="
|
|
19
|
+
className="ds-top"
|
|
20
20
|
>
|
|
21
21
|
Header content
|
|
22
22
|
</div>
|
|
@@ -25,7 +25,7 @@ children 1`] = `
|
|
|
25
25
|
<withDeprecationComponent>
|
|
26
26
|
<ForwardRef(Container)>
|
|
27
27
|
<ForwardRef(Grid)
|
|
28
|
-
className="
|
|
28
|
+
className="ds-container"
|
|
29
29
|
container={true}
|
|
30
30
|
spacing={
|
|
31
31
|
Object {
|
|
@@ -35,15 +35,15 @@ children 1`] = `
|
|
|
35
35
|
>
|
|
36
36
|
<ForwardRef(Base)
|
|
37
37
|
as="div"
|
|
38
|
-
className="
|
|
38
|
+
className="ds-container ds-gap-sm-12 ds-grid"
|
|
39
39
|
>
|
|
40
40
|
<div
|
|
41
|
-
className="
|
|
41
|
+
className="ds-container ds-gap-sm-12 ds-grid"
|
|
42
42
|
>
|
|
43
43
|
<ForwardRef(Main)>
|
|
44
44
|
<ForwardRef(Grid)
|
|
45
45
|
as="main"
|
|
46
|
-
className="
|
|
46
|
+
className="ds-main"
|
|
47
47
|
id="main-content"
|
|
48
48
|
item={true}
|
|
49
49
|
md={8}
|
|
@@ -51,11 +51,11 @@ children 1`] = `
|
|
|
51
51
|
>
|
|
52
52
|
<ForwardRef(Base)
|
|
53
53
|
as="main"
|
|
54
|
-
className="
|
|
54
|
+
className="ds-main xs:ds-grid__col-span-12 md:ds-grid__col-span-8"
|
|
55
55
|
id="main-content"
|
|
56
56
|
>
|
|
57
57
|
<main
|
|
58
|
-
className="
|
|
58
|
+
className="ds-main xs:ds-grid__col-span-12 md:ds-grid__col-span-8"
|
|
59
59
|
id="main-content"
|
|
60
60
|
>
|
|
61
61
|
Main content
|
|
@@ -67,7 +67,7 @@ children 1`] = `
|
|
|
67
67
|
<ForwardRef(Aside)>
|
|
68
68
|
<ForwardRef(Grid)
|
|
69
69
|
as="aside"
|
|
70
|
-
className="
|
|
70
|
+
className="ds-aside"
|
|
71
71
|
item={true}
|
|
72
72
|
md={4}
|
|
73
73
|
spacing={4}
|
|
@@ -75,10 +75,10 @@ children 1`] = `
|
|
|
75
75
|
>
|
|
76
76
|
<ForwardRef(Base)
|
|
77
77
|
as="aside"
|
|
78
|
-
className="
|
|
78
|
+
className="ds-aside xs:ds-grid__col-span-12 md:ds-grid__col-span-4"
|
|
79
79
|
>
|
|
80
80
|
<aside
|
|
81
|
-
className="
|
|
81
|
+
className="ds-aside xs:ds-grid__col-span-12 md:ds-grid__col-span-4"
|
|
82
82
|
>
|
|
83
83
|
Side content
|
|
84
84
|
</aside>
|
|
@@ -94,10 +94,10 @@ children 1`] = `
|
|
|
94
94
|
<ForwardRef(Bottom)>
|
|
95
95
|
<ForwardRef(Base)
|
|
96
96
|
as="div"
|
|
97
|
-
className="
|
|
97
|
+
className="ds-bottom"
|
|
98
98
|
>
|
|
99
99
|
<div
|
|
100
|
-
className="
|
|
100
|
+
className="ds-bottom"
|
|
101
101
|
>
|
|
102
102
|
Bottom content
|
|
103
103
|
</div>
|
|
@@ -6,4 +6,5 @@ export default {
|
|
|
6
6
|
};
|
|
7
7
|
export * from '@digigov/ui/layouts/Screen/__stories__/Default';
|
|
8
8
|
export * from '@digigov/ui/layouts/Screen/__stories__/SpecificScreenSize';
|
|
9
|
-
export * from '@digigov/ui/layouts/Screen/__stories__/ScreenDown';
|
|
9
|
+
export * from '@digigov/ui/layouts/Screen/__stories__/ScreenDown';
|
|
10
|
+
export * from '@digigov/ui/layouts/Screen/__stories__/ScreenUp';
|