@alfalab/core-components-select 13.2.20 → 14.0.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 (340) hide show
  1. package/Component-3885b0d7.d.ts +1 -1
  2. package/Component-f1a1856f.d.ts +61 -0
  3. package/Component-f1a1856f.js +158 -0
  4. package/Component.js +4 -3
  5. package/Component.responsive.js +14 -13
  6. package/components/arrow/Component.js +1 -1
  7. package/components/arrow/index.css +3 -3
  8. package/components/base-checkmark/Component.js +1 -1
  9. package/components/base-checkmark/index.css +4 -4
  10. package/components/base-option/Component.js +1 -1
  11. package/components/base-option/index.css +13 -13
  12. package/components/base-select/Component.d.ts +5 -0
  13. package/components/base-select/Component.js +242 -12
  14. package/components/base-select/index.css +8 -8
  15. package/components/base-select/index.d.ts +1 -1
  16. package/components/base-select/index.js +2 -1
  17. package/components/base-select-mobile/Component.d.ts +46 -0
  18. package/components/base-select-mobile/Component.js +209 -33
  19. package/components/base-select-mobile/footer/Component.d.ts +8 -0
  20. package/components/base-select-mobile/footer/Component.js +34 -0
  21. package/components/base-select-mobile/footer/index.css +42 -0
  22. package/components/base-select-mobile/footer/index.js +13 -0
  23. package/components/base-select-mobile/index.css +10 -19
  24. package/components/base-select-mobile/index.d.ts +1 -1
  25. package/components/base-select-mobile/index.js +9 -22
  26. package/components/checkmark/Component.js +1 -1
  27. package/components/checkmark/index.css +10 -10
  28. package/{cssm/components/base-select-mobile/checkmark → components/checkmark-mobile}/Component.d.ts +1 -1
  29. package/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
  30. package/components/{base-select-mobile/checkmark → checkmark-mobile}/index.css +6 -6
  31. package/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +2 -2
  32. package/components/field/Component.js +1 -1
  33. package/components/field/index.css +9 -9
  34. package/components/index.js +15 -13
  35. package/components/optgroup/Component.js +1 -1
  36. package/components/optgroup/index.css +6 -6
  37. package/components/option/Component.js +4 -4
  38. package/components/option/index.css +20 -20
  39. package/components/option/index.js +2 -2
  40. package/components/options-list/Component.d.ts +1 -1
  41. package/components/options-list/Component.js +1 -1
  42. package/components/options-list/index.css +12 -10
  43. package/components/select-mobile/Component.js +19 -18
  44. package/components/select-mobile/index.d.ts +1 -1
  45. package/components/select-mobile/index.js +16 -15
  46. package/components/select-modal-mobile/Component.js +19 -18
  47. package/components/select-modal-mobile/index.d.ts +1 -1
  48. package/components/select-modal-mobile/index.js +16 -15
  49. package/components/virtual-options-list/Component.d.ts +2 -7
  50. package/components/virtual-options-list/Component.js +31 -19
  51. package/components/virtual-options-list/index.css +19 -16
  52. package/components/virtual-options-list/index.js +1 -0
  53. package/cssm/Component-3885b0d7.d.ts +1 -1
  54. package/cssm/Component-610b3743.d.ts +61 -0
  55. package/cssm/Component-610b3743.js +168 -0
  56. package/cssm/Component.js +5 -4
  57. package/cssm/Component.responsive.js +18 -18
  58. package/cssm/components/base-select/Component.d.ts +5 -0
  59. package/cssm/components/base-select/Component.js +241 -13
  60. package/cssm/components/base-select/index.d.ts +1 -1
  61. package/cssm/components/base-select/index.js +2 -1
  62. package/cssm/components/base-select-mobile/Component.d.ts +46 -0
  63. package/cssm/components/base-select-mobile/Component.js +209 -44
  64. package/cssm/components/base-select-mobile/footer/Component.d.ts +8 -0
  65. package/cssm/components/base-select-mobile/footer/Component.js +33 -0
  66. package/cssm/components/base-select-mobile/footer/index.js +14 -0
  67. package/cssm/components/base-select-mobile/footer/index.module.css +41 -0
  68. package/cssm/components/base-select-mobile/index.d.ts +1 -1
  69. package/cssm/components/base-select-mobile/index.js +11 -33
  70. package/cssm/components/base-select-mobile/index.module.css +0 -9
  71. package/{components/base-select-mobile/checkmark → cssm/components/checkmark-mobile}/Component.d.ts +1 -1
  72. package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +2 -2
  73. package/cssm/components/index.js +22 -21
  74. package/cssm/components/option/Component.js +4 -4
  75. package/cssm/components/option/index.js +3 -3
  76. package/cssm/components/options-list/Component.d.ts +1 -1
  77. package/cssm/components/options-list/index.module.css +3 -1
  78. package/cssm/components/select-mobile/Component.js +26 -26
  79. package/cssm/components/select-mobile/index.d.ts +1 -1
  80. package/cssm/components/select-mobile/index.js +19 -19
  81. package/cssm/components/select-modal-mobile/Component.js +26 -26
  82. package/cssm/components/select-modal-mobile/index.d.ts +1 -1
  83. package/cssm/components/select-modal-mobile/index.js +19 -19
  84. package/cssm/components/virtual-options-list/Component.d.ts +2 -7
  85. package/cssm/components/virtual-options-list/Component.js +30 -18
  86. package/cssm/components/virtual-options-list/index.js +1 -0
  87. package/cssm/components/virtual-options-list/index.module.css +4 -1
  88. package/cssm/getDataTestId-5c876d98.d.ts +2 -0
  89. package/cssm/getDataTestId-5c876d98.js +8 -0
  90. package/{esm/hook-edac5428.d.ts → cssm/hook-4b555174.d.ts} +11 -6
  91. package/cssm/index-3885b0d7.d.ts +1 -1
  92. package/cssm/index.js +21 -20
  93. package/cssm/presets/index.d.ts +1 -1
  94. package/cssm/presets/index.js +19 -19
  95. package/cssm/presets/useLazyLoading/hook.js +3 -3
  96. package/cssm/presets/useSelectWithApply/hook.js +17 -17
  97. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +35 -35
  98. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
  99. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +23 -0
  100. package/cssm/presets/useSelectWithApply/options-list-with-apply/{index.module.css → footer/index.module.css} +1 -1
  101. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  102. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +19 -19
  103. package/cssm/presets/useSelectWithLoading/hook.js +3 -3
  104. package/cssm/responsive.js +15 -15
  105. package/cssm/types-ebda875c.d.ts +1 -1
  106. package/cssm/typings.d.ts +1 -1
  107. package/esm/Component-3885b0d7.d.ts +1 -1
  108. package/esm/Component-b5248298.d.ts +61 -0
  109. package/esm/Component-b5248298.js +148 -0
  110. package/esm/Component.js +4 -3
  111. package/esm/Component.responsive.js +14 -13
  112. package/esm/components/arrow/Component.js +1 -1
  113. package/esm/components/arrow/index.css +3 -3
  114. package/esm/components/base-checkmark/Component.js +1 -1
  115. package/esm/components/base-checkmark/index.css +4 -4
  116. package/esm/components/base-option/Component.js +1 -1
  117. package/esm/components/base-option/index.css +13 -13
  118. package/esm/components/base-select/Component.d.ts +5 -0
  119. package/esm/components/base-select/Component.js +239 -11
  120. package/esm/components/base-select/index.css +8 -8
  121. package/esm/components/base-select/index.d.ts +1 -1
  122. package/esm/components/base-select/index.js +2 -1
  123. package/esm/components/base-select-mobile/Component.d.ts +46 -0
  124. package/esm/components/base-select-mobile/Component.js +206 -32
  125. package/esm/components/base-select-mobile/footer/Component.d.ts +8 -0
  126. package/esm/components/base-select-mobile/footer/Component.js +25 -0
  127. package/esm/components/base-select-mobile/footer/index.css +42 -0
  128. package/esm/components/base-select-mobile/{options-list → footer}/index.js +1 -4
  129. package/esm/components/base-select-mobile/index.css +10 -19
  130. package/esm/components/base-select-mobile/index.d.ts +1 -1
  131. package/esm/components/base-select-mobile/index.js +8 -21
  132. package/esm/components/checkmark/Component.js +1 -1
  133. package/esm/components/checkmark/index.css +10 -10
  134. package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.d.ts +1 -1
  135. package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
  136. package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.css +6 -6
  137. package/esm/components/field/Component.js +1 -1
  138. package/esm/components/field/index.css +9 -9
  139. package/esm/components/index.js +15 -13
  140. package/esm/components/optgroup/Component.js +1 -1
  141. package/esm/components/optgroup/index.css +6 -6
  142. package/esm/components/option/Component.js +3 -3
  143. package/esm/components/option/index.css +20 -20
  144. package/esm/components/option/index.js +2 -2
  145. package/esm/components/options-list/Component.d.ts +1 -1
  146. package/esm/components/options-list/Component.js +1 -1
  147. package/esm/components/options-list/index.css +12 -10
  148. package/esm/components/select-mobile/Component.js +19 -18
  149. package/esm/components/select-mobile/index.d.ts +1 -1
  150. package/esm/components/select-mobile/index.js +16 -15
  151. package/esm/components/select-modal-mobile/Component.js +19 -18
  152. package/esm/components/select-modal-mobile/index.d.ts +1 -1
  153. package/esm/components/select-modal-mobile/index.js +16 -15
  154. package/esm/components/virtual-options-list/Component.d.ts +2 -7
  155. package/esm/components/virtual-options-list/Component.js +31 -20
  156. package/esm/components/virtual-options-list/index.css +19 -16
  157. package/esm/components/virtual-options-list/index.js +1 -0
  158. package/esm/getDataTestId-015e89f1.d.ts +2 -0
  159. package/esm/getDataTestId-015e89f1.js +6 -0
  160. package/{hook-edac5428.d.ts → esm/hook-4b555174.d.ts} +11 -6
  161. package/esm/index-3885b0d7.d.ts +1 -1
  162. package/esm/index.js +14 -12
  163. package/esm/presets/index.d.ts +1 -1
  164. package/esm/presets/index.js +16 -15
  165. package/esm/presets/useLazyLoading/hook.js +4 -4
  166. package/esm/presets/useLazyLoading/index.css +2 -2
  167. package/esm/presets/useSelectWithApply/hook.js +13 -12
  168. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +27 -26
  169. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
  170. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +16 -0
  171. package/esm/presets/useSelectWithApply/options-list-with-apply/{index.css → footer/index.css} +4 -4
  172. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  173. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +16 -15
  174. package/esm/presets/useSelectWithLoading/hook.js +3 -3
  175. package/esm/presets/useSelectWithLoading/index.css +2 -2
  176. package/esm/responsive.js +12 -11
  177. package/esm/types-ebda875c.d.ts +1 -1
  178. package/esm/typings.d.ts +1 -1
  179. package/getDataTestId-3deaae20.d.ts +2 -0
  180. package/getDataTestId-3deaae20.js +8 -0
  181. package/{cssm/hook-edac5428.d.ts → hook-4b555174.d.ts} +11 -6
  182. package/index-3885b0d7.d.ts +1 -1
  183. package/index.js +14 -12
  184. package/modern/Component-29d24a9b.d.ts +61 -0
  185. package/modern/Component-29d24a9b.js +162 -0
  186. package/modern/Component-3885b0d7.d.ts +1 -1
  187. package/modern/Component.js +4 -3
  188. package/modern/Component.responsive.js +14 -13
  189. package/modern/components/arrow/Component.js +1 -1
  190. package/modern/components/arrow/index.css +3 -3
  191. package/modern/components/base-checkmark/Component.js +1 -1
  192. package/modern/components/base-checkmark/index.css +4 -4
  193. package/modern/components/base-option/Component.js +1 -1
  194. package/modern/components/base-option/index.css +13 -13
  195. package/modern/components/base-select/Component.d.ts +5 -0
  196. package/modern/components/base-select/Component.js +251 -10
  197. package/modern/components/base-select/index.css +8 -8
  198. package/modern/components/base-select/index.d.ts +1 -1
  199. package/modern/components/base-select/index.js +2 -1
  200. package/modern/components/base-select-mobile/Component.d.ts +46 -0
  201. package/modern/components/base-select-mobile/Component.js +220 -31
  202. package/modern/components/base-select-mobile/footer/Component.d.ts +8 -0
  203. package/modern/components/base-select-mobile/footer/Component.js +23 -0
  204. package/modern/components/base-select-mobile/footer/index.css +42 -0
  205. package/modern/components/base-select-mobile/{options-list → footer}/index.js +1 -3
  206. package/modern/components/base-select-mobile/index.css +10 -19
  207. package/modern/components/base-select-mobile/index.d.ts +1 -1
  208. package/modern/components/base-select-mobile/index.js +8 -21
  209. package/modern/components/checkmark/Component.js +1 -1
  210. package/modern/components/checkmark/index.css +10 -10
  211. package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.d.ts +1 -1
  212. package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
  213. package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/index.css +6 -6
  214. package/modern/components/field/Component.js +1 -1
  215. package/modern/components/field/index.css +9 -9
  216. package/modern/components/index.js +15 -13
  217. package/modern/components/optgroup/Component.js +1 -1
  218. package/modern/components/optgroup/index.css +6 -6
  219. package/modern/components/option/Component.js +3 -3
  220. package/modern/components/option/index.css +20 -20
  221. package/modern/components/option/index.js +2 -2
  222. package/modern/components/options-list/Component.d.ts +1 -1
  223. package/modern/components/options-list/Component.js +1 -1
  224. package/modern/components/options-list/index.css +12 -10
  225. package/modern/components/select-mobile/Component.js +19 -18
  226. package/modern/components/select-mobile/index.d.ts +1 -1
  227. package/modern/components/select-mobile/index.js +16 -15
  228. package/modern/components/select-modal-mobile/Component.js +19 -18
  229. package/modern/components/select-modal-mobile/index.d.ts +1 -1
  230. package/modern/components/select-modal-mobile/index.js +16 -15
  231. package/modern/components/virtual-options-list/Component.d.ts +2 -7
  232. package/modern/components/virtual-options-list/Component.js +29 -18
  233. package/modern/components/virtual-options-list/index.css +19 -16
  234. package/modern/components/virtual-options-list/index.js +1 -0
  235. package/modern/getDataTestId-b257b571.d.ts +2 -0
  236. package/modern/getDataTestId-b257b571.js +6 -0
  237. package/modern/{hook-edac5428.d.ts → hook-4b555174.d.ts} +11 -6
  238. package/modern/index-3885b0d7.d.ts +1 -1
  239. package/modern/index.js +14 -12
  240. package/modern/presets/index.d.ts +1 -1
  241. package/modern/presets/index.js +16 -15
  242. package/modern/presets/useLazyLoading/hook.js +4 -4
  243. package/modern/presets/useLazyLoading/index.css +2 -2
  244. package/modern/presets/useSelectWithApply/hook.js +13 -12
  245. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +27 -26
  246. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
  247. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +13 -0
  248. package/modern/presets/useSelectWithApply/options-list-with-apply/{index.css → footer/index.css} +4 -4
  249. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  250. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +16 -15
  251. package/modern/presets/useSelectWithLoading/hook.js +3 -3
  252. package/modern/presets/useSelectWithLoading/index.css +2 -2
  253. package/modern/responsive.js +12 -11
  254. package/modern/types-ebda875c.d.ts +1 -1
  255. package/modern/typings.d.ts +1 -1
  256. package/package.json +4 -4
  257. package/presets/index.d.ts +1 -1
  258. package/presets/index.js +16 -15
  259. package/presets/useLazyLoading/hook.js +4 -4
  260. package/presets/useLazyLoading/index.css +2 -2
  261. package/presets/useSelectWithApply/hook.js +13 -12
  262. package/presets/useSelectWithApply/options-list-with-apply/Component.js +27 -26
  263. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
  264. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +24 -0
  265. package/presets/useSelectWithApply/options-list-with-apply/{index.css → footer/index.css} +4 -4
  266. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  267. package/presets/useSelectWithApply/options-list-with-apply/index.js +16 -15
  268. package/presets/useSelectWithLoading/hook.js +3 -3
  269. package/presets/useSelectWithLoading/index.css +2 -2
  270. package/responsive.js +12 -11
  271. package/types-ebda875c.d.ts +1 -1
  272. package/typings.d.ts +1 -1
  273. package/Component-44ef3579.d.ts +0 -6
  274. package/Component-44ef3579.js +0 -252
  275. package/Component-ab39b2d3.d.ts +0 -142
  276. package/Component-ab39b2d3.js +0 -373
  277. package/components/base-select-mobile/options-list/Component.d.ts +0 -4
  278. package/components/base-select-mobile/options-list/Component.js +0 -51
  279. package/components/base-select-mobile/options-list/index.css +0 -60
  280. package/components/base-select-mobile/options-list/index.js +0 -16
  281. package/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
  282. package/components/base-select-mobile/virtual-options-list/Component.js +0 -114
  283. package/components/base-select-mobile/virtual-options-list/index.css +0 -89
  284. package/components/base-select-mobile/virtual-options-list/index.js +0 -18
  285. package/cssm/Component-e0df017c.d.ts +0 -6
  286. package/cssm/Component-e0df017c.js +0 -251
  287. package/cssm/Component-e4ef870b.d.ts +0 -142
  288. package/cssm/Component-e4ef870b.js +0 -382
  289. package/cssm/components/base-select-mobile/options-list/Component.d.ts +0 -4
  290. package/cssm/components/base-select-mobile/options-list/Component.js +0 -51
  291. package/cssm/components/base-select-mobile/options-list/index.js +0 -18
  292. package/cssm/components/base-select-mobile/options-list/index.module.css +0 -59
  293. package/cssm/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
  294. package/cssm/components/base-select-mobile/virtual-options-list/Component.js +0 -114
  295. package/cssm/components/base-select-mobile/virtual-options-list/index.js +0 -20
  296. package/cssm/components/base-select-mobile/virtual-options-list/index.module.css +0 -88
  297. package/esm/Component-1830cf5e.d.ts +0 -142
  298. package/esm/Component-1830cf5e.js +0 -360
  299. package/esm/Component-578c3e05.d.ts +0 -6
  300. package/esm/Component-578c3e05.js +0 -243
  301. package/esm/components/base-select-mobile/options-list/Component.d.ts +0 -4
  302. package/esm/components/base-select-mobile/options-list/Component.js +0 -42
  303. package/esm/components/base-select-mobile/options-list/index.css +0 -60
  304. package/esm/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
  305. package/esm/components/base-select-mobile/virtual-options-list/Component.js +0 -105
  306. package/esm/components/base-select-mobile/virtual-options-list/index.css +0 -89
  307. package/esm/components/base-select-mobile/virtual-options-list/index.d.ts +0 -1
  308. package/esm/components/base-select-mobile/virtual-options-list/index.js +0 -10
  309. package/modern/Component-a4a8e905.d.ts +0 -6
  310. package/modern/Component-a4a8e905.js +0 -255
  311. package/modern/Component-ae787d42.d.ts +0 -142
  312. package/modern/Component-ae787d42.js +0 -370
  313. package/modern/components/base-select-mobile/checkmark/index.d.ts +0 -1
  314. package/modern/components/base-select-mobile/options-list/Component.d.ts +0 -4
  315. package/modern/components/base-select-mobile/options-list/Component.js +0 -37
  316. package/modern/components/base-select-mobile/options-list/index.css +0 -60
  317. package/modern/components/base-select-mobile/options-list/index.d.ts +0 -1
  318. package/modern/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
  319. package/modern/components/base-select-mobile/virtual-options-list/Component.js +0 -99
  320. package/modern/components/base-select-mobile/virtual-options-list/index.css +0 -89
  321. package/modern/components/base-select-mobile/virtual-options-list/index.d.ts +0 -1
  322. package/modern/components/base-select-mobile/virtual-options-list/index.js +0 -9
  323. /package/components/base-select-mobile/{checkmark → footer}/index.d.ts +0 -0
  324. /package/components/{base-select-mobile/options-list → checkmark-mobile}/index.d.ts +0 -0
  325. /package/{components/base-select-mobile/virtual-options-list → cssm/components/base-select-mobile/footer}/index.d.ts +0 -0
  326. /package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +0 -0
  327. /package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.d.ts +0 -0
  328. /package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.module.css +0 -0
  329. /package/{cssm/components/base-select-mobile/options-list → esm/components/base-select-mobile/footer}/index.d.ts +0 -0
  330. /package/{cssm/components/base-select-mobile/virtual-options-list → esm/components/checkmark-mobile}/index.d.ts +0 -0
  331. /package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +0 -0
  332. /package/esm/{intersection-observer-55833352.d.ts → intersection-observer-961b54c8.d.ts} +0 -0
  333. /package/esm/{intersection-observer-55833352.js → intersection-observer-961b54c8.js} +0 -0
  334. /package/{intersection-observer-959eb559.d.ts → intersection-observer-d5f3e178.d.ts} +0 -0
  335. /package/{intersection-observer-959eb559.js → intersection-observer-d5f3e178.js} +0 -0
  336. /package/{esm/components/base-select-mobile/checkmark → modern/components/base-select-mobile/footer}/index.d.ts +0 -0
  337. /package/{esm/components/base-select-mobile/options-list → modern/components/checkmark-mobile}/index.d.ts +0 -0
  338. /package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +0 -0
  339. /package/modern/{intersection-observer-55833352.d.ts → intersection-observer-961b54c8.d.ts} +0 -0
  340. /package/modern/{intersection-observer-55833352.js → intersection-observer-961b54c8.js} +0 -0
