@alfalab/core-components-select 17.8.2 → 17.8.4

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 (257) hide show
  1. package/components/arrow/Component.js +1 -1
  2. package/components/arrow/index.css +6 -4
  3. package/components/base-checkmark/Component.js +1 -1
  4. package/components/base-checkmark/index.css +9 -7
  5. package/components/base-option/Component.js +1 -1
  6. package/components/base-option/index.css +21 -19
  7. package/components/base-select/Component.d.ts +8 -14
  8. package/components/base-select/Component.js +48 -75
  9. package/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +12 -0
  10. package/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +19 -0
  11. package/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -0
  12. package/components/base-select/components/list-desktop/list-popover-desktop.js +12 -0
  13. package/components/base-select/components/list-desktop/types/types.d.ts +3 -0
  14. package/components/base-select/components/list-desktop/types/types.js +2 -0
  15. package/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +16 -0
  16. package/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +23 -0
  17. package/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +28 -0
  18. package/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +22 -0
  19. package/components/base-select/components/list-mobile/helpers/index.d.ts +2 -0
  20. package/components/base-select/components/list-mobile/helpers/index.js +11 -0
  21. package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +15 -0
  22. package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +28 -0
  23. package/components/base-select/components/list-mobile/list-mobile.d.ts +16 -0
  24. package/components/base-select/components/list-mobile/list-mobile.js +26 -0
  25. package/components/base-select/components/list-mobile/list-modal-mobile.d.ts +15 -0
  26. package/components/base-select/components/list-mobile/list-modal-mobile.js +42 -0
  27. package/components/base-select/components/list-mobile/types/types.d.ts +4 -0
  28. package/components/base-select/components/list-mobile/types/types.js +2 -0
  29. package/components/base-select/index.css +16 -14
  30. package/components/base-select/mobile.css +19 -17
  31. package/components/base-select/types/component-types.d.ts +50 -0
  32. package/components/base-select/types/component-types.js +2 -0
  33. package/components/checkmark/Component.js +1 -1
  34. package/components/checkmark/index.css +15 -13
  35. package/components/checkmark-mobile/Component.js +1 -1
  36. package/components/checkmark-mobile/index.css +9 -7
  37. package/components/field/Component.js +1 -1
  38. package/components/field/index.css +15 -13
  39. package/components/footer/Component.js +1 -1
  40. package/components/footer/index.css +9 -7
  41. package/components/optgroup/Component.js +1 -1
  42. package/components/optgroup/index.css +12 -10
  43. package/components/option/Component.js +1 -1
  44. package/components/option/index.css +24 -22
  45. package/components/options-list/Component.js +1 -1
  46. package/components/options-list/index.css +16 -14
  47. package/components/search/Component.js +1 -1
  48. package/components/search/index.css +5 -3
  49. package/components/virtual-options-list/Component.js +1 -1
  50. package/components/virtual-options-list/index.css +21 -19
  51. package/cssm/components/arrow/index.module.css +3 -1
  52. package/cssm/components/base-checkmark/index.module.css +3 -1
  53. package/cssm/components/base-option/index.module.css +6 -4
  54. package/cssm/components/base-select/Component.d.ts +8 -14
  55. package/cssm/components/base-select/Component.js +38 -60
  56. package/cssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +12 -0
  57. package/cssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +19 -0
  58. package/cssm/components/base-select/components/list-desktop/list-popover-desktop.d.ts +9 -0
  59. package/cssm/components/base-select/components/list-desktop/list-popover-desktop.js +24 -0
  60. package/cssm/components/base-select/components/list-desktop/types/types.d.ts +3 -0
  61. package/cssm/components/base-select/components/list-desktop/types/types.js +2 -0
  62. package/cssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +16 -0
  63. package/cssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +23 -0
  64. package/cssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +28 -0
  65. package/cssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +22 -0
  66. package/cssm/components/base-select/components/list-mobile/helpers/index.d.ts +2 -0
  67. package/cssm/components/base-select/components/list-mobile/helpers/index.js +11 -0
  68. package/cssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +15 -0
  69. package/cssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +29 -0
  70. package/cssm/components/base-select/components/list-mobile/list-mobile.d.ts +16 -0
  71. package/cssm/components/base-select/components/list-mobile/list-mobile.js +26 -0
  72. package/cssm/components/base-select/components/list-mobile/list-modal-mobile.d.ts +15 -0
  73. package/cssm/components/base-select/components/list-mobile/list-modal-mobile.js +43 -0
  74. package/cssm/components/base-select/components/list-mobile/types/types.d.ts +4 -0
  75. package/cssm/components/base-select/components/list-mobile/types/types.js +2 -0
  76. package/cssm/components/base-select/index.module.css +5 -3
  77. package/cssm/components/base-select/mobile.module.css +7 -5
  78. package/cssm/components/base-select/types/component-types.d.ts +50 -0
  79. package/cssm/components/base-select/types/component-types.js +2 -0
  80. package/cssm/components/checkmark/index.module.css +5 -3
  81. package/cssm/components/checkmark-mobile/index.module.css +3 -1
  82. package/cssm/components/field/index.module.css +3 -1
  83. package/cssm/components/footer/index.module.css +4 -2
  84. package/cssm/components/optgroup/index.module.css +6 -4
  85. package/cssm/components/option/index.module.css +5 -3
  86. package/cssm/components/options-list/index.module.css +6 -4
  87. package/cssm/components/search/index.module.css +3 -1
  88. package/cssm/components/virtual-options-list/index.module.css +6 -4
  89. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +5 -3
  90. package/cssm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +5 -3
  91. package/esm/components/arrow/Component.js +1 -1
  92. package/esm/components/arrow/index.css +6 -4
  93. package/esm/components/base-checkmark/Component.js +1 -1
  94. package/esm/components/base-checkmark/index.css +9 -7
  95. package/esm/components/base-option/Component.js +1 -1
  96. package/esm/components/base-option/index.css +21 -19
  97. package/esm/components/base-select/Component.d.ts +8 -14
  98. package/esm/components/base-select/Component.js +39 -66
  99. package/esm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +12 -0
  100. package/esm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +15 -0
  101. package/esm/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -0
  102. package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +4 -0
  103. package/esm/components/base-select/components/list-desktop/types/types.d.ts +3 -0
  104. package/esm/components/base-select/components/list-desktop/types/types.js +1 -0
  105. package/esm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +16 -0
  106. package/esm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +19 -0
  107. package/esm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +28 -0
  108. package/esm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +18 -0
  109. package/esm/components/base-select/components/list-mobile/helpers/index.d.ts +2 -0
  110. package/esm/components/base-select/components/list-mobile/helpers/index.js +2 -0
  111. package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +15 -0
  112. package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +20 -0
  113. package/esm/components/base-select/components/list-mobile/list-mobile.d.ts +16 -0
  114. package/esm/components/base-select/components/list-mobile/list-mobile.js +18 -0
  115. package/esm/components/base-select/components/list-mobile/list-modal-mobile.d.ts +15 -0
  116. package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +32 -0
  117. package/esm/components/base-select/components/list-mobile/types/types.d.ts +4 -0
  118. package/esm/components/base-select/components/list-mobile/types/types.js +1 -0
  119. package/esm/components/base-select/index.css +16 -14
  120. package/esm/components/base-select/mobile.css +19 -17
  121. package/esm/components/base-select/types/component-types.d.ts +50 -0
  122. package/esm/components/base-select/types/component-types.js +1 -0
  123. package/esm/components/checkmark/Component.js +1 -1
  124. package/esm/components/checkmark/index.css +15 -13
  125. package/esm/components/checkmark-mobile/Component.js +1 -1
  126. package/esm/components/checkmark-mobile/index.css +9 -7
  127. package/esm/components/field/Component.js +1 -1
  128. package/esm/components/field/index.css +15 -13
  129. package/esm/components/footer/Component.js +1 -1
  130. package/esm/components/footer/index.css +9 -7
  131. package/esm/components/optgroup/Component.js +1 -1
  132. package/esm/components/optgroup/index.css +12 -10
  133. package/esm/components/option/Component.js +1 -1
  134. package/esm/components/option/index.css +24 -22
  135. package/esm/components/options-list/Component.js +1 -1
  136. package/esm/components/options-list/index.css +16 -14
  137. package/esm/components/search/Component.js +1 -1
  138. package/esm/components/search/index.css +5 -3
  139. package/esm/components/virtual-options-list/Component.js +1 -1
  140. package/esm/components/virtual-options-list/index.css +21 -19
  141. package/esm/list-popover-desktop-f713543b.d.ts +9 -0
  142. package/esm/list-popover-desktop-f713543b.js +16 -0
  143. package/esm/mobile/Component.mobile.js +1 -1
  144. package/esm/mobile.module-98003396.js +4 -0
  145. package/esm/presets/index.js +1 -1
  146. package/esm/presets/useSelectWithApply/hook.js +1 -1
  147. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  148. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  149. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +8 -6
  150. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  151. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +8 -6
  152. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  153. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  154. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  155. package/esm/presets/useSelectWithLoading/index.css +2 -2
  156. package/esm/shared/index.js +1 -1
  157. package/list-popover-desktop-11171d84.d.ts +9 -0
  158. package/list-popover-desktop-11171d84.js +24 -0
  159. package/mobile/Component.mobile.js +1 -1
  160. package/mobile.module-8f94cd8b.js +6 -0
  161. package/modern/components/arrow/Component.js +1 -1
  162. package/modern/components/arrow/index.css +6 -4
  163. package/modern/components/base-checkmark/Component.js +1 -1
  164. package/modern/components/base-checkmark/index.css +9 -7
  165. package/modern/components/base-option/Component.js +1 -1
  166. package/modern/components/base-option/index.css +21 -19
  167. package/modern/components/base-select/Component.d.ts +8 -14
  168. package/modern/components/base-select/Component.js +23 -56
  169. package/modern/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +12 -0
  170. package/modern/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +15 -0
  171. package/modern/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -0
  172. package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +3 -0
  173. package/modern/components/base-select/components/list-desktop/types/types.d.ts +3 -0
  174. package/modern/components/base-select/components/list-desktop/types/types.js +1 -0
  175. package/modern/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +16 -0
  176. package/modern/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +19 -0
  177. package/modern/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +28 -0
  178. package/modern/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +18 -0
  179. package/modern/components/base-select/components/list-mobile/helpers/index.d.ts +2 -0
  180. package/modern/components/base-select/components/list-mobile/helpers/index.js +2 -0
  181. package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +15 -0
  182. package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +24 -0
  183. package/modern/components/base-select/components/list-mobile/list-mobile.d.ts +16 -0
  184. package/modern/components/base-select/components/list-mobile/list-mobile.js +17 -0
  185. package/modern/components/base-select/components/list-mobile/list-modal-mobile.d.ts +15 -0
  186. package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +32 -0
  187. package/modern/components/base-select/components/list-mobile/types/types.d.ts +4 -0
  188. package/modern/components/base-select/components/list-mobile/types/types.js +1 -0
  189. package/modern/components/base-select/index.css +16 -14
  190. package/modern/components/base-select/mobile.css +19 -17
  191. package/modern/components/base-select/types/component-types.d.ts +50 -0
  192. package/modern/components/base-select/types/component-types.js +1 -0
  193. package/modern/components/checkmark/Component.js +1 -1
  194. package/modern/components/checkmark/index.css +15 -13
  195. package/modern/components/checkmark-mobile/Component.js +1 -1
  196. package/modern/components/checkmark-mobile/index.css +9 -7
  197. package/modern/components/field/Component.js +1 -1
  198. package/modern/components/field/index.css +15 -13
  199. package/modern/components/footer/Component.js +1 -1
  200. package/modern/components/footer/index.css +9 -7
  201. package/modern/components/optgroup/Component.js +1 -1
  202. package/modern/components/optgroup/index.css +12 -10
  203. package/modern/components/option/Component.js +1 -1
  204. package/modern/components/option/index.css +24 -22
  205. package/modern/components/options-list/Component.js +1 -1
  206. package/modern/components/options-list/index.css +16 -14
  207. package/modern/components/search/Component.js +1 -1
  208. package/modern/components/search/index.css +5 -3
  209. package/modern/components/virtual-options-list/Component.js +1 -1
  210. package/modern/components/virtual-options-list/index.css +21 -19
  211. package/modern/list-popover-desktop-1f55335b.d.ts +9 -0
  212. package/modern/list-popover-desktop-1f55335b.js +15 -0
  213. package/modern/mobile/Component.mobile.js +1 -1
  214. package/modern/mobile.module-815026ad.js +4 -0
  215. package/modern/presets/index.js +1 -1
  216. package/modern/presets/useSelectWithApply/hook.js +1 -1
  217. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  218. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  219. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +8 -6
  220. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  221. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +8 -6
  222. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  223. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  224. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  225. package/modern/presets/useSelectWithLoading/index.css +2 -2
  226. package/modern/shared/index.js +1 -1
  227. package/package.json +8 -6
  228. package/presets/index.js +1 -1
  229. package/presets/useSelectWithApply/hook.js +1 -1
  230. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  231. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  232. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +8 -6
  233. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  234. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +8 -6
  235. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  236. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  237. package/presets/useSelectWithLoading/hook.js +1 -1
  238. package/presets/useSelectWithLoading/index.css +2 -2
  239. package/shared/index.js +1 -1
  240. package/src/components/base-select/Component.tsx +49 -185
  241. package/src/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.tsx +24 -0
  242. package/src/components/base-select/components/list-desktop/list-popover-desktop.tsx +47 -0
  243. package/src/components/base-select/components/list-desktop/types/types.ts +3 -0
  244. package/src/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.tsx +32 -0
  245. package/src/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.tsx +30 -0
  246. package/src/components/base-select/components/list-mobile/helpers/index.ts +2 -0
  247. package/src/components/base-select/components/list-mobile/list-bottom-sheet-mobile.tsx +84 -0
  248. package/src/components/base-select/components/list-mobile/list-mobile.tsx +39 -0
  249. package/src/components/base-select/components/list-mobile/list-modal-mobile.tsx +94 -0
  250. package/src/components/base-select/components/list-mobile/types/types.ts +4 -0
  251. package/src/components/base-select/types/component-types.ts +39 -0
  252. /package/esm/{hook-86063cab.d.ts → hook-9d222e75.d.ts} +0 -0
  253. /package/esm/{hook-86063cab.js → hook-9d222e75.js} +0 -0
  254. /package/{hook-777449d0.d.ts → hook-01942cdc.d.ts} +0 -0
  255. /package/{hook-777449d0.js → hook-01942cdc.js} +0 -0
  256. /package/modern/{hook-1c546c40.d.ts → hook-ea5654cb.d.ts} +0 -0
  257. /package/modern/{hook-1c546c40.js → hook-ea5654cb.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-86063cab.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-9d222e75.js';
4
4
  export { defaultAccessor, defaultFilterFn, defaultGroupAccessor, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
5
5
  export { Option } from '../components/option/Component.js';
6
6
  export { BaseOption } from '../components/base-option/Component.js';
@@ -0,0 +1,9 @@
1
+ import { FC, ReactNode, RefObject } from 'react';
2
+ import { ListPopoverDesktopRestProps } from "./components/base-select/components/list-desktop/types/types";
3
+ type ListPopoverDesktopProps = {
4
+ open: boolean;
5
+ fieldRef: RefObject<HTMLInputElement>;
6
+ renderOptionsList: () => ReactNode;
7
+ } & ListPopoverDesktopRestProps;
8
+ declare const ListPopoverDesktop: FC<ListPopoverDesktopProps>;
9
+ export { ListPopoverDesktop };
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var tslib = require('tslib');
4
+ var React = require('react');
5
+ var cn = require('classnames');
6
+
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
+
12
+ var styles = {"component":"select__component_1543y","popoverInner":"select__popoverInner_1543y","optionsListWrapper":"select__optionsListWrapper_1543y","optionsListBorder":"select__optionsListBorder_1543y","nativeSelect":"select__nativeSelect_1543y","block":"select__block_1543y","emptySearchPlaceholder":"select__emptySearchPlaceholder_1543y","search":"select__search_1543y"};
13
+ require('./components/base-select/index.css')
14
+
15
+ var ListPopoverDesktop = function (props) {
16
+ var Popover = props.Popover, open = props.open, popoverProps = props.popoverProps, fieldRef = props.fieldRef, _a = props.popoverPosition, popoverPosition = _a === void 0 ? 'bottom-start' : _a, _b = props.preventFlip, preventFlip = _b === void 0 ? true : _b, popperClassName = props.popperClassName, updatePopover = props.updatePopover, zIndexPopover = props.zIndexPopover, renderOptionsList = props.renderOptionsList;
17
+ if (Popover) {
18
+ return (React__default.default.createElement(Popover, tslib.__assign({}, popoverProps, { open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: cn__default.default(styles.popoverInner, popperClassName), update: updatePopover, zIndex: zIndexPopover }), renderOptionsList()));
19
+ }
20
+ return null;
21
+ };
22
+
23
+ exports.ListPopoverDesktop = ListPopoverDesktop;
24
+ exports.styles = styles;
@@ -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-777449d0.js');
19
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-01942cdc.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_1dc92","sheetContent":"select__sheetContent_1dc92","modalContent":"select__modalContent_1dc92","sheetContainer":"select__sheetContainer_1dc92","optionsListWrapper":"select__optionsListWrapper_1dc92","optionsList":"select__optionsList_1dc92","scrollbar":"select__scrollbar_1dc92","search":"select__search_1dc92","option":"select__option_1dc92","optionGroup":"select__optionGroup_1dc92"};
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_1ty1d","open":"select__open_1ty1d"};
5
+ const styles = {"arrow":"select__arrow_1gtpv","open":"select__open_1gtpv"};
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: 1l0ki */
1
+ /* hash: 1cy08 */
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 */
@@ -12,7 +12,9 @@
12
12
 
13
13
  /* Hard up */
14
14
  } :root {
15
- } :root {
15
+ } :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 */
16
+
17
+ /* новые значения, используйте их */
16
18
  } :root {
17
19
  } :root {
18
20
  --arrow-transform: rotate(180deg);
@@ -26,13 +28,13 @@
26
28
  /* checkmark */
27
29
 
28
30
  /* optgroup */
29
- } .select__arrow_1ty1d {
31
+ } .select__arrow_1gtpv {
30
32
  display: block;
31
33
  width: 24px;
32
34
  height: 24px;
33
35
  color: var(--select-arrow-color);
34
36
 
35
37
  transition: transform 0.15s ease-in-out, opacity 0.2s ease;
36
- } .select__open_1ty1d {
38
+ } .select__open_1gtpv {
37
39
  transform: var(--arrow-transform);
38
40
  }
