@inseefr/lunatic 0.4.19-v2 → 0.4.21-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.
@@ -4,14 +4,14 @@
4
4
  -webkit-user-select: none;
5
5
  }
6
6
 
7
- // @mixin placeholder {
8
- // color: gray;
9
- // @include defaultFont();
10
- // font-size: 15px;
11
- // line-height: 34px;
12
- // vertical-align: middle;
13
- // font-weight: normal;
14
- // }
7
+ @mixin placeholder {
8
+ color: gray;
9
+ @include defaultFont();
10
+ font-size: 15px;
11
+ line-height: 34px;
12
+ vertical-align: middle;
13
+ font-weight: normal;
14
+ }
15
15
 
16
16
  @mixin defaultFont {
17
17
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
@@ -53,9 +53,9 @@
53
53
  padding-left: 4px;
54
54
  @include selection();
55
55
 
56
- // &::placeholder {
57
- // @include placeholder();
58
- // }
56
+ &::placeholder {
57
+ @include placeholder();
58
+ }
59
59
  }
60
60
 
61
61
  .lunatic-combo-box-selected {
@@ -68,10 +68,10 @@
68
68
  outline: none;
69
69
 
70
70
  display: block;
71
- // @include placeholder();
71
+ @include placeholder();
72
72
 
73
- // .placeholder {
74
- // }
73
+ .placeholder {
74
+ }
75
75
 
76
76
  .selection {
77
77
  display: inline-block;
@@ -184,8 +184,8 @@
184
184
  display: block;
185
185
  }
186
186
 
187
- // .placeholder {
188
- // }
187
+ .placeholder {
188
+ }
189
189
  .selection {
190
190
  }
191
191
  }
@@ -9,13 +9,15 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
+ var _safetyLabel = _interopRequireDefault(require("../../commons/safety-label"));
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
15
 
14
16
  function getContent(option, search) {
15
17
  if (option) {
16
18
  var value = option.value,
17
19
  label = option.label;
18
- return label || value;
20
+ return (0, _safetyLabel["default"])(label || value);
19
21
  }
20
22
 
21
23
  if (search && search.trim().length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "0.4.19-v2",
3
+ "version": "0.4.21-v2",
4
4
  "workersVersion": "0.2.4-experimental",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {