@alfalab/core-components-select 17.1.2 → 17.2.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 (247) hide show
  1. package/Component.responsive.js +0 -41
  2. package/components/arrow/Component.js +1 -1
  3. package/components/arrow/index.css +3 -3
  4. package/components/arrow/index.js +0 -3
  5. package/components/base-checkmark/Component.js +1 -1
  6. package/components/base-checkmark/index.css +4 -4
  7. package/components/base-checkmark/index.js +0 -4
  8. package/components/base-option/Component.js +1 -3
  9. package/components/base-option/index.css +13 -13
  10. package/components/base-option/index.js +0 -6
  11. package/components/base-select/Component.js +3 -3
  12. package/components/base-select/index.css +11 -11
  13. package/components/base-select/index.js +0 -11
  14. package/components/base-select/mobile.css +12 -12
  15. package/components/checkmark/Component.js +1 -1
  16. package/components/checkmark/index.css +10 -10
  17. package/components/checkmark/index.js +0 -6
  18. package/components/checkmark-mobile/Component.js +1 -1
  19. package/components/checkmark-mobile/index.css +6 -6
  20. package/components/checkmark-mobile/index.js +0 -3
  21. package/components/field/Component.js +1 -1
  22. package/components/field/index.css +12 -12
  23. package/components/field/index.js +0 -6
  24. package/components/footer/Component.js +1 -1
  25. package/components/footer/index.css +5 -5
  26. package/components/footer/index.js +0 -5
  27. package/components/index.js +0 -25
  28. package/components/native-select/index.js +0 -3
  29. package/components/optgroup/Component.js +1 -1
  30. package/components/optgroup/index.css +6 -6
  31. package/components/optgroup/index.js +0 -2
  32. package/components/option/Component.js +1 -5
  33. package/components/option/index.css +19 -19
  34. package/components/option/index.js +0 -9
  35. package/components/options-list/Component.js +1 -1
  36. package/components/options-list/index.css +9 -9
  37. package/components/options-list/index.js +0 -10
  38. package/components/search/Component.js +1 -1
  39. package/components/search/index.css +2 -2
  40. package/components/search/index.js +0 -5
  41. package/components/virtual-options-list/Component.js +1 -1
  42. package/components/virtual-options-list/index.css +15 -15
  43. package/components/virtual-options-list/index.js +0 -11
  44. package/cssm/Component.responsive.js +0 -55
  45. package/cssm/components/arrow/index.js +0 -4
  46. package/cssm/components/base-checkmark/index.js +0 -5
  47. package/cssm/components/base-option/Component.js +0 -3
  48. package/cssm/components/base-option/index.js +0 -8
  49. package/cssm/components/base-select/Component.js +1 -1
  50. package/cssm/components/base-select/index.js +0 -13
  51. package/cssm/components/checkmark/index.js +0 -7
  52. package/cssm/components/checkmark-mobile/index.js +0 -4
  53. package/cssm/components/field/index.js +0 -7
  54. package/cssm/components/footer/index.js +0 -6
  55. package/cssm/components/index.js +0 -38
  56. package/cssm/components/native-select/index.js +0 -3
  57. package/cssm/components/optgroup/index.js +0 -3
  58. package/cssm/components/option/Component.js +0 -6
  59. package/cssm/components/option/index.js +0 -12
  60. package/cssm/components/options-list/Component.js +0 -1
  61. package/cssm/components/options-list/index.js +0 -12
  62. package/cssm/components/search/index.js +0 -6
  63. package/cssm/components/virtual-options-list/Component.js +0 -1
  64. package/cssm/components/virtual-options-list/index.js +0 -13
  65. package/cssm/desktop/Component.desktop.js +0 -31
  66. package/cssm/desktop/index.js +0 -42
  67. package/{hook-a12d8a76.js → cssm/hook-4aad7127.js} +1 -1
  68. package/cssm/index.js +0 -61
  69. package/cssm/mobile/Component.mobile.js +1 -41
  70. package/cssm/mobile/Component.modal.mobile.js +0 -54
  71. package/cssm/mobile/index.js +0 -56
  72. package/cssm/presets/index.js +1 -32
  73. package/cssm/presets/useLazyLoading/hook.js +0 -10
  74. package/cssm/presets/useSelectWithApply/hook.js +1 -17
  75. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -14
  76. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
  77. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +4 -3
  78. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  79. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -20
  80. package/cssm/presets/useSelectWithLoading/hook.js +0 -10
  81. package/cssm/shared/index.js +2 -49
  82. package/cssm/utils.d.ts +27 -1
  83. package/cssm/utils.js +30 -0
  84. package/desktop/Component.desktop.js +0 -21
  85. package/desktop/index.js +0 -32
  86. package/esm/Component.responsive.js +0 -41
  87. package/esm/components/arrow/Component.js +1 -1
  88. package/esm/components/arrow/index.css +3 -3
  89. package/esm/components/arrow/index.js +0 -3
  90. package/esm/components/base-checkmark/Component.js +1 -1
  91. package/esm/components/base-checkmark/index.css +4 -4
  92. package/esm/components/base-checkmark/index.js +0 -4
  93. package/esm/components/base-option/Component.js +1 -3
  94. package/esm/components/base-option/index.css +13 -13
  95. package/esm/components/base-option/index.js +0 -6
  96. package/esm/components/base-select/Component.js +3 -3
  97. package/esm/components/base-select/index.css +11 -11
  98. package/esm/components/base-select/index.js +0 -11
  99. package/esm/components/base-select/mobile.css +12 -12
  100. package/esm/components/checkmark/Component.js +1 -1
  101. package/esm/components/checkmark/index.css +10 -10
  102. package/esm/components/checkmark/index.js +0 -6
  103. package/esm/components/checkmark-mobile/Component.js +1 -1
  104. package/esm/components/checkmark-mobile/index.css +6 -6
  105. package/esm/components/checkmark-mobile/index.js +0 -3
  106. package/esm/components/field/Component.js +1 -1
  107. package/esm/components/field/index.css +12 -12
  108. package/esm/components/field/index.js +0 -6
  109. package/esm/components/footer/Component.js +1 -1
  110. package/esm/components/footer/index.css +5 -5
  111. package/esm/components/footer/index.js +0 -5
  112. package/esm/components/index.js +0 -25
  113. package/esm/components/native-select/index.js +0 -3
  114. package/esm/components/optgroup/Component.js +1 -1
  115. package/esm/components/optgroup/index.css +6 -6
  116. package/esm/components/optgroup/index.js +0 -2
  117. package/esm/components/option/Component.js +1 -5
  118. package/esm/components/option/index.css +19 -19
  119. package/esm/components/option/index.js +0 -9
  120. package/esm/components/options-list/Component.js +1 -1
  121. package/esm/components/options-list/index.css +9 -9
  122. package/esm/components/options-list/index.js +0 -10
  123. package/esm/components/search/Component.js +1 -1
  124. package/esm/components/search/index.css +2 -2
  125. package/esm/components/search/index.js +0 -5
  126. package/esm/components/virtual-options-list/Component.js +1 -1
  127. package/esm/components/virtual-options-list/index.css +15 -15
  128. package/esm/components/virtual-options-list/index.js +0 -11
  129. package/esm/desktop/Component.desktop.js +0 -21
  130. package/esm/desktop/index.js +0 -32
  131. package/esm/{hook-0d643e3f.js → hook-b4192713.js} +1 -1
  132. package/esm/index.js +0 -47
  133. package/esm/mobile/Component.mobile.js +1 -27
  134. package/esm/mobile/Component.modal.mobile.js +0 -40
  135. package/esm/mobile/index.js +0 -42
  136. package/esm/presets/index.js +1 -24
  137. package/esm/presets/useLazyLoading/hook.js +0 -7
  138. package/esm/presets/useSelectWithApply/hook.js +1 -13
  139. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -10
  140. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
  141. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -4
  142. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  143. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  144. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  145. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  146. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -16
  147. package/esm/presets/useSelectWithLoading/hook.js +1 -8
  148. package/esm/presets/useSelectWithLoading/index.css +2 -2
  149. package/esm/shared/index.js +2 -33
  150. package/esm/utils.d.ts +27 -1
  151. package/esm/utils.js +30 -1
  152. package/{cssm/hook-2f9ec939.js → hook-5269e0eb.js} +1 -1
  153. package/index.js +0 -47
  154. package/mobile/Component.mobile.js +1 -27
  155. package/mobile/Component.modal.mobile.js +0 -40
  156. package/mobile/index.js +0 -42
  157. package/modern/Component.responsive.js +0 -41
  158. package/modern/components/arrow/Component.js +1 -1
  159. package/modern/components/arrow/index.css +3 -3
  160. package/modern/components/arrow/index.js +0 -3
  161. package/modern/components/base-checkmark/Component.js +1 -1
  162. package/modern/components/base-checkmark/index.css +4 -4
  163. package/modern/components/base-checkmark/index.js +0 -4
  164. package/modern/components/base-option/Component.js +1 -3
  165. package/modern/components/base-option/index.css +13 -13
  166. package/modern/components/base-option/index.js +0 -5
  167. package/modern/components/base-select/Component.js +3 -3
  168. package/modern/components/base-select/index.css +11 -11
  169. package/modern/components/base-select/index.js +0 -10
  170. package/modern/components/base-select/mobile.css +12 -12
  171. package/modern/components/checkmark/Component.js +1 -1
  172. package/modern/components/checkmark/index.css +10 -10
  173. package/modern/components/checkmark/index.js +0 -6
  174. package/modern/components/checkmark-mobile/Component.js +1 -1
  175. package/modern/components/checkmark-mobile/index.css +6 -6
  176. package/modern/components/checkmark-mobile/index.js +0 -3
  177. package/modern/components/field/Component.js +1 -1
  178. package/modern/components/field/index.css +12 -12
  179. package/modern/components/field/index.js +0 -5
  180. package/modern/components/footer/Component.js +1 -1
  181. package/modern/components/footer/index.css +5 -5
  182. package/modern/components/footer/index.js +0 -5
  183. package/modern/components/index.js +0 -24
  184. package/modern/components/native-select/index.js +0 -2
  185. package/modern/components/optgroup/Component.js +1 -1
  186. package/modern/components/optgroup/index.css +6 -6
  187. package/modern/components/optgroup/index.js +0 -2
  188. package/modern/components/option/Component.js +1 -5
  189. package/modern/components/option/index.css +19 -19
  190. package/modern/components/option/index.js +0 -8
  191. package/modern/components/options-list/Component.js +1 -1
  192. package/modern/components/options-list/index.css +9 -9
  193. package/modern/components/options-list/index.js +0 -9
  194. package/modern/components/search/Component.js +1 -1
  195. package/modern/components/search/index.css +2 -2
  196. package/modern/components/search/index.js +0 -4
  197. package/modern/components/virtual-options-list/Component.js +1 -1
  198. package/modern/components/virtual-options-list/index.css +15 -15
  199. package/modern/components/virtual-options-list/index.js +0 -10
  200. package/modern/desktop/Component.desktop.js +0 -21
  201. package/modern/desktop/index.js +0 -31
  202. package/modern/{hook-e0ac0fb2.js → hook-328d58fb.js} +1 -1
  203. package/modern/index.js +0 -46
  204. package/modern/mobile/Component.mobile.js +1 -27
  205. package/modern/mobile/Component.modal.mobile.js +0 -40
  206. package/modern/mobile/index.js +0 -41
  207. package/modern/presets/index.js +1 -23
  208. package/modern/presets/useLazyLoading/hook.js +0 -7
  209. package/modern/presets/useSelectWithApply/hook.js +1 -13
  210. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -10
  211. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
  212. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -4
  213. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  214. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  215. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  216. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  217. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -15
  218. package/modern/presets/useSelectWithLoading/hook.js +1 -8
  219. package/modern/presets/useSelectWithLoading/index.css +2 -2
  220. package/modern/shared/index.js +2 -32
  221. package/modern/utils.d.ts +27 -1
  222. package/modern/utils.js +30 -1
  223. package/package.json +6 -6
  224. package/presets/index.js +1 -24
  225. package/presets/useLazyLoading/hook.js +0 -7
  226. package/presets/useSelectWithApply/hook.js +1 -13
  227. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -10
  228. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
  229. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -4
  230. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  231. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  232. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  233. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  234. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -16
  235. package/presets/useSelectWithLoading/hook.js +1 -8
  236. package/presets/useSelectWithLoading/index.css +2 -2
  237. package/shared/index.js +2 -32
  238. package/src/components/base-select/Component.tsx +1 -0
  239. package/src/presets/useSelectWithApply/options-list-with-apply/Component.tsx +1 -0
  240. package/src/presets/useSelectWithApply/options-list-with-apply/footer/Component.tsx +15 -2
  241. package/src/utils.ts +33 -0
  242. package/utils.d.ts +27 -1
  243. package/utils.js +30 -0
  244. /package/cssm/{hook-2f9ec939.d.ts → hook-4aad7127.d.ts} +0 -0
  245. /package/esm/{hook-0d643e3f.d.ts → hook-b4192713.d.ts} +0 -0
  246. /package/{hook-a12d8a76.d.ts → hook-5269e0eb.d.ts} +0 -0
  247. /package/modern/{hook-e0ac0fb2.d.ts → hook-328d58fb.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: b7ge8 */
1
+ /* hash: 1py7h */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #d5d6dc;
@@ -35,34 +35,34 @@
35
35
  /* checkmark */
36
36
 
37
37
  /* optgroup */
38
- } .select__virtualOptionsList_s7k1r {
38
+ } .select__virtualOptionsList_sd051 {
39
39
  width: 100%;
40
40
  outline: none;
41
41
  box-sizing: border-box;
42
42
  position: sticky;
43
- } .select__virtualOptionsListHeader_s7k1r {
43
+ } .select__virtualOptionsListHeader_sd051 {
44
44
  box-sizing: border-box;
45
45
  border-bottom: 1px solid var(--color-light-neutral-300);
46
- } .select__virtualOptionsListFooter_s7k1r {
46
+ } .select__virtualOptionsListFooter_sd051 {
47
47
  position: sticky;
48
48
  bottom: 0;
49
49
  box-sizing: border-box;
50
50
  border-top: 1px solid transparent
51
- } .select__virtualOptionsListFooter_s7k1r.select__withBorder_s7k1r {
51
+ } .select__virtualOptionsListFooter_sd051.select__withBorder_sd051 {
52
52
  border-top: 1px solid var(--color-light-neutral-300);
53
- } .select__scrollable_s7k1r {
53
+ } .select__scrollable_sd051 {
54
54
  position: relative;
55
55
  overflow: auto;
56
56
  width: 100%;
57
- } .select__inner_s7k1r {
57
+ } .select__inner_sd051 {
58
58
  position: relative;
59
59
  width: 100%;
60
- } .select__virtualRow_s7k1r {
60
+ } .select__virtualRow_sd051 {
61
61
  position: absolute;
62
62
  top: 0;
63
63
  left: 0;
64
64
  width: 100%
65
- } .select__virtualRow_s7k1r:before {
65
+ } .select__virtualRow_sd051:before {
66
66
  content: '';
67
67
  position: absolute;
68
68
  z-index: 1;
@@ -72,15 +72,15 @@
72
72
  height: 1px;
73
73
  background: var(--select-option-divider-background);
74
74
  display: var(--select-option-divider-display);
75
- } .select__virtualRow_s7k1r:first-child:before {
75
+ } .select__virtualRow_sd051:first-child:before {
76
76
  display: none;
77
- } .select__highlighted_s7k1r:before,
78
- .select__highlighted_s7k1r + .select__virtualRow_s7k1r:before {
77
+ } .select__highlighted_sd051:before,
78
+ .select__highlighted_sd051 + .select__virtualRow_sd051:before {
79
79
  display: none;
80
- } .select__emptyPlaceholder_s7k1r {
80
+ } .select__emptyPlaceholder_sd051 {
81
81
  padding: var(--gap-m) var(--gap-s);
82
82
  color: var(--select-options-list-empty-placeholder-color);
83
- } .select__l_s7k1r .select__emptyPlaceholder_s7k1r,
84
- .select__xl_s7k1r .select__emptyPlaceholder_s7k1r {
83
+ } .select__l_sd051 .select__emptyPlaceholder_sd051,
84
+ .select__xl_sd051 .select__emptyPlaceholder_sd051 {
85
85
  padding: var(--gap-xl) var(--gap-m);
86
86
  }
@@ -1,12 +1 @@
1
1
  export { VirtualOptionsList } from './Component.js';
2
- import 'tslib';
3
- import 'react';
4
- import 'react-merge-refs';
5
- import 'react-virtual';
6
- import 'classnames';
7
- import '@alfalab/core-components-mq/esm';
8
- import '@alfalab/core-components-scrollbar/esm';
9
- import '@alfalab/core-components-shared/esm';
10
- import '../../consts.js';
11
- import '../../utils.js';
12
- import '../optgroup/Component.js';
@@ -9,27 +9,6 @@ import { Optgroup } from '../components/optgroup/Component.js';
9
9
  import { Option } from '../components/option/Component.js';
10
10
  import { OptionsList } from '../components/options-list/Component.js';
11
11
  import { Search } from '../components/search/Component.js';
12
- import 'classnames';
13
- import '@alfalab/icons-glyph/ChevronDownMIcon';
14
- import 'react-merge-refs';
15
- import '@juggle/resize-observer';
16
- import 'compute-scroll-into-view';
17
- import 'downshift';
18
- import '@alfalab/core-components-shared/esm';
19
- import '@alfalab/hooks';
20
- import '../utils.js';
21
- import '../components/native-select/Component.js';
22
- import '../components/checkmark/Component.js';
23
- import '@alfalab/core-components-badge/esm';
24
- import '@alfalab/core-components-checkbox/esm';
25
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
26
- import '@alfalab/icons-glyph/CheckmarkMIcon';
27
- import '../components/checkmark-mobile/Component.js';
28
- import '@alfalab/core-components-mq/esm';
29
- import '@alfalab/core-components-scrollbar/esm';
30
- import '../consts.js';
31
- import '@alfalab/core-components-input/esm';
32
- import '@alfalab/icons-glyph/MagnifierMIcon';
33
12
 
34
13
  var SelectDesktop = forwardRef(function (_a, ref) {
35
14
  var _b = _a.Arrow, Arrow$1 = _b === void 0 ? Arrow : _b, _c = _a.Field, Field$1 = _c === void 0 ? Field : _c, _d = _a.OptionsList, OptionsList$1 = _d === void 0 ? OptionsList : _d, _e = _a.Optgroup, Optgroup$1 = _e === void 0 ? Optgroup : _e, _f = _a.Option, Option$1 = _f === void 0 ? Option : _f, _g = _a.Search, Search$1 = _g === void 0 ? Search : _g, _h = _a.fieldProps, fieldProps = _h === void 0 ? {} : _h, restProps = __rest(_a, ["Arrow", "Field", "OptionsList", "Optgroup", "Option", "Search", "fieldProps"]);
@@ -1,33 +1 @@
1
1
  export { SelectDesktop } from './Component.desktop.js';
2
- import 'tslib';
3
- import 'react';
4
- import '@alfalab/core-components-form-control/esm/desktop';
5
- import '@alfalab/core-components-popover/esm';
6
- import '../components/arrow/Component.js';
7
- import 'classnames';
8
- import '@alfalab/icons-glyph/ChevronDownMIcon';
9
- import '../components/base-select/Component.js';
10
- import 'react-merge-refs';
11
- import '@juggle/resize-observer';
12
- import 'compute-scroll-into-view';
13
- import 'downshift';
14
- import '@alfalab/core-components-shared/esm';
15
- import '@alfalab/hooks';
16
- import '../utils.js';
17
- import '../components/native-select/Component.js';
18
- import '../components/field/Component.js';
19
- import '../components/optgroup/Component.js';
20
- import '../components/option/Component.js';
21
- import '../components/checkmark/Component.js';
22
- import '@alfalab/core-components-badge/esm';
23
- import '@alfalab/core-components-checkbox/esm';
24
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
25
- import '@alfalab/icons-glyph/CheckmarkMIcon';
26
- import '../components/checkmark-mobile/Component.js';
27
- import '../components/options-list/Component.js';
28
- import '@alfalab/core-components-mq/esm';
29
- import '@alfalab/core-components-scrollbar/esm';
30
- import '../consts.js';
31
- import '../components/search/Component.js';
32
- import '@alfalab/core-components-input/esm';
33
- import '@alfalab/icons-glyph/MagnifierMIcon';
@@ -43,7 +43,7 @@ var OptionsListWithApply = forwardRef(function (_a, ref) {
43
43
  header,
44
44
  showHeaderWithSelectAll && React.createElement(Header$1, __assign({}, headerProps))));
45
45
  };
46
- return (React.createElement(OptionsList$1, __assign({}, restProps, { ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(), footer: React.createElement(Footer$1, { handleApply: handleApply, handleClear: handleClear, showClear: showClear, selectedDraft: selectedDraft }) })));
46
+ return (React.createElement(OptionsList$1, __assign({}, restProps, { ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(), footer: React.createElement(Footer$1, { handleApply: handleApply, handleClear: handleClear, showClear: showClear, selectedDraft: selectedDraft, dataTestId: restProps === null || restProps === void 0 ? void 0 : restProps.dataTestId }) })));
47
47
  });