@@ -1,38 +1,39 @@
1
1
  import 'tslib';
2
2
  import 'react';
3
+ export { S as SelectMobile } from '../../Component-b5248298.js';
3
4
  import '../arrow/Component.js';
4
- export { S as SelectMobile } from '../../Component-1830cf5e.js';
5
+ import '../base-select-mobile/Component.js';
6
+ import '../base-select-mobile/footer/Component.js';
5
7
  import '../field/Component.js';
6
8
  import '../optgroup/Component.js';
7
9
  import '../option/Component.js';
8
- import 'classnames';
9
- import '@alfalab/icons-glyph/ChevronDownMIcon';
10
- import 'react-merge-refs';
11
- import 'downshift';
12
- import '@alfalab/core-components-bottom-sheet/esm';
13
- import '@alfalab/core-components-modal/esm/mobile';
10
+ import '../options-list/Component.js';
11
+ import '../virtual-options-list/Component.js';
14
12
  import '../../Component.js';
15
- import '../../Component-578c3e05.js';
13
+ import '../base-select/Component.js';
14
+ import 'react-merge-refs';
16
15
  import '@juggle/resize-observer';
16
+ import 'classnames';
17
+ import 'downshift';
17
18
  import '@alfalab/core-components-popover/esm';
18
19
  import '@alfalab/hooks';
