@digigov/form 1.0.0-88820b1e → 1.0.0-8ae63a77

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.
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { PageTitleHeadingProps } from '@digigov/ui/app/PageTitleContainer';
2
+ import { HeadingProps } from '@digigov/react-core/Heading';
3
3
  export interface StepTitleInterface {
4
4
  title?: string;
5
5
  backButton?: string;
6
6
  caption?: string;
7
7
  step?: string;
8
8
  }
9
- export declare const StepTitleHeading: React.FC<PageTitleHeadingProps>;
9
+ export declare const StepTitleHeading: React.FC<HeadingProps>;
10
10
  export declare const StepTitleBase: React.FC<StepTitleInterface>;
11
11
  /**
12
12
  * The StepTitle component accepts a title, a caption and a step indicator
@@ -19,12 +19,16 @@ var _BackButton = _interopRequireDefault(require("@digigov/ui/form/Button/BackBu
19
19
 
20
20
  var _i18n = require("@digigov/ui/i18n");
21
21
 
22
+ var _HeadingCaption = _interopRequireDefault(require("@digigov/react-core/HeadingCaption"));
23
+
24
+ var _Heading = _interopRequireDefault(require("@digigov/react-core/Heading"));
25
+
22
26
  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); }
23
27
 
24
28
  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; }
25
29
 
26
30
  var StepTitleHeading = function StepTitleHeading(props) {
27
- return /*#__PURE__*/_react["default"].createElement(_PageTitleContainer.PageTitleHeading, null, props.children);
31
+ return /*#__PURE__*/_react["default"].createElement(_Heading["default"], null, props.children);
28
32
  };
29
33
 
30
34
  exports.StepTitleHeading = StepTitleHeading;
@@ -39,7 +43,9 @@ var StepTitleBase = function StepTitleBase(_ref) {
39
43
  var _useTranslation = (0, _i18n.useTranslation)(),
40
44
  t = _useTranslation.t;
41
45
 
42
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_BackButton["default"], null, backButton || t('button.back')), /*#__PURE__*/_react["default"].createElement(_PageTitleContainer["default"], null, children || /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_PageTitleContainer.PageTitleCaption, null, caption && t(caption)), step && /*#__PURE__*/_react["default"].createElement(_PageTitleContainer.PageTitleCaption, null, step), /*#__PURE__*/_react["default"].createElement(StepTitleHeading, null, title && t(title)))));
46
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_BackButton["default"], null, backButton || t('button.back')), /*#__PURE__*/_react["default"].createElement(_PageTitleContainer["default"], null, children || /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_HeadingCaption["default"], {
47
+ size: "xl"
48
+ }, caption && t(caption)), step && /*#__PURE__*/_react["default"].createElement(_PageTitleContainer.PageTitleCaption, null, step), /*#__PURE__*/_react["default"].createElement(StepTitleHeading, null, title && t(title)))));
43
49
  };
