@alfalab/core-components-select 13.2.8 → 13.2.10

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 (250) hide show
  1. package/{Component-d0e7b8cf.d.ts → Component-4dccfbd0.d.ts} +0 -0
  2. package/{Component-d0e7b8cf.js → Component-4dccfbd0.js} +7 -7
  3. package/{Component-8614ce6b.d.ts → Component-d45b1eb6.d.ts} +0 -0
  4. package/{Component-8614ce6b.js → Component-d45b1eb6.js} +2 -2
  5. package/Component.d.ts +1 -1
  6. package/Component.js +4 -4
  7. package/Component.responsive.js +6 -6
  8. package/components/arrow/Component.js +1 -1
  9. package/components/arrow/index.css +12 -11
  10. package/components/base-checkmark/Component.js +1 -1
  11. package/components/base-checkmark/index.css +13 -9
  12. package/components/base-option/Component.js +2 -2
  13. package/components/base-option/index.css +22 -33
  14. package/components/base-option/index.js +1 -1
  15. package/components/base-select/Component.js +2 -2
  16. package/components/base-select/index.css +18 -24
  17. package/components/base-select/index.d.ts +1 -1
  18. package/components/base-select/index.js +2 -2
  19. package/components/base-select-mobile/Component.js +6 -6
  20. package/components/base-select-mobile/checkmark/Component.js +2 -5
  21. package/components/base-select-mobile/checkmark/index.css +15 -13
  22. package/components/base-select-mobile/checkmark/index.js +0 -2
  23. package/components/base-select-mobile/index.css +21 -27
  24. package/components/base-select-mobile/index.d.ts +1 -1
  25. package/components/base-select-mobile/index.js +6 -6
  26. package/components/base-select-mobile/options-list/Component.js +2 -2
  27. package/components/base-select-mobile/options-list/index.css +19 -24
  28. package/components/base-select-mobile/options-list/index.js +1 -1
  29. package/components/checkmark/Component.js +5 -4
  30. package/components/checkmark/index.css +28 -26
  31. package/components/checkmark/index.js +1 -0
  32. package/components/field/Component.js +2 -2
  33. package/components/field/index.css +18 -24
  34. package/components/field/index.js +1 -1
  35. package/components/index.js +6 -6
  36. package/components/native-select/Component.js +1 -1
  37. package/components/native-select/index.js +1 -1
  38. package/components/optgroup/Component.js +1 -1
  39. package/components/optgroup/index.css +15 -16
  40. package/components/option/Component.js +4 -4
  41. package/components/option/index.css +30 -47
  42. package/components/option/index.js +3 -3
  43. package/components/options-list/Component.js +2 -2
  44. package/components/options-list/index.css +15 -16
  45. package/components/options-list/index.js +1 -1
  46. package/components/select-mobile/Component.js +6 -6
  47. package/components/select-mobile/index.d.ts +1 -1
  48. package/components/select-mobile/index.js +6 -6
  49. package/components/select-modal-mobile/Component.js +6 -6
  50. package/components/select-modal-mobile/index.d.ts +1 -1
  51. package/components/select-modal-mobile/index.js +6 -6
  52. package/components/virtual-options-list/Component.js +2 -2
  53. package/components/virtual-options-list/index.css +21 -27
  54. package/components/virtual-options-list/index.js +1 -1
  55. package/cssm/{Component-e61bd989.d.ts → Component-29488b22.d.ts} +0 -0
  56. package/cssm/{Component-e61bd989.js → Component-29488b22.js} +2 -2
  57. package/cssm/Component.d.ts +1 -1
  58. package/cssm/Component.js +2 -2
  59. package/cssm/Component.responsive.js +3 -3
  60. package/cssm/components/arrow/index.module.css +11 -10
  61. package/cssm/components/base-checkmark/index.module.css +12 -8
  62. package/cssm/components/base-option/index.module.css +21 -32
  63. package/cssm/components/base-select/index.module.css +16 -22
  64. package/cssm/components/base-select-mobile/Component.js +3 -3
  65. package/cssm/components/base-select-mobile/checkmark/Component.js +1 -4
  66. package/cssm/components/base-select-mobile/checkmark/index.js +0 -2
  67. package/cssm/components/base-select-mobile/checkmark/index.module.css +14 -12
  68. package/cssm/components/base-select-mobile/index.d.ts +1 -1
  69. package/cssm/components/base-select-mobile/index.js +3 -3
  70. package/cssm/components/base-select-mobile/index.module.css +19 -25
  71. package/cssm/components/base-select-mobile/options-list/index.module.css +17 -22
  72. package/cssm/components/checkmark/Component.js +4 -3
  73. package/cssm/components/checkmark/index.js +1 -0
  74. package/cssm/components/checkmark/index.module.css +27 -25
  75. package/cssm/components/field/index.module.css +17 -23
  76. package/cssm/components/index.js +3 -3
  77. package/cssm/components/optgroup/index.module.css +13 -14
  78. package/cssm/components/option/Component.js +2 -2
  79. package/cssm/components/option/index.js +2 -2
  80. package/cssm/components/option/index.module.css +26 -43
  81. package/cssm/components/options-list/index.module.css +13 -14
  82. package/cssm/components/select-mobile/Component.js +3 -3
  83. package/cssm/components/select-mobile/index.d.ts +1 -1
  84. package/cssm/components/select-mobile/index.js +3 -3
  85. package/cssm/components/select-modal-mobile/Component.js +3 -3
  86. package/cssm/components/select-modal-mobile/index.d.ts +1 -1
  87. package/cssm/components/select-modal-mobile/index.js +3 -3
  88. package/cssm/components/virtual-options-list/index.module.css +18 -24
  89. package/cssm/index.js +3 -3
  90. package/cssm/presets/index.js +3 -3
  91. package/cssm/presets/useLazyLoading/hook.js +2 -2
  92. package/cssm/presets/useSelectWithApply/hook.js +3 -3
  93. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  94. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  95. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  96. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.module.css +12 -12
  97. package/cssm/presets/useSelectWithLoading/hook.js +2 -2
  98. package/cssm/responsive.js +3 -3
  99. package/cssm/typings.d.ts +1 -5
  100. package/esm/{Component-c09a6820.d.ts → Component-2d2efe5d.d.ts} +0 -0
  101. package/esm/{Component-c09a6820.js → Component-2d2efe5d.js} +2 -2
  102. package/esm/{Component-4ef9d6d2.d.ts → Component-909f3a34.d.ts} +0 -0
  103. package/esm/{Component-4ef9d6d2.js → Component-909f3a34.js} +7 -7
  104. package/esm/Component.d.ts +1 -1
  105. package/esm/Component.js +4 -4
  106. package/esm/Component.responsive.js +6 -6
  107. package/esm/components/arrow/Component.js +1 -1
  108. package/esm/components/arrow/index.css +12 -11
  109. package/esm/components/base-checkmark/Component.js +1 -1
  110. package/esm/components/base-checkmark/index.css +13 -9
  111. package/esm/components/base-option/Component.js +2 -2
  112. package/esm/components/base-option/index.css +22 -33
  113. package/esm/components/base-option/index.js +1 -1
  114. package/esm/components/base-select/Component.js +2 -2
  115. package/esm/components/base-select/index.css +18 -24
  116. package/esm/components/base-select/index.d.ts +1 -1
  117. package/esm/components/base-select/index.js +2 -2
  118. package/esm/components/base-select-mobile/Component.js +6 -6
  119. package/esm/components/base-select-mobile/checkmark/Component.js +2 -5
  120. package/esm/components/base-select-mobile/checkmark/index.css +15 -13
  121. package/esm/components/base-select-mobile/checkmark/index.js +0 -2
  122. package/esm/components/base-select-mobile/index.css +21 -27
  123. package/esm/components/base-select-mobile/index.d.ts +1 -1
  124. package/esm/components/base-select-mobile/index.js +6 -6
  125. package/esm/components/base-select-mobile/options-list/Component.js +2 -2
  126. package/esm/components/base-select-mobile/options-list/index.css +19 -24
  127. package/esm/components/base-select-mobile/options-list/index.js +1 -1
  128. package/esm/components/checkmark/Component.js +4 -4
  129. package/esm/components/checkmark/index.css +28 -26
  130. package/esm/components/checkmark/index.js +1 -0
  131. package/esm/components/field/Component.js +2 -2
  132. package/esm/components/field/index.css +18 -24
  133. package/esm/components/field/index.js +1 -1
  134. package/esm/components/index.js +6 -6
  135. package/esm/components/native-select/Component.js +1 -1
  136. package/esm/components/native-select/index.js +1 -1
  137. package/esm/components/optgroup/Component.js +1 -1
  138. package/esm/components/optgroup/index.css +15 -16
  139. package/esm/components/option/Component.js +4 -4
  140. package/esm/components/option/index.css +30 -47
  141. package/esm/components/option/index.js +3 -3
  142. package/esm/components/options-list/Component.js +2 -2
  143. package/esm/components/options-list/index.css +15 -16
  144. package/esm/components/options-list/index.js +1 -1
  145. package/esm/components/select-mobile/Component.js +6 -6
  146. package/esm/components/select-mobile/index.d.ts +1 -1
  147. package/esm/components/select-mobile/index.js +6 -6
  148. package/esm/components/select-modal-mobile/Component.js +6 -6
  149. package/esm/components/select-modal-mobile/index.d.ts +1 -1
  150. package/esm/components/select-modal-mobile/index.js +6 -6
  151. package/esm/components/virtual-options-list/Component.js +2 -2
  152. package/esm/components/virtual-options-list/index.css +21 -27
  153. package/esm/components/virtual-options-list/index.js +1 -1
  154. package/esm/index.js +6 -6
  155. package/esm/{intersection-observer-c9397884.d.ts → intersection-observer-eebe1d7d.d.ts} +0 -0
  156. package/esm/{intersection-observer-c9397884.js → intersection-observer-eebe1d7d.js} +0 -0
  157. package/esm/presets/index.js +6 -6
  158. package/esm/presets/useLazyLoading/hook.js +5 -5
  159. package/esm/presets/useLazyLoading/index.css +2 -2
  160. package/esm/presets/useSelectWithApply/hook.js +6 -6
  161. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -6
  162. package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +13 -13
  163. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  164. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +6 -6
  165. package/esm/presets/useSelectWithLoading/hook.js +4 -4
  166. package/esm/presets/useSelectWithLoading/index.css +2 -2
  167. package/esm/responsive.js +6 -6
  168. package/esm/{tslib.es6-3c9b3142.d.ts → tslib.es6-00fefe9b.d.ts} +0 -0
  169. package/esm/{tslib.es6-3c9b3142.js → tslib.es6-00fefe9b.js} +0 -0
  170. package/esm/typings.d.ts +1 -5
  171. package/index.js +6 -6
  172. package/{intersection-observer-8ba57140.d.ts → intersection-observer-0845add3.d.ts} +0 -0
  173. package/{intersection-observer-8ba57140.js → intersection-observer-0845add3.js} +0 -0
  174. package/modern/{Component-8d6d6d34.d.ts → Component-2a37a356.d.ts} +0 -0
  175. package/modern/{Component-8d6d6d34.js → Component-2a37a356.js} +1 -1
  176. package/modern/{Component-c2b10ca0.d.ts → Component-79964ac6.d.ts} +0 -0
  177. package/modern/{Component-c2b10ca0.js → Component-79964ac6.js} +6 -6
  178. package/modern/Component.d.ts +1 -1
  179. package/modern/Component.js +3 -3
  180. package/modern/Component.responsive.js +5 -5
  181. package/modern/components/arrow/Component.js +1 -1
  182. package/modern/components/arrow/index.css +12 -11
  183. package/modern/components/base-checkmark/Component.js +1 -1
  184. package/modern/components/base-checkmark/index.css +13 -9
  185. package/modern/components/base-option/Component.js +1 -1
  186. package/modern/components/base-option/index.css +22 -33
  187. package/modern/components/base-select/Component.js +1 -1
  188. package/modern/components/base-select/index.css +18 -24
  189. package/modern/components/base-select/index.d.ts +1 -1
  190. package/modern/components/base-select/index.js +1 -1
  191. package/modern/components/base-select-mobile/Component.js +5 -5
  192. package/modern/components/base-select-mobile/checkmark/Component.js +2 -5
  193. package/modern/components/base-select-mobile/checkmark/index.css +15 -13
  194. package/modern/components/base-select-mobile/checkmark/index.js +0 -2
  195. package/modern/components/base-select-mobile/index.css +21 -27
  196. package/modern/components/base-select-mobile/index.d.ts +1 -1
  197. package/modern/components/base-select-mobile/index.js +5 -5
  198. package/modern/components/base-select-mobile/options-list/Component.js +1 -1
  199. package/modern/components/base-select-mobile/options-list/index.css +19 -24
  200. package/modern/components/checkmark/Component.js +4 -4
  201. package/modern/components/checkmark/index.css +28 -26
  202. package/modern/components/checkmark/index.js +1 -0
  203. package/modern/components/field/Component.js +1 -1
  204. package/modern/components/field/index.css +18 -24
  205. package/modern/components/index.js +5 -5
  206. package/modern/components/optgroup/Component.js +1 -1
  207. package/modern/components/optgroup/index.css +15 -16
  208. package/modern/components/option/Component.js +3 -3
  209. package/modern/components/option/index.css +30 -47
  210. package/modern/components/option/index.js +2 -2
  211. package/modern/components/options-list/Component.js +1 -1
  212. package/modern/components/options-list/index.css +15 -16
  213. package/modern/components/select-mobile/Component.js +5 -5
  214. package/modern/components/select-mobile/index.d.ts +1 -1
  215. package/modern/components/select-mobile/index.js +5 -5
  216. package/modern/components/select-modal-mobile/Component.js +5 -5
  217. package/modern/components/select-modal-mobile/index.d.ts +1 -1
  218. package/modern/components/select-modal-mobile/index.js +5 -5
  219. package/modern/components/virtual-options-list/Component.js +1 -1
  220. package/modern/components/virtual-options-list/index.css +21 -27
  221. package/modern/index.js +5 -5
  222. package/modern/{intersection-observer-c9397884.d.ts → intersection-observer-eebe1d7d.d.ts} +0 -0
  223. package/modern/{intersection-observer-c9397884.js → intersection-observer-eebe1d7d.js} +0 -0
  224. package/modern/presets/index.js +5 -5
  225. package/modern/presets/useLazyLoading/hook.js +4 -4
  226. package/modern/presets/useLazyLoading/index.css +2 -2
  227. package/modern/presets/useSelectWithApply/hook.js +5 -5
  228. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -5
  229. package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +13 -13
  230. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  231. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +5 -5
  232. package/modern/presets/useSelectWithLoading/hook.js +3 -3
  233. package/modern/presets/useSelectWithLoading/index.css +2 -2
  234. package/modern/responsive.js +5 -5
  235. package/modern/typings.d.ts +1 -5
  236. package/package.json +7 -7
  237. package/presets/index.js +6 -6
  238. package/presets/useLazyLoading/hook.js +5 -5
  239. package/presets/useLazyLoading/index.css +2 -2
  240. package/presets/useSelectWithApply/hook.js +6 -6
  241. package/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -6
  242. package/presets/useSelectWithApply/options-list-with-apply/index.css +13 -13
  243. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  244. package/presets/useSelectWithApply/options-list-with-apply/index.js +6 -6
  245. package/presets/useSelectWithLoading/hook.js +4 -4
  246. package/presets/useSelectWithLoading/index.css +2 -2
  247. package/responsive.js +6 -6
  248. package/{tslib.es6-765af8e2.d.ts → tslib.es6-ade45ad3.d.ts} +0 -0
  249. package/{tslib.es6-765af8e2.js → tslib.es6-ade45ad3.js} +0 -0
  250. package/typings.d.ts +1 -5
