@alfalab/core-components-select 17.21.5 → 17.22.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 (197) hide show
  1. package/components/arrow/Component.js +1 -1
  2. package/components/arrow/index.css +5 -5
  3. package/components/base-checkmark/Component.js +1 -1
  4. package/components/base-checkmark/index.css +6 -6
  5. package/components/base-option/Component.js +1 -1
  6. package/components/base-option/index.css +17 -17
  7. package/components/base-select/Component.js +2 -2
  8. package/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  9. package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  10. package/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  11. package/components/base-select/index.css +12 -12
  12. package/components/base-select/mobile.css +12 -12
  13. package/components/checkmark/Component.js +1 -1
  14. package/components/checkmark/index.css +10 -10
  15. package/components/checkmark-mobile/Component.js +1 -1
  16. package/components/checkmark-mobile/index.css +6 -6
  17. package/components/clear-button/Component.js +1 -1
  18. package/components/clear-button/index.css +5 -5
  19. package/components/field/Component.d.ts +1 -1
  20. package/components/field/Component.js +3 -3
  21. package/components/field/index.css +14 -14
  22. package/components/footer/Component.js +1 -1
  23. package/components/footer/index.css +5 -5
  24. package/components/optgroup/Component.js +1 -1
  25. package/components/optgroup/index.css +5 -5
  26. package/components/option/desktop/Component.js +1 -1
  27. package/components/option/desktop/index.css +21 -21
  28. package/components/option/mobile/Component.js +1 -1
  29. package/components/option/mobile/index.css +18 -18
  30. package/components/options-list/Component.js +1 -1
  31. package/components/options-list/index.css +10 -10
  32. package/components/search/Component.js +1 -1
  33. package/components/search/index.css +2 -2
  34. package/components/virtual-options-list/Component.js +1 -1
  35. package/components/virtual-options-list/index.css +14 -14
  36. package/consts.d.ts +2 -1
  37. package/consts.js +2 -0
  38. package/cssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +1 -1
  39. package/cssm/components/field/Component.d.ts +1 -1
  40. package/cssm/components/field/Component.js +2 -2
  41. package/cssm/consts.d.ts +2 -1
  42. package/cssm/consts.js +2 -0
  43. package/cssm/typings.d.ts +9 -0
  44. package/cssm/utils.d.ts +2 -1
  45. package/cssm/utils.js +3 -2
  46. package/esm/components/arrow/Component.js +1 -1
  47. package/esm/components/arrow/index.css +5 -5
  48. package/esm/components/base-checkmark/Component.js +1 -1
  49. package/esm/components/base-checkmark/index.css +6 -6
  50. package/esm/components/base-option/Component.js +1 -1
  51. package/esm/components/base-option/index.css +17 -17
  52. package/esm/components/base-select/Component.js +2 -2
  53. package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  54. package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  55. package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  56. package/esm/components/base-select/index.css +12 -12
  57. package/esm/components/base-select/mobile.css +12 -12
  58. package/esm/components/checkmark/Component.js +1 -1
  59. package/esm/components/checkmark/index.css +10 -10
  60. package/esm/components/checkmark-mobile/Component.js +1 -1
  61. package/esm/components/checkmark-mobile/index.css +6 -6
  62. package/esm/components/clear-button/Component.js +1 -1
  63. package/esm/components/clear-button/index.css +5 -5
  64. package/esm/components/field/Component.d.ts +1 -1
  65. package/esm/components/field/Component.js +3 -3
  66. package/esm/components/field/index.css +14 -14
  67. package/esm/components/footer/Component.js +1 -1
  68. package/esm/components/footer/index.css +5 -5
  69. package/esm/components/optgroup/Component.js +1 -1
  70. package/esm/components/optgroup/index.css +5 -5
  71. package/esm/components/option/desktop/Component.js +1 -1
  72. package/esm/components/option/desktop/index.css +21 -21
  73. package/esm/components/option/mobile/Component.js +1 -1
  74. package/esm/components/option/mobile/index.css +18 -18
  75. package/esm/components/options-list/Component.js +1 -1
  76. package/esm/components/options-list/index.css +10 -10
  77. package/esm/components/search/Component.js +1 -1
  78. package/esm/components/search/index.css +2 -2
  79. package/esm/components/virtual-options-list/Component.js +1 -1
  80. package/esm/components/virtual-options-list/index.css +14 -14
  81. package/esm/consts.d.ts +2 -1
  82. package/esm/consts.js +2 -1
  83. package/esm/{list-popover-desktop-29a8ef3e.js → list-popover-desktop-ce7230ff.js} +1 -1
  84. package/esm/mobile/Component.mobile.js +1 -1
  85. package/esm/mobile.module-4cb6e76e.js +4 -0
  86. package/esm/presets/index.js +1 -1
  87. package/esm/presets/useSelectWithApply/hook.js +1 -1
  88. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  89. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  90. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +4 -4
  91. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  92. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  93. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  94. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  95. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  96. package/esm/presets/useSelectWithLoading/index.css +2 -2
  97. package/esm/shared/index.js +1 -1
  98. package/esm/typings.d.ts +9 -0
  99. package/esm/utils.d.ts +2 -1
  100. package/esm/utils.js +3 -2
  101. package/{list-popover-desktop-1eb72557.js → list-popover-desktop-c264abbb.js} +1 -1
  102. package/mobile/Component.mobile.js +1 -1
  103. package/mobile.module-16f2c15a.js +6 -0
  104. package/modern/components/arrow/Component.js +1 -1
  105. package/modern/components/arrow/index.css +5 -5
  106. package/modern/components/base-checkmark/Component.js +1 -1
  107. package/modern/components/base-checkmark/index.css +6 -6
  108. package/modern/components/base-option/Component.js +1 -1
  109. package/modern/components/base-option/index.css +17 -17
  110. package/modern/components/base-select/Component.js +2 -2
  111. package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  112. package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  113. package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  114. package/modern/components/base-select/index.css +12 -12
  115. package/modern/components/base-select/mobile.css +12 -12
  116. package/modern/components/checkmark/Component.js +1 -1
  117. package/modern/components/checkmark/index.css +10 -10
  118. package/modern/components/checkmark-mobile/Component.js +1 -1
  119. package/modern/components/checkmark-mobile/index.css +6 -6
  120. package/modern/components/clear-button/Component.js +1 -1
  121. package/modern/components/clear-button/index.css +5 -5
  122. package/modern/components/field/Component.d.ts +1 -1
  123. package/modern/components/field/Component.js +3 -3
  124. package/modern/components/field/index.css +14 -14
  125. package/modern/components/footer/Component.js +1 -1
  126. package/modern/components/footer/index.css +5 -5
  127. package/modern/components/optgroup/Component.js +1 -1
  128. package/modern/components/optgroup/index.css +5 -5
  129. package/modern/components/option/desktop/Component.js +1 -1
  130. package/modern/components/option/desktop/index.css +21 -21
  131. package/modern/components/option/mobile/Component.js +1 -1
  132. package/modern/components/option/mobile/index.css +18 -18
  133. package/modern/components/options-list/Component.js +1 -1
  134. package/modern/components/options-list/index.css +10 -10
  135. package/modern/components/search/Component.js +1 -1
  136. package/modern/components/search/index.css +2 -2
  137. package/modern/components/virtual-options-list/Component.js +1 -1
  138. package/modern/components/virtual-options-list/index.css +14 -14
  139. package/modern/consts.d.ts +2 -1
  140. package/modern/consts.js +2 -1
  141. package/modern/{list-popover-desktop-7a9f6f97.js → list-popover-desktop-ef23ef00.js} +1 -1
  142. package/modern/mobile/Component.mobile.js +1 -1
  143. package/modern/mobile.module-4725bcd2.js +4 -0
  144. package/modern/presets/index.js +1 -1
  145. package/modern/presets/useSelectWithApply/hook.js +1 -1
  146. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  147. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  148. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +4 -4
  149. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  150. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  151. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  152. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  153. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  154. package/modern/presets/useSelectWithLoading/index.css +2 -2
  155. package/modern/shared/index.js +1 -1
  156. package/modern/typings.d.ts +9 -0
  157. package/modern/utils.d.ts +2 -1
  158. package/modern/utils.js +3 -2
  159. package/moderncssm/components/field/Component.d.ts +1 -1
  160. package/moderncssm/components/field/Component.js +2 -2
  161. package/moderncssm/consts.d.ts +2 -1
  162. package/moderncssm/consts.js +2 -1
  163. package/moderncssm/typings.d.ts +9 -0
  164. package/moderncssm/utils.d.ts +2 -1
  165. package/moderncssm/utils.js +3 -2
  166. package/package.json +4 -4
  167. package/presets/index.js +1 -1
  168. package/presets/useSelectWithApply/hook.js +1 -1
  169. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  170. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  171. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +4 -4
  172. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  173. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  174. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  175. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  176. package/presets/useSelectWithLoading/hook.js +1 -1
  177. package/presets/useSelectWithLoading/index.css +2 -2
  178. package/shared/index.js +1 -1
  179. package/src/components/field/Component.tsx +2 -1
  180. package/src/consts.ts +2 -0
  181. package/src/typings.ts +11 -0
  182. package/src/utils.ts +4 -1
  183. package/typings.d.ts +9 -0
  184. package/utils.d.ts +2 -1
  185. package/utils.js +3 -2
  186. package/esm/mobile.module-b5127fe2.js +0 -4
  187. package/mobile.module-489259bb.js +0 -6
  188. package/modern/mobile.module-7fdca573.js +0 -4
  189. /package/esm/{hook-43e5c3e8.d.ts → hook-032fca92.d.ts} +0 -0
  190. /package/esm/{hook-43e5c3e8.js → hook-032fca92.js} +0 -0
  191. /package/esm/{list-popover-desktop-29a8ef3e.d.ts → list-popover-desktop-ce7230ff.d.ts} +0 -0
  192. /package/{hook-71fac561.d.ts → hook-8e994d7b.d.ts} +0 -0
  193. /package/{hook-71fac561.js → hook-8e994d7b.js} +0 -0
  194. /package/{list-popover-desktop-1eb72557.d.ts → list-popover-desktop-c264abbb.d.ts} +0 -0
  195. /package/modern/{hook-75b8be77.d.ts → hook-827e015d.d.ts} +0 -0
  196. /package/modern/{hook-75b8be77.js → hook-827e015d.js} +0 -0
  197. /package/modern/{list-popover-desktop-7a9f6f97.d.ts → list-popover-desktop-ef23ef00.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: 5v5dc */
1
+ /* hash: budse */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,10 +27,10 @@
27
27
  --gap-16: var(--gap-m);
28
28
  } :root {
29
29
  } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
