@digigov/ui 0.27.0 → 0.28.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.
Files changed (175) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/admin/Drawer/__stories__/Default.js +1 -1
  3. package/admin/Dropdown/__stories__/AlignRight.js +3 -3
  4. package/admin/Dropdown/__stories__/Default.js +3 -3
  5. package/admin/Dropdown/__stories__/PlacementTop.js +3 -3
  6. package/admin/Modal/Modal.stories.playwright.json +2 -2
  7. package/admin/Modal/__stories__/AlertDialog.js +2 -6
  8. package/admin/Modal/__stories__/AlertDialog.test.d.ts +1 -0
  9. package/admin/Modal/__stories__/AlertDialog.test.js +60 -0
  10. package/admin/Modal/__stories__/Default.js +1 -1
  11. package/app/Header/HeaderLogo.d.ts +2 -2
  12. package/app/Header/HeaderLogo.js +19 -19
  13. package/app/Header/HeaderSection.d.ts +2 -4
  14. package/app/Header/HeaderSection.js +20 -10
  15. package/app/Header/HeaderTitle.d.ts +2 -4
  16. package/app/Header/HeaderTitle.js +19 -19
  17. package/app/Header/index.d.ts +2 -4
  18. package/app/Header/index.js +21 -13
  19. package/app/PageTitle.js +1 -1
  20. package/core/Accordion/index.d.ts +1 -1
  21. package/core/Accordion/index.js +25 -8
  22. package/core/Blockquote/index.d.ts +2 -2
  23. package/core/Blockquote/index.js +19 -18
  24. package/core/Button/BackLink.d.ts +3 -0
  25. package/core/Button/BackLink.js +30 -0
  26. package/core/Button/ButtonLink.d.ts +3 -4
  27. package/core/Button/ButtonLink.js +20 -18
  28. package/core/Button/CallToAction.d.ts +2 -6
  29. package/core/Button/CallToAction.js +18 -29
  30. package/core/Button/ThemeToggleButton.d.ts +0 -2
  31. package/core/Button/ThemeToggleButton.js +16 -0
  32. package/core/Button/index.d.ts +3 -4
  33. package/core/Button/index.js +23 -27
  34. package/core/Divider/index.d.ts +3 -3
  35. package/core/Divider/index.js +4 -4
  36. package/core/Masthead/__stories__/Default.js +3 -1
  37. package/core/NotificationBanner/index.js +3 -11
  38. package/core/SectionBreak/index.d.ts +3 -0
  39. package/core/SectionBreak/index.js +30 -0
  40. package/core/index.d.ts +1 -0
  41. package/core/index.js +14 -0
  42. package/es/admin/Drawer/__stories__/Default.js +1 -1
  43. package/es/admin/Dropdown/__stories__/AlignRight.js +1 -1
  44. package/es/admin/Dropdown/__stories__/Default.js +1 -1
  45. package/es/admin/Dropdown/__stories__/PlacementTop.js +1 -1
  46. package/es/admin/Modal/Modal.stories.playwright.json +2 -2
  47. package/es/admin/Modal/__stories__/AlertDialog.js +2 -6
  48. package/es/admin/Modal/__stories__/AlertDialog.test.js +53 -0
  49. package/es/admin/Modal/__stories__/Default.js +1 -1
  50. package/es/app/Header/HeaderLogo.js +2 -16
  51. package/es/app/Header/HeaderSection.js +2 -6
  52. package/es/app/Header/HeaderTitle.js +2 -16
  53. package/es/app/Header/index.js +2 -6
  54. package/es/app/PageTitle.js +1 -1
  55. package/es/core/Accordion/index.js +1 -5
  56. package/es/core/Blockquote/index.js +2 -15
  57. package/es/core/Button/BackLink.js +3 -0
  58. package/es/core/Button/ButtonLink.js +3 -16
  59. package/es/core/Button/CallToAction.js +2 -26
  60. package/es/core/Button/ThemeToggleButton.js +18 -2
  61. package/es/core/Button/index.js +4 -22
  62. package/es/core/Divider/index.js +2 -2
  63. package/es/core/Masthead/__stories__/Default.js +3 -1
  64. package/es/core/NotificationBanner/index.js +2 -10
  65. package/es/core/SectionBreak/index.js +3 -0
  66. package/es/core/index.js +1 -0
  67. package/es/layouts/Basic/Aside/index.js +3 -0
  68. package/es/layouts/Basic/Container/index.js +3 -0
  69. package/es/registry.js +12 -0
  70. package/es/typography/Caption/index.js +1 -1
  71. package/es/typography/Heading/Heading.stories.js +6 -0
  72. package/es/typography/Heading/__stories__/Default.js +24 -0
  73. package/es/typography/Heading/index.js +3 -0
  74. package/es/typography/Heading/index.mdx +12 -0
  75. package/es/typography/HeadingCaption/HeadingCaption.stories.js +7 -0
  76. package/es/typography/HeadingCaption/__stories__/Default.js +35 -0
  77. package/es/typography/HeadingCaption/__stories__/NestedToTitle.js +15 -0
  78. package/es/typography/HeadingCaption/index.js +3 -0
  79. package/es/typography/HeadingCaption/index.mdx +16 -0
  80. package/es/typography/NormalText/index.js +1 -1
  81. package/es/typography/Paragraph/index.js +1 -0
  82. package/es/typography/Title/index.js +1 -1
  83. package/esm/admin/Drawer/__stories__/Default.js +1 -1
  84. package/esm/admin/Dropdown/__stories__/AlignRight.js +1 -1
  85. package/esm/admin/Dropdown/__stories__/Default.js +1 -1
  86. package/esm/admin/Dropdown/__stories__/PlacementTop.js +1 -1
  87. package/esm/admin/Modal/Modal.stories.playwright.json +2 -2
  88. package/esm/admin/Modal/__stories__/AlertDialog.js +2 -6
  89. package/esm/admin/Modal/__stories__/AlertDialog.test.js +53 -0
  90. package/esm/admin/Modal/__stories__/Default.js +1 -1
  91. package/esm/app/Header/HeaderLogo.js +2 -16
  92. package/esm/app/Header/HeaderSection.js +2 -6
  93. package/esm/app/Header/HeaderTitle.js +2 -16
  94. package/esm/app/Header/index.js +2 -6
  95. package/esm/app/PageTitle.js +1 -1
  96. package/esm/core/Accordion/index.js +1 -5
  97. package/esm/core/Blockquote/index.js +2 -15
  98. package/esm/core/Button/BackLink.js +3 -0
  99. package/esm/core/Button/ButtonLink.js +3 -16
  100. package/esm/core/Button/CallToAction.js +2 -26
  101. package/esm/core/Button/ThemeToggleButton.js +18 -2
  102. package/esm/core/Button/index.js +4 -22
  103. package/esm/core/Divider/index.js +2 -2
  104. package/esm/core/Masthead/__stories__/Default.js +3 -1
  105. package/esm/core/NotificationBanner/index.js +2 -10
  106. package/esm/core/SectionBreak/index.js +3 -0
  107. package/esm/core/index.js +1 -0
  108. package/esm/index.js +1 -1
  109. package/esm/layouts/Basic/Aside/index.js +3 -0
  110. package/esm/layouts/Basic/Container/index.js +3 -0
  111. package/esm/registry.js +12 -0
  112. package/esm/typography/Caption/index.js +1 -1
  113. package/esm/typography/Heading/Heading.stories.js +6 -0
  114. package/esm/typography/Heading/__stories__/Default.js +24 -0
  115. package/esm/typography/Heading/index.js +3 -0
  116. package/esm/typography/Heading/index.mdx +12 -0
  117. package/esm/typography/HeadingCaption/HeadingCaption.stories.js +7 -0
  118. package/esm/typography/HeadingCaption/__stories__/Default.js +35 -0
  119. package/esm/typography/HeadingCaption/__stories__/NestedToTitle.js +15 -0
  120. package/esm/typography/HeadingCaption/index.js +3 -0
  121. package/esm/typography/HeadingCaption/index.mdx +16 -0
  122. package/esm/typography/NormalText/index.js +1 -1
  123. package/esm/typography/Paragraph/index.js +1 -0
  124. package/esm/typography/Title/index.js +1 -1
  125. package/layouts/Basic/Aside/index.d.ts +3 -0
  126. package/layouts/Basic/Aside/index.js +30 -0
  127. package/layouts/Basic/Container/index.d.ts +3 -0
  128. package/layouts/Basic/Container/index.js +30 -0
  129. package/package.json +2 -2
  130. package/registry.d.ts +6 -0
  131. package/registry.js +18 -0
  132. package/typography/Caption/index.d.ts +1 -1
  133. package/typography/Caption/index.js +1 -1
  134. package/typography/Heading/Heading.stories.d.ts +7 -0
  135. package/typography/{Title/Title.stories.js → Heading/Heading.stories.js} +4 -4
  136. package/typography/{Caption → Heading}/__stories__/Default.d.ts +0 -0
  137. package/typography/Heading/__stories__/Default.js +37 -0
  138. package/typography/Heading/index.d.ts +3 -0
  139. package/typography/Heading/index.js +30 -0
  140. package/typography/Heading/index.mdx +12 -0
  141. package/typography/HeadingCaption/HeadingCaption.stories.d.ts +8 -0
  142. package/typography/{Caption/Caption.stories.js → HeadingCaption/HeadingCaption.stories.js} +5 -5
  143. package/typography/{Title → HeadingCaption}/__stories__/Default.d.ts +0 -0
  144. package/typography/HeadingCaption/__stories__/Default.js +49 -0
  145. package/typography/{Caption → HeadingCaption}/__stories__/NestedToTitle.d.ts +0 -0
  146. package/typography/{Caption → HeadingCaption}/__stories__/NestedToTitle.js +5 -5
  147. package/typography/HeadingCaption/index.d.ts +3 -0
  148. package/typography/HeadingCaption/index.js +30 -0
  149. package/typography/HeadingCaption/index.mdx +16 -0
  150. package/typography/NormalText/index.d.ts +2 -4
  151. package/typography/NormalText/index.js +19 -8
  152. package/typography/Paragraph/index.d.ts +2 -5
  153. package/typography/Paragraph/index.js +19 -2
  154. package/typography/Title/index.d.ts +1 -1
  155. package/typography/Title/index.js +1 -1
  156. package/es/typography/Caption/Caption.stories.js +0 -7
  157. package/es/typography/Caption/__stories__/Default.js +0 -35
  158. package/es/typography/Caption/__stories__/NestedToTitle.js +0 -15
  159. package/es/typography/Caption/index.mdx +0 -16
  160. package/es/typography/Title/Title.stories.js +0 -6
  161. package/es/typography/Title/__stories__/Default.js +0 -24
  162. package/es/typography/Title/index.mdx +0 -12
  163. package/esm/typography/Caption/Caption.stories.js +0 -7
  164. package/esm/typography/Caption/__stories__/Default.js +0 -35
  165. package/esm/typography/Caption/__stories__/NestedToTitle.js +0 -15
  166. package/esm/typography/Caption/index.mdx +0 -16
  167. package/esm/typography/Title/Title.stories.js +0 -6
  168. package/esm/typography/Title/__stories__/Default.js +0 -24
  169. package/esm/typography/Title/index.mdx +0 -12
  170. package/typography/Caption/Caption.stories.d.ts +0 -8
  171. package/typography/Caption/__stories__/Default.js +0 -49
  172. package/typography/Caption/index.mdx +0 -16
  173. package/typography/Title/Title.stories.d.ts +0 -7
  174. package/typography/Title/__stories__/Default.js +0 -37
  175. package/typography/Title/index.mdx +0 -12