20
+ import '../../getDataTestId-015e89f1.js';
19
21
  import '../../utils.js';
20
22
  import '../native-select/Component.js';
21
- import '../options-list/Component.js';
22
- import '@alfalab/core-components-scrollbar/esm';
23
+ import '@alfalab/icons-glyph/ChevronDownMIcon';
23
24
  import '@alfalab/core-components-form-control/esm';
24
- import '../base-select-mobile/checkmark/Component.js';
25
- import '@alfalab/icons-glyph/CheckmarkMIcon';
26
25
  import '../checkmark/Component.js';
27
26
  import '@alfalab/core-components-badge/esm';
28
27
  import '@alfalab/core-components-checkbox/esm';
29
28
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
30
- import 'react-virtual';
31
- import '../base-option/Component.js';
32
- import '../base-checkmark/Component.js';
29
+ import '@alfalab/icons-glyph/CheckmarkMIcon';
30
+ import '../checkmark-mobile/Component.js';
31
+ import '@alfalab/core-components-scrollbar/esm';
33
32
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-55833352.js';
33
+ import '../../intersection-observer-961b54c8.js';
34
+ import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
35
35
  import '@alfalab/core-components-button/esm';
36
- import '../base-select-mobile/options-list/Component.js';
36
+ import '@alfalab/core-components-bottom-sheet/esm';
37
+ import '@alfalab/core-components-modal/esm/mobile';
37
38
  import '@alfalab/core-components-base-modal/esm';
