@inseefr/lunatic 0.4.15-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.
@@ -38,7 +38,7 @@ LunaticCheckboxBoolean.defaultProps = {
38
38
  };
39
39
 
40
40
  var _default = (0, _commons.createLunaticComponent)(LunaticCheckboxBoolean, {
41
- fieldset: true,
41
+ fieldset: false,
42
42
  inputId: 'lunatic-checkbox-boolean'
43
43
  });
44
44
 
@@ -32,7 +32,7 @@ function LunaticCheckboxGroup(_ref) {
32
32
  }
33
33
 
34
34
  var _default = (0, _commons.createLunaticComponent)(LunaticCheckboxGroup, {
35
- fieldset: true,
35
+ fieldset: false,
36
36
  inputId: 'lunatic-checkbox-group'
37
37
  });
38
38
 
@@ -38,10 +38,8 @@
38
38
  min-height: 30px;
39
39
  min-width: 260px;
40
40
  width: 100%;
41
- height: 100%;
42
41
  .lunatic-combo-box-content {
43
42
  .lunatic-combo-box-selection {
44
- height: 100%;
45
43
  border-radius: 5px;
46
44
  border: 2px solid var(--color-primary-dark);
47
45
  background-color: var(--color-combo-box-background);
@@ -173,8 +171,6 @@
173
171
  }
174
172
 
175
173
  width: 100%;
176
- height: 100%;
177
- /* */
178
174
  }
179
175
 
180
176
  .lunatic-combo-box-selected {
@@ -183,7 +179,6 @@
183
179
  white-space: nowrap;
184
180
  overflow-x: hidden;
185
181
  width: 100%;
186
- height: 100%;
187
182
  display: none;
188
183
  &.displayed {
189
184
  display: block;
@@ -31,7 +31,6 @@ 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
36
  onChange(isNaN(val) ? null : val);
@@ -45,7 +44,7 @@ function InputNumber(_ref) {
45
44
  }),
46
45
  type: "number",
47
46
  onChange: handleChange,
48
- value: valueEffective,
47
+ value: value !== null && value !== void 0 ? value : '',
49
48
  labelledby: labelId,
50
49
  readOnly: readOnly,
51
50
  disabled: disabled,
@@ -36,7 +36,8 @@ function LunaticRadioGroup(props) {
36
36
  }
37
37
 
38
38
  var _default = (0, _commons.createLunaticComponent)(LunaticRadioGroup, {
39
- fieldset: true,
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
 
@@ -60,4 +60,5 @@
60
60
 
61
61
  .lunatic-radio-group-option {
62
62
  display: flex;
63
+ align-items: center;
63
64
  }
@@ -8,6 +8,7 @@
8
8
  th {
9
9
  border: 0.15em solid var(--color-primary-dark);
10
10
  padding: 0.2em;
11
+ font-size: 13px;
11
12
  }
12
13
  & td {
13
14
  .field,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "0.4.15-v2",
3
+ "version": "0.4.16-v2",
4
4
  "workersVersion": "0.2.4-experimental",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {