@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.
Files changed (100) hide show
  1. package/app/Header/__snapshots__/index.spec.tsx.snap +4 -4
  2. package/app/QrCodeViewer/QRCode.stories.d.ts +1 -0
  3. package/app/QrCodeViewer/index.d.ts +1 -0
  4. package/app/QrCodeViewer/index.js +2 -1
  5. package/app/hooks/useHighlightLinks/index.js +4 -4
  6. package/cjs/app/Header/__snapshots__/index.spec.tsx.snap +4 -4
  7. package/cjs/app/QrCodeViewer/index.js +3 -2
  8. package/cjs/app/hooks/useHighlightLinks/index.js +4 -4
  9. package/cjs/content/Accordion/__snapshots__/index.spec.tsx.snap +20 -20
  10. package/cjs/content/Blockquote/__snapshots__/index.spec.tsx.snap +2 -2
  11. package/cjs/content/Details/__snapshots__/index.spec.tsx.snap +12 -12
  12. package/cjs/content/SafeHTML/index.js +9 -9
  13. package/cjs/content/SummaryList/__snapshots__/index.spec.tsx.snap +16 -16
  14. package/cjs/form/AutoComplete/index.js +2 -2
  15. package/cjs/form/Button/__snapshots__/index.spec.tsx.snap +2 -2
  16. package/cjs/layouts/Basic/__snapshots__/index.spec.tsx.snap +15 -15
  17. package/cjs/layouts/Screen/Screen.stories/index.js +12 -0
  18. package/cjs/layouts/Screen/__stories__/ScreenUp/index.js +16 -0
  19. package/cjs/lazy/index.js +2884 -0
  20. package/cjs/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
  21. package/cjs/typography/Heading/__stories__/Default/index.js +5 -5
  22. package/cjs/typography/HeadingCaption/__stories__/Default/index.js +6 -6
  23. package/cjs/typography/HeadingCaption/__stories__/NestedToTitle/index.js +1 -1
  24. package/cjs/typography/Hint/__stories__/Default/index.js +1 -1
  25. package/cjs/typography/Hint/__stories__/FontSizes/index.js +4 -4
  26. package/cjs/typography/NormalText/__stories__/Default/index.js +1 -1
  27. package/cjs/typography/NormalText/__stories__/FontSizes/index.js +7 -7
  28. package/cjs/typography/NormalText/__stories__/FontWeight/index.js +2 -2
  29. package/cjs/typography/NormalText/__stories__/Variants/index.js +2 -2
  30. package/cjs/typography/Paragraph/__stories__/Default/index.js +1 -1
  31. package/cjs/typography/Paragraph/__stories__/FontSizes/index.js +7 -7
  32. package/cjs/typography/Paragraph/__stories__/FontWeight/index.js +2 -2
  33. package/cjs/typography/Paragraph/__stories__/LeadVariant/index.js +1 -1
  34. package/cjs/typography/Paragraph/__stories__/SmallVariant/index.js +1 -1
  35. package/cjs/utils/hooks/useScreen/index.js +0 -2
  36. package/content/Accordion/__snapshots__/index.spec.tsx.snap +20 -20
  37. package/content/Blockquote/__snapshots__/index.spec.tsx.snap +2 -2
  38. package/content/Details/__snapshots__/index.spec.tsx.snap +12 -12
  39. package/content/SafeHTML/index.d.ts +1 -1
  40. package/content/SafeHTML/index.js +9 -9
  41. package/content/SummaryList/__snapshots__/index.spec.tsx.snap +16 -16
  42. package/form/AutoComplete/index.js +2 -2
  43. package/form/Button/__snapshots__/index.spec.tsx.snap +2 -2
  44. package/index.js +1 -1
  45. package/layouts/Basic/__snapshots__/index.spec.tsx.snap +15 -15
  46. package/layouts/Screen/Screen.stories/index.js +2 -1
  47. package/layouts/Screen/Screen.stories.d.ts +1 -0
  48. package/layouts/Screen/__stories__/ScreenUp/index.js +9 -0
  49. package/layouts/Screen/__stories__/ScreenUp/package.json +6 -0
  50. package/layouts/Screen/__stories__/ScreenUp.d.ts +3 -0
  51. package/lazy/index.js +2236 -0
  52. package/lazy/package.json +6 -0
  53. package/lazy.d.ts +347 -0
  54. package/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
  55. package/package.json +5 -6
  56. package/src/app/Header/__snapshots__/index.spec.tsx.snap +4 -4
  57. package/src/app/QrCodeViewer/index.tsx +2 -0
  58. package/src/app/hooks/useHighlightLinks.ts +4 -4
  59. package/src/content/Accordion/__snapshots__/index.spec.tsx.snap +20 -20
  60. package/src/content/Blockquote/__snapshots__/index.spec.tsx.snap +2 -2
  61. package/src/content/Details/__snapshots__/index.spec.tsx.snap +12 -12
  62. package/src/content/SafeHTML/index.tsx +10 -10
  63. package/src/content/SummaryList/__snapshots__/index.spec.tsx.snap +16 -16
  64. package/src/form/AutoComplete/index.tsx +4 -4
  65. package/src/form/Button/__snapshots__/index.spec.tsx.snap +2 -2
  66. package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +15 -15
  67. package/src/layouts/Screen/Screen.stories.js +2 -1
  68. package/src/layouts/Screen/__stories__/ScreenUp.tsx +11 -0
  69. package/src/lazy.js +323 -0
  70. package/src/navigation/Link/__snapshots__/index.spec.tsx.snap +2 -2
  71. package/src/typography/Heading/__stories__/Default.tsx +5 -5
  72. package/src/typography/HeadingCaption/__stories__/Default.tsx +6 -6
  73. package/src/typography/HeadingCaption/__stories__/NestedToTitle.tsx +2 -2
  74. package/src/typography/Hint/__stories__/Default.tsx +1 -1
  75. package/src/typography/Hint/__stories__/FontSizes.tsx +4 -4
  76. package/src/typography/NormalText/__stories__/Default.tsx +1 -1
  77. package/src/typography/NormalText/__stories__/FontSizes.tsx +7 -7
  78. package/src/typography/NormalText/__stories__/FontWeight.tsx +2 -2
  79. package/src/typography/NormalText/__stories__/Variants.tsx +2 -2
  80. package/src/typography/Paragraph/__stories__/Default.tsx +1 -1
  81. package/src/typography/Paragraph/__stories__/FontSizes.tsx +7 -7
  82. package/src/typography/Paragraph/__stories__/FontWeight.tsx +2 -2
  83. package/src/typography/Paragraph/__stories__/LeadVariant.tsx +1 -1
  84. package/src/typography/Paragraph/__stories__/SmallVariant.tsx +1 -1
  85. package/src/utils/hooks/useScreen.ts +1 -2
  86. package/typography/Heading/__stories__/Default/index.js +5 -5
  87. package/typography/HeadingCaption/__stories__/Default/index.js +6 -6
  88. package/typography/HeadingCaption/__stories__/NestedToTitle/index.js +1 -1
  89. package/typography/Hint/__stories__/Default/index.js +1 -1
  90. package/typography/Hint/__stories__/FontSizes/index.js +4 -4
  91. package/typography/NormalText/__stories__/Default/index.js +1 -1
  92. package/typography/NormalText/__stories__/FontSizes/index.js +7 -7
  93. package/typography/NormalText/__stories__/FontWeight/index.js +2 -2
  94. package/typography/NormalText/__stories__/Variants/index.js +2 -2
  95. package/typography/Paragraph/__stories__/Default/index.js +1 -1
  96. package/typography/Paragraph/__stories__/FontSizes/index.js +7 -7
  97. package/typography/Paragraph/__stories__/FontWeight/index.js +2 -2
  98. package/typography/Paragraph/__stories__/LeadVariant/index.js +1 -1
  99. package/typography/Paragraph/__stories__/SmallVariant/index.js +1 -1
  100. package/utils/hooks/useScreen/index.js +0 -2