38
- import '../base-select-mobile/virtual-options-list/Component.js';
39
+ import 'react-virtual';
@@ -1 +1 @@
1
- export * from "../../Component-1830cf5e";
1
+ export * from "../../Component-b5248298";
@@ -1,38 +1,39 @@
1
- export { S as SelectMobile } from '../../Component-1830cf5e.js';
1
+ export { S as SelectMobile } from '../../Component-b5248298.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
+ import '../../Component.js';
4
5
  import '../arrow/Component.js';
5
6
  import 'classnames';
6
7
  import '@alfalab/icons-glyph/ChevronDownMIcon';
8
+ import '../base-select/Component.js';
7
9
  import 'react-merge-refs';
8
- import 'downshift';
9
- import '@alfalab/core-components-bottom-sheet/esm';
10
- import '@alfalab/core-components-modal/esm/mobile';
11
- import '../../Component.js';
12
- import '../../Component-578c3e05.js';
13
10
  import '@juggle/resize-observer';
11
+ import 'downshift';
14
12
  import '@alfalab/core-components-popover/esm';
15
13
  import '@alfalab/hooks';
14
+ import '../../getDataTestId-015e89f1.js';
16
15
  import '../../utils.js';
17
16
  import '../native-select/Component.js';
18
17
  import '../field/Component.js';
19
18
  import '@alfalab/core-components-form-control/esm';
20
19
  import '../optgroup/Component.js';
21
20
  import '../option/Component.js';
22
- import '../base-select-mobile/checkmark/Component.js';
23
- import '@alfalab/icons-glyph/CheckmarkMIcon';
24
21
  import '../checkmark/Component.js';
25
22
  import '@alfalab/core-components-badge/esm';
26
23
  import '@alfalab/core-components-checkbox/esm';
27
24
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
25
+ import '@alfalab/icons-glyph/CheckmarkMIcon';
26
+ import '../checkmark-mobile/Component.js';
28
27
  import '../options-list/Component.js';
29
28
  import '@alfalab/core-components-scrollbar/esm';
29
+ import '../base-select-mobile/Component.js';
30
+ import '@alfalab/core-components-bottom-sheet/esm';
31
+ import '@alfalab/core-components-modal/esm/mobile';
32
+ import '../base-select-mobile/footer/Component.js';
33
+ import '@alfalab/core-components-base-modal/esm';
34
+ import '@alfalab/core-components-button/esm';
35
+ import '../virtual-options-list/Component.js';
30
36
  import 'react-virtual';