@@ -38,8 +38,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
38
38
 
39
39
  var _react = _interopRequireDefault(require("react"));
40
40
 
41
- var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDeprecation"));
42
-
43
41
  var _NotificationBanner = _interopRequireDefault(require("@digigov/react-core/NotificationBanner"));
44
42
 
45
43
  var _NotificationBannerHeader = _interopRequireDefault(require("@digigov/react-core/NotificationBannerHeader"));
@@ -54,7 +52,7 @@ var _excluded = ["variant", "title", "link", "children"];
54
52
 
55
53
  var _ref2 = /*#__PURE__*/_react["default"].createElement("br", null);
56
54
 
57
- var NotificationBanner = (0, _withDeprecation["default"])(function (_ref) {
55
+ var NotificationBanner = function NotificationBanner(_ref) {
58
56
  var _ref$variant = _ref.variant,
59
57
  variant = _ref$variant === void 0 ? 'important' : _ref$variant,
60
58
  title = _ref.title,
@@ -68,14 +66,8 @@ var NotificationBanner = (0, _withDeprecation["default"])(function (_ref) {
68
66
  }, props), /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeader["default"], null, title), /*#__PURE__*/_react["default"].createElement(_NotificationBannerContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeading["default"], null, children, _ref2, link && /*#__PURE__*/_react["default"].createElement(_NotificationBannerLink["default"], {
69
67
  href: link.href
70
68
  }, link.label))));