@@ -4,11 +4,11 @@ exports[`renders the HeaderTitle component 1`] = `
4
4
  <ForwardRef(HeaderTitle)>
5
5
  <ForwardRef(Base)
6
6
  as="a"
7
- className="govgr-header__title"
7
+ className="ds-header__title"
8
8
  href="/"
9
9
  >
10
10
  <a
11
- className="govgr-header__title"
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="govgr-header__title"
26
+ className="ds-header__title"
27
27
  href="/somelink"
28
28
  >
29
29
  <a
30
- className="govgr-header__title"
30
+ className="ds-header__title"
31
31
  href="/somelink"
32
32
  >
33
33
  A title
@@ -6,3 +6,4 @@ declare namespace _default {
6
6
  export default _default;
7
7
  export * from "@digigov/ui/app/QrCodeViewer/__stories__/Default";
8
8
  export * from "@digigov/ui/app/QrCodeViewer/__stories__/Custom";
9
+ import QrCodeViewer from '@digigov/ui/app/QrCodeViewer';
@@ -3,3 +3,4 @@ import { QRPropsCanvas } from '@digigov/ui/app/QrCodeViewer/types';
3
3
  export interface QrCodeViewerProps extends QRPropsCanvas {
4
4
  }
5
5
  export declare const QrCodeViewer: React.ForwardRefExoticComponent<QrCodeViewerProps & React.RefAttributes<unknown>>;
6
+ export default QrCodeViewer;
@@ -139,4 +139,5 @@ export var QrCodeViewer = /*#__PURE__*/React.forwardRef(function QrCodeViewer(pr
139
139
  return /*#__PURE__*/React.createElement(QrCodeViewerCanvas, _extends({}, props, {
140
140
  ref: ref
141
141
  }));
142
- });
142
+ });
143
+ export default QrCodeViewer;
@@ -8,18 +8,18 @@ export var useHighlightLinks = function useHighlightLinks() {
8
8
  changeHighlightLinks = _useState2[1];
9
9
  useEffect(function () {
10
10
  if (highlightLinks === 'highlight') {
11
- document.documentElement.classList.add("govgr-highlight-links");
11
+ document.documentElement.classList.add("ds-highlight-links");
12
12
  } else {
13
- document.documentElement.classList.remove("govgr-highlight-links");
13
+ document.documentElement.classList.remove("ds-highlight-links");
14
14
  }
15
15
  localStorage.setItem('--theme-highlight-links', highlightLinks);
16
16
  }, [highlightLinks]);
17
17
  useEffect(function () {
18
18
  var beforePrintListener = function beforePrintListener() {
19
- document.documentElement.classList.remove("govgr-highlight-links");
19
+ document.documentElement.classList.remove("ds-highlight-links");
20
20
  };
21
21
  var afterPrintListener = function afterPrintListener() {
22
- document.documentElement.classList.add(localStorage.getItem('--theme-highlight-links') === 'highlight' ? "govgr-highlight-links" : '');
22
+ document.documentElement.classList.add(localStorage.getItem('--theme-highlight-links') === 'highlight' ? "ds-highlight-links" : '');
23
23
  };
24
24
  window.addEventListener('beforeprint', beforePrintListener);
25
25
  window.addEventListener('afterprint', afterPrintListener);
@@ -4,11 +4,11 @@ exports[`renders the HeaderTitle component 1`] = `
4
4
  <ForwardRef(HeaderTitle)>
5
5
  <ForwardRef(Base)
6
6
  as="a"
7
- className="govgr-header__title"
7
+ className="ds-header__title"
8
8
  href="/"
9
9
  >
10
10
  <a
11
- className="govgr-header__title"
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="govgr-header__title"
26
+ className="ds-header__title"
27
27
  href="/somelink"
28
28
  >
29
29
  <a
30
- className="govgr-header__title"
30
+ className="ds-header__title"
31
31
  href="/somelink"
32
32
  >
33
33
  A title
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.QrCodeViewer = void 0;
8
+ exports["default"] = exports.QrCodeViewer = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
@@ -149,4 +149,5 @@ var QrCodeViewer = exports.QrCodeViewer = /*#__PURE__*/_react["default"].forward
149
149
  return /*#__PURE__*/_react["default"].createElement(QrCodeViewerCanvas, (0, _extends2["default"])({}, props, {
150
150
  ref: ref
151
151
  }));
152
- });
152
+ });
153
+ var _default = exports["default"] = QrCodeViewer;
@@ -15,18 +15,18 @@ var useHighlightLinks = exports.useHighlightLinks = function useHighlightLinks()
15
15
  changeHighlightLinks = _useState2[1];
16
16
  (0, _react.useEffect)(function () {
17
17
  if (highlightLinks === 'highlight') {
18
- document.documentElement.classList.add("govgr-highlight-links");
18
+ document.documentElement.classList.add("ds-highlight-links");
19
19
  } else {
20
- document.documentElement.classList.remove("govgr-highlight-links");
20
+ document.documentElement.classList.remove("ds-highlight-links");
21
21
  }
22
22
  localStorage.setItem('--theme-highlight-links', highlightLinks);
23
23
  }, [highlightLinks]);