31
- import '../base-option/Component.js';
32
- import '../base-checkmark/Component.js';
33
37
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-55833352.js';
35
- import '@alfalab/core-components-button/esm';
36
- import '../base-select-mobile/options-list/Component.js';
37
- import '@alfalab/core-components-base-modal/esm';
38
- import '../base-select-mobile/virtual-options-list/Component.js';
38
+ import '../../intersection-observer-961b54c8.js';
39
+ import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
@@ -1,38 +1,39 @@
1
1
  import 'tslib';
2
2
  import 'react';
3
+ export { a as SelectModalMobile } from '../../Component-b5248298.js';
3
4
  import '../arrow/Component.js';
4
- export { a as SelectModalMobile } from '../../Component-1830cf5e.js';
5
+ import '../base-select-mobile/Component.js';
6
+ import '../base-select-mobile/footer/Component.js';
5
7
  import '../field/Component.js';
6
8
  import '../optgroup/Component.js';
7
9
  import '../option/Component.js';
8
- import 'classnames';
9
- import '@alfalab/icons-glyph/ChevronDownMIcon';
10
- import 'react-merge-refs';
11
- import 'downshift';
12
- import '@alfalab/core-components-bottom-sheet/esm';
13
- import '@alfalab/core-components-modal/esm/mobile';
10
+ import '../options-list/Component.js';
11
+ import '../virtual-options-list/Component.js';
14
12
  import '../../Component.js';
15
- import '../../Component-578c3e05.js';
13
+ import '../base-select/Component.js';
14
+ import 'react-merge-refs';
16
15
  import '@juggle/resize-observer';
16
+ import 'classnames';
17
+ import 'downshift';
17
18
  import '@alfalab/core-components-popover/esm';
18
19
  import '@alfalab/hooks';
20
+ import '../../getDataTestId-015e89f1.js';
19
21
  import '../../utils.js';
20
22
  import '../native-select/Component.js';
21
- import '../options-list/Component.js';
22
- import '@alfalab/core-components-scrollbar/esm';
23
+ import '@alfalab/icons-glyph/ChevronDownMIcon';
23
24
  import '@alfalab/core-components-form-control/esm';
24
- import '../base-select-mobile/checkmark/Component.js';
25
- import '@alfalab/icons-glyph/CheckmarkMIcon';
26
25
  import '../checkmark/Component.js';
27
26
  import '@alfalab/core-components-badge/esm';
28
27
  import '@alfalab/core-components-checkbox/esm';
29
28
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
30
- import 'react-virtual';
31
- import '../base-option/Component.js';
32
- import '../base-checkmark/Component.js';
29
+ import '@alfalab/icons-glyph/CheckmarkMIcon';
30
+ import '../checkmark-mobile/Component.js';
31
+ import '@alfalab/core-components-scrollbar/esm';
33
32
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-55833352.js';
33
+ import '../../intersection-observer-961b54c8.js';
34
+ import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
35
35
  import '@alfalab/core-components-button/esm';
36
- import '../base-select-mobile/options-list/Component.js';
36
+ import '@alfalab/core-components-bottom-sheet/esm';
37
+ import '@alfalab/core-components-modal/esm/mobile';
37
38
  import '@alfalab/core-components-base-modal/esm';
38
- import '../base-select-mobile/virtual-options-list/Component.js';
39
+ import 'react-virtual';
@@ -1 +1 @@
1
- export * from "../../Component-1830cf5e";
1
+ export * from "../../Component-b5248298";
@@ -1,38 +1,39 @@
1
- export { a as SelectModalMobile } from '../../Component-1830cf5e.js';
1
+ export { a as SelectModalMobile } from '../../Component-b5248298.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
+ import '../../Component.js';
4
5
  import '../arrow/Component.js';
5
6
  import 'classnames';
6
7
  import '@alfalab/icons-glyph/ChevronDownMIcon';
8
+ import '../base-select/Component.js';
7
9
  import 'react-merge-refs';
8
- import 'downshift';
9
- import '@alfalab/core-components-bottom-sheet/esm';
10
- import '@alfalab/core-components-modal/esm/mobile';
11
- import '../../Component.js';
12
- import '../../Component-578c3e05.js';
13
10
  import '@juggle/resize-observer';
11
+ import 'downshift';
14
12
  import '@alfalab/core-components-popover/esm';
15
13
  import '@alfalab/hooks';
14
+ import '../../getDataTestId-015e89f1.js';
16
15
  import '../../utils.js';
17
16
  import '../native-select/Component.js';
18
17
  import '../field/Component.js';
19
18
  import '@alfalab/core-components-form-control/esm';
20
19
  import '../optgroup/Component.js';
21
20
  import '../option/Component.js';
22
- import '../base-select-mobile/checkmark/Component.js';
23
- import '@alfalab/icons-glyph/CheckmarkMIcon';
24
21
  import '../checkmark/Component.js';
25
22
  import '@alfalab/core-components-badge/esm';
26
23
  import '@alfalab/core-components-checkbox/esm';
27
24
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
25
+ import '@alfalab/icons-glyph/CheckmarkMIcon';
26
+ import '../checkmark-mobile/Component.js';
28
27
  import '../options-list/Component.js';
29
28
  import '@alfalab/core-components-scrollbar/esm';
29
+ import '../base-select-mobile/Component.js';
30
+ import '@alfalab/core-components-bottom-sheet/esm';
31
+ import '@alfalab/core-components-modal/esm/mobile';
32
+ import '../base-select-mobile/footer/Component.js';
33
+ import '@alfalab/core-components-base-modal/esm';
34
+ import '@alfalab/core-components-button/esm';
35
+ import '../virtual-options-list/Component.js';
30
36
  import 'react-virtual';
31
- import '../base-option/Component.js';
32
- import '../base-checkmark/Component.js';
33
37
  import '@alfalab/core-components-skeleton/esm';
34
- import '../../intersection-observer-55833352.js';
35
- import '@alfalab/core-components-button/esm';
36
- import '../base-select-mobile/options-list/Component.js';
37
- import '@alfalab/core-components-base-modal/esm';
38
- import '../base-select-mobile/virtual-options-list/Component.js';
38
+ import '../../intersection-observer-961b54c8.js';
39
+ import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
@@ -1,10 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { OptionsListProps } from "../../typings";
3
- type VirtualOptionsList = Omit<OptionsListProps, 'optionsListWidth'> & {
4
- /**
5
- * Число отрисованных пунктов до\после видимого окна
6
- */
7
- overscan?: number;
8
- };
9
- declare const VirtualOptionsList: ({ size, flatOptions, highlightedIndex, className, getOptionProps, Option, open, options, overscan, Optgroup, dataTestId, emptyPlaceholder, visibleOptions, onScroll, header, footer, nativeScrollbar: nativeScrollbarProp, }: VirtualOptionsList) => JSX.Element;
4
+ declare const VirtualOptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<HTMLDivElement>>;
10
5
  export { VirtualOptionsList };
@@ -1,5 +1,6 @@
1
1
  import { __assign } from 'tslib';