44
50
  /**
45
51
  * The StepTitle component accepts a title, a caption and a step indicator
@@ -2,10 +2,10 @@ export * from '@digigov/form/Questions/Step/ReviewStep';
2
2
  export * from '@digigov/form/Questions/Step/Step';
3
3
  export * from '@digigov/form/Questions/Step/StepArrayReview';
4
4
  export * from '@digigov/form/Questions/Step/StepContext';
5
- export { default as StepDescription } from '@digigov/form/Questions/Step/StepDescription';
6
- export { default as StepForm } from '@digigov/form/Questions/Step/StepForm';
7
- export { default as StepQuote } from '@digigov/form/Questions/Step/StepQuote';
8
- export { default as StepTitle } from '@digigov/form/Questions/Step/StepTitle';
5
+ export * from '@digigov/form/Questions/Step/StepDescription';
6
+ export * from '@digigov/form/Questions/Step/StepForm';
7
+ export * from '@digigov/form/Questions/Step/StepQuote';
8
+ export * from '@digigov/form/Questions/Step/StepTitle';
9
9
  export * from '@digigov/form/Questions/Step/getAddMoreFields';
10
10
  export * from '@digigov/form/Questions/Step/';
11
11
  export * from '@digigov/form/Questions/Step/types';
@@ -1,42 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  var _typeof = require("@babel/runtime/helpers/typeof");
6
4
 
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
- var _exportNames = {
11
- StepDescription: true,
12
- StepForm: true,
13
- StepQuote: true,
14
- StepTitle: true
15
- };
16
- Object.defineProperty(exports, "StepDescription", {
17
- enumerable: true,
18
- get: function get() {
19
- return _StepDescription["default"];
20
- }
21
- });
22
- Object.defineProperty(exports, "StepForm", {
23
- enumerable: true,
24
- get: function get() {
25
- return _StepForm["default"];
26
- }
27
- });
28
- Object.defineProperty(exports, "StepQuote", {
29
- enumerable: true,
30
- get: function get() {
31
- return _StepQuote["default"];
32
- }
33
- });
34
- Object.defineProperty(exports, "StepTitle", {
35
- enumerable: true,
36
- get: function get() {
37
- return _StepTitle["default"];
38
- }
39
- });
8
+ var _exportNames = {};
40
9
  exports["default"] = void 0;
41
10
 
42
11
  var _ReviewStep = require("@digigov/form/Questions/Step/ReviewStep");
@@ -95,13 +64,61 @@ Object.keys(_StepContext).forEach(function (key) {
95
64
  });
96
65
  });
97
66
 
98
- var _StepDescription = _interopRequireDefault(require("@digigov/form/Questions/Step/StepDescription"));
67
+ var _StepDescription = require("@digigov/form/Questions/Step/StepDescription");
99
68
 
100
- var _StepForm = _interopRequireDefault(require("@digigov/form/Questions/Step/StepForm"));
69
+ Object.keys(_StepDescription).forEach(function (key) {
70
+ if (key === "default" || key === "__esModule") return;
71
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
72
+ if (key in exports && exports[key] === _StepDescription[key]) return;
73
+ Object.defineProperty(exports, key, {
74
+ enumerable: true,
75
+ get: function get() {
76
+ return _StepDescription[key];
77
+ }
78
+ });
79
+ });
101
80
 
102
- var _StepQuote = _interopRequireDefault(require("@digigov/form/Questions/Step/StepQuote"));
81
+ var _StepForm = require("@digigov/form/Questions/Step/StepForm");
103
82
 
104
- var _StepTitle = _interopRequireDefault(require("@digigov/form/Questions/Step/StepTitle"));
83
+ Object.keys(_StepForm).forEach(function (key) {
84
+ if (key === "default" || key === "__esModule") return;
85
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
86
+ if (key in exports && exports[key] === _StepForm[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function get() {
90
+ return _StepForm[key];
91
+ }
92
+ });
93
+ });
94
+
95
+ var _StepQuote = require("@digigov/form/Questions/Step/StepQuote");
96
+
97
+ Object.keys(_StepQuote).forEach(function (key) {
98
+ if (key === "default" || key === "__esModule") return;
99
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
100
+ if (key in exports && exports[key] === _StepQuote[key]) return;
101
+ Object.defineProperty(exports, key, {
102
+ enumerable: true,
103
+ get: function get() {
104
+ return _StepQuote[key];
105
+ }
106
+ });
107
+ });
108
+
109
+ var _StepTitle = require("@digigov/form/Questions/Step/StepTitle");
110
+
111
+ Object.keys(_StepTitle).forEach(function (key) {
112
+ if (key === "default" || key === "__esModule") return;
113
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
114
+ if (key in exports && exports[key] === _StepTitle[key]) return;
115
+ Object.defineProperty(exports, key, {
116
+ enumerable: true,
117
+ get: function get() {
118
+ return _StepTitle[key];
119
+ }
120
+ });
121
+ });
105
122
 
106
123
  var _getAddMoreFields = require("@digigov/form/Questions/Step/getAddMoreFields");
107
124
 
@@ -1,10 +1,12 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { StepContext } from '@digigov/form/Questions/Step/StepContext';
3
- import PageTitleContainer, { PageTitleHeading, PageTitleCaption } from '@digigov/ui/app/PageTitleContainer';
3
+ import PageTitleContainer, { PageTitleCaption } from '@digigov/ui/app/PageTitleContainer';
4
4
  import BackButton from '@digigov/ui/form/Button/BackButton';
5
5
  import { useTranslation } from '@digigov/ui/i18n';
6
+ import HeadingCaption from '@digigov/react-core/HeadingCaption';
7
+ import Heading from '@digigov/react-core/Heading';
6
8
  export var StepTitleHeading = function StepTitleHeading(props) {
7
- return /*#__PURE__*/React.createElement(PageTitleHeading, null, props.children);
9
+ return /*#__PURE__*/React.createElement(Heading, null, props.children);
8
10
  };
