@inseefr/lunatic 0.4.26-v2 → 0.4.28-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.
|
@@ -99,8 +99,8 @@ function ComboBox(_ref) {
|
|
|
99
99
|
value: value,
|
|
100
100
|
selectedIndex: selectedIndex,
|
|
101
101
|
getOptionValue: getOptionValue
|
|
102
|
-
}));
|
|
103
|
-
}, []);
|
|
102
|
+
}));
|
|
103
|
+
}, [options, value, selectedIndex, getOptionValue]);
|
|
104
104
|
var onFocus = (0, _react.useCallback)(function () {
|
|
105
105
|
dispatch(_stateManagement.actions.onFocus());
|
|
106
106
|
}, []);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
@mixin preventSelect() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@mixin placeholder {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin defaultFont {
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin selection() {
|
|
21
|
-
|
|
22
|
-
}
|
|
1
|
+
// @mixin preventSelect() {
|
|
2
|
+
// -moz-user-select: -moz-none;
|
|
3
|
+
// -khtml-user-select: none;
|
|
4
|
+
// -webkit-user-select: none;
|
|
5
|
+
// }
|
|
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
|
+
// }
|
|
15
|
+
|
|
16
|
+
// @mixin defaultFont {
|
|
17
|
+
// font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
|
|
18
|
+
// }
|
|
19
|
+
|
|
20
|
+
// @mixin selection() {
|
|
21
|
+
// @include defaultFont();
|
|
22
|
+
// }
|
|
23
23
|
|
|
24
24
|
.lunatic-combo-box-container {
|
|
25
25
|
position: relative;
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
line-height: 34px;
|
|
52
52
|
font-size: 15px;
|
|
53
53
|
padding-left: 4px;
|
|
54
|
-
@include selection();
|
|
54
|
+
// @include selection();
|
|
55
55
|
|
|
56
|
-
&::placeholder {
|
|
57
|
-
|
|
58
|
-
}
|
|
56
|
+
// &::placeholder {
|
|
57
|
+
// @include placeholder();
|
|
58
|
+
// }
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.lunatic-combo-box-selected {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
background-color: var(--color-combo-box-background);
|
|
65
65
|
border-radius: 5px;
|
|
66
66
|
padding-left: 4px;
|
|
67
|
-
@include selection();
|
|
67
|
+
// @include selection();
|
|
68
68
|
outline: none;
|
|
69
69
|
|
|
70
70
|
display: block;
|
|
71
|
-
@include placeholder();
|
|
71
|
+
// @include placeholder();
|
|
72
72
|
|
|
73
73
|
.placeholder {
|
|
74
74
|
}
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.lunatic-combo-box-panel {
|
|
89
|
-
@include defaultFont();
|
|
89
|
+
// @include defaultFont();
|
|
90
90
|
height: 0;
|
|
91
91
|
opacity: 0;
|
|
92
92
|
background-color: var(--color-combo-box-background);
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
}
|
|
208
208
|
.lunatic-combo-box-option {
|
|
209
209
|
white-space: nowrap;
|
|
210
|
-
@include preventSelect();
|
|
210
|
+
// @include preventSelect();
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|