48
48
 
49
49
  var SELECT_ALL_KEY = 'select_all';
package/esm/index.js CHANGED
@@ -1,48 +1 @@
1
1
  export { SelectResponsive as Select } from './Component.responsive.js';
2
- import 'tslib';
3
- import 'react';
4
- import '@alfalab/core-components-mq/esm';
5
- import './desktop/Component.desktop.js';
6
- import '@alfalab/core-components-form-control/esm/desktop';
7
- import '@alfalab/core-components-popover/esm';
8
- import './components/arrow/Component.js';
9
- import 'classnames';
10
- import '@alfalab/icons-glyph/ChevronDownMIcon';
11
- import './components/base-select/Component.js';
12
- import 'react-merge-refs';
13
- import '@juggle/resize-observer';
14
- import 'compute-scroll-into-view';
15
- import 'downshift';
16
- import '@alfalab/core-components-shared/esm';
17
- import '@alfalab/hooks';
18
- import './utils.js';
19
- import './components/native-select/Component.js';
20
- import './components/field/Component.js';
21
- import './components/optgroup/Component.js';
22
- import './components/option/Component.js';
23
- import './components/checkmark/Component.js';
24
- import '@alfalab/core-components-badge/esm';
25
- import '@alfalab/core-components-checkbox/esm';
26
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
27
- import '@alfalab/icons-glyph/CheckmarkMIcon';
28
- import './components/checkmark-mobile/Component.js';
29
- import './components/options-list/Component.js';
30
- import '@alfalab/core-components-scrollbar/esm';
31
- import './consts.js';
32
- import './components/search/Component.js';
33
- import '@alfalab/core-components-input/esm';
34
- import '@alfalab/icons-glyph/MagnifierMIcon';
35
- import './mobile/Component.mobile.js';
36
- import '@alfalab/core-components-bottom-sheet/esm';
37
- import '@alfalab/core-components-form-control/esm/mobile';
38
- import '@alfalab/core-components-modal/esm/mobile';
39
- import './components/footer/Component.js';
40
- import '@alfalab/core-components-base-modal/esm';
41
- import '@alfalab/core-components-button/esm/mobile';
42
- import './components/virtual-options-list/Component.js';
43
- import 'react-virtual';
44
- import './hook-0d643e3f.js';
45
- import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
46
- import '@alfalab/core-components-button/esm/desktop';
47
- import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
48
- import './mobile/Component.modal.mobile.js';
@@ -12,34 +12,8 @@ import { Option } from '../components/option/Component.js';
12
12
  import { OptionsList } from '../components/options-list/Component.js';