2
- import React, { useRef, useState, useEffect, useMemo } from 'react';
2
+ import React, { forwardRef, useRef, useState, useEffect, useMemo } from 'react';
3
+ import mergeRefs from 'react-merge-refs';
3
4
  import { useVirtual } from 'react-virtual';
4
5
  import cn from 'classnames';
5
6
  import { Scrollbar } from '@alfalab/core-components-scrollbar/esm';
@@ -7,31 +8,31 @@ import { useMedia } from '@alfalab/hooks';
7
8
  import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
8
9
  import { Optgroup } from '../optgroup/Component.js';
9
10
 
10
- var styles = {"virtualOptionsList":"select__virtualOptionsList_te37x","virtualOptionsListHeader":"select__virtualOptionsListHeader_te37x","virtualOptionsListFooter":"select__virtualOptionsListFooter_te37x","withBorder":"select__withBorder_te37x","scrollable":"select__scrollable_te37x","inner":"select__inner_te37x","virtualRow":"select__virtualRow_te37x","highlighted":"select__highlighted_te37x","emptyPlaceholder":"select__emptyPlaceholder_te37x","l":"select__l_te37x","xl":"select__xl_te37x"};
11
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_8klep","virtualOptionsListHeader":"select__virtualOptionsListHeader_8klep","virtualOptionsListFooter":"select__virtualOptionsListFooter_8klep","withBorder":"select__withBorder_8klep","scrollable":"select__scrollable_8klep","inner":"select__inner_8klep","virtualRow":"select__virtualRow_8klep","highlighted":"select__highlighted_8klep","emptyPlaceholder":"select__emptyPlaceholder_8klep","l":"select__l_8klep","xl":"select__xl_8klep"};
11
12
  require('./index.css')
12
13
 
13
- /* eslint-disable react-hooks/exhaustive-deps */
14
- // eslint-disable-next-line @typescript-eslint/no-redeclare
15
- var VirtualOptionsList = function (_a) {
14
+ var VirtualOptionsList = forwardRef(function (_a, ref) {
16
15
  var _b;
17
- var _c = _a.size, size = _c === void 0 ? 's' : _c, _d = _a.flatOptions, flatOptions = _d === void 0 ? [] : _d, _e = _a.highlightedIndex, highlightedIndex = _e === void 0 ? -1 : _e, className = _a.className, getOptionProps = _a.getOptionProps, Option = _a.Option, open = _a.open, _f = _a.options, options = _f === void 0 ? [] : _f, _g = _a.overscan, overscan = _g === void 0 ? 10 : _g, _h = _a.Optgroup, Optgroup$1 = _h === void 0 ? Optgroup : _h, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _j = _a.visibleOptions, visibleOptions = _j === void 0 ? 5 : _j, onScroll = _a.onScroll, header = _a.header, footer = _a.footer, nativeScrollbarProp = _a.nativeScrollbar;
16
+ var _c = _a.size, size = _c === void 0 ? 's' : _c, _d = _a.flatOptions, flatOptions = _d === void 0 ? [] : _d, _e = _a.highlightedIndex, highlightedIndex = _e === void 0 ? -1 : _e, className = _a.className, getOptionProps = _a.getOptionProps, Option = _a.Option, open = _a.open, _f = _a.options, options = _f === void 0 ? [] : _f, _g = _a.Optgroup, Optgroup$1 = _g === void 0 ? Optgroup : _g, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _h = _a.visibleOptions, visibleOptions = _h === void 0 ? 5 : _h, header = _a.header, footer = _a.footer, optionsListWidth = _a.optionsListWidth, onScroll = _a.onScroll, nativeScrollbarProp = _a.nativeScrollbar;
18
17
  var listRef = useRef(null);
19
18
  var parentRef = useRef(null);
20
19
  var scrollbarRef = useRef(null);
21
- var _k = useState(0), visibleOptionsInvalidateKey = _k[0], setVisibleOptionsInvalidateKey = _k[1];
20
+ var _j = useState(0), visibleOptionsInvalidateKey = _j[0], setVisibleOptionsInvalidateKey = _j[1];
22
21
  var prevHighlightedIndex = usePrevious(highlightedIndex) || -1;
22
+ var nativeScrollbar = useMedia([[true, '(max-width: 1023px)']], false)[0];
23
23
  var rowVirtualizer = useVirtual({
24
24
  size: flatOptions.length,
25
- parentRef: parentRef,
26
- overscan: overscan,
25
+ parentRef: (ref || parentRef),
26
+ overscan: 15,
27
27
  });
28
- var nativeScrollbar = useMedia([[true, '(max-width: 1023px)']], false)[0];
28
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
29
29
  nativeScrollbar = Boolean(nativeScrollbarProp !== null && nativeScrollbarProp !== void 0 ? nativeScrollbarProp : nativeScrollbar);
30
30
  // Сколл к выбранному пункту при открытии меню
31
31
  useEffect(function () {
32
32
  if (open) {
33
33
  rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
34
34
  }
35
+ // eslint-disable-next-line react-hooks/exhaustive-deps
35
36
  }, [open]);
36
37
  // Скролл к пункту, которого нет на экране
37
38
  useEffect(function () {
@@ -40,6 +41,7 @@ var VirtualOptionsList = function (_a) {
40
41
  if (!rowVirtualizer.virtualItems.some(function (option) { return option.index === highlightedIndex; })) {
41
42
  rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
42
43
  }
44
+ // eslint-disable-next-line react-hooks/exhaustive-deps
43
45
  }, [highlightedIndex]);
44
46
  // Циклическая навигация
45
47
  useEffect(function () {
@@ -53,6 +55,7 @@ var VirtualOptionsList = function (_a) {
53
55
  if (prevHighlightedIndex >= lastNonDisabled && highlightedIndex === 0) {
54
56
  rowVirtualizer.scrollToIndex(0);
55
57
  }
58
+ // eslint-disable-next-line react-hooks/exhaustive-deps
56
59
  }, [prevHighlightedIndex, highlightedIndex]);
57
60
  useEffect(function () {
58
61
  setVisibleOptionsInvalidateKey(
@@ -84,11 +87,6 @@ var VirtualOptionsList = function (_a) {
84
87
  return acc;
85
88
  }, {});
86
89
  }, [options]);
87
- var contentNodeProps = {
88
- className: styles.inner,
89
- style: { height: "".concat(rowVirtualizer.totalSize, "px") },
90
- ref: listRef,
91
- };
92
90
  var renderList = function () {
93
91
  return rowVirtualizer.virtualItems.map(function (virtualRow) {
94
92
  var _a;
@@ -100,12 +98,25 @@ var VirtualOptionsList = function (_a) {
100
98
  transform: "translateY(".concat(virtualRow.start, "px)"),
101
99
  } },
102
100
  group && React.createElement(Optgroup$1, { label: group.label }),
103
- !isGroup(option) && React.createElement(Option, __assign({}, getOptionProps(option, virtualRow.index)))));
101
+ !isGroup(option) && (React.createElement(Option, __assign({}, getOptionProps(option, virtualRow.index))))));
104
102
  });
105
103
  };
