@digigov/form 0.4.7 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/Field/index.js +2 -2
  3. package/Questions/Step/index.js +1 -0
  4. package/es/Field/index.js +2 -2
  5. package/es/Questions/Step/index.js +2 -0
  6. package/es/index.js +2 -0
  7. package/es/index.mdx +0 -3
  8. package/es/inputs/Checkboxes/index.js +7 -1
  9. package/es/inputs/FileInput/index.js +1 -0
  10. package/es/inputs/Input/index.js +5 -2
  11. package/es/utils.js +1 -0
  12. package/es/validators.js +4 -4
  13. package/esm/Field/index.js +2 -2
  14. package/esm/Questions/Step/index.js +2 -0
  15. package/esm/index.js +3 -1
  16. package/esm/index.mdx +0 -3
  17. package/esm/inputs/Checkboxes/index.js +7 -1
  18. package/esm/inputs/FileInput/index.js +1 -0
  19. package/esm/inputs/Input/index.js +5 -2
  20. package/esm/utils.js +1 -0
  21. package/esm/validators.js +4 -4
  22. package/index.js +1 -0
  23. package/index.mdx +0 -3
  24. package/inputs/Checkboxes/index.js +7 -1
  25. package/inputs/FileInput/index.js +1 -0
  26. package/inputs/Input/index.js +5 -2
  27. package/libs/form/src/Field/index.d.ts +7 -6
  28. package/libs/form/src/Fieldset/index.d.ts +9 -3
  29. package/libs/form/src/inputs/Checkboxes/index.d.ts +2 -1
  30. package/libs/form/src/validators.d.ts +4 -2
  31. package/libs/ui/src/core/Accordion/index.d.ts +3 -3
  32. package/libs/ui/src/core/Blockquote/index.d.ts +1 -1
  33. package/libs/ui/src/core/Button/BackButton.d.ts +1 -1
  34. package/libs/ui/src/core/Button/ButtonLink.d.ts +1 -1
  35. package/libs/ui/src/core/Button/index.d.ts +2 -1
  36. package/libs/ui/src/core/Link/index.d.ts +3 -8
  37. package/libs/ui/src/core/NavList/NavList.d.ts +1 -1
  38. package/libs/ui/src/core/NavList/NavListItemBase.d.ts +1 -1
  39. package/libs/ui/src/core/NotificationBanner/index.d.ts +9 -8
  40. package/libs/ui/src/core/ServiceBadge/index.d.ts +1 -0
  41. package/libs/ui/src/typography/Caption.d.ts +1 -1
  42. package/libs-ui/react-core/src/Accordion/index.d.ts +1 -1
  43. package/libs-ui/react-core/src/AccordionControls/index.d.ts +1 -1
  44. package/libs-ui/react-core/src/AccordionSection/index.d.ts +1 -1
  45. package/libs-ui/react-core/src/AccordionSectionContent/index.d.ts +1 -1
  46. package/libs-ui/react-core/src/AccordionSectionHeader/index.d.ts +1 -1
  47. package/libs-ui/react-core/src/BackLink/index.d.ts +1 -1
  48. package/libs-ui/react-core/src/Blockquote/index.d.ts +1 -1
  49. package/libs-ui/react-core/src/Button/index.d.ts +1 -1
  50. package/libs-ui/react-core/src/ButtonGroup/index.d.ts +9 -0
  51. package/libs-ui/react-core/src/ButtonLink/index.d.ts +1 -1
  52. package/libs-ui/react-core/src/CallToAction/index.d.ts +1 -1
  53. package/libs-ui/react-core/src/Checkbox/index.d.ts +1 -1
  54. package/libs-ui/react-core/src/CheckboxItem/index.d.ts +1 -1
  55. package/libs-ui/react-core/src/Details/index.d.ts +1 -1
  56. package/libs-ui/react-core/src/DetailsContent/index.d.ts +1 -1
  57. package/libs-ui/react-core/src/DetailsSummary/index.d.ts +1 -1
  58. package/libs-ui/react-core/src/ErrorMessage/index.d.ts +1 -1
  59. package/libs-ui/react-core/src/ErrorSummary/index.d.ts +1 -1
  60. package/libs-ui/react-core/src/Field/index.d.ts +1 -1
  61. package/libs-ui/react-core/src/Fieldset/index.d.ts +1 -1
  62. package/libs-ui/react-core/src/FieldsetLegend/index.d.ts +1 -1
  63. package/libs-ui/react-core/src/FileUpload/index.d.ts +1 -1
  64. package/libs-ui/react-core/src/Heading/index.d.ts +1 -1
  65. package/libs-ui/react-core/src/HeadingCaption/index.d.ts +1 -1
  66. package/libs-ui/react-core/src/Hint/index.d.ts +1 -1
  67. package/libs-ui/react-core/src/Label/index.d.ts +1 -1
  68. package/libs-ui/react-core/src/LabelTitle/index.d.ts +1 -1
  69. package/libs-ui/react-core/src/Link/index.d.ts +14 -0
  70. package/libs-ui/react-core/src/List/index.d.ts +1 -1
  71. package/libs-ui/react-core/src/ListItem/index.d.ts +1 -1
  72. package/libs-ui/react-core/src/NormalText/index.d.ts +1 -1
  73. package/libs-ui/react-core/src/NotificationBanner/index.d.ts +1 -1
  74. package/libs-ui/react-core/src/NotificationBannerContent/index.d.ts +1 -1
  75. package/libs-ui/react-core/src/NotificationBannerHeader/index.d.ts +1 -1
  76. package/libs-ui/react-core/src/NotificationBannerHeading/index.d.ts +1 -1
  77. package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +15 -0
  78. package/libs-ui/react-core/src/Paragraph/index.d.ts +1 -1
  79. package/libs-ui/react-core/src/PhaseBanner/index.d.ts +1 -1
  80. package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +1 -1
  81. package/libs-ui/react-core/src/PhaseBannerText/index.d.ts +11 -0
  82. package/libs-ui/react-core/src/Radio/index.d.ts +1 -1
  83. package/libs-ui/react-core/src/RadioItem/index.d.ts +1 -1
  84. package/libs-ui/react-core/src/SectionBreak/index.d.ts +1 -1
  85. package/libs-ui/react-core/src/Select/index.d.ts +1 -1
  86. package/libs-ui/react-core/src/SelectOption/index.d.ts +1 -1
  87. package/libs-ui/react-core/src/SummaryList/index.d.ts +1 -1
  88. package/libs-ui/react-core/src/SummaryListItem/index.d.ts +1 -1
  89. package/libs-ui/react-core/src/SummaryListItemAction/index.d.ts +1 -1
  90. package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +1 -1
  91. package/libs-ui/react-core/src/SummaryListItemValue/index.d.ts +1 -1
  92. package/libs-ui/react-core/src/Tabs/index.d.ts +1 -1
  93. package/libs-ui/react-core/src/TabsHeading/index.d.ts +1 -1
  94. package/libs-ui/react-core/src/TabsList/index.d.ts +1 -1
  95. package/libs-ui/react-core/src/TabsListItem/index.d.ts +1 -1
  96. package/libs-ui/react-core/src/TabsPanel/index.d.ts +1 -1
  97. package/libs-ui/react-core/src/TextArea/index.d.ts +1 -1
  98. package/libs-ui/react-core/src/TextInput/index.d.ts +1 -1
  99. package/libs-ui/react-core/src/WarningText/index.d.ts +1 -1
  100. package/package.json +2 -2
  101. package/utils.js +1 -0
  102. package/validators.js +4 -4