71
- }, {
72
- name: 'NotificationBanner',
73
- props: {
74
- variant: {
75
- warning: 'variant prop will be deprecated. Use success:boolean instead'
76
- }
77
- }
78
- });
69
+ };
70
+
79
71
  exports.NotificationBanner = NotificationBanner;
80
72
  var _default = NotificationBanner;
81
73
  exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ import SectionBreak from '@digigov/react-core/SectionBreak';
2
+ export * from '@digigov/react-core/SectionBreak';
3
+ export default SectionBreak;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ var _exportNames = {};
9
+ exports["default"] = void 0;
10
+
11
+ var _SectionBreak = _interopRequireWildcard(require("@digigov/react-core/SectionBreak"));
12
+
13
+ Object.keys(_SectionBreak).forEach(function (key) {
14
+ if (key === "default" || key === "__esModule") return;
15
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
16
+ if (key in exports && exports[key] === _SectionBreak[key]) return;
17
+ Object.defineProperty(exports, key, {
18
+ enumerable: true,
19
+ get: function get() {
20
+ return _SectionBreak[key];
21
+ }
22
+ });
23
+ });
24
+
25
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
+
27
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
28
+
29
+ var _default = _SectionBreak["default"];
30
+ exports["default"] = _default;
package/core/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from '@digigov/ui/core/NavList';
21
21
  export * from '@digigov/ui/core/NavList';