106
- var renderWithCustomScrollbar = function () { return (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, scrollableNodeProps: { onScroll: onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList())); };
107
- var renderWithNativeScrollbar = function () { return (React.createElement("div", { className: styles.scrollable, ref: parentRef, onScroll: onScroll },
108
- React.createElement("div", __assign({}, contentNodeProps), renderList()))); };
104
+ var contentNodeProps = {
105
+ className: styles.inner,
106
+ style: { height: "".concat(rowVirtualizer.totalSize, "px") },
107
+ ref: listRef,
108
+ };
109
+ var renderWithCustomScrollbar = function () { return (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: { onScroll: onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList())); };
110
+ var renderWithNativeScrollbar = function () {
111
+ if (visibleOptions) {
112
+ return (React.createElement("div", { className: styles.scrollable, ref: mergeRefs([parentRef, ref]), onScroll: onScroll },
113
+ React.createElement("div", __assign({}, contentNodeProps), renderList())));
114
+ }
115
+ return React.createElement("div", __assign({}, contentNodeProps), renderList());
116
+ };
117
+ if (options.length === 0 && !emptyPlaceholder) {
118
+ return null;
119
+ }
109
120
  return (React.createElement("div", { className: cn(styles.virtualOptionsList, styles[size], className), "data-test-id": dataTestId },
110
121
  header && React.createElement("div", { className: styles.virtualOptionsListHeader }, header),
111
122
  nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar(),
@@ -113,6 +124,6 @@ var VirtualOptionsList = function (_a) {
113
124
  footer && (React.createElement("div", { className: cn(styles.virtualOptionsListFooter, (_b = {},
114
125
  _b[styles.withBorder] = visibleOptions && flatOptions.length > visibleOptions,
115
126
  _b)) }, footer))));
116
- };
127
+ });
117
128
 
118
129
  export { VirtualOptionsList };
@@ -1,4 +1,4 @@
1
- /* hash: 14vfr */
1
+ /* hash: y762s */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dcdcdd;
@@ -35,31 +35,34 @@
35
35
  /* checkmark */
36
36
 
37
37
  /* optgroup */
38
- } .select__virtualOptionsList_te37x {
38
+ } .select__virtualOptionsList_8klep {
39
39
  width: 100%;
40
40
  outline: none;
41
41
  box-sizing: border-box;
42
- position: relative;
43
- } .select__virtualOptionsListHeader_te37x {
42
+ position: sticky;
43
+ } .select__virtualOptionsListHeader_8klep {
44
44
  box-sizing: border-box;
45
45
  border-bottom: 1px solid var(--color-light-border-secondary);
46
- } .select__virtualOptionsListFooter_te37x {
46
+ } .select__virtualOptionsListFooter_8klep {
47
+ position: sticky;
48
+ bottom: 0;
47
49
  box-sizing: border-box;
48
50
  border-top: 1px solid transparent
49
- } .select__virtualOptionsListFooter_te37x.select__withBorder_te37x {
51
+ } .select__virtualOptionsListFooter_8klep.select__withBorder_8klep {
50
52
  border-top: 1px solid var(--color-light-border-secondary);
51
- } .select__scrollable_te37x {
53
+ } .select__scrollable_8klep {
54
+ position: relative;
52
55
  overflow: auto;
53
56
  width: 100%;
54
- } .select__inner_te37x {
57
+ } .select__inner_8klep {
55
58
  position: relative;
56
59
  width: 100%;
57
- } .select__virtualRow_te37x {
60
+ } .select__virtualRow_8klep {
58
61
  position: absolute;
59
62
  top: 0;
60
63
  left: 0;
61
64
  width: 100%
62
- } .select__virtualRow_te37x:before {
65
+ } .select__virtualRow_8klep:before {
63
66
  content: '';
64
67
  position: absolute;
65
68
  z-index: 1;
@@ -69,15 +72,15 @@
69
72
  height: 1px;
70
73
  background: var(--select-option-divider-background);
71
74
  display: var(--select-option-divider-display);
72
- } .select__virtualRow_te37x:first-child:before {
75
+ } .select__virtualRow_8klep:first-child:before {
73
76
  display: none;
74
- } .select__highlighted_te37x:before,
75
- .select__highlighted_te37x + .select__virtualRow_te37x:before {
77
+ } .select__highlighted_8klep:before,
78
+ .select__highlighted_8klep + .select__virtualRow_8klep:before {
76
79
  display: none;
77
- } .select__emptyPlaceholder_te37x {
80
+ } .select__emptyPlaceholder_8klep {
78
81
  padding: var(--gap-m) var(--gap-s);
79
82
  color: var(--select-options-list-empty-placeholder-color);
80
- } .select__l_te37x .select__emptyPlaceholder_te37x,
81
- .select__xl_te37x .select__emptyPlaceholder_te37x {
83
+ } .select__l_8klep .select__emptyPlaceholder_8klep,
84
+ .select__xl_8klep .select__emptyPlaceholder_8klep {
82
85
  padding: var(--gap-xl) var(--gap-m);
83
86
  }
@@ -1,6 +1,7 @@
1
1
  export { VirtualOptionsList } from './Component.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
+ import 'react-merge-refs';
4
5
  import 'react-virtual';
5
6
  import 'classnames';
6
7
  import '@alfalab/core-components-scrollbar/esm';
@@ -0,0 +1,2 @@
1
+ declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
2
+ export { getDataTestId };
@@ -0,0 +1,6 @@
1
+ var getDataTestId = function (dataTestId, element) {
2
+ var elementPart = element ? "-".concat(element.toLowerCase()) : '';
3
+ return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
4
+ };
5
+
6
+ export { getDataTestId as g };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BaseSelectProps, OptionShape } from "./index";
3
- type useSelectWithApplyProps = {
3
+ type UseSelectWithApplyProps = {
4
4
  /**
5
5
  * Список выбранных пунктов
6
6
  */
@@ -17,6 +17,10 @@ type useSelectWithApplyProps = {
17
17
  * Компонент выпадающего меню
18
18
  */
19
19
  OptionsList?: BaseSelectProps['OptionsList'];
20
+ /**
21
+ * Пропсы, которые будут прокинуты в компонент списка
22
+ */
23
+ optionsListProps?: BaseSelectProps['optionsListProps'];
20
24
  /**
21
25
  * Показывать кнопку очистки
22
26
  */
@@ -27,15 +31,16 @@ type useSelectWithApplyProps = {
27
31
  showSelectAll?: boolean;
28
32
  };
29
33
  declare const SELECT_ALL_KEY = "select_all";
30
- declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }: useSelectWithApplyProps): {
34
+ declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, }: UseSelectWithApplyProps): {
31
35
  OptionsList: import("react").ForwardRefExoticComponent<import("./index").OptionsListProps & {
32
36
  showClear?: boolean | undefined;
33
37
  onClose?: (() => void) | undefined;
34
38
  selectedDraft?: OptionShape[] | undefined;
35
- OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
36
- } & import("react").RefAttributes<unknown>>;
39
+ OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
40
+ Footer?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/footer/Component").FooterProps> | undefined;
41
+ } & import("react").RefAttributes<HTMLDivElement>>;
37
42
  optionsListProps: {
38
- OptionsList: import("react").FC<import("./index").OptionsListProps> | undefined;
43
+ OptionsList: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
39
44
  showClear: boolean;
40
45
  onClear: () => void;
41
46
  onApply: () => void;
@@ -51,4 +56,4 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
51
56
  onChange: (payload: import("./index").BaseSelectChangePayload) => void;
52
57
  selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
53
58
  };
