@alfalab/core-components-select 10.9.2 → 10.10.0

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.
Files changed (163) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{Component-83594167.d.ts → Component-07b5fc24.d.ts} +0 -0
  3. package/dist/{Component-83594167.js → Component-07b5fc24.js} +2 -2
  4. package/dist/{Component-08cbe22f.d.ts → Component-a2743030.d.ts} +0 -0
  5. package/dist/{Component-08cbe22f.js → Component-a2743030.js} +5 -5
  6. package/dist/Component.js +2 -2
  7. package/dist/components/arrow/Component.js +1 -1
  8. package/dist/components/arrow/index.css +3 -3
  9. package/dist/components/base-select/Component.js +2 -2
  10. package/dist/components/base-select/index.css +7 -7
  11. package/dist/components/base-select/index.d.ts +1 -1
  12. package/dist/components/base-select/index.js +2 -2
  13. package/dist/components/checkmark/Component.js +1 -1
  14. package/dist/components/checkmark/index.css +7 -7
  15. package/dist/components/field/Component.js +2 -2
  16. package/dist/components/field/index.css +9 -9
  17. package/dist/components/field/index.js +1 -1
  18. package/dist/components/index.js +4 -4
  19. package/dist/components/native-select/Component.js +1 -1
  20. package/dist/components/native-select/index.js +1 -1
  21. package/dist/components/optgroup/Component.js +1 -1
  22. package/dist/components/optgroup/index.css +6 -6
  23. package/dist/components/option/Component.js +2 -2
  24. package/dist/components/option/index.css +20 -20
  25. package/dist/components/option/index.js +1 -1
  26. package/dist/components/options-list/Component.js +2 -2
  27. package/dist/components/options-list/index.css +6 -6
  28. package/dist/components/options-list/index.js +1 -1
  29. package/dist/components/select-mobile/Component.js +4 -4
  30. package/dist/components/select-mobile/checkmark/Component.js +1 -1
  31. package/dist/components/select-mobile/checkmark/index.css +4 -4
  32. package/dist/components/select-mobile/index.css +11 -11
  33. package/dist/components/select-mobile/index.d.ts +1 -1
  34. package/dist/components/select-mobile/index.js +4 -4
  35. package/dist/components/select-mobile/options-list/Component.js +2 -2
  36. package/dist/components/select-mobile/options-list/index.css +9 -9
  37. package/dist/components/select-mobile/options-list/index.js +1 -1
  38. package/dist/components/virtual-options-list/Component.js +2 -2
  39. package/dist/components/virtual-options-list/index.css +12 -12
  40. package/dist/components/virtual-options-list/index.js +1 -1
  41. package/dist/cssm/hook-f5b8fe4f.d.ts +1 -6
  42. package/dist/cssm/typings.d.ts +8 -7
  43. package/dist/esm/{Component-c8899d32.d.ts → Component-940820eb.d.ts} +0 -0
  44. package/dist/esm/{Component-c8899d32.js → Component-940820eb.js} +5 -5
  45. package/dist/esm/{Component-fb9db7f1.d.ts → Component-a44e2076.d.ts} +0 -0
  46. package/dist/esm/{Component-fb9db7f1.js → Component-a44e2076.js} +2 -2
  47. package/dist/esm/Component.js +2 -2
  48. package/dist/esm/components/arrow/Component.js +1 -1
  49. package/dist/esm/components/arrow/index.css +3 -3
  50. package/dist/esm/components/base-select/Component.js +2 -2
  51. package/dist/esm/components/base-select/index.css +7 -7
  52. package/dist/esm/components/base-select/index.d.ts +1 -1
  53. package/dist/esm/components/base-select/index.js +2 -2
  54. package/dist/esm/components/checkmark/Component.js +1 -1
  55. package/dist/esm/components/checkmark/index.css +7 -7
  56. package/dist/esm/components/field/Component.js +2 -2
  57. package/dist/esm/components/field/index.css +9 -9
  58. package/dist/esm/components/field/index.js +1 -1
  59. package/dist/esm/components/index.js +4 -4
  60. package/dist/esm/components/native-select/Component.js +1 -1
  61. package/dist/esm/components/native-select/index.js +1 -1
  62. package/dist/esm/components/optgroup/Component.js +1 -1
  63. package/dist/esm/components/optgroup/index.css +6 -6
  64. package/dist/esm/components/option/Component.js +2 -2
  65. package/dist/esm/components/option/index.css +20 -20
  66. package/dist/esm/components/option/index.js +1 -1
  67. package/dist/esm/components/options-list/Component.js +2 -2
  68. package/dist/esm/components/options-list/index.css +6 -6
  69. package/dist/esm/components/options-list/index.js +1 -1
  70. package/dist/esm/components/select-mobile/Component.js +4 -4
  71. package/dist/esm/components/select-mobile/checkmark/Component.js +1 -1
  72. package/dist/esm/components/select-mobile/checkmark/index.css +4 -4
  73. package/dist/esm/components/select-mobile/index.css +11 -11
  74. package/dist/esm/components/select-mobile/index.d.ts +1 -1
  75. package/dist/esm/components/select-mobile/index.js +4 -4
  76. package/dist/esm/components/select-mobile/options-list/Component.js +2 -2
  77. package/dist/esm/components/select-mobile/options-list/index.css +9 -9
  78. package/dist/esm/components/select-mobile/options-list/index.js +1 -1
  79. package/dist/esm/components/virtual-options-list/Component.js +2 -2
  80. package/dist/esm/components/virtual-options-list/index.css +12 -12
  81. package/dist/esm/components/virtual-options-list/index.js +1 -1
  82. package/dist/esm/hook-f5b8fe4f.d.ts +1 -6
  83. package/dist/esm/index.js +4 -4
  84. package/dist/esm/{intersection-observer-0096c380.d.ts → intersection-observer-a3974639.d.ts} +0 -0
  85. package/dist/esm/{intersection-observer-0096c380.js → intersection-observer-a3974639.js} +0 -0
  86. package/dist/esm/presets/index.js +4 -4
  87. package/dist/esm/presets/useLazyLoading/hook.js +3 -3
  88. package/dist/esm/presets/useLazyLoading/index.css +2 -2
  89. package/dist/esm/presets/useSelectWithApply/hook.js +4 -4
  90. package/dist/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
  91. package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  92. package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  93. package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
  94. package/dist/esm/presets/useSelectWithLoading/hook.js +2 -2
  95. package/dist/esm/presets/useSelectWithLoading/index.css +2 -2
  96. package/dist/esm/{tslib.es6-2e3f4e35.d.ts → tslib.es6-bbfa36d5.d.ts} +0 -0
  97. package/dist/esm/{tslib.es6-2e3f4e35.js → tslib.es6-bbfa36d5.js} +0 -0
  98. package/dist/esm/typings.d.ts +8 -7
  99. package/dist/hook-f5b8fe4f.d.ts +1 -6
  100. package/dist/index.js +4 -4
  101. package/dist/{intersection-observer-7ddb317f.d.ts → intersection-observer-983805e0.d.ts} +0 -0
  102. package/dist/{intersection-observer-7ddb317f.js → intersection-observer-983805e0.js} +0 -0
  103. package/dist/modern/{Component-4424bbf7.d.ts → Component-909d89f0.d.ts} +0 -0
  104. package/dist/modern/{Component-4424bbf7.js → Component-909d89f0.js} +1 -1
  105. package/dist/modern/{Component-e2443eca.d.ts → Component-c64a4dc3.d.ts} +0 -0
  106. package/dist/modern/{Component-e2443eca.js → Component-c64a4dc3.js} +4 -4
  107. package/dist/modern/Component.js +1 -1
  108. package/dist/modern/components/arrow/Component.js +1 -1
  109. package/dist/modern/components/arrow/index.css +3 -3
  110. package/dist/modern/components/base-select/Component.js +1 -1
  111. package/dist/modern/components/base-select/index.css +7 -7
  112. package/dist/modern/components/base-select/index.d.ts +1 -1
  113. package/dist/modern/components/base-select/index.js +1 -1
  114. package/dist/modern/components/checkmark/Component.js +1 -1
  115. package/dist/modern/components/checkmark/index.css +7 -7
  116. package/dist/modern/components/field/Component.js +1 -1
  117. package/dist/modern/components/field/index.css +9 -9
  118. package/dist/modern/components/index.js +3 -3
  119. package/dist/modern/components/optgroup/Component.js +1 -1
  120. package/dist/modern/components/optgroup/index.css +6 -6
  121. package/dist/modern/components/option/Component.js +1 -1
  122. package/dist/modern/components/option/index.css +20 -20
  123. package/dist/modern/components/options-list/Component.js +1 -1
  124. package/dist/modern/components/options-list/index.css +6 -6
  125. package/dist/modern/components/select-mobile/Component.js +3 -3
  126. package/dist/modern/components/select-mobile/checkmark/Component.js +1 -1
  127. package/dist/modern/components/select-mobile/checkmark/index.css +4 -4
  128. package/dist/modern/components/select-mobile/index.css +11 -11
  129. package/dist/modern/components/select-mobile/index.d.ts +1 -1
  130. package/dist/modern/components/select-mobile/index.js +3 -3
  131. package/dist/modern/components/select-mobile/options-list/Component.js +1 -1
  132. package/dist/modern/components/select-mobile/options-list/index.css +9 -9
  133. package/dist/modern/components/virtual-options-list/Component.js +1 -1
  134. package/dist/modern/components/virtual-options-list/index.css +12 -12
  135. package/dist/modern/hook-f5b8fe4f.d.ts +1 -6
  136. package/dist/modern/index.js +3 -3
  137. package/dist/modern/{intersection-observer-0096c380.d.ts → intersection-observer-a3974639.d.ts} +0 -0
  138. package/dist/modern/{intersection-observer-0096c380.js → intersection-observer-a3974639.js} +0 -0
  139. package/dist/modern/presets/index.js +3 -3
  140. package/dist/modern/presets/useLazyLoading/hook.js +2 -2
  141. package/dist/modern/presets/useLazyLoading/index.css +2 -2
  142. package/dist/modern/presets/useSelectWithApply/hook.js +3 -3
  143. package/dist/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  144. package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  145. package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  146. package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  147. package/dist/modern/presets/useSelectWithLoading/hook.js +1 -1
  148. package/dist/modern/presets/useSelectWithLoading/index.css +2 -2
  149. package/dist/modern/typings.d.ts +8 -7
  150. package/dist/presets/index.js +4 -4
  151. package/dist/presets/useLazyLoading/hook.js +3 -3
  152. package/dist/presets/useLazyLoading/index.css +2 -2
  153. package/dist/presets/useSelectWithApply/hook.js +4 -4
  154. package/dist/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
  155. package/dist/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  156. package/dist/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  157. package/dist/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
  158. package/dist/presets/useSelectWithLoading/hook.js +2 -2
  159. package/dist/presets/useSelectWithLoading/index.css +2 -2
  160. package/dist/{tslib.es6-aff0085c.d.ts → tslib.es6-bc71fbf0.d.ts} +0 -0
  161. package/dist/{tslib.es6-aff0085c.js → tslib.es6-bc71fbf0.js} +0 -0
  162. package/dist/typings.d.ts +8 -7
  163. package/package.json +16 -16