9
11
  export var StepTitleBase = function StepTitleBase(_ref) {
10
12
  var caption = _ref.caption,
@@ -16,7 +18,9 @@ export var StepTitleBase = function StepTitleBase(_ref) {
16
18
  var _useTranslation = useTranslation(),
17
19
  t = _useTranslation.t;
18
20
 
19
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackButton, null, backButton || t('button.back')), /*#__PURE__*/React.createElement(PageTitleContainer, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitleCaption, null, caption && t(caption)), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
21
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackButton, null, backButton || t('button.back')), /*#__PURE__*/React.createElement(PageTitleContainer, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HeadingCaption, {
22
+ size: "xl"
23
+ }, caption && t(caption)), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
20
24
  };
21
25
  /**
22
26
  * The StepTitle component accepts a title, a caption and a step indicator
@@ -2,10 +2,10 @@ export * from '@digigov/form/Questions/Step/ReviewStep';
2
2
  export * from '@digigov/form/Questions/Step/Step';
3
3
  export * from '@digigov/form/Questions/Step/StepArrayReview';
4
4
  export * from '@digigov/form/Questions/Step/StepContext';
5
- export { default as StepDescription } from '@digigov/form/Questions/Step/StepDescription';
6
- export { default as StepForm } from '@digigov/form/Questions/Step/StepForm';
7
- export { default as StepQuote } from '@digigov/form/Questions/Step/StepQuote';
8
- export { default as StepTitle } from '@digigov/form/Questions/Step/StepTitle';
5
+ export * from '@digigov/form/Questions/Step/StepDescription';
6
+ export * from '@digigov/form/Questions/Step/StepForm';
7
+ export * from '@digigov/form/Questions/Step/StepQuote';
8
+ export * from '@digigov/form/Questions/Step/StepTitle';
9
9
  export * from '@digigov/form/Questions/Step/getAddMoreFields';
10
10
  export * from '@digigov/form/Questions/Step/';
11
11
  export * from '@digigov/form/Questions/Step/types';
@@ -19,24 +19,6 @@ export var Default = function Default() {
19
19
  label: {
20
20
  primary: 'Πότε εκδόθηκε το διαβατήριο σας;',
21
21
  secondary: 'Για παράδειγμα, 05 11 2020'
22
- },
23
- extra: {
24
- options: [{
25
- label: {
26
- primary: 'Έχω συνάχι'
27
- },
28
- value: 'runny-nose'
29
- }, {
30
- label: {
31
- primary: 'Έχω πυρετό'
32
- },
33
- value: 'fever'
34
- }, {
35
- label: {
36
- primary: 'Αισθάνομαι κούραση'
37
- },
38
- value: 'fatigue'
39
- }]
40
22
  }
41
23
  }), _ref);
42
24
  };
@@ -17,7 +17,7 @@ export var Default = function Default() {
17
17
  type: "choice:single",
18
18
  required: true,
19
19
  label: {
20
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
20
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
21
21
  },
22
22
  extra: {
23
23
  options: [{
@@ -17,7 +17,7 @@ export var WithDivider = function WithDivider() {
17
17
  type: "choice:single",
18
18
  required: true,
19
19
  label: {
20
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
20
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
21
21
  },
22
22
  extra: {
23
23
  options: [{
@@ -17,7 +17,7 @@ export var Default = function Default() {
17
17
  type: "choice:single",
18
18
  required: true,
19
19
  label: {
20
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
20
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
21
21
  },
22
22
  extra: {
23
23
  component: 'Select',
@@ -1,10 +1,12 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { StepContext } from '@digigov/form/Questions/Step/StepContext';
3
- import PageTitleContainer, { PageTitleHeading, PageTitleCaption } from '@digigov/ui/app/PageTitleContainer';
3
+ import PageTitleContainer, { PageTitleCaption } from '@digigov/ui/app/PageTitleContainer';
4
4
  import BackButton from '@digigov/ui/form/Button/BackButton';
5
5
  import { useTranslation } from '@digigov/ui/i18n';
6
+ import HeadingCaption from '@digigov/react-core/HeadingCaption';
7
+ import Heading from '@digigov/react-core/Heading';
6
8
  export var StepTitleHeading = function StepTitleHeading(props) {
7
- return /*#__PURE__*/React.createElement(PageTitleHeading, null, props.children);
9
+ return /*#__PURE__*/React.createElement(Heading, null, props.children);
8
10
  };