@@ -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_1bn64","start":"select__start_1bn64","center":"select__center_1bn64","single":"select__single_1bn64","selected":"select__selected_1bn64"};
6
+ const styles = {"checkmark":"select__checkmark_1f3p5","start":"select__start_1f3p5","center":"select__center_1f3p5","single":"select__single_1f3p5","selected":"select__selected_1f3p5"};
7
7
  require('./index.css')
8
8
 
9
9
  const BaseCheckmark = ({ selected, disabled = false, className, multiple, align = 'center', }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1jbb6 */
1
+ /* hash: 1rdvg */
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 */
@@ -11,7 +11,9 @@
11
11
 
12
12
  /* Hard up */
13
13
  } :root {
14
- } :root {
14
+ } :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 */
15
+
16
+ /* новые значения, используйте их */
15
17
  } :root {
16
18
  } :root {
17
19
  } :root {
@@ -23,18 +25,18 @@
23
25
  /* checkmark */
24
26
 
25
27
  /* optgroup */
26
- } .select__checkmark_1bn64 {
28
+ } .select__checkmark_1f3p5 {
27
29
  flex-shrink: 0;
28
30
  box-sizing: border-box
29
- } .select__checkmark_1bn64.select__start_1bn64 {
31
+ } .select__checkmark_1f3p5.select__start_1f3p5 {
30
32
  align-self: start;
31
- } .select__checkmark_1bn64.select__center_1bn64 {
33
+ } .select__checkmark_1f3p5.select__center_1f3p5 {
32
34
  align-self: center;
33
- } .select__single_1bn64 {
35
+ } .select__single_1f3p5 {
34
36
  display: flex;
35
37
  align-items: center;
36
38
  justify-content: center;
37
39
  opacity: 0
38
- } .select__single_1bn64.select__selected_1bn64 {
40
+ } .select__single_1f3p5.select__selected_1f3p5 {
39
41
  opacity: 1;
40
42
  }