@@ -1,4 +1,4 @@
1
- /* hash: ilhns */
1
+ /* hash: 1x3f9 */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -26,24 +26,24 @@
26
26
 
27
27
  /* optgroup */
28
28
  }
29
- .select__component_lyks5 {
29
+ .select__component_26tkz {
30
30
  width: 100%;
31
31
  outline: none;
32
32
  }
33
- .select__field_lyks5:not(.select__disabled_lyks5) {
33
+ .select__field_26tkz:not(.select__disabled_26tkz) {
34
34
  cursor: pointer
35
35
  }
36
- .select__field_lyks5:not(.select__disabled_lyks5):hover .select__arrow_lyks5 {
36
+ .select__field_26tkz:not(.select__disabled_26tkz):hover .select__arrow_26tkz {
37
37
  opacity: var(--select-arrow-hover-opacity);
38
38
  }
39
- .select__disabled_lyks5 {
39
+ .select__disabled_26tkz {
40
40
  cursor: var(--disabled-cursor);
41
41
  }
42
42
  /* TODO: Заюзать переменные из инпута */
43
- .select__placeholder_lyks5 {
43
+ .select__placeholder_26tkz {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .select__contentWrapper_lyks5 {
46
+ .select__contentWrapper_26tkz {
47
47
  font-size: 16px;
48
48
  line-height: 20px;
49
49
  font-weight: 400;
@@ -53,12 +53,12 @@
53
53
  overflow: hidden;
54
54
  width: 100%;
55
55
  }
56
- .select__value_lyks5 {
56
+ .select__value_26tkz {
57
57
  overflow: hidden;
58
58
  text-overflow: ellipsis;
59
59
  text-align: left;
60
60
  }
61
- .select__focusVisible_lyks5 {
61
+ .select__focusVisible_26tkz {
62
62
  outline: 2px solid var(--focus-color);
63
63
  outline-offset: 2px;
64
64
  }
@@ -17,15 +17,15 @@ import 'resize-observer';
17
17
  import '@alfalab/core-components-popover/dist/modern';
18
18
  import 'downshift';
19
19
  import './native-select/Component.js';
20
- export { B as BaseSelect } from '../Component-4424bbf7.js';
20
+ export { B as BaseSelect } from '../Component-909d89f0.js';
21
21
  import '../Component.js';
22
22
  import '@alfalab/core-components-bottom-sheet/dist/modern';
23
23
  import '@alfalab/core-components-button/dist/modern';
24
24
  import '@alfalab/core-components-base-modal/dist/modern';
25
25
  import './select-mobile/options-list/Component.js';
26
26
  import './select-mobile/checkmark/Component.js';
27
- export { S as SelectMobile } from '../Component-e2443eca.js';
27
+ export { S as SelectMobile } from '../Component-c64a4dc3.js';
28
28
  import 'react-virtual';
29
29
  export { VirtualOptionsList } from './virtual-options-list/Component.js';
30
30
  import '@alfalab/core-components-skeleton/dist/modern';
31
- import '../intersection-observer-0096c380.js';
31
+ import '../intersection-observer-a3974639.js';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"optgroup":"select__optgroup_q5xry","label":"select__label_q5xry","l":"select__l_q5xry","xl":"select__xl_q5xry"};
4
+ var styles = {"optgroup":"select__optgroup_1pb99","label":"select__label_1pb99","l":"select__l_1pb99","xl":"select__xl_1pb99"};
5
5
  require('./index.css')
6
6
 
7
7
  const Optgroup = ({ children, className, label, size = 's' }) => (React.createElement(React.Fragment, null,
@@ -1,4 +1,4 @@
1
- /* hash: 1fr12 */
1
+ /* hash: 14m5q */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-text-secondary: #546272;
@@ -33,7 +33,7 @@
33
33
  --select-optgroup-l-left-padding: var(--gap-m);
34
34
  --select-optgroup-l-right-padding: var(--gap-m);
35
35
  }
36
- .select__optgroup_q5xry {
36
+ .select__optgroup_1pb99 {
37
37
  position: relative;
38
38
  display: flex;
39
39
  align-items: center;
@@ -43,10 +43,10 @@
43
43
  background: var(--select-optgroup-background);
44
44
  min-height: 40px
45
45
  }
46
- .select__optgroup_q5xry + *[role='option']:before {
46
+ .select__optgroup_1pb99 + *[role='option']:before {
47
47
  display: none;
48
48
  }
49
- .select__label_q5xry {
49
+ .select__label_1pb99 {
50
50
  font-size: 12px;
51
51
  line-height: 16px;
52
52
  font-weight: 500;
@@ -56,8 +56,8 @@
56
56
  display: block;
57
57
  color: var(--select-optgroup-color);
58
58
  }
59
- .select__l_q5xry,
60
- .select__xl_q5xry {
59
+ .select__l_1pb99,
60
+ .select__xl_1pb99 {
61
61
  padding-left: var(--select-optgroup-l-left-padding);
62
62
  padding-right: var(--select-optgroup-l-right-padding);
63
63
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import '@alfalab/core-components-checkbox/dist/modern';
4
4
  import { Checkmark } from '../checkmark/Component.js';
5
5
 
6
- var styles = {"option":"select__option_q8ipr","disabled":"select__disabled_q8ipr","s":"select__s_q8ipr","m":"select__m_q8ipr","l":"select__l_q8ipr","xl":"select__xl_q8ipr","selected":"select__selected_q8ipr","highlighted":"select__highlighted_q8ipr","content":"select__content_q8ipr","textContent":"select__textContent_q8ipr"};
6
+ var styles = {"option":"select__option_1q4ba","disabled":"select__disabled_1q4ba","s":"select__s_1q4ba","m":"select__m_1q4ba","l":"select__l_1q4ba","xl":"select__xl_1q4ba","selected":"select__selected_1q4ba","highlighted":"select__highlighted_1q4ba","content":"select__content_1q4ba","textContent":"select__textContent_1q4ba"};
7
7
  require('./index.css')
8
8
 
9
9
  const Option = ({ size = 's', className, option, children, selected, highlighted, disabled, multiple, Checkmark: Checkmark$1 = Checkmark, innerProps, dataTestId, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: a34ng */
1
+ /* hash: 16tnr */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-bg-secondary: #f3f4f5;
@@ -53,7 +53,7 @@
53
53
 
54
54
  /* optgroup */
55
55
  }
56
- .select__option_q8ipr {
56
+ .select__option_1q4ba {
57
57
  font-size: 16px;
58
58
  line-height: 20px;
59
59
  font-weight: 400;
@@ -69,11 +69,11 @@
69
69
  position: relative;
70
70
  cursor: pointer
71
71
  }
72
- .select__option_q8ipr:not(.select__disabled_q8ipr):active {
72
+ .select__option_1q4ba:not(.select__disabled_1q4ba):active {
73
73
  background: var(--select-option-active-background);
74
74
  color: var(--select-option-active-color);
75
75
  }
76
- .select__option_q8ipr:before {
76
+ .select__option_1q4ba:before {
77
77
  content: '';
78
78
  position: absolute;
79
79
  left: var(--select-option-left-padding);
@@ -84,60 +84,60 @@
84
84
  display: var(--select-option-divider-display);
85
85
  transition: opacity 0.2s ease;
86
86
  }
87
- .select__option_q8ipr:first-child:before {
87
+ .select__option_1q4ba:first-child:before {
88
88
  display: none;
89
89
  }
90
- .select__s_q8ipr {
90
+ .select__s_1q4ba {
91
91
  min-height: var(--size-s-height);
92
92
  }
93
- .select__m_q8ipr {
93
+ .select__m_1q4ba {
94
94
  min-height: var(--size-m-height);
95
95
  }
96
- .select__l_q8ipr {
96
+ .select__l_1q4ba {
97
97
  min-height: var(--size-l-height);
98
98
  }
99
- .select__xl_q8ipr {
99
+ .select__xl_1q4ba {
100
100
  min-height: var(--size-xl-height);
101
101
  }
102
- .select__l_q8ipr,
103
- .select__xl_q8ipr {
102
+ .select__l_1q4ba,
103
+ .select__xl_1q4ba {
104
104
  padding-left: var(--select-option-l-left-padding);
105
105
  padding-right: var(--select-option-l-right-padding)
106
106
  }
107
- .select__l_q8ipr:before, .select__xl_q8ipr:before {
107
+ .select__l_1q4ba:before, .select__xl_1q4ba:before {
108
108
  left: var(--select-option-l-left-padding);
109
109
  right: var(--select-option-l-right-padding);
110
110
  }
111
- .select__selected_q8ipr {
111
+ .select__selected_1q4ba {
112
112
  background: var(--select-option-selected-background);
113
113
  color: var(--select-option-selected-color);
114
114
  cursor: default;
115
115
  }
116
- .select__highlighted_q8ipr {
116
+ .select__highlighted_1q4ba {
117
117
  background: var(--select-option-hover-background);
118
118
  color: var(--select-option-hover-color)
119
119
  }
120
- .select__highlighted_q8ipr:before,
121
- .select__highlighted_q8ipr + .select__option_q8ipr:before {
120
+ .select__highlighted_1q4ba:before,
121
+ .select__highlighted_1q4ba + .select__option_1q4ba:before {
122
122
  opacity: 0;
123
123
  }
124
- .select__disabled_q8ipr {
124
+ .select__disabled_1q4ba {
125
125
  cursor: var(--disabled-cursor);
126
126
  background: var(--select-option-disabled-background);
127
127
  color: var(--select-option-disabled-color);
128
128
  }
129
- .select__content_q8ipr {
129
+ .select__content_1q4ba {
130
130
  overflow: hidden;
131
131
  flex: 1;
132
132
  text-overflow: ellipsis;
133
133
  }
134
- .select__textContent_q8ipr {
134
+ .select__textContent_1q4ba {
135
135
  padding-top: var(--gap-s);
136
136
  padding-bottom: var(--gap-s);
137
137
  }
138
138
  /* IE min-height fix */
139
139
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
140
- .select__option_q8ipr:after {
140
+ .select__option_1q4ba:after {
141
141
  min-height: inherit;
142
142
  font-size: 0;
143
143
  content: '';
@@ -6,7 +6,7 @@ import mergeRefs from 'react-merge-refs';
6
6
  import { Scrollbar } from '@alfalab/core-components-scrollbar/dist/modern';
7
7
  import { Optgroup } from '../optgroup/Component.js';
8
8
 
9
- var styles = {"optionsList":"select__optionsList_16wi3","scrollable":"select__scrollable_16wi3","emptyPlaceholder":"select__emptyPlaceholder_16wi3","l":"select__l_16wi3","xl":"select__xl_16wi3"};
9
+ var styles = {"optionsList":"select__optionsList_7r6mq","scrollable":"select__scrollable_7r6mq","emptyPlaceholder":"select__emptyPlaceholder_7r6mq","l":"select__l_7r6mq","xl":"select__xl_7r6mq"};
10
10
  require('./index.css')
11
11
 
12
12
  const createCounter = () => {
@@ -1,4 +1,4 @@
1
- /* hash: 1u61h */
1
+ /* hash: 69srk */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -26,21 +26,21 @@
26
26
 
27
27
  /* optgroup */
28
28
  }
29
- .select__optionsList_16wi3 {
29
+ .select__optionsList_7r6mq {
30
30
  overflow: auto;
31
31
  width: 100%;
32
32
  outline: none;
33
33
  box-sizing: border-box;
34
34
  }
35
- .select__scrollable_16wi3 {
35
+ .select__scrollable_7r6mq {
36
36
  overflow: auto;
37
37
  width: 100%;
38
38
  }
39
- .select__emptyPlaceholder_16wi3 {
39
+ .select__emptyPlaceholder_7r6mq {
40
40
  padding: var(--gap-m) var(--gap-s);
41
41
  color: var(--select-options-list-empty-placeholder-color);
42
42
  }
43
- .select__l_16wi3 .select__emptyPlaceholder_16wi3,
44
- .select__xl_16wi3 .select__emptyPlaceholder_16wi3 {
43
+ .select__l_7r6mq .select__emptyPlaceholder_7r6mq,
44
+ .select__xl_7r6mq .select__emptyPlaceholder_7r6mq {
45
45
  padding: var(--gap-xl) var(--gap-m);
46
46
  }
@@ -17,14 +17,14 @@ import 'resize-observer';
17
17
  import '@alfalab/core-components-popover/dist/modern';
18
18
  import 'downshift';
19
19
  import '../native-select/Component.js';
20
- import '../../Component-4424bbf7.js';
20
+ import '../../Component-909d89f0.js';
21
21
  import '../../Component.js';
22
22
  import '@alfalab/core-components-bottom-sheet/dist/modern';
23
23
  import '@alfalab/core-components-button/dist/modern';
24
24
  import '@alfalab/core-components-base-modal/dist/modern';
25
25
  import './options-list/Component.js';
26
26
  import './checkmark/Component.js';
27
- export { S as SelectMobile } from '../../Component-e2443eca.js';
27
+ export { S as SelectMobile } from '../../Component-c64a4dc3.js';
28
28
  import 'react-virtual';
29
29
  import '@alfalab/core-components-skeleton/dist/modern';
30
- import '../../intersection-observer-0096c380.js';
30
+ import '../../intersection-observer-a3974639.js';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"checkmark":"select__checkmark_1v60f","selected":"select__selected_1v60f"};
4
+ var styles = {"checkmark":"select__checkmark_fwnka","selected":"select__selected_fwnka"};
5
5
  require('./index.css')
6
6
 
7
7
  const Checkmark = ({ selected, className }) => (React.createElement("span", { className: cn(styles.checkmark, className, {
@@ -1,4 +1,4 @@
1
- /* hash: logvn */
1
+ /* hash: nq8bj */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -18,7 +18,7 @@
18
18
 
19
19
  /* optgroup */
20
20
  }
21
- .select__checkmark_1v60f {
21
+ .select__checkmark_fwnka {
22
22
  flex-shrink: 0;
23
23
  display: flex;
24
24
  align-items: center;
@@ -29,9 +29,9 @@
29
29
  height: 24px;
30
30
  opacity: 0
31
31
  }
32
- .select__checkmark_1v60f:first-child {
32
+ .select__checkmark_fwnka:first-child {
33
33
  display: none;
34
34
  }
35
- .select__checkmark_1v60f.select__selected_1v60f {
35
+ .select__checkmark_fwnka.select__selected_fwnka {
36
36
  opacity: 1;
37
37
  }
@@ -1,4 +1,4 @@
1
- /* hash: 190ms */
1
+ /* hash: 94f8u */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -24,12 +24,12 @@
24
24
 
25
25
  /* optgroup */
26
26
  }
27
- .select__component_1dy09 {
27
+ .select__component_esos7 {
28
28
  width: max-content;
29
29
  position: relative;
30
30
  outline: 0;
31
31
  }
32
- .select__popoverInner_1dy09 {
32
+ .select__popoverInner_esos7 {
33
33
  padding-top: var(--select-options-list-offset);
34
34
  padding-bottom: var(--select-options-list-offset);
35
35
  box-shadow: none;
@@ -38,31 +38,31 @@
38
38
  border-radius: 0;
39
39
  position: relative;
40
40
  }
41
- .select__sheet_1dy09 {
41
+ .select__sheet_esos7 {
42
42
  overflow: hidden;
43
43
  }
44
- .select__sheetContent_1dy09 {
44
+ .select__sheetContent_esos7 {
45
45
  padding: 0;
46
46
  }
47
- .select__sheetContainer_1dy09 {
47
+ .select__sheetContainer_esos7 {
48
48
  padding: 0;
49
49
  }
50
- .select__block_1dy09 {
50
+ .select__block_esos7 {
51
51
  width: 100%;
52
52
  }
53
53
  /* width: max-content; fix for IE */
54
54
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
55
- .select__component_1dy09 {
55
+ .select__component_esos7 {
56
56
  float: left;
57
57
  clear: left;
58
58
  }
59
59
  }
60
- .select__option_1dy09 {
60
+ .select__option_esos7 {
61
61
  padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
62
62
  }
63
- .select__option_1dy09:before {
63
+ .select__option_esos7:before {
64
64
  display: none;
65
65
  }
66
- .select__optionGroup_1dy09 {
66
+ .select__optionGroup_esos7 {
67
67
  padding: var(--gap-m) var(--gap-m) var(--gap-xs);
68
68
  }
@@ -1 +1 @@
1
- export * from "../../Component-e2443eca";
1
+ export * from "../../Component-c64a4dc3";
@@ -17,14 +17,14 @@ import 'resize-observer';
17
17
  import '@alfalab/core-components-popover/dist/modern';
18
18
  import 'downshift';
19
19
  import '../native-select/Component.js';
20
- import '../../Component-4424bbf7.js';
20
+ import '../../Component-909d89f0.js';
21
21
  import '../../Component.js';
22
22
  import '@alfalab/core-components-bottom-sheet/dist/modern';
23
23
  import '@alfalab/core-components-button/dist/modern';
24
24
  import '@alfalab/core-components-base-modal/dist/modern';
25
25
  import './options-list/Component.js';
26
26
  import './checkmark/Component.js';
27
- export { S as SelectMobile } from '../../Component-e2443eca.js';
27
+ export { S as SelectMobile } from '../../Component-c64a4dc3.js';
28
28
  import 'react-virtual';
29
29
  import '@alfalab/core-components-skeleton/dist/modern';
30
- import '../../intersection-observer-0096c380.js';
30
+ import '../../intersection-observer-a3974639.js';
@@ -5,7 +5,7 @@ import { Optgroup } from '../../optgroup/Component.js';
5
5
  import { Button } from '@alfalab/core-components-button/dist/modern';
6
6
  import { BaseModalContext } from '@alfalab/core-components-base-modal/dist/modern';
7
7
 
8
- var styles = {"optionsList":"select__optionsList_1q58a","emptyPlaceholder":"select__emptyPlaceholder_1q58a","l":"select__l_1q58a","xl":"select__xl_1q58a","footer":"select__footer_1q58a","footerButton":"select__footerButton_1q58a","highlighted":"select__highlighted_1q58a"};
8
+ var styles = {"optionsList":"select__optionsList_qzwt4","emptyPlaceholder":"select__emptyPlaceholder_qzwt4","l":"select__l_qzwt4","xl":"select__xl_qzwt4","footer":"select__footer_qzwt4","footerButton":"select__footerButton_qzwt4","highlighted":"select__highlighted_qzwt4"};
9
9
  require('./index.css')
10
10
 
11
11
  const createCounter = () => {
@@ -1,4 +1,4 @@
1
- /* hash: hkeqs */
1
+ /* hash: 148oz */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -32,20 +32,20 @@
32
32
  --select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
33
33
  --select-mobile-footer-background-color: var(--color-light-bg-primary);
34
34
  }
35
- .select__optionsList_1q58a {
35
+ .select__optionsList_qzwt4 {
36
36
  width: 100%;
37
37
  outline: none;
38
38
  box-sizing: border-box;
39
39
  }
40
- .select__emptyPlaceholder_1q58a {
40
+ .select__emptyPlaceholder_qzwt4 {
41
41
  padding: var(--gap-m) var(--gap-s);
42
42
  color: var(--select-options-list-empty-placeholder-color);
43
43
  }
44
- .select__l_1q58a .select__emptyPlaceholder_1q58a,
45
- .select__xl_1q58a .select__emptyPlaceholder_1q58a {
44
+ .select__l_qzwt4 .select__emptyPlaceholder_qzwt4,
45
+ .select__xl_qzwt4 .select__emptyPlaceholder_qzwt4 {
46
46
  padding: var(--gap-xl) var(--gap-m);
47
47
  }
48
- .select__footer_1q58a {
48
+ .select__footer_qzwt4 {
49
49
  display: flex;
50
50
  justify-content: space-between;
51
51
  position: sticky;
@@ -53,13 +53,13 @@
53
53
  background-color: var(--color-light-bg-primary);
54
54
  bottom: 0
55
55
  }
56
- .select__footer_1q58a .select__footerButton_1q58a:first-of-type {
56
+ .select__footer_qzwt4 .select__footerButton_qzwt4:first-of-type {
57
57
  margin-right: var(--gap-m);
58
58
  }
59
- .select__footerButton_1q58a {
59
+ .select__footerButton_qzwt4 {
60
60
  width: 50%;
61
61
  }
62
- .select__highlighted_1q58a {
62
+ .select__highlighted_qzwt4 {
63
63
  border-top: var(--select-mobile-footer-border-top);
64
64
  background-color: var(--select-mobile-footer-background-color);
65
65
  }
@@ -6,7 +6,7 @@ import { Scrollbar } from '@alfalab/core-components-scrollbar/dist/modern';
6
6
  import { Optgroup } from '../optgroup/Component.js';
7
7
  import { useVirtual } from 'react-virtual';
8
8
 
9
- var styles = {"virtualOptionsList":"select__virtualOptionsList_rwteb","scrollable":"select__scrollable_rwteb","inner":"select__inner_rwteb","virtualRow":"select__virtualRow_rwteb","highlighted":"select__highlighted_rwteb","emptyPlaceholder":"select__emptyPlaceholder_rwteb","l":"select__l_rwteb","xl":"select__xl_rwteb"};
9
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_1bokl","scrollable":"select__scrollable_1bokl","inner":"select__inner_1bokl","virtualRow":"select__virtualRow_1bokl","highlighted":"select__highlighted_1bokl","emptyPlaceholder":"select__emptyPlaceholder_1bokl","l":"select__l_1bokl","xl":"select__xl_1bokl"};
10
10
  require('./index.css')
11
11
 
12
12
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -1,4 +1,4 @@
1
- /* hash: 15642 */
1
+ /* hash: qfbn3 */
2
2
  :root {
3
3
  --color-light-border-primary: #dbdee1;
4
4
  --color-light-text-secondary: #546272;
@@ -32,27 +32,27 @@
32
32
 
33
33
  /* optgroup */
34
34
  }
35
- .select__virtualOptionsList_rwteb {
35
+ .select__virtualOptionsList_1bokl {
36
36
  width: 100%;
37
37
  outline: none;
38
38
  box-sizing: border-box;
39
39
  position: relative;
40
40
  }
41
- .select__scrollable_rwteb {
41
+ .select__scrollable_1bokl {
42
42
  overflow: auto;
43
43
  width: 100%;
44
44
  }
45
- .select__inner_rwteb {
45
+ .select__inner_1bokl {
46
46
  position: relative;
47
47
  width: 100%;
48
48
  }
49
- .select__virtualRow_rwteb {
49
+ .select__virtualRow_1bokl {
50
50
  position: absolute;
51
51
  top: 0;
52
52
  left: 0;
53
53
  width: 100%
54
54
  }
55
- .select__virtualRow_rwteb:before {
55
+ .select__virtualRow_1bokl:before {
56
56
  content: '';
57
57
  position: absolute;
58
58
  z-index: 1;
@@ -63,18 +63,18 @@
63
63
  background: var(--select-option-divider-background);
64
64
  display: var(--select-option-divider-display);
65
65
  }
66
- .select__virtualRow_rwteb:first-child:before {
66
+ .select__virtualRow_1bokl:first-child:before {
67
67
  display: none;
68
68
  }
69
- .select__highlighted_rwteb:before,
70
- .select__highlighted_rwteb + .select__virtualRow_rwteb:before {
69
+ .select__highlighted_1bokl:before,
70
+ .select__highlighted_1bokl + .select__virtualRow_1bokl:before {
71
71
  display: none;
72
72
  }
73
- .select__emptyPlaceholder_rwteb {
73
+ .select__emptyPlaceholder_1bokl {
74
74
  padding: var(--gap-m) var(--gap-s);
75
75
  color: var(--select-options-list-empty-placeholder-color);
76
76
  }
77
- .select__l_rwteb .select__emptyPlaceholder_rwteb,
78
- .select__xl_rwteb .select__emptyPlaceholder_rwteb {
77
+ .select__l_1bokl .select__emptyPlaceholder_1bokl,
78
+ .select__xl_1bokl .select__emptyPlaceholder_1bokl {
79
79
  padding: var(--gap-xl) var(--gap-m);
80
80
  }
@@ -50,12 +50,7 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
50
50
  key: string;
51
51
  content: string;
52
52
  })[];
53
- onChange: (payload: {
54
- selected: OptionShape | null;
55
- selectedMultiple: OptionShape[];
56
- initiator: OptionShape | null;
57
- name?: string | undefined;
58
- }) => void;
53
+ onChange: (payload: import("./index").BaseSelectChangePayload) => void;
59
54
  selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
60
55
  };
61
56
  export { SELECT_ALL_KEY, useSelectWithApply };
@@ -17,17 +17,17 @@ import 'resize-observer';
17
17
  import '@alfalab/core-components-popover/dist/modern';
18
18
  import 'downshift';
19
19
  import './components/native-select/Component.js';
20
- export { B as BaseSelect } from './Component-4424bbf7.js';
20
+ export { B as BaseSelect } from './Component-909d89f0.js';
21
21
  export { Select } from './Component.js';
22
22
  import '@alfalab/core-components-bottom-sheet/dist/modern';
23
23
  import '@alfalab/core-components-button/dist/modern';
24
24
  import '@alfalab/core-components-base-modal/dist/modern';
25
25
  import './components/select-mobile/options-list/Component.js';
26
26
  import './components/select-mobile/checkmark/Component.js';
27
- export { a as SELECT_ALL_KEY, S as SelectMobile, u as useSelectWithApply } from './Component-e2443eca.js';
27
+ export { a as SELECT_ALL_KEY, S as SelectMobile, u as useSelectWithApply } from './Component-c64a4dc3.js';
28
28
  import 'react-virtual';
29
29
  export { VirtualOptionsList } from './components/virtual-options-list/Component.js';
30
30
  import '@alfalab/core-components-skeleton/dist/modern';
31
31
  export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
32
- import './intersection-observer-0096c380.js';
32
+ import './intersection-observer-a3974639.js';
33
33
  export { useLazyLoading } from './presets/useLazyLoading/hook.js';
@@ -17,16 +17,16 @@ import 'resize-observer';
17
17
  import '@alfalab/core-components-popover/dist/modern';
18
18
  import 'downshift';
19
19
  import '../components/native-select/Component.js';
20
- import '../Component-4424bbf7.js';
20
+ import '../Component-909d89f0.js';
21
21
  import '../Component.js';
22
22
  import '@alfalab/core-components-bottom-sheet/dist/modern';
23
23
  import '@alfalab/core-components-button/dist/modern';
24
24
  import '@alfalab/core-components-base-modal/dist/modern';
25
25
  import '../components/select-mobile/options-list/Component.js';
26
26
  import '../components/select-mobile/checkmark/Component.js';
27
- export { a as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-e2443eca.js';
27
+ export { a as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-c64a4dc3.js';
28
28
  import 'react-virtual';
29
29
  import '@alfalab/core-components-skeleton/dist/modern';
30
30
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
31
- import '../intersection-observer-0096c380.js';
31
+ import '../intersection-observer-a3974639.js';
32
32
  export { useLazyLoading } from './useLazyLoading/hook.js';
@@ -4,9 +4,9 @@ import '@alfalab/core-components-checkbox/dist/modern';
4
4
  import '../../components/checkmark/Component.js';
5
5
  import { Option } from '../../components/option/Component.js';
6
6
  import { Skeleton } from '@alfalab/core-components-skeleton/dist/modern';
7
- import '../../intersection-observer-0096c380.js';
7
+ import '../../intersection-observer-a3974639.js';
8
8
 
9
- var styles = {"skeleton":"select__skeleton_17ui8"};
9
+ var styles = {"skeleton":"select__skeleton_8p6rs"};
10
10
  require('./index.css')
11
11
 
12
12
  const DEBOUNCE_TIMEOUT = 300;
@@ -1,5 +1,5 @@
1
- /* hash: 13ze1 */
2
- .select__skeleton_17ui8 {
1
+ /* hash: 436hp */
2
+ .select__skeleton_8p6rs {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);