9
11
  export var StepTitleBase = function StepTitleBase(_ref) {
10
12
  var caption = _ref.caption,
@@ -16,7 +18,9 @@ export var StepTitleBase = function StepTitleBase(_ref) {
16
18
  var _useTranslation = useTranslation(),
17
19
  t = _useTranslation.t;
18
20
 
19
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackButton, null, backButton || t('button.back')), /*#__PURE__*/React.createElement(PageTitleContainer, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitleCaption, null, caption && t(caption)), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
21
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackButton, null, backButton || t('button.back')), /*#__PURE__*/React.createElement(PageTitleContainer, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HeadingCaption, {
22
+ size: "xl"
23
+ }, caption && t(caption)), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
20
24
  };
21
25
  /**
22
26
  * The StepTitle component accepts a title, a caption and a step indicator
@@ -2,10 +2,10 @@ export * from '@digigov/form/Questions/Step/ReviewStep';
2
2
  export * from '@digigov/form/Questions/Step/Step';
3
3
  export * from '@digigov/form/Questions/Step/StepArrayReview';
4
4
  export * from '@digigov/form/Questions/Step/StepContext';
5
- export { default as StepDescription } from '@digigov/form/Questions/Step/StepDescription';
6
- export { default as StepForm } from '@digigov/form/Questions/Step/StepForm';
7
- export { default as StepQuote } from '@digigov/form/Questions/Step/StepQuote';
8
- export { default as StepTitle } from '@digigov/form/Questions/Step/StepTitle';
5
+ export * from '@digigov/form/Questions/Step/StepDescription';
6
+ export * from '@digigov/form/Questions/Step/StepForm';
7
+ export * from '@digigov/form/Questions/Step/StepQuote';
8
+ export * from '@digigov/form/Questions/Step/StepTitle';
9
9
  export * from '@digigov/form/Questions/Step/getAddMoreFields';
10
10
  export * from '@digigov/form/Questions/Step/';
11
11
  export * from '@digigov/form/Questions/Step/types';
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v1.0.0-88820b1e
1
+ /** @license Digigov v1.0.0-8ae63a77
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -19,24 +19,6 @@ export var Default = function Default() {
19
19
  label: {
20
20
  primary: 'Πότε εκδόθηκε το διαβατήριο σας;',
21
21
  secondary: 'Για παράδειγμα, 05 11 2020'
22
- },
23
- extra: {
24
- options: [{
25
- label: {
26
- primary: 'Έχω συνάχι'
27
- },
28
- value: 'runny-nose'
29
- }, {
30
- label: {
31
- primary: 'Έχω πυρετό'
32
- },
33
- value: 'fever'
34
- }, {
35
- label: {
36
- primary: 'Αισθάνομαι κούραση'
37
- },
38
- value: 'fatigue'
39
- }]
40
22
  }
41
23
  }), _ref);
42
24
  };
@@ -17,7 +17,7 @@ export var Default = function Default() {
17
17
  type: "choice:single",
18
18
  required: true,
19
19
  label: {
20
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
20
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
21
21
  },
22
22
  extra: {
23
23
  options: [{
@@ -17,7 +17,7 @@ export var WithDivider = function WithDivider() {
17
17
  type: "choice:single",
18
18
  required: true,
19
19
  label: {
20
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
20
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
21
21
  },
22
22
  extra: {
23
23
  options: [{
@@ -17,7 +17,7 @@ export var Default = function Default() {
17
17
  type: "choice:single",
18
18
  required: true,
19
19
  label: {
20
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
20
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
21
21
  },
22
22
  extra: {
23
23
  component: 'Select',
@@ -36,24 +36,6 @@ var Default = function Default() {
36
36
  label: {
37
37
  primary: 'Πότε εκδόθηκε το διαβατήριο σας;',
38
38
  secondary: 'Για παράδειγμα, 05 11 2020'
39
- },
40
- extra: {
41
- options: [{
42
- label: {
43
- primary: 'Έχω συνάχι'
44
- },
45
- value: 'runny-nose'
46
- }, {
47
- label: {
48
- primary: 'Έχω πυρετό'
49
- },
50
- value: 'fever'
51
- }, {
52
- label: {
53
- primary: 'Αισθάνομαι κούραση'
54
- },
55
- value: 'fatigue'
56
- }]
57
39
  }
58
40
  }), _ref);
59
41
  };
@@ -34,7 +34,7 @@ var Default = function Default() {
34
34
  type: "choice:single",
35
35
  required: true,
36
36
  label: {
37
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
37
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
38
38
  },
39
39
  extra: {
40
40
  options: [{
@@ -34,7 +34,7 @@ var WithDivider = function WithDivider() {
34
34
  type: "choice:single",
35
35
  required: true,
36
36
  label: {
37
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
37
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
38
38
  },
39
39
  extra: {
40
40
  options: [{
@@ -34,7 +34,7 @@ var Default = function Default() {
34
34
  type: "choice:single",
35
35
  required: true,
36
36
  label: {
37
- primary: 'Ποια ειναι η χώρα της διαμονής σας;'
37
+ primary: 'Ποιά είναι η χώρα της διαμονής σας;'
38
38
  },
39
39
  extra: {
40
40
  component: 'Select',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/form",
3
- "version": "1.0.0-88820b1e",
3
+ "version": "1.0.0-8ae63a77",
4
4
  "description": "@digigov form builder",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -17,11 +17,11 @@
17
17
  "dayjs": "1.10.4",
18
18
  "@hookform/resolvers": "2.9.6",
19
19
  "publint": "0.1.8",
20
- "@digigov/react-icons": "1.0.0-88820b1e"
20
+ "@digigov/react-icons": "1.0.0-8ae63a77"
21
21
  },
22
22
  "peerDependencies": {
23
- "@digigov/ui": "1.0.0-88820b1e",
24
- "@digigov/react-core": "1.0.0-88820b1e",
23
+ "@digigov/ui": "1.0.0-8ae63a77",
24
+ "@digigov/react-core": "1.0.0-8ae63a77",
25
25
  "clsx": "1.1.1",
26
26
  "react": "^16.8.0 || ^17.0.0",
27
27
  "react-dom": "^16.8.0 || ^17.0.0"
@@ -1,12 +1,12 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { StepContext } from '@digigov/form/Questions/Step/StepContext';
3
3
  import PageTitleContainer, {
4
- PageTitleHeading,
5
- PageTitleHeadingProps,
6
4
  PageTitleCaption,
7
5
  } from '@digigov/ui/app/PageTitleContainer';
8
6
  import BackButton from '@digigov/ui/form/Button/BackButton';
9
7
  import { useTranslation } from '@digigov/ui/i18n';
8
+ import HeadingCaption from '@digigov/react-core/HeadingCaption';
9
+ import Heading, { HeadingProps } from '@digigov/react-core/Heading';
10
10
 
11
11
  export interface StepTitleInterface {
12
12
  title?: string;
@@ -15,8 +15,8 @@ export interface StepTitleInterface {
15
15
  step?: string;
16
16
  }
17
17
 
18
- export const StepTitleHeading: React.FC<PageTitleHeadingProps> = (props) => {
19
- return <PageTitleHeading>{props.children}</PageTitleHeading>;
18
+ export const StepTitleHeading: React.FC<HeadingProps> = (props) => {
19
+ return <Heading>{props.children}</Heading>;
20
20
  };
21
21
 
22
22
  export const StepTitleBase: React.FC<StepTitleInterface> = ({
@@ -33,7 +33,7 @@ export const StepTitleBase: React.FC<StepTitleInterface> = ({
33
33
  <PageTitleContainer>
34
34
  {children || (
35
35
  <>
36
- <PageTitleCaption>{caption && t(caption)}</PageTitleCaption>
36
+ <HeadingCaption size="xl">{caption && t(caption)}</HeadingCaption>
37
37
  {step && <PageTitleCaption>{step}</PageTitleCaption>}
38
38
  <StepTitleHeading>{title && t(title)}</StepTitleHeading>
39
39
  </>
@@ -2,10 +2,10 @@ export * from '@digigov/form/Questions/Step/ReviewStep';
2
2
  export * from '@digigov/form/Questions/Step/Step';
3
3
  export * from '@digigov/form/Questions/Step/StepArrayReview';
4
4
  export * from '@digigov/form/Questions/Step/StepContext';
5
- export { default as StepDescription } from '@digigov/form/Questions/Step/StepDescription';
6
- export { default as StepForm } from '@digigov/form/Questions/Step/StepForm';
7
- export { default as StepQuote } from '@digigov/form/Questions/Step/StepQuote';
8
- export { default as StepTitle } from '@digigov/form/Questions/Step/StepTitle';
5
+ export * from '@digigov/form/Questions/Step/StepDescription';
6
+ export * from '@digigov/form/Questions/Step/StepForm';
7
+ export * from '@digigov/form/Questions/Step/StepQuote';
8
+ export * from '@digigov/form/Questions/Step/StepTitle';
9
9
  export * from '@digigov/form/Questions/Step/getAddMoreFields';
10
10
  export * from '@digigov/form/Questions/Step/';
11
11
  export * from '@digigov/form/Questions/Step/types';
@@ -17,22 +17,6 @@ export const Default = () => (
17
17
  primary: 'Πότε εκδόθηκε το διαβατήριο σας;',
18
18
  secondary: 'Για παράδειγμα, 05 11 2020',
19
19
  }}
20
- extra={{
21
- options: [
22
- {
23
- label: { primary: 'Έχω συνάχι' },
24
- value: 'runny-nose',
25
- },
26
- {
27
- label: { primary: 'Έχω πυρετό' },
28
- value: 'fever',
29
- },
30
- {
31
- label: { primary: 'Αισθάνομαι κούραση' },
32
- value: 'fatigue',
33
- },
34
- ],
35
- }}
36
20
  />
37
21
  <Button type="submit">Συνέχεια</Button>
38
22
  </FormBuilder>
@@ -13,7 +13,7 @@ export const Default = () => (
13
13
  name="string"
14
14
  type="choice:single"
15
15
  required
16
- label={{ primary: 'Ποια ειναι η χώρα της διαμονής σας;' }}
16
+ label={{ primary: 'Ποιά είναι η χώρα της διαμονής σας;' }}
17
17
  extra={{
18
18
  options: [
19
19
  {
@@ -13,7 +13,7 @@ export const WithDivider = () => (
13
13
  name="string"
14
14
  type="choice:single"
15
15
  required
16
- label={{ primary: 'Ποια ειναι η χώρα της διαμονής σας;' }}
16
+ label={{ primary: 'Ποιά είναι η χώρα της διαμονής σας;' }}
17
17
  extra={{
18
18
  options: [
19
19
  {
@@ -13,7 +13,7 @@ export const Default = () => (
13
13
  name="string"
14
14
  type="choice:single"
15
15
  required
16
- label={{ primary: 'Ποια ειναι η χώρα της διαμονής σας;' }}
16
+ label={{ primary: 'Ποιά είναι η χώρα της διαμονής σας;' }}
17
17
  extra={{
18
18
  component: 'Select',
19
19
  options: [