@digigov/form 0.6.3 → 0.6.6
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/CHANGELOG.md +21 -1
- package/Questions/index.mdx +0 -2
- package/es/Questions/index.mdx +0 -2
- package/es/index.js +10 -9
- package/es/validators.js +35 -2
- package/es/validators.spec.js +13 -1
- package/esm/Questions/index.mdx +0 -2
- package/esm/index.js +12 -11
- package/esm/validators.js +35 -2
- package/esm/validators.spec.js +13 -1
- package/index.js +12 -12
- package/libs/form/src/index.d.ts +3 -3
- package/libs/form/src/validators.d.ts +1 -0
- package/libs/ui/src/app/CopyToClipboard.d.ts +9 -0
- package/libs/ui/src/app/PhaseBannerHeader.d.ts +8 -0
- package/libs/ui/src/app/index.d.ts +2 -0
- package/libs/ui/src/core/Accordion/index.d.ts +8 -3
- package/libs/ui/src/core/Card/index.d.ts +2 -0
- package/libs/ui/src/core/FileUpload/index.d.ts +3 -0
- package/libs/ui/src/core/ServiceBadge/index.d.ts +0 -1
- package/libs/ui/src/core/SvgIcon/index.d.ts +9 -0
- package/libs/ui/src/core/Table/index.d.ts +2 -0
- package/libs/ui/src/core/index.d.ts +2 -0
- package/libs/ui/src/locales/el.d.ts +5 -0
- package/libs-ui/react-core/src/AccordionSectionHeader/index.d.ts +1 -1
- package/libs-ui/react-core/src/AccordionSectionSummary/index.d.ts +9 -0
- package/libs-ui/react-core/src/AccordionSectionSummaryHeading/index.d.ts +9 -0
- package/libs-ui/react-core/src/BurgerIcon/index.d.ts +28 -0
- package/libs-ui/react-core/src/Card/index.d.ts +14 -2
- package/libs-ui/react-core/src/CloseIcon/index.d.ts +16 -0
- package/libs-ui/react-core/src/FileUpload/index.d.ts +14 -0
- package/libs-ui/react-core/src/List/index.d.ts +2 -2
- package/libs-ui/react-core/src/MoreVertIcon/index.d.ts +15 -0
- package/libs-ui/react-core/src/PhaseBannerHeaderContainer/index.d.ts +8 -0
- package/libs-ui/react-core/src/TableContainer/index.d.ts +13 -0
- package/libs-ui/react-core/src/TableNoDataRow/index.d.ts +10 -0
- package/libs-ui/react-core/src/UncheckIcon/index.d.ts +15 -0
- package/libs-ui/react-extensions/src/admin/CopyToClipboardContainer/index.d.ts +14 -0
- package/libs-ui/react-extensions/src/admin/CopyToClipboardMessage/index.d.ts +21 -0
- package/package.json +3 -3
- package/validators.js +37 -2
- package/validators.spec.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# Change Log - @digigov/form
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 24 May 2022 09:13:18 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.6.6
|
|
6
|
+
Tue, 24 May 2022 09:13:18 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Update MDX examples
|
|
11
|
+
- create postal code validator
|
|
12
|
+
|
|
13
|
+
## 0.6.5
|
|
14
|
+
Tue, 17 May 2022 11:04:22 GMT
|
|
15
|
+
|
|
16
|
+
_Version update only_
|
|
17
|
+
|
|
18
|
+
## 0.6.4
|
|
19
|
+
Mon, 16 May 2022 14:42:45 GMT
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- Change MIT License to BSD-2-Clause
|
|
4
24
|
|
|
5
25
|
## 0.6.3
|
|
6
26
|
Mon, 18 Apr 2022 13:00:33 GMT
|
package/Questions/index.mdx
CHANGED
|
@@ -10,8 +10,6 @@ import Questions, {
|
|
|
10
10
|
StepTitle,
|
|
11
11
|
} from '@digigov/form/Questions';
|
|
12
12
|
import { Field } from '@digigov/form';
|
|
13
|
-
import PropsDoc from '@docs-components/propsDoc';
|
|
14
|
-
import StylesDoc from '@docs-components/stylesDoc';
|
|
15
13
|
const steps = [
|
|
16
14
|
{
|
|
17
15
|
name: 'intro',
|
package/es/Questions/index.mdx
CHANGED
|
@@ -10,8 +10,6 @@ import Questions, {
|
|
|
10
10
|
StepTitle,
|
|
11
11
|
} from '@digigov/form/Questions';
|
|
12
12
|
import { Field } from '@digigov/form';
|
|
13
|
-
import PropsDoc from '@docs-components/propsDoc';
|
|
14
|
-
import StylesDoc from '@docs-components/stylesDoc';
|
|
15
13
|
const steps = [
|
|
16
14
|
{
|
|
17
15
|
name: 'intro',
|
package/es/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export var FormContext = /*#__PURE__*/createContext({
|
|
|
19
19
|
fieldsMap: {},
|
|
20
20
|
fieldsetsMap: {}
|
|
21
21
|
});
|
|
22
|
-
export var FormBase = function FormBase(_ref) {
|
|
22
|
+
export var FormBase = /*#__PURE__*/React.forwardRef(function FormBase(_ref, ref) {
|
|
23
23
|
var onSubmit = _ref.onSubmit,
|
|
24
24
|
children = _ref.children,
|
|
25
25
|
registerField = _ref.registerField,
|
|
@@ -64,15 +64,16 @@ export var FormBase = function FormBase(_ref) {
|
|
|
64
64
|
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
65
65
|
value: ctx
|
|
66
66
|
}, /*#__PURE__*/React.createElement("form", _extends({
|
|
67
|
-
onSubmit: form.handleSubmit(handleSubmit)
|
|
67
|
+
onSubmit: form.handleSubmit(handleSubmit),
|
|
68
|
+
ref: ref
|
|
68
69
|
}, props), /*#__PURE__*/React.createElement(Grid, {
|
|
69
70
|
container: true
|
|
70
71
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
71
72
|
item: true,
|
|
72
73
|
xs: 12
|
|
73
74
|
}, children))));
|
|
74
|
-
};
|
|
75
|
-
export function FormBuilder(_ref2) {
|
|
75
|
+
});
|
|
76
|
+
export var FormBuilder = /*#__PURE__*/React.forwardRef(function FormBuilder(_ref2, ref) {
|
|
76
77
|
var _ref2$fields = _ref2.fields,
|
|
77
78
|
fields = _ref2$fields === void 0 ? [] : _ref2$fields,
|
|
78
79
|
fieldsets = _ref2.fieldsets,
|
|
@@ -144,10 +145,10 @@ export function FormBuilder(_ref2) {
|
|
|
144
145
|
reValidateMode: reValidateMode,
|
|
145
146
|
mode: mode,
|
|
146
147
|
shouldFocusError: shouldFocusError,
|
|
147
|
-
criteriaMode: criteriaMode
|
|
148
|
-
}, props, {
|
|
148
|
+
criteriaMode: criteriaMode,
|
|
149
149
|
onSubmit: onSubmit,
|
|
150
|
-
componentRegistry: componentRegistry
|
|
151
|
-
|
|
152
|
-
}
|
|
150
|
+
componentRegistry: componentRegistry,
|
|
151
|
+
ref: ref
|
|
152
|
+
}, props), fieldChildren, children);
|
|
153
|
+
});
|
|
153
154
|
export default FormBuilder;
|
package/es/validators.js
CHANGED
|
@@ -14,6 +14,19 @@ import dayjs from 'dayjs';
|
|
|
14
14
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
15
15
|
dayjs.extend(customParseFormat);
|
|
16
16
|
var DEFAULT_FILE_MAX_SIZE = 10000000;
|
|
17
|
+
export function validatePostalCode(number, countries) {
|
|
18
|
+
if (!countries) {
|
|
19
|
+
return false;
|
|
20
|
+
} else {
|
|
21
|
+
if (countries.length === 1 && countries[0].toUpperCase() === 'GR') {
|
|
22
|
+
// Greek postal code must be 5 digits long and shouldn't start with 0 or 9.
|
|
23
|
+
var CODE_REGEX = /^[12345678][0-9]{4}$/;
|
|
24
|
+
return CODE_REGEX.test(number);
|
|
25
|
+
} else {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
export function validateAFM(afm) {
|
|
18
31
|
if (afm.length !== 9) {
|
|
19
32
|
// "afm should be 9 digits"
|
|
@@ -69,6 +82,23 @@ function validateMobile(value) {
|
|
|
69
82
|
}
|
|
70
83
|
}
|
|
71
84
|
|
|
85
|
+
var POSTALCODE_VALIDATOR = function POSTALCODE_VALIDATOR(field) {
|
|
86
|
+
var _field$extra;
|
|
87
|
+
|
|
88
|
+
var countryCode = field === null || field === void 0 ? void 0 : (_field$extra = field.extra) === null || _field$extra === void 0 ? void 0 : _field$extra.countries;
|
|
89
|
+
return {
|
|
90
|
+
name: 'postal-code-validator',
|
|
91
|
+
message: 'form.error.postalCode',
|
|
92
|
+
test: function test(value) {
|
|
93
|
+
if (!value || value.length === 0) {
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return validatePostalCode(value, countryCode);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
|
|
72
102
|
var MOBILE_PHONE_VALIDATOR = {
|
|
73
103
|
name: 'mobile-phone-validator',
|
|
74
104
|
message: 'form.error.mobile_phone',
|
|
@@ -267,9 +297,9 @@ export function validateIban(value, countryCode) {
|
|
|
267
297
|
}
|
|
268
298
|
|
|
269
299
|
var IBAN_VALIDATOR = function IBAN_VALIDATOR(field) {
|
|
270
|
-
var _field$
|
|
300
|
+
var _field$extra2;
|
|
271
301
|
|
|
272
|
-
var countryCode = field === null || field === void 0 ? void 0 : (_field$
|
|
302
|
+
var countryCode = field === null || field === void 0 ? void 0 : (_field$extra2 = field.extra) === null || _field$extra2 === void 0 ? void 0 : _field$extra2.country;
|
|
273
303
|
return {
|
|
274
304
|
name: 'iban-validator',
|
|
275
305
|
message: 'form.error.iban',
|
|
@@ -418,6 +448,9 @@ var getYUPTypeMap = function getYUPTypeMap() {
|
|
|
418
448
|
iban: function iban(field) {
|
|
419
449
|
return yup.string().test(IBAN_VALIDATOR(field));
|
|
420
450
|
},
|
|
451
|
+
postal_code: function postal_code(field) {
|
|
452
|
+
return yup.string().test(POSTALCODE_VALIDATOR(field));
|
|
453
|
+
},
|
|
421
454
|
mobile_phone: function mobile_phone() {
|
|
422
455
|
return yup.string().test(MOBILE_PHONE_VALIDATOR);
|
|
423
456
|
},
|
package/es/validators.spec.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateUUID4, validateIban } from '@digigov/form/validators';
|
|
1
|
+
import { validateUUID4, validateIban, validatePostalCode } from '@digigov/form/validators';
|
|
2
2
|
it('validates wrong uuid4 for empty value', function () {
|
|
3
3
|
expect(validateUUID4('')).toBe(false);
|
|
4
4
|
});
|
|
@@ -31,4 +31,16 @@ it('validates wrong iban for non existing country code', function () {
|
|
|
31
31
|
});
|
|
32
32
|
it('validates correct greek iban whithout country code', function () {
|
|
33
33
|
expect(validateIban('7801100800000008009825202', '')).toBe(true);
|
|
34
|
+
});
|
|
35
|
+
it('validates wrong postal code without country code', function () {
|
|
36
|
+
expect(validatePostalCode('123', [])).toBe(true);
|
|
37
|
+
});
|
|
38
|
+
it('validates wrong postal code with wrong country code', function () {
|
|
39
|
+
expect(validatePostalCode('123', ['FR'])).toBe(true);
|
|
40
|
+
});
|
|
41
|
+
it('validates wrong postal code with greek country code', function () {
|
|
42
|
+
expect(validatePostalCode('123', ['GR'])).toBe(false);
|
|
43
|
+
});
|
|
44
|
+
it('validates postal code with greek country code', function () {
|
|
45
|
+
expect(validatePostalCode('11143', ['GR'])).toBe(true);
|
|
34
46
|
});
|
package/esm/Questions/index.mdx
CHANGED
|
@@ -10,8 +10,6 @@ import Questions, {
|
|
|
10
10
|
StepTitle,
|
|
11
11
|
} from '@digigov/form/Questions';
|
|
12
12
|
import { Field } from '@digigov/form';
|
|
13
|
-
import PropsDoc from '@docs-components/propsDoc';
|
|
14
|
-
import StylesDoc from '@docs-components/stylesDoc';
|
|
15
13
|
const steps = [
|
|
16
14
|
{
|
|
17
15
|
name: 'intro',
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** @license Digigov v0.6.
|
|
1
|
+
/** @license Digigov v0.6.6
|
|
2
2
|
*
|
|
3
|
-
* This source code is licensed under the
|
|
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.
|
|
5
5
|
*/
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
@@ -24,7 +24,7 @@ export var FormContext = /*#__PURE__*/createContext({
|
|
|
24
24
|
fieldsMap: {},
|
|
25
25
|
fieldsetsMap: {}
|
|
26
26
|
});
|
|
27
|
-
export var FormBase = function FormBase(_ref) {
|
|
27
|
+
export var FormBase = /*#__PURE__*/React.forwardRef(function FormBase(_ref, ref) {
|
|
28
28
|
var onSubmit = _ref.onSubmit,
|
|
29
29
|
children = _ref.children,
|
|
30
30
|
registerField = _ref.registerField,
|
|
@@ -69,15 +69,16 @@ export var FormBase = function FormBase(_ref) {
|
|
|
69
69
|
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
70
70
|
value: ctx
|
|
71
71
|
}, /*#__PURE__*/React.createElement("form", _extends({
|
|
72
|
-
onSubmit: form.handleSubmit(handleSubmit)
|
|
72
|
+
onSubmit: form.handleSubmit(handleSubmit),
|
|
73
|
+
ref: ref
|
|
73
74
|
}, props), /*#__PURE__*/React.createElement(Grid, {
|
|
74
75
|
container: true
|
|
75
76
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
76
77
|
item: true,
|
|
77
78
|
xs: 12
|
|
78
79
|
}, children))));
|
|
79
|
-
};
|
|
80
|
-
export function FormBuilder(_ref2) {
|
|
80
|
+
});
|
|
81
|
+
export var FormBuilder = /*#__PURE__*/React.forwardRef(function FormBuilder(_ref2, ref) {
|
|
81
82
|
var _ref2$fields = _ref2.fields,
|
|
82
83
|
fields = _ref2$fields === void 0 ? [] : _ref2$fields,
|
|
83
84
|
fieldsets = _ref2.fieldsets,
|
|
@@ -149,10 +150,10 @@ export function FormBuilder(_ref2) {
|
|
|
149
150
|
reValidateMode: reValidateMode,
|
|
150
151
|
mode: mode,
|
|
151
152
|
shouldFocusError: shouldFocusError,
|
|
152
|
-
criteriaMode: criteriaMode
|
|
153
|
-
}, props, {
|
|
153
|
+
criteriaMode: criteriaMode,
|
|
154
154
|
onSubmit: onSubmit,
|
|
155
|
-
componentRegistry: componentRegistry
|
|
156
|
-
|
|
157
|
-
}
|
|
155
|
+
componentRegistry: componentRegistry,
|
|
156
|
+
ref: ref
|
|
157
|
+
}, props), fieldChildren, children);
|
|
158
|
+
});
|
|
158
159
|
export default FormBuilder;
|
package/esm/validators.js
CHANGED
|
@@ -14,6 +14,19 @@ import dayjs from 'dayjs';
|
|
|
14
14
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
15
15
|
dayjs.extend(customParseFormat);
|
|
16
16
|
var DEFAULT_FILE_MAX_SIZE = 10000000;
|
|
17
|
+
export function validatePostalCode(number, countries) {
|
|
18
|
+
if (!countries) {
|
|
19
|
+
return false;
|
|
20
|
+
} else {
|
|
21
|
+
if (countries.length === 1 && countries[0].toUpperCase() === 'GR') {
|
|
22
|
+
// Greek postal code must be 5 digits long and shouldn't start with 0 or 9.
|
|
23
|
+
var CODE_REGEX = /^[12345678][0-9]{4}$/;
|
|
24
|
+
return CODE_REGEX.test(number);
|
|
25
|
+
} else {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
export function validateAFM(afm) {
|
|
18
31
|
if (afm.length !== 9) {
|
|
19
32
|
// "afm should be 9 digits"
|
|
@@ -69,6 +82,23 @@ function validateMobile(value) {
|
|
|
69
82
|
}
|
|
70
83
|
}
|
|
71
84
|
|
|
85
|
+
var POSTALCODE_VALIDATOR = function POSTALCODE_VALIDATOR(field) {
|
|
86
|
+
var _field$extra;
|
|
87
|
+
|
|
88
|
+
var countryCode = field === null || field === void 0 ? void 0 : (_field$extra = field.extra) === null || _field$extra === void 0 ? void 0 : _field$extra.countries;
|
|
89
|
+
return {
|
|
90
|
+
name: 'postal-code-validator',
|
|
91
|
+
message: 'form.error.postalCode',
|
|
92
|
+
test: function test(value) {
|
|
93
|
+
if (!value || value.length === 0) {
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return validatePostalCode(value, countryCode);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
|
|
72
102
|
var MOBILE_PHONE_VALIDATOR = {
|
|
73
103
|
name: 'mobile-phone-validator',
|
|
74
104
|
message: 'form.error.mobile_phone',
|
|
@@ -267,9 +297,9 @@ export function validateIban(value, countryCode) {
|
|
|
267
297
|
}
|
|
268
298
|
|
|
269
299
|
var IBAN_VALIDATOR = function IBAN_VALIDATOR(field) {
|
|
270
|
-
var _field$
|
|
300
|
+
var _field$extra2;
|
|
271
301
|
|
|
272
|
-
var countryCode = field === null || field === void 0 ? void 0 : (_field$
|
|
302
|
+
var countryCode = field === null || field === void 0 ? void 0 : (_field$extra2 = field.extra) === null || _field$extra2 === void 0 ? void 0 : _field$extra2.country;
|
|
273
303
|
return {
|
|
274
304
|
name: 'iban-validator',
|
|
275
305
|
message: 'form.error.iban',
|
|
@@ -418,6 +448,9 @@ var getYUPTypeMap = function getYUPTypeMap() {
|
|
|
418
448
|
iban: function iban(field) {
|
|
419
449
|
return yup.string().test(IBAN_VALIDATOR(field));
|
|
420
450
|
},
|
|
451
|
+
postal_code: function postal_code(field) {
|
|
452
|
+
return yup.string().test(POSTALCODE_VALIDATOR(field));
|
|
453
|
+
},
|
|
421
454
|
mobile_phone: function mobile_phone() {
|
|
422
455
|
return yup.string().test(MOBILE_PHONE_VALIDATOR);
|
|
423
456
|
},
|
package/esm/validators.spec.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateUUID4, validateIban } from '@digigov/form/validators';
|
|
1
|
+
import { validateUUID4, validateIban, validatePostalCode } from '@digigov/form/validators';
|
|
2
2
|
it('validates wrong uuid4 for empty value', function () {
|
|
3
3
|
expect(validateUUID4('')).toBe(false);
|
|
4
4
|
});
|
|
@@ -31,4 +31,16 @@ it('validates wrong iban for non existing country code', function () {
|
|
|
31
31
|
});
|
|
32
32
|
it('validates correct greek iban whithout country code', function () {
|
|
33
33
|
expect(validateIban('7801100800000008009825202', '')).toBe(true);
|
|
34
|
+
});
|
|
35
|
+
it('validates wrong postal code without country code', function () {
|
|
36
|
+
expect(validatePostalCode('123', [])).toBe(true);
|
|
37
|
+
});
|
|
38
|
+
it('validates wrong postal code with wrong country code', function () {
|
|
39
|
+
expect(validatePostalCode('123', ['FR'])).toBe(true);
|
|
40
|
+
});
|
|
41
|
+
it('validates wrong postal code with greek country code', function () {
|
|
42
|
+
expect(validatePostalCode('123', ['GR'])).toBe(false);
|
|
43
|
+
});
|
|
44
|
+
it('validates postal code with greek country code', function () {
|
|
45
|
+
expect(validatePostalCode('11143', ['GR'])).toBe(true);
|
|
34
46
|
});
|
package/index.js
CHANGED
|
@@ -12,9 +12,7 @@ var _exportNames = {
|
|
|
12
12
|
FormBase: true,
|
|
13
13
|
FormBuilder: true
|
|
14
14
|
};
|
|
15
|
-
exports.FormBase = void 0;
|
|
16
|
-
exports.FormBuilder = FormBuilder;
|
|
17
|
-
exports["default"] = exports.FormContext = void 0;
|
|
15
|
+
exports["default"] = exports.FormContext = exports.FormBuilder = exports.FormBase = void 0;
|
|
18
16
|
|
|
19
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
20
18
|
|
|
@@ -74,7 +72,7 @@ var FormContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
74
72
|
});
|
|
75
73
|
exports.FormContext = FormContext;
|
|
76
74
|
|
|
77
|
-
var FormBase = function FormBase(_ref) {
|
|
75
|
+
var FormBase = /*#__PURE__*/_react["default"].forwardRef(function FormBase(_ref, ref) {
|
|
78
76
|
var onSubmit = _ref.onSubmit,
|
|
79
77
|
children = _ref.children,
|
|
80
78
|
registerField = _ref.registerField,
|
|
@@ -118,18 +116,19 @@ var FormBase = function FormBase(_ref) {
|
|
|
118
116
|
return /*#__PURE__*/_react["default"].createElement(FormContext.Provider, {
|
|
119
117
|
value: ctx
|
|
120
118
|
}, /*#__PURE__*/_react["default"].createElement("form", (0, _extends4["default"])({
|
|
121
|
-
onSubmit: form.handleSubmit(handleSubmit)
|
|
119
|
+
onSubmit: form.handleSubmit(handleSubmit),
|
|
120
|
+
ref: ref
|
|
122
121
|
}, props), /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
123
122
|
container: true
|
|
124
123
|
}, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
125
124
|
item: true,
|
|
126
125
|
xs: 12
|
|
127
126
|
}, children))));
|
|
128
|
-
};
|
|
127
|
+
});
|
|
129
128
|
|
|
130
129
|
exports.FormBase = FormBase;
|
|
131
130
|
|
|
132
|
-
function FormBuilder(_ref2) {
|
|
131
|
+
var FormBuilder = /*#__PURE__*/_react["default"].forwardRef(function FormBuilder(_ref2, ref) {
|
|
133
132
|
var _ref2$fields = _ref2.fields,
|
|
134
133
|
fields = _ref2$fields === void 0 ? [] : _ref2$fields,
|
|
135
134
|
fieldsets = _ref2.fieldsets,
|
|
@@ -200,12 +199,13 @@ function FormBuilder(_ref2) {
|
|
|
200
199
|
reValidateMode: reValidateMode,
|
|
201
200
|
mode: mode,
|
|
202
201
|
shouldFocusError: shouldFocusError,
|
|
203
|
-
criteriaMode: criteriaMode
|
|
204
|
-
}, props, {
|
|
202
|
+
criteriaMode: criteriaMode,
|
|
205
203
|
onSubmit: onSubmit,
|
|
206
|
-
componentRegistry: componentRegistry
|
|
207
|
-
|
|
208
|
-
}
|
|
204
|
+
componentRegistry: componentRegistry,
|
|
205
|
+
ref: ref
|
|
206
|
+
}, props), fieldChildren, children);
|
|
207
|
+
});
|
|
209
208
|
|
|
209
|
+
exports.FormBuilder = FormBuilder;
|
|
210
210
|
var _default = FormBuilder;
|
|
211
211
|
exports["default"] = _default;
|
package/libs/form/src/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface FieldCondition {
|
|
|
19
19
|
}
|
|
20
20
|
export interface FieldSpec {
|
|
21
21
|
key: string;
|
|
22
|
-
type?: 'int' | 'string' | 'boolean' | 'choice:multiple' | 'choice:single' | 'mobile_phone' | 'afm';
|
|
22
|
+
type?: 'int' | 'string' | 'boolean' | 'choice:multiple' | 'choice:single' | 'mobile_phone' | 'afm' | 'iban' | 'postal_code';
|
|
23
23
|
component?: any;
|
|
24
24
|
condition?: Record<string, FieldCondition>;
|
|
25
25
|
controlled?: boolean;
|
|
@@ -69,6 +69,6 @@ interface FormBaseProps extends Omit<FormBuilderProps, 'fields' | 'fieldsets' |
|
|
|
69
69
|
registerField: (field: FieldSpec) => void;
|
|
70
70
|
resolver: any;
|
|
71
71
|
}
|
|
72
|
-
export declare const FormBase: React.
|
|
73
|
-
export declare
|
|
72
|
+
export declare const FormBase: React.ForwardRefExoticComponent<FormBaseProps & React.RefAttributes<HTMLFormElement>>;
|
|
73
|
+
export declare const FormBuilder: React.ForwardRefExoticComponent<FormBuilderProps & React.RefAttributes<HTMLFormElement>>;
|
|
74
74
|
export default FormBuilder;
|
|
@@ -2,6 +2,7 @@ import * as yup from 'yup';
|
|
|
2
2
|
import { FieldSpec } from '@digigov/form';
|
|
3
3
|
import { MutableRefObject } from 'react';
|
|
4
4
|
export declare type ValidatorSchema = yup.BaseTestOptions;
|
|
5
|
+
export declare function validatePostalCode(number: string, countries: Array<string>): boolean;
|
|
5
6
|
export declare function validateAFM(afm: string): boolean;
|
|
6
7
|
export declare function validateUUID4(uuid4: string): boolean;
|
|
7
8
|
export declare function validateIban(value: string, countryCode: string): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
3
|
+
export interface CopyToClipboardProps extends DivElementAttributes {
|
|
4
|
+
text: string;
|
|
5
|
+
variant?: 'tooltip' | 'banner';
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CopyToClipboard: React.ForwardRefExoticComponent<Pick<CopyToClipboardProps, "message" | "className" | "style" | "slot" | "title" | "text" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export default CopyToClipboard;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type DivElementAttributes = JSX.IntrinsicElements['div'];
|
|
3
|
+
export interface PhaseBannerHeaderProps extends DivElementAttributes {
|
|
4
|
+
tag?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PhaseBannerHeader: React.ForwardRefExoticComponent<Pick<PhaseBannerHeaderProps, "className" | "style" | "slot" | "title" | "text" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tag"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default PhaseBannerHeader;
|
|
@@ -4,3 +4,5 @@ export * from '@digigov/ui/app/QrCodeScanner';
|
|
|
4
4
|
export * from '@digigov/ui/app/Header';
|
|
5
5
|
export * from '@digigov/ui/app/i18n';
|
|
6
6
|
export * from '@digigov/ui/app/I18nText';
|
|
7
|
+
export * from '@digigov/ui/app/CopyToClipboard';
|
|
8
|
+
export * from '@digigov/ui/app/PhaseBannerHeader';
|
|
@@ -2,11 +2,16 @@ import React from 'react';
|
|
|
2
2
|
import Accordion from '@digigov/react-core/Accordion';
|
|
3
3
|
import AccordionSection from '@digigov/react-core/AccordionSection';
|
|
4
4
|
import AccordionSectionContent from '@digigov/react-core/AccordionSectionContent';
|
|
5
|
-
import
|
|
5
|
+
import AccordionSectionSummaryHeading from '@digigov/react-core/AccordionSectionSummaryHeading';
|
|
6
|
+
import AccordionSectionSummary from '@digigov/react-core/AccordionSectionSummary';
|
|
6
7
|
import AccordionControls from '@digigov/react-core/AccordionControls';
|
|
7
8
|
import { UseTogglableSectionsReturn } from '@digigov/ui/hooks/useTogglableSections';
|
|
9
|
+
export declare const AccordionSectionHeader: React.ForwardRefExoticComponent<Pick<import("@digigov/react-core/AccordionSectionHeader").AccordionSectionHeaderProps, "className" | "style" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
10
|
export declare const AccordionItemDetails: React.ForwardRefExoticComponent<Pick<import("@digigov/react-core/AccordionSectionContent").AccordionSectionContentProps, "className" | "style" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export declare const AccordionItemSummary:
|
|
11
|
+
export declare const AccordionItemSummary: ({ children, ...props }: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
children: any;
|
|
14
|
+
}) => JSX.Element;
|
|
10
15
|
export declare const AccordionItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<import("@digigov/react-core/AccordionSection").AccordionSectionProps, "className" | "style" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "open"> & React.RefAttributes<HTMLDivElement>>>;
|
|
11
16
|
export interface UseAccordionProps {
|
|
12
17
|
singleOpen?: boolean;
|
|
@@ -14,5 +19,5 @@ export interface UseAccordionProps {
|
|
|
14
19
|
export interface UseAccordionReturn extends UseTogglableSectionsReturn {
|
|
15
20
|
}
|
|
16
21
|
declare const useAccordion: (props: UseAccordionProps) => UseAccordionReturn;
|
|
17
|
-
export { Accordion, AccordionControls, AccordionSection, AccordionSectionContent,
|
|
22
|
+
export { Accordion, AccordionControls, AccordionSection, AccordionSectionContent, AccordionSectionSummary, AccordionSectionSummaryHeading, useAccordion, };
|
|
18
23
|
export default Accordion;
|
|
@@ -3,7 +3,6 @@ import { PhaseBannerProps } from '@digigov/react-core/PhaseBanner';
|
|
|
3
3
|
interface ServiceBadgeProps extends PhaseBannerProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
-
text?: string;
|
|
7
6
|
}
|
|
8
7
|
export declare const ServiceBadge: React.FC<ServiceBadgeProps>;
|
|
9
8
|
export default ServiceBadge;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from '@digigov/react-core/SvgIcon';
|
|
2
|
+
export * from '@digigov/react-core/ArrowIcon';
|
|
3
|
+
export * from '@digigov/react-core/CaretIcon';
|
|
4
|
+
export * from '@digigov/react-core/UncheckIcon';
|
|
5
|
+
export * from '@digigov/react-core/CloseIcon';
|
|
6
|
+
export * from '@digigov/react-core/MoreVertIcon';
|
|
7
|
+
export * from '@digigov/react-core/BurgerIcon';
|
|
8
|
+
import SvgIcon from '@digigov/react-core/SvgIcon';
|
|
9
|
+
export default SvgIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from '@digigov/react-core/TableContainer';
|
|
1
2
|
export * from '@digigov/react-core/Table';
|
|
2
3
|
export * from '@digigov/react-core/TableBody';
|
|
3
4
|
export * from '@digigov/react-core/TableCaption';
|
|
@@ -5,3 +6,4 @@ export * from '@digigov/react-core/TableDataCell';
|
|
|
5
6
|
export * from '@digigov/react-core/TableHead';
|
|
6
7
|
export * from '@digigov/react-core/TableHeadCell';
|
|
7
8
|
export * from '@digigov/react-core/TableRow';
|
|
9
|
+
export * from '@digigov/react-core/TableNoDataRow';
|
|
@@ -19,3 +19,5 @@ export * from '@digigov/ui/core/Tabs';
|
|
|
19
19
|
export * from '@digigov/ui/core/VisuallyHidden';
|
|
20
20
|
export { default as WarningText } from '@digigov/ui/core/WarningText';
|
|
21
21
|
export * from '@digigov/ui/core/PaginationLabel';
|
|
22
|
+
export * from '@digigov/ui/core/SvgIcon';
|
|
23
|
+
export * from '@digigov/ui/core/FileUpload';
|
|
@@ -15,6 +15,8 @@ declare const _default: {
|
|
|
15
15
|
file_size: string;
|
|
16
16
|
mobile_phone: string;
|
|
17
17
|
uuid4: string;
|
|
18
|
+
iban: string;
|
|
19
|
+
postalCode: string;
|
|
18
20
|
date: {
|
|
19
21
|
invalid: string;
|
|
20
22
|
earlier_than: string;
|
|
@@ -65,5 +67,8 @@ declare const _default: {
|
|
|
65
67
|
change_file: string;
|
|
66
68
|
no_file: string;
|
|
67
69
|
};
|
|
70
|
+
'copy-to-clipboard': {
|
|
71
|
+
message: string;
|
|
72
|
+
};
|
|
68
73
|
};
|
|
69
74
|
export default _default;
|