@@ -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_w2gcg","disabled":"select__disabled_w2gcg","checkmarkBefore":"select__checkmarkBefore_w2gcg","mobile":"select__mobile_w2gcg","checkmarkAfter":"select__checkmarkAfter_w2gcg","textContent":"select__textContent_w2gcg","selected":"select__selected_w2gcg","highlighted":"select__highlighted_w2gcg","checkmarkBeforeContent":"select__checkmarkBeforeContent_w2gcg","checkmarkAfterContent":"select__checkmarkAfterContent_w2gcg","content":"select__content_w2gcg"};
5
+ const styles = {"option":"select__option_au5nm","disabled":"select__disabled_au5nm","checkmarkBefore":"select__checkmarkBefore_au5nm","mobile":"select__mobile_au5nm","checkmarkAfter":"select__checkmarkAfter_au5nm","textContent":"select__textContent_au5nm","selected":"select__selected_au5nm","highlighted":"select__highlighted_au5nm","checkmarkBeforeContent":"select__checkmarkBeforeContent_au5nm","checkmarkAfterContent":"select__checkmarkAfterContent_au5nm","content":"select__content_au5nm"};
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: 4g3b6 */
1
+ /* hash: 87rr0 */
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;
@@ -16,10 +16,12 @@
16
16
 