54
- export { SELECT_ALL_KEY, useSelectWithApply };
59
+ export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
@@ -1,3 +1,3 @@
1
1
  declare const isClient: () => boolean;
2
2
  export { isClient };
3
- export * from "./Component-578c3e05";
3
+ export * from "./getDataTestId-015e89f1";
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Select } from './Component.js';
2
2
  export { Arrow } from './components/arrow/Component.js';
3
- export { B as BaseSelect } from './Component-578c3e05.js';
4
- export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-1830cf5e.js';
3
+ export { BaseSelect } from './components/base-select/Component.js';
4
+ export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-b5248298.js';
5
5
  export { Field } from './components/field/Component.js';
6
6
  export { Optgroup } from './components/optgroup/Component.js';
7
7
  export { Option } from './components/option/Component.js';
@@ -20,22 +20,24 @@ import '@juggle/resize-observer';
20
20
  import 'downshift';
21
21
  import '@alfalab/core-components-popover/esm';
22
22
  import '@alfalab/hooks';
23
+ import './getDataTestId-015e89f1.js';
23
24
  import './components/native-select/Component.js';
25
+ import './components/base-select-mobile/Component.js';
24
26
  import '@alfalab/core-components-bottom-sheet/esm';
25
27
  import '@alfalab/core-components-modal/esm/mobile';
26
- import 'react-virtual';
27
- import '@alfalab/core-components-scrollbar/esm';
28
- import '@alfalab/core-components-skeleton/esm';
29
- import './intersection-observer-55833352.js';
28
+ import './components/base-select-mobile/footer/Component.js';
29
+ import '@alfalab/core-components-base-modal/esm';
30
30
  import '@alfalab/core-components-button/esm';
31
31
  import '@alfalab/core-components-form-control/esm';
32
- import '@alfalab/icons-glyph/CheckmarkMIcon';
33
32
  import '@alfalab/core-components-badge/esm';
34
33
  import '@alfalab/core-components-checkbox/esm';
35
34
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
36
- import './components/base-checkmark/Component.js';
37
- import './components/base-select-mobile/checkmark/Component.js';
38
- import './components/base-select-mobile/options-list/Component.js';
39
- import '@alfalab/core-components-base-modal/esm';
40
- import './components/base-select-mobile/virtual-options-list/Component.js';
35
+ import '@alfalab/icons-glyph/CheckmarkMIcon';
36
+ import '@alfalab/core-components-skeleton/esm';
37
+ import './intersection-observer-961b54c8.js';
38
+ import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
41
39
  import './components/checkmark/Component.js';
40
+ import './components/checkmark-mobile/Component.js';
41
+ import '@alfalab/core-components-scrollbar/esm';
42
+ import 'react-virtual';
43
+ import './components/base-checkmark/Component.js';
@@ -1,3 +1,3 @@
1
1
  export * from "./useSelectWithLoading/hook";
2
2
  export * from "./useLazyLoading/hook";
3
- export * from "../hook-edac5428";
3
+ export * from "../hook-4b555174";
@@ -1,29 +1,28 @@
1
1
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from './useLazyLoading/hook.js';
3
- export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-1830cf5e.js';
3
+ export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-b5248298.js';
4
4
  import 'tslib';
5
5
  import 'react';
6
6
  import '@alfalab/core-components-skeleton/esm';
7
7
  import '../components/option/Component.js';
8
8
  import 'classnames';
9
- import '../components/base-select-mobile/checkmark/Component.js';
10
- import '@alfalab/icons-glyph/CheckmarkMIcon';
11
9
  import '../components/checkmark/Component.js';
12
10
  import '@alfalab/core-components-badge/esm';
13
11
  import '@alfalab/core-components-checkbox/esm';
14
12
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
15
- import '../intersection-observer-55833352.js';
13
+ import '@alfalab/icons-glyph/CheckmarkMIcon';
14
+ import '../components/checkmark-mobile/Component.js';
15
+ import '../intersection-observer-961b54c8.js';
16
+ import '../Component.js';
16
17
  import '../components/arrow/Component.js';
17
18
  import '@alfalab/icons-glyph/ChevronDownMIcon';
19
+ import '../components/base-select/Component.js';
18
20
  import 'react-merge-refs';
19
- import 'downshift';
20
- import '@alfalab/core-components-bottom-sheet/esm';
21
- import '@alfalab/core-components-modal/esm/mobile';
22
- import '../Component.js';
23
- import '../Component-578c3e05.js';
24
21
  import '@juggle/resize-observer';
22
+ import 'downshift';
25
23
  import '@alfalab/core-components-popover/esm';
26
24
  import '@alfalab/hooks';
25
+ import '../getDataTestId-015e89f1.js';
27
26
  import '../utils.js';
28
27
  import '../components/native-select/Component.js';
29
28
  import '../components/field/Component.js';
@@ -31,10 +30,12 @@ import '@alfalab/core-components-form-control/esm';
31
30
  import '../components/optgroup/Component.js';
32
31
  import '../components/options-list/Component.js';
33
32
  import '@alfalab/core-components-scrollbar/esm';
34
- import 'react-virtual';
35
- import '../components/base-option/Component.js';
36
- import '../components/base-checkmark/Component.js';
37
- import '@alfalab/core-components-button/esm';
38
- import '../components/base-select-mobile/options-list/Component.js';
33
+ import '../components/base-select-mobile/Component.js';
34
+ import '@alfalab/core-components-bottom-sheet/esm';
35
+ import '@alfalab/core-components-modal/esm/mobile';
36
+ import '../components/base-select-mobile/footer/Component.js';
39
37
  import '@alfalab/core-components-base-modal/esm';
40
- import '../components/base-select-mobile/virtual-options-list/Component.js';
38
+ import '@alfalab/core-components-button/esm';
39
+ import '../components/virtual-options-list/Component.js';
40
+ import 'react-virtual';
41
+ import './useSelectWithApply/options-list-with-apply/footer/Component.js';