@alfalab/core-components-select 17.20.14 → 17.21.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 (205) 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 +15 -15
  7. package/components/base-select/Component.js +4 -3
  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 +11 -11
  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 +2 -2
  18. package/components/clear-button/index.css +7 -13
  19. package/components/field/Component.js +1 -1
  20. package/components/field/index.css +14 -14
  21. package/components/footer/Component.js +1 -1
  22. package/components/footer/index.css +5 -5
  23. package/components/optgroup/Component.js +1 -1
  24. package/components/optgroup/index.css +6 -6
  25. package/components/option/desktop/Component.js +1 -1
  26. package/components/option/desktop/index.css +22 -22
  27. package/components/option/mobile/Component.js +1 -1
  28. package/components/option/mobile/index.css +19 -19
  29. package/components/options-list/Component.js +1 -1
  30. package/components/options-list/index.css +11 -11
  31. package/components/search/Component.js +1 -1
  32. package/components/search/index.css +2 -2
  33. package/components/virtual-options-list/Component.js +1 -1
  34. package/components/virtual-options-list/index.css +15 -15
  35. package/cssm/components/base-select/Component.js +2 -1
  36. package/cssm/components/clear-button/Component.js +1 -1
  37. package/cssm/components/clear-button/index.module.css +2 -8
  38. package/{modern/hook-94ef1330.d.ts → cssm/hook-35edf585.d.ts} +13 -1
  39. package/cssm/{hook-928265a3.js → hook-42ec365f.js} +11 -9
  40. package/cssm/mobile/Component.mobile.js +1 -1
  41. package/cssm/presets/index.d.ts +1 -1
  42. package/cssm/presets/index.js +1 -1
  43. package/cssm/presets/useSelectWithApply/hook.js +1 -1
  44. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  45. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  46. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  47. package/cssm/shared/index.js +1 -1
  48. package/cssm/typings.d.ts +1 -1
  49. package/esm/components/arrow/Component.js +1 -1
  50. package/esm/components/arrow/index.css +5 -5
  51. package/esm/components/base-checkmark/Component.js +1 -1
  52. package/esm/components/base-checkmark/index.css +6 -6
  53. package/esm/components/base-option/Component.js +1 -1
  54. package/esm/components/base-option/index.css +15 -15
  55. package/esm/components/base-select/Component.js +4 -3
  56. package/esm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +1 -1
  57. package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  58. package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  59. package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  60. package/esm/components/base-select/index.css +11 -11
  61. package/esm/components/base-select/mobile.css +12 -12
  62. package/esm/components/checkmark/Component.js +1 -1
  63. package/esm/components/checkmark/index.css +10 -10
  64. package/esm/components/checkmark-mobile/Component.js +1 -1
  65. package/esm/components/checkmark-mobile/index.css +6 -6
  66. package/esm/components/clear-button/Component.js +2 -2
  67. package/esm/components/clear-button/index.css +7 -13
  68. package/esm/components/field/Component.js +1 -1
  69. package/esm/components/field/index.css +14 -14
  70. package/esm/components/footer/Component.js +1 -1
  71. package/esm/components/footer/index.css +5 -5
  72. package/esm/components/optgroup/Component.js +1 -1
  73. package/esm/components/optgroup/index.css +6 -6
  74. package/esm/components/option/desktop/Component.js +1 -1
  75. package/esm/components/option/desktop/index.css +22 -22
  76. package/esm/components/option/mobile/Component.js +1 -1
  77. package/esm/components/option/mobile/index.css +19 -19
  78. package/esm/components/options-list/Component.js +1 -1
  79. package/esm/components/options-list/index.css +11 -11
  80. package/esm/components/search/Component.js +1 -1
  81. package/esm/components/search/index.css +2 -2
  82. package/esm/components/virtual-options-list/Component.js +1 -1
  83. package/esm/components/virtual-options-list/index.css +15 -15
  84. package/esm/{hook-94ef1330.d.ts → hook-35edf585.d.ts} +13 -1
  85. package/esm/{hook-533933bf.js → hook-ee34f771.js} +11 -9
  86. package/esm/{list-popover-desktop-bc081a7b.js → list-popover-desktop-094defa1.js} +1 -1
  87. package/esm/mobile/Component.mobile.js +1 -1
  88. package/esm/mobile.module-562947d3.js +4 -0
  89. package/esm/presets/index.d.ts +1 -1
  90. package/esm/presets/index.js +1 -1
  91. package/esm/presets/useSelectWithApply/hook.js +1 -1
  92. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  93. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  94. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  95. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  96. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  97. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  98. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  99. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  100. package/esm/presets/useSelectWithLoading/index.css +2 -2
  101. package/esm/shared/index.js +1 -1
  102. package/esm/typings.d.ts +1 -1
  103. package/{cssm/hook-94ef1330.d.ts → hook-35edf585.d.ts} +13 -1
  104. package/{hook-3d329889.js → hook-9bc01ecf.js} +11 -9
  105. package/{list-popover-desktop-4068f50c.js → list-popover-desktop-fedb3b18.js} +1 -1
  106. package/mobile/Component.mobile.js +1 -1
  107. package/mobile.module-dbef7169.js +6 -0
  108. package/modern/components/arrow/Component.js +1 -1
  109. package/modern/components/arrow/index.css +5 -5
  110. package/modern/components/base-checkmark/Component.js +1 -1
  111. package/modern/components/base-checkmark/index.css +6 -6
  112. package/modern/components/base-option/Component.js +1 -1
  113. package/modern/components/base-option/index.css +15 -15
  114. package/modern/components/base-select/Component.js +4 -3
  115. package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  116. package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  117. package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  118. package/modern/components/base-select/index.css +11 -11
  119. package/modern/components/base-select/mobile.css +12 -12
  120. package/modern/components/checkmark/Component.js +1 -1
  121. package/modern/components/checkmark/index.css +10 -10
  122. package/modern/components/checkmark-mobile/Component.js +1 -1
  123. package/modern/components/checkmark-mobile/index.css +6 -6
  124. package/modern/components/clear-button/Component.js +2 -2
  125. package/modern/components/clear-button/index.css +7 -13
  126. package/modern/components/field/Component.js +1 -1
  127. package/modern/components/field/index.css +14 -14
  128. package/modern/components/footer/Component.js +1 -1
  129. package/modern/components/footer/index.css +5 -5
  130. package/modern/components/optgroup/Component.js +1 -1
  131. package/modern/components/optgroup/index.css +6 -6
  132. package/modern/components/option/desktop/Component.js +1 -1
  133. package/modern/components/option/desktop/index.css +22 -22
  134. package/modern/components/option/mobile/Component.js +1 -1
  135. package/modern/components/option/mobile/index.css +19 -19
  136. package/modern/components/options-list/Component.js +1 -1
  137. package/modern/components/options-list/index.css +11 -11
  138. package/modern/components/search/Component.js +1 -1
  139. package/modern/components/search/index.css +2 -2
  140. package/modern/components/virtual-options-list/Component.js +1 -1
  141. package/modern/components/virtual-options-list/index.css +15 -15
  142. package/{hook-94ef1330.d.ts → modern/hook-35edf585.d.ts} +13 -1
  143. package/{moderncssm/hook-0c8b8277.js → modern/hook-8eb495d7.js} +5 -3
  144. package/modern/{list-popover-desktop-737f5b39.js → list-popover-desktop-437459c4.js} +1 -1
  145. package/modern/mobile/Component.mobile.js +1 -1
  146. package/modern/mobile.module-ab022eab.js +4 -0
  147. package/modern/presets/index.d.ts +1 -1
  148. package/modern/presets/index.js +1 -1
  149. package/modern/presets/useSelectWithApply/hook.js +1 -1
  150. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  151. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  152. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  153. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  154. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  155. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  156. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  157. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  158. package/modern/presets/useSelectWithLoading/index.css +2 -2
  159. package/modern/shared/index.js +1 -1
  160. package/modern/typings.d.ts +1 -1
  161. package/moderncssm/components/base-select/Component.js +2 -1
  162. package/moderncssm/components/clear-button/Component.js +1 -1
  163. package/moderncssm/components/clear-button/index.module.css +0 -8
  164. package/moderncssm/hook-35edf585.d.ts +123 -0
  165. package/{modern/hook-5dbd42bd.js → moderncssm/hook-54090d24.js} +5 -3
  166. package/moderncssm/mobile/Component.mobile.js +1 -1
  167. package/moderncssm/presets/index.d.ts +1 -1
  168. package/moderncssm/presets/index.js +1 -1
  169. package/moderncssm/presets/useSelectWithApply/hook.js +1 -1
  170. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  171. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  172. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  173. package/moderncssm/shared/index.js +1 -1
  174. package/moderncssm/typings.d.ts +1 -1
  175. package/package.json +8 -8
  176. package/presets/index.d.ts +1 -1
  177. package/presets/index.js +1 -1
  178. package/presets/useSelectWithApply/hook.js +1 -1
  179. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  180. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  181. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  182. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  183. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  184. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  185. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  186. package/presets/useSelectWithLoading/hook.js +1 -1
  187. package/presets/useSelectWithLoading/index.css +2 -2
  188. package/shared/index.js +1 -1
  189. package/src/components/base-select/Component.tsx +2 -1
  190. package/src/components/clear-button/Component.tsx +1 -1
  191. package/src/components/clear-button/index.module.css +0 -12
  192. package/src/presets/useSelectWithApply/hook.tsx +18 -2
  193. package/typings.d.ts +1 -1
  194. package/esm/mobile.module-0cd99801.js +0 -4
  195. package/mobile.module-da499302.js +0 -6
  196. package/modern/mobile.module-d95c2b3b.js +0 -4
  197. package/moderncssm/hook-94ef1330.d.ts +0 -111
  198. /package/cssm/{hook-928265a3.d.ts → hook-42ec365f.d.ts} +0 -0
  199. /package/esm/{hook-533933bf.d.ts → hook-ee34f771.d.ts} +0 -0
  200. /package/esm/{list-popover-desktop-bc081a7b.d.ts → list-popover-desktop-094defa1.d.ts} +0 -0
  201. /package/{hook-3d329889.d.ts → hook-9bc01ecf.d.ts} +0 -0
  202. /package/{list-popover-desktop-4068f50c.d.ts → list-popover-desktop-fedb3b18.d.ts} +0 -0
  203. /package/modern/{hook-5dbd42bd.d.ts → hook-8eb495d7.d.ts} +0 -0
  204. /package/modern/{list-popover-desktop-737f5b39.d.ts → list-popover-desktop-437459c4.d.ts} +0 -0
  205. /package/moderncssm/{hook-0c8b8277.d.ts → hook-54090d24.d.ts} +0 -0