17
17
  /* Hard up */
18
18
  } :root {
19
- } :root {
20
- --gap-s: 12px;
21
- --gap-m: 16px;
22
- --gap-l: 20px;
19
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */
20
+ --gap-s: 12px; /* deprecated */ /* deprecated */
21
+ --gap-m: 16px; /* deprecated */
22
+ --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 */
23
+
24
+ /* новые значения, используйте их */
23
25
  } :root {
24
26
  } :root {
25
27
  --disabled-cursor: not-allowed;
@@ -43,7 +45,7 @@
43
45
  /* checkmark */
44
46
 
45
47
  /* optgroup */
46
- } .select__option_w2gcg {
48
+ } .select__option_au5nm {
47
49
  font-size: 16px;
48
50
  line-height: 20px;
49
51
  font-weight: 400;
@@ -57,36 +59,36 @@
57
59
  position: relative;
58
60
  cursor: pointer;
59
61
  min-height: var(--size-s-height)
60
- } .select__option_w2gcg:not(.select__disabled_w2gcg):active {
62
+ } .select__option_au5nm:not(.select__disabled_au5nm):active {
61
63
  background: var(--select-option-active-background);
62
64
  color: var(--select-option-active-color);
63
- } .select__option_w2gcg.select__checkmarkBefore_w2gcg {
65
+ } .select__option_au5nm.select__checkmarkBefore_au5nm {
64
66
  padding: 0 0 0 var(--gap-s)
65
- } .select__option_w2gcg.select__checkmarkBefore_w2gcg.select__mobile_w2gcg {
67
+ } .select__option_au5nm.select__checkmarkBefore_au5nm.select__mobile_au5nm {
66
68
  padding-left: var(--gap-m);
67
- } .select__option_w2gcg.select__checkmarkAfter_w2gcg.select__checkmarkAfter_w2gcg {
69
+ } .select__option_au5nm.select__checkmarkAfter_au5nm.select__checkmarkAfter_au5nm {
68
70
  padding: 0 var(--gap-s) 0 0
69
- } .select__option_w2gcg.select__checkmarkAfter_w2gcg.select__checkmarkAfter_w2gcg.select__mobile_w2gcg {
71
+ } .select__option_au5nm.select__checkmarkAfter_au5nm.select__checkmarkAfter_au5nm.select__mobile_au5nm {
70
72
  padding-right: var(--gap-l);
71
- } .select__option_w2gcg.select__textContent_w2gcg {
73
+ } .select__option_au5nm.select__textContent_au5nm {
72
74
  padding: var(--gap-s)
73
- } .select__option_w2gcg.select__textContent_w2gcg.select__mobile_w2gcg {
75
+ } .select__option_au5nm.select__textContent_au5nm.select__mobile_au5nm {
74
76
  padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
75
- } .select__selected_w2gcg {
77
+ } .select__selected_au5nm {
76
78
  background: var(--select-option-selected-background);
77
79
  color: var(--select-option-selected-color);
78
80
  cursor: default;
79
- } .select__highlighted_w2gcg {
81
+ } .select__highlighted_au5nm {
80
82
  background: var(--select-option-hover-background);
81
83
  color: var(--select-option-hover-color);
82
- } .select__disabled_w2gcg {
84
+ } .select__disabled_au5nm {
83
85
  cursor: var(--disabled-cursor);
84
86
  background: var(--select-option-disabled-background);
85
87
  color: var(--select-option-disabled-color);
86
- } .select__checkmarkBeforeContent_w2gcg {
88
+ } .select__checkmarkBeforeContent_au5nm {
87
89
  margin-right: var(--gap-s);
88
- } .select__checkmarkAfterContent_w2gcg {
90
+ } .select__checkmarkAfterContent_au5nm {
89
91
  margin-left: var(--gap-s);
90
- } .select__content_w2gcg {
92
+ } .select__content_au5nm {
91
93
  flex: 1;
92
94
  }