@@ -1,29 +1,30 @@
1
- /* hash: udn6i */
1
+ /* hash: 1nn8k */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-bg-primary: #fff;
4
5
  --color-light-bg-secondary: #f3f4f5;
5
6
  --color-light-bg-tertiary: #e7e9eb;
6
7
  --color-light-text-primary: #0b1f35;
7
8
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
8
- }
9
- :root {
9
+ } :root {
10
+ } :root {
11
+ } :root {
10
12
 
11
13
  /* Hard */
12
14
 
13
15
  /* Up */
14
16
 
15
17
  /* Hard up */
16
- }
17
- :root {
18
+ } :root {
19
+ } :root {
18
20
  --gap-s: 12px;
19
21
  --gap-m: 16px;
20
22
  --gap-l: 20px;
21
- }
22
- :root {
23
+ } :root {
24
+ } :root {
23
25
  --disabled-cursor: not-allowed;
24
26
  --size-s-height: 48px;
25
- }
26
- :root {
27
+ } :root {
27
28
 
28
29
  /* options list */
29
30
 
@@ -42,8 +43,7 @@
42
43
  /* checkmark */
43
44
 
44
45
  /* optgroup */
45
- }
46
- .select__option_du6yo {
46
+ } .select__option_6j6wx {
47
47
  font-size: 16px;
48
48
  line-height: 20px;
49
49
  font-weight: 400;
@@ -60,43 +60,32 @@
60
60
  position: relative;
61
61
  cursor: pointer;
62
62
  min-height: var(--size-s-height)
63
- }
64
- .select__option_du6yo:not(.select__disabled_du6yo):active {
63
+ } .select__option_6j6wx:not(.select__disabled_6j6wx):active {
65
64
  background: var(--select-option-active-background);
66
65
  color: var(--select-option-active-color);
67
- }
68
- .select__option_du6yo.select__checkmarkBefore_du6yo {
66
+ } .select__option_6j6wx.select__checkmarkBefore_6j6wx {
69
67
  padding: 0 0 0 var(--gap-s)
70
- }
71
- .select__option_du6yo.select__checkmarkBefore_du6yo.select__mobile_du6yo {
68
+ } .select__option_6j6wx.select__checkmarkBefore_6j6wx.select__mobile_6j6wx {
72
69
  padding-left: var(--gap-m);
73
- }
74
- .select__option_du6yo.select__checkmarkAfter_du6yo {
70
+ } .select__option_6j6wx.select__checkmarkAfter_6j6wx {
75
71
  padding: 0 var(--gap-s) 0 0
76
- }
77
- .select__option_du6yo.select__checkmarkAfter_du6yo.select__mobile_du6yo {
72
+ } .select__option_6j6wx.select__checkmarkAfter_6j6wx.select__mobile_6j6wx {
78
73
  padding-right: var(--gap-l);
79
- }
80
- .select__option_du6yo.select__textContent_du6yo {
74
+ } .select__option_6j6wx.select__textContent_6j6wx {
81
75
  padding: var(--gap-s)
82
- }
83
- .select__option_du6yo.select__textContent_du6yo.select__mobile_du6yo {
76
+ } .select__option_6j6wx.select__textContent_6j6wx.select__mobile_6j6wx {
84
77
  padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
85
- }
86
- .select__selected_du6yo {
78
+ } .select__selected_6j6wx {
87
79
  background: var(--select-option-selected-background);
88
80
  color: var(--select-option-selected-color);
89
81
  cursor: default;
90
- }
91
- .select__highlighted_du6yo {
82
+ } .select__highlighted_6j6wx {
92
83
  background: var(--select-option-hover-background);
93
84
  color: var(--select-option-hover-color);
94
- }
95
- .select__disabled_du6yo {
85
+ } .select__disabled_6j6wx {
96
86
  cursor: var(--disabled-cursor);
97
87
  background: var(--select-option-disabled-background);
98
88
  color: var(--select-option-disabled-color);
99
- }
100
- .select__content_du6yo {
89
+ } .select__content_6j6wx {
101
90
  flex: 1;
102
91
  }
