@digigov/form 1.0.0-00643e1d → 1.0.0-05af31dd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Field/FieldBase.js +1 -1
- package/Field/FieldBaseContainer.js +1 -1
- package/Field/FieldConditional.js +2 -2
- package/Field/index.js +5 -5
- package/Field/utils.js +9 -9
- package/FieldArray/FieldArray.stories.js +4 -4
- package/FieldArray/__stories__/Default.js +5 -5
- package/FieldArray/__stories__/WithExactLength.js +5 -5
- package/FieldArray/index.js +3 -3
- package/FieldObject/index.js +3 -3
- package/Fieldset/FieldsetWithContext.js +5 -5
- package/FormBuilder/FormBuilder.js +5 -5
- package/FormBuilder/FormBuilder.stories.js +3 -3
- package/FormBuilder/__stories__/Default.js +3 -3
- package/FormBuilder/index.js +1 -1
- package/MultiplicityField/MultiplicityField.stories.js +8 -8
- package/MultiplicityField/__stories__/Default.js +5 -5
- package/MultiplicityField/__stories__/WithExactLength.js +5 -5
- package/MultiplicityField/__stories__/WithMaxLength.js +5 -5
- package/MultiplicityField/__stories__/WithMinAndMaxLength.js +5 -5
- package/MultiplicityField/__stories__/WithMinLength.js +5 -5
- package/MultiplicityField/add-objects.js +3 -3
- package/MultiplicityField/index.js +3 -3
- package/Questions/Questions.js +2 -2
- package/Questions/Questions.stories.js +3 -3
- package/Questions/Step/ReviewStep.js +3 -3
- package/Questions/Step/Step.js +3 -3
- package/Questions/Step/StepArrayReview.js +6 -6
- package/Questions/Step/StepDescription.js +1 -1
- package/Questions/Step/StepForm.js +4 -4
- package/Questions/Step/StepTitle.js +1 -1
- package/Questions/Step/index.js +14 -14
- package/Questions/__stories__/Default.js +13 -13
- package/Questions/index.js +2 -2
- package/Questions/index.spec.js +9 -9
- package/es/Field/FieldBase.js +1 -1
- package/es/Field/FieldBaseContainer.js +1 -1
- package/es/Field/FieldConditional.js +2 -2
- package/es/Field/index.js +5 -5
- package/es/Field/utils.js +9 -9
- package/es/FieldArray/FieldArray.stories.js +3 -3
- package/es/FieldArray/__stories__/Default.js +1 -1
- package/es/FieldArray/__stories__/WithExactLength.js +1 -1
- package/es/FieldArray/index.js +3 -3
- package/es/FieldObject/index.js +3 -3
- package/es/Fieldset/FieldsetWithContext.js +3 -3
- package/es/FormBuilder/FormBuilder.js +5 -5
- package/es/FormBuilder/FormBuilder.stories.js +2 -2
- package/es/FormBuilder/__stories__/Default.js +1 -1
- package/es/FormBuilder/index.js +1 -1
- package/es/MultiplicityField/MultiplicityField.stories.js +7 -7
- package/es/MultiplicityField/__stories__/Default.js +1 -1
- package/es/MultiplicityField/__stories__/WithExactLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMaxLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMinAndMaxLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMinLength.js +1 -1
- package/es/MultiplicityField/add-objects.js +3 -3
- package/es/MultiplicityField/index.js +3 -3
- package/es/Questions/Questions.js +2 -2
- package/es/Questions/Questions.stories.js +2 -2
- package/es/Questions/Step/ReviewStep.js +3 -3
- package/es/Questions/Step/Step.js +3 -3
- package/es/Questions/Step/StepArrayReview.js +6 -6
- package/es/Questions/Step/StepDescription.js +1 -1
- package/es/Questions/Step/StepForm.js +4 -4
- package/es/Questions/Step/StepTitle.js +1 -1
- package/es/Questions/Step/index.js +12 -12
- package/es/Questions/__stories__/Default.js +2 -2
- package/es/Questions/index.js +2 -2
- package/es/Questions/index.spec.js +3 -3
- package/es/index.js +2 -2
- package/es/inputs/AutoComplete/AutoComplete.stories.js +2 -2
- package/es/inputs/AutoComplete/__stories__/Default.js +2 -2
- package/es/inputs/Checkboxes/Checkboxes.stories.js +4 -4
- package/es/inputs/Checkboxes/__stories__/Conditional.js +1 -1
- package/es/inputs/Checkboxes/__stories__/Default.js +1 -1
- package/es/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
- package/es/inputs/Checkboxes/index.js +1 -1
- package/es/inputs/DateInput/DateInput.stories.js +2 -2
- package/es/inputs/DateInput/__stories__/Default.js +1 -1
- package/es/inputs/FileInput/FileInput.stories.js +2 -2
- package/es/inputs/FileInput/__stories__/Default.js +1 -1
- package/es/inputs/Input/Input.stories.js +10 -10
- package/es/inputs/Input/__stories__/AFM.js +1 -1
- package/es/inputs/Input/__stories__/Boolean.js +1 -1
- package/es/inputs/Input/__stories__/Default.js +1 -1
- package/es/inputs/Input/__stories__/IBAN.js +1 -1
- package/es/inputs/Input/__stories__/Integer.js +1 -1
- package/es/inputs/Input/__stories__/MobilePhone.js +1 -1
- package/es/inputs/Input/__stories__/PhoneNumber.js +1 -1
- package/es/inputs/Input/__stories__/PostalCode.js +1 -1
- package/es/inputs/Input/__stories__/TextWithCharacterLimit.js +1 -1
- package/es/inputs/Label/Label.stories.js +2 -2
- package/es/inputs/Label/__stories__/Default.js +1 -1
- package/es/inputs/OtpInput/OtpInput.stories.js +2 -2
- package/es/inputs/OtpInput/__stories__/Default.js +1 -1
- package/es/inputs/Radio/Radio.stories.js +4 -4
- package/es/inputs/Radio/__stories__/Conditional.js +1 -1
- package/es/inputs/Radio/__stories__/Default.js +1 -1
- package/es/inputs/Radio/__stories__/WithDivider.js +1 -1
- package/es/inputs/Radio/index.js +1 -1
- package/es/inputs/Select/Select.stories.js +2 -2
- package/es/inputs/Select/__stories__/Default.js +1 -1
- package/es/inputs/index.js +8 -8
- package/es/internal.js +34 -34
- package/es/registry.js +59 -59
- package/es/validators/index.js +3 -3
- package/es/validators/utils/index.js +8 -8
- package/es/validators/validators.spec.js +1 -1
- package/esm/Field/FieldBase.js +1 -1
- package/esm/Field/FieldBaseContainer.js +1 -1
- package/esm/Field/FieldConditional.js +2 -2
- package/esm/Field/index.js +5 -5
- package/esm/Field/utils.js +9 -9
- package/esm/FieldArray/FieldArray.stories.js +3 -3
- package/esm/FieldArray/__stories__/Default.js +1 -1
- package/esm/FieldArray/__stories__/WithExactLength.js +1 -1
- package/esm/FieldArray/index.js +3 -3
- package/esm/FieldObject/index.js +3 -3
- package/esm/Fieldset/FieldsetWithContext.js +3 -3
- package/esm/FormBuilder/FormBuilder.js +5 -5
- package/esm/FormBuilder/FormBuilder.stories.js +2 -2
- package/esm/FormBuilder/__stories__/Default.js +1 -1
- package/esm/FormBuilder/index.js +1 -1
- package/esm/MultiplicityField/MultiplicityField.stories.js +7 -7
- package/esm/MultiplicityField/__stories__/Default.js +1 -1
- package/esm/MultiplicityField/__stories__/WithExactLength.js +1 -1
- package/esm/MultiplicityField/__stories__/WithMaxLength.js +1 -1
- package/esm/MultiplicityField/__stories__/WithMinAndMaxLength.js +1 -1
- package/esm/MultiplicityField/__stories__/WithMinLength.js +1 -1
- package/esm/MultiplicityField/add-objects.js +3 -3
- package/esm/MultiplicityField/index.js +3 -3
- package/esm/Questions/Questions.js +2 -2
- package/esm/Questions/Questions.stories.js +2 -2
- package/esm/Questions/Step/ReviewStep.js +3 -3
- package/esm/Questions/Step/Step.js +3 -3
- package/esm/Questions/Step/StepArrayReview.js +6 -6
- package/esm/Questions/Step/StepDescription.js +1 -1
- package/esm/Questions/Step/StepForm.js +4 -4
- package/esm/Questions/Step/StepTitle.js +1 -1
- package/esm/Questions/Step/index.js +12 -12
- package/esm/Questions/__stories__/Default.js +2 -2
- package/esm/Questions/index.js +2 -2
- package/esm/Questions/index.spec.js +3 -3
- package/esm/index.js +3 -3
- package/esm/inputs/AutoComplete/AutoComplete.stories.js +2 -2
- package/esm/inputs/AutoComplete/__stories__/Default.js +2 -2
- package/esm/inputs/Checkboxes/Checkboxes.stories.js +4 -4
- package/esm/inputs/Checkboxes/__stories__/Conditional.js +1 -1
- package/esm/inputs/Checkboxes/__stories__/Default.js +1 -1
- package/esm/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
- package/esm/inputs/Checkboxes/index.js +1 -1
- package/esm/inputs/DateInput/DateInput.stories.js +2 -2
- package/esm/inputs/DateInput/__stories__/Default.js +1 -1
- package/esm/inputs/FileInput/FileInput.stories.js +2 -2
- package/esm/inputs/FileInput/__stories__/Default.js +1 -1
- package/esm/inputs/Input/Input.stories.js +10 -10
- package/esm/inputs/Input/__stories__/AFM.js +1 -1
- package/esm/inputs/Input/__stories__/Boolean.js +1 -1
- package/esm/inputs/Input/__stories__/Default.js +1 -1
- package/esm/inputs/Input/__stories__/IBAN.js +1 -1
- package/esm/inputs/Input/__stories__/Integer.js +1 -1
- package/esm/inputs/Input/__stories__/MobilePhone.js +1 -1
- package/esm/inputs/Input/__stories__/PhoneNumber.js +1 -1
- package/esm/inputs/Input/__stories__/PostalCode.js +1 -1
- package/esm/inputs/Input/__stories__/TextWithCharacterLimit.js +1 -1
- package/esm/inputs/Label/Label.stories.js +2 -2
- package/esm/inputs/Label/__stories__/Default.js +1 -1
- package/esm/inputs/OtpInput/OtpInput.stories.js +2 -2
- package/esm/inputs/OtpInput/__stories__/Default.js +1 -1
- package/esm/inputs/Radio/Radio.stories.js +4 -4
- package/esm/inputs/Radio/__stories__/Conditional.js +1 -1
- package/esm/inputs/Radio/__stories__/Default.js +1 -1
- package/esm/inputs/Radio/__stories__/WithDivider.js +1 -1
- package/esm/inputs/Radio/index.js +1 -1
- package/esm/inputs/Select/Select.stories.js +2 -2
- package/esm/inputs/Select/__stories__/Default.js +1 -1
- package/esm/inputs/index.js +8 -8
- package/esm/internal.js +34 -34
- package/esm/registry.js +59 -59
- package/esm/validators/index.js +3 -3
- package/esm/validators/utils/index.js +8 -8
- package/esm/validators/validators.spec.js +1 -1
- package/index.js +2 -2
- package/inputs/AutoComplete/AutoComplete.stories.js +3 -3
- package/inputs/AutoComplete/__stories__/Default.js +2 -2
- package/inputs/Checkboxes/Checkboxes.stories.js +5 -5
- package/inputs/Checkboxes/__stories__/Conditional.js +3 -3
- package/inputs/Checkboxes/__stories__/Default.js +3 -3
- package/inputs/Checkboxes/__stories__/WithDivider.js +3 -3
- package/inputs/Checkboxes/index.js +2 -2
- package/inputs/DateInput/DateInput.stories.js +3 -3
- package/inputs/DateInput/__stories__/Default.js +3 -3
- package/inputs/FileInput/FileInput.stories.js +3 -3
- package/inputs/FileInput/__stories__/Default.js +3 -3
- package/inputs/Input/Input.stories.js +11 -11
- package/inputs/Input/__stories__/AFM.js +3 -3
- package/inputs/Input/__stories__/Boolean.js +3 -3
- package/inputs/Input/__stories__/Default.js +3 -3
- package/inputs/Input/__stories__/IBAN.js +3 -3
- package/inputs/Input/__stories__/Integer.js +4 -4
- package/inputs/Input/__stories__/MobilePhone.js +3 -3
- package/inputs/Input/__stories__/PhoneNumber.js +3 -3
- package/inputs/Input/__stories__/PostalCode.js +3 -3
- package/inputs/Input/__stories__/TextWithCharacterLimit.js +5 -5
- package/inputs/Label/Label.stories.js +3 -3
- package/inputs/Label/__stories__/Default.js +4 -4
- package/inputs/OtpInput/OtpInput.stories.js +3 -3
- package/inputs/OtpInput/__stories__/Default.js +4 -4
- package/inputs/Radio/Radio.stories.js +5 -5
- package/inputs/Radio/__stories__/Conditional.js +3 -3
- package/inputs/Radio/__stories__/Default.js +3 -3
- package/inputs/Radio/__stories__/WithDivider.js +3 -3
- package/inputs/Radio/index.js +2 -2
- package/inputs/Select/Select.stories.js +3 -3
- package/inputs/Select/__stories__/Default.js +3 -3
- package/inputs/index.js +8 -8
- package/internal.js +20 -20
- package/package.json +4 -4
- package/registry.js +59 -59
- package/validators/index.js +3 -3
- package/validators/utils/index.js +8 -8
- package/validators/validators.spec.js +1 -1
package/Questions/Step/Step.js
CHANGED
|
@@ -17,11 +17,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
17
17
|
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
|
|
20
|
-
var _QuestionsContext = require("
|
|
20
|
+
var _QuestionsContext = require("../QuestionsContext");
|
|
21
21
|
|
|
22
|
-
var _StepArrayReview = require("
|
|
22
|
+
var _StepArrayReview = require("./StepArrayReview");
|
|
23
23
|
|
|
24
|
-
var _StepContext = require("
|
|
24
|
+
var _StepContext = require("./StepContext");
|
|
25
25
|
|
|
26
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); }
|
|
27
27
|
|
|
@@ -11,17 +11,17 @@ exports["default"] = exports.StepArrayReview = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Field = require("
|
|
14
|
+
var _Field = require("../../Field");
|
|
15
15
|
|
|
16
|
-
var _Fieldset = require("
|
|
16
|
+
var _Fieldset = require("../../Fieldset");
|
|
17
17
|
|
|
18
|
-
var _FormBuilder = _interopRequireDefault(require("
|
|
18
|
+
var _FormBuilder = _interopRequireDefault(require("../../FormBuilder"));
|
|
19
19
|
|
|
20
|
-
var _Label = _interopRequireDefault(require("
|
|
20
|
+
var _Label = _interopRequireDefault(require("../../inputs/Label"));
|
|
21
21
|
|
|
22
|
-
var _QuestionsContext = require("
|
|
22
|
+
var _QuestionsContext = require("../QuestionsContext");
|
|
23
23
|
|
|
24
|
-
var _getAddMoreFields = require("
|
|
24
|
+
var _getAddMoreFields = require("./getAddMoreFields");
|
|
25
25
|
|
|
26
26
|
var _PageTitleContainer = _interopRequireWildcard(require("@digigov/ui/app/PageTitleContainer"));
|
|
27
27
|
|
|
@@ -15,7 +15,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
-
var _StepContext = require("
|
|
18
|
+
var _StepContext = require("./StepContext");
|
|
19
19
|
|
|
20
20
|
var _i18n = require("@digigov/ui/i18n");
|
|
21
21
|
|
|
@@ -13,13 +13,13 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _Field = _interopRequireDefault(require("
|
|
16
|
+
var _Field = _interopRequireDefault(require("../../Field"));
|
|
17
17
|
|
|
18
|
-
var _Fieldset = _interopRequireDefault(require("
|
|
18
|
+
var _Fieldset = _interopRequireDefault(require("../../Fieldset"));
|
|
19
19
|
|
|
20
|
-
var _FormBuilder = _interopRequireDefault(require("
|
|
20
|
+
var _FormBuilder = _interopRequireDefault(require("../../FormBuilder"));
|
|
21
21
|
|
|
22
|
-
var _StepContext = require("
|
|
22
|
+
var _StepContext = require("./StepContext");
|
|
23
23
|
|
|
24
24
|
var _Button = _interopRequireDefault(require("@digigov/ui/form/Button"));
|
|
25
25
|
|
|
@@ -11,7 +11,7 @@ exports["default"] = exports.StepTitleHeading = exports.StepTitleBase = exports.
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _StepContext = require("
|
|
14
|
+
var _StepContext = require("./StepContext");
|
|
15
15
|
|
|
16
16
|
var _PageTitleContainer = _interopRequireWildcard(require("@digigov/ui/app/PageTitleContainer"));
|
|
17
17
|
|
package/Questions/Step/index.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var _ReviewStep = require("
|
|
11
|
+
var _ReviewStep = require("./ReviewStep");
|
|
12
12
|
|
|
13
13
|
Object.keys(_ReviewStep).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -22,7 +22,7 @@ Object.keys(_ReviewStep).forEach(function (key) {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var _Step = _interopRequireWildcard(require("
|
|
25
|
+
var _Step = _interopRequireWildcard(require("./Step"));
|
|
26
26
|
|
|
27
27
|
Object.keys(_Step).forEach(function (key) {
|
|
28
28
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -36,7 +36,7 @@ Object.keys(_Step).forEach(function (key) {
|
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
var _StepArrayReview = require("
|
|
39
|
+
var _StepArrayReview = require("./StepArrayReview");
|
|
40
40
|
|
|
41
41
|
Object.keys(_StepArrayReview).forEach(function (key) {
|
|
42
42
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -50,7 +50,7 @@ Object.keys(_StepArrayReview).forEach(function (key) {
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
var _StepContext = require("
|
|
53
|
+
var _StepContext = require("./StepContext");
|
|
54
54
|
|
|
55
55
|
Object.keys(_StepContext).forEach(function (key) {
|
|
56
56
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -64,7 +64,7 @@ Object.keys(_StepContext).forEach(function (key) {
|
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
var _StepDescription = require("
|
|
67
|
+
var _StepDescription = require("./StepDescription");
|
|
68
68
|
|
|
69
69
|
Object.keys(_StepDescription).forEach(function (key) {
|
|
70
70
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -78,7 +78,7 @@ Object.keys(_StepDescription).forEach(function (key) {
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
var _StepForm = require("
|
|
81
|
+
var _StepForm = require("./StepForm");
|
|
82
82
|
|
|
83
83
|
Object.keys(_StepForm).forEach(function (key) {
|
|
84
84
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -92,7 +92,7 @@ Object.keys(_StepForm).forEach(function (key) {
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
var _StepQuote = require("
|
|
95
|
+
var _StepQuote = require("./StepQuote");
|
|
96
96
|
|
|
97
97
|
Object.keys(_StepQuote).forEach(function (key) {
|
|
98
98
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -106,7 +106,7 @@ Object.keys(_StepQuote).forEach(function (key) {
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
var _StepTitle = require("
|
|
109
|
+
var _StepTitle = require("./StepTitle");
|
|
110
110
|
|
|
111
111
|
Object.keys(_StepTitle).forEach(function (key) {
|
|
112
112
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -120,7 +120,7 @@ Object.keys(_StepTitle).forEach(function (key) {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
var _getAddMoreFields = require("
|
|
123
|
+
var _getAddMoreFields = require("./getAddMoreFields");
|
|
124
124
|
|
|
125
125
|
Object.keys(_getAddMoreFields).forEach(function (key) {
|
|
126
126
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -134,21 +134,21 @@ Object.keys(_getAddMoreFields).forEach(function (key) {
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
var
|
|
137
|
+
var _ = require("./");
|
|
138
138
|
|
|
139
|
-
Object.keys(
|
|
139
|
+
Object.keys(_).forEach(function (key) {
|
|
140
140
|
if (key === "default" || key === "__esModule") return;
|
|
141
141
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
142
|
-
if (key in exports && exports[key] ===
|
|
142
|
+
if (key in exports && exports[key] === _[key]) return;
|
|
143
143
|
Object.defineProperty(exports, key, {
|
|
144
144
|
enumerable: true,
|
|
145
145
|
get: function get() {
|
|
146
|
-
return
|
|
146
|
+
return _[key];
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
var _types = require("
|
|
151
|
+
var _types = require("./types");
|
|
152
152
|
|
|
153
153
|
Object.keys(_types).forEach(function (key) {
|
|
154
154
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -12,9 +12,9 @@ exports["default"] = void 0;
|
|
|
12
12
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _ = require("../..");
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _2 = _interopRequireWildcard(require("./.."));
|
|
18
18
|
|
|
19
19
|
var _Header = _interopRequireDefault(require("@digigov/ui/app/Header"));
|
|
20
20
|
|
|
@@ -90,31 +90,31 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, /*#__P
|
|
|
90
90
|
href: "#"
|
|
91
91
|
})))));
|
|
92
92
|
|
|
93
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(
|
|
93
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_2.Step, {
|
|
94
94
|
name: "age"
|
|
95
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
95
|
+
}, /*#__PURE__*/_react["default"].createElement(_2.StepTitle, null), /*#__PURE__*/_react["default"].createElement(_2.StepForm, {
|
|
96
96
|
submitButton: true
|
|
97
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
98
98
|
key: "age",
|
|
99
99
|
name: "age"
|
|
100
100
|
})));
|
|
101
101
|
|
|
102
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(
|
|
102
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_2.Step, {
|
|
103
103
|
name: "citizen-underage"
|
|
104
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement(_2.StepTitle, null), /*#__PURE__*/_react["default"].createElement(_2.StepForm, {
|
|
105
105
|
submitButton: true
|
|
106
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
107
107
|
key: "citizen-underage-student",
|
|
108
108
|
name: "citizen-underage-student"
|
|
109
109
|
})));
|
|
110
110
|
|
|
111
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(
|
|
111
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_2.Step, {
|
|
112
112
|
name: "citizen-adult"
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement(_2.StepTitle, {
|
|
114
114
|
backButton: "\u03A0\u03AF\u03C3\u03C9"
|
|
115
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
115
|
+
}), /*#__PURE__*/_react["default"].createElement(_2.StepForm, {
|
|
116
116
|
submitButton: true
|
|
117
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
117
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
118
118
|
key: "citizen-adult-employed",
|
|
119
119
|
name: "citizen-adult-employed"
|
|
120
120
|
})));
|
|
@@ -122,7 +122,7 @@ var _ref4 = /*#__PURE__*/_react["default"].createElement(_Questions.Step, {
|
|
|
122
122
|
var _ref5 = /*#__PURE__*/_react["default"].createElement(_Basic.Bottom, null, /*#__PURE__*/_react["default"].createElement(_Footer["default"], null));
|
|
123
123
|
|
|
124
124
|
function Default() {
|
|
125
|
-
return /*#__PURE__*/_react["default"].createElement(_Basic["default"], null, _ref, /*#__PURE__*/_react["default"].createElement(_Basic.Content, null, /*#__PURE__*/_react["default"].createElement(_Basic.Main, null, /*#__PURE__*/_react["default"].createElement(
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(_Basic["default"], null, _ref, /*#__PURE__*/_react["default"].createElement(_Basic.Content, null, /*#__PURE__*/_react["default"].createElement(_Basic.Main, null, /*#__PURE__*/_react["default"].createElement(_2["default"], {
|
|
126
126
|
name: 'example',
|
|
127
127
|
steps: steps,
|
|
128
128
|
onSubmit: function onSubmit(data) {
|
package/Questions/index.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {};
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
|
|
9
|
-
var _Questions = require("
|
|
9
|
+
var _Questions = require("./Questions");
|
|
10
10
|
|
|
11
|
-
var _Step = require("
|
|
11
|
+
var _Step = require("./Step");
|
|
12
12
|
|
|
13
13
|
Object.keys(_Step).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
package/Questions/index.spec.js
CHANGED
|
@@ -6,9 +6,9 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = require("./..");
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _2 = _interopRequireWildcard(require("./"));
|
|
12
12
|
|
|
13
13
|
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); }
|
|
14
14
|
|
|
@@ -44,26 +44,26 @@ var steps = [{
|
|
|
44
44
|
}]
|
|
45
45
|
}];
|
|
46
46
|
|
|
47
|
-
var _ref = /*#__PURE__*/React.createElement(
|
|
47
|
+
var _ref = /*#__PURE__*/React.createElement(_2.Step, {
|
|
48
48
|
name: "intro"
|
|
49
|
-
}, /*#__PURE__*/React.createElement(
|
|
49
|
+
}, /*#__PURE__*/React.createElement(_2.StepTitle, null), /*#__PURE__*/React.createElement(_2.StepQuote, null, "This is the intro"), /*#__PURE__*/React.createElement(_2.StepForm, {
|
|
50
50
|
submitButton: true
|
|
51
|
-
}, /*#__PURE__*/React.createElement(
|
|
51
|
+
}, /*#__PURE__*/React.createElement(_.Field, {
|
|
52
52
|
key: 'name',
|
|
53
53
|
name: "name"
|
|
54
54
|
})));
|
|
55
55
|
|
|
56
|
-
var _ref2 = /*#__PURE__*/React.createElement(
|
|
56
|
+
var _ref2 = /*#__PURE__*/React.createElement(_2.Step, {
|
|
57
57
|
name: "age"
|
|
58
|
-
}, /*#__PURE__*/React.createElement(
|
|
58
|
+
}, /*#__PURE__*/React.createElement(_2.StepTitle, null), /*#__PURE__*/React.createElement(_2.StepQuote, null, "This is the age"), /*#__PURE__*/React.createElement(_2.StepForm, {
|
|
59
59
|
submitButton: true
|
|
60
|
-
}, /*#__PURE__*/React.createElement(
|
|
60
|
+
}, /*#__PURE__*/React.createElement(_.Field, {
|
|
61
61
|
key: 'dateOfBirth',
|
|
62
62
|
name: "dateOfBirth"
|
|
63
63
|
})));
|
|
64
64
|
|
|
65
65
|
it('renders the Questions', function () {
|
|
66
|
-
expect((0, _enzyme.mount)( /*#__PURE__*/React.createElement(
|
|
66
|
+
expect((0, _enzyme.mount)( /*#__PURE__*/React.createElement(_2["default"], {
|
|
67
67
|
name: 'example',
|
|
68
68
|
onSubmit: function onSubmit(data) {
|
|
69
69
|
console.log(data);
|
package/es/Field/FieldBase.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["required", "name", "component", "wrapper", "control", "type", "controlled", "enabled", "editable", "defaultValue", "label", "extra", "layout", "error", "register"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Controller } from 'react-hook-form';
|
|
6
|
-
import FieldBaseContainer from
|
|
6
|
+
import FieldBaseContainer from "./FieldBaseContainer";
|
|
7
7
|
export var FieldBase = function FieldBase(props) {
|
|
8
8
|
var required = props.required,
|
|
9
9
|
name = props.name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Label from
|
|
3
|
+
import Label from "../inputs/Label";
|
|
4
4
|
import ErrorMessage from '@digigov/react-core/ErrorMessage';
|
|
5
5
|
import FieldContainer from '@digigov/react-core/FieldContainer';
|
|
6
6
|
import CoreFieldset from '@digigov/react-core/Fieldset';
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useWatch } from 'react-hook-form';
|
|
5
|
-
import { FieldBase } from
|
|
6
|
-
import { evaluateFieldWithConditions } from
|
|
5
|
+
import { FieldBase } from "./FieldBase";
|
|
6
|
+
import { evaluateFieldWithConditions } from "./utils";
|
|
7
7
|
var ChildFieldMemo = /*#__PURE__*/React.memo(function ChildField(_ref) {
|
|
8
8
|
var dependencies = _ref.dependencies,
|
|
9
9
|
field = _ref.field,
|
package/es/Field/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["name", "children"];
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
|
-
import { FieldBase } from
|
|
6
|
-
import FieldConditional from
|
|
7
|
-
import { useField, calculateField } from
|
|
8
|
-
import FieldArray from
|
|
9
|
-
import Multiplicity from
|
|
5
|
+
import { FieldBase } from "./FieldBase";
|
|
6
|
+
import FieldConditional from "./FieldConditional";
|
|
7
|
+
import { useField, calculateField } from "./utils";
|
|
8
|
+
import FieldArray from "../FieldArray";
|
|
9
|
+
import Multiplicity from "../MultiplicityField";
|
|
10
10
|
export var Field = function Field(_ref) {
|
|
11
11
|
var name = _ref.name,
|
|
12
12
|
children = _ref.children,
|
package/es/Field/utils.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { lazy, useContext, useMemo } from 'react';
|
|
3
|
-
import { FormContext } from
|
|
4
|
-
import Checkboxes from
|
|
5
|
-
import DateInput from
|
|
6
|
-
import FileInput from
|
|
7
|
-
import Input from
|
|
8
|
-
import OtpInput from
|
|
9
|
-
import Radio from
|
|
10
|
-
import Select from
|
|
3
|
+
import { FormContext } from "../FormContext";
|
|
4
|
+
import Checkboxes from "../inputs/Checkboxes";
|
|
5
|
+
import DateInput from "../inputs/DateInput";
|
|
6
|
+
import FileInput from "../inputs/FileInput";
|
|
7
|
+
import Input from "../inputs/Input";
|
|
8
|
+
import OtpInput from "../inputs/OtpInput";
|
|
9
|
+
import Radio from "../inputs/Radio";
|
|
10
|
+
import Select from "../inputs/Select";
|
|
11
11
|
var AutoComplete = /*#__PURE__*/lazy(function () {
|
|
12
|
-
return import(
|
|
12
|
+
return import("../inputs/AutoComplete");
|
|
13
13
|
});
|
|
14
14
|
var FIELD_COMPONENTS = {
|
|
15
15
|
text: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import FieldArray from
|
|
1
|
+
import FieldArray from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/FieldArray',
|
|
4
4
|
component: FieldArray,
|
|
5
5
|
displayName: 'FieldArray'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
8
|
+
export * from "./__stories__/WithExactLength";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
package/es/FieldArray/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["name", "register", "control", "formState", "error", "layout", "label"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useFieldArray } from 'react-hook-form';
|
|
6
|
-
import FieldContainer from
|
|
7
|
-
import FieldObject from
|
|
8
|
-
import { FieldsetLabel } from
|
|
6
|
+
import FieldContainer from "../Field/FieldBaseContainer";
|
|
7
|
+
import FieldObject from "../FieldObject";
|
|
8
|
+
import { FieldsetLabel } from "../Fieldset";
|
|
9
9
|
import Fieldset from '@digigov/react-core/Fieldset';
|
|
10
10
|
import { Button, Card, Hint } from '@digigov/ui';
|
|
11
11
|
export var FieldArray = function FieldArray(_ref) {
|
package/es/FieldObject/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { FieldBase } from
|
|
4
|
-
import { calculateField } from
|
|
5
|
-
import Fieldset, { FieldsetCaption } from
|
|
3
|
+
import { FieldBase } from "../Field/FieldBase";
|
|
4
|
+
import { calculateField } from "../Field/utils";
|
|
5
|
+
import Fieldset, { FieldsetCaption } from "../Fieldset";
|
|
6
6
|
import { FieldsetLegend } from '@digigov/react-core';
|
|
7
7
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
8
8
|
export var FieldObject = function FieldObject(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import Field from
|
|
3
|
-
import { Fieldset, FieldsetLabel, FieldsetCaption, FieldsetBody } from
|
|
4
|
-
import { FormContext } from
|
|
2
|
+
import Field from "../Field";
|
|
3
|
+
import { Fieldset, FieldsetLabel, FieldsetCaption, FieldsetBody } from "./";
|
|
4
|
+
import { FormContext } from "../FormContext";
|
|
5
5
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
6
6
|
export var FieldsetWithContext = function FieldsetWithContext(_ref) {
|
|
7
7
|
var name = _ref.name;
|
|
@@ -7,11 +7,11 @@ var _excluded = ["onSubmit", "children", "registerField", "fieldsMap", "fieldset
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
8
|
import React, { useCallback, useRef } from 'react';
|
|
9
9
|
import { useForm } from 'react-hook-form';
|
|
10
|
-
import Field from
|
|
11
|
-
import Fieldset from
|
|
12
|
-
import { FormContext } from
|
|
13
|
-
import { yupResolver } from
|
|
14
|
-
import { useValidationSchema } from
|
|
10
|
+
import Field from "../Field";
|
|
11
|
+
import Fieldset from "../Fieldset";
|
|
12
|
+
import { FormContext } from "../FormContext";
|
|
13
|
+
import { yupResolver } from "../utils";
|
|
14
|
+
import { useValidationSchema } from "../validators";
|
|
15
15
|
import { Form } from '@digigov/react-core/Form';
|
|
16
16
|
export var FormBase = /*#__PURE__*/React.forwardRef(function FormBase(_ref, ref) {
|
|
17
17
|
var onSubmit = _ref.onSubmit,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import FormBuilder from
|
|
1
|
+
import FormBuilder from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/FormBuilder',
|
|
4
4
|
component: FormBuilder,
|
|
5
5
|
displayName: 'FormBuilder'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
package/es/FormBuilder/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FormBuilder } from
|
|
1
|
+
import { FormBuilder } from "./FormBuilder";
|
|
2
2
|
export default FormBuilder;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import MultiplicityField from
|
|
1
|
+
import MultiplicityField from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/MultiplicityField',
|
|
4
4
|
component: MultiplicityField,
|
|
5
5
|
displayName: 'MultiplicityField'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
8
|
+
export * from "./__stories__/WithMinLength";
|
|
9
|
+
export * from "./__stories__/WithMaxLength";
|
|
10
|
+
export * from "./__stories__/WithMinAndMaxLength";
|
|
11
|
+
export * from "./__stories__/WithExactLength";
|
|
12
|
+
export * from "./__stories__/PreviewDisplay";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -8,9 +8,9 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
8
8
|
import React, { useEffect, useMemo } from 'react'; // import { FormBuilderProps } from '@digigov/form';
|
|
9
9
|
|
|
10
10
|
import { useWatch } from 'react-hook-form';
|
|
11
|
-
import { FieldBase } from
|
|
12
|
-
import { calculateField, useField } from
|
|
13
|
-
import FieldObject from
|
|
11
|
+
import { FieldBase } from "../Field/FieldBase";
|
|
12
|
+
import { calculateField, useField } from "../Field/utils";
|
|
13
|
+
import FieldObject from "../FieldObject";
|
|
14
14
|
import Fieldset from '@digigov/react-core/Fieldset';
|
|
15
15
|
import RadioConditional from '@digigov/react-core/RadioConditional';
|
|
16
16
|
import Button from '@digigov/ui/form/Button';
|
|
@@ -3,9 +3,9 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { useFieldArray } from 'react-hook-form';
|
|
6
|
-
import FieldContainer from
|
|
7
|
-
import FieldObject from
|
|
8
|
-
import AddObjects from
|
|
6
|
+
import FieldContainer from "../Field/FieldBaseContainer";
|
|
7
|
+
import FieldObject from "../FieldObject";
|
|
8
|
+
import AddObjects from "./add-objects";
|
|
9
9
|
import { Card, CardContent, CardAction, Button, Heading, CardHeading } from '@digigov/react-core';
|
|
10
10
|
// epeidh einai forwardRef to ref mas to dinei xwrista apo ta props
|
|
11
11
|
export var Multiplicity = function Multiplicity(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
|
-
import { getNextStep } from
|
|
4
|
-
import { QuestionsContext } from
|
|
3
|
+
import { getNextStep } from "./getNextStep";
|
|
4
|
+
import { QuestionsContext } from "./QuestionsContext";
|
|
5
5
|
var isBrowser = typeof window !== 'undefined';
|
|
6
6
|
/**
|
|
7
7
|
* The Question component accepts question data as props
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Questions from
|
|
1
|
+
import Questions from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/Questions',
|
|
4
4
|
component: Questions,
|
|
5
5
|
displayName: 'Questions'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|