package/CHANGELOG.md CHANGED
@@ -1,6 +1,30 @@
1
1
  # Change Log - @digigov/form
2
2
 
3
- This log was last generated on Wed, 02 Feb 2022 15:44:29 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 14 Feb 2022 09:56:29 GMT and should not be manually modified.
4
+
5
+ ## 0.4.11
6
+ Mon, 14 Feb 2022 09:56:29 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 0.4.10
11
+ Thu, 10 Feb 2022 13:45:56 GMT
12
+
13
+ ### Patches
14
+
15
+ - pin down dependency versions
16
+
17
+ ## 0.4.9
18
+ Tue, 08 Feb 2022 15:21:11 GMT
19
+
20
+ ### Patches
21
+
22
+ - fix linting errors in @digigov/form
23
+
24
+ ## 0.4.8
25
+ Thu, 03 Feb 2022 15:47:05 GMT
26
+
27
+ _Version update only_
4
28
 
5
29
  ## 0.4.7
6
30
  Wed, 02 Feb 2022 15:44:29 GMT
package/Field/index.js CHANGED
@@ -64,12 +64,12 @@ var FIELD_COMPONENTS = {
64
64
  component: _FileInput["default"]
65
65
  },
66
66
  'choice:multiple': {
67
- wrapper: "fieldset",
67
+ wrapper: 'fieldset',
68
68
  controlled: true,
69
69
  component: _Checkboxes["default"]
70
70
  },