@@ -5,6 +5,6 @@ import 'classnames';
5
5
  import 'downshift';
6
6
  import '@alfalab/core-components-popover/modern';
7
7
  import '@alfalab/hooks';
8
- export { B as BaseSelect } from '../../Component-8d6d6d34.js';
8
+ export { B as BaseSelect } from '../../Component-2a37a356.js';
9
9
  import '../../utils.js';
10
10
  import '../native-select/Component.js';
@@ -1,8 +1,10 @@
1
- /* hash: zm3j5 */
1
+ /* hash: omsx3 */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-bg-primary: #fff;
4
- }
5
- :root {
5
+ } :root {
6
+ } :root {
7
+ } :root {
6
8
  --shadow-m: 0 0 16px rgba(11, 31, 53, 0.08), 0 8px 16px rgba(11, 31, 53, 0.16);
7
9
 
8
10
  /* Hard */
@@ -10,14 +12,13 @@
10
12
  /* Up */
11
13
 
12
14
  /* Hard up */
13
- }
14
- :root {
15
- --gap-2xs: 4px;
16
- }
17
- :root {
15
+ } :root {
18
16
  --border-radius-m: 8px;
19
- }
20
- :root {
17
+ } :root {
18
+ --gap-2xs: 4px;
19
+ } :root {
20
+ } :root {
21
+ } :root {
21
22
 
22
23
  /* options list */
23
24
 
@@ -33,13 +34,11 @@
33
34
  /* checkmark */
34
35
 
35
36
  /* optgroup */
36
- }
37
- .select__component_fvul1 {
37
+ } .select__component_1j9ks {
38
38
  width: max-content;
39
39
  position: relative;
40
40
  outline: 0;
41
- }
42
- .select__popoverInner_fvul1 {
41
+ } .select__popoverInner_1j9ks {
43
42
  padding-top: var(--select-options-list-offset);
44
43
  padding-bottom: var(--select-options-list-offset);
45
44
  box-shadow: none;
@@ -47,8 +46,7 @@
47
46
  background: transparent;
48
47
  border-radius: 0;
49
48
  position: relative;
50
- }
51
- .select__optionsList_fvul1 {
49
+ } .select__optionsList_1j9ks {
52
50
  padding-top: var(--select-options-list-top-padding);
53
51
  padding-bottom: var(--select-options-list-bottom-padding);
54
52
  box-shadow: var(--select-options-list-box-shadow);
@@ -56,8 +54,7 @@
56
54
  background: var(--select-option-background);
57
55
  overflow: hidden;
58
56
  will-change: transform;
59
- }
60
- .select__nativeSelect_fvul1 {
57
+ } .select__nativeSelect_1j9ks {
61
58
  opacity: 0;
62
59
  overflow: hidden;
63
60
  position: absolute;
@@ -70,13 +67,10 @@
70
67
  height: 100%;
71
68
  cursor: pointer;
72
69
  z-index: 1;
73
- }
74
- .select__block_fvul1 {
70
+ } .select__block_1j9ks {
75
71
  width: 100%;
76
- }
77
- /* width: max-content; fix for IE */
78
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
79
- .select__component_fvul1 {
72
+ } /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
73
+ .select__component_1j9ks {
80
74
  float: left;
81
75
  clear: left;
82
76
  }