22
22
  export * from '@digigov/ui/core/PhaseBanner';
23
23
  export * from '@digigov/ui/core/NotificationBanner';
24
+ export * from '@digigov/ui/core/SectionBreak';
24
25
  export * from '@digigov/ui/core/SummaryList';
25
26
  export * from '@digigov/ui/core/ServiceBadge';
26
27
  export * from '@digigov/ui/core/Table';
package/core/index.js CHANGED
@@ -318,6 +318,20 @@ Object.keys(_NotificationBanner).forEach(function (key) {
318
318
  });
319
319
  });
320
320
 
321
+ var _SectionBreak = require("@digigov/ui/core/SectionBreak");
322
+
323
+ Object.keys(_SectionBreak).forEach(function (key) {
324
+ if (key === "default" || key === "__esModule") return;
325
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
326
+ if (key in exports && exports[key] === _SectionBreak[key]) return;
327
+ Object.defineProperty(exports, key, {
328
+ enumerable: true,
329
+ get: function get() {
330
+ return _SectionBreak[key];
331
+ }
332
+ });
333
+ });
334
+
321
335
  var _SummaryList = require("@digigov/ui/core/SummaryList");
322
336
 
323
337
  Object.keys(_SummaryList).forEach(function (key) {
@@ -71,7 +71,7 @@ export var Default = function Default() {
71
71
  return toggleDrawer();
72
72
  },
73
73
  color: "secondary"
74
- }, _ref2))), /*#__PURE__*/React.createElement(AdminContainer, null, _ref3, /*#__PURE__*/React.createElement(AdminAside, null, /*#__PURE__*/React.createElement(Drawer, {
74
+ }, _ref2))), /*#__PURE__*/React.createElement(AdminContainer, null, /*#__PURE__*/React.createElement(AdminAside, null, _ref3, /*#__PURE__*/React.createElement(Drawer, {
75
75
  direction: "left",
76
76
  open: open
77
77
  }, /*#__PURE__*/React.createElement(DrawerHeading, {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Dropdown, { DropdownButton, DropdownContent } from '@digigov/ui/admin/Dropdown';
3
3
  import Field from '@digigov/ui/core/Field';
4
4
  import Label from '@digigov/react-core/Label';
5
- import { SectionBreak } from '@digigov/ui/core/Divider';
5
+ import SectionBreak from '@digigov/ui/core/Divider';
6
6
  import NavVertical from '@digigov/react-core/NavVertical';
7
7
  import { LabelTitle } from '@digigov/react-core/LabelTitle';
8
8
  import TextInput from '@digigov/ui/core/TextInput';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Dropdown, { DropdownButton, DropdownContent } from '@digigov/ui/admin/Dropdown';
3
3
  import Field from '@digigov/ui/core/Field';
4
4
  import Label from '@digigov/react-core/Label';
5
- import { SectionBreak } from '@digigov/ui/core/Divider';
5
+ import SectionBreak from '@digigov/ui/core/Divider';
6
6
  import NavVertical from '@digigov/react-core/NavVertical';
7
7
  import { LabelTitle } from '@digigov/react-core/LabelTitle';
8
8
  import TextInput from '@digigov/ui/core/TextInput';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Dropdown, { DropdownButton, DropdownContent } from '@digigov/ui/admin/Dropdown';
3
3
  import Field from '@digigov/ui/core/Field';
4
4
  import Label from '@digigov/react-core/Label';
5
- import { SectionBreak } from '@digigov/ui/core/Divider';
5
+ import SectionBreak from '@digigov/ui/core/Divider';
6
6
  import NavVertical from '@digigov/react-core/NavVertical';
7
7
  import { LabelTitle } from '@digigov/react-core/LabelTitle';
8
8
  import TextInput from '@digigov/ui/core/TextInput';
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "click",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>button"
11
+ "selector": "text=Προσθήκη τηλεφώνου"
12
12
  }
13
13
  }
14
14
  ],
@@ -24,7 +24,7 @@
24
24
  {
25
25
  "name": "click",
26
26
  "args": {
27
- "selector": "html>body>div:nth-child(5)>button"
27
+ "selector": "text=Διαγραφή"
28
28
  }
29
29
  }
30
30
  ],
@@ -17,13 +17,9 @@ export var AlertDialog = function AlertDialog() {
17
17
  modalProps = _useModal.modalProps,
18
18
  toggleModal = _useModal.toggleModal;
19
19
 
20
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
21
- color: "warning",
22
- onClick: function onClick() {
23
- return toggleModal();
24
- }
25
- }, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE"), /*#__PURE__*/React.createElement(Button, {
20
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
26
21
  color: "warning",
22
+ id: "delete-button",
27
23
  onClick: function onClick() {
28
24
  return toggleModal();
29
25
  }
@@ -0,0 +1,53 @@
1
+ import _typeof from "@babel/runtime/helpers/typeof";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+
4
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
5
+
6
+ import React from 'react';
7
+ import AlertDialog from '@digigov/ui/admin/Modal/__stories__/AlertDialog';
8
+ import { test, expect } from '@playwright/experimental-ct-react';
9
+
10
+ var _ref3 = /*#__PURE__*/React.createElement(AlertDialog, null);
11
+
12
+ test('open modal', /*#__PURE__*/function () {
13
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
14
+ var mount, page, component;
15
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
16
+ while (1) {
17
+ switch (_context.prev = _context.next) {
18
+ case 0:
19
+ mount = _ref.mount, page = _ref.page;
20
+ _context.next = 3;
21
+ return mount(_ref3);
22
+
23
+ case 3:
24
+ component = _context.sent;
25
+ _context.next = 6;
26
+ return expect(component).toContainText('Διαγραφή');
27
+
28
+ case 6:
29
+ _context.next = 8;
30
+ return page.click('#delete-button');
31
+
32
+ case 8:
33
+ _context.t0 = expect;
34
+ _context.next = 11;
35
+ return page.screenshot();
36
+
37
+ case 11:
38
+ _context.t1 = _context.sent;
39
+ _context.next = 14;
40
+ return (0, _context.t0)(_context.t1).toMatchSnapshot();
41
+
42
+ case 14:
43
+ case "end":
44
+ return _context.stop();
45
+ }
46
+ }
47
+ }, _callee);
48
+ }));
49
+
50
+ return function (_x) {
51
+ return _ref2.apply(this, arguments);
52
+ };
53
+ }());
@@ -21,7 +21,7 @@ export var Default = function Default() {
21
21
  toggleModal = _useModal.toggleModal,
22
22
  modalProps = _useModal.modalProps;
23
23
 
24
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
24
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
25
25
  onClick: function onClick() {
26
26
  return toggleModal();
27
27
  }
@@ -1,17 +1,3 @@
1
- import CoreHeaderLogo from '@digigov/react-core/HeaderLogo';
2
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
3
- export var HeaderLogo = withDeprecation(CoreHeaderLogo, {
4
- name: 'HeaderLogo',
5
- props: {
6
- height: {
7
- warning: true
8
- },
9
- linkprops: {
10
- warning: true
11
- },
12
- label: {
13
- warning: true
14
- }
15
- }
16
- });
1
+ import HeaderLogo from '@digigov/react-core/HeaderLogo';
2
+ export * from '@digigov/react-core/HeaderLogo';
17
3
  export default HeaderLogo;
@@ -1,7 +1,3 @@
1
- import CoreHeaderSection from '@digigov/react-core/HeaderSection';
2
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
3
- export var HeaderSection = withDeprecation(CoreHeaderSection, {
4
- name: 'HeaderSection',
5
- rename: 'HeaderSection'
6
- });
1
+ import HeaderSection from '@digigov/react-core/HeaderSection';
2
+ export * from '@digigov/react-core/HeaderSection';
7
3
  export default HeaderSection;
@@ -1,17 +1,3 @@
1
- import CoreHeaderTitle from '@digigov/react-core/HeaderTitle';
2
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
3
- export var HeaderTitle = withDeprecation(CoreHeaderTitle, {
4
- name: 'Header',
5
- props: {
6
- xs: {
7
- error: true
8
- },
9
- linkProps: {
10
- error: 'The `linkProps` property is deprecated. You can use native anchor link props instead.'
11
- },
12
- linkComponent: {
13
- error: 'The `linkComponent` property is deprecated.'
14
- }
15
- }
16
- });
1
+ import HeaderTitle from '@digigov/react-core/HeaderTitle';
2
+ export * from '@digigov/react-core/HeaderTitle';
17
3
  export default HeaderTitle;
@@ -1,9 +1,5 @@
1
- import CoreHeader from '@digigov/react-core/Header';
2
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
3
- export var Header = withDeprecation(CoreHeader, {
4
- name: 'Header',
5
- props: {}
6
- });
1
+ import Header from '@digigov/react-core/Header';
2
+ export * from '@digigov/react-core/Header';
7
3
  export * from '@digigov/ui/app/Header/HeaderTitle';
8
4
  export * from '@digigov/ui/app/Header/HeaderLogo';
9
5
  export * from '@digigov/ui/app/Header/HeaderSection';
@@ -22,7 +22,7 @@ export var PageTitleSection = withDeprecation(function (_ref2) {
22
22
  });
23
23
  export var PageTitleCaption = withDeprecation(Caption, {
24
24
  name: 'PageTitleCaption',
25
- rename: 'Caption'
25
+ rename: 'HeadingCaption'
26
26
  });
27
27
  export var PageTitleHeading = withDeprecation(function (_ref3) {
28
28
  var component = _ref3.component,
@@ -8,16 +8,11 @@ import React from 'react';
8
8
  import Accordion from '@digigov/react-core/Accordion';
9
9
  import AccordionSection from '@digigov/react-core/AccordionSection';
10
10
  import AccordionSectionContent from '@digigov/react-core/AccordionSectionContent';
11
- import CoreAccordionSectionHeader from '@digigov/react-core/AccordionSectionHeader';
12
11
  import AccordionSectionSummaryHeading from '@digigov/react-core/AccordionSectionSummaryHeading';
13
12
  import AccordionSectionSummary from '@digigov/react-core/AccordionSectionSummary';
14
13
  import AccordionControls from '@digigov/react-core/AccordionControls';
15
14
  import withDeprecation from '@digigov/ui/utils/withDeprecation';
16
15
  import { useTogglableSections } from '@digigov/ui/hooks/useTogglableSections';
17
- export var AccordionSectionHeader = withDeprecation(CoreAccordionSectionHeader, {
18
- name: 'AccordionSectionHeader',
19
- error: true
20
- });
21
16
  export var AccordionItemDetails = withDeprecation(AccordionSectionContent, {
22
17
  name: 'AccordionItemDetails',
23
18
  rename: 'AccordionSectionContent'
@@ -58,5 +53,6 @@ var useAccordion = function useAccordion(props) {
58
53
  }, rest);
59
54
  };
60
55
 
56
+ export * from '@digigov/react-core/AccordionSectionHeader';
61
57
  export { Accordion, AccordionControls, AccordionSection, AccordionSectionContent, AccordionSectionSummary, AccordionSectionSummaryHeading, useAccordion };
62
58
  export default Accordion;
@@ -1,16 +1,3 @@
1
- import CoreBlockquote from '@digigov/react-core/Blockquote';
2
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
3
- export var Blockquote = withDeprecation(CoreBlockquote, {
4
- name: 'Blockquote',
5
- props: {
6
- variant: {
7
- values: {
8
- info: {
9
- warning: true
10
- }
11
- },
12
- error: true
13
- }
14
- }
15
- });
1
+ import Blockquote from '@digigov/react-core/Blockquote';
2
+ export * from '@digigov/react-core/Blockquote';
16
3
  export default Blockquote;
@@ -0,0 +1,3 @@
1
+ import BackLink from '@digigov/react-core/BackLink';
2
+ export * from '@digigov/react-core/BackLink';
3
+ export default BackLink;
@@ -1,16 +1,3 @@
1
- import CoreButtonLink from '@digigov/react-core/ButtonLink';
2
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
3
- export var ButtonLink = withDeprecation(CoreButtonLink, {
4
- name: 'ButtonLink',
5
- props: {
6
- variant: {
7
- error: true
8
- },
9
- size: {
10
- error: true
11
- },
12
- xsFullWidth: {
13
- error: true
14
- }
15
- }
16
- });
1
+ import ButtonLink from '@digigov/react-core/ButtonLink';
2
+ export * from '@digigov/react-core/ButtonLink';
3
+ export default ButtonLink;
@@ -1,27 +1,3 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
- var _excluded = ["label", "children"];
3
- import React from 'react';
4
- import CoreCallToAction from '@digigov/react-core/CallToAction';
5
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
6
- export var CallToAction = withDeprecation(function (_ref) {
7
- var _ref$label = _ref.label,
8
- label = _ref$label === void 0 ? 'Start here' : _ref$label,
9
- children = _ref.children,
10
- props = _objectWithoutProperties(_ref, _excluded);
11
-
12
- return /*#__PURE__*/React.createElement(CoreCallToAction, props, children || label);
13
- }, {
14
- name: 'CallToAction',
15
- props: {
16
- variant: {
17
- error: true
18
- },
19
- size: {
20
- error: true
21
- },
22
- xsFullWidth: {
23
- error: true
24
- }
25
- }
26
- });
1
+ import CallToAction from '@digigov/react-core/CallToAction';
2
+ export * from '@digigov/react-core/CallToAction';
27
3
  export default CallToAction;
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useState, useEffect } from 'react';
3
- import CoreButton from '@digigov/react-core/Button';
3
+ import Button from '@digigov/react-core/Button';
4
4
  export var ThemeToggleButton = function ThemeToggleButton() {
5
5
  var _useState = useState(function () {
6
6
  var currentTheme = localStorage.getItem('theme');
@@ -23,7 +23,23 @@ export var ThemeToggleButton = function ThemeToggleButton() {
23
23
  localStorage.setItem('theme', theme);
24
24
  document.documentElement.className = theme;
25
25
  }, [theme]);
26
- return /*#__PURE__*/React.createElement(CoreButton, {
26
+ useEffect(function () {
27
+ var beforePrintListener = function beforePrintListener() {
28
+ document.documentElement.className = 'light';
29
+ };
30
+
31
+ var afterPrintListener = function afterPrintListener() {
32
+ document.documentElement.className = localStorage.getItem('theme') || theme;
33
+ };
34
+
35
+ window.addEventListener('beforeprint', beforePrintListener);
36
+ window.addEventListener('afterprint', afterPrintListener);
37
+ return function () {
38
+ window.removeEventListener('beforeprint', beforePrintListener);
39
+ window.removeEventListener('afterprint', afterPrintListener);
40
+ };
41
+ }, []);
42
+ return /*#__PURE__*/React.createElement(Button, {
27
43
  onClick: toggleTheme,
28
44
  variant: "link",
29
45
  role: "button",
@@ -1,27 +1,8 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["label", "children"];
3
3
  import React from 'react';
4
- import CoreButton from '@digigov/react-core/Button';
5
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
6
- export var Button = withDeprecation(CoreButton, {
7
- name: 'Button',
8
- props: {
9
- href: {
10
- error: 'To use a button with a link import ButtonLink instead'
11
- },
12
-
13
- /* variant: {
14
- error: true,
15
- }, */
16
- size: {
17
- error: true
18
- },
19
- xsFullWidth: {
20
- error: true
21
- }
22
- }
23
- });
24
- export default Button;
4
+ import Button from '@digigov/react-core/Button';
5
+ export * from '@digigov/react-core/Button';
25
6
  export var ContinueButton = function ContinueButton(_ref) {
26
7
  var _ref$label = _ref.label,
27
8
  label = _ref$label === void 0 ? 'Continue' : _ref$label,
@@ -35,4 +16,5 @@ export * from '@digigov/ui/core/Button/CallToAction';
35
16
  export * from '@digigov/ui/core/Button/ButtonLink';
36
17
  export * from '@digigov/ui/core/Button/Icon';
37
18
  export * from '@digigov/ui/core/Button/ThemeToggleButton';
38
- export * from '@digigov/react-core/ButtonGroup';
19
+ export * from '@digigov/react-core/ButtonGroup';
20
+ export default Button;
@@ -1,7 +1,7 @@
1
1
  import CoreSectionBreak from '@digigov/react-core/SectionBreak';
2
2
  import withDeprecation from '@digigov/ui/utils/withDeprecation';
3
- export var SectionBreak = withDeprecation(CoreSectionBreak, {
3
+ export var Divider = withDeprecation(CoreSectionBreak, {
4
4
  name: 'Divider',
5
5
  rename: 'SectionBreak'
6
6
  });
7
- export default SectionBreak;
7
+ export default Divider;
@@ -3,7 +3,9 @@ import Masthead, { MastheadBody } from '@digigov/ui/core/Masthead';
3
3
  import CallToAction from '@digigov/ui/core/Button/CallToAction';
4
4
  import { Container, Heading, Main } from '@digigov/react-core';
5
5
 
6
- var _ref = /*#__PURE__*/React.createElement(Masthead, null, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Heading, null, "\u03A3\u03C7\u03B5\u03B4\u03B9\u03AC\u03C3\u03C4\u03B5 \u03C4\u03B7\u03BD \u03C5\u03C0\u03B7\u03C1\u03B5\u03C3\u03AF\u03B1 \u03C3\u03B1\u03C2, \u03BC\u03B5 \u03C4\u03BF \u03C3\u03C4\u03C5\u03BB \u03C4\u03BF\u03C5 GOV.GR"), /*#__PURE__*/React.createElement(MastheadBody, null, "\u03A7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03BF\u03B4\u03B7\u03B3\u03CC \u03CE\u03C3\u03C4\u03B5 \u03BD\u03B1 \u03C6\u03C4\u03B9\u03AC\u03BE\u03B5\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03C5\u03C0\u03B7\u03C1\u03B5\u03C3\u03AF\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C0\u03AE \u03C3\u03C4\u03B1 \u03C0\u03C1\u03CC\u03C4\u03C5\u03C0\u03B1 \u03C4\u03BF\u03C5 GOV.GR. \u0391\u03C0\u03BF\u03BA\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B3\u03BD\u03CE\u03C3\u03B7 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1 \u03BA\u03B1\u03B9 \u03C4\u03B7\u03BD \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1 \u03AC\u03BB\u03BB\u03C9\u03BD \u03BF\u03BC\u03AC\u03B4\u03C9\u03BD \u03BA\u03B1\u03B9 \u03B1\u03C0\u03BF\u03C6\u03CD\u03B3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7 \u03B5\u03C1\u03B3\u03B1\u03C3\u03B9\u03CE\u03BD \u03C0\u03BF\u03C5 \u03AD\u03C7\u03BF\u03C5\u03BD \u03AE\u03B4\u03B7 \u03B3\u03AF\u03BD\u03B5\u03B9."), /*#__PURE__*/React.createElement(CallToAction, null, "\u039E\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE"))));
6
+ var _ref = /*#__PURE__*/React.createElement(Masthead, null, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Heading, null, "\u03A3\u03C7\u03B5\u03B4\u03B9\u03AC\u03C3\u03C4\u03B5 \u03C4\u03B7\u03BD \u03C5\u03C0\u03B7\u03C1\u03B5\u03C3\u03AF\u03B1 \u03C3\u03B1\u03C2, \u03BC\u03B5 \u03C4\u03BF \u03C3\u03C4\u03C5\u03BB \u03C4\u03BF\u03C5 GOV.GR"), /*#__PURE__*/React.createElement(MastheadBody, null, "\u03A7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03BF\u03B4\u03B7\u03B3\u03CC \u03CE\u03C3\u03C4\u03B5 \u03BD\u03B1 \u03C6\u03C4\u03B9\u03AC\u03BE\u03B5\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03C5\u03C0\u03B7\u03C1\u03B5\u03C3\u03AF\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C0\u03AE \u03C3\u03C4\u03B1 \u03C0\u03C1\u03CC\u03C4\u03C5\u03C0\u03B1 \u03C4\u03BF\u03C5 GOV.GR. \u0391\u03C0\u03BF\u03BA\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B3\u03BD\u03CE\u03C3\u03B7 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1 \u03BA\u03B1\u03B9 \u03C4\u03B7\u03BD \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1 \u03AC\u03BB\u03BB\u03C9\u03BD \u03BF\u03BC\u03AC\u03B4\u03C9\u03BD \u03BA\u03B1\u03B9 \u03B1\u03C0\u03BF\u03C6\u03CD\u03B3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7 \u03B5\u03C1\u03B3\u03B1\u03C3\u03B9\u03CE\u03BD \u03C0\u03BF\u03C5 \u03AD\u03C7\u03BF\u03C5\u03BD \u03AE\u03B4\u03B7 \u03B3\u03AF\u03BD\u03B5\u03B9."), /*#__PURE__*/React.createElement(CallToAction, {
7
+ href: "#"
8
+ }, "\u039E\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE"))));
7
9
 
8
10
  export var Default = function Default() {
9
11
  return _ref;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["variant", "title", "link", "children"];
4
4
  import React from 'react';
5
- import withDeprecation from '@digigov/ui/utils/withDeprecation';
6
5
  import CoreNotificationBanner from '@digigov/react-core/NotificationBanner';
7
6
  import NotificationBannerHeader from '@digigov/react-core/NotificationBannerHeader';
8
7
  import NotificationBannerHeading from '@digigov/react-core/NotificationBannerHeading';
@@ -11,7 +10,7 @@ import NotificationBannerLink from '@digigov/react-core/NotificationBannerLink';
11
10
 
12
11
  var _ref2 = /*#__PURE__*/React.createElement("br", null);
13
12
 
14
- export var NotificationBanner = withDeprecation(function (_ref) {
13
+ export var NotificationBanner = function NotificationBanner(_ref) {
15
14
  var _ref$variant = _ref.variant,
16
15
  variant = _ref$variant === void 0 ? 'important' : _ref$variant,
17
16
  title = _ref.title,
@@ -26,13 +25,6 @@ export var NotificationBanner = withDeprecation(function (_ref) {
26
25
  }, props), /*#__PURE__*/React.createElement(NotificationBannerHeader, null, title), /*#__PURE__*/React.createElement(NotificationBannerContent, null, /*#__PURE__*/React.createElement(NotificationBannerHeading, null, children, _ref2, link && /*#__PURE__*/React.createElement(NotificationBannerLink, {
27
26
  href: link.href
28
27
  }, link.label))));
29
- }, {
30
- name: 'NotificationBanner',
31
- props: {
32
- variant: {
33
- warning: 'variant prop will be deprecated. Use success:boolean instead'
34
- }
35
- }
36
- });
28
+ };
37
29
  export { NotificationBannerHeader, NotificationBannerContent, NotificationBannerHeading, NotificationBannerLink };
38
30
  export default NotificationBanner;
@@ -0,0 +1,3 @@
1
+ import SectionBreak from '@digigov/react-core/SectionBreak';
2
+ export * from '@digigov/react-core/SectionBreak';
3
+ export default SectionBreak;
package/es/core/index.js CHANGED
@@ -21,6 +21,7 @@ export * from '@digigov/ui/core/NavList';
21
21
  export * from '@digigov/ui/core/NavList';
22
22
  export * from '@digigov/ui/core/PhaseBanner';
23
23
  export * from '@digigov/ui/core/NotificationBanner';
24
+ export * from '@digigov/ui/core/SectionBreak';
24
25
  export * from '@digigov/ui/core/SummaryList';
25
26
  export * from '@digigov/ui/core/ServiceBadge';
26
27
  export * from '@digigov/ui/core/Table';
@@ -0,0 +1,3 @@
1
+ import Aside from '@digigov/react-core/Aside';
2
+ export * from '@digigov/react-core/Aside';
3
+ export default Aside;
@@ -0,0 +1,3 @@
1
+ import Container from '@digigov/react-core/Container';
2
+ export * from '@digigov/react-core/Container';
3
+ export default Container;