@inseefr/lunatic 0.4.20-v2 → 0.4.22-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.
- package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +5 -3
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +5 -3
- package/lib/components/commons/components/combo-box/selection/label-selection.js +1 -1
- package/lib/components/commons/components/fieldset.js +2 -0
- package/lib/components/commons/components/fieldset.scss +3 -0
- package/lib/components/radio/lunatic-radio-group.js +1 -1
- package/package.json +1 -1
|
@@ -20,14 +20,16 @@ function LunaticCheckboxBoolean(_ref) {
|
|
|
20
20
|
disabled = _ref.disabled,
|
|
21
21
|
onChange = _ref.onChange,
|
|
22
22
|
custom = _ref.custom,
|
|
23
|
-
errors = _ref.errors
|
|
23
|
+
errors = _ref.errors,
|
|
24
|
+
label = _ref.label;
|
|
24
25
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_checkboxBoolean["default"], {
|
|
25
26
|
id: id,
|
|
26
27
|
options: options,
|
|
27
28
|
checked: value,
|
|
28
29
|
onClick: onChange,
|
|
29
30
|
disabled: disabled,
|
|
30
|
-
custom: custom
|
|
31
|
+
custom: custom,
|
|
32
|
+
label: label
|
|
31
33
|
}), /*#__PURE__*/_react["default"].createElement(_commons.Errors, {
|
|
32
34
|
errors: errors
|
|
33
35
|
}));
|
|
@@ -38,7 +40,7 @@ LunaticCheckboxBoolean.defaultProps = {
|
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
var _default = (0, _commons.createLunaticComponent)(LunaticCheckboxBoolean, {
|
|
41
|
-
fieldset:
|
|
43
|
+
fieldset: true,
|
|
42
44
|
inputId: 'lunatic-checkbox-boolean'
|
|
43
45
|
});
|
|
44
46
|
|
|
@@ -19,20 +19,22 @@ function LunaticCheckboxGroup(_ref) {
|
|
|
19
19
|
responses = _ref.responses,
|
|
20
20
|
custom = _ref.custom,
|
|
21
21
|
handleChange = _ref.handleChange,
|
|
22
|
-
errors = _ref.errors
|
|
22
|
+
errors = _ref.errors,
|
|
23
|
+
label = _ref.label;
|
|
23
24
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_checkboxGroup["default"], {
|
|
24
25
|
id: id,
|
|
25
26
|
options: responses,
|
|
26
27
|
value: value,
|
|
27
28
|
handleChange: handleChange,
|
|
28
|
-
custom: custom
|
|
29
|
+
custom: custom,
|
|
30
|
+
label: label
|
|
29
31
|
}), /*#__PURE__*/_react["default"].createElement(_commons.Errors, {
|
|
30
32
|
errors: errors
|
|
31
33
|
}));
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
var _default = (0, _commons.createLunaticComponent)(LunaticCheckboxGroup, {
|
|
35
|
-
fieldset:
|
|
37
|
+
fieldset: true,
|
|
36
38
|
inputId: 'lunatic-checkbox-group'
|
|
37
39
|
});
|
|
38
40
|
|
|
@@ -27,7 +27,7 @@ function LabelSelection(_ref) {
|
|
|
27
27
|
disabled: disabled
|
|
28
28
|
}),
|
|
29
29
|
"aria-labelledby": labelledBy
|
|
30
|
-
}, /*#__PURE__*/_react["default"].createElement(Renderer, {
|
|
30
|
+
}, console.log('options', options), console.log('option', option), /*#__PURE__*/_react["default"].createElement(Renderer, {
|
|
31
31
|
option: option,
|
|
32
32
|
placeholder: placeholder,
|
|
33
33
|
search: search
|
|
@@ -11,6 +11,8 @@ var _createCustomizableField = _interopRequireDefault(require("../../commons/cre
|
|
|
11
11
|
|
|
12
12
|
var _safetyLabel = _interopRequireDefault(require("../safety-label"));
|
|
13
13
|
|
|
14
|
+
require("./fieldset.scss");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
function Fieldset(_ref) {
|
|
@@ -37,7 +37,7 @@ function LunaticRadioGroup(props) {
|
|
|
37
37
|
|
|
38
38
|
var _default = (0, _commons.createLunaticComponent)(LunaticRadioGroup, {
|
|
39
39
|
// set it to true if you want to display a fieldset + legend on a component
|
|
40
|
-
fieldset:
|
|
40
|
+
fieldset: true,
|
|
41
41
|
inputId: 'lunatic-radio-group'
|
|
42
42
|
});
|
|
43
43
|
|