30
- } /* сбрасывает синюю подсветку при нажатии */ .select__desktop_1p34v {
30
+ } /* сбрасывает синюю подсветку при нажатии */ .select__desktop_1bx7t {
31
31
  padding: var(--gap-12)
32
- } .select__desktop_1p34v.select__size-72_1p34v {
32
+ } .select__desktop_1bx7t.select__size-72_1bx7t {
33
33
  padding-left: var(--gap-16);
34
- } .select__mobile_1p34v {
34
+ } .select__mobile_1bx7t {
35
35
  padding: var(--gap-12) var(--gap-8);
36
36
  }
@@ -1 +1 @@
1
- export * from "../../../hook-75b8be77";
1
+ export * from "../../../hook-827e015d";
@@ -1 +1 @@
1
- export { O as OptionsListWithApply } from '../../../hook-75b8be77.js';
1
+ export { O as OptionsListWithApply } from '../../../hook-827e015d.js';
@@ -7,7 +7,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
7
7
  import '@alfalab/icons-glyph/CheckmarkMIcon';
8
8
  import { OptionResponsive } from '../../components/option/Component.responsive.js';
9
9
 
10
- const styles = {"skeleton":"select__skeleton_b3wqv"};
10
+ const styles = {"skeleton":"select__skeleton_yhmkq"};
11
11
  require('./index.css')
12
12
 
13
13
  function useSelectWithLoading({ loading = false, visibleOptions = 6, Option = OptionResponsive, }) {
@@ -1,5 +1,5 @@
1
- /* hash: 19mib */
2
- .select__skeleton_b3wqv {
1
+ /* hash: 1k491 */
2
+ .select__skeleton_yhmkq {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -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-75b8be77.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-827e015d.js';
4
4
  export { defaultAccessor, defaultFilterFn, defaultGroupAccessor, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVirtualVisibleOptions, useVisibleOptions } from '../utils.js';
5
5
  export { OptionDesktop } from '../components/option/desktop/Component.js';
6
6
  export { OptionMobile } from '../components/option/mobile/Component.js';
@@ -188,7 +188,12 @@ type BaseSelectProps = {
188
188
  valueRenderer?: ({ selected, selectedMultiple, }: {
189
189
  selected?: OptionShape;
190
190
  selectedMultiple: OptionShape[];
191
+ valueSeparator?: string;
191
192
  }) => ReactNode;
193
+ /**
194
+ * Кастомный разделитель выбранных пунктов (Работает когда не прокинут valueRenderer)
195
+ */
196
+ valueSeparator?: string;
192
197
  /**
193
198
  * Компонент стрелки
194
199
  */
@@ -362,6 +367,10 @@ type FieldProps = {
362
367
  * Кастомный рендер выбранного пункта
363
368
  */
364
369
  valueRenderer?: BaseSelectProps['valueRenderer'];
370
+ /**
371
+ * Кастомный разделитель выбранных пунктов
372
+ */
373
+ valueSeparator?: BaseSelectProps['valueSeparator'];
365
374
  /**
366
375
  * Внутренние свойства, которые должны быть установлены компоненту.
367
376
  */
package/modern/utils.d.ts CHANGED
@@ -2,9 +2,10 @@ import { ReactNode, RefObject } from 'react';
2
2
  import { BaseSelectProps, GroupShape, OptionShape, OptionsListProps } from "./typings";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
- declare const joinOptions: ({ selected, selectedMultiple, }: {
5
+ declare const joinOptions: ({ selected, selectedMultiple, valueSeparator, }: {
6
6
  selected?: OptionShape | undefined;
7
7
  selectedMultiple?: OptionShape[] | undefined;
8
+ valueSeparator?: string | undefined;
8
9
  }) => ReactNode[] | null;
9
10
  declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected'], filterFn?: (option: OptionShape | GroupShape) => boolean, filterGroup?: boolean): {
10
11
  filteredOptions: (OptionShape | GroupShape)[];
package/modern/utils.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { isValidElement, cloneElement, useEffect, useState, useRef } from 'react';
2
2
  import { useIsMounted, fnUtils, getDataTestId } from '@alfalab/core-components-shared/modern';
3
+ import { DEFAULT_SEPARATOR } from './consts.js';
3
4
 
4
5
  const isGroup = (item) => Object.prototype.hasOwnProperty.call(item, 'options');
5
6
  const isOptionShape = (item) => !!item && Object.prototype.hasOwnProperty.call(item, 'key');
6
- const joinOptions = ({ selected, selectedMultiple, }) => {
7
+ const joinOptions = ({ selected, selectedMultiple, valueSeparator = DEFAULT_SEPARATOR, }) => {
7
8
  const options = selectedMultiple || (selected ? [selected] : []);
8
9
  if (!options.length)
9
10
  return null;
@@ -15,7 +16,7 @@ const joinOptions = ({ selected, selectedMultiple, }) => {
15
16
  acc.push(option.content);
16
17
  }
17
18
  if (index < options.length - 1)
18
- acc.push(', ');
19
+ acc.push(valueSeparator);
19
20
  return acc;
20
21
  }, []);
21
22
  };
@@ -9,5 +9,5 @@ type FieldProps = {
9
9
  */
10
10
  FormControlComponent?: ElementType;
11
11
  };
12
- declare const Field: ({ size, open, multiple, error, hint, disabled, label, labelView, placeholder, selectedMultiple, selected, rightAddons, valueRenderer, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, FormControlComponent, clear, onClear, ...restProps }: BaseFieldProps & FormControlProps & FieldProps) => React.JSX.Element;
12
+ declare const Field: ({ size, open, multiple, error, hint, disabled, label, labelView, placeholder, selectedMultiple, selected, rightAddons, valueRenderer, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, FormControlComponent, clear, onClear, valueSeparator, ...restProps }: BaseFieldProps & FormControlProps & FieldProps) => React.JSX.Element;
13
13
  export { Field };
@@ -6,13 +6,13 @@ import { joinOptions } from '../../utils.js';
6
6
  import { ClearButton } from '../clear-button/Component.js';
7
7
  import styles from './index.module.css';
8
8
 
9
- const Field = ({ size = 56, open, multiple, error, hint, disabled, label, labelView = 'inner', placeholder, selectedMultiple = [], selected, rightAddons, valueRenderer = joinOptions, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, FormControlComponent, clear, onClear, ...restProps }) => {
9
+ const Field = ({ size = 56, open, multiple, error, hint, disabled, label, labelView = 'inner', placeholder, selectedMultiple = [], selected, rightAddons, valueRenderer = joinOptions, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, FormControlComponent, clear, onClear, valueSeparator, ...restProps }) => {
10
10
  const [focused, setFocused] = useState(false);
11
11
  const wrapperRef = useRef(null);
12
12
  const [focusVisible] = useFocus(wrapperRef, 'keyboard');
13
13
  const handleFocus = useCallback(() => setFocused(true), []);
14
14
  const handleBlur = useCallback(() => setFocused(false), []);
15
- const value = valueRenderer({ selected, selectedMultiple });
15
+ const value = valueRenderer({ selected, selectedMultiple, valueSeparator });
16
16
  const filled = Boolean(value);
17
17
  const showLabel = !!label || labelView === 'outer';
18
18
  const showPlaceholder = !!placeholder && !filled && (open || !label || labelView === 'outer');
@@ -10,4 +10,5 @@ declare const SIZE_TO_CLASSNAME_MAP: {
10
10
  64: string;
11
11
  72: string;
12
12
  };
13
- export { DEFAULT_VISIBLE_OPTIONS, SIZE_TO_CLASSNAME_MAP };
13
+ declare const DEFAULT_SEPARATOR = ", ";
14
+ export { DEFAULT_VISIBLE_OPTIONS, SIZE_TO_CLASSNAME_MAP, DEFAULT_SEPARATOR };
@@ -10,5 +10,6 @@ const SIZE_TO_CLASSNAME_MAP = {
10
10
  64: 'size-64',
11
11
  72: 'size-72',
12
12
  };
13
+ const DEFAULT_SEPARATOR = ', ';
13
14
 
14
- export { DEFAULT_VISIBLE_OPTIONS, SIZE_TO_CLASSNAME_MAP };
15
+ export { DEFAULT_SEPARATOR, DEFAULT_VISIBLE_OPTIONS, SIZE_TO_CLASSNAME_MAP };
@@ -188,7 +188,12 @@ type BaseSelectProps = {
188
188
  valueRenderer?: ({ selected, selectedMultiple, }: {
189
189
  selected?: OptionShape;
190
190
  selectedMultiple: OptionShape[];
191
+ valueSeparator?: string;
191
192
  }) => ReactNode;
193
+ /**
194
+ * Кастомный разделитель выбранных пунктов (Работает когда не прокинут valueRenderer)
195
+ */
196
+ valueSeparator?: string;
192
197
  /**
193
198
  * Компонент стрелки
194
199
  */
@@ -362,6 +367,10 @@ type FieldProps = {
362
367
  * Кастомный рендер выбранного пункта
363
368
  */
364
369
  valueRenderer?: BaseSelectProps['valueRenderer'];
370
+ /**
371
+ * Кастомный разделитель выбранных пунктов
372
+ */
373
+ valueSeparator?: BaseSelectProps['valueSeparator'];
365
374
  /**
366
375
  * Внутренние свойства, которые должны быть установлены компоненту.
367
376
  */
@@ -2,9 +2,10 @@ import { ReactNode, RefObject } from 'react';
2
2
  import { BaseSelectProps, GroupShape, OptionShape, OptionsListProps } from "./typings";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
- declare const joinOptions: ({ selected, selectedMultiple, }: {
5
+ declare const joinOptions: ({ selected, selectedMultiple, valueSeparator, }: {
6
6
  selected?: OptionShape | undefined;
7
7
  selectedMultiple?: OptionShape[] | undefined;
8
+ valueSeparator?: string | undefined;
8
9
  }) => ReactNode[] | null;
9
10
  declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected'], filterFn?: (option: OptionShape | GroupShape) => boolean, filterGroup?: boolean): {
10
11
  filteredOptions: (OptionShape | GroupShape)[];
@@ -1,9 +1,10 @@
1
1
  import { isValidElement, cloneElement, useEffect, useState, useRef } from 'react';
2
2
  import { useIsMounted, fnUtils, getDataTestId } from '@alfalab/core-components-shared/moderncssm';
3
+ import { DEFAULT_SEPARATOR } from './consts.js';
3
4
 
4
5
  const isGroup = (item) => Object.prototype.hasOwnProperty.call(item, 'options');
5
6
  const isOptionShape = (item) => !!item && Object.prototype.hasOwnProperty.call(item, 'key');
6
- const joinOptions = ({ selected, selectedMultiple, }) => {
7
+ const joinOptions = ({ selected, selectedMultiple, valueSeparator = DEFAULT_SEPARATOR, }) => {
7
8
  const options = selectedMultiple || (selected ? [selected] : []);
8
9
  if (!options.length)
9
10
  return null;
@@ -15,7 +16,7 @@ const joinOptions = ({ selected, selectedMultiple, }) => {
15
16
  acc.push(option.content);
16
17
  }
17
18
  if (index < options.length - 1)
18
- acc.push(', ');
19
+ acc.push(valueSeparator);
19
20
  return acc;
20
21
  }, []);
21
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-select",
3
- "version": "17.21.5",
3
+ "version": "17.22.0",
4
4
  "description": "Select component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -20,10 +20,10 @@
20
20
  "@alfalab/core-components-base-modal": "^5.9.4",
21
21
  "@alfalab/core-components-bottom-sheet": "^6.18.14",
22
22
  "@alfalab/core-components-button": "^11.11.10",
23
- "@alfalab/core-components-checkbox": "^4.9.4",
23
+ "@alfalab/core-components-checkbox": "^4.9.5",
24
24
  "@alfalab/core-components-form-control": "^12.8.6",
25
25
  "@alfalab/core-components-input": "^15.6.2",
26
- "@alfalab/core-components-modal": "^9.9.19",
26
+ "@alfalab/core-components-modal": "^9.9.20",
27
27
  "@alfalab/core-components-mq": "^4.4.1",
28
28
  "@alfalab/core-components-popover": "^6.3.11",
29
29
  "@alfalab/core-components-scrollbar": "^3.4.0",
@@ -42,5 +42,5 @@
42
42
  "tslib": "^2.4.0"
43
43
  },
44
44
  "themesVersion": "13.7.4",
45
- "varsVersion": "9.20.1"
45
+ "varsVersion": "9.21.0"
46
46
  }
package/presets/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
6
6
  var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
7
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-71fac561.js');
7
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-8e994d7b.js');
8
8
 
9
9
 
10
10
 
@@ -6,7 +6,7 @@ require('tslib');
6
6
  require('react');
7
7
  require('react-fast-compare');
8
8
  require('../../utils.js');
9
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-71fac561.js');
9
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-8e994d7b.js');
10
10
 
11
11
 
12
12
 
@@ -6,7 +6,7 @@ require('tslib');
6
6
  require('react');
7
7
  require('../../../components/options-list/Component.js');
8
8
  require('../../../consts.js');
9
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-71fac561.js');
9
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-8e994d7b.js');
10
10
  require('./footer/Component.js');
11
11
  require('./header/Component.js');
12
12
 
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"footer":"select__footer_1996f","size-72":"select__size-72_1996f","button":"select__button_1996f"};
16
+ var styles = {"footer":"select__footer_w39cl","size-72":"select__size-72_w39cl","button":"select__button_w39cl"};
17
17
  require('./index.css')
18
18
 
19
19
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 15t5e */
1
+ /* hash: 1bsdt */
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-base-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -30,12 +30,12 @@
30
30
  } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
31
31
  } /* сбрасывает синюю подсветку при нажатии */ :root {
32
32
  --select-option-list-footer-button-gap: var(--gap-8);
33
- } .select__footer_1996f {
33
+ } .select__footer_w39cl {
34
34
  background-color: var(--color-light-base-bg-primary);
35
35
  padding: var(--gap-12);
36
36
  outline: none
37
- } .select__footer_1996f.select__size-72_1996f {
37
+ } .select__footer_w39cl.select__size-72_w39cl {
38
38
  padding: var(--gap-12) var(--gap-16);
39
- } .select__footer_1996f > .select__button_1996f + .select__button_1996f {
39
+ } .select__footer_w39cl > .select__button_w39cl + .select__button_w39cl {
40
40
  margin-left: var(--select-option-list-footer-button-gap);
41
41
  }
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
12
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
14
 
15
- var styles = {"desktop":"select__desktop_1p34v","size-72":"select__size-72_1p34v","mobile":"select__mobile_1p34v"};
15
+ var styles = {"desktop":"select__desktop_1bx7t","size-72":"select__size-72_1bx7t","mobile":"select__mobile_1bx7t"};
16
16
  require('./index.css')
17
17
 
18
18
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 5v5dc */
1
+ /* hash: budse */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,10 +27,10 @@
27
27
  --gap-16: var(--gap-m);
28
28
  } :root {
29
29
  } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
30
- } /* сбрасывает синюю подсветку при нажатии */ .select__desktop_1p34v {
30
+ } /* сбрасывает синюю подсветку при нажатии */ .select__desktop_1bx7t {
31
31
  padding: var(--gap-12)
32
- } .select__desktop_1p34v.select__size-72_1p34v {
32
+ } .select__desktop_1bx7t.select__size-72_1bx7t {
33
33
  padding-left: var(--gap-16);
34
- } .select__mobile_1p34v {
34
+ } .select__mobile_1bx7t {
35
35
  padding: var(--gap-12) var(--gap-8);
36
36
  }
@@ -1 +1 @@
1
- export * from "../../../hook-71fac561";
1
+ export * from "../../../hook-8e994d7b";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-71fac561.js');
5
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-8e994d7b.js');
6
6
 
7
7
 
8
8
 
@@ -16,7 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
16
16
 
17
17
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
 
19
- var styles = {"skeleton":"select__skeleton_b3wqv"};
19
+ var styles = {"skeleton":"select__skeleton_yhmkq"};
20
20
  require('./index.css')
21
21
 
22
22
  function useSelectWithLoading(_a) {
@@ -1,5 +1,5 @@
1
- /* hash: 19mib */
2
- .select__skeleton_b3wqv {
1
+ /* hash: 1k491 */
2
+ .select__skeleton_yhmkq {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
package/shared/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var presets_useSelectWithLoading_hook = require('../presets/useSelectWithLoading/hook.js');
6
6
  var presets_useLazyLoading_hook = require('../presets/useLazyLoading/hook.js');
7
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-71fac561.js');
7
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-8e994d7b.js');
8
8
  var utils = require('../utils.js');
9
9
  var components_option_desktop_Component = require('../components/option/desktop/Component.js');
10
10
  var components_option_mobile_Component = require('../components/option/mobile/Component.js');
@@ -41,6 +41,7 @@ export const Field = ({
41
41
  FormControlComponent,
42
42
  clear,
43
43
  onClear,
44
+ valueSeparator,
44
45
  ...restProps
45
46
  }: BaseFieldProps & FormControlProps & FieldProps) => {
46
47
  const [focused, setFocused] = useState(false);
@@ -52,7 +53,7 @@ export const Field = ({
52
53
  const handleFocus = useCallback(() => setFocused(true), []);
53
54
  const handleBlur = useCallback(() => setFocused(false), []);
54
55
 
55
- const value = valueRenderer({ selected, selectedMultiple });
56
+ const value = valueRenderer({ selected, selectedMultiple, valueSeparator });
56
57
 
57
58
  const filled = Boolean(value);
58
59
  const showLabel = !!label || labelView === 'outer';
package/src/consts.ts CHANGED
@@ -11,3 +11,5 @@ export const SIZE_TO_CLASSNAME_MAP = {
11
11
  64: 'size-64',
12
12
  72: 'size-72',
13
13
  };
14
+
15
+ export const DEFAULT_SEPARATOR = ', ';
package/src/typings.ts CHANGED
@@ -246,8 +246,14 @@ export type BaseSelectProps = {
246
246
  }: {
247
247
  selected?: OptionShape;
248
248
  selectedMultiple: OptionShape[];
249
+ valueSeparator?: string;
249
250
  }) => ReactNode;
250
251
 
252
+ /**
253
+ * Кастомный разделитель выбранных пунктов (Работает когда не прокинут valueRenderer)
254
+ */
255
+ valueSeparator?: string;
256
+
251
257
  /**
252
258
  * Компонент стрелки
253
259
  */
@@ -469,6 +475,11 @@ export type FieldProps = {
469
475
  */
470
476
  valueRenderer?: BaseSelectProps['valueRenderer'];
471
477
 
478
+ /**
479
+ * Кастомный разделитель выбранных пунктов
480
+ */
481
+ valueSeparator?: BaseSelectProps['valueSeparator'];
482
+
472
483
  /**
473
484
  * Внутренние свойства, которые должны быть установлены компоненту.
474
485
  */
package/src/utils.ts CHANGED
@@ -10,6 +10,7 @@ import {
10
10
 
11
11
  import { fnUtils, getDataTestId, useIsMounted } from '@alfalab/core-components-shared';
12
12
 
13
+ import { DEFAULT_SEPARATOR } from './consts';
13
14
  import { BaseSelectProps, GroupShape, OptionShape, OptionsListProps } from './typings';
14
15
 
15
16
  export const isGroup = (item: OptionShape | GroupShape): item is GroupShape =>
@@ -21,9 +22,11 @@ export const isOptionShape = (item: OptionShape | string | null): item is Option
21
22
  export const joinOptions = ({
22
23
  selected,
23
24
  selectedMultiple,
25
+ valueSeparator = DEFAULT_SEPARATOR,
24
26
  }: {
25
27
  selected?: OptionShape;
26
28
  selectedMultiple?: OptionShape[];
29
+ valueSeparator?: string;
27
30
  }) => {
28
31
  const options = selectedMultiple || (selected ? [selected] : []);
29
32
 
@@ -36,7 +39,7 @@ export const joinOptions = ({
36
39
  acc.push(option.content);
37
40
  }
38
41
 
39
- if (index < options.length - 1) acc.push(', ');
42
+ if (index < options.length - 1) acc.push(valueSeparator);
40
43
 
41
44
  return acc;
42
45
  }, []);
package/typings.d.ts CHANGED
@@ -188,7 +188,12 @@ type BaseSelectProps = {
188
188
  valueRenderer?: ({ selected, selectedMultiple, }: {
189
189
  selected?: OptionShape;
190
190
  selectedMultiple: OptionShape[];
191
+ valueSeparator?: string;
191
192
  }) => ReactNode;
193
+ /**
194
+ * Кастомный разделитель выбранных пунктов (Работает когда не прокинут valueRenderer)
195
+ */
196
+ valueSeparator?: string;
192
197
  /**
193
198
  * Компонент стрелки
194
199
  */
@@ -362,6 +367,10 @@ type FieldProps = {
362
367
  * Кастомный рендер выбранного пункта
363
368
  */
364
369
  valueRenderer?: BaseSelectProps['valueRenderer'];
370
+ /**
371
+ * Кастомный разделитель выбранных пунктов
372
+ */
373
+ valueSeparator?: BaseSelectProps['valueSeparator'];
365
374
  /**
366
375
  * Внутренние свойства, которые должны быть установлены компоненту.
367
376
  */