@alfalab/core-components-select 13.2.13 → 13.2.15

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 (233) hide show
  1. package/{cssm/Component-1481ef6b.d.ts → Component-001db41f.d.ts} +2 -1
  2. package/{Component-ca307b80.js → Component-001db41f.js} +4 -2
  3. package/Component-3885b0d7.d.ts +169 -0
  4. package/Component-71240601.d.ts +142 -0
  5. package/{Component-088caba2.js → Component-71240601.js} +4 -4
  6. package/Component.js +1 -1
  7. package/Component.responsive.js +3 -3
  8. package/components/arrow/Component.js +1 -1
  9. package/components/arrow/index.css +3 -3
  10. package/components/base-checkmark/Component.js +1 -1
  11. package/components/base-checkmark/index.css +4 -4
  12. package/components/base-option/Component.js +1 -1
  13. package/components/base-option/index.css +13 -13
  14. package/components/base-select/Component.js +1 -1
  15. package/components/base-select/index.css +7 -7
  16. package/components/base-select/index.d.ts +1 -1
  17. package/components/base-select/index.js +1 -1
  18. package/components/base-select-mobile/Component.js +3 -3
  19. package/components/base-select-mobile/checkmark/Component.js +1 -1
  20. package/components/base-select-mobile/checkmark/index.css +6 -6
  21. package/components/base-select-mobile/index.css +11 -11
  22. package/components/base-select-mobile/index.d.ts +1 -1
  23. package/components/base-select-mobile/index.js +3 -3
  24. package/components/base-select-mobile/options-list/Component.js +1 -1
  25. package/components/base-select-mobile/options-list/index.css +9 -9
  26. package/components/base-select-mobile/virtual-options-list/Component.js +1 -1
  27. package/components/base-select-mobile/virtual-options-list/index.css +15 -15
  28. package/components/checkmark/Component.js +1 -1
  29. package/components/checkmark/index.css +10 -10
  30. package/components/field/Component.js +1 -1
  31. package/components/field/index.css +9 -9
  32. package/components/index.js +3 -3
  33. package/components/optgroup/Component.js +1 -1
  34. package/components/optgroup/index.css +6 -6
  35. package/components/option/Component.js +1 -1
  36. package/components/option/index.css +20 -20
  37. package/components/options-list/Component.js +1 -1
  38. package/components/options-list/index.css +6 -6
  39. package/components/select-mobile/Component.js +3 -3
  40. package/components/select-mobile/index.d.ts +1 -1
  41. package/components/select-mobile/index.js +3 -3
  42. package/components/select-modal-mobile/Component.js +3 -3
  43. package/components/select-modal-mobile/index.d.ts +1 -1
  44. package/components/select-modal-mobile/index.js +3 -3
  45. package/components/virtual-options-list/Component.js +1 -1
  46. package/components/virtual-options-list/index.css +12 -12
  47. package/cssm/Component-3885b0d7.d.ts +169 -0
  48. package/{esm/Component-82c9c6a4.d.ts → cssm/Component-aaa9f3a7.d.ts} +2 -1
  49. package/cssm/{Component-1481ef6b.js → Component-aaa9f3a7.js} +3 -1
  50. package/cssm/Component-e9709f88.d.ts +142 -0
  51. package/cssm/{Component-8f0723b4.js → Component-e9709f88.js} +1 -1
  52. package/cssm/Component.js +1 -1
  53. package/cssm/Component.responsive.js +2 -2
  54. package/cssm/components/base-select/Component.js +1 -1
  55. package/cssm/components/base-select/index.d.ts +1 -1
  56. package/cssm/components/base-select/index.js +1 -1
  57. package/cssm/components/base-select-mobile/Component.js +2 -2
  58. package/cssm/components/base-select-mobile/index.d.ts +1 -1
  59. package/cssm/components/base-select-mobile/index.js +2 -2
  60. package/cssm/components/index.js +2 -2
  61. package/cssm/components/select-mobile/Component.js +2 -2
  62. package/cssm/components/select-mobile/index.d.ts +1 -1
  63. package/cssm/components/select-mobile/index.js +2 -2
  64. package/cssm/components/select-modal-mobile/Component.js +2 -2
  65. package/cssm/components/select-modal-mobile/index.d.ts +1 -1
  66. package/cssm/components/select-modal-mobile/index.js +2 -2
  67. package/cssm/{index-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +1 -1
  68. package/cssm/index-ebda875c.d.ts +74 -0
  69. package/cssm/index.js +2 -2
  70. package/cssm/presets/index.js +2 -2
  71. package/cssm/presets/useLazyLoading/hook.js +2 -2
  72. package/cssm/presets/useSelectWithApply/hook.js +2 -2
  73. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +2 -2
  74. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  75. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +2 -2
  76. package/cssm/responsive.js +2 -2
  77. package/cssm/types-ebda875c.d.ts +113 -0
  78. package/cssm/typings.d.ts +5 -5
  79. package/esm/Component-0a180244.d.ts +142 -0
  80. package/esm/{Component-23df669b.js → Component-0a180244.js} +4 -4
  81. package/esm/Component-3885b0d7.d.ts +169 -0
  82. package/{Component-ca307b80.d.ts → esm/Component-4bb3c303.d.ts} +2 -1
  83. package/esm/{Component-82c9c6a4.js → Component-4bb3c303.js} +4 -2
  84. package/esm/Component.js +1 -1
  85. package/esm/Component.responsive.js +3 -3
  86. package/esm/components/arrow/Component.js +1 -1
  87. package/esm/components/arrow/index.css +3 -3
  88. package/esm/components/base-checkmark/Component.js +1 -1
  89. package/esm/components/base-checkmark/index.css +4 -4
  90. package/esm/components/base-option/Component.js +1 -1
  91. package/esm/components/base-option/index.css +13 -13
  92. package/esm/components/base-select/Component.js +1 -1
  93. package/esm/components/base-select/index.css +7 -7
  94. package/esm/components/base-select/index.d.ts +1 -1
  95. package/esm/components/base-select/index.js +1 -1
  96. package/esm/components/base-select-mobile/Component.js +3 -3
  97. package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
  98. package/esm/components/base-select-mobile/checkmark/index.css +6 -6
  99. package/esm/components/base-select-mobile/index.css +11 -11
  100. package/esm/components/base-select-mobile/index.d.ts +1 -1
  101. package/esm/components/base-select-mobile/index.js +3 -3
  102. package/esm/components/base-select-mobile/options-list/Component.js +1 -1
  103. package/esm/components/base-select-mobile/options-list/index.css +9 -9
  104. package/esm/components/base-select-mobile/virtual-options-list/Component.js +1 -1
  105. package/esm/components/base-select-mobile/virtual-options-list/index.css +15 -15
  106. package/esm/components/checkmark/Component.js +1 -1
  107. package/esm/components/checkmark/index.css +10 -10
  108. package/esm/components/field/Component.js +1 -1
  109. package/esm/components/field/index.css +9 -9
  110. package/esm/components/index.js +3 -3
  111. package/esm/components/optgroup/Component.js +1 -1
  112. package/esm/components/optgroup/index.css +6 -6
  113. package/esm/components/option/Component.js +1 -1
  114. package/esm/components/option/index.css +20 -20
  115. package/esm/components/options-list/Component.js +1 -1
  116. package/esm/components/options-list/index.css +6 -6
  117. package/esm/components/select-mobile/Component.js +3 -3
  118. package/esm/components/select-mobile/index.d.ts +1 -1
  119. package/esm/components/select-mobile/index.js +3 -3
  120. package/esm/components/select-modal-mobile/Component.js +3 -3
  121. package/esm/components/select-modal-mobile/index.d.ts +1 -1
  122. package/esm/components/select-modal-mobile/index.js +3 -3
  123. package/esm/components/virtual-options-list/Component.js +1 -1
  124. package/esm/components/virtual-options-list/index.css +12 -12
  125. package/esm/{index-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +1 -1
  126. package/esm/index-ebda875c.d.ts +74 -0
  127. package/esm/index.js +3 -3
  128. package/esm/presets/index.js +3 -3
  129. package/esm/presets/useLazyLoading/hook.js +4 -4
  130. package/esm/presets/useLazyLoading/index.css +2 -2
  131. package/esm/presets/useSelectWithApply/hook.js +3 -3
  132. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  133. package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  134. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  135. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  136. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  137. package/esm/presets/useSelectWithLoading/index.css +2 -2
  138. package/esm/responsive.js +3 -3
  139. package/esm/types-ebda875c.d.ts +113 -0
  140. package/esm/typings.d.ts +5 -5
  141. package/{index-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +1 -1
  142. package/index-ebda875c.d.ts +74 -0
  143. package/index.js +3 -3
  144. package/modern/Component-3885b0d7.d.ts +169 -0
  145. package/modern/{Component-c2743e76.d.ts → Component-77e84ddc.d.ts} +2 -1
  146. package/modern/{Component-c2743e76.js → Component-77e84ddc.js} +4 -2
  147. package/modern/Component-d9a7d67e.d.ts +142 -0
  148. package/modern/{Component-629f202b.js → Component-d9a7d67e.js} +4 -4
  149. package/modern/Component.js +1 -1
  150. package/modern/Component.responsive.js +3 -3
  151. package/modern/components/arrow/Component.js +1 -1
  152. package/modern/components/arrow/index.css +3 -3
  153. package/modern/components/base-checkmark/Component.js +1 -1
  154. package/modern/components/base-checkmark/index.css +4 -4
  155. package/modern/components/base-option/Component.js +1 -1
  156. package/modern/components/base-option/index.css +13 -13
  157. package/modern/components/base-select/Component.js +1 -1
  158. package/modern/components/base-select/index.css +7 -7
  159. package/modern/components/base-select/index.d.ts +1 -1
  160. package/modern/components/base-select/index.js +1 -1
  161. package/modern/components/base-select-mobile/Component.js +3 -3
  162. package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
  163. package/modern/components/base-select-mobile/checkmark/index.css +6 -6
  164. package/modern/components/base-select-mobile/index.css +11 -11
  165. package/modern/components/base-select-mobile/index.d.ts +1 -1
  166. package/modern/components/base-select-mobile/index.js +3 -3
  167. package/modern/components/base-select-mobile/options-list/Component.js +1 -1
  168. package/modern/components/base-select-mobile/options-list/index.css +9 -9
  169. package/modern/components/base-select-mobile/virtual-options-list/Component.js +1 -1
  170. package/modern/components/base-select-mobile/virtual-options-list/index.css +15 -15
  171. package/modern/components/checkmark/Component.js +1 -1
  172. package/modern/components/checkmark/index.css +10 -10
  173. package/modern/components/field/Component.js +1 -1
  174. package/modern/components/field/index.css +9 -9
  175. package/modern/components/index.js +3 -3
  176. package/modern/components/optgroup/Component.js +1 -1
  177. package/modern/components/optgroup/index.css +6 -6
  178. package/modern/components/option/Component.js +1 -1
  179. package/modern/components/option/index.css +20 -20
  180. package/modern/components/options-list/Component.js +1 -1
  181. package/modern/components/options-list/index.css +6 -6
  182. package/modern/components/select-mobile/Component.js +3 -3
  183. package/modern/components/select-mobile/index.d.ts +1 -1
  184. package/modern/components/select-mobile/index.js +3 -3
  185. package/modern/components/select-modal-mobile/Component.js +3 -3
  186. package/modern/components/select-modal-mobile/index.d.ts +1 -1
  187. package/modern/components/select-modal-mobile/index.js +3 -3
  188. package/modern/components/virtual-options-list/Component.js +1 -1
  189. package/modern/components/virtual-options-list/index.css +12 -12
  190. package/modern/{index-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +1 -1
  191. package/modern/index-ebda875c.d.ts +74 -0
  192. package/modern/index.js +3 -3
  193. package/modern/presets/index.js +3 -3
  194. package/modern/presets/useLazyLoading/hook.js +4 -4
  195. package/modern/presets/useLazyLoading/index.css +2 -2
  196. package/modern/presets/useSelectWithApply/hook.js +3 -3
  197. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  198. package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  199. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  200. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  201. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  202. package/modern/presets/useSelectWithLoading/index.css +2 -2
  203. package/modern/responsive.js +3 -3
  204. package/modern/types-ebda875c.d.ts +113 -0
  205. package/modern/typings.d.ts +5 -5
  206. package/package.json +6 -6
  207. package/presets/index.js +3 -3
  208. package/presets/useLazyLoading/hook.js +4 -4
  209. package/presets/useLazyLoading/index.css +2 -2
  210. package/presets/useSelectWithApply/hook.js +3 -3
  211. package/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  212. package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  213. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  214. package/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  215. package/presets/useSelectWithLoading/hook.js +1 -1
  216. package/presets/useSelectWithLoading/index.css +2 -2
  217. package/responsive.js +3 -3
  218. package/types-ebda875c.d.ts +113 -0
  219. package/typings.d.ts +5 -5
  220. package/Component-088caba2.d.ts +0 -475
  221. package/cssm/Component-8f0723b4.d.ts +0 -475
  222. package/cssm/getDataTestId-3fe0d3e6.d.ts +0 -2
  223. package/esm/Component-23df669b.d.ts +0 -475
  224. package/esm/getDataTestId-3fe0d3e6.d.ts +0 -2
  225. package/getDataTestId-3fe0d3e6.d.ts +0 -2
  226. package/modern/Component-629f202b.d.ts +0 -475
  227. package/modern/getDataTestId-3fe0d3e6.d.ts +0 -2
  228. /package/esm/{intersection-observer-12c920c6.d.ts → intersection-observer-6d12bd0a.d.ts} +0 -0
  229. /package/esm/{intersection-observer-12c920c6.js → intersection-observer-6d12bd0a.js} +0 -0
  230. /package/{intersection-observer-31caed5c.d.ts → intersection-observer-dd747820.d.ts} +0 -0
  231. /package/{intersection-observer-31caed5c.js → intersection-observer-dd747820.js} +0 -0
  232. /package/modern/{intersection-observer-12c920c6.d.ts → intersection-observer-6d12bd0a.d.ts} +0 -0
  233. /package/modern/{intersection-observer-12c920c6.js → intersection-observer-6d12bd0a.js} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: 1bbcf */
1
+ /* hash: kr20m */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #007aff;
@@ -28,18 +28,18 @@
28
28
  /* checkmark */
29
29
 
30
30
  /* optgroup */
31
- } .select__component_oeqkz {
31
+ } .select__component_186b6 {
32
32
  width: 100%;
33
33
  outline: none;
34
- } .select__field_oeqkz:not(.select__disabled_oeqkz) {
34
+ } .select__field_186b6:not(.select__disabled_186b6) {
35
35
  cursor: pointer
36
- } .select__field_oeqkz:not(.select__disabled_oeqkz):hover .select__arrow_oeqkz {
36
+ } .select__field_186b6:not(.select__disabled_186b6):hover .select__arrow_186b6 {
37
37
  opacity: var(--select-arrow-hover-opacity);
38
- } .select__disabled_oeqkz {
38
+ } .select__disabled_186b6 {
39
39
  cursor: var(--disabled-cursor);
40
- } /* TODO: Заюзать переменные из инпута */ .select__placeholder_oeqkz {
40
+ } /* TODO: Заюзать переменные из инпута */ .select__placeholder_186b6 {
41
41
  color: var(--color-light-text-secondary);
42
- } .select__contentWrapper_oeqkz {
42
+ } .select__contentWrapper_186b6 {
43
43
  font-size: 16px;
44
44
  line-height: 20px;
45
45
  font-weight: 400;
@@ -48,11 +48,11 @@
48
48
  text-overflow: ellipsis;
49
49
  overflow: hidden;
50
50
  width: 100%;
51
- } .select__value_oeqkz {
51
+ } .select__value_186b6 {
52
52
  overflow: hidden;
53
53
  text-overflow: ellipsis;
54
54
  text-align: left;
55
- } .select__focusVisible_oeqkz {
55
+ } .select__focusVisible_186b6 {
56
56
  outline: 2px solid var(--focus-color);
57
57
  outline-offset: 2px;
58
58
  }
@@ -1,6 +1,6 @@
1
1
  export { Arrow } from './arrow/Component.js';
2
- export { B as BaseSelect } from '../Component-82c9c6a4.js';
3
- export { S as SelectMobile, a as SelectModalMobile } from '../Component-23df669b.js';
2
+ export { B as BaseSelect } from '../Component-4bb3c303.js';
3
+ export { S as SelectMobile, a as SelectModalMobile } from '../Component-0a180244.js';
4
4
  export { Field } from './field/Component.js';
5
5
  export { Optgroup } from './optgroup/Component.js';
6
6
  export { Option } from './option/Component.js';
@@ -31,7 +31,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
31
31
  import '@alfalab/core-components-scrollbar/esm';
32
32
  import 'react-virtual';
33
33
  import '@alfalab/core-components-skeleton/esm';
34
- import '../intersection-observer-12c920c6.js';
34
+ import '../intersection-observer-6d12bd0a.js';
35
35
  import '@alfalab/core-components-button/esm';
36
36
  import './base-checkmark/Component.js';
37
37
  import './base-select-mobile/options-list/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_1bk23","label":"select__label_1bk23","l":"select__l_1bk23","xl":"select__xl_1bk23"};
4
+ var styles = {"optgroup":"select__optgroup_1k0pt","label":"select__label_1k0pt","l":"select__l_1k0pt","xl":"select__xl_1k0pt"};
5
5
  require('./index.css')
6
6
 
7
7
  var Optgroup = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 181s2 */
1
+ /* hash: i2dfh */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -35,7 +35,7 @@
35
35
  --select-optgroup-right-padding: var(--gap-s);
36
36
  --select-optgroup-l-left-padding: var(--gap-m);
37
37
  --select-optgroup-l-right-padding: var(--gap-m);
38
- } .select__optgroup_1bk23 {
38
+ } .select__optgroup_1k0pt {
39
39
  position: relative;
40
40
  display: flex;
41
41
  align-items: center;
@@ -44,9 +44,9 @@
44
44
  box-sizing: border-box;
45
45
  background: var(--select-optgroup-background);
46
46
  min-height: 40px
47
- } .select__optgroup_1bk23 + *[role='option']:before {
47
+ } .select__optgroup_1k0pt + *[role='option']:before {
48
48
  display: none;
49
- } .select__label_1bk23 {
49
+ } .select__label_1k0pt {
50
50
  font-size: 12px;
51
51
  line-height: 16px;
52
52
  font-weight: 500;
@@ -55,8 +55,8 @@
55
55
 
56
56
  display: block;
57
57
  color: var(--select-optgroup-color);
58
- } .select__l_1bk23,
59
- .select__xl_1bk23 {
58
+ } .select__l_1k0pt,
59
+ .select__xl_1k0pt {
60
60
  padding-left: var(--select-optgroup-l-left-padding);
61
61
  padding-right: var(--select-optgroup-l-right-padding);
62
62
  }
@@ -8,7 +8,7 @@ import '@alfalab/core-components-badge/esm';
8
8
  import '@alfalab/core-components-checkbox/esm';
9
9
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
10
10
 
11
- var styles = {"option":"select__option_itanu","disabled":"select__disabled_itanu","s":"select__s_itanu","m":"select__m_itanu","l":"select__l_itanu","xl":"select__xl_itanu","selected":"select__selected_itanu","highlighted":"select__highlighted_itanu","content":"select__content_itanu","textContent":"select__textContent_itanu"};
11
+ var styles = {"option":"select__option_1r39m","disabled":"select__disabled_1r39m","s":"select__s_1r39m","m":"select__m_1r39m","l":"select__l_1r39m","xl":"select__xl_1r39m","selected":"select__selected_1r39m","highlighted":"select__highlighted_1r39m","content":"select__content_1r39m","textContent":"select__textContent_1r39m"};
12
12
  require('./index.css')
13
13
 
14
14
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 7z52k */
1
+ /* hash: xyjpz */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -53,7 +53,7 @@
53
53
  /* checkmark */
54
54
 
55
55
  /* optgroup */
56
- } .select__option_itanu {
56
+ } .select__option_1r39m {
57
57
  font-size: 16px;
58
58
  line-height: 20px;
59
59
  font-weight: 400;
@@ -68,10 +68,10 @@
68
68
  box-sizing: border-box;
69
69
  position: relative;
70
70
  cursor: pointer
71
- } .select__option_itanu:not(.select__disabled_itanu):active {
71
+ } .select__option_1r39m:not(.select__disabled_1r39m):active {
72
72
  background: var(--select-option-active-background);
73
73
  color: var(--select-option-active-color);
74
- } .select__option_itanu:before {
74
+ } .select__option_1r39m:before {
75
75
  content: '';
76
76
  position: absolute;
77
77
  left: var(--select-option-left-padding);
@@ -81,46 +81,46 @@
81
81
  background: var(--select-option-divider-background);
82
82
  display: var(--select-option-divider-display);
83
83
  transition: opacity 0.2s ease;
84
- } .select__option_itanu:first-child:before {
84
+ } .select__option_1r39m:first-child:before {
85
85
  display: none;
86
- } .select__s_itanu {
86
+ } .select__s_1r39m {
87
87
  min-height: var(--size-s-height);
88
- } .select__m_itanu {
88
+ } .select__m_1r39m {
89
89
  min-height: var(--size-m-height);
90
- } .select__l_itanu {
90
+ } .select__l_1r39m {
91
91
  min-height: var(--size-l-height);
92
- } .select__xl_itanu {
92
+ } .select__xl_1r39m {
93
93
  min-height: var(--size-xl-height);
94
- } .select__l_itanu,
95
- .select__xl_itanu {
94
+ } .select__l_1r39m,
95
+ .select__xl_1r39m {
96
96
  padding-left: var(--select-option-l-left-padding);
97
97
  padding-right: var(--select-option-l-right-padding)
98
- } .select__l_itanu:before, .select__xl_itanu:before {
98
+ } .select__l_1r39m:before, .select__xl_1r39m:before {
99
99
  left: var(--select-option-l-left-padding);
100
100
  right: var(--select-option-l-right-padding);
101
- } .select__selected_itanu {
101
+ } .select__selected_1r39m {
102
102
  background: var(--select-option-selected-background);
103
103
  color: var(--select-option-selected-color);
104
104
  cursor: default;
105
- } .select__highlighted_itanu {
105
+ } .select__highlighted_1r39m {
106
106
  background: var(--select-option-hover-background);
107
107
  color: var(--select-option-hover-color)
108
- } .select__highlighted_itanu:before,
109
- .select__highlighted_itanu + .select__option_itanu:before {
108
+ } .select__highlighted_1r39m:before,
109
+ .select__highlighted_1r39m + .select__option_1r39m:before {
110
110
  opacity: 0;
111
- } .select__disabled_itanu {
111
+ } .select__disabled_1r39m {
112
112
  cursor: var(--disabled-cursor);
113
113
  background: var(--select-option-disabled-background);
114
114
  color: var(--select-option-disabled-color);
115
- } .select__content_itanu {
115
+ } .select__content_1r39m {
116
116
  overflow: hidden;
117
117
  flex: 1;
118
118
  text-overflow: ellipsis;
119
- } .select__textContent_itanu {
119
+ } .select__textContent_1r39m {
120
120
  padding-top: var(--gap-s);
121
121
  padding-bottom: var(--gap-s);
122
122
  } /* IE min-height fix */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
123
- .select__option_itanu:after {
123
+ .select__option_1r39m:after {
124
124
  min-height: inherit;
125
125
  font-size: 0;
126
126
  content: '';
@@ -7,7 +7,7 @@ import { useMedia } from '@alfalab/hooks';
7
7
  import { useVisibleOptions, isGroup } from '../../utils.js';
8
8
  import { Optgroup } from '../optgroup/Component.js';
9
9
 
10
- var styles = {"optionsList":"select__optionsList_1iw1q","scrollable":"select__scrollable_1iw1q","emptyPlaceholder":"select__emptyPlaceholder_1iw1q","l":"select__l_1iw1q","xl":"select__xl_1iw1q"};
10
+ var styles = {"optionsList":"select__optionsList_1702e","scrollable":"select__scrollable_1702e","emptyPlaceholder":"select__emptyPlaceholder_1702e","l":"select__l_1702e","xl":"select__xl_1702e"};
11
11
  require('./index.css')
12
12
 
13
13
  var createCounter = function () {
@@ -1,4 +1,4 @@
1
- /* hash: 10arf */
1
+ /* hash: dw3py */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
@@ -28,18 +28,18 @@
28
28
  /* checkmark */
29
29
 
30
30
  /* optgroup */
31
- } .select__optionsList_1iw1q {
31
+ } .select__optionsList_1702e {
32
32
  overflow: auto;
33
33
  width: 100%;
34
34
  outline: none;
35
35
  box-sizing: border-box;
36
- } .select__scrollable_1iw1q {
36
+ } .select__scrollable_1702e {
37
37
  overflow: auto;
38
38
  width: 100%;
39
- } .select__emptyPlaceholder_1iw1q {
39
+ } .select__emptyPlaceholder_1702e {
40
40
  padding: var(--gap-m) var(--gap-s);
41
41
  color: var(--select-options-list-empty-placeholder-color);
42
- } .select__l_1iw1q .select__emptyPlaceholder_1iw1q,
43
- .select__xl_1iw1q .select__emptyPlaceholder_1iw1q {
42
+ } .select__l_1702e .select__emptyPlaceholder_1702e,
43
+ .select__xl_1702e .select__emptyPlaceholder_1702e {
44
44
  padding: var(--gap-xl) var(--gap-m);
45
45
  }
@@ -1,7 +1,7 @@
1
1
  import 'tslib';
2
2
  import 'react';
3
3
  import '../arrow/Component.js';
4
- export { S as SelectMobile } from '../../Component-23df669b.js';
4
+ export { S as SelectMobile } from '../../Component-0a180244.js';
5
5
  import '../field/Component.js';
6
6
  import '../optgroup/Component.js';
7
7
  import '../option/Component.js';
@@ -12,7 +12,7 @@ import 'downshift';
12
12
  import '@alfalab/core-components-bottom-sheet/esm';
13
13
  import '@alfalab/core-components-modal/esm/mobile';
14
14
  import '../../Component.js';
15
- import '../../Component-82c9c6a4.js';
15
+ import '../../Component-4bb3c303.js';
16
16
  import '@juggle/resize-observer';
17
17
  import '@alfalab/core-components-popover/esm';
18
18
  import '@alfalab/hooks';
@@ -31,7 +31,7 @@ import 'react-virtual';
31
31
  import '../base-option/Component.js';
32
32
  import '../base-checkmark/Component.js';
33
33
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-12c920c6.js';
34
+ import '../../intersection-observer-6d12bd0a.js';
35
35
  import '@alfalab/core-components-button/esm';
36
36
  import '../base-select-mobile/options-list/Component.js';
37
37
  import '@alfalab/core-components-base-modal/esm';
@@ -1 +1 @@
1
- export * from "../../Component-23df669b";
1
+ export * from "../../Component-0a180244";
@@ -1,4 +1,4 @@
1
- export { S as SelectMobile } from '../../Component-23df669b.js';
1
+ export { S as SelectMobile } from '../../Component-0a180244.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
4
  import '../arrow/Component.js';
@@ -9,7 +9,7 @@ import 'downshift';
9
9
  import '@alfalab/core-components-bottom-sheet/esm';
10
10
  import '@alfalab/core-components-modal/esm/mobile';
11
11
  import '../../Component.js';
12
- import '../../Component-82c9c6a4.js';
12
+ import '../../Component-4bb3c303.js';
13
13
  import '@juggle/resize-observer';
14
14
  import '@alfalab/core-components-popover/esm';
15
15
  import '@alfalab/hooks';
@@ -31,7 +31,7 @@ import 'react-virtual';
31
31
  import '../base-option/Component.js';
32
32
  import '../base-checkmark/Component.js';
33
33
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-12c920c6.js';
34
+ import '../../intersection-observer-6d12bd0a.js';
35
35
  import '@alfalab/core-components-button/esm';
36
36
  import '../base-select-mobile/options-list/Component.js';
37
37
  import '@alfalab/core-components-base-modal/esm';
@@ -1,7 +1,7 @@
1
1
  import 'tslib';
2
2
  import 'react';
3
3
  import '../arrow/Component.js';
4
- export { a as SelectModalMobile } from '../../Component-23df669b.js';
4
+ export { a as SelectModalMobile } from '../../Component-0a180244.js';
5
5
  import '../field/Component.js';
6
6
  import '../optgroup/Component.js';
7
7
  import '../option/Component.js';
@@ -12,7 +12,7 @@ import 'downshift';
12
12
  import '@alfalab/core-components-bottom-sheet/esm';
13
13
  import '@alfalab/core-components-modal/esm/mobile';
14
14
  import '../../Component.js';
15
- import '../../Component-82c9c6a4.js';
15
+ import '../../Component-4bb3c303.js';
16
16
  import '@juggle/resize-observer';
17
17
  import '@alfalab/core-components-popover/esm';
18
18
  import '@alfalab/hooks';
@@ -31,7 +31,7 @@ import 'react-virtual';
31
31
  import '../base-option/Component.js';
32
32
  import '../base-checkmark/Component.js';
33
33
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-12c920c6.js';
34
+ import '../../intersection-observer-6d12bd0a.js';
35
35
  import '@alfalab/core-components-button/esm';
36
36
  import '../base-select-mobile/options-list/Component.js';
37
37
  import '@alfalab/core-components-base-modal/esm';
@@ -1 +1 @@
1
- export * from "../../Component-23df669b";
1
+ export * from "../../Component-0a180244";
@@ -1,4 +1,4 @@
1
- export { a as SelectModalMobile } from '../../Component-23df669b.js';
1
+ export { a as SelectModalMobile } from '../../Component-0a180244.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
4
  import '../arrow/Component.js';
@@ -9,7 +9,7 @@ import 'downshift';
9
9
  import '@alfalab/core-components-bottom-sheet/esm';
10
10
  import '@alfalab/core-components-modal/esm/mobile';
11
11
  import '../../Component.js';
12
- import '../../Component-82c9c6a4.js';
12
+ import '../../Component-4bb3c303.js';
13
13
  import '@juggle/resize-observer';
14
14
  import '@alfalab/core-components-popover/esm';
15
15
  import '@alfalab/hooks';
@@ -31,7 +31,7 @@ import 'react-virtual';
31
31
  import '../base-option/Component.js';
32
32
  import '../base-checkmark/Component.js';
33
33
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-12c920c6.js';
34
+ import '../../intersection-observer-6d12bd0a.js';
35
35
  import '@alfalab/core-components-button/esm';
36
36
  import '../base-select-mobile/options-list/Component.js';
37
37
  import '@alfalab/core-components-base-modal/esm';
@@ -7,7 +7,7 @@ import { useMedia } from '@alfalab/hooks';
7
7
  import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
8
8
  import { Optgroup } from '../optgroup/Component.js';
9
9
 
10
- var styles = {"virtualOptionsList":"select__virtualOptionsList_1vml2","scrollable":"select__scrollable_1vml2","inner":"select__inner_1vml2","virtualRow":"select__virtualRow_1vml2","highlighted":"select__highlighted_1vml2","emptyPlaceholder":"select__emptyPlaceholder_1vml2","l":"select__l_1vml2","xl":"select__xl_1vml2"};
10
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_1fac2","scrollable":"select__scrollable_1fac2","inner":"select__inner_1fac2","virtualRow":"select__virtualRow_1fac2","highlighted":"select__highlighted_1fac2","emptyPlaceholder":"select__emptyPlaceholder_1fac2","l":"select__l_1fac2","xl":"select__xl_1fac2"};
11
11
  require('./index.css')
12
12
 
13
13
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -1,4 +1,4 @@
1
- /* hash: z1veu */
1
+ /* hash: 8wgbn */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dbdee1;
@@ -34,23 +34,23 @@
34
34
  /* checkmark */
35
35
 
36
36
  /* optgroup */
37
- } .select__virtualOptionsList_1vml2 {
37
+ } .select__virtualOptionsList_1fac2 {
38
38
  width: 100%;
39
39
  outline: none;
40
40
  box-sizing: border-box;
41
41
  position: relative;
42
- } .select__scrollable_1vml2 {
42
+ } .select__scrollable_1fac2 {
43
43
  overflow: auto;
44
44
  width: 100%;
45
- } .select__inner_1vml2 {
45
+ } .select__inner_1fac2 {
46
46
  position: relative;
47
47
  width: 100%;
48
- } .select__virtualRow_1vml2 {
48
+ } .select__virtualRow_1fac2 {
49
49
  position: absolute;
50
50
  top: 0;
51
51
  left: 0;
52
52
  width: 100%
53
- } .select__virtualRow_1vml2:before {
53
+ } .select__virtualRow_1fac2:before {
54
54
  content: '';
55
55
  position: absolute;
56
56
  z-index: 1;
@@ -60,15 +60,15 @@
60
60
  height: 1px;
61
61
  background: var(--select-option-divider-background);
62
62
  display: var(--select-option-divider-display);
63
- } .select__virtualRow_1vml2:first-child:before {
63
+ } .select__virtualRow_1fac2:first-child:before {
64
64
  display: none;
65
- } .select__highlighted_1vml2:before,
66
- .select__highlighted_1vml2 + .select__virtualRow_1vml2:before {
65
+ } .select__highlighted_1fac2:before,
66
+ .select__highlighted_1fac2 + .select__virtualRow_1fac2:before {
67
67
  display: none;
68
- } .select__emptyPlaceholder_1vml2 {
68
+ } .select__emptyPlaceholder_1fac2 {
69
69
  padding: var(--gap-m) var(--gap-s);
70
70
  color: var(--select-options-list-empty-placeholder-color);
71
- } .select__l_1vml2 .select__emptyPlaceholder_1vml2,
72
- .select__xl_1vml2 .select__emptyPlaceholder_1vml2 {
71
+ } .select__l_1fac2 .select__emptyPlaceholder_1fac2,
72
+ .select__xl_1fac2 .select__emptyPlaceholder_1fac2 {
73
73
  padding: var(--gap-xl) var(--gap-m);
74
74
  }
@@ -1,3 +1,3 @@
1
1
  declare const isClient: () => boolean;
2
2
  export { isClient };
3
- export * from "./getDataTestId-3fe0d3e6";
3
+ export * from "./Component-4bb3c303";
@@ -0,0 +1,74 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { ButtonHTMLAttributes, ElementType, FC, AnchorHTMLAttributes } from "react";
4
+ import { ButtonProps } from "@alfalab/core-components-button";
5
+ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ /**
7
+ * Вид компонента
8
+ */
9
+ view: "desktop" | "mobile";
10
+ /**
11
+ * Дополнительный класс
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Позиция крестика
16
+ */
17
+ align?: "left" | "right";
18
+ /**
19
+ * Фиксирует крестик
20
+ */
21
+ sticky?: boolean;
22
+ /**
23
+ * Иконка
24
+ */
25
+ icon?: ElementType;
26
+ /**
27
+ * Идентификатор для систем автоматизированного тестирования
28
+ */
29
+ dataTestId?: string;
30
+ /**
31
+ * Коллбэк закрытия.
32
+ */
33
+ onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
34
+ }
35
+ declare const Closer: FC<CloserProps>;
36
+ type IconButtonProps = {
37
+ /**
38
+ * Компонент иконки
39
+ */
40
+ icon: ElementType<{
41
+ className?: string;
42
+ }>;
43
+ /**
44
+ * Тип кнопки
45
+ */
46
+ view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
47
+ /**
48
+ * Размер компонента
49
+ */
50
+ size?: "xxs" | "xs" | "s";
51
+ /**
52
+ * Дополнительный класс
53
+ */
54
+ className?: string;
55
+ /**
56
+ * Идентификатор для систем автоматизированного тестирования
57
+ */
58
+ dataTestId?: string;
59
+ /**
60
+ * Набор цветов для компонента
61
+ */
62
+ colors?: "default" | "inverted";
63
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
64
+ declare const IconButton: React.ForwardRefExoticComponent<{
65
+ icon: ElementType<{
66
+ className?: string;
67
+ }>;
68
+ view?: "negative" | "tertiary" | "secondary" | "primary" | "transparent" | undefined;
69
+ size?: "s" | "xs" | "xxs" | undefined;
70
+ className?: string | undefined;
71
+ dataTestId?: string | undefined;
72
+ colors?: "default" | "inverted" | undefined;
73
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
74
+ export { CloserProps, Closer, IconButtonProps, IconButton };
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Select } from './Component.js';
2
2
  export { Arrow } from './components/arrow/Component.js';
3
- export { B as BaseSelect } from './Component-82c9c6a4.js';
4
- export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-23df669b.js';
3
+ export { B as BaseSelect } from './Component-4bb3c303.js';
4
+ export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-0a180244.js';
5
5
  export { Field } from './components/field/Component.js';
6
6
  export { Optgroup } from './components/optgroup/Component.js';
7
7
  export { Option } from './components/option/Component.js';
@@ -33,7 +33,7 @@ import '@alfalab/core-components-bottom-sheet/esm';
33
33
  import '@alfalab/core-components-modal/esm/mobile';
34
34
  import 'react-virtual';
35
35
  import '@alfalab/core-components-skeleton/esm';
36
- import './intersection-observer-12c920c6.js';
36
+ import './intersection-observer-6d12bd0a.js';
37
37
  import '@alfalab/core-components-button/esm';
38
38
  import './components/base-checkmark/Component.js';
39
39
  import './components/base-select-mobile/options-list/Component.js';
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from './useLazyLoading/hook.js';
3
- export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-23df669b.js';
3
+ export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-0a180244.js';
4
4
  import 'tslib';
5
5
  import 'react';
6
6
  import '@alfalab/core-components-skeleton/esm';
@@ -12,7 +12,7 @@ import '../components/checkmark/Component.js';
12
12
  import '@alfalab/core-components-badge/esm';
13
13
  import '@alfalab/core-components-checkbox/esm';
14
14
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
15
- import '../intersection-observer-12c920c6.js';
15
+ import '../intersection-observer-6d12bd0a.js';
16
16
  import '../components/arrow/Component.js';
17
17
  import '@alfalab/icons-glyph/ChevronDownMIcon';
18
18
  import 'react-merge-refs';
@@ -20,7 +20,7 @@ import 'downshift';
20
20
  import '@alfalab/core-components-bottom-sheet/esm';
21
21
  import '@alfalab/core-components-modal/esm/mobile';
22
22
  import '../Component.js';
23
- import '../Component-82c9c6a4.js';
23
+ import '../Component-4bb3c303.js';
24
24
  import '@juggle/resize-observer';
25
25
  import '@alfalab/core-components-popover/esm';
26
26
  import '@alfalab/hooks';
@@ -2,7 +2,7 @@ import { __spreadArray, __assign } from 'tslib';
2
2
  import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
3
3
  import { Skeleton } from '@alfalab/core-components-skeleton/esm';
4
4
  import { Option } from '../../components/option/Component.js';
5
- import '../../intersection-observer-12c920c6.js';
5
+ import '../../intersection-observer-6d12bd0a.js';
6
6
  import 'classnames';
7
7
  import '../../components/base-select-mobile/checkmark/Component.js';
8
8
  import '@alfalab/icons-glyph/CheckmarkMIcon';
@@ -11,7 +11,7 @@ import '@alfalab/core-components-badge/esm';
11
11
  import '@alfalab/core-components-checkbox/esm';
12
12
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
13
13
 
14
- var styles = {"skeleton":"select__skeleton_1fzuw"};
14
+ var styles = {"skeleton":"select__skeleton_17j75"};
15
15
  require('./index.css')
16
16
 
17
17
  var DEBOUNCE_TIMEOUT = 300;
@@ -114,8 +114,8 @@ function useLazyLoading(_a) {
114
114
  * Таким образом, загрузка следующей "страницы" начнется когда юзер доскроллит список
115
115
  * до верхнего края последней опции, что обеспечивает плавность
116
116
  */
117
- var options_1 = (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="option"]');
118
- var lastOption = options_1 === null || options_1 === void 0 ? void 0 : options_1[options_1.length - 1];
117
+ var optionList = (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="option"]');
118
+ var lastOption = optionList === null || optionList === void 0 ? void 0 : optionList[optionList.length - 1];
119
119
  if (lastOption) {
120
120
  observer.observe(lastOption);
121
121
  }
@@ -1,5 +1,5 @@
1
- /* hash: 1mbe1 */
2
- .select__skeleton_1fzuw {
1
+ /* hash: 1b2n0 */
2
+ .select__skeleton_17j75 {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -3,8 +3,8 @@ import 'react';
3
3
  import '../../Component.js';
4
4
  import 'classnames';
5
5
  import '@alfalab/icons-glyph/ChevronDownMIcon';
6
- import '../../Component-82c9c6a4.js';
7
- export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-23df669b.js';
6
+ import '../../Component-4bb3c303.js';
7
+ export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-0a180244.js';
8
8
  import '@alfalab/core-components-form-control/esm';
9
9
  import '@alfalab/hooks';
10
10
  import '../../utils.js';
@@ -16,7 +16,7 @@ import '../../components/options-list/Component.js';
16
16
  import 'react-virtual';
17
17
  import '@alfalab/core-components-scrollbar/esm';
18
18
  import '@alfalab/core-components-skeleton/esm';
19
- import '../../intersection-observer-12c920c6.js';
19
+ import '../../intersection-observer-6d12bd0a.js';
20
20
  import '../../components/arrow/Component.js';
21
21
  import '../../components/field/Component.js';
22
22
  import '../../components/optgroup/Component.js';
@@ -3,8 +3,8 @@ import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-button/esm';
5
5
  import '@alfalab/icons-glyph/ChevronDownMIcon';
6
- import '../../../Component-82c9c6a4.js';
7
- export { O as OptionsListWithApply } from '../../../Component-23df669b.js';
6
+ import '../../../Component-4bb3c303.js';
7
+ export { O as OptionsListWithApply } from '../../../Component-0a180244.js';
8
8
  import '@alfalab/core-components-form-control/esm';
9
9
  import '@alfalab/hooks';
10
10
  import '@alfalab/icons-glyph/CheckmarkMIcon';
@@ -32,7 +32,7 @@ import '../../../components/checkmark/Component.js';
32
32
  import '../../../components/base-option/Component.js';
33
33
  import '../../../components/base-checkmark/Component.js';
34
34
  import '@alfalab/core-components-skeleton/esm';
35
- import '../../../intersection-observer-12c920c6.js';
35
+ import '../../../intersection-observer-6d12bd0a.js';
36
36
  import '../../../components/base-select-mobile/options-list/Component.js';
37
37
  import '@alfalab/core-components-base-modal/esm';
38
38
  import '../../../components/base-select-mobile/virtual-options-list/Component.js';