24
24
  (0, _react.useEffect)(function () {
25
25
  var beforePrintListener = function beforePrintListener() {
26
- document.documentElement.classList.remove("govgr-highlight-links");
26
+ document.documentElement.classList.remove("ds-highlight-links");
27
27
  };
28
28
  var afterPrintListener = function afterPrintListener() {
29
- document.documentElement.classList.add(localStorage.getItem('--theme-highlight-links') === 'highlight' ? "govgr-highlight-links" : '');
29
+ document.documentElement.classList.add(localStorage.getItem('--theme-highlight-links') === 'highlight' ? "ds-highlight-links" : '');
30
30
  };
31
31
  window.addEventListener('beforeprint', beforePrintListener);
32
32
  window.addEventListener('afterprint', afterPrintListener);
@@ -4,19 +4,19 @@ exports[`renders the Accordion 1`] = `
4
4
  <ForwardRef(Accordion)>
5
5
  <ForwardRef(Base)
6
6
  as="div"
7
- className="govgr-accordion--border-top govgr-accordion"
7
+ className="ds-accordion--border-top ds-accordion"
8
8
  >
9
9
  <div
10
- className="govgr-accordion--border-top govgr-accordion"
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="govgr-accordion__section"
16
+ className="ds-accordion__section"
17
17
  >
18
18
  <details
19
- className="govgr-accordion__section"
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="govgr-accordion__section-summary"
27
+ className="ds-accordion__section-summary"
28
28
  role="heading"
29
29
  >
30
30
  <summary
31
31
  aria-level={2}
32
- className="govgr-accordion__section-summary"
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="govgr-accordion__section-heading"
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="govgr-accordion__section-heading"
48
+ className="ds-accordion__section-heading"
49
49
  onClick={[Function]}
50
50
  role="button"
51
51
  >
52
52
  <span
53
- className="govgr-accordion__section-button"
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="govgr-accordion__section-content"
69
+ className="ds-accordion__section-content"
70
70
  >
71
71
  <div
72
- className="govgr-accordion__section-content"
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="govgr-accordion__section"
87
+ className="ds-accordion__section"
88
88
  >
89
89
  <details
90
- className="govgr-accordion__section"
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="govgr-accordion__section-summary"
98
+ className="ds-accordion__section-summary"
99
99
  role="heading"
100
100
  >
101
101
  <summary
102
102
  aria-level={2}
103
- className="govgr-accordion__section-summary"
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="govgr-accordion__section-heading"
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="govgr-accordion__section-heading"
119
+ className="ds-accordion__section-heading"
120
120
  onClick={[Function]}
121
121
  role="button"
122
122
  >
123
123
  <span
124
- className="govgr-accordion__section-button"
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="govgr-accordion__section-content"
140
+ className="ds-accordion__section-content"
141
141
  >
142
142
  <div
143
- className="govgr-accordion__section-content"
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="govgr-blockquote"
7
+ className="ds-blockquote"
8
8
  >
9
9
  <blockquote
10
- className="govgr-blockquote"
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="govgr-details"
7
+ className="ds-details"
8
8
  >
9
9
  <details
10
- className="govgr-details"
10
+ className="ds-details"
11
11
  >
12
12
  <ForwardRef(DetailsSummary)>
13
13
  <ForwardRef(Base)
14
14
  as="summary"
15
- className="govgr-details__summary"
15
+ className="ds-details__summary"
16
16
  >
17
17
  <summary
18
- className="govgr-details__summary"
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="govgr-details__content"
27
+ className="ds-details__content"
28
28
  >
29
29
  <div
30
- className="govgr-details__content"
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="govgr-details"
47
+ className="ds-details"
48
48
  open={true}
49
49
  >
50
50
  <details
51
- className="govgr-details"
51
+ className="ds-details"
52
52
  open={true}
53
53
  >
54
54
  <ForwardRef(DetailsSummary)>
55
55
  <ForwardRef(Base)
56
56
  as="summary"
57
- className="govgr-details__summary"
57
+ className="ds-details__summary"
58
58
  >
59
59
  <summary
60
- className="govgr-details__summary"
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="govgr-details__content"
69
+ className="ds-details__content"
70
70
  >
71
71
  <div
72
- className="govgr-details__content"
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>
@@ -16,14 +16,14 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
16
16
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
17
17
  var defaultTags = ['b', 'strong', 'sub', 'sup', 'br', 'a', 'p', 'ul', 'li', 'ol'];
18
18
  var elementClassNameMapping = {
19
- a: 'govgr-link',
20
- p: 'govgr-body',
21
- b: 'govgr-bold',
22
- strong: 'govgr-bold',
23
- sub: 'govgr-sub',
24
- ul: 'govgr-list govgr-list--bullet',
25
- ol: 'govgr-list govgr-list--number',
26
- li: 'govgr-list__item'
19
+ a: 'ds-link',
20
+ p: 'ds-body',
21
+ b: 'ds-bold',
22
+ strong: 'ds-bold',
23
+ sub: 'ds-sub',
24
+ ul: 'ds-list ds-list--bullet',
25
+ ol: 'ds-list ds-list--number',
26
+ li: 'ds-list__item'
27
27
  };
28
28
  if (typeof window !== 'undefined') {
29
29
  _dompurify["default"].addHook('afterSanitizeAttributes', function (node) {
@@ -96,7 +96,7 @@ var SafeHTML = exports.SafeHTML = function SafeHTML(_ref) {
96
96
  style: (0, _extends2["default"])({
97
97
  whiteSpace: 'break-spaces'
98
98
  }, style),
99
- className: "govgr-body",
99
+ className: "ds-body",
100
100
  dangerouslySetInnerHTML: {
101
101
  __html: parsedHTML
102
102
  }
@@ -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="govgr-summary-list"
7
+ className="ds-summary-list"
8
8
  >
9
9
  <dl
10
- className="govgr-summary-list"
10
+ className="ds-summary-list"
11
11
  >
12
12
  <ForwardRef(SummaryListItem)>
13
13
  <ForwardRef(Base)
14
14
  as="div"
15
- className="govgr-summary-list__row"
15
+ className="ds-summary-list__row"
16
16
  >
17
17
  <div
18
- className="govgr-summary-list__row"
18
+ className="ds-summary-list__row"
19
19
  >
20
20
  <ForwardRef(SummaryListItemKey)>
21
21
  <ForwardRef(Base)
22
22
  as="dt"
23
- className="govgr-summary-list__key"
23
+ className="ds-summary-list__key"
24
24
  >
25
25
  <dt
26
- className="govgr-summary-list__key"
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="govgr-summary-list__value"
35
+ className="ds-summary-list__value"
36
36
  >
37
37
  <dd
38
- className="govgr-summary-list__value"
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="govgr-summary-list__actions"
47
+ className="ds-summary-list__actions"
48
48
  >
49
49
  <dd
50
- className="govgr-summary-list__actions"
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="govgr-summary-list__row"
62
+ className="ds-summary-list__row"
63
63
  >
64
64
  <div
65
- className="govgr-summary-list__row"
65
+ className="ds-summary-list__row"
66
66
  >
67
67
  <ForwardRef(SummaryListItemKey)>
68
68
  <ForwardRef(Base)
69
69
  as="dt"
70
- className="govgr-summary-list__key"
70
+ className="ds-summary-list__key"
71
71
  >
72
72
  <dt
73
- className="govgr-summary-list__key"
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="govgr-summary-list__value"
82
+ className="ds-summary-list__value"
83
83
  >
84
84
  <dd
85
- className="govgr-summary-list__value"
85
+ className="ds-summary-list__value"
86
86
  >
87
87
  Μενεξές
88
88
  </dd>
@@ -515,7 +515,7 @@ var AutoComplete = exports.AutoComplete = exports["default"] = /*#__PURE__*/func
515
515
  var queryLongEnough = query.length >= minLength;
516
516
  var showNoOptionsFound = this.props.showNoOptionsFound && inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough;
517
517
  var componentIsFocused = focused !== null;
518
- var dropdownArrowClassName = "govgr-autocomplete__dropdown-arrow-down";
518
+ var dropdownArrowClassName = "ds-autocomplete__dropdown-arrow-down";
519
519
  var optionFocused = focused !== -1 && focused !== null;
520
520
  var menuIsVisible = menuOpen || showNoOptionsFound;
521
521
  var selectedOptionText = this.templateInputValue(options[selected]);
@@ -642,7 +642,7 @@ AutoComplete.defaultProps = {
642
642
  defaultValue: '',
643
643
  displayMenu: 'overlay',
644
644
  minLength: 0,
645
- name: 'govgr-input-autocomplete',
645
+ name: 'ds-input-autocomplete',
646
646
  placeholder: '',
647
647
  onConfirm: function onConfirm() {
648
648
  return;
@@ -4,11 +4,11 @@ exports[`renders the button 1`] = `
4
4
  <ForwardRef(Button)>
5
5
  <ForwardRef(Base)
6
6
  as="button"
7
- className="govgr-btn-primary govgr-btn"
7
+ className="ds-btn-primary ds-btn"
8
8
  printHidden={true}
9
9
  >
10
10
  <button
11
- className="govgr-btn-primary govgr-btn govgr-print-hidden"
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="govgr-layout--full-height govgr-layout"
8
+ className="ds-layout--full-height ds-layout"
9
9
  >
10
10
  <div
11
- className="govgr-layout--full-height govgr-layout"
11
+ className="ds-layout--full-height ds-layout"
12
12
  >
13
13
  <ForwardRef(Top)>
14
14
  <ForwardRef(Base)
15
15
  as="div"
16
- className="govgr-top"
16
+ className="ds-top"
17
17
  >
18
18
  <div
19
- className="govgr-top"
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="govgr-container"
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="govgr-container govgr-gap-sm-12 govgr-grid"
38
+ className="ds-container ds-gap-sm-12 ds-grid"
39
39
  >
40
40
  <div
41
- className="govgr-container govgr-gap-sm-12 govgr-grid"
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="govgr-main"
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="govgr-main xs:govgr-grid__col-span-12 md:govgr-grid__col-span-8"
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="govgr-main xs:govgr-grid__col-span-12 md:govgr-grid__col-span-8"
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="govgr-aside"
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="govgr-aside xs:govgr-grid__col-span-12 md:govgr-grid__col-span-4"
78
+ className="ds-aside xs:ds-grid__col-span-12 md:ds-grid__col-span-4"
79
79
  >
80
80
  <aside
81
- className="govgr-aside xs:govgr-grid__col-span-12 md:govgr-grid__col-span-4"
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="govgr-bottom"
97
+ className="ds-bottom"
98
98
  >
99
99
  <div
100
- className="govgr-bottom"
100
+ className="ds-bottom"
101
101
  >
102
102
  Bottom content
103
103
  </div>
@@ -43,6 +43,18 @@ Object.keys(_ScreenDown).forEach(function (key) {
43
43
  }
44
44
  });
45
45
  });
46
+ var _ScreenUp = require("@digigov/ui/layouts/Screen/__stories__/ScreenUp");
47
+ Object.keys(_ScreenUp).forEach(function (key) {
48
+ if (key === "default" || key === "__esModule") return;
49
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
50
+ if (key in exports && exports[key] === _ScreenUp[key]) return;
51
+ Object.defineProperty(exports, key, {
52
+ enumerable: true,
53
+ get: function get() {
54
+ return _ScreenUp[key];
55
+ }
56
+ });
57
+ });
46
58
  var _default = exports["default"] = {
47
59
  title: 'Digigov UI/layouts/Screen',
48
60
  component: _Screen["default"],