@alfalab/core-components-select 17.10.1 → 17.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/components/arrow/Component.js +1 -1
  2. package/components/arrow/index.css +3 -3
  3. package/components/base-checkmark/Component.js +1 -1
  4. package/components/base-checkmark/index.css +6 -6
  5. package/components/base-option/Component.js +1 -1
  6. package/components/base-option/index.css +18 -17
  7. package/components/base-select/Component.js +2 -2
  8. package/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  9. package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  10. package/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  11. package/components/base-select/index.css +24 -22
  12. package/components/base-select/mobile.css +16 -15
  13. package/components/checkmark/Component.js +1 -1
  14. package/components/checkmark/index.css +12 -11
  15. package/components/checkmark-mobile/Component.js +1 -1
  16. package/components/checkmark-mobile/index.css +6 -6
  17. package/components/clear-button/Component.js +1 -1
  18. package/components/clear-button/index.css +6 -6
  19. package/components/field/Component.js +1 -1
  20. package/components/field/index.css +12 -12
  21. package/components/footer/Component.js +1 -1
  22. package/components/footer/index.css +5 -5
  23. package/components/optgroup/Component.js +1 -1
  24. package/components/optgroup/index.css +6 -6
  25. package/components/option/Component.js +1 -1
  26. package/components/option/index.css +21 -21
  27. package/components/options-list/Component.js +3 -3
  28. package/components/options-list/index.css +14 -11
  29. package/components/search/Component.js +1 -1
  30. package/components/search/index.css +2 -2
  31. package/components/virtual-options-list/Component.js +1 -1
  32. package/components/virtual-options-list/index.css +20 -19
  33. package/cssm/components/base-option/index.module.css +3 -2
  34. package/cssm/components/base-select/index.module.css +13 -11
  35. package/cssm/components/base-select/mobile.module.css +4 -3
  36. package/cssm/components/checkmark/index.module.css +2 -1
  37. package/cssm/components/option/index.module.css +2 -2
  38. package/cssm/components/options-list/Component.js +2 -2
  39. package/cssm/components/options-list/index.module.css +4 -1
  40. package/cssm/components/virtual-options-list/index.module.css +5 -4
  41. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +3 -1
  42. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/vars.css +0 -0
  43. package/cssm/utils.d.ts +1 -1
  44. package/cssm/utils.js +11 -0
  45. package/esm/components/arrow/Component.js +1 -1
  46. package/esm/components/arrow/index.css +3 -3
  47. package/esm/components/base-checkmark/Component.js +1 -1
  48. package/esm/components/base-checkmark/index.css +6 -6
  49. package/esm/components/base-option/Component.js +1 -1
  50. package/esm/components/base-option/index.css +18 -17
  51. package/esm/components/base-select/Component.js +2 -2
  52. package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  53. package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  54. package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  55. package/esm/components/base-select/index.css +24 -22
  56. package/esm/components/base-select/mobile.css +16 -15
  57. package/esm/components/checkmark/Component.js +1 -1
  58. package/esm/components/checkmark/index.css +12 -11
  59. package/esm/components/checkmark-mobile/Component.js +1 -1
  60. package/esm/components/checkmark-mobile/index.css +6 -6
  61. package/esm/components/clear-button/Component.js +1 -1
  62. package/esm/components/clear-button/index.css +6 -6
  63. package/esm/components/field/Component.js +1 -1
  64. package/esm/components/field/index.css +12 -12
  65. package/esm/components/footer/Component.js +1 -1
  66. package/esm/components/footer/index.css +5 -5
  67. package/esm/components/optgroup/Component.js +1 -1
  68. package/esm/components/optgroup/index.css +6 -6
  69. package/esm/components/option/Component.js +1 -1
  70. package/esm/components/option/index.css +21 -21
  71. package/esm/components/options-list/Component.js +3 -3
  72. package/esm/components/options-list/index.css +14 -11
  73. package/esm/components/search/Component.js +1 -1
  74. package/esm/components/search/index.css +2 -2
  75. package/esm/components/virtual-options-list/Component.js +1 -1
  76. package/esm/components/virtual-options-list/index.css +20 -19
  77. package/esm/{list-popover-desktop-446b6d5f.js → list-popover-desktop-e4b69ce0.js} +1 -1
  78. package/esm/mobile/Component.mobile.js +1 -1
  79. package/esm/mobile.module-a3e68caf.js +4 -0
  80. package/esm/presets/index.js +1 -1
  81. package/esm/presets/useSelectWithApply/hook.js +1 -1
  82. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  83. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  84. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +6 -4
  85. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  86. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  87. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  88. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  89. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  90. package/esm/presets/useSelectWithLoading/index.css +2 -2
  91. package/esm/shared/index.js +1 -1
  92. package/esm/utils.d.ts +1 -1
  93. package/esm/utils.js +13 -2
  94. package/{list-popover-desktop-6bae9b47.js → list-popover-desktop-8ffefe6e.js} +1 -1
  95. package/mobile/Component.mobile.js +1 -1
  96. package/mobile.module-97d68ba9.js +6 -0
  97. package/modern/components/arrow/Component.js +1 -1
  98. package/modern/components/arrow/index.css +3 -3
  99. package/modern/components/base-checkmark/Component.js +1 -1
  100. package/modern/components/base-checkmark/index.css +6 -6
  101. package/modern/components/base-option/Component.js +1 -1
  102. package/modern/components/base-option/index.css +18 -17
  103. package/modern/components/base-select/Component.js +2 -2
  104. package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  105. package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  106. package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  107. package/modern/components/base-select/index.css +24 -22
  108. package/modern/components/base-select/mobile.css +16 -15
  109. package/modern/components/checkmark/Component.js +1 -1
  110. package/modern/components/checkmark/index.css +12 -11
  111. package/modern/components/checkmark-mobile/Component.js +1 -1
  112. package/modern/components/checkmark-mobile/index.css +6 -6
  113. package/modern/components/clear-button/Component.js +1 -1
  114. package/modern/components/clear-button/index.css +6 -6
  115. package/modern/components/field/Component.js +1 -1
  116. package/modern/components/field/index.css +12 -12
  117. package/modern/components/footer/Component.js +1 -1
  118. package/modern/components/footer/index.css +5 -5
  119. package/modern/components/optgroup/Component.js +1 -1
  120. package/modern/components/optgroup/index.css +6 -6
  121. package/modern/components/option/Component.js +1 -1
  122. package/modern/components/option/index.css +21 -21
  123. package/modern/components/options-list/Component.js +3 -3
  124. package/modern/components/options-list/index.css +14 -11
  125. package/modern/components/search/Component.js +1 -1
  126. package/modern/components/search/index.css +2 -2
  127. package/modern/components/virtual-options-list/Component.js +1 -1
  128. package/modern/components/virtual-options-list/index.css +20 -19
  129. package/modern/{list-popover-desktop-46e08681.js → list-popover-desktop-85370c2c.js} +1 -1
  130. package/modern/mobile/Component.mobile.js +1 -1
  131. package/modern/mobile.module-eb08a4de.js +4 -0
  132. package/modern/presets/index.js +1 -1
  133. package/modern/presets/useSelectWithApply/hook.js +1 -1
  134. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  135. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  136. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +6 -4
  137. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  138. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  139. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  140. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  141. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  142. package/modern/presets/useSelectWithLoading/index.css +2 -2
  143. package/modern/shared/index.js +1 -1
  144. package/modern/utils.d.ts +1 -1
  145. package/modern/utils.js +13 -2
  146. package/moderncssm/Component.responsive.d.ts +7 -0
  147. package/moderncssm/Component.responsive.js +21 -0
  148. package/moderncssm/components/arrow/Component.d.ts +5 -0
  149. package/moderncssm/components/arrow/Component.js +8 -0
  150. package/moderncssm/components/arrow/index.d.ts +1 -0
  151. package/moderncssm/components/arrow/index.js +1 -0
  152. package/moderncssm/components/arrow/index.module.css +23 -0
  153. package/moderncssm/components/base-checkmark/Component.d.ts +5 -0
  154. package/moderncssm/components/base-checkmark/Component.js +15 -0
  155. package/moderncssm/components/base-checkmark/index.d.ts +1 -0
  156. package/moderncssm/components/base-checkmark/index.js +1 -0
  157. package/moderncssm/components/base-checkmark/index.module.css +30 -0
  158. package/moderncssm/components/base-option/Component.d.ts +4 -0
  159. package/moderncssm/components/base-option/Component.js +33 -0
  160. package/moderncssm/components/base-option/index.d.ts +1 -0
  161. package/moderncssm/components/base-option/index.js +1 -0
  162. package/moderncssm/components/base-option/index.module.css +81 -0
  163. package/moderncssm/components/base-select/Component.d.ts +14 -0
  164. package/moderncssm/components/base-select/Component.js +408 -0
  165. package/moderncssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +12 -0
  166. package/moderncssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +15 -0
  167. package/moderncssm/components/base-select/components/list-desktop/list-popover-desktop.d.ts +9 -0
  168. package/moderncssm/components/base-select/components/list-desktop/list-popover-desktop.js +13 -0
  169. package/moderncssm/components/base-select/components/list-desktop/types/types.d.ts +3 -0
  170. package/moderncssm/components/base-select/components/list-desktop/types/types.js +1 -0
  171. package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +16 -0
  172. package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +19 -0
  173. package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +28 -0
  174. package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +18 -0
  175. package/moderncssm/components/base-select/components/list-mobile/helpers/index.d.ts +2 -0
  176. package/moderncssm/components/base-select/components/list-mobile/helpers/index.js +2 -0
  177. package/moderncssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +15 -0
  178. package/moderncssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +24 -0
  179. package/moderncssm/components/base-select/components/list-mobile/list-mobile.d.ts +16 -0
  180. package/moderncssm/components/base-select/components/list-mobile/list-mobile.js +17 -0
  181. package/moderncssm/components/base-select/components/list-mobile/list-modal-mobile.d.ts +15 -0
  182. package/moderncssm/components/base-select/components/list-mobile/list-modal-mobile.js +32 -0
  183. package/moderncssm/components/base-select/components/list-mobile/types/types.d.ts +4 -0
  184. package/moderncssm/components/base-select/components/list-mobile/types/types.js +1 -0
  185. package/moderncssm/components/base-select/index.d.ts +1 -0
  186. package/moderncssm/components/base-select/index.js +1 -0
  187. package/moderncssm/components/base-select/index.module.css +81 -0
  188. package/moderncssm/components/base-select/mobile.module.css +48 -0
  189. package/moderncssm/components/base-select/types/component-types.d.ts +50 -0
  190. package/moderncssm/components/base-select/types/component-types.js +1 -0
  191. package/moderncssm/components/checkmark/Component.d.ts +5 -0
  192. package/moderncssm/components/checkmark/Component.js +20 -0
  193. package/moderncssm/components/checkmark/index.d.ts +1 -0
  194. package/moderncssm/components/checkmark/index.js +1 -0
  195. package/moderncssm/components/checkmark/index.module.css +59 -0
  196. package/moderncssm/components/checkmark-mobile/Component.d.ts +5 -0
  197. package/moderncssm/components/checkmark-mobile/Component.js +11 -0
  198. package/moderncssm/components/checkmark-mobile/index.d.ts +1 -0
  199. package/moderncssm/components/checkmark-mobile/index.js +1 -0
  200. package/moderncssm/components/checkmark-mobile/index.module.css +34 -0
  201. package/moderncssm/components/clear-button/Component.d.ts +5 -0
  202. package/moderncssm/components/clear-button/Component.js +9 -0
  203. package/moderncssm/components/clear-button/index.d.ts +1 -0
  204. package/moderncssm/components/clear-button/index.js +1 -0
  205. package/moderncssm/components/clear-button/index.module.css +47 -0
  206. package/moderncssm/components/field/Component.d.ts +13 -0
  207. package/moderncssm/components/field/Component.js +35 -0
  208. package/moderncssm/components/field/index.d.ts +1 -0
  209. package/moderncssm/components/field/index.js +1 -0
  210. package/moderncssm/components/field/index.module.css +74 -0
  211. package/moderncssm/components/footer/Component.d.ts +12 -0
  212. package/moderncssm/components/footer/Component.js +22 -0
  213. package/moderncssm/components/footer/index.d.ts +1 -0
  214. package/moderncssm/components/footer/index.js +1 -0
  215. package/moderncssm/components/footer/index.module.css +28 -0
  216. package/moderncssm/components/index.d.ts +9 -0
  217. package/moderncssm/components/index.js +9 -0
  218. package/moderncssm/components/native-select/Component.d.ts +25 -0
  219. package/moderncssm/components/native-select/Component.js +13 -0
  220. package/moderncssm/components/native-select/index.d.ts +1 -0
  221. package/moderncssm/components/native-select/index.js +1 -0
  222. package/moderncssm/components/optgroup/Component.d.ts +5 -0
  223. package/moderncssm/components/optgroup/Component.js +11 -0
  224. package/moderncssm/components/optgroup/index.d.ts +1 -0
  225. package/moderncssm/components/optgroup/index.js +1 -0
  226. package/moderncssm/components/optgroup/index.module.css +46 -0
  227. package/moderncssm/components/option/Component.d.ts +4 -0
  228. package/moderncssm/components/option/Component.js +23 -0
  229. package/moderncssm/components/option/index.d.ts +1 -0
  230. package/moderncssm/components/option/index.js +1 -0
  231. package/moderncssm/components/option/index.module.css +110 -0
  232. package/moderncssm/components/options-list/Component.d.ts +5 -0
  233. package/moderncssm/components/options-list/Component.js +88 -0
  234. package/moderncssm/components/options-list/index.d.ts +1 -0
  235. package/moderncssm/components/options-list/index.js +1 -0
  236. package/moderncssm/components/options-list/index.module.css +51 -0
  237. package/moderncssm/components/search/Component.d.ts +5 -0
  238. package/moderncssm/components/search/Component.js +9 -0
  239. package/moderncssm/components/search/index.d.ts +1 -0
  240. package/moderncssm/components/search/index.js +1 -0
  241. package/moderncssm/components/search/index.module.css +14 -0
  242. package/moderncssm/components/virtual-options-list/Component.d.ts +5 -0
  243. package/moderncssm/components/virtual-options-list/Component.js +138 -0
  244. package/moderncssm/components/virtual-options-list/index.d.ts +1 -0
  245. package/moderncssm/components/virtual-options-list/index.js +1 -0
  246. package/moderncssm/components/virtual-options-list/index.module.css +79 -0
  247. package/moderncssm/consts.d.ts +12 -0
  248. package/moderncssm/consts.js +13 -0
  249. package/moderncssm/desktop/Component.desktop.d.ts +6 -0
  250. package/moderncssm/desktop/Component.desktop.js +17 -0
  251. package/moderncssm/desktop/index.d.ts +2 -0
  252. package/moderncssm/desktop/index.js +1 -0
  253. package/moderncssm/hook-8c561f14.d.ts +115 -0
  254. package/moderncssm/hook-a8bc7fe8.d.ts +17 -0
  255. package/moderncssm/hook-a8bc7fe8.js +169 -0
  256. package/moderncssm/index.d.ts +2 -0
  257. package/moderncssm/index.js +1 -0
  258. package/moderncssm/mobile/Component.mobile.d.ts +5 -0
  259. package/moderncssm/mobile/Component.mobile.js +54 -0
  260. package/moderncssm/mobile/Component.modal.mobile.d.ts +4 -0
  261. package/moderncssm/mobile/Component.modal.mobile.js +6 -0
  262. package/moderncssm/mobile/index.d.ts +3 -0
  263. package/moderncssm/mobile/index.js +2 -0
  264. package/moderncssm/presets/index.d.ts +3 -0
  265. package/moderncssm/presets/index.js +3 -0
  266. package/moderncssm/presets/useLazyLoading/hook.d.ts +48 -0
  267. package/moderncssm/presets/useLazyLoading/hook.js +215 -0
  268. package/moderncssm/presets/useSelectWithApply/hook.d.ts +0 -0
  269. package/moderncssm/presets/useSelectWithApply/hook.js +4 -0
  270. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +0 -0
  271. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -0
  272. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +12 -0
  273. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +12 -0
  274. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +12 -0
  275. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/vars.css +0 -0
  276. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +11 -0
  277. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +9 -0
  278. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +9 -0
  279. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -0
  280. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -0
  281. package/moderncssm/presets/useSelectWithLoading/hook.d.ts +13 -0
  282. package/moderncssm/presets/useSelectWithLoading/hook.js +23 -0
  283. package/moderncssm/presets/useSelectWithLoading/index.module.css +7 -0
  284. package/moderncssm/shared/index.d.ts +13 -0
  285. package/moderncssm/shared/index.js +14 -0
  286. package/moderncssm/typings.d.ts +744 -0
  287. package/moderncssm/typings.js +1 -0
  288. package/moderncssm/utils.d.ts +81 -0
  289. package/moderncssm/utils.js +184 -0
  290. package/moderncssm/vars.css +10 -0
  291. package/package.json +15 -15
  292. package/presets/index.js +1 -1
  293. package/presets/useSelectWithApply/hook.js +1 -1
  294. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  295. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  296. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +6 -4
  297. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  298. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  299. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  300. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  301. package/presets/useSelectWithLoading/hook.js +1 -1
  302. package/presets/useSelectWithLoading/index.css +2 -2
  303. package/shared/index.js +1 -1
  304. package/src/components/arrow/index.module.css +1 -1
  305. package/src/components/base-checkmark/index.module.css +1 -1
  306. package/src/components/base-option/index.module.css +3 -3
  307. package/src/components/base-select/index.module.css +9 -9
  308. package/src/components/base-select/mobile.module.css +4 -4
  309. package/src/components/checkmark/index.module.css +1 -1
  310. package/src/components/checkmark-mobile/index.module.css +1 -1
  311. package/src/components/field/index.module.css +1 -1
  312. package/src/components/footer/index.module.css +1 -1
  313. package/src/components/optgroup/index.module.css +1 -1
  314. package/src/components/option/index.module.css +2 -3
  315. package/src/components/options-list/Component.tsx +2 -1
  316. package/src/components/options-list/index.module.css +6 -2
  317. package/src/components/search/index.module.css +1 -1
  318. package/src/components/virtual-options-list/index.module.css +5 -5
  319. package/src/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +3 -2
  320. package/src/presets/useSelectWithApply/options-list-with-apply/footer/vars.css +3 -0
  321. package/src/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +1 -1
  322. package/src/utils.ts +28 -3
  323. package/src/vars.css +4 -4
  324. package/utils.d.ts +1 -1
  325. package/utils.js +11 -0
  326. package/esm/mobile.module-eaf56278.js +0 -4
  327. package/mobile.module-8d14caac.js +0 -6
  328. package/modern/mobile.module-2f7796c1.js +0 -4
  329. /package/esm/{hook-570b8ac7.d.ts → hook-276c96dc.d.ts} +0 -0
  330. /package/esm/{hook-570b8ac7.js → hook-276c96dc.js} +0 -0
  331. /package/esm/{list-popover-desktop-446b6d5f.d.ts → list-popover-desktop-e4b69ce0.d.ts} +0 -0
  332. /package/{hook-a71861cb.d.ts → hook-c8ba558c.d.ts} +0 -0
  333. /package/{hook-a71861cb.js → hook-c8ba558c.js} +0 -0
  334. /package/{list-popover-desktop-6bae9b47.d.ts → list-popover-desktop-8ffefe6e.d.ts} +0 -0
  335. /package/modern/{hook-0b565ee2.d.ts → hook-a054f3bb.d.ts} +0 -0
  336. /package/modern/{hook-0b565ee2.js → hook-a054f3bb.js} +0 -0
  337. /package/modern/{list-popover-desktop-46e08681.d.ts → list-popover-desktop-85370c2c.d.ts} +0 -0