@@ -1,20 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { FC } from "react";
4
- import { BottomSheetProps } from "@alfalab/core-components-bottom-sheet";
5
- import { ModalMobileProps } from "@alfalab/core-components-modal/mobile";
6
- import { ModalContentProps, ModalFooterProps, ModalHeaderProps } from "@alfalab/core-components-modal/shared";
7
- import { PopoverProps } from "@alfalab/core-components-popover";
8
- import { AdditionalMobileProps, BaseSelectProps, BottomSheetSelectMobileProps, ModalSelectMobileProps } from "../../typings";
9
- declare const BaseSelect: React.ForwardRefExoticComponent<BaseSelectProps & AdditionalMobileProps & BottomSheetSelectMobileProps & ModalSelectMobileProps & {
3
+ declare const BaseSelect: React.ForwardRefExoticComponent<import("../../typings").BaseSelectProps & import("../../typings").AdditionalMobileProps & import("../../typings").BottomSheetSelectMobileProps & import("../../typings").ModalSelectMobileProps & {
10
4
  isBottomSheet?: boolean | undefined;
11
- view: 'desktop' | 'mobile';
12
- Popover?: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>> | undefined;
13
- BottomSheet?: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>> | undefined;
14
- ModalMobile?: (React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
15
- Header: FC<ModalHeaderProps>;
16
- Footer: FC<ModalFooterProps>;
17
- Content: FC<ModalContentProps>;
5
+ view: "mobile" | "desktop";
6
+ Popover?: React.ForwardRefExoticComponent<import("@alfalab/core-components-popover").PopoverProps & React.RefAttributes<HTMLDivElement>> | undefined;
7
+ BottomSheet?: React.ForwardRefExoticComponent<import("@alfalab/core-components-bottom-sheet").BottomSheetProps & React.RefAttributes<HTMLDivElement>> | undefined;
8
+ ModalMobile?: (React.ForwardRefExoticComponent<import("./types/component-types").ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
9
+ Header: React.FC<import("@alfalab/core-components-modal/shared").ModalHeaderProps>;
10
+ Footer: React.FC<import("@alfalab/core-components-modal/shared").ModalFooterProps>;
11
+ Content: React.FC<import("./types/component-types").ContentProps>;
18
12
  }) | undefined;
19
13
  } & React.RefAttributes<unknown>>;
20
14
  export { BaseSelect };
@@ -8,12 +8,12 @@ import { fnUtils, getDataTestId } from '@alfalab/core-components-shared/modern';
8
8
  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
-
12
- const styles = {"component":"select__component_e6vg1","popoverInner":"select__popoverInner_e6vg1","optionsListWrapper":"select__optionsListWrapper_e6vg1","optionsListBorder":"select__optionsListBorder_e6vg1","nativeSelect":"select__nativeSelect_e6vg1","block":"select__block_e6vg1","emptySearchPlaceholder":"select__emptySearchPlaceholder_e6vg1","search":"select__search_e6vg1"};
13
- require('./index.css')
14
-
15
- const mobileStyles = {"sheet":"select__sheet_594wa","sheetContent":"select__sheetContent_594wa","modalContent":"select__modalContent_594wa","sheetContainer":"select__sheetContainer_594wa","optionsListWrapper":"select__optionsListWrapper_594wa","optionsList":"select__optionsList_594wa","scrollbar":"select__scrollbar_594wa","search":"select__search_594wa","option":"select__option_594wa","optionGroup":"select__optionGroup_594wa"};
16
- require('./mobile.css')
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-1f55335b.js';
13
+ import { getListModalMobileProps } from './components/list-mobile/helpers/get-list-modal-mobile-props.js';
14
+ import { getListBottomSheetMobileProps } from './components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js';
15
+ import { ListMobile } from './components/list-mobile/list-mobile.js';
16
+ import { m as mobileStyles } from '../../mobile.module-815026ad.js';
17
17
 
18
18
  /* eslint-disable no-nested-ternary */
19
19
  const itemToString = (option) => (option ? option.key : '');
@@ -21,7 +21,9 @@ const isItemDisabled = (option) => Boolean(option?.disabled);
21
21
  const BaseSelect = forwardRef(
22
22
  // TODO: 😭
23
23
  // eslint-disable-next-line complexity
24
- ({ dataTestId, className, fieldClassName, optionGroupClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 48, optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, searchProps = {}, showSearch = false, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, Search = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, view, isBottomSheet = true, footer, swipeable, modalProps, popoverProps, modalFooterProps, modalHeaderProps, bottomSheetProps, Popover, ModalMobile, BottomSheet, limitDynamicOptionGroupSize, }, ref) => {
24
+ (props, ref) => {
25
+ const { dataTestId, className, fieldClassName, optionGroupClassName, optionsListClassName, optionClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, optionsListWidth = 'content', name, id, selected, size = 48, optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, searchProps = {}, showSearch = false, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, Search = () => null, showEmptyOptionsList = false, visibleOptions, view, isBottomSheet = true, modalProps, bottomSheetProps, limitDynamicOptionGroupSize, } = props;
26
+ const shouldSearchBlurRef = useRef(true);
25
27
  const rootRef = useRef(null);
26
28
  const fieldRef = useRef(null);
27
29
  const listRef = useRef(null);
@@ -262,6 +264,14 @@ const BaseSelect = forwardRef(
262
264
  index,
263
265
  item: option,
264
266
  onMouseDown: (event) => event.preventDefault(),
267
+ onClick: () => {
268
+ if (view === 'mobile' || !showSearch || multiple)
269
+ return;
270
+ shouldSearchBlurRef.current = false;
271
+ searchRef.current?.blur();
272
+ shouldSearchBlurRef.current = true;
273
+ fieldRef.current?.focus();
274
+ },
265
275
  }),
266
276
  multiple,
267
277
  index,
@@ -330,6 +340,8 @@ const BaseSelect = forwardRef(
330
340
  searchProps?.componentProps?.onChange?.(event, payload);
331
341
  };
332
342
  const handleBlur = (event) => {
343
+ if (!shouldSearchBlurRef.current)
344
+ return;
333
345
  searchProps.componentProps?.onBlur?.(event);
334
346
  handleFieldBlur(event);
335
347
  };
@@ -366,52 +378,6 @@ const BaseSelect = forwardRef(
366
378
  }), emptyPlaceholder: renderEmptyPlaceholder(), onScroll: onScroll, search: search, multiple: multiple, limitDynamicOptionGroupSize: limitDynamicOptionGroupSize }),
367
379
  view === 'desktop' && React.createElement("div", { className: styles.optionsListBorder })));
368
380
  };
369
- const renderInPopover = () => {
370
- if (!nativeSelect && Popover) {
371
- return (React.createElement(Popover, { ...popoverProps, open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: cn(styles.popoverInner, popperClassName), update: updatePopover, zIndex: zIndexPopover }, renderOptionsList()));
372
- }
373
- return null;
374
- };
375
- const renderInBottomSheet = () => {
376
- if (!nativeSelect && BottomSheet) {
377
- return (React.createElement(BottomSheet, { dataTestId: getDataTestId(dataTestId, 'bottom-sheet'), open: open, className: mobileStyles.sheet, contentClassName: mobileStyles.sheetContent, containerClassName: mobileStyles.sheetContainer, title: label || placeholder, actionButton: footer, stickyHeader: true, hasCloser: true, swipeable: swipeable, initialHeight: showSearch ? 'full' : 'default', ...bottomSheetProps, sheetContainerRef: menuRef, scrollableContainerRef: scrollableContainerRef, onClose: () => {
378
- closeMenu();
379
- bottomSheetProps?.onClose?.();
380
- }, transitionProps: {
381
- ...bottomSheetProps?.transitionProps,
382
- onEntered: handleEntered,
383
- }, bottomAddons: React.createElement(React.Fragment, null,
384
- renderSearch(),
385
- flatOptions.length > 0 && bottomSheetProps?.bottomAddons), containerProps: {
386
- ...bottomSheetProps?.containerProps,
387
- onScroll,
388
- } }, renderOptionsList()));
389
- }
390
- return null;
391
- };
392
- const renderInModalMobile = () => {
393
- if (!nativeSelect && ModalMobile) {
394
- return (React.createElement(ModalMobile, { dataTestId: getDataTestId(dataTestId, 'modal'), open: open, hasCloser: true, ...modalProps, componentRef: menuRef, onClose: (...args) => {
395
- closeMenu();
396
- modalProps?.onClose?.(...args);
397
- }, contentClassName: cn(mobileStyles.sheetContent, modalProps?.contentClassName), ref: mergeRefs([
398
- scrollableContainerRef,
399
- modalProps?.ref,
400
- ]), wrapperProps: {
401
- ...modalProps?.wrapperProps,
402
- onScroll,
403
- }, transitionProps: {
404
- ...modalProps?.transitionProps,
405
- onEntered: handleEntered,
406
- } },
407
- React.createElement(ModalMobile.Header, { hasCloser: true, sticky: true, ...modalHeaderProps, title: undefined, bottomAddons: React.createElement(React.Fragment, null,
408
- renderSearch(),
409
- flatOptions.length > 0 && modalHeaderProps?.bottomAddons) }, modalHeaderProps?.title || label || placeholder),
410
- React.createElement(ModalMobile.Content, { flex: true, className: mobileStyles.modalContent }, renderOptionsList()),
411
- modalFooterProps?.children && React.createElement(ModalMobile.Footer, { ...modalFooterProps })));
412
- }
413
- return null;
414
- };
415
381
  return (React.createElement("div", { ...(disabled && { 'aria-disabled': true }), "aria-expanded": inputProps['aria-expanded'], "aria-haspopup": 'listbox', role: inputProps.role, className: cn(styles.component, { [styles.block]: block }, className), ref: rootRef, onKeyDown: disabled ? undefined : handleFieldKeyDown, tabIndex: -1, "data-test-id": getDataTestId(dataTestId) },
416
382
  nativeSelect && renderNativeSelect(),
417
383
  React.createElement(Field, { selectedMultiple: selectedItems, selected: selectedItems[0], setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, multiple: multiple, open: open, disabled: disabled, size: size, placeholder: placeholder, label: label && React.createElement("span", { ...getLabelProps() }, label), labelView: labelView, Arrow: Arrow && React.createElement(Arrow, { open: open }), error: error, hint: hint, valueRenderer: valueRenderer, className: fieldClassName, innerProps: {
@@ -428,9 +394,10 @@ const BaseSelect = forwardRef(
428
394
  : undefined,
429
395
  }, dataTestId: getDataTestId(dataTestId, 'field'), ...fieldProps }),
430
396
  name && !nativeSelect && renderValue(),
431
- view === 'desktop' && renderInPopover(),
432
- view === 'mobile' && isBottomSheet && renderInBottomSheet(),
433
- view === 'mobile' && !isBottomSheet && renderInModalMobile()));
397
+ view === 'desktop' && !nativeSelect && (React.createElement(ListPopoverDesktop, { ...getListPopoverDesktopProps(props), open: open, fieldRef: fieldRef, renderOptionsList: renderOptionsList })),
398
+ view === 'mobile' && (React.createElement(ListMobile, { baseProps: isBottomSheet
399
+ ? getListBottomSheetMobileProps(props)
400
+ : getListModalMobileProps(props), open: open, menuRef: menuRef, scrollableContainerRef: scrollableContainerRef, flatOptions: flatOptions, renderOptionsList: renderOptionsList, renderSearch: renderSearch, closeMenu: closeMenu, handleEntered: handleEntered }))));
434
401
  });