13
13
  import { Search } from '../components/search/Component.js';
14
14
  import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
15
- import { u as useSelectWithApply } from '../hook-0d643e3f.js';
15
+ import { u as useSelectWithApply } from '../hook-b4192713.js';
16
16
  import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
17
- import 'classnames';
18
- import '@alfalab/icons-glyph/ChevronDownMIcon';
19
- import 'react-merge-refs';
20
- import '@juggle/resize-observer';
21
- import 'compute-scroll-into-view';
22
- import 'downshift';
23
- import '@alfalab/core-components-shared/esm';
24
- import '@alfalab/hooks';
25
- import '../utils.js';
26
- import '../components/native-select/Component.js';
27
- import '@alfalab/core-components-base-modal/esm';
28
- import '@alfalab/core-components-button/esm/mobile';
29
- import '../components/checkmark/Component.js';
30
- import '@alfalab/core-components-badge/esm';
31
- import '@alfalab/core-components-checkbox/esm';
32
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
33
- import '@alfalab/icons-glyph/CheckmarkMIcon';
34
- import '../components/checkmark-mobile/Component.js';
35
- import '@alfalab/core-components-mq/esm';
36
- import '@alfalab/core-components-scrollbar/esm';
37
- import '../consts.js';
38
- import '@alfalab/core-components-input/esm';
39
- import '@alfalab/icons-glyph/MagnifierMIcon';
40
- import 'react-virtual';
41
- import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
42
- import '@alfalab/core-components-button/esm/desktop';
43
17
 
44
18
  var VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