@@ -1 +1 @@
1
- export * from "../../Component-8d6d6d34";
1
+ export * from "../../Component-2a37a356";
@@ -1,4 +1,4 @@
1
- export { B as BaseSelect } from '../../Component-8d6d6d34.js';
1
+ export { B as BaseSelect } from '../../Component-2a37a356.js';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import '@juggle/resize-observer';
@@ -6,8 +6,8 @@ import '@alfalab/core-components-bottom-sheet/modern';
6
6
  import '@alfalab/core-components-modal/modern/mobile';
7
7
  import '../../Component.js';
8
8
  import '../arrow/Component.js';
9
- import '../../Component-8d6d6d34.js';
10
- export { B as BaseSelectMobile } from '../../Component-c2b10ca0.js';
9
+ import '../../Component-2a37a356.js';
10
+ export { B as BaseSelectMobile } from '../../Component-79964ac6.js';
11
11
  import '../field/Component.js';
12
12
  import '../optgroup/Component.js';
13
13
  import '../option/Component.js';
@@ -18,7 +18,7 @@ import '@alfalab/hooks';
18
18
  import '../../utils.js';
19
19
  import '../base-option/Component.js';
20
20
  import '@alfalab/core-components-skeleton/modern';
21
- import '../../intersection-observer-c9397884.js';
21
+ import '../../intersection-observer-eebe1d7d.js';
22
22
  import '../base-checkmark/Component.js';
