@inseefr/lunatic 0.4.1-v2 → 0.4.5-v2

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 (130) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +25 -25
  3. package/lib/components/button/button.scss +24 -24
  4. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +6 -3
  5. package/lib/components/checkbox/checkbox-group/checkbox-group.js +6 -6
  6. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +6 -3
  7. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +15 -2
  8. package/lib/components/commons/components/combo-box/combo-box.scss +218 -218
  9. package/lib/components/commons/components/create-lunatic-component/create-lunatic-component.js +10 -10
  10. package/lib/components/commons/components/dragger/dragger.scss +7 -7
  11. package/lib/components/commons/components/errors/errors.js +35 -0
  12. package/lib/components/commons/components/errors/errors.scss +5 -0
  13. package/lib/components/commons/components/errors/index.js +15 -0
  14. package/lib/components/commons/components/fab/fab.scss +32 -32
  15. package/lib/components/commons/components/missing/missing.scss +30 -30
  16. package/lib/components/commons/components/variable-status/variable-status.scss +39 -39
  17. package/lib/components/commons/icons/lunatic-icon.scss +4 -4
  18. package/lib/components/commons/index.js +8 -0
  19. package/lib/components/commons/use-on-handle-change.js +1 -2
  20. package/lib/components/datepicker/datepicker.scss +1 -1
  21. package/lib/components/datepicker/lunatic-datepicker.js +18 -1
  22. package/lib/components/declarations/declarations.scss +36 -36
  23. package/lib/components/dropdown/dropdown.scss +41 -41
  24. package/lib/components/dropdown/lunatic-dropdown.js +6 -3
  25. package/lib/components/index.scss +139 -139
  26. package/lib/components/input/input.scss +31 -31
  27. package/lib/components/input/lunatic-input.js +22 -4
  28. package/lib/components/input-number/lunatic-input-number.js +19 -2
  29. package/lib/components/loop/block-for-loop/block-for-loop.js +6 -1
  30. package/lib/components/loop/loop.js +6 -3
  31. package/lib/components/loop/roster-for-loop/roster-for-loop.js +7 -2
  32. package/lib/components/loop/roster-for-loop/roster.scss +42 -42
  33. package/lib/components/modal-controls/close-or-skip.js +13 -3
  34. package/lib/components/modal-controls/modal-controls.js +1 -2
  35. package/lib/components/modal-controls/modal-controls.scss +63 -63
  36. package/lib/components/pairwise/links/pairwise-links.js +6 -1
  37. package/lib/components/radio/lunatic-radio-group.js +6 -3
  38. package/lib/components/radio/radio.scss +59 -59
  39. package/lib/components/sequence/sequence.scss +10 -10
  40. package/lib/components/suggester/default-style.scss +125 -125
  41. package/lib/components/suggester/find-best-label/find-best-label.js +5 -5
  42. package/lib/components/suggester/lunatic-suggester.js +6 -3
  43. package/lib/components/suggester-loader-widget/widget.scss +176 -176
  44. package/lib/components/switch/switch.scss +47 -47
  45. package/lib/components/table/components/table.scss +26 -26
  46. package/lib/components/table/lunatic-table.js +5 -2
  47. package/lib/components/textarea/lunatic-textarea.js +24 -6
  48. package/lib/components/textarea/textarea.scss +8 -8
  49. package/lib/i18n/build-dictionary.js +16 -16
  50. package/lib/stories/Introduction.stories.mdx +114 -114
  51. package/lib/stories/checkboxOne/source.json +36 -36
  52. package/lib/stories/custom-mui/textarea-mui.js +0 -5
  53. package/lib/stories/dropdown/data.json +16 -16
  54. package/lib/stories/dropdown/source.json +122 -122
  55. package/lib/stories/filter-description/source-options.json +81 -81
  56. package/lib/stories/filter-description/source.json +11 -11
  57. package/lib/stories/input/data.json +5 -5
  58. package/lib/stories/input/source.json +28 -28
  59. package/lib/stories/input-number/input-number.stories.js +35 -0
  60. package/lib/stories/input-number/source.json +37 -0
  61. package/lib/stories/pairwise/block/block.json +3 -3
  62. package/lib/stories/pairwise/links/data.json +12 -12
  63. package/lib/stories/pairwise/links/links.json +141 -141
  64. package/lib/stories/{questionnaires/test → paste-questionnaire}/source.json +6290 -6290
  65. package/lib/stories/{questionnaires/test → paste-questionnaire}/test.stories.js +7 -3
  66. package/lib/stories/questionnaires/logement/data.json +2691 -2691
  67. package/lib/stories/questionnaires/logement/source-sequence.json +34181 -34181
  68. package/lib/stories/questionnaires/logement/source.json +34191 -34191
  69. package/lib/stories/questionnaires/simpsons/source.json +6290 -6290
  70. package/lib/stories/questionnaires-test/V2_DeclarationsSimples.json +848 -0
  71. package/lib/stories/questionnaires-test/V2_MinMaxSum_Boucles.json +509 -0
  72. package/lib/stories/questionnaires-test/V2_QuestSimple_Boucles.json +4091 -0
  73. package/lib/stories/questionnaires-test/V2_TCMRallyeGames.json +2892 -0
  74. package/lib/stories/questionnaires-test/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +490 -0
  75. package/lib/stories/questionnaires-test/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +1957 -0
  76. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees2_PasPageFin.json +709 -0
  77. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees_PasPageFin.json +368 -0
  78. package/lib/stories/{questionnaires → questionnaires-test}/controls/controls.stories.js +9 -6
  79. package/lib/stories/{questionnaires/samples/sample.json → questionnaires-test/test-dylan.json} +430 -430
  80. package/lib/stories/questionnaires-test/test.stories.js +45 -32
  81. package/lib/stories/radio/source.json +36 -36
  82. package/lib/stories/roster-for-loop/source.json +114 -114
  83. package/lib/stories/suggester/source.json +234 -234
  84. package/lib/stories/switch/README.md +31 -31
  85. package/lib/stories/switch/data-forced.json +48 -48
  86. package/lib/stories/switch/data.json +80 -80
  87. package/lib/stories/table/data-roster.json +1 -1
  88. package/lib/stories/table/data.json +1 -1
  89. package/lib/stories/table/source-roster.json +504 -504
  90. package/lib/stories/table/source.json +19 -19
  91. package/lib/stories/utils/custom-lunatic.scss +28 -28
  92. package/lib/stories/utils/default-arg-types.js +1 -1
  93. package/lib/stories/utils/orchestrator.js +38 -14
  94. package/lib/stories/utils/waiting/waiting.scss +21 -21
  95. package/lib/use-lunatic/actions.js +31 -17
  96. package/lib/use-lunatic/commons/create-map-pages.js +10 -10
  97. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +16 -16
  98. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +1 -0
  99. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +21 -21
  100. package/lib/use-lunatic/commons/get-components-from-state.js +9 -2
  101. package/lib/use-lunatic/commons/get-data.js +90 -0
  102. package/lib/use-lunatic/commons/index.js +14 -2
  103. package/lib/use-lunatic/commons/page-tag.js +83 -0
  104. package/lib/use-lunatic/initial-state.js +3 -1
  105. package/lib/use-lunatic/reducer/commons/resize-array-variable.js +7 -7
  106. package/lib/use-lunatic/reducer/reduce-go-next-page.js +62 -37
  107. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +25 -24
  108. package/lib/use-lunatic/reducer/reduce-go-to-page.js +59 -0
  109. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +2 -1
  110. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +19 -16
  111. package/lib/use-lunatic/reducer/reduce-on-init.js +10 -9
  112. package/lib/use-lunatic/reducer/reducer.js +8 -3
  113. package/lib/use-lunatic/reducer/validate-controls/create-controls-reducer.js +59 -0
  114. package/lib/use-lunatic/reducer/validate-controls/create-modal-controls-reducer.js +88 -0
  115. package/lib/use-lunatic/reducer/validate-controls/index.js +11 -3
  116. package/lib/use-lunatic/reducer/validate-controls/validation-utils.js +71 -0
  117. package/lib/use-lunatic/use-lunatic.js +30 -30
  118. package/lib/utils/store-tools/auto-load.js +2 -2
  119. package/lib/utils/suggester-workers/append-to-index/create-append-task.js +2 -2
  120. package/package.json +159 -159
  121. package/lib/index.js.map +0 -1
  122. package/lib/stories/questionnaires/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +0 -452
  123. package/lib/stories/questionnaires/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +0 -1689
  124. package/lib/stories/questionnaires/controls/V2_Controles_BouclesLiees2_PasPageFin.json +0 -775
  125. package/lib/stories/questionnaires/controls/V2_Controles_BouclesLiees_PasPageFin.json +0 -412
  126. package/lib/stories/questionnaires/samples/samples.stories.js +0 -64
  127. package/lib/stories/questionnaires-test/sources.json +0 -203
  128. package/lib/use-lunatic/commons/get-page-tag.js +0 -21
  129. package/lib/use-lunatic/reducer/commons/Insee.code-workspace +0 -47
  130. package/lib/use-lunatic/reducer/validate-controls/create-validate-reducer.js +0 -146
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2019
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,25 +1,25 @@
1
- <img align="right" src="docs/img/lunatic-logo.png" alt="Lunatic logo"/>
2
-
3
- # Lunatic
4
-
5
- Library of questionnaire components
6
-
7
- [![Lunatic CI](https://github.com/InseeFr/Lunatic/actions/workflows/ci.yml/badge.svg)](https://github.com/InseeFr/Lunatic/actions/workflows/ci.yml)
8
- [![npm version](https://badge.fury.io/js/%40inseefr%2Flunatic.svg)](https://badge.fury.io/js/%40inseefr%2Flunatic)
9
- [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=InseeFr_Lunatic&metric=coverage)](https://sonarcloud.io/dashboard?id=InseeFr_Lunatic)
10
- [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=InseeFr_Lunatic&metric=alert_status)](https://sonarcloud.io/dashboard?id=InseeFr_Lunatic)
11
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
12
-
13
- The documentation can be found in the [docs](https://github.com/InseeFr/Lunatic/tree/master/docs) folder and [browsed online](https://inseefr.github.io/Lunatic).
14
-
15
- [Storybook](https://inseefr.github.io/Lunatic/storybook) is also available online.
16
-
17
- [Storybook of the future major release](https://inseefr.github.io/Lunatic/storybook-v2) under construction is also available online.
18
-
19
- ## Usage
20
-
21
- An [example](https://github.com/InseeFr/Lunatic/tree/master/example/orchestrator) of use of Lunatic is available. This simple orchestrator is deployed [online](https://inseefr.github.io/Lunatic/orchestrator).
22
-
23
- ## Editor
24
-
25
- A Lunatic Model / Lunatic [Editor](https://github.com/InseeFr/Lunatic/tree/master/example/lunatic-editor) is avaible [online](https://inseefr.github.io/Lunatic/editor).
1
+ <img align="right" src="docs/img/lunatic-logo.png" alt="Lunatic logo"/>
2
+
3
+ # Lunatic
4
+
5
+ Library of questionnaire components
6
+
7
+ [![Lunatic CI](https://github.com/InseeFr/Lunatic/actions/workflows/ci.yml/badge.svg)](https://github.com/InseeFr/Lunatic/actions/workflows/ci.yml)
8
+ [![npm version](https://badge.fury.io/js/%40inseefr%2Flunatic.svg)](https://badge.fury.io/js/%40inseefr%2Flunatic)
9
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=InseeFr_Lunatic&metric=coverage)](https://sonarcloud.io/dashboard?id=InseeFr_Lunatic)
10
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=InseeFr_Lunatic&metric=alert_status)](https://sonarcloud.io/dashboard?id=InseeFr_Lunatic)
11
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
12
+
13
+ The documentation can be found in the [docs](https://github.com/InseeFr/Lunatic/tree/master/docs) folder and [browsed online](https://inseefr.github.io/Lunatic).
14
+
15
+ [Storybook](https://inseefr.github.io/Lunatic/storybook) is also available online.
16
+
17
+ [Storybook of the future major release](https://inseefr.github.io/Lunatic/storybook-v2) under construction is also available online.
18
+
19
+ ## Usage
20
+
21
+ An [example](https://github.com/InseeFr/Lunatic/tree/master/example/orchestrator) of use of Lunatic is available. This simple orchestrator is deployed [online](https://inseefr.github.io/Lunatic/orchestrator).
22
+
23
+ ## Editor
24
+
25
+ A Lunatic Model / Lunatic [Editor](https://github.com/InseeFr/Lunatic/tree/master/example/lunatic-editor) is avaible [online](https://inseefr.github.io/Lunatic/editor).
@@ -1,24 +1,24 @@
1
- .button-lunatic {
2
- min-width: 20%;
3
- color: white;
4
- border-color: var(--color-primary-dark);
5
- background-color: var(--color-primary-dark);
6
- font-size: 1.2em;
7
- font-weight: bold;
8
- padding: 0.4em;
9
- &:hover,
10
- &:focus:hover {
11
- color: var(--color-primary-dark);
12
- background-color: white;
13
- border-color: var(--color-primary-dark);
14
- }
15
- &:focus {
16
- outline: none;
17
- background-color: var(--color-primary-light);
18
- border-color: var(--color-primary-light);
19
- }
20
- &:disabled {
21
- background: var(--color-disabled);
22
- color: var(--color-primary-dark);
23
- }
24
- }
1
+ .button-lunatic {
2
+ min-width: 20%;
3
+ color: white;
4
+ border-color: var(--color-primary-dark);
5
+ background-color: var(--color-primary-dark);
6
+ font-size: 1.2em;
7
+ font-weight: bold;
8
+ padding: 0.4em;
9
+ &:hover,
10
+ &:focus:hover {
11
+ color: var(--color-primary-dark);
12
+ background-color: white;
13
+ border-color: var(--color-primary-dark);
14
+ }
15
+ &:focus {
16
+ outline: none;
17
+ background-color: var(--color-primary-light);
18
+ border-color: var(--color-primary-light);
19
+ }
20
+ &:disabled {
21
+ background: var(--color-disabled);
22
+ color: var(--color-primary-dark);
23
+ }
24
+ }
@@ -19,15 +19,18 @@ function LunaticCheckboxBoolean(_ref) {
19
19
  options = _ref.options,
20
20
  disabled = _ref.disabled,
21
21
  onChange = _ref.onChange,
22
- custom = _ref.custom;
23
- return /*#__PURE__*/_react["default"].createElement(_checkboxBoolean["default"], {
22
+ custom = _ref.custom,
23
+ errors = _ref.errors;
24
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_checkboxBoolean["default"], {
24
25
  id: id,
25
26
  options: options,
26
27
  checked: value,
27
28
  onClick: onChange,
28
29
  disabled: disabled,
29
30
  custom: custom
30
- });
31
+ }), /*#__PURE__*/_react["default"].createElement(_commons.Errors, {
32
+ errors: errors
33
+ }));
31
34
  }
32
35
 
33
36
  LunaticCheckboxBoolean.defaultProps = {
@@ -7,9 +7,9 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _commons = require("../commons");
10
+ var _commons = require("../../commons");
11
11
 
12
- var _commons2 = require("../../commons");
12
+ var _commons2 = require("../commons");
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
15
 
@@ -24,7 +24,7 @@ function CheckBoxOptionWrapper(_ref) {
24
24
  handleChange = _ref.handleChange,
25
25
  response = _ref.response;
26
26
  var booleanValue = value || false;
27
- var onClickOption = (0, _commons2.useOnHandleChange)({
27
+ var onClickOption = (0, _commons.useOnHandleChange)({
28
28
  handleChange: handleChange,
29
29
  response: response,
30
30
  value: booleanValue
@@ -35,7 +35,7 @@ function CheckBoxOptionWrapper(_ref) {
35
35
  // [handleChange, response]
36
36
  // );
37
37
 
38
- return /*#__PURE__*/_react["default"].createElement(_commons.CheckboxOption, {
38
+ return /*#__PURE__*/_react["default"].createElement(_commons2.CheckboxOption, {
39
39
  id: checkboxId,
40
40
  labelledBy: labelId,
41
41
  checked: checked,
@@ -70,7 +70,7 @@ function CheckboxGroup(_ref3) {
70
70
  var labelId = "lunatic-checkbox-label-".concat(id, "-").concat(name);
71
71
  return /*#__PURE__*/_react["default"].createElement(CheckboxGroupContainer, {
72
72
  key: checkboxId
73
- }, /*#__PURE__*/_react["default"].createElement(_commons2.Label, {
73
+ }, /*#__PURE__*/_react["default"].createElement(_commons.Label, {
74
74
  id: labelId,
75
75
  htmlFor: checkboxId
76
76
  }, label), /*#__PURE__*/_react["default"].createElement(CheckBoxOptionWrapper, {
@@ -89,6 +89,6 @@ function CheckboxGroup(_ref3) {
89
89
  });
90
90
  }
91
91
 
92
- var _default = (0, _commons2.createCustomizableLunaticField)(CheckboxGroup);
92
+ var _default = (0, _commons.createCustomizableLunaticField)(CheckboxGroup);
93
93
 
94
94
  exports["default"] = _default;
@@ -18,14 +18,17 @@ function LunaticCheckboxGroup(_ref) {
18
18
  value = _ref.value,
19
19
  responses = _ref.responses,
20
20
  custom = _ref.custom,
21
- handleChange = _ref.handleChange;
22
- return /*#__PURE__*/_react["default"].createElement(_checkboxGroup["default"], {
21
+ handleChange = _ref.handleChange,
22
+ errors = _ref.errors;
23
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_checkboxGroup["default"], {
23
24
  id: id,
24
25
  options: responses,
25
26
  value: value,
26
27
  handleChange: handleChange,
27
28
  custom: custom
28
- });
29
+ }), /*#__PURE__*/_react["default"].createElement(_commons.Errors, {
30
+ errors: errors
31
+ }));
29
32
  }
30
33
 
31
34
  var _default = (0, _commons.createLunaticComponent)(LunaticCheckboxGroup, {
@@ -9,13 +9,26 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _radio = _interopRequireDefault(require("../../radio"));
11
11
 
12
+ var _commons = require("../../commons");
13
+
14
+ var _excluded = ["errors"];
15
+
12
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
17
 
14
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
19
 
16
- function LunaticCheckboxOne(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_radio["default"], _extends({}, props, {
20
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
+
22
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+
24
+ function LunaticCheckboxOne(_ref) {
25
+ var errors = _ref.errors,
26
+ props = _objectWithoutProperties(_ref, _excluded);
27
+
28
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_radio["default"], _extends({}, props, {
18
29
  checkboxStyle: true
30
+ })), /*#__PURE__*/_react["default"].createElement(_commons.Errors, {
31
+ errors: errors
19
32
  }));
20
33
  }
21
34