@inseefr/lunatic 0.4.13-v2 → 0.4.16-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 +1 -1
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +1 -1
- package/lib/components/commons/components/combo-box/combo-box.scss +0 -3
- package/lib/components/commons/icons/lunatic-icon.scss +0 -1
- package/lib/components/index.scss +0 -1
- package/lib/components/input-number/input-number.js +2 -3
- package/lib/components/modal-controls/modal-controls.js +0 -2
- package/lib/components/modal-controls/modal-controls.scss +10 -5
- package/lib/components/radio/lunatic-radio-group.js +2 -1
- package/lib/components/radio/radio.scss +1 -0
- package/lib/components/table/components/table.scss +1 -0
- package/lib/stories/utils/orchestrator.js +0 -1
- package/package.json +1 -1
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
min-height: 30px;
|
|
39
39
|
min-width: 260px;
|
|
40
40
|
width: 100%;
|
|
41
|
-
|
|
42
41
|
.lunatic-combo-box-content {
|
|
43
42
|
.lunatic-combo-box-selection {
|
|
44
43
|
border-radius: 5px;
|
|
@@ -172,7 +171,6 @@
|
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
width: 100%;
|
|
175
|
-
/* */
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
.lunatic-combo-box-selected {
|
|
@@ -181,7 +179,6 @@
|
|
|
181
179
|
white-space: nowrap;
|
|
182
180
|
overflow-x: hidden;
|
|
183
181
|
width: 100%;
|
|
184
|
-
height: 100%;
|
|
185
182
|
display: none;
|
|
186
183
|
&.displayed {
|
|
187
184
|
display: block;
|
|
@@ -31,10 +31,9 @@ function InputNumber(_ref) {
|
|
|
31
31
|
max = _ref.max,
|
|
32
32
|
step = _ref.step,
|
|
33
33
|
unit = _ref.unit;
|
|
34
|
-
var valueEffective = value !== null && value !== void 0 ? value : NaN;
|
|
35
34
|
var handleChange = (0, _react.useCallback)(function (e) {
|
|
36
35
|
var val = e.target.valueAsNumber;
|
|
37
|
-
onChange(val);
|
|
36
|
+
onChange(isNaN(val) ? null : val);
|
|
38
37
|
}, [onChange]);
|
|
39
38
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
39
|
className: "lunatic-input-number-container"
|
|
@@ -45,7 +44,7 @@ function InputNumber(_ref) {
|
|
|
45
44
|
}),
|
|
46
45
|
type: "number",
|
|
47
46
|
onChange: handleChange,
|
|
48
|
-
value:
|
|
47
|
+
value: value !== null && value !== void 0 ? value : '',
|
|
49
48
|
labelledby: labelId,
|
|
50
49
|
readOnly: readOnly,
|
|
51
50
|
disabled: disabled,
|
|
@@ -79,8 +79,6 @@ function ModalControls(_ref3) {
|
|
|
79
79
|
});
|
|
80
80
|
}, []);
|
|
81
81
|
return /*#__PURE__*/_react["default"].createElement(_modalContainer["default"], null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
-
className: "title"
|
|
83
|
-
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
82
|
className: "body"
|
|
85
83
|
}, content), /*#__PURE__*/_react["default"].createElement(_closeOrSkip["default"], {
|
|
86
84
|
onSkip: goNext,
|
|
@@ -19,27 +19,32 @@
|
|
|
19
19
|
.title {
|
|
20
20
|
height: 32px;
|
|
21
21
|
background-color: darkslateblue;
|
|
22
|
-
color:
|
|
22
|
+
color: black;
|
|
23
23
|
font-size: 18px;
|
|
24
24
|
font-weight: bolder;
|
|
25
25
|
line-height: 32px;
|
|
26
26
|
padding: 0 12px;
|
|
27
|
-
|
|
27
|
+
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
|
|
28
28
|
border-radius: 8px 8px 0 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.body {
|
|
32
|
-
padding: 0 12px 0 12px;
|
|
32
|
+
// padding: 0 12px 0 12px;
|
|
33
|
+
padding: 12px 0 0 12px;
|
|
33
34
|
height: 60%;
|
|
34
|
-
|
|
35
|
+
color: black;
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
.modal-buttons {
|
|
38
|
-
display: block;
|
|
39
41
|
position: absolute;
|
|
40
42
|
bottom: 0;
|
|
41
43
|
right: 0;
|
|
42
44
|
margin: 0 12px 12px 0;
|
|
45
|
+
:first-child {
|
|
46
|
+
margin-right: 10px;
|
|
47
|
+
}
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
|
|
@@ -36,7 +36,8 @@ function LunaticRadioGroup(props) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
var _default = (0, _commons.createLunaticComponent)(LunaticRadioGroup, {
|
|
39
|
-
fieldset
|
|
39
|
+
// set it to true if you want to display a fieldset + legend on a component
|
|
40
|
+
fieldset: false,
|
|
40
41
|
inputId: 'lunatic-radio-group'
|
|
41
42
|
});
|
|
42
43
|
|
|
@@ -174,7 +174,6 @@ function OrchestratorForStories(_ref2) {
|
|
|
174
174
|
maxPage: maxPage,
|
|
175
175
|
getData: getData
|
|
176
176
|
}), /*#__PURE__*/_react["default"].createElement(lunatic.Modal, {
|
|
177
|
-
title: "Des points requi\xE8rent votre attention.",
|
|
178
177
|
errors: modalErrors,
|
|
179
178
|
goNext: goNextPage
|
|
180
179
|
}), /*#__PURE__*/_react["default"].createElement(_waiting["default"], {
|