@@ -402,7 +402,8 @@ export const BaseSelect = forwardRef<unknown, ComponentProps>(
402
402
  !autocomplete &&
403
403
  !nativeSelect &&
404
404
  (event.target as HTMLElement).tagName !== 'INPUT' &&
405
- (event.target as HTMLElement).tagName !== 'BUTTON'
405
+ (event.target as HTMLElement).tagName !== 'BUTTON' &&
406
+ (event.target as HTMLElement).tagName !== 'TEXTAREA'
406
407
  ) {
407
408
  // Открываем\закрываем меню по нажатию enter или пробела
408
409
  event.preventDefault();
@@ -18,7 +18,7 @@ export const ClearButton = ({ disabled, onClick, dataTestId, size }: ClearButton
18
18
  view='text'
19
19
  disabled={disabled}
20
20
  aria-label='Очистить'
21
- className={cn(styles.clearButton, styles[`size-${size}`])}
21
+ className={cn(styles.clearButton)}
22
22
  onClick={onClick}
23
23
  tabIndex={-1}
24
24
  dataTestId={dataTestId}
@@ -17,15 +17,3 @@
17
17
  .clearButton + [data-addon='error-icon'] {
18
18
  display: var(--input-error-icon-display);
19
19
  }
20
-
21
- .clearButton + * {
22
- margin-left: var(--gap-4);
23
- }
24
-
25
- .clearButton {
26
- &.size-40 {
27
- & + * {
28
- margin-left: 6px;
29
- }
30
- }
31
- }
@@ -67,6 +67,18 @@ export type UseSelectWithApplyProps = {
67
67
  * Показывать пункт "Выбрать все" в заголовке списка
68
68
  */
69
69
  showHeaderWithSelectAll?: boolean;
70
+
71
+ /**
72
+ * Значение name при применении выбора
73
+ * @default 'apply-footer'
74
+ */
75
+ applyName?: string;
76
+
77
+ /**
78
+ * Значение name при сбросе выбора
79
+ * @default 'reset-footer'
80
+ */
81
+ resetName?: string;
70
82
  };
71
83
 
72
84
  export const SELECT_ALL_KEY = 'select_all';
@@ -85,6 +97,8 @@ export function useSelectWithApply({
85
97
  showHeaderWithSelectAll = false,
86
98
  showSearch = false,
87
99
  searchProps = {},
100
+ applyName = 'apply-footer',
101
+ resetName = 'reset-footer',
88
102
  }: UseSelectWithApplyProps) {
89
103
  const [searchState, setSearchState] = useState('');
90
104
 
@@ -131,7 +145,7 @@ export function useSelectWithApply({
131
145
  selected: selectedDraft[0],
132
146
  selectedMultiple: selectedDraft,
133
147
  initiator: null,
134
- name: 'apply-footer',
148
+ name: applyName,
135
149
  });
136
150
  };
137
151
 
@@ -141,7 +155,7 @@ export function useSelectWithApply({
141
155
  selected: null,
142
156
  selectedMultiple: [],
143
157
  initiator: null,
144
- name: 'reset-footer',
158
+ name: resetName,
145
159
  });
146
160
  };
147
161
 
@@ -246,6 +260,8 @@ export function useSelectWithApply({
246
260
  showHeaderWithSelectAll,
247
261
  showSearch,
248
262
  searchProps,
263
+ applyName,
264
+ resetName,
249
265
  },
250
266
  };
251
267
  }
