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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haya-select",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,7 +33,7 @@ const LoadedOption = class LoadedOption extends BaseComponent {
33
33
 
34
34
  return (
35
35
  <div
36
- className="custom-select-option"
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("components-custom-select", className)}
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="custom-select-current-selected"
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="custom-select-search-text-input"
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="custom-select-options-container"
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="custom-select-no-options-container">
289
+ <div className="haya-select-no-options-container">
290
290
  {I18n.t("haya_select.no_options_found")}
291
291
  </div>
292
292
  }
@@ -1,4 +1,4 @@
1
- .custom-select-current-selected {
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
- .custom-select-search-text-input {
16
+ .haya-select-search-text-input {
17
17
  border: 0;
18
18
  outline: none;
19
19
  padding: 0;
20
20
  }
21
21
 
22
- .custom-select-options-container {
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
- .custom-select-option {
30
+ .haya-select-option {
31
31
  padding: 4px 8px;
32
32
  color: #000;
33
33