45
19
  var SelectMobile = forwardRef(function (_a, ref) {
@@ -1,46 +1,6 @@
1
1
  import { __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import { SelectMobile } from './Component.mobile.js';
4
- import '@alfalab/core-components-bottom-sheet/esm';
5
- import '@alfalab/core-components-form-control/esm/mobile';
6
- import '@alfalab/core-components-modal/esm/mobile';
7
- import '../components/arrow/Component.js';
8
- import 'classnames';
9
- import '@alfalab/icons-glyph/ChevronDownMIcon';
10
- import '../components/base-select/Component.js';
11
- import 'react-merge-refs';
12
- import '@juggle/resize-observer';
13
- import 'compute-scroll-into-view';
14
- import 'downshift';
15
- import '@alfalab/core-components-shared/esm';
16
- import '@alfalab/hooks';
17
- import '../utils.js';
18
- import '../components/native-select/Component.js';
19
- import '../components/field/Component.js';
20
- import '../components/footer/Component.js';
21
- import '@alfalab/core-components-base-modal/esm';
22
- import '@alfalab/core-components-button/esm/mobile';
23
- import '../components/optgroup/Component.js';
24
- import '../components/option/Component.js';
25
- import '../components/checkmark/Component.js';
26
- import '@alfalab/core-components-badge/esm';
27
- import '@alfalab/core-components-checkbox/esm';
28
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
29
- import '@alfalab/icons-glyph/CheckmarkMIcon';
30
- import '../components/checkmark-mobile/Component.js';
31
- import '../components/options-list/Component.js';
32
- import '@alfalab/core-components-mq/esm';
33
- import '@alfalab/core-components-scrollbar/esm';
34
- import '../consts.js';
35
- import '../components/search/Component.js';
36
- import '@alfalab/core-components-input/esm';
37
- import '@alfalab/icons-glyph/MagnifierMIcon';
38
- import '../components/virtual-options-list/Component.js';
39
- import 'react-virtual';
40
- import '../hook-0d643e3f.js';
41
- import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
42
- import '@alfalab/core-components-button/esm/desktop';
43
- import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
44
4
 
45
5
  var SelectModalMobile = forwardRef(function (props, ref) { return (React.createElement(SelectMobile, __assign({}, props, { isBottomSheet: false, ref: ref }))); });
46
6
 
@@ -1,44 +1,2 @@
1
1
  export { SelectMobile } from './Component.mobile.js';
2
2
  export { SelectModalMobile } from './Component.modal.mobile.js';
3
- import 'tslib';
4
- import 'react';
5
- import '@alfalab/core-components-bottom-sheet/esm';
6
- import '@alfalab/core-components-form-control/esm/mobile';
7
- import '@alfalab/core-components-modal/esm/mobile';
8
- import '../components/arrow/Component.js';
9
- import 'classnames';
10
- import '@alfalab/icons-glyph/ChevronDownMIcon';
11
- import '../components/base-select/Component.js';
12
- import 'react-merge-refs';
13
- import '@juggle/resize-observer';
14
- import 'compute-scroll-into-view';
15
- import 'downshift';
16
- import '@alfalab/core-components-shared/esm';
17
- import '@alfalab/hooks';
18
- import '../utils.js';
19
- import '../components/native-select/Component.js';
20
- import '../components/field/Component.js';
21
- import '../components/footer/Component.js';
22
- import '@alfalab/core-components-base-modal/esm';
23
- import '@alfalab/core-components-button/esm/mobile';
24
- import '../components/optgroup/Component.js';
25
- import '../components/option/Component.js';
26
- import '../components/checkmark/Component.js';
27
- import '@alfalab/core-components-badge/esm';
28
- import '@alfalab/core-components-checkbox/esm';
29
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
30
- import '@alfalab/icons-glyph/CheckmarkMIcon';
31
- import '../components/checkmark-mobile/Component.js';
32
- import '../components/options-list/Component.js';
33
- import '@alfalab/core-components-mq/esm';
34
- import '@alfalab/core-components-scrollbar/esm';
35
- import '../consts.js';
36
- import '../components/search/Component.js';
37
- import '@alfalab/core-components-input/esm';
38
- import '@alfalab/icons-glyph/MagnifierMIcon';
39
- import '../components/virtual-options-list/Component.js';
40
- import 'react-virtual';
41
- import '../hook-0d643e3f.js';
42
- import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
43
- import '@alfalab/core-components-button/esm/desktop';
44
- import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -1,26 +1,3 @@
1
1
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from './useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-0d643e3f.js';
4
- import 'tslib';
5
- import 'react';
6
- import '@alfalab/core-components-skeleton/esm';
7
- import '../components/option/Component.js';
8
- import 'classnames';
9
- import '../components/checkmark/Component.js';
10
- import '@alfalab/core-components-badge/esm';
11
- import '@alfalab/core-components-checkbox/esm';
12
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
13
- import '@alfalab/icons-glyph/CheckmarkMIcon';
14
- import '../components/checkmark-mobile/Component.js';
15
- import 'intersection-observer';
16
- import '../utils.js';
17
- import '../components/options-list/Component.js';
18
- import 'react-merge-refs';
19
- import '@alfalab/core-components-mq/esm';
20
- import '@alfalab/core-components-scrollbar/esm';
21
- import '@alfalab/core-components-shared/esm';
22
- import '../consts.js';
23
- import '../components/optgroup/Component.js';
24
- import './useSelectWithApply/options-list-with-apply/footer/Component.js';
25
- import '@alfalab/core-components-button/esm/desktop';
26
- import './useSelectWithApply/options-list-with-apply/header/Component.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-b4192713.js';
@@ -3,13 +3,6 @@ import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'reac
3
3
  import { Skeleton } from '@alfalab/core-components-skeleton/esm';
4
4
  import { Option } from '../../components/option/Component.js';
5
5
  import 'intersection-observer';
6
- import 'classnames';
7
- import '../../components/checkmark/Component.js';
8
- import '@alfalab/core-components-badge/esm';
9
- import '@alfalab/core-components-checkbox/esm';
10
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
11
- import '@alfalab/icons-glyph/CheckmarkMIcon';
12
- import '../../components/checkmark-mobile/Component.js';
13
6
 
14
7
  var DEBOUNCE_TIMEOUT = 300;
15
8
  var actions = {
@@ -1,16 +1,4 @@
1
1
  import 'tslib';
2
2
  import 'react';
3
3
  import '../../utils.js';
4
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-0d643e3f.js';
5
- import '../../components/options-list/Component.js';
6
- import 'react-merge-refs';
7
- import 'classnames';
8
- import '@alfalab/core-components-mq/esm';
9
- import '@alfalab/core-components-scrollbar/esm';
10
- import '@alfalab/core-components-shared/esm';
11
- import '../../consts.js';
12
- import '../../components/optgroup/Component.js';
13
- import './options-list-with-apply/footer/Component.js';
14
- import '@alfalab/core-components-button/esm/desktop';
15
- import './options-list-with-apply/header/Component.js';
16
- import '@alfalab/core-components-checkbox/esm';
4
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-b4192713.js';
@@ -2,15 +2,6 @@ import 'tslib';
2
2
  import 'react';
3
3
  import '../../../components/options-list/Component.js';
4
4
  import '../../../consts.js';
5
- export { O as OptionsListWithApply } from '../../../hook-0d643e3f.js';
5
+ export { O as OptionsListWithApply } from '../../../hook-b4192713.js';
6
6
  import './footer/Component.js';
7
7
  import './header/Component.js';
8
- import 'react-merge-refs';
9
- import 'classnames';
10
- import '@alfalab/core-components-mq/esm';
11
- import '@alfalab/core-components-scrollbar/esm';
12
- import '@alfalab/core-components-shared/esm';
13
- import '../../../utils.js';
14
- import '../../../components/optgroup/Component.js';
15
- import '@alfalab/core-components-button/esm/desktop';
16
- import '@alfalab/core-components-checkbox/esm';
@@ -6,6 +6,7 @@ type FooterProps = {
6
6
  handleApply?: () => void;
7
7
  showClear?: boolean;
8
8
  selectedDraft?: OptionShape[];
9
+ dataTestId?: string;
9
10
  };
10
- declare const Footer: ({ handleApply, handleClear, showClear, selectedDraft, }: FooterProps) => React.JSX.Element;
11
+ declare const Footer: ({ handleApply, handleClear, showClear, selectedDraft, dataTestId, }: FooterProps) => React.JSX.Element;
11
12
  export { FooterProps, Footer };
@@ -1,16 +1,17 @@
1
1
  import React from 'react';
2
2
  import { ButtonDesktop } from '@alfalab/core-components-button/esm/desktop';
3
+ import { getDataTestId } from '@alfalab/core-components-shared/esm';
3
4
 
4
- var styles = {"footer":"select__footer_1lca0"};
5
+ var styles = {"footer":"select__footer_1lhq3"};
5
6
  require('./index.css')
6
7
 
7
8
  var Footer = function (_a) {
8
- var handleApply = _a.handleApply, handleClear = _a.handleClear, showClear = _a.showClear, _b = _a.selectedDraft, selectedDraft = _b === void 0 ? [] : _b;
9
+ var handleApply = _a.handleApply, handleClear = _a.handleClear, showClear = _a.showClear, _b = _a.selectedDraft, selectedDraft = _b === void 0 ? [] : _b, dataTestId = _a.dataTestId;
9
10
  return (React.createElement("div", {
10
11
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
11
12
  tabIndex: 0, className: styles.footer },
12
- React.createElement(ButtonDesktop, { size: 'xxs', view: 'primary', onClick: handleApply }, "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C"),
13
- showClear && selectedDraft.length > 0 && (React.createElement(ButtonDesktop, { size: 'xxs', view: 'secondary', onClick: handleClear }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C"))));
13
+ React.createElement(ButtonDesktop, { size: 'xxs', view: 'primary', onClick: handleApply, dataTestId: getDataTestId(dataTestId, 'apply') }, "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C"),
14
+ showClear && selectedDraft.length > 0 && (React.createElement(ButtonDesktop, { size: 'xxs', view: 'secondary', onClick: handleClear, dataTestId: getDataTestId(dataTestId, 'clear') }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C"))));
14
15
  };
15
16
 
16
17
  export { Footer };
@@ -1,4 +1,4 @@
1
- /* hash: 14c6c */
1
+ /* hash: k1tdv */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-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 */
@@ -17,10 +17,10 @@
17
17
  --gap-s: 12px;
18
18
  } :root {
19
19
  } :root {
20
- } .select__footer_1lca0 {
20
+ } .select__footer_1lhq3 {
21
21
  background-color: var(--color-light-bg-primary);
22
22
  padding: var(--gap-s);
23
23
  outline: none
24
- } .select__footer_1lca0 > * + * {
24
+ } .select__footer_1lhq3 > * + * {
25
25
  margin-left: var(--gap-xs);
26
26
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Checkbox } from '@alfalab/core-components-checkbox/esm';
4
4
 
5
- var styles = {"desktop":"select__desktop_16h49","mobile":"select__mobile_16h49"};
5
+ var styles = {"desktop":"select__desktop_boj2v","mobile":"select__mobile_boj2v"};
6
6
  require('./index.css')
7
7
 
8
8
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 17v1p */
1
+ /* hash: 12dlh */
2
2
  :root {
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 */
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 */
@@ -16,8 +16,8 @@
16
16
  --gap-s: 12px;
17
17
  } :root {
18
18
  } :root {
19
- } .select__desktop_16h49 {
19
+ } .select__desktop_boj2v {
20
20
  padding: var(--gap-s);
21
- } .select__mobile_16h49 {
21
+ } .select__mobile_boj2v {
22
22
  padding: var(--gap-s) var(--gap-xs);
23
23
  }
@@ -1 +1 @@
1
- export * from "../../../hook-0d643e3f";
1
+ export * from "../../../hook-b4192713";
@@ -1,16 +1 @@
1
- export { O as OptionsListWithApply } from '../../../hook-0d643e3f.js';
2
- import 'tslib';
3
- import 'react';
4
- import '../../../utils.js';
5
- import '../../../components/options-list/Component.js';
6
- import 'react-merge-refs';
7
- import 'classnames';
8
- import '@alfalab/core-components-mq/esm';
9
- import '@alfalab/core-components-scrollbar/esm';
10
- import '@alfalab/core-components-shared/esm';
11
- import '../../../consts.js';
12
- import '../../../components/optgroup/Component.js';
13
- import './footer/Component.js';
14
- import '@alfalab/core-components-button/esm/desktop';
15
- import './header/Component.js';
16
- import '@alfalab/core-components-checkbox/esm';
1
+ export { O as OptionsListWithApply } from '../../../hook-b4192713.js';
@@ -2,15 +2,8 @@ import { __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { Skeleton } from '@alfalab/core-components-skeleton/esm';
4
4
  import { Option } from '../../components/option/Component.js';
5
- import 'classnames';
6
- import '../../components/checkmark/Component.js';
7
- import '@alfalab/core-components-badge/esm';
8
- import '@alfalab/core-components-checkbox/esm';
9
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
10
- import '@alfalab/icons-glyph/CheckmarkMIcon';
11
- import '../../components/checkmark-mobile/Component.js';
12
5
 
13
- var styles = {"skeleton":"select__skeleton_oh1ou"};
6
+ var styles = {"skeleton":"select__skeleton_afn0z"};
14
7
  require('./index.css')
15
8
 
16
9
  function useSelectWithLoading(_a) {
@@ -1,5 +1,5 @@
1
- /* hash: 1gfk1 */
2
- .select__skeleton_oh1ou {
1
+ /* hash: 39qai */
2
+ .select__skeleton_afn0z {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -1,7 +1,7 @@
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-0d643e3f.js';
4
- export { defaultAccessor, defaultFilterFn, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-b4192713.js';
4
+ export { defaultAccessor, defaultFilterFn, 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';
7
7
  export { OptionsList } from '../components/options-list/Component.js';
@@ -12,34 +12,3 @@ export { BaseSelect } from '../components/base-select/Component.js';
12
12
  export { Optgroup } from '../components/optgroup/Component.js';
13
13
  export { Footer } from '../components/footer/Component.js';
14
14
  export { Search } from '../components/search/Component.js';
15
- import 'tslib';
16
- import 'react';
17
- import '@alfalab/core-components-skeleton/esm';
18
- import 'intersection-observer';
19
- import '../consts.js';
20
- import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
21
- import '@alfalab/core-components-button/esm/desktop';
22
- import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
23
- import 'classnames';
24
- import '@alfalab/core-components-checkbox/esm';
25
- import '../components/checkmark/Component.js';
26
- import '@alfalab/core-components-badge/esm';
27
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
28
- import '@alfalab/icons-glyph/CheckmarkMIcon';
29
- import '../components/checkmark-mobile/Component.js';
30
- import '../components/base-checkmark/Component.js';
31
- import 'react-merge-refs';
32
- import '@alfalab/core-components-mq/esm';
33
- import '@alfalab/core-components-scrollbar/esm';
34
- import '@alfalab/core-components-shared/esm';
35
- import 'react-virtual';
36
- import '@alfalab/hooks';
37
- import '@alfalab/icons-glyph/ChevronDownMIcon';
38
- import '@juggle/resize-observer';
39
- import 'compute-scroll-into-view';
40
- import 'downshift';
41
- import '../components/native-select/Component.js';
42
- import '@alfalab/core-components-base-modal/esm';
43
- import '@alfalab/core-components-button/esm/mobile';
44
- import '@alfalab/core-components-input/esm';
45
- import '@alfalab/icons-glyph/MagnifierMIcon';
package/esm/utils.d.ts CHANGED
@@ -38,4 +38,30 @@ declare function defaultFilterFn(optionText: string, search: string): boolean;
38
38
  declare function defaultAccessor(option: OptionShape): string;
39
39
  declare function usePrevious<T>(value: T): T | undefined;
40
40
  declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
41
- export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, defaultFilterFn, defaultAccessor, usePrevious, lastIndexOf };
41
+ declare function getSelectTestIds(dataTestId: string): {
42
+ select: string;
43
+ option: string;
44
+ optionsList: string;
45
+ clearButton: string;
46
+ applyButton: string;
47
+ field: string;
48
+ fieldFormControl: string;
49
+ fieldLeftAddons: string;
50
+ fieldRightAddons: string;
51
+ fieldError: string;
52
+ fieldHint: string;
53
+ searchInput: string;
54
+ searchFormControl: string;
55
+ searchInner: string;
56
+ searchLeftAddons: string;
57
+ searchRightAddons: string;
58
+ searchError: string;
59
+ searchHint: string;
60
+ bottomSheet: string;
61
+ bottomSheetHeader: string;
62
+ bottomSheetContent: string;
63
+ modal: string;
64
+ modalHeader: string;
65
+ modalContent: string;
66
+ };
67
+ export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, defaultFilterFn, defaultAccessor, usePrevious, lastIndexOf, getSelectTestIds };