package/typings.d.ts CHANGED
@@ -6,7 +6,7 @@ import { InputProps } from "@alfalab/core-components-input";
6
6
  import { ModalProps } from "@alfalab/core-components-modal";
7
7
  import { ModalFooterProps, ModalHeaderProps } from "@alfalab/core-components-modal/shared";
8
8
  import { PopoverProps } from "@alfalab/core-components-popover";
9
- import { UseSelectWithApplyProps } from "./hook-94ef1330";
9
+ import { UseSelectWithApplyProps } from "./hook-35edf585";
10
10
  type AnyObject = Record<string, any>;
11
11
  type OptionShape = {
12
12
  /**
@@ -1,4 +0,0 @@
1
- var mobileStyles = {"sheet":"select__sheet_10wrb","sheetContent":"select__sheetContent_10wrb","modalContent":"select__modalContent_10wrb","sheetContainer":"select__sheetContainer_10wrb","optionsListWrapper":"select__optionsListWrapper_10wrb","optionsList":"select__optionsList_10wrb","scrollbar":"select__scrollbar_10wrb","search":"select__search_10wrb","option":"select__option_10wrb","optionGroup":"select__optionGroup_10wrb"};
2
- require('./components/base-select/mobile.css')
3
-
4
- export { mobileStyles as m };
@@ -1,6 +0,0 @@
1
- 'use strict';
2
-
3
- var mobileStyles = {"sheet":"select__sheet_10wrb","sheetContent":"select__sheetContent_10wrb","modalContent":"select__modalContent_10wrb","sheetContainer":"select__sheetContainer_10wrb","optionsListWrapper":"select__optionsListWrapper_10wrb","optionsList":"select__optionsList_10wrb","scrollbar":"select__scrollbar_10wrb","search":"select__search_10wrb","option":"select__option_10wrb","optionGroup":"select__optionGroup_10wrb"};
4
- require('./components/base-select/mobile.css')
5
-
6
- exports.mobileStyles = mobileStyles;
@@ -1,4 +0,0 @@
1
- const mobileStyles = {"sheet":"select__sheet_10wrb","sheetContent":"select__sheetContent_10wrb","modalContent":"select__modalContent_10wrb","sheetContainer":"select__sheetContainer_10wrb","optionsListWrapper":"select__optionsListWrapper_10wrb","optionsList":"select__optionsList_10wrb","scrollbar":"select__scrollbar_10wrb","search":"select__search_10wrb","option":"select__option_10wrb","optionGroup":"select__optionGroup_10wrb"};
2
- require('./components/base-select/mobile.css')
3
-
4
- export { mobileStyles as m };
@@ -1,111 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseSelectProps, OptionShape } from "./typings";
3
- type UseSelectWithApplyProps = {
4
- /**
5
- * Список выбранных пунктов
6
- */
7
- selected: BaseSelectProps['selected'];
8
- /**
9
- * Список вариантов выбора
10
- */
11
- options: BaseSelectProps['options'];
12
- /**
13
- * Обработчик выбора
14
- */
15
- onChange: BaseSelectProps['onChange'];
16
- /**
17
- * Дополнительный обработчик клика на чекбокс выбрать все
18
- */
19
- onSelectAllClick?: (selectedMultiple: OptionShape[]) => void;
20
- /**
21
- * Компонент выпадающего меню
22
- */
23
- OptionsList?: BaseSelectProps['OptionsList'];
24
- /**
25
- * Пропсы, которые будут прокинуты в компонент списка
26
- */
27
- optionsListProps?: BaseSelectProps['optionsListProps'];
28
- /**
29
- * Включает отображение поиска
30
- */
31
- showSearch?: BaseSelectProps['showSearch'];
32
- /**
33
- * Настройки поиска
34
- */
35
- searchProps?: BaseSelectProps['searchProps'];
36
- /**
37
- * Показывать кнопку очистки
38
- */
39
- showClear?: boolean;
40
- /**
41
- * Показывать пункт "Выбрать все"
42
- */
43
- showSelectAll?: boolean;
44
- /**
45
- * Показывать пункт "Выбрать все" в заголовке списка
46
- */
47
- showHeaderWithSelectAll?: boolean;
48
- };
49
- declare const SELECT_ALL_KEY = "select_all";
50
- declare function useSelectWithApply({ options, selected, onChange, onSelectAllClick, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
51
- OptionsList: import("react").ForwardRefExoticComponent<import("./typings").OptionsListProps & {
52
- showClear?: boolean | undefined;
53
- onClose?: (() => void) | undefined;
54
- selectedDraft?: OptionShape[] | undefined;
55
- OptionsList?: import("react").FC<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
56
- Footer?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/footer/Component").FooterProps> | undefined;
57
- Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
58
- headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
59
- showHeaderWithSelectAll?: boolean | undefined;
60
- setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
61
- } & import("react").RefAttributes<HTMLDivElement>>;
62
- optionsListProps: {
63
- OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
64
- showClear: boolean;
65
- onClear: () => void;
66
- onApply: () => void;
67
- onClose: () => void;
68
- selectedDraft: OptionShape[];
69
- setSelectedDraft: import("react").Dispatch<import("react").SetStateAction<OptionShape[]>>;
70
- showHeaderWithSelectAll: boolean;
71
- headerProps: any;
72
- };
73
- multiple: boolean;
74
- options: (OptionShape | import("./typings").GroupShape | {
75
- key: string;
76
- content: string;
77
- })[];
78
- onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
79
- selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
80
- showSearch: boolean;
81
- searchProps: {
82
- value: string;
83
- onChange: ((value: string) => void) | undefined;
84
- componentProps?: import("./typings").SearchProps | undefined;
85
- accessor?: ((option: OptionShape) => string) | undefined;
86
- filterFn?: ((optionText: string, search: string) => boolean) | undefined;
87
- filterGroup?: boolean | undefined;
88
- groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
89
- } | undefined;
90
- originalProps: {
91
- options: (OptionShape | import("./typings").GroupShape)[];
92
- selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
93
- onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
94
- OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
95
- optionsListProps: unknown;
96
- showClear: boolean;
97
- showSelectAll: boolean;
98
- showHeaderWithSelectAll: boolean;
99
- showSearch: boolean;
100
- searchProps: {
101
- componentProps?: import("./typings").SearchProps | undefined;
102
- accessor?: ((option: OptionShape) => string) | undefined;
103
- filterFn?: ((optionText: string, search: string) => boolean) | undefined;
104
- value?: string | undefined;
105
- onChange?: ((value: string) => void) | undefined;
106
- filterGroup?: boolean | undefined;
107
- groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
108
- };
109
- };
110
- };
111
- export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
File without changes
File without changes
File without changes