71
71
  'choice:single': {
72
- wrapper: "fieldset",
72
+ wrapper: 'fieldset',
73
73
  controlled: false,
74
74
  component: _Radio["default"]
75
75
  }
@@ -111,6 +111,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
111
111
 
112
112
  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; }
113
113
 
114
+ /* eslint-disable @typescript-eslint/no-explicit-any */
114
115
  var StepContext = /*#__PURE__*/(0, _react.createContext)({
115
116
  name: '',
116
117
  fields: [],
package/es/Field/index.js CHANGED
@@ -29,12 +29,12 @@ var FIELD_COMPONENTS = {
29
29
  component: FileInput
30
30
  },
31
31
  'choice:multiple': {
32
- wrapper: "fieldset",
32
+ wrapper: 'fieldset',
33
33
  controlled: true,
34
34
  component: Checkboxes
35
35
  },
36
36
  'choice:single': {
37
- wrapper: "fieldset",
37
+ wrapper: 'fieldset',
38
38
  controlled: false,
39
39
  component: Radio
40
40
  }
@@ -1,6 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
6
  import React, { createContext, useContext, useState } from 'react';
5
7
  import { QuestionsContext } from '@digigov/form/Questions/';
6
8
  import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
package/es/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
+
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
6
  import React, { createContext, useCallback, useRef } from 'react';
5
7
  import { useForm } from 'react-hook-form';
6
8
  import { yupResolver } from '@digigov/form/utils';
package/es/index.mdx CHANGED
@@ -3,10 +3,7 @@ title: Form
3
3
  parent: docs/ui/components
4
4
  ---
5
5
 
6
- import { useState, useEffect } from 'react';
7
6
  import FormBuilder from '@digigov/form/';
8
- import PropsDoc from '@docs-components/propsDoc';
9
- import StylesDoc from '@docs-components/stylesDoc';
10
7
 
11
8
  export const fields = [
12
9
  {
@@ -20,8 +20,12 @@ var Checkboxes = function Checkboxes(_ref) {
20
20
  var newValue;
21
21
 
22
22
  if (evt.currentTarget.checked) {
23
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
+ // @ts-ignore
23
25
  newValue = value.concat([optionValue]);
24
26
  } else {
27
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
28
+ // @ts-ignore
25
29
  newValue = value.filter(function (val) {
26
30
  return val !== optionValue;
27
31
  });
@@ -40,7 +44,9 @@ var Checkboxes = function Checkboxes(_ref) {
40
44
  return /*#__PURE__*/React.createElement(CheckboxItem, _extends({
41
45
  name: name,
42
46
  disabled: disabled,
43
- key: key,
47
+ key: key // eslint-disable-next-line @typescript-eslint/ban-ts-comment
48
+ // @ts-ignore
49
+ ,
44
50
  checked: value.includes(option.value),
45
51
  onChange: handleChange(option.value)
46
52
  }, option), option.label && option.label.primary && t(option.label.primary) || value, option.label && option.label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(option.label.secondary)));
@@ -2,6 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useState } from 'react';
3
3
  import NormalText from '@digigov/react-core/NormalText';
4
4
  import FileUpload from '@digigov/react-core/FileUpload';
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
6
  var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
6
7
  var name = _ref.name,
7
8
  _ref$extra = _ref.extra,
@@ -19,8 +19,10 @@ var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
19
19
  var _ref2 = extra || {},
20
20
  _ref2$multiline = _ref2.multiline,
21
21
  multiline = _ref2$multiline === void 0 ? false : _ref2$multiline,
22
- rows = _ref2.rows,
23
- className = _ref2.className; // if enforced to multiline use true. Derive from type otherwise.
22
+ rows = _ref2.rows;
23
+
24
+ var _ref3 = extra || {},
25
+ className = _ref3.className; // if enforced to multiline use true. Derive from type otherwise.
24
26
 
25
27
 
26
28
  multiline = multiline === true || type === 'text'; // use explicit rows value if set. Derive from multiline otherwise.
@@ -40,6 +42,7 @@ var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
40
42
  return /*#__PURE__*/React.createElement(TextInput, _extends({
41
43
  name: name,
42
44
  type: fieldType,
45
+ className: className,
43
46
  ref: ref
44
47
  }, props));
45
48
  }
package/es/utils.js CHANGED
@@ -4,6 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
5
5
  import _extends from "@babel/runtime/helpers/extends";
6
6
 
7
+ /* eslint-disable @typescript-eslint/no-explicit-any */
7
8
  var parseErrorSchema = function parseErrorSchema(error, validateAllFieldCriteria) {
8
9
  return Array.isArray(error.inner) && error.inner.length ? error.inner.reduce(function (previous, _ref) {
9
10
  var path = _ref.path,
package/es/validators.js CHANGED
@@ -366,7 +366,8 @@ function computeShape(fields, yupTypeMap, validatorRegistry) {
366
366
  return fieldSchemas;
367
367
  }
368
368
 
369
- function getYupObjectShape(fields, yupTypeMap, validatorRegistry) {
369
+ function getYupObjectShape( // eslint-disable-next-line @typescript-eslint/no-explicit-any
370
+ fields, yupTypeMap, validatorRegistry) {
370
371
  if (!fields.current) {
371
372
  var fieldSchemas = computeShape(fields, yupTypeMap, validatorRegistry);
372
373
  return yup.object().shape(fieldSchemas);
@@ -407,7 +408,6 @@ var getYUPTypeMap = function getYUPTypeMap() {
407
408
  iban: function iban(field) {
408
409
  return yup.string().test(IBAN_VALIDATOR(field));
409
410
  },
410
- // eslint-disable-next-line @typescript-eslint/camelcase
411
411
  mobile_phone: function mobile_phone() {
412
412
  return yup.string().test(MOBILE_PHONE_VALIDATOR);
413
413
  },
@@ -419,9 +419,9 @@ var getYUPTypeMap = function getYUPTypeMap() {
419
419
  }
420
420
  };
421
421
  return yupTypeMap;
422
- }; // Create a yup validation schema from given fields input
423
-
422
+ };
424
423
 
424
+ // Create a yup validation schema from given fields input
425
425
  export function useValidationSchema(fields, validatorRegistry) {
426
426
  return useMemo(function () {
427
427
  var yupTypeMap = getYUPTypeMap();
@@ -29,12 +29,12 @@ var FIELD_COMPONENTS = {
29
29
  component: FileInput
30
30
  },
31
31
  'choice:multiple': {
32
- wrapper: "fieldset",
32
+ wrapper: 'fieldset',
33
33
  controlled: true,
34
34
  component: Checkboxes
35
35
  },
36
36
  'choice:single': {
37
- wrapper: "fieldset",
37
+ wrapper: 'fieldset',
38
38
  controlled: false,
39
39
  component: Radio
40
40
  }
@@ -1,6 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
6
  import React, { createContext, useContext, useState } from 'react';
5
7
  import { QuestionsContext } from '@digigov/form/Questions/';
6
8
  import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.4.7
1
+ /** @license Digigov v0.4.11
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -6,6 +6,8 @@
6
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  import _extends from "@babel/runtime/helpers/extends";
8
8
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
9
+
10
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9
11
  import React, { createContext, useCallback, useRef } from 'react';
10
12
  import { useForm } from 'react-hook-form';
11
13
  import { yupResolver } from '@digigov/form/utils';
package/esm/index.mdx CHANGED
@@ -3,10 +3,7 @@ title: Form
3
3
  parent: docs/ui/components
4
4
  ---
5
5
 
6
- import { useState, useEffect } from 'react';
7
6
  import FormBuilder from '@digigov/form/';
8
- import PropsDoc from '@docs-components/propsDoc';
9
- import StylesDoc from '@docs-components/stylesDoc';
10
7
 
11
8
  export const fields = [
12
9
  {
@@ -20,8 +20,12 @@ var Checkboxes = function Checkboxes(_ref) {
20
20
  var newValue;
21
21
 
22
22
  if (evt.currentTarget.checked) {
23
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
+ // @ts-ignore
23
25
  newValue = value.concat([optionValue]);
24
26
  } else {
27
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
28
+ // @ts-ignore
25
29
  newValue = value.filter(function (val) {
26
30
  return val !== optionValue;
27
31
  });
@@ -40,7 +44,9 @@ var Checkboxes = function Checkboxes(_ref) {
40
44
  return /*#__PURE__*/React.createElement(CheckboxItem, _extends({
41
45
  name: name,
42
46
  disabled: disabled,
43
- key: key,
47
+ key: key // eslint-disable-next-line @typescript-eslint/ban-ts-comment
48
+ // @ts-ignore
49
+ ,
44
50
  checked: value.includes(option.value),
45
51
  onChange: handleChange(option.value)
46
52
  }, option), option.label && option.label.primary && t(option.label.primary) || value, option.label && option.label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(option.label.secondary)));
@@ -2,6 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useState } from 'react';
3
3
  import NormalText from '@digigov/react-core/NormalText';
4
4
  import FileUpload from '@digigov/react-core/FileUpload';
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
6
  var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
6
7
  var name = _ref.name,
7
8
  _ref$extra = _ref.extra,
@@ -19,8 +19,10 @@ var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
19
19
  var _ref2 = extra || {},
20
20
  _ref2$multiline = _ref2.multiline,
21
21
  multiline = _ref2$multiline === void 0 ? false : _ref2$multiline,
22
- rows = _ref2.rows,
23
- className = _ref2.className; // if enforced to multiline use true. Derive from type otherwise.
22
+ rows = _ref2.rows;
23
+
24
+ var _ref3 = extra || {},
25
+ className = _ref3.className; // if enforced to multiline use true. Derive from type otherwise.
24
26
 
25
27
 
26
28
  multiline = multiline === true || type === 'text'; // use explicit rows value if set. Derive from multiline otherwise.
@@ -40,6 +42,7 @@ var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
40
42
  return /*#__PURE__*/React.createElement(TextInput, _extends({
41
43
  name: name,
42
44
  type: fieldType,
45
+ className: className,
43
46
  ref: ref
44
47
  }, props));
45
48
  }
package/esm/utils.js CHANGED
@@ -4,6 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
5
5
  import _extends from "@babel/runtime/helpers/extends";
6
6
 
7
+ /* eslint-disable @typescript-eslint/no-explicit-any */
7
8
  var parseErrorSchema = function parseErrorSchema(error, validateAllFieldCriteria) {
8
9
  return Array.isArray(error.inner) && error.inner.length ? error.inner.reduce(function (previous, _ref) {
9
10
  var path = _ref.path,
package/esm/validators.js CHANGED
@@ -366,7 +366,8 @@ function computeShape(fields, yupTypeMap, validatorRegistry) {
366
366
  return fieldSchemas;
367
367
  }
368
368
 
369
- function getYupObjectShape(fields, yupTypeMap, validatorRegistry) {
369
+ function getYupObjectShape( // eslint-disable-next-line @typescript-eslint/no-explicit-any
370
+ fields, yupTypeMap, validatorRegistry) {
370
371
  if (!fields.current) {
371
372
  var fieldSchemas = computeShape(fields, yupTypeMap, validatorRegistry);
372
373
  return yup.object().shape(fieldSchemas);
@@ -407,7 +408,6 @@ var getYUPTypeMap = function getYUPTypeMap() {
407
408
  iban: function iban(field) {
408
409
  return yup.string().test(IBAN_VALIDATOR(field));
409
410
  },
410
- // eslint-disable-next-line @typescript-eslint/camelcase
411
411
  mobile_phone: function mobile_phone() {
412
412
  return yup.string().test(MOBILE_PHONE_VALIDATOR);
413
413
  },
@@ -419,9 +419,9 @@ var getYUPTypeMap = function getYUPTypeMap() {
419
419
  }
420
420
  };
421
421
  return yupTypeMap;
422
- }; // Create a yup validation schema from given fields input
423
-
422
+ };
424
423
 
424
+ // Create a yup validation schema from given fields input
425
425
  export function useValidationSchema(fields, validatorRegistry) {
426
426
  return useMemo(function () {
427
427
  var yupTypeMap = getYUPTypeMap();
package/index.js CHANGED
@@ -64,6 +64,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
64
64
 
65
65
  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; }
66
66
 
67
+ /* eslint-disable @typescript-eslint/no-explicit-any */
67
68
  var FormContext = /*#__PURE__*/(0, _react.createContext)({
68
69
  fieldsMap: {},
69
70
  fieldsetsMap: {}
package/index.mdx CHANGED
@@ -3,10 +3,7 @@ title: Form
3
3
  parent: docs/ui/components
4
4
  ---
5
5
 
6
- import { useState, useEffect } from 'react';
7
6
  import FormBuilder from '@digigov/form/';
8
- import PropsDoc from '@docs-components/propsDoc';
9
- import StylesDoc from '@docs-components/stylesDoc';
10
7
 
11
8
  export const fields = [
12
9
  {
@@ -34,8 +34,12 @@ var Checkboxes = function Checkboxes(_ref) {
34
34
  var newValue;
35
35
 
36
36
  if (evt.currentTarget.checked) {
37
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
38
+ // @ts-ignore
37
39
  newValue = value.concat([optionValue]);
38
40
  } else {
41
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
42
+ // @ts-ignore
39
43
  newValue = value.filter(function (val) {
40
44
  return val !== optionValue;
41
45
  });
@@ -54,7 +58,9 @@ var Checkboxes = function Checkboxes(_ref) {
54
58
  return /*#__PURE__*/_react["default"].createElement(_CheckboxItem["default"], (0, _extends2["default"])({
55
59
  name: name,
56
60
  disabled: disabled,
57
- key: key,
61
+ key: key // eslint-disable-next-line @typescript-eslint/ban-ts-comment
62
+ // @ts-ignore
63
+ ,
58
64
  checked: value.includes(option.value),
59
65
  onChange: handleChange(option.value)
60
66
  }, option), option.label && option.label.primary && t(option.label.primary) || value, option.label && option.label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(option.label.secondary)));
@@ -21,6 +21,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  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; }
23
23
 
24
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
25
  var FileInput = /*#__PURE__*/_react["default"].forwardRef(function FileInput(_ref, ref) {
25
26
  var name = _ref.name,
26
27
  _ref$extra = _ref.extra,
@@ -34,8 +34,10 @@ var Input = /*#__PURE__*/_react["default"].forwardRef(function WrappedInput(_ref
34
34
  var _ref2 = extra || {},
35
35
  _ref2$multiline = _ref2.multiline,
36
36
  multiline = _ref2$multiline === void 0 ? false : _ref2$multiline,
37
- rows = _ref2.rows,
38
- className = _ref2.className; // if enforced to multiline use true. Derive from type otherwise.
37
+ rows = _ref2.rows;
38
+
39
+ var _ref3 = extra || {},
40
+ className = _ref3.className; // if enforced to multiline use true. Derive from type otherwise.
39
41
 
40
42
 
41
43
  multiline = multiline === true || type === 'text'; // use explicit rows value if set. Derive from multiline otherwise.
@@ -55,6 +57,7 @@ var Input = /*#__PURE__*/_react["default"].forwardRef(function WrappedInput(_ref
55
57
  return /*#__PURE__*/_react["default"].createElement(_TextInput["default"], (0, _extends2["default"])({
56
58
  name: name,
57
59
  type: fieldType,
60
+ className: className,
58
61
  ref: ref
59
62
  }, props));
60
63
  }
@@ -15,12 +15,13 @@ export interface FieldContainerProps {
15
15
  wrapper?: FieldSpec['wrapper'];
16
16
  }
17
17
  export declare type OmittedFieldSpec = Omit<FieldSpec, 'component'>;
18
+ export declare type UnknownValue = never | never[];
18
19
  export interface ControlledFieldProps {
19
- value: any;
20
- onChange: (v: any) => void;
21
- defaultValue?: any;
20
+ value: UnknownValue;
21
+ onChange: (v: UnknownValue) => void;
22
+ defaultValue?: UnknownValue;
22
23
  onBlur?: (e: Event) => void;
23
- extra?: any;
24
+ extra?: never;
24
25
  error?: boolean;
25
26
  name?: string;
26
27
  disabled?: boolean;
@@ -31,14 +32,14 @@ export interface UncontrolledFieldProps {
31
32
  ref?: FieldBaseProps['register'];
32
33
  control?: FieldBaseProps['control'];
33
34
  error?: boolean;
34
- extra?: Record<string, any>;
35
+ extra?: Record<string, never>;
35
36
  type?: string;
36
37
  disabled?: boolean;
37
38
  }
38
39
  export interface CalculatedField extends OmittedFieldSpec {
39
40
  name: string;
40
41
  component: any;
41
- defaultValue?: any;
42
+ defaultValue?: never;
42
43
  error?: FieldError;
43
44
  wrapper?: FieldComponentItem['wrapper'];
44
45
  }
@@ -1,7 +1,13 @@
1
1
  import React from 'react';
2
- export declare const FieldsetLabel: React.FC<{}>;
3
- export declare const FieldsetCaption: React.FC<{}>;
4
- export declare const FieldsetBody: React.FC<{}>;
2
+ export interface FieldsetLabelProps {
3
+ }
4
+ export interface FieldsetCaptionProps {
5
+ }
6
+ export interface FieldsetBodyProps {
7
+ }
8
+ export declare const FieldsetLabel: React.FC<FieldsetLabelProps>;
9
+ export declare const FieldsetCaption: React.FC<FieldsetCaptionProps>;
10
+ export declare const FieldsetBody: React.FC<FieldsetBodyProps>;
5
11
  export declare const FieldsetWithContext: React.FC<{
6
12
  name: string;
7
13
  }>;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { FieldOptionProps } from '@digigov/form/inputs/Label';
3
3
  import { ControlledFieldProps } from '@digigov/form/Field';
4
- export interface CheckboxesProps extends Omit<ControlledFieldProps, 'extra'> {
4
+ export interface CheckboxesProps extends Omit<ControlledFieldProps, 'extra' | 'value'> {
5
+ value?: string[];
5
6
  extra: {
6
7
  className?: string;
7
8
  options: Array<FieldOptionProps>;
@@ -2,7 +2,9 @@ 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 validateAFM(afm: any): boolean;
5
+ export declare function validateAFM(afm: string): boolean;
6
6
  export declare function validateUUID4(uuid4: string): boolean;
7
7
  export declare function validateIban(value: string, countryCode: string): boolean;
8
- export declare function useValidationSchema(fields: FieldSpec[] | MutableRefObject<{}>, validatorRegistry?: any): Record<string, unknown> | void;
8
+ export interface MutableRefObjectProps {
9
+ }
10
+ export declare function useValidationSchema(fields: FieldSpec[] | MutableRefObject<MutableRefObjectProps>, validatorRegistry?: Record<string, ValidatorSchema>): Record<string, unknown> | void;
@@ -5,9 +5,9 @@ import AccordionSectionHeader from '@digigov/react-core/AccordionSectionHeader';
5
5
  import AccordionControls from '@digigov/react-core/AccordionControls';
6
6
  import { UseTogglableSectionsReturn } from '@digigov/ui/hooks/useTogglableSections';
7
7
  import React from 'react';
8
- export declare const AccordionItemDetails: React.ForwardRefExoticComponent<Pick<import("@digigov/react-core/AccordionSectionContent").AccordionSectionContentProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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: React.ForwardRefExoticComponent<Pick<import("@digigov/react-core/AccordionSectionHeader").AccordionSectionHeaderProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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>>;
10
- export declare const AccordionItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<import("@digigov/react-core/AccordionSection").AccordionSectionProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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>>>;
8
+ 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: 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>>;
10
+ 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
11
  export interface UseAccordionProps {
12
12
  singleOpen?: boolean;
13
13
  }