package/esm/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __assign } from 'tslib';
2
- import { isValidElement, cloneElement, useEffect, useRef } from 'react';
3
- import { getDataTestId } from '@alfalab/core-components-shared/esm';
2
+ import { isValidElement, cloneElement, useState, useEffect, useRef } from 'react';
3
+ import { useIsMounted, fnUtils, getDataTestId } from '@alfalab/core-components-shared/esm';
4
4
 
5
5
  var isGroup = function (item) {
6
6
  return Object.prototype.hasOwnProperty.call(item, 'options');
@@ -76,6 +76,8 @@ function processOptions(options, selected, filterFn, filterGroup) {
76
76
  }
77
77
  function useVisibleOptions(_a) {
78
78
  var visibleOptions = _a.visibleOptions, listRef = _a.listRef, _b = _a.styleTargetRef, styleTargetRef = _b === void 0 ? listRef : _b, open = _a.open, invalidate = _a.invalidate, options = _a.options, size = _a.size, actualOptionsCount = _a.actualOptionsCount;
79
+ var _c = useIsMounted(), runIfMounted = _c[1];
80
+ var _d = useState(false), measured = _d[0], setMeasured = _d[1];
79
81
  useEffect(function () {
80
82
  var measureOptionHeight = function (element) {
81
83
  return typeof size === 'number' ? Math.min(element.clientHeight, size) : element.clientHeight;
@@ -105,8 +107,15 @@ function useVisibleOptions(_a) {
105
107
  height += size / 2;
106
108
  }
107
109
  }
110
+ var prevHeight_1 = styleTarget.style.height;
108
111
  styleTarget.style.height = "".concat(height, "px");
112
+ setMeasured(true);
113
+ return function () {
114
+ styleTarget.style.height = prevHeight_1;
115
+ runIfMounted(function () { return setMeasured(false); });
116
+ };
109
117
  }
118
+ return fnUtils.noop;
110
119
  }, [
111
120
  actualOptionsCount,
112
121
  listRef,
@@ -116,7 +125,9 @@ function useVisibleOptions(_a) {
116
125
  styleTargetRef,
117
126
  visibleOptions,
118
127
  invalidate,
128
+ runIfMounted,
119
129
  ]);
130
+ return measured;
120
131
  }
121
132
  function defaultFilterFn(optionText, search) {
122
133
  if (!search)
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
11
 
12
- var styles = {"component":"select__component_d0r31","popoverInner":"select__popoverInner_d0r31","optionsListWrapper":"select__optionsListWrapper_d0r31","optionsListBorder":"select__optionsListBorder_d0r31","nativeSelect":"select__nativeSelect_d0r31","block":"select__block_d0r31","emptySearchPlaceholder":"select__emptySearchPlaceholder_d0r31","search":"select__search_d0r31"};
12
+ var styles = {"component":"select__component_11ha3","popoverInner":"select__popoverInner_11ha3","optionsListWrapper":"select__optionsListWrapper_11ha3","optionsListBorder":"select__optionsListBorder_11ha3","nativeSelect":"select__nativeSelect_11ha3","block":"select__block_11ha3","emptySearchPlaceholder":"select__emptySearchPlaceholder_11ha3","search":"select__search_11ha3"};
13
13
  require('./components/base-select/index.css')
14
14
 
15
15
  var ListPopoverDesktop = function (props) {
@@ -16,7 +16,7 @@ var components_option_Component = require('../components/option/Component.js');
16
16
  var components_optionsList_Component = require('../components/options-list/Component.js');
17
17
  var components_search_Component = require('../components/search/Component.js');
18
18
  var components_virtualOptionsList_Component = require('../components/virtual-options-list/Component.js');
19
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-a71861cb.js');
19
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-c8ba558c.js');
20
20
  var presets_useSelectWithApply_optionsListWithApply_header_Component = require('../presets/useSelectWithApply/options-list-with-apply/header/Component.js');
21
21
 
22
22
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var mobileStyles = {"sheet":"select__sheet_1j8de","sheetContent":"select__sheetContent_1j8de","modalContent":"select__modalContent_1j8de","sheetContainer":"select__sheetContainer_1j8de","optionsListWrapper":"select__optionsListWrapper_1j8de","optionsList":"select__optionsList_1j8de","scrollbar":"select__scrollbar_1j8de","search":"select__search_1j8de","option":"select__option_1j8de","optionGroup":"select__optionGroup_1j8de"};
4
+ require('./components/base-select/mobile.css')
5
+
6
+ exports.mobileStyles = mobileStyles;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { ChevronDownMIcon } from '@alfalab/icons-glyph/ChevronDownMIcon';
4
4
 
5
- const styles = {"arrow":"select__arrow_1x823","open":"select__open_1x823"};
5
+ const styles = {"arrow":"select__arrow_mnh2e","open":"select__open_mnh2e"};
6
6
  require('./index.css')
7
7
 
8
8
  const Arrow = ({ open, className }) => (React.createElement(ChevronDownMIcon, { className: cn(styles.arrow, className, { [styles.open]: open }) }));
@@ -1,4 +1,4 @@
1
- /* hash: f0ed3 */
1
+ /* hash: 1osyu */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -30,13 +30,13 @@
30
30
  /* checkmark */
31
31
 
32
32
  /* optgroup */
33
- } .select__arrow_1x823 {
33
+ } .select__arrow_mnh2e {
34
34
  display: block;
35
35
  width: 24px;
36
36
  height: 24px;
37
37
  color: var(--select-arrow-color);
38
38
 
39
39
  transition: transform 0.15s ease-in-out, opacity 0.2s ease;
40
- } .select__open_1x823 {
40
+ } .select__open_mnh2e {
41
41
  transform: var(--arrow-transform);
42
42
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { Checkbox } from '@alfalab/core-components-checkbox/modern';
4
4
  import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
5
5
 
6
- const styles = {"checkmark":"select__checkmark_117t2","start":"select__start_117t2","center":"select__center_117t2","single":"select__single_117t2","selected":"select__selected_117t2"};
6
+ const styles = {"checkmark":"select__checkmark_qpsp8","start":"select__start_qpsp8","center":"select__center_qpsp8","single":"select__single_qpsp8","selected":"select__selected_qpsp8"};
7
7
  require('./index.css')
8
8
 
9
9
  const BaseCheckmark = ({ selected, disabled = false, className, multiple, align = 'center', }) => {
@@ -1,4 +1,4 @@
1
- /* hash: j2pzy */
1
+ /* hash: rhl5j */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,18 +27,18 @@
27
27
  /* checkmark */
28
28
 
29
29
  /* optgroup */
30
- } .select__checkmark_117t2 {
30
+ } .select__checkmark_qpsp8 {
31
31
  flex-shrink: 0;
32
32
  box-sizing: border-box
33
- } .select__checkmark_117t2.select__start_117t2 {
33
+ } .select__checkmark_qpsp8.select__start_qpsp8 {
34
34
  align-self: start;
35
- } .select__checkmark_117t2.select__center_117t2 {
35
+ } .select__checkmark_qpsp8.select__center_qpsp8 {
36
36
  align-self: center;
37
- } .select__single_117t2 {
37
+ } .select__single_qpsp8 {
38
38
  display: flex;
39
39
  align-items: center;
40
40
  justify-content: center;
41
41
  opacity: 0
42
- } .select__single_117t2.select__selected_117t2 {
42
+ } .select__single_qpsp8.select__selected_qpsp8 {
43
43
  opacity: 1;
44
44
  }
@@ -2,7 +2,7 @@ import React, { isValidElement } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { BaseCheckmark } from '../base-checkmark/Component.js';
4
4
 
5
- const styles = {"option":"select__option_tn92w","disabled":"select__disabled_tn92w","checkmarkBefore":"select__checkmarkBefore_tn92w","mobile":"select__mobile_tn92w","checkmarkAfter":"select__checkmarkAfter_tn92w","textContent":"select__textContent_tn92w","selected":"select__selected_tn92w","highlighted":"select__highlighted_tn92w","checkmarkBeforeContent":"select__checkmarkBeforeContent_tn92w","checkmarkAfterContent":"select__checkmarkAfterContent_tn92w","content":"select__content_tn92w"};
5
+ const styles = {"option":"select__option_8yepm","disabled":"select__disabled_8yepm","checkmarkBefore":"select__checkmarkBefore_8yepm","mobile":"select__mobile_8yepm","checkmarkAfter":"select__checkmarkAfter_8yepm","textContent":"select__textContent_8yepm","selected":"select__selected_8yepm","highlighted":"select__highlighted_8yepm","checkmarkBeforeContent":"select__checkmarkBeforeContent_8yepm","checkmarkAfterContent":"select__checkmarkAfterContent_8yepm","content":"select__content_8yepm"};
6
6
  require('./index.css')
7
7
 
8
8
  const BaseOption = ({ className, option, children, selected, highlighted, disabled, multiple, Checkmark = BaseCheckmark, checkmarkPosition = multiple ? 'before' : 'after', align = 'center', innerProps, dataTestId, mobile = false, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1a63q */
1
+ /* hash: 150hx */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -24,6 +24,7 @@
24
24
  --gap-l: 20px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
25
25
 
26
26
  /* новые значения, используйте их */
27
+ --gap-0: 0;
27
28
  --gap-12: var(--gap-s);
28
29
  --gap-16: var(--gap-m);
29
30
  --gap-20: var(--gap-l);
@@ -50,7 +51,7 @@
50
51
  /* checkmark */
51
52
 
52
53
  /* optgroup */
53
- } .select__option_tn92w {
54
+ } .select__option_8yepm {
54
55
  font-size: 16px;
55
56
  line-height: 20px;
56
57
  font-weight: 400;
@@ -64,36 +65,36 @@
64
65
  position: relative;
65
66
  cursor: pointer;
66
67
  min-height: var(--size-s-height)
67
- } .select__option_tn92w:not(.select__disabled_tn92w):active {
68
+ } .select__option_8yepm:not(.select__disabled_8yepm):active {
68
69
  background: var(--select-option-active-background);
69
70
  color: var(--select-option-active-color);
70
- } .select__option_tn92w.select__checkmarkBefore_tn92w {
71
- padding: 0 0 0 var(--gap-12)
72
- } .select__option_tn92w.select__checkmarkBefore_tn92w.select__mobile_tn92w {
71
+ } .select__option_8yepm.select__checkmarkBefore_8yepm {
72
+ padding: var(--gap-0) var(--gap-0) var(--gap-0) var(--gap-12)
73
+ } .select__option_8yepm.select__checkmarkBefore_8yepm.select__mobile_8yepm {
73
74
  padding-left: var(--gap-16);
74
- } .select__option_tn92w.select__checkmarkAfter_tn92w.select__checkmarkAfter_tn92w {
75
- padding: 0 var(--gap-12) 0 0
76
- } .select__option_tn92w.select__checkmarkAfter_tn92w.select__checkmarkAfter_tn92w.select__mobile_tn92w {
75
+ } .select__option_8yepm.select__checkmarkAfter_8yepm.select__checkmarkAfter_8yepm {
76
+ padding: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-0)
77
+ } .select__option_8yepm.select__checkmarkAfter_8yepm.select__checkmarkAfter_8yepm.select__mobile_8yepm {
77
78
  padding-right: var(--gap-20);
78
- } .select__option_tn92w.select__textContent_tn92w {
79
+ } .select__option_8yepm.select__textContent_8yepm {
79
80
  padding: var(--gap-12)
80
- } .select__option_tn92w.select__textContent_tn92w.select__mobile_tn92w {
81
+ } .select__option_8yepm.select__textContent_8yepm.select__mobile_8yepm {
81
82
  padding: var(--gap-16) var(--gap-20) var(--gap-16) var(--gap-16);
82
- } .select__selected_tn92w {
83
+ } .select__selected_8yepm {
83
84
  background: var(--select-option-selected-background);
84
85
  color: var(--select-option-selected-color);
85
86
  cursor: default;
86
- } .select__highlighted_tn92w {
87
+ } .select__highlighted_8yepm {
87
88
  background: var(--select-option-hover-background);
88
89
  color: var(--select-option-hover-color);
89
- } .select__disabled_tn92w {
90
+ } .select__disabled_8yepm {
90
91
  cursor: var(--disabled-cursor);
91
92
  background: var(--select-option-disabled-background);
92
93
  color: var(--select-option-disabled-color);
93
- } .select__checkmarkBeforeContent_tn92w {
94
+ } .select__checkmarkBeforeContent_8yepm {
94
95
  margin-right: var(--gap-12);
95
- } .select__checkmarkAfterContent_tn92w {
96
+ } .select__checkmarkAfterContent_8yepm {
96
97
  margin-left: var(--gap-12);
97
- } .select__content_tn92w {
98
+ } .select__content_8yepm {
98
99
  flex: 1;
99
100
  }
@@ -9,11 +9,11 @@ import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
9
9
  import { defaultAccessor, defaultFilterFn, defaultGroupAccessor, processOptions, isGroup } from '../../utils.js';
10
10
  import { NativeSelect } from '../native-select/Component.js';
11
11
  import { getListPopoverDesktopProps } from './components/list-desktop/helpers/get-list-popover-desktop-props.js';
12
- import { s as styles, L as ListPopoverDesktop } from '../../list-popover-desktop-46e08681.js';
12
+ import { s as styles, L as ListPopoverDesktop } from '../../list-popover-desktop-85370c2c.js';
13
13
  import { getListModalMobileProps } from './components/list-mobile/helpers/get-list-modal-mobile-props.js';
14
14
  import { getListBottomSheetMobileProps } from './components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js';
15
15
  import { ListMobile } from './components/list-mobile/list-mobile.js';
16
- import { m as mobileStyles } from '../../mobile.module-2f7796c1.js';
16
+ import { m as mobileStyles } from '../../mobile.module-eb08a4de.js';
17
17
 
18
18
  /* eslint-disable no-nested-ternary */
19
19
  const itemToString = (option) => (option ? option.key : '');
@@ -1,3 +1,3 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- export { L as ListPopoverDesktop } from '../../../../list-popover-desktop-46e08681.js';
3
+ export { L as ListPopoverDesktop } from '../../../../list-popover-desktop-85370c2c.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
3
- import { m as mobileStyles } from '../../../../mobile.module-2f7796c1.js';
3
+ import { m as mobileStyles } from '../../../../mobile.module-eb08a4de.js';
4
4
 
5
5
  const ListBottomSheetMobile = (props) => {
6
6
  const { BottomSheet, dataTestId, open, label, placeholder, footer, swipeable, showSearch, bottomSheetProps, menuRef, scrollableContainerRef, onScroll, flatOptions, closeMenu, handleEntered, renderSearch, renderOptionsList, } = props;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
5
- import { m as mobileStyles } from '../../../../mobile.module-2f7796c1.js';
5
+ import { m as mobileStyles } from '../../../../mobile.module-eb08a4de.js';
6
6
 
7
7
  const ListModalMobile = (props) => {
8
8
  const { ModalMobile, dataTestId, open, modalProps, modalHeaderProps, modalFooterProps, menuRef, scrollableContainerRef, label, placeholder, onScroll, flatOptions, closeMenu, handleEntered, renderSearch, renderOptionsList, } = props;
@@ -1,4 +1,4 @@
1
- /* hash: emjwc */
1
+ /* hash: 68g4n */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -18,11 +18,13 @@
18
18
  --border-radius-m: 8px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
19
19
 
20
20
  /* новые значения, используйте их */
21
+ --border-radius-8: var(--border-radius-m);
21
22
  } :root { /* deprecated */
22
23
  --gap-2xs: 4px; /* deprecated */ /* deprecated */
23
24
  --gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
24
25
 
25
26
  /* новые значения, используйте их */
27
+ --gap-0: 0;
26
28
  --gap-4: var(--gap-2xs);
27
29
  --gap-12: var(--gap-s);
28
30
  } :root {
@@ -31,11 +33,11 @@
31
33
 
32
34
  /* options list */
33
35
 
34
- --select-options-list-border-radius: var(--border-radius-m);
36
+ --select-options-list-border-radius: var(--border-radius-8);
35
37
  --select-options-list-box-shadow: var(--shadow-m);
36
38
  --select-options-list-offset: var(--gap-4);
37
- --select-options-list-top-padding: 0;
38
- --select-options-list-bottom-padding: 0;
39
+ --select-options-list-top-padding: var(--gap-0);
40
+ --select-options-list-bottom-padding: var(--gap-0);
39
41
 
40
42
  /* option */
41
43
  --select-option-background: var(--color-light-modal-bg-primary);
@@ -43,21 +45,21 @@
43
45
  /* checkmark */
44
46
 
45
47
  /* optgroup */
46
- } .select__component_d0r31 {
48
+ } .select__component_11ha3 {
47
49
  width: max-content;
48
50
  position: relative;
49
51
  outline: 0;
50
52
  max-width: 100%;
51
- } .select__popoverInner_d0r31 {
53
+ } .select__popoverInner_11ha3 {
52
54
  padding-top: var(--select-options-list-offset);
53
55
  padding-bottom: var(--select-options-list-offset);
54
56
  background: transparent;
55
57
  border-radius: 0;
56
58
  position: relative;
57
- } .select__popoverInner_d0r31.select__popoverInner_d0r31 {
59
+ } .select__popoverInner_11ha3.select__popoverInner_11ha3 {
58
60
  box-shadow: none;
59
61
  border: none;
60
- } .select__optionsListWrapper_d0r31 {
62
+ } .select__optionsListWrapper_11ha3 {
61
63
  position: relative;
62
64
  padding-top: var(--select-options-list-top-padding);
63
65
  padding-bottom: var(--select-options-list-bottom-padding);
@@ -66,34 +68,34 @@
66
68
  background: var(--select-option-background);
67
69
  overflow: hidden;
68
70
  will-change: transform;
69
- } .select__optionsListBorder_d0r31 {
71
+ } .select__optionsListBorder_11ha3 {
70
72
  position: absolute;
71
- top: 0;
72
- right: 0;
73
- bottom: 0;
74
- left: 0;
73
+ top: var(--gap-0);
74
+ right: var(--gap-0);
75
+ bottom: var(--gap-0);
76
+ left: var(--gap-0);
75
77
  box-shadow: inset 0 0 0 1px var(--color-light-neutral-300);
76
78
  border-radius: inherit;
77
79
  pointer-events: none;
78
- } .select__nativeSelect_d0r31 {
80
+ } .select__nativeSelect_11ha3 {
79
81
  opacity: 0;
80
82
  overflow: hidden;
81
83
  position: absolute;
82
- top: 0;
83
- bottom: 0;
84
- left: 0;
84
+ top: var(--gap-0);
85
+ bottom: var(--gap-0);
86
+ left: var(--gap-0);
85
87
  width: 100%;
86
88
  max-width: 100%;
87
89
  min-width: 0;
88
90
  height: 100%;
89
91
  cursor: pointer;
90
92
  z-index: 1;
91
- } .select__block_d0r31 {
93
+ } .select__block_11ha3 {
92
94
  width: 100%;
93
- } .select__emptySearchPlaceholder_d0r31 {
95
+ } .select__emptySearchPlaceholder_11ha3 {
94
96
  text-align: center;
95
- } .select__search_d0r31 {
96
- margin: var(--gap-12) var(--gap-12) 0
97
- } .select__search_d0r31:last-child {
97
+ } .select__search_11ha3 {
98
+ margin: var(--gap-12) var(--gap-12) var(--gap-0)
99
+ } .select__search_11ha3:last-child {
98
100
  margin-bottom: var(--gap-12);
99
101
  }
@@ -1,4 +1,4 @@
1
- /* hash: 9b82c */
1
+ /* hash: egtvq */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -20,6 +20,7 @@
20
20
  --gap-l: 20px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
21
21
 
22
22
  /* новые значения, используйте их */
23
+ --gap-0: 0;
23
24
  --gap-4: var(--gap-2xs);
24
25
  --gap-8: var(--gap-xs);
25
26
  --gap-16: var(--gap-m);
@@ -35,30 +36,30 @@
35
36
  /* checkmark */
36
37
 
37
38
  /* optgroup */
38
- } .select__sheet_rk2oo {
39
+ } .select__sheet_1j8de {
39
40
  overflow: hidden;
40
- } .select__sheetContent_rk2oo.select__sheetContent_rk2oo {
41
- padding: 0
42
- } .select__sheetContent_rk2oo.select__sheetContent_rk2oo .select__modalContent_rk2oo {
43
- padding: 0;
41
+ } .select__sheetContent_1j8de.select__sheetContent_1j8de {
42
+ padding: var(--gap-0)
43
+ } .select__sheetContent_1j8de.select__sheetContent_1j8de .select__modalContent_1j8de {
44
+ padding: var(--gap-0);
44
45
  display: flex;
45
46
  flex-direction: column;
46
- } .select__sheetContainer_rk2oo {
47
- padding: 0;
48
- } .select__optionsListWrapper_rk2oo {
47
+ } .select__sheetContainer_1j8de {
48
+ padding: var(--gap-0);
49
+ } .select__optionsListWrapper_1j8de {
49
50
  flex: 1;
50
- } .select__optionsList_rk2oo.select__optionsList_rk2oo {
51
+ } .select__optionsList_1j8de.select__optionsList_1j8de {
51
52
  height: 100%;
52
53
  display: flex;
53
54
  flex-direction: column;
54
- } .select__scrollbar_rk2oo {
55
+ } .select__scrollbar_1j8de {
55
56
  flex: 1;
56
- } .select__search_rk2oo {
57
+ } .select__search_1j8de {
57
58
  padding: var(--gap-8);
58
- } .select__option_rk2oo.select__option_rk2oo {
59
+ } .select__option_1j8de.select__option_1j8de {
59
60
  padding: var(--gap-4) var(--gap-20) var(--gap-4) var(--gap-16)
60
- } .select__option_rk2oo.select__option_rk2oo:before {
61
+ } .select__option_1j8de.select__option_1j8de:before {
61
62
  display: none;
62
- } .select__optionGroup_rk2oo.select__optionGroup_rk2oo {
63
+ } .select__optionGroup_1j8de.select__optionGroup_1j8de {
63
64
  padding: var(--gap-16) var(--gap-16) var(--gap-8);
64
65
  }
@@ -5,7 +5,7 @@ import { Checkbox } from '@alfalab/core-components-checkbox/modern';
5
5
  import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
6
  import CheckmarkMIcon from '@alfalab/icons-glyph/CheckmarkMIcon';
7
7
 
8
- const styles = {"checkmark":"select__checkmark_1533w","after":"select__after_1533w","single":"select__single_1533w","selected":"select__selected_1533w","before":"select__before_1533w","multiple":"select__multiple_1533w","colorIcon":"select__colorIcon_1533w"};
8
+ const styles = {"checkmark":"select__checkmark_bot88","after":"select__after_bot88","single":"select__single_bot88","selected":"select__selected_bot88","before":"select__before_bot88","multiple":"select__multiple_bot88","colorIcon":"select__colorIcon_bot88"};
9
9
  require('./index.css')
10
10
 
11
11
  const Checkmark = ({ selected, disabled = false, className, multiple, position = 'before', }) => {