23
23
  import './checkmark/Component.js';
24
24
  import './options-list/Component.js';
@@ -27,10 +27,10 @@ import '@juggle/resize-observer';
27
27
  import '@alfalab/core-components-popover/modern';
28
28
  import '../native-select/Component.js';
29
29
  import '@alfalab/core-components-form-control/modern';
30
- import '@alfalab/core-components-badge/modern';
31
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
32
30
  import '@alfalab/icons-glyph/CheckmarkMIcon';
33
31
  import '../checkmark/Component.js';
32
+ import '@alfalab/core-components-badge/modern';
34
33
  import '@alfalab/core-components-checkbox/modern';
34
+ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
35
35
  import '@alfalab/core-components-button/modern';
36
36
  import '@alfalab/core-components-base-modal/modern';
@@ -1,16 +1,13 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { Badge } from '@alfalab/core-components-badge/modern';
4
- import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
5
3
  import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
6
4
 
7
- const styles = {"checkmark":"select__checkmark_6kgqw","selected":"select__selected_6kgqw","displayIcon":"select__displayIcon_6kgqw","displayBadge":"select__displayBadge_6kgqw"};
5
+ const styles = {"checkmark":"select__checkmark_azqdh","selected":"select__selected_azqdh","displayIcon":"select__displayIcon_azqdh","displayBadge":"select__displayBadge_azqdh"};
8
6
  require('./index.css')
9
7
 
10
8
  const Checkmark = ({ selected, className }) => (React.createElement("div", { className: cn(styles.checkmark, className, {
11
9
  [styles.selected]: selected,
12
10
  }) },
13
- React.createElement(CheckmarkMIcon, { className: styles.displayIcon }),
14
- React.createElement(Badge, { className: styles.displayBadge, view: 'icon', size: 'm', iconColor: 'positive', content: React.createElement(CheckmarkCircleMIcon, null) })));
11
+ React.createElement(CheckmarkMIcon, { className: styles.displayIcon })));
15
12
 