435
402
 
436
403
  export { BaseSelect };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { ComponentProps } from "../../../types/component-types";
3
+ declare const getListPopoverDesktopProps: (props: ComponentProps) => {
4
+ Popover: import("react").ForwardRefExoticComponent<import("@alfalab/core-components-popover").PopoverProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
5
+ popoverProps: Omit<import("@alfalab/core-components-popover").PopoverProps, "className" | "dataTestId" | "anchorElement" | "position" | "preventFlip" | "open" | "update" | "zIndex"> | undefined;
6
+ popoverPosition: import("@alfalab/core-components-popover").Position;
7
+ preventFlip: boolean;
8
+ popperClassName: string | undefined;
9
+ updatePopover: import("react").MutableRefObject<(() => void) | undefined> | undefined;
10
+ zIndexPopover: number | undefined;
11
+ };
12
+ export { getListPopoverDesktopProps };
@@ -0,0 +1,15 @@
1
+ // отделяем необходимые пропсы для передачи в компонент
2
+ const getListPopoverDesktopProps = (props) => {
3
+ const { Popover, popoverProps, popoverPosition = 'bottom-start', preventFlip = true, popperClassName, updatePopover, zIndexPopover, } = props;
4
+ return {
5
+ Popover,
6
+ popoverProps,
7
+ popoverPosition,
8
+ preventFlip,
9
+ popperClassName,
10
+ updatePopover,
11
+ zIndexPopover,
12
+ };
13
+ };
14
+
15
+ export { getListPopoverDesktopProps };
@@ -0,0 +1,3 @@
1
+ import 'react';
2
+ import 'classnames';
3
+ export { L as ListPopoverDesktop } from '../../../../list-popover-desktop-1f55335b.js';
@@ -0,0 +1,3 @@
1
+ import { getListPopoverDesktopProps } from "../helpers/get-list-popover-desktop-props";
2
+ type ListPopoverDesktopRestProps = ReturnType<typeof getListPopoverDesktopProps>;
3
+ export { ListPopoverDesktopRestProps };
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { ComponentProps } from "../../../types/component-types";
3
+ declare const getListBottomSheetMobileProps: (props: ComponentProps) => {
4
+ BottomSheet: import("react").ForwardRefExoticComponent<import("@alfalab/core-components-bottom-sheet").BottomSheetProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
5
+ dataTestId: string | undefined;
6
+ label: import("react").ReactNode;
7
+ placeholder: string | undefined;
8
+ footer: import("react").ReactNode;
9
+ swipeable: boolean | undefined;
10
+ showSearch: boolean | undefined;
11
+ bottomSheetProps: Partial<import("@alfalab/core-components-bottom-sheet").BottomSheetProps> | undefined;
12
+ isBottomSheet: boolean;
13
+ nativeSelect: boolean;
14
+ onScroll: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
15
+ };
16
+ export { getListBottomSheetMobileProps };
@@ -0,0 +1,19 @@
1
+ // отделяем необходимые пропсы для передачи в компонент
2
+ const getListBottomSheetMobileProps = (props) => {
3
+ const { BottomSheet, dataTestId, label, placeholder, footer, swipeable, showSearch, bottomSheetProps, isBottomSheet = true, nativeSelect = false, onScroll, } = props;
4
+ return {
5
+ BottomSheet,
6
+ dataTestId,
7
+ label,
8
+ placeholder,
9
+ footer,
10
+ swipeable,
11
+ showSearch,
12
+ bottomSheetProps,
13
+ isBottomSheet,
14
+ nativeSelect,
15
+ onScroll,
16
+ };
17
+ };
18
+
19
+ export { getListBottomSheetMobileProps };
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { ComponentProps } from "../../../types/component-types";
3
+ declare const getListModalMobileProps: (props: ComponentProps) => {
4
+ ModalMobile: (import("react").ForwardRefExoticComponent<import("../../../types/component-types").ModalMobileProps & import("react").RefAttributes<HTMLDivElement>> & {
5
+ Header: import("react").FC<import("@alfalab/core-components-modal/shared").ModalHeaderProps>;
6
+ Footer: import("react").FC<import("@alfalab/core-components-modal/shared").ModalFooterProps>;
7
+ Content: import("react").FC<import("../../../types/component-types").ContentProps>;
8
+ }) | undefined;
9
+ dataTestId: string | undefined;
10
+ modalProps: Partial<import("@alfalab/core-components-base-modal").BaseModalProps & {
11
+ size?: "s" | "m" | "l" | "xl" | 500 | "fullscreen" | 600 | 800 | 1140 | undefined;
12
+ fullscreen?: boolean | undefined;
13
+ fixedPosition?: boolean | undefined;
14
+ hasCloser?: boolean | undefined;
15
+ iOSLock?: boolean | undefined;
16
+ } & {
17
+ breakpoint?: number | undefined;
18
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
19
+ } & import("react").RefAttributes<HTMLDivElement>> | undefined;
20
+ modalHeaderProps: Partial<import("@alfalab/core-components-modal/shared").ModalHeaderProps> | undefined;
21
+ modalFooterProps: Partial<import("@alfalab/core-components-modal/shared").ModalFooterProps> | undefined;
22
+ label: import("react").ReactNode;
23
+ placeholder: string | undefined;
24
+ isBottomSheet: boolean;
25
+ nativeSelect: boolean;
26
+ onScroll: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
27
+ };
28
+ export { getListModalMobileProps };