haya-select 1.0.1 → 1.0.2
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/package.json +1 -1
- package/src/select/index.jsx +6 -6
- package/src/select/style.scss +4 -4
package/package.json
CHANGED
package/src/select/index.jsx
CHANGED
|
@@ -33,7 +33,7 @@ const LoadedOption = class LoadedOption extends BaseComponent {
|
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<div
|
|
36
|
-
className="
|
|
36
|
+
className="haya-select-option"
|
|
37
37
|
data-selected={selected}
|
|
38
38
|
data-value={digg(loadedOption, "value")}
|
|
39
39
|
onClick={this.onOptionClicked}
|
|
@@ -104,7 +104,7 @@ export default class CustomSelect extends React.PureComponent {
|
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
106
|
<div
|
|
107
|
-
className={classNames("
|
|
107
|
+
className={classNames("haya-select", className)}
|
|
108
108
|
data-id={idForComponent(this)}
|
|
109
109
|
{...restProps}
|
|
110
110
|
>
|
|
@@ -114,13 +114,13 @@ export default class CustomSelect extends React.PureComponent {
|
|
|
114
114
|
</BodyPortal>
|
|
115
115
|
}
|
|
116
116
|
<div
|
|
117
|
-
className="
|
|
117
|
+
className="haya-select-current-selected"
|
|
118
118
|
data-opened={opened}
|
|
119
119
|
onClick={this.onSelectClicked}
|
|
120
120
|
>
|
|
121
121
|
{opened &&
|
|
122
122
|
<input
|
|
123
|
-
className="
|
|
123
|
+
className="haya-select-search-text-input"
|
|
124
124
|
onChange={digg(this, "onSearchTextInputChangedDebounced")}
|
|
125
125
|
placeholder={I18n.t("haya_select.search_dot_dot_dot")} type="text"
|
|
126
126
|
ref={digg(this, "searchTextInputRef")}
|
|
@@ -267,7 +267,7 @@ export default class CustomSelect extends React.PureComponent {
|
|
|
267
267
|
|
|
268
268
|
return (
|
|
269
269
|
<div
|
|
270
|
-
className="
|
|
270
|
+
className="haya-select-options-container"
|
|
271
271
|
data-id={idForComponent(this)}
|
|
272
272
|
ref={optionsContainerRef}
|
|
273
273
|
style={{
|
|
@@ -286,7 +286,7 @@ export default class CustomSelect extends React.PureComponent {
|
|
|
286
286
|
/>
|
|
287
287
|
)}
|
|
288
288
|
{loadedOptions?.length === 0 &&
|
|
289
|
-
<div className="
|
|
289
|
+
<div className="haya-select-no-options-container">
|
|
290
290
|
{I18n.t("haya_select.no_options_found")}
|
|
291
291
|
</div>
|
|
292
292
|
}
|
package/src/select/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.haya-select-current-selected {
|
|
2
2
|
background-color: #fff;
|
|
3
3
|
border: 1px solid #999;
|
|
4
4
|
cursor: pointer;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.haya-select-search-text-input {
|
|
17
17
|
border: 0;
|
|
18
18
|
outline: none;
|
|
19
19
|
padding: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
.haya-select-options-container {
|
|
23
23
|
background-color: #fff;
|
|
24
24
|
border: 1px solid #999;
|
|
25
25
|
max-height: 300px;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
position: absolute;
|
|
28
28
|
z-index: 99999;
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
.haya-select-option {
|
|
31
31
|
padding: 4px 8px;
|
|
32
32
|
color: #000;
|
|
33
33
|
|