16
13
  export { Checkmark };
@@ -1,13 +1,20 @@
1
- /* hash: 72tl9 */
1
+ /* hash: 1v4n1 */
2
2
  :root {
3
+ } /* deprecated */ :root {
4
+ } :root {
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- :root {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } :root {
11
18
 
12
19
  /* options list */
13
20
 
@@ -18,8 +25,7 @@
18
25
  --select-mobile-checkmark-display-badge: none;
19
26
 
20
27
  /* optgroup */
21
- }
22
- .select__checkmark_6kgqw {
28
+ } .select__checkmark_azqdh {
23
29
  flex-shrink: 0;
24
30
  display: flex;
25
31
  align-items: center;
@@ -27,16 +33,12 @@
27
33
  width: 24px;
28
34
  height: 24px;
29
35
  opacity: 0
30
- }
31
- .select__checkmark_6kgqw:first-child {
36
+ } .select__checkmark_azqdh:first-child {
32
37
  display: none;
33
- }
34
- .select__checkmark_6kgqw.select__selected_6kgqw {
38
+ } .select__checkmark_azqdh.select__selected_azqdh {
35
39
  opacity: 1;
36
- }
37
- .select__displayIcon_6kgqw {
40
+ } .select__displayIcon_azqdh {
38
41
  display: var(--select-mobile-checkmark-display-icon);
39
- }
40
- .select__displayBadge_6kgqw {
42
+ } .select__displayBadge_azqdh {
41
43
  display: var(--select-mobile-checkmark-display-badge);
42
44
  }
@@ -1,6 +1,4 @@
1
1
  export { Checkmark } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import '@alfalab/core-components-badge/modern';
5
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
4
  import '@alfalab/icons-glyph/CheckmarkMIcon';
@@ -1,19 +1,24 @@
1
- /* hash: 199vk */
1
+ /* hash: 1b3l0 */
2
2
  :root {
3
+ } /* deprecated */ :root {
4
+ } :root {
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- :root {
13
+ } :root {
14
+ } :root {
11
15
  --gap-2xs: 4px;
12
16
  --gap-xs: 8px;
13
17
  --gap-m: 16px;
14
18
  --gap-l: 20px;
15
- }
16
- :root {
19
+ } :root {
20
+ } :root {
21
+ } :root {
17
22
 
18
23
  /* options list */
19
24
  --select-options-list-offset: var(--gap-2xs);
@@ -23,13 +28,11 @@
23
28
  /* checkmark */
24
29
 
25
30
  /* optgroup */
26
- }
27
- .select__component_1pba6 {
31
+ } .select__component_15ued {
28
32
  width: max-content;
29
33
  position: relative;
30
34
  outline: 0;
31
- }
32
- .select__popoverInner_1pba6 {
35
+ } .select__popoverInner_15ued {
33
36
  padding-top: var(--select-options-list-offset);
34
37
  padding-bottom: var(--select-options-list-offset);
35
38
  box-shadow: none;
@@ -37,32 +40,23 @@
37
40
  background: transparent;
38
41
  border-radius: 0;
39
42
  position: relative;
40
- }
41
- .select__sheet_1pba6 {
43
+ } .select__sheet_15ued {
42
44
  overflow: hidden;
43
- }
44
- .select__sheetContent_1pba6 {
45
+ } .select__sheetContent_15ued {
45
46
  padding: 0;
46
- }
47
- .select__sheetContainer_1pba6 {
47
+ } .select__sheetContainer_15ued {
48
48
  padding: 0;
49
- }
50
- .select__block_1pba6 {
49
+ } .select__block_15ued {
51
50
  width: 100%;
52
- }
53
- /* width: max-content; fix for IE */
54
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
55
- .select__component_1pba6 {
51
+ } /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
52
+ .select__component_15ued {
56
53
  float: left;
57
54
  clear: left;
58
55
  }
59
- }
60
- .select__option_1pba6 {
56
+ } .select__option_15ued {
61
57
  padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
62
- }
63
- .select__option_1pba6:before {
58
+ } .select__option_15ued:before {
64
59
  display: none;
65
- }
66
- .select__optionGroup_1pba6 {
60
+ } .select__optionGroup_15ued {
67
61
  padding: var(--gap-m) var(--gap-m) var(--gap-xs);
68
62
  }
@@ -1 +1 @@
1
- export * from "../../Component-c2b10ca0";
1
+ export * from "../../Component-79964ac6";
@@ -1,4 +1,4 @@
1
- export { B as BaseSelectMobile } from '../../Component-c2b10ca0.js';
1
+ export { B as BaseSelectMobile } from '../../Component-79964ac6.js';
2
2
  import 'react';
3
3
  import '../arrow/Component.js';
4
4
  import 'classnames';
@@ -8,7 +8,7 @@ import 'downshift';
8
8
  import '@alfalab/core-components-bottom-sheet/modern';
9
9
  import '@alfalab/core-components-modal/modern/mobile';
10
10
  import '../../Component.js';
11
- import '../../Component-8d6d6d34.js';
11
+ import '../../Component-2a37a356.js';
12
12
  import '@juggle/resize-observer';
13
13
  import '@alfalab/core-components-popover/modern';
14
14
  import '@alfalab/hooks';
@@ -19,18 +19,18 @@ import '@alfalab/core-components-form-control/modern';
19
19
  import '../optgroup/Component.js';
20
20
  import '../option/Component.js';
21
21
  import './checkmark/Component.js';
22
- import '@alfalab/core-components-badge/modern';
23
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
24
22
  import '@alfalab/icons-glyph/CheckmarkMIcon';
25
23
  import '../checkmark/Component.js';
24
+ import '@alfalab/core-components-badge/modern';
26
25
  import '@alfalab/core-components-checkbox/modern';
26
+ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
27
27
  import '../options-list/Component.js';
28
28
  import '@alfalab/core-components-scrollbar/modern';
29
29
  import 'react-virtual';
30
30
  import '../base-option/Component.js';
31
31
  import '../base-checkmark/Component.js';
32
32
  import '@alfalab/core-components-skeleton/modern';
33
- import '../../intersection-observer-c9397884.js';
33
+ import '../../intersection-observer-eebe1d7d.js';
34
34
  import '@alfalab/core-components-button/modern';
35
35
  import './options-list/Component.js';
36
36
  import '@alfalab/core-components-base-modal/modern';
@@ -5,7 +5,7 @@ import { Button } from '@alfalab/core-components-button/modern';
5
5
  import { isGroup } from '../../../utils.js';
6
6
  import { Optgroup } from '../../optgroup/Component.js';
7
7
 
8
- const styles = {"optionsList":"select__optionsList_1h2zf","emptyPlaceholder":"select__emptyPlaceholder_1h2zf","l":"select__l_1h2zf","xl":"select__xl_1h2zf","footer":"select__footer_1h2zf","footerButton":"select__footerButton_1h2zf","highlighted":"select__highlighted_1h2zf"};
8
+ const styles = {"optionsList":"select__optionsList_1g3im","emptyPlaceholder":"select__emptyPlaceholder_1g3im","l":"select__l_1g3im","xl":"select__xl_1g3im","footer":"select__footer_1g3im","footerButton":"select__footerButton_1g3im","highlighted":"select__highlighted_1g3im"};
9
9
  require('./index.css')
10
10
 
11
11
  const createCounter = () => {
@@ -1,23 +1,26 @@
1
- /* hash: ydq4k */
1
+ /* hash: 57vio */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-bg-primary: #fff;
4
5
  --color-light-border-primary: #dbdee1;
5
6
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
6
- }
7
- :root {
7
+ } :root {
8
+ } :root {
9
+ } :root {
8
10
 
9
11
  /* Hard */
10
12
 
11
13
  /* Up */
12
14
 
13
15
  /* Hard up */
14
- }
15
- :root {
16
+ } :root {
17
+ } :root {
16
18
  --gap-s: 12px;
17
19
  --gap-m: 16px;
18
20
  --gap-xl: 24px;
19
- }
20
- :root {
21
+ } :root {
22
+ } :root {
23
+ } :root {
21
24
 
22
25
  /* options list */
23
26
  --select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
@@ -27,39 +30,31 @@
27
30
  /* checkmark */
28
31
 
29
32
  /* optgroup */
30
- }
31
- :root {
33
+ } :root {
32
34
  --select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
33
35
  --select-mobile-footer-background-color: var(--color-light-bg-primary);
34
- }
35
- .select__optionsList_1h2zf {
36
+ } .select__optionsList_1g3im {
36
37
  width: 100%;
37
38
  outline: none;
38
39
  box-sizing: border-box;
39
- }
40
- .select__emptyPlaceholder_1h2zf {
40
+ } .select__emptyPlaceholder_1g3im {
41
41
  padding: var(--gap-m) var(--gap-s);
42
42
  color: var(--select-options-list-empty-placeholder-color);
43
- }
44
- .select__l_1h2zf .select__emptyPlaceholder_1h2zf,
45
- .select__xl_1h2zf .select__emptyPlaceholder_1h2zf {
43
+ } .select__l_1g3im .select__emptyPlaceholder_1g3im,
44
+ .select__xl_1g3im .select__emptyPlaceholder_1g3im {
46
45
  padding: var(--gap-xl) var(--gap-m);
47
- }
48
- .select__footer_1h2zf {
46
+ } .select__footer_1g3im {
49
47
  display: flex;
50
48
  justify-content: space-between;
51
49
  position: sticky;
52
50
  padding: var(--gap-m) var(--gap-m);
53
51
  background-color: var(--color-light-bg-primary);
54
52
  bottom: 0
55
- }
56
- .select__footer_1h2zf .select__footerButton_1h2zf:first-of-type {
53
+ } .select__footer_1g3im .select__footerButton_1g3im:first-of-type {
57
54
  margin-right: var(--gap-m);
58
- }
59
- .select__footerButton_1h2zf {
55
+ } .select__footerButton_1g3im {
60
56
  width: 50%;
61
- }
62
- .select__highlighted_1h2zf {
57
+ } .select__highlighted_1g3im {
63
58
  border-top: var(--select-mobile-footer-border-top);
64
59
  background-color: var(--select-mobile-footer-background-color);
65
60
  }
@@ -3,20 +3,20 @@ import cn from 'classnames';
3
3
  import { Badge } from '@alfalab/core-components-badge/modern';
4
4
  import { Checkbox } from '@alfalab/core-components-checkbox/modern';
5
5
  import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
+ import CheckmarkMIcon from '@alfalab/icons-glyph/CheckmarkMIcon';
6
7
 
7
- const styles = {"checkmark":"select__checkmark_1advo","single":"select__single_1advo","selected":"select__selected_1advo","before":"select__before_1advo","multiple":"select__multiple_1advo","after":"select__after_1advo","colorIcon":"select__colorIcon_1advo"};
8
+ const styles = {"checkmark":"select__checkmark_132vm","after":"select__after_132vm","single":"select__single_132vm","selected":"select__selected_132vm","before":"select__before_132vm","multiple":"select__multiple_132vm","colorIcon":"select__colorIcon_132vm"};
8
9
  require('./index.css')
9
10
 
10
11
  const Checkmark = ({ selected, disabled = false, className, multiple, position = 'before', }) => {
11
- const single = !multiple || position === 'after';
12
+ const single = !multiple;
12
13
  const checkmarkClassNames = cn(styles.checkmark, className, styles[position], {
13
14
  [styles.multiple]: !single,
14
15
  [styles.single]: single,
15
16
  [styles.selected]: selected,
16
17
  });
17
18
  const handleCheckboxClick = useCallback((event) => event.stopPropagation(), []);
18
- return single ? (React.createElement("div", { className: checkmarkClassNames },
19
- React.createElement(Badge, { className: styles.after, view: 'icon', size: 'm', iconColor: 'positive', content: React.createElement(CheckmarkCircleMIcon, { className: styles.colorIcon }) }))) : (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm', onClick: handleCheckboxClick }));
19
+ return single ? (React.createElement("div", { className: checkmarkClassNames }, position === 'before' ? (React.createElement(Badge, { className: styles.after, view: 'icon', size: 'm', iconColor: 'positive', content: React.createElement(CheckmarkCircleMIcon, { className: styles.colorIcon }) })) : (React.createElement(CheckmarkMIcon, { className: cn(styles.displayIcon) })))) : (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm', onClick: handleCheckboxClick }));
20
20
  };
21
21
 
22
22
  export { Checkmark };
@@ -1,24 +1,25 @@
1
- /* hash: 1qxbw */
1
+ /* hash: l22g3 */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-graphic-positive: #2fc26e;
4
5
  --color-light-graphic-primary: #0b1f35;
5
- }
6
- :root {
6
+ } :root {
7
+ } :root {
8
+ } :root {
7
9
 
8
10
  /* Hard */
9
11
 
10
12
  /* Up */
11
13
 
12
14
  /* Hard up */
13
- }
14
- :root {
15
+ } :root {
16
+ --border-radius-circle: 50%;
17
+ } :root {
15
18
  --gap-xs: 8px;
16
19
  --gap-s: 12px;
17
- }
18
- :root {
19
- --border-radius-circle: 50%;
20
- }
21
- :root {
20
+ } :root {
21
+ } :root {
22
+ } :root {
22
23
 
23
24
  /* options list */
24
25
 
@@ -27,20 +28,23 @@
27
28
  /* checkmark */
28
29
 
29
30
  --select-checkmark-margin: 0 var(--gap-xs) 0 0;
31
+ --select-checkmark-margin-after: var(--select-checkmark-margin);
30
32
  --select-checkmark-size: 4px;
31
33
  --select-checkmark-before-display: 'flex';
32
34
  --select-checkmark-after-display: none;
35
+ --select-checkmark-before-display-multiple: block;
36
+ --select-checkmark-after-display-single: none;
33
37
  --select-checkmark-unselected-opacity: 0;
34
38
  --select-checkmark-background: var(--color-light-graphic-primary);
35
39
  --select-checkmark-border-radius: var(--border-radius-circle);
36
40
 
37
41
  /* optgroup */
38
- }
39
- .select__checkmark_1advo {
42
+ } .select__checkmark_132vm {
40
43
  flex-shrink: 0;
41
- margin: var(--select-checkmark-margin);
42
- }
43
- .select__single_1advo {
44
+ margin: var(--select-checkmark-margin)
45
+ } .select__checkmark_132vm.select__after_132vm {
46
+ margin: var(--select-checkmark-margin-after);
47
+ } .select__single_132vm {
44
48
  display: flex;
45
49
  align-items: center;
46
50
  justify-content: center;
@@ -50,19 +54,17 @@
50
54
  border-radius: var(--select-checkmark-border-radius);
51
55
  width: var(--select-checkmark-size);
52
56
  height: var(--select-checkmark-size)
53
- }
54
- .select__single_1advo.select__selected_1advo {
57
+ } .select__single_132vm.select__selected_132vm {
55
58
  opacity: 1;
56
- }
57
- .select__before_1advo {
59
+ } .select__before_132vm {
58
60
  display: var(--select-checkmark-before-display)
59
- }
60
- .select__before_1advo.select__multiple_1advo {
61
+ } .select__before_132vm.select__multiple_132vm {
61
62
  margin-right: var(--gap-s);
62
- }
63
- .select__after_1advo {
64
- display: var(--select-checkmark-after-display);
65
- }
66
- .select__colorIcon_1advo {
63
+ display: var(--select-checkmark-before-display-multiple);
64
+ } .select__after_132vm {
65
+ display: var(--select-checkmark-after-display)
66
+ } .select__after_132vm.select__single_132vm {
67
+ display: var(--select-checkmark-after-display-single);
68
+ } .select__colorIcon_132vm {
67
69
  color: var(--color-light-graphic-positive);
68
70
  }