@digigov/ui 1.1.5-496927f3 → 1.2.0-39d8f7d2
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 +2767 -0
- package/cjs/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
- package/cjs/registry/index.js +0 -12
- 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/{utils/Kitchensink/KitchensinkDashboard → layouts/Screen/__stories__/ScreenUp}/package.json +1 -1
- package/layouts/Screen/__stories__/ScreenUp.d.ts +3 -0
- package/lazy/index.js +2145 -0
- package/{misc/KitchenSink → lazy}/package.json +1 -1
- package/lazy.d.ts +334 -0
- package/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
- package/package.json +5 -6
- package/registry/index.js +0 -12
- package/registry.d.ts +0 -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 +310 -0
- package/src/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/registry.js +0 -12
- 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/cjs/misc/KitchenSink/index.js +0 -93
- package/cjs/utils/Kitchensink/AllComponents/index.js +0 -16
- package/cjs/utils/Kitchensink/KitchensinkByCategory/index.js +0 -39
- package/cjs/utils/Kitchensink/KitchensinkByLetter/index.js +0 -26
- package/cjs/utils/Kitchensink/KitchensinkComponent/index.js +0 -55
- package/cjs/utils/Kitchensink/KitchensinkDashboard/index.js +0 -47
- package/misc/KitchenSink/index.d.ts +0 -8
- package/misc/KitchenSink/index.js +0 -8
- package/src/misc/KitchenSink/index.tsx +0 -8
- package/src/utils/Kitchensink/AllComponents.tsx +0 -6
- package/src/utils/Kitchensink/KitchensinkByCategory.tsx +0 -56
- package/src/utils/Kitchensink/KitchensinkByLetter.tsx +0 -35
- package/src/utils/Kitchensink/KitchensinkComponent.tsx +0 -70
- package/src/utils/Kitchensink/KitchensinkDashboard.tsx +0 -56
- package/utils/Kitchensink/AllComponents/index.js +0 -9
- package/utils/Kitchensink/AllComponents/package.json +0 -6
- package/utils/Kitchensink/AllComponents.d.ts +0 -2
- package/utils/Kitchensink/KitchensinkByCategory/index.js +0 -32
- package/utils/Kitchensink/KitchensinkByCategory/package.json +0 -6
- package/utils/Kitchensink/KitchensinkByCategory.d.ts +0 -6
- package/utils/Kitchensink/KitchensinkByLetter/index.js +0 -19
- package/utils/Kitchensink/KitchensinkByLetter/package.json +0 -6
- package/utils/Kitchensink/KitchensinkByLetter.d.ts +0 -6
- package/utils/Kitchensink/KitchensinkComponent/index.js +0 -45
- package/utils/Kitchensink/KitchensinkComponent/package.json +0 -6
- package/utils/Kitchensink/KitchensinkComponent.d.ts +0 -10
- package/utils/Kitchensink/KitchensinkDashboard/index.js +0 -40
- package/utils/Kitchensink/KitchensinkDashboard.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-39d8f7d2",
|
|
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-39d8f7d2",
|
|
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-39d8f7d2",
|
|
22
|
+
"@digigov/css": "1.3.0-39d8f7d2"
|
|
24
23
|
},
|
|
25
24
|
"gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871",
|
|
26
25
|
"private": false,
|
package/registry/index.js
CHANGED
|
@@ -135,7 +135,6 @@ import * as _digigov_ui_layouts_Screen from '@digigov/ui/layouts/Screen';
|
|
|
135
135
|
import * as _digigov_ui_layouts_Section from '@digigov/ui/layouts/Section';
|
|
136
136
|
import * as _digigov_ui_layouts_SectionBreak from '@digigov/ui/layouts/SectionBreak';
|
|
137
137
|
import * as _digigov_ui_layouts_Stack from '@digigov/ui/layouts/Stack';
|
|
138
|
-
import * as _digigov_ui_misc_KitchenSink from '@digigov/ui/misc/KitchenSink';
|
|
139
138
|
import * as _digigov_ui_navigation_BackLink from '@digigov/ui/navigation/BackLink';
|
|
140
139
|
import * as _digigov_ui_navigation_BackToTopLink from '@digigov/ui/navigation/BackToTopLink';
|
|
141
140
|
import * as _digigov_ui_navigation_Breadcrumbs from '@digigov/ui/navigation/Breadcrumbs';
|
|
@@ -176,11 +175,6 @@ import * as _digigov_ui_utils_hooks_useScreen from '@digigov/ui/utils/hooks/useS
|
|
|
176
175
|
import * as _digigov_ui_utils_hooks_useSearch from '@digigov/ui/utils/hooks/useSearch';
|
|
177
176
|
import * as _digigov_ui_utils_hooks_useTogglableTab from '@digigov/ui/utils/hooks/useTogglableTab';
|
|
178
177
|
import * as _digigov_ui_utils from '@digigov/ui/utils';
|
|
179
|
-
import * as _digigov_ui_utils_Kitchensink_AllComponents from '@digigov/ui/utils/Kitchensink/AllComponents';
|
|
180
|
-
import * as _digigov_ui_utils_Kitchensink_KitchensinkByCategory from '@digigov/ui/utils/Kitchensink/KitchensinkByCategory';
|
|
181
|
-
import * as _digigov_ui_utils_Kitchensink_KitchensinkByLetter from '@digigov/ui/utils/Kitchensink/KitchensinkByLetter';
|
|
182
|
-
import * as _digigov_ui_utils_Kitchensink_KitchensinkComponent from '@digigov/ui/utils/Kitchensink/KitchensinkComponent';
|
|
183
|
-
import * as _digigov_ui_utils_Kitchensink_KitchensinkDashboard from '@digigov/ui/utils/Kitchensink/KitchensinkDashboard';
|
|
184
178
|
import * as _digigov_ui_utils_SvgIcon from '@digigov/ui/utils/SvgIcon';
|
|
185
179
|
import * as _digigov_ui_utils_Typography from '@digigov/ui/utils/Typography';
|
|
186
180
|
import * as _digigov_ui_utils_VisuallyHidden from '@digigov/ui/utils/VisuallyHidden';
|
|
@@ -337,7 +331,6 @@ export default {
|
|
|
337
331
|
'@digigov/ui/layouts/Section': lazyImport(_digigov_ui_layouts_Section),
|
|
338
332
|
'@digigov/ui/layouts/SectionBreak': lazyImport(_digigov_ui_layouts_SectionBreak),
|
|
339
333
|
'@digigov/ui/layouts/Stack': lazyImport(_digigov_ui_layouts_Stack),
|
|
340
|
-
'@digigov/ui/misc/KitchenSink': lazyImport(_digigov_ui_misc_KitchenSink),
|
|
341
334
|
'@digigov/ui/navigation/BackLink': lazyImport(_digigov_ui_navigation_BackLink),
|
|
342
335
|
'@digigov/ui/navigation/BackToTopLink': lazyImport(_digigov_ui_navigation_BackToTopLink),
|
|
343
336
|
'@digigov/ui/navigation/Breadcrumbs': lazyImport(_digigov_ui_navigation_Breadcrumbs),
|
|
@@ -378,11 +371,6 @@ export default {
|
|
|
378
371
|
'@digigov/ui/utils/hooks/useSearch': lazyImport(_digigov_ui_utils_hooks_useSearch),
|
|
379
372
|
'@digigov/ui/utils/hooks/useTogglableTab': lazyImport(_digigov_ui_utils_hooks_useTogglableTab),
|
|
380
373
|
'@digigov/ui/utils': lazyImport(_digigov_ui_utils),
|
|
381
|
-
'@digigov/ui/utils/Kitchensink/AllComponents': lazyImport(_digigov_ui_utils_Kitchensink_AllComponents),
|
|
382
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkByCategory': lazyImport(_digigov_ui_utils_Kitchensink_KitchensinkByCategory),
|
|
383
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkByLetter': lazyImport(_digigov_ui_utils_Kitchensink_KitchensinkByLetter),
|
|
384
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkComponent': lazyImport(_digigov_ui_utils_Kitchensink_KitchensinkComponent),
|
|
385
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkDashboard': lazyImport(_digigov_ui_utils_Kitchensink_KitchensinkDashboard),
|
|
386
374
|
'@digigov/ui/utils/SvgIcon': lazyImport(_digigov_ui_utils_SvgIcon),
|
|
387
375
|
'@digigov/ui/utils/Typography': lazyImport(_digigov_ui_utils_Typography),
|
|
388
376
|
'@digigov/ui/utils/VisuallyHidden': lazyImport(_digigov_ui_utils_VisuallyHidden),
|
package/registry.d.ts
CHANGED
|
@@ -136,7 +136,6 @@ declare const _default: {
|
|
|
136
136
|
'@digigov/ui/layouts/Section': {};
|
|
137
137
|
'@digigov/ui/layouts/SectionBreak': {};
|
|
138
138
|
'@digigov/ui/layouts/Stack': {};
|
|
139
|
-
'@digigov/ui/misc/KitchenSink': {};
|
|
140
139
|
'@digigov/ui/navigation/BackLink': {};
|
|
141
140
|
'@digigov/ui/navigation/BackToTopLink': {};
|
|
142
141
|
'@digigov/ui/navigation/Breadcrumbs': {};
|
|
@@ -177,11 +176,6 @@ declare const _default: {
|
|
|
177
176
|
'@digigov/ui/utils/hooks/useSearch': {};
|
|
178
177
|
'@digigov/ui/utils/hooks/useTogglableTab': {};
|
|
179
178
|
'@digigov/ui/utils': {};
|
|
180
|
-
'@digigov/ui/utils/Kitchensink/AllComponents': {};
|
|
181
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkByCategory': {};
|
|
182
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkByLetter': {};
|
|
183
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkComponent': {};
|
|
184
|
-
'@digigov/ui/utils/Kitchensink/KitchensinkDashboard': {};
|
|
185
179
|
'@digigov/ui/utils/SvgIcon': {};
|
|
186
180
|
'@digigov/ui/utils/Typography': {};
|
|
187
181
|
'@digigov/ui/utils/VisuallyHidden': {};
|
|
@@ -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>
|