@alfalab/core-components-select 11.0.0 → 11.1.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.
Files changed (204) hide show
  1. package/{esm/Component-58f5059a.d.ts → Component-55235c19.d.ts} +5 -105
  2. package/{Component-18ff9441.js → Component-55235c19.js} +5 -5
  3. package/{Component-9553ed24.d.ts → Component-5a813263.d.ts} +0 -0
  4. package/{Component-9553ed24.js → Component-5a813263.js} +2 -2
  5. package/Component-afce40e0.d.ts +73 -0
  6. package/Component.js +2 -2
  7. package/Component.mobile-3fe0d3e6.d.ts +56 -0
  8. package/Context-c2e6f1b2.d.ts +4 -0
  9. package/components/arrow/Component.js +1 -1
  10. package/components/arrow/index.css +3 -3
  11. package/components/base-select/Component.js +2 -2
  12. package/components/base-select/index.css +7 -7
  13. package/components/base-select/index.d.ts +1 -1
  14. package/components/base-select/index.js +2 -2
  15. package/components/base-select-mobile/Component.js +4 -4
  16. package/components/base-select-mobile/checkmark/Component.js +1 -1
  17. package/components/base-select-mobile/checkmark/index.css +4 -4
  18. package/components/base-select-mobile/index.css +11 -11
  19. package/components/base-select-mobile/index.d.ts +1 -1
  20. package/components/base-select-mobile/index.js +4 -4
  21. package/components/base-select-mobile/options-list/Component.js +2 -2
  22. package/components/base-select-mobile/options-list/index.css +9 -9
  23. package/components/base-select-mobile/options-list/index.js +1 -1
  24. package/components/checkmark/Component.js +1 -1
  25. package/components/checkmark/index.css +7 -7
  26. package/components/field/Component.js +2 -2
  27. package/components/field/index.css +9 -9
  28. package/components/field/index.js +1 -1
  29. package/components/index.js +4 -4
  30. package/components/native-select/Component.js +1 -1
  31. package/components/native-select/index.js +1 -1
  32. package/components/optgroup/Component.js +1 -1
  33. package/components/optgroup/index.css +6 -6
  34. package/components/option/Component.js +2 -2
  35. package/components/option/index.css +20 -20
  36. package/components/option/index.js +1 -1
  37. package/components/options-list/Component.js +2 -2
  38. package/components/options-list/index.css +6 -6
  39. package/components/options-list/index.js +1 -1
  40. package/components/select-mobile/Component.js +4 -4
  41. package/components/select-mobile/index.d.ts +1 -1
  42. package/components/select-mobile/index.js +4 -4
  43. package/components/select-modal-mobile/Component.js +4 -4
  44. package/components/select-modal-mobile/index.d.ts +1 -1
  45. package/components/select-modal-mobile/index.js +4 -4
  46. package/components/virtual-options-list/Component.js +2 -2
  47. package/components/virtual-options-list/index.css +12 -12
  48. package/components/virtual-options-list/index.js +1 -1
  49. package/cssm/Component-26c7067e.d.ts +5 -105
  50. package/cssm/Component-afce40e0.d.ts +73 -0
  51. package/cssm/Component.mobile-3fe0d3e6.d.ts +56 -0
  52. package/cssm/Context-c2e6f1b2.d.ts +4 -0
  53. package/cssm/index-3fe0d3e6.d.ts +1 -0
  54. package/cssm/presets/useLazyLoading/hook.d.ts +2 -2
  55. package/cssm/presets/useLazyLoading/hook.js +1 -1
  56. package/cssm/presets/useSelectWithLoading/hook.d.ts +2 -2
  57. package/cssm/typings.d.ts +1 -1
  58. package/esm/{Component-0b67b2c6.d.ts → Component-5f810467.d.ts} +0 -0
  59. package/esm/{Component-0b67b2c6.js → Component-5f810467.js} +2 -2
  60. package/{Component-18ff9441.d.ts → esm/Component-6760ee58.d.ts} +5 -105
  61. package/esm/{Component-58f5059a.js → Component-6760ee58.js} +5 -5
  62. package/esm/Component-afce40e0.d.ts +73 -0
  63. package/esm/Component.js +2 -2
  64. package/esm/Component.mobile-3fe0d3e6.d.ts +56 -0
  65. package/esm/Context-c2e6f1b2.d.ts +4 -0
  66. package/esm/components/arrow/Component.js +1 -1
  67. package/esm/components/arrow/index.css +3 -3
  68. package/esm/components/base-select/Component.js +2 -2
  69. package/esm/components/base-select/index.css +7 -7
  70. package/esm/components/base-select/index.d.ts +1 -1
  71. package/esm/components/base-select/index.js +2 -2
  72. package/esm/components/base-select-mobile/Component.js +4 -4
  73. package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
  74. package/esm/components/base-select-mobile/checkmark/index.css +4 -4
  75. package/esm/components/base-select-mobile/index.css +11 -11
  76. package/esm/components/base-select-mobile/index.d.ts +1 -1
  77. package/esm/components/base-select-mobile/index.js +4 -4
  78. package/esm/components/base-select-mobile/options-list/Component.js +2 -2
  79. package/esm/components/base-select-mobile/options-list/index.css +9 -9
  80. package/esm/components/base-select-mobile/options-list/index.js +1 -1
  81. package/esm/components/checkmark/Component.js +1 -1
  82. package/esm/components/checkmark/index.css +7 -7
  83. package/esm/components/field/Component.js +2 -2
  84. package/esm/components/field/index.css +9 -9
  85. package/esm/components/field/index.js +1 -1
  86. package/esm/components/index.js +4 -4
  87. package/esm/components/native-select/Component.js +1 -1
  88. package/esm/components/native-select/index.js +1 -1
  89. package/esm/components/optgroup/Component.js +1 -1
  90. package/esm/components/optgroup/index.css +6 -6
  91. package/esm/components/option/Component.js +2 -2
  92. package/esm/components/option/index.css +20 -20
  93. package/esm/components/option/index.js +1 -1
  94. package/esm/components/options-list/Component.js +2 -2
  95. package/esm/components/options-list/index.css +6 -6
  96. package/esm/components/options-list/index.js +1 -1
  97. package/esm/components/select-mobile/Component.js +4 -4
  98. package/esm/components/select-mobile/index.d.ts +1 -1
  99. package/esm/components/select-mobile/index.js +4 -4
  100. package/esm/components/select-modal-mobile/Component.js +4 -4
  101. package/esm/components/select-modal-mobile/index.d.ts +1 -1
  102. package/esm/components/select-modal-mobile/index.js +4 -4
  103. package/esm/components/virtual-options-list/Component.js +2 -2
  104. package/esm/components/virtual-options-list/index.css +12 -12
  105. package/esm/components/virtual-options-list/index.js +1 -1
  106. package/esm/index-3fe0d3e6.d.ts +1 -0
  107. package/esm/index.js +4 -4
  108. package/esm/{intersection-observer-703738f3.d.ts → intersection-observer-a2645118.d.ts} +0 -0
  109. package/esm/{intersection-observer-703738f3.js → intersection-observer-a2645118.js} +0 -0
  110. package/esm/presets/index.js +4 -4
  111. package/esm/presets/useLazyLoading/hook.d.ts +2 -2
  112. package/esm/presets/useLazyLoading/hook.js +4 -4
  113. package/esm/presets/useLazyLoading/index.css +2 -2
  114. package/esm/presets/useSelectWithApply/hook.js +4 -4
  115. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
  116. package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  117. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  118. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
  119. package/esm/presets/useSelectWithLoading/hook.d.ts +2 -2
  120. package/esm/presets/useSelectWithLoading/hook.js +2 -2
  121. package/esm/presets/useSelectWithLoading/index.css +2 -2
  122. package/esm/{tslib.es6-592d2b07.d.ts → tslib.es6-5d7a62db.d.ts} +0 -0
  123. package/esm/{tslib.es6-592d2b07.js → tslib.es6-5d7a62db.js} +0 -0
  124. package/esm/typings.d.ts +1 -1
  125. package/index-3fe0d3e6.d.ts +1 -0
  126. package/index.js +4 -4
  127. package/{intersection-observer-faaf10c5.d.ts → intersection-observer-c7ed8f56.d.ts} +0 -0
  128. package/{intersection-observer-faaf10c5.js → intersection-observer-c7ed8f56.js} +0 -0
  129. package/modern/{Component-38c8530c.d.ts → Component-94ced1c5.d.ts} +5 -105
  130. package/modern/{Component-38c8530c.js → Component-94ced1c5.js} +4 -4
  131. package/modern/{Component-0dd472ca.d.ts → Component-98ab6d71.d.ts} +0 -0
  132. package/modern/{Component-0dd472ca.js → Component-98ab6d71.js} +2 -2
  133. package/modern/Component-afce40e0.d.ts +73 -0
  134. package/modern/Component.js +1 -1
  135. package/modern/Component.mobile-3fe0d3e6.d.ts +56 -0
  136. package/modern/Context-c2e6f1b2.d.ts +4 -0
  137. package/modern/components/arrow/Component.js +1 -1
  138. package/modern/components/arrow/index.css +3 -3
  139. package/modern/components/base-select/Component.js +1 -1
  140. package/modern/components/base-select/index.css +7 -7
  141. package/modern/components/base-select/index.d.ts +1 -1
  142. package/modern/components/base-select/index.js +1 -1
  143. package/modern/components/base-select-mobile/Component.js +3 -3
  144. package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
  145. package/modern/components/base-select-mobile/checkmark/index.css +4 -4
  146. package/modern/components/base-select-mobile/index.css +11 -11
  147. package/modern/components/base-select-mobile/index.d.ts +1 -1
  148. package/modern/components/base-select-mobile/index.js +3 -3
  149. package/modern/components/base-select-mobile/options-list/Component.js +1 -1
  150. package/modern/components/base-select-mobile/options-list/index.css +9 -9
  151. package/modern/components/checkmark/Component.js +1 -1
  152. package/modern/components/checkmark/index.css +7 -7
  153. package/modern/components/field/Component.js +1 -1
  154. package/modern/components/field/index.css +9 -9
  155. package/modern/components/index.js +3 -3
  156. package/modern/components/native-select/Component.js +1 -1
  157. package/modern/components/optgroup/Component.js +1 -1
  158. package/modern/components/optgroup/index.css +6 -6
  159. package/modern/components/option/Component.js +1 -1
  160. package/modern/components/option/index.css +20 -20
  161. package/modern/components/options-list/Component.js +1 -1
  162. package/modern/components/options-list/index.css +6 -6
  163. package/modern/components/select-mobile/Component.js +3 -3
  164. package/modern/components/select-mobile/index.d.ts +1 -1
  165. package/modern/components/select-mobile/index.js +3 -3
  166. package/modern/components/select-modal-mobile/Component.js +3 -3
  167. package/modern/components/select-modal-mobile/index.d.ts +1 -1
  168. package/modern/components/select-modal-mobile/index.js +3 -3
  169. package/modern/components/virtual-options-list/Component.js +1 -1
  170. package/modern/components/virtual-options-list/index.css +12 -12
  171. package/modern/index-3fe0d3e6.d.ts +1 -0
  172. package/modern/index.js +3 -3
  173. package/modern/{intersection-observer-703738f3.d.ts → intersection-observer-a2645118.d.ts} +0 -0
  174. package/modern/{intersection-observer-703738f3.js → intersection-observer-a2645118.js} +0 -0
  175. package/modern/presets/index.js +3 -3
  176. package/modern/presets/useLazyLoading/hook.d.ts +2 -2
  177. package/modern/presets/useLazyLoading/hook.js +3 -3
  178. package/modern/presets/useLazyLoading/index.css +2 -2
  179. package/modern/presets/useSelectWithApply/hook.js +3 -3
  180. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  181. package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  182. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  183. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  184. package/modern/presets/useSelectWithLoading/hook.d.ts +2 -2
  185. package/modern/presets/useSelectWithLoading/hook.js +2 -2
  186. package/modern/presets/useSelectWithLoading/index.css +2 -2
  187. package/modern/typings.d.ts +1 -1
  188. package/package.json +14 -14
  189. package/presets/index.js +4 -4
  190. package/presets/useLazyLoading/hook.d.ts +2 -2
  191. package/presets/useLazyLoading/hook.js +4 -4
  192. package/presets/useLazyLoading/index.css +2 -2
  193. package/presets/useSelectWithApply/hook.js +4 -4
  194. package/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
  195. package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  196. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  197. package/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
  198. package/presets/useSelectWithLoading/hook.d.ts +2 -2
  199. package/presets/useSelectWithLoading/hook.js +2 -2
  200. package/presets/useSelectWithLoading/index.css +2 -2
  201. package/{tslib.es6-ba2d6054.d.ts → tslib.es6-2d734c90.d.ts} +0 -0
  202. package/{tslib.es6-ba2d6054.js → tslib.es6-2d734c90.js} +0 -0
  203. package/typings.d.ts +1 -1
  204. package/CHANGELOG.md +0 -1021
@@ -1,4 +1,4 @@
1
- /* hash: 1x1cn */
1
+ /* hash: losjt */
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_1bk4a {
29
+ .select__component_1nc8p {
30
30
  width: 100%;
31
31
  outline: none;
32
32
  }
33
- .select__field_1bk4a:not(.select__disabled_1bk4a) {
33
+ .select__field_1nc8p:not(.select__disabled_1nc8p) {
34
34
  cursor: pointer
35
35
  }
36
- .select__field_1bk4a:not(.select__disabled_1bk4a):hover .select__arrow_1bk4a {
36
+ .select__field_1nc8p:not(.select__disabled_1nc8p):hover .select__arrow_1nc8p {
37
37
  opacity: var(--select-arrow-hover-opacity);
38
38
  }
39
- .select__disabled_1bk4a {
39
+ .select__disabled_1nc8p {
40
40
  cursor: var(--disabled-cursor);
41
41
  }
42
42
  /* TODO: Заюзать переменные из инпута */
43
- .select__placeholder_1bk4a {
43
+ .select__placeholder_1nc8p {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .select__contentWrapper_1bk4a {
46
+ .select__contentWrapper_1nc8p {
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_1bk4a {
56
+ .select__value_1nc8p {
57
57
  overflow: hidden;
58
58
  text-overflow: ellipsis;
59
59
  text-align: left;
60
60
  }
61
- .select__focusVisible_1bk4a {
61
+ .select__focusVisible_1nc8p {
62
62
  outline: 2px solid var(--focus-color);
63
63
  outline-offset: 2px;
64
64
  }
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -1,4 +1,4 @@
1
- import '../tslib.es6-592d2b07.js';
1
+ import '../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
18
18
  import '@alfalab/core-components-popover/esm';
19
19
  import 'downshift';
20
20
  import './native-select/Component.js';
21
- export { B as BaseSelect } from '../Component-0b67b2c6.js';
21
+ export { B as BaseSelect } from '../Component-5f810467.js';
22
22
  import '../Component.js';
23
23
  import '@alfalab/core-components-bottom-sheet/esm';
24
24
  import '@alfalab/core-components-modal/esm/mobile';
@@ -26,8 +26,8 @@ import '@alfalab/core-components-button/esm';
26
26
  import '@alfalab/core-components-base-modal/esm';
27
27
  import './base-select-mobile/options-list/Component.js';
28
28
  import './base-select-mobile/checkmark/Component.js';
29
- export { S as SelectMobile, a as SelectModalMobile } from '../Component-58f5059a.js';
29
+ export { S as SelectMobile, a as SelectModalMobile } from '../Component-6760ee58.js';
30
30
  import 'react-virtual';
31
31
  export { VirtualOptionsList } from './virtual-options-list/Component.js';
32
32
  import '@alfalab/core-components-skeleton/esm';
33
- import '../intersection-observer-703738f3.js';
33
+ import '../intersection-observer-a2645118.js';
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-592d2b07.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-5d7a62db.js';
2
2
  import React, { forwardRef, useCallback } from 'react';
3
3
  import { isGroup } from '../../utils.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import '../../utils.js';
4
4
  export { NativeSelect } from './Component.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_1m4sv","label":"select__label_1m4sv","l":"select__l_1m4sv","xl":"select__xl_1m4sv"};
4
+ var styles = {"optgroup":"select__optgroup_1abx3","label":"select__label_1abx3","l":"select__l_1abx3","xl":"select__xl_1abx3"};
5
5
  require('./index.css')
6
6
 
7
7
  var Optgroup = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 14ttm */
1
+ /* hash: 5oi5c */
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_1m4sv {
36
+ .select__optgroup_1abx3 {
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_1m4sv + *[role='option']:before {
46
+ .select__optgroup_1abx3 + *[role='option']:before {
47
47
  display: none;
48
48
  }
49
- .select__label_1m4sv {
49
+ .select__label_1abx3 {
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_1m4sv,
60
- .select__xl_1m4sv {
59
+ .select__l_1abx3,
60
+ .select__xl_1abx3 {
61
61
  padding-left: var(--select-optgroup-l-left-padding);
62
62
  padding-right: var(--select-optgroup-l-right-padding);
63
63
  }
@@ -1,10 +1,10 @@
1
- import { a as __assign } from '../../tslib.es6-592d2b07.js';
1
+ import { a as __assign } from '../../tslib.es6-5d7a62db.js';
2
2
  import React, { isValidElement } from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-checkbox/esm';
5
5
  import { Checkmark } from '../checkmark/Component.js';
6
6
 
7
- var styles = {"option":"select__option_b321l","disabled":"select__disabled_b321l","s":"select__s_b321l","m":"select__m_b321l","l":"select__l_b321l","xl":"select__xl_b321l","selected":"select__selected_b321l","highlighted":"select__highlighted_b321l","content":"select__content_b321l","textContent":"select__textContent_b321l"};
7
+ var styles = {"option":"select__option_1qxht","disabled":"select__disabled_1qxht","s":"select__s_1qxht","m":"select__m_1qxht","l":"select__l_1qxht","xl":"select__xl_1qxht","selected":"select__selected_1qxht","highlighted":"select__highlighted_1qxht","content":"select__content_1qxht","textContent":"select__textContent_1qxht"};
8
8
  require('./index.css')
9
9
 
10
10
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: yuau8 */
1
+ /* hash: 1xzmb */
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_b321l {
56
+ .select__option_1qxht {
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_b321l:not(.select__disabled_b321l):active {
72
+ .select__option_1qxht:not(.select__disabled_1qxht):active {
73
73
  background: var(--select-option-active-background);
74
74
  color: var(--select-option-active-color);
75
75
  }
76
- .select__option_b321l:before {
76
+ .select__option_1qxht: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_b321l:first-child:before {
87
+ .select__option_1qxht:first-child:before {
88
88
  display: none;
89
89
  }
90
- .select__s_b321l {
90
+ .select__s_1qxht {
91
91
  min-height: var(--size-s-height);
92
92
  }
93
- .select__m_b321l {
93
+ .select__m_1qxht {
94
94
  min-height: var(--size-m-height);
95
95
  }
96
- .select__l_b321l {
96
+ .select__l_1qxht {
97
97
  min-height: var(--size-l-height);
98
98
  }
99
- .select__xl_b321l {
99
+ .select__xl_1qxht {
100
100
  min-height: var(--size-xl-height);
101
101
  }
102
- .select__l_b321l,
103
- .select__xl_b321l {
102
+ .select__l_1qxht,
103
+ .select__xl_1qxht {
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_b321l:before, .select__xl_b321l:before {
107
+ .select__l_1qxht:before, .select__xl_1qxht:before {
108
108
  left: var(--select-option-l-left-padding);
109
109
  right: var(--select-option-l-right-padding);
110
110
  }
111
- .select__selected_b321l {
111
+ .select__selected_1qxht {
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_b321l {
116
+ .select__highlighted_1qxht {
117
117
  background: var(--select-option-hover-background);
118
118
  color: var(--select-option-hover-color)
119
119
  }
120
- .select__highlighted_b321l:before,
121
- .select__highlighted_b321l + .select__option_b321l:before {
120
+ .select__highlighted_1qxht:before,
121
+ .select__highlighted_1qxht + .select__option_1qxht:before {
122
122
  opacity: 0;
123
123
  }
124
- .select__disabled_b321l {
124
+ .select__disabled_1qxht {
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_b321l {
129
+ .select__content_1qxht {
130
130
  overflow: hidden;
131
131
  flex: 1;
132
132
  text-overflow: ellipsis;
133
133
  }
134
- .select__textContent_b321l {
134
+ .select__textContent_1qxht {
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_b321l:after {
140
+ .select__option_1qxht:after {
141
141
  min-height: inherit;
142
142
  font-size: 0;
143
143
  content: '';
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-checkbox/esm';
@@ -1,4 +1,4 @@
1
- import { a as __assign } from '../../tslib.es6-592d2b07.js';
1
+ import { a as __assign } from '../../tslib.es6-5d7a62db.js';
2
2
  import React, { forwardRef, useCallback, useRef } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { useMedia } from '@alfalab/hooks';
@@ -7,7 +7,7 @@ import mergeRefs from 'react-merge-refs';
7
7
  import { Scrollbar } from '@alfalab/core-components-scrollbar/esm';
8
8
  import { Optgroup } from '../optgroup/Component.js';
9
9
 
10
- var styles = {"optionsList":"select__optionsList_9vdr5","scrollable":"select__scrollable_9vdr5","emptyPlaceholder":"select__emptyPlaceholder_9vdr5","l":"select__l_9vdr5","xl":"select__xl_9vdr5"};
10
+ var styles = {"optionsList":"select__optionsList_lo9jb","scrollable":"select__scrollable_lo9jb","emptyPlaceholder":"select__emptyPlaceholder_lo9jb","l":"select__l_lo9jb","xl":"select__xl_lo9jb"};
11
11
  require('./index.css')
12
12
 
13
13
  var createCounter = function () {
@@ -1,4 +1,4 @@
1
- /* hash: 624v6 */
1
+ /* hash: 157gc */
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_9vdr5 {
29
+ .select__optionsList_lo9jb {
30
30
  overflow: auto;
31
31
  width: 100%;
32
32
  outline: none;
33
33
  box-sizing: border-box;
34
34
  }
35
- .select__scrollable_9vdr5 {
35
+ .select__scrollable_lo9jb {
36
36
  overflow: auto;
37
37
  width: 100%;
38
38
  }
39
- .select__emptyPlaceholder_9vdr5 {
39
+ .select__emptyPlaceholder_lo9jb {
40
40
  padding: var(--gap-m) var(--gap-s);
41
41
  color: var(--select-options-list-empty-placeholder-color);
42
42
  }
43
- .select__l_9vdr5 .select__emptyPlaceholder_9vdr5,
44
- .select__xl_9vdr5 .select__emptyPlaceholder_9vdr5 {
43
+ .select__l_lo9jb .select__emptyPlaceholder_lo9jb,
44
+ .select__xl_lo9jb .select__emptyPlaceholder_lo9jb {
45
45
  padding: var(--gap-xl) var(--gap-m);
46
46
  }
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
18
18
  import '@alfalab/core-components-popover/esm';
19
19
  import 'downshift';
20
20
  import '../native-select/Component.js';
21
- import '../../Component-0b67b2c6.js';
21
+ import '../../Component-5f810467.js';
22
22
  import '../../Component.js';
23
23
  import '@alfalab/core-components-bottom-sheet/esm';
24
24
  import '@alfalab/core-components-modal/esm/mobile';
@@ -26,7 +26,7 @@ import '@alfalab/core-components-button/esm';
26
26
  import '@alfalab/core-components-base-modal/esm';
27
27
  import '../base-select-mobile/options-list/Component.js';
28
28
  import '../base-select-mobile/checkmark/Component.js';
29
- export { S as SelectMobile } from '../../Component-58f5059a.js';
29
+ export { S as SelectMobile } from '../../Component-6760ee58.js';
30
30
  import 'react-virtual';
31
31
  import '@alfalab/core-components-skeleton/esm';
32
- import '../../intersection-observer-703738f3.js';
32
+ import '../../intersection-observer-a2645118.js';
@@ -1 +1 @@
1
- export * from "../../Component-58f5059a";
1
+ export * from "../../Component-6760ee58";
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
18
18
  import '@alfalab/core-components-popover/esm';
19
19
  import 'downshift';
20
20
  import '../native-select/Component.js';
21
- import '../../Component-0b67b2c6.js';
21
+ import '../../Component-5f810467.js';
22
22
  import '../../Component.js';
23
23
  import '@alfalab/core-components-bottom-sheet/esm';
24
24
  import '@alfalab/core-components-modal/esm/mobile';
@@ -26,7 +26,7 @@ import '@alfalab/core-components-button/esm';
26
26
  import '@alfalab/core-components-base-modal/esm';
27
27
  import '../base-select-mobile/options-list/Component.js';
28
28
  import '../base-select-mobile/checkmark/Component.js';
29
- export { S as SelectMobile } from '../../Component-58f5059a.js';
29
+ export { S as SelectMobile } from '../../Component-6760ee58.js';
30
30
  import 'react-virtual';
31
31
  import '@alfalab/core-components-skeleton/esm';
32
- import '../../intersection-observer-703738f3.js';
32
+ import '../../intersection-observer-a2645118.js';
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
18
18
  import '@alfalab/core-components-popover/esm';
19
19
  import 'downshift';
20
20
  import '../native-select/Component.js';
21
- import '../../Component-0b67b2c6.js';
21
+ import '../../Component-5f810467.js';
22
22
  import '../../Component.js';
23
23
  import '@alfalab/core-components-bottom-sheet/esm';
24
24
  import '@alfalab/core-components-modal/esm/mobile';
@@ -26,7 +26,7 @@ import '@alfalab/core-components-button/esm';
26
26
  import '@alfalab/core-components-base-modal/esm';
27
27
  import '../base-select-mobile/options-list/Component.js';
28
28
  import '../base-select-mobile/checkmark/Component.js';
29
- export { a as SelectModalMobile } from '../../Component-58f5059a.js';
29
+ export { a as SelectModalMobile } from '../../Component-6760ee58.js';
30
30
  import 'react-virtual';
31
31
  import '@alfalab/core-components-skeleton/esm';
32
- import '../../intersection-observer-703738f3.js';
32
+ import '../../intersection-observer-a2645118.js';
@@ -1 +1 @@
1
- export * from "../../Component-58f5059a";
1
+ export * from "../../Component-6760ee58";
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
18
18
  import '@alfalab/core-components-popover/esm';
19
19
  import 'downshift';
20
20
  import '../native-select/Component.js';
21
- import '../../Component-0b67b2c6.js';
21
+ import '../../Component-5f810467.js';
22
22
  import '../../Component.js';
23
23
  import '@alfalab/core-components-bottom-sheet/esm';
24
24
  import '@alfalab/core-components-modal/esm/mobile';
@@ -26,7 +26,7 @@ import '@alfalab/core-components-button/esm';
26
26
  import '@alfalab/core-components-base-modal/esm';
27
27
  import '../base-select-mobile/options-list/Component.js';
28
28
  import '../base-select-mobile/checkmark/Component.js';
29
- export { a as SelectModalMobile } from '../../Component-58f5059a.js';
29
+ export { a as SelectModalMobile } from '../../Component-6760ee58.js';
30
30
  import 'react-virtual';
31
31
  import '@alfalab/core-components-skeleton/esm';
32
- import '../../intersection-observer-703738f3.js';
32
+ import '../../intersection-observer-a2645118.js';
@@ -1,4 +1,4 @@
1
- import { a as __assign } from '../../tslib.es6-592d2b07.js';
1
+ import { a as __assign } from '../../tslib.es6-5d7a62db.js';
2
2
  import React, { useRef, useState, useEffect, useMemo } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { useMedia } from '@alfalab/hooks';
@@ -7,7 +7,7 @@ import { Scrollbar } from '@alfalab/core-components-scrollbar/esm';
7
7
  import { Optgroup } from '../optgroup/Component.js';
8
8
  import { useVirtual } from 'react-virtual';
9
9
 
10
- var styles = {"virtualOptionsList":"select__virtualOptionsList_1ufqv","scrollable":"select__scrollable_1ufqv","inner":"select__inner_1ufqv","virtualRow":"select__virtualRow_1ufqv","highlighted":"select__highlighted_1ufqv","emptyPlaceholder":"select__emptyPlaceholder_1ufqv","l":"select__l_1ufqv","xl":"select__xl_1ufqv"};
10
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_76r7v","scrollable":"select__scrollable_76r7v","inner":"select__inner_76r7v","virtualRow":"select__virtualRow_76r7v","highlighted":"select__highlighted_76r7v","emptyPlaceholder":"select__emptyPlaceholder_76r7v","l":"select__l_76r7v","xl":"select__xl_76r7v"};
11
11
  require('./index.css')
12
12
 
13
13
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -1,4 +1,4 @@
1
- /* hash: 14oz2 */
1
+ /* hash: kx7vc */
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_1ufqv {
35
+ .select__virtualOptionsList_76r7v {
36
36
  width: 100%;
37
37
  outline: none;
38
38
  box-sizing: border-box;
39
39
  position: relative;
40
40
  }
41
- .select__scrollable_1ufqv {
41
+ .select__scrollable_76r7v {
42
42
  overflow: auto;
43
43
  width: 100%;
44
44
  }
45
- .select__inner_1ufqv {
45
+ .select__inner_76r7v {
46
46
  position: relative;
47
47
  width: 100%;
48
48
  }
49
- .select__virtualRow_1ufqv {
49
+ .select__virtualRow_76r7v {
50
50
  position: absolute;
51
51
  top: 0;
52
52
  left: 0;
53
53
  width: 100%
54
54
  }
55
- .select__virtualRow_1ufqv:before {
55
+ .select__virtualRow_76r7v: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_1ufqv:first-child:before {
66
+ .select__virtualRow_76r7v:first-child:before {
67
67
  display: none;
68
68
  }
69
- .select__highlighted_1ufqv:before,
70
- .select__highlighted_1ufqv + .select__virtualRow_1ufqv:before {
69
+ .select__highlighted_76r7v:before,
70
+ .select__highlighted_76r7v + .select__virtualRow_76r7v:before {
71
71
  display: none;
72
72
  }
73
- .select__emptyPlaceholder_1ufqv {
73
+ .select__emptyPlaceholder_76r7v {
74
74
  padding: var(--gap-m) var(--gap-s);
75
75
  color: var(--select-options-list-empty-placeholder-color);
76
76
  }
77
- .select__l_1ufqv .select__emptyPlaceholder_1ufqv,
78
- .select__xl_1ufqv .select__emptyPlaceholder_1ufqv {
77
+ .select__l_76r7v .select__emptyPlaceholder_76r7v,
78
+ .select__xl_76r7v .select__emptyPlaceholder_76r7v {
79
79
  padding: var(--gap-xl) var(--gap-m);
80
80
  }
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-592d2b07.js';
1
+ import '../../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -0,0 +1 @@
1
+ export * from "./getDataTestId-3fe0d3e6";
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-592d2b07.js';
1
+ import './tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
18
18
  import '@alfalab/core-components-popover/esm';
19
19
  import 'downshift';
20
20
  import './components/native-select/Component.js';
21
- export { B as BaseSelect } from './Component-0b67b2c6.js';
21
+ export { B as BaseSelect } from './Component-5f810467.js';
22
22
  export { Select } from './Component.js';
23
23
  import '@alfalab/core-components-bottom-sheet/esm';
24
24
  import '@alfalab/core-components-modal/esm/mobile';
@@ -26,10 +26,10 @@ import '@alfalab/core-components-button/esm';
26
26
  import '@alfalab/core-components-base-modal/esm';
27
27
  import './components/base-select-mobile/options-list/Component.js';
28
28
  import './components/base-select-mobile/checkmark/Component.js';
29
- export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-58f5059a.js';
29
+ export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-6760ee58.js';
30
30
  import 'react-virtual';
31
31
  export { VirtualOptionsList } from './components/virtual-options-list/Component.js';
32
32
  import '@alfalab/core-components-skeleton/esm';
33
33
  export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
34
- import './intersection-observer-703738f3.js';
34
+ import './intersection-observer-a2645118.js';
35
35
  export { useLazyLoading } from './presets/useLazyLoading/hook.js';
@@ -1,4 +1,4 @@
1
- import '../tslib.es6-592d2b07.js';
1
+ import '../tslib.es6-5d7a62db.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
18
18
  import '@alfalab/core-components-popover/esm';
19
19
  import 'downshift';
20
20
  import '../components/native-select/Component.js';
21
- import '../Component-0b67b2c6.js';
21
+ import '../Component-5f810467.js';
22
22
  import '../Component.js';
23
23
  import '@alfalab/core-components-bottom-sheet/esm';
24
24
  import '@alfalab/core-components-modal/esm/mobile';
@@ -26,9 +26,9 @@ import '@alfalab/core-components-button/esm';
26
26
  import '@alfalab/core-components-base-modal/esm';
27
27
  import '../components/base-select-mobile/options-list/Component.js';
28
28
  import '../components/base-select-mobile/checkmark/Component.js';
29
- export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-58f5059a.js';
29
+ export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-6760ee58.js';
30
30
  import 'react-virtual';
31
31
  import '@alfalab/core-components-skeleton/esm';
32
32
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
33
- import '../intersection-observer-703738f3.js';
33
+ import '../intersection-observer-a2645118.js';
34
34
  export { useLazyLoading } from './useLazyLoading/hook.js';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptionShape } from "../../typings";
3
+ import { OptionProps, OptionShape } from "../../typings";
4
4
  type OptionsFetcherResponse = {
5
5
  options: OptionShape[];
6
6
  hasMore: boolean;
@@ -26,7 +26,7 @@ type useLazyLoadingProps = {
26
26
  };
27
27
  declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, }: useLazyLoadingProps): {
28
28
  optionsProps: {
29
- Option: (props: any) => JSX.Element;
29
+ Option: (props: OptionProps) => JSX.Element;
30
30
  options: OptionShape[];
31
31
  optionsListProps: {
32
32
  ref: React.RefObject<HTMLDivElement>;
@@ -1,13 +1,13 @@
1
- import { a as __assign, b as __spreadArrays } from '../../tslib.es6-592d2b07.js';
1
+ import { a as __assign, b as __spreadArrays } from '../../tslib.es6-5d7a62db.js';
2
2
  import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-checkbox/esm';
5
5
  import '../../components/checkmark/Component.js';
6
6
  import { Option } from '../../components/option/Component.js';
7
7
  import { Skeleton } from '@alfalab/core-components-skeleton/esm';
8
- import '../../intersection-observer-703738f3.js';
8
+ import '../../intersection-observer-a2645118.js';
9
9
 
10
- var styles = {"skeleton":"select__skeleton_1qjc9"};
10
+ var styles = {"skeleton":"select__skeleton_aowh3"};
11
11
  require('./index.css')
12
12
 
13
13
  var DEBOUNCE_TIMEOUT = 300;
@@ -168,7 +168,7 @@ function useLazyLoading(_a) {
168
168
  }, DEBOUNCE_TIMEOUT);
169
169
  /* eslint-enable */
170
170
  }, []);
171
- var renderOption = useCallback(function (props) { return React.createElement(Option, __assign({}, props, { highlighted: loading ? false : props.highlighted })); }, [loading]);
171
+ var renderOption = useCallback(function (props) { return (React.createElement(Option, __assign({}, props, { highlighted: loading ? false : props.highlighted }))); }, [loading]);
172
172
  var skeletonOptions = useMemo(function () {
173
173
  return Array(loading ? limit : 0)
174
174
  .fill(0)