@alfalab/core-components-input-autocomplete 9.4.0 → 9.4.2

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 (71) hide show
  1. package/Component-aed0af6e.d.ts +11 -0
  2. package/{Component-4b555174.d.ts → Component-b4e70cb0.d.ts} +4 -0
  3. package/Component-bdb4c6b9.d.ts +7 -11
  4. package/Component-f12ee135.d.ts +3 -3
  5. package/{Component.mobile-b2c0420d.d.ts → Component.mobile-e81c389f.d.ts} +5 -2
  6. package/Component.mobile.js +2 -2
  7. package/Component.modal.mobile.d.ts +10 -2
  8. package/Component.modal.mobile.js +2 -2
  9. package/Component.responsive.js +1 -1
  10. package/autocomplete-field/Component.js +1 -1
  11. package/autocomplete-field/index.css +2 -2
  12. package/autocomplete-mobile-field/Component.js +1 -1
  13. package/autocomplete-mobile-field/index.css +8 -8
  14. package/cssm/Component-aed0af6e.d.ts +11 -0
  15. package/{esm/Component-4b555174.d.ts → cssm/Component-b4e70cb0.d.ts} +4 -0
  16. package/cssm/Component-bdb4c6b9.d.ts +7 -11
  17. package/cssm/Component-f12ee135.d.ts +3 -3
  18. package/cssm/{Component.mobile-b2c0420d.d.ts → Component.mobile-e81c389f.d.ts} +5 -2
  19. package/cssm/Component.mobile.js +1 -1
  20. package/cssm/Component.modal.mobile.d.ts +10 -2
  21. package/cssm/Component.modal.mobile.js +1 -1
  22. package/cssm/{hook-4b555174.d.ts → hook-b4e70cb0.d.ts} +17 -6
  23. package/cssm/index-ebda875c.d.ts +95 -216
  24. package/cssm/index-f12ee135.d.ts +4 -0
  25. package/esm/Component-aed0af6e.d.ts +11 -0
  26. package/{cssm/Component-4b555174.d.ts → esm/Component-b4e70cb0.d.ts} +4 -0
  27. package/esm/Component.mobile.js +2 -2
  28. package/esm/Component.modal.mobile.d.ts +9 -1
  29. package/esm/Component.modal.mobile.js +2 -2
  30. package/esm/Component.responsive.js +1 -1
  31. package/esm/autocomplete-field/Component.js +1 -1
  32. package/esm/autocomplete-field/index.css +2 -2
  33. package/esm/autocomplete-mobile-field/Component.js +1 -1
  34. package/esm/autocomplete-mobile-field/index.css +8 -8
  35. package/esm/{hook-4b555174.d.ts → hook-b4e70cb0.d.ts} +17 -6
  36. package/esm/index-ebda875c.d.ts +95 -216
  37. package/esm/index-f12ee135.d.ts +4 -0
  38. package/esm/index.js +1 -1
  39. package/esm/mobile.css +4 -4
  40. package/esm/mobile.js +1 -1
  41. package/esm/{mobile.module-0ca7666f.js → mobile.module-0f496cf3.js} +1 -1
  42. package/esm/responsive.js +1 -1
  43. package/{hook-4b555174.d.ts → hook-b4e70cb0.d.ts} +17 -6
  44. package/index-ebda875c.d.ts +95 -216
  45. package/index-f12ee135.d.ts +4 -0
  46. package/index.js +1 -1
  47. package/mobile.css +4 -4
  48. package/mobile.js +1 -1
  49. package/{mobile.module-48c4c311.js → mobile.module-f85b4300.js} +1 -1
  50. package/modern/Component-aed0af6e.d.ts +11 -0
  51. package/modern/{Component-4b555174.d.ts → Component-b4e70cb0.d.ts} +4 -0
  52. package/modern/Component.desktop.d.ts +4 -4
  53. package/modern/Component.mobile.js +2 -2
  54. package/modern/Component.modal.mobile.d.ts +9 -1
  55. package/modern/Component.modal.mobile.js +2 -2
  56. package/modern/Component.responsive.d.ts +4 -4
  57. package/modern/Component.responsive.js +1 -1
  58. package/modern/autocomplete-field/Component.js +1 -1
  59. package/modern/autocomplete-field/index.css +2 -2
  60. package/modern/autocomplete-mobile-field/Component.js +1 -1
  61. package/modern/autocomplete-mobile-field/index.css +8 -8
  62. package/modern/{hook-4b555174.d.ts → hook-b4e70cb0.d.ts} +17 -6
  63. package/modern/index-ebda875c.d.ts +95 -216
  64. package/modern/index-f12ee135.d.ts +4 -0
  65. package/modern/index.js +1 -1
  66. package/modern/mobile.css +4 -4
  67. package/modern/mobile.js +1 -1
  68. package/modern/{mobile.module-95a2557d.js → mobile.module-bcf5a0ca.js} +1 -1
  69. package/modern/responsive.js +1 -1
  70. package/package.json +2 -2
  71. package/responsive.js +1 -1
@@ -1,219 +1,98 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react-transition-group" />
3
3
  import React from "react";
4
- import { HTMLAttributes } from "react";
5
- type ScrollbarProps = {
6
- /**
7
- * Оборачиваемый элемент.
8
- */
9
- children?: React.ReactNode;
10
- /**
11
- * Дополнительный класс на корневой элемент.
12
- */
13
- className?: string;
14
- /**
15
- * Набор цветов для компонента
16
- */
17
- colors?: "default" | "inverted";
18
- /**
19
- * Растягивать контент по горизонтали по ширине содержимого.
20
- */
21
- horizontalAutoStretch?: boolean;
22
- /**
23
- * Название css свойства, которое устанавливается на контейнер при horizontalAutoStretch.
24
- */
25
- widthPropName?: "minWidth" | "width" | "maxWidth";
26
- /**
27
- * Включает автоскрытие ползунка.
28
- */
29
- autoHide?: boolean;
30
- /**
31
- * Время в мс, определяющее задержку до исчезновения полосы прокрутки (при включенной опции autoHide).
32
- */
33
- autoHideTimeout?: number;
34
- /**
35
- * Принудительное отображение полосы прокрутки.
36
- */
37
- forceVisible?: boolean | "x" | "y";
38
- /**
39
- * Управление поведением клика по треку.
40
- * Если true, то будет выполняться прокрутка к месту клика.
41
- */
42
- clickOnTrack?: boolean;
43
- /**
44
- * HTML-aтрибуты на прокручиваемый узел.
45
- */
46
- scrollableNodeProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
47
- /**
48
- * HTML-aтрибуты на узел с контентом.
49
- */
50
- contentNodeProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
51
- } & HTMLAttributes<HTMLDivElement>;
52
- declare const Scrollbar: React.ForwardRefExoticComponent<{
53
- children?: React.ReactNode;
54
- className?: string | undefined;
55
- colors?: "default" | "inverted" | undefined;
56
- horizontalAutoStretch?: boolean | undefined;
57
- widthPropName?: "minWidth" | "width" | "maxWidth" | undefined;
58
- autoHide?: boolean | undefined;
59
- autoHideTimeout?: number | undefined;
60
- forceVisible?: boolean | "x" | "y" | undefined;
61
- clickOnTrack?: boolean | undefined;
62
- scrollableNodeProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | undefined;
63
- contentNodeProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | undefined;
64
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
65
- declare class SimpleBar {
66
- static getRtlHelpers(): {
67
- isRtlScrollingInverted: boolean;
68
- isRtlScrollbarInverted: boolean;
69
- };
70
- static defaultOptions: {
71
- autoHide: boolean;
72
- forceVisible: boolean;
73
- clickOnTrack: boolean;
74
- clickOnTrackSpeed: number;
75
- classNames: {
76
- contentEl: string;
77
- contentWrapper: string;
78
- offset: string;
79
- mask: string;
80
- wrapper: string;
81
- placeholder: string;
82
- scrollbar: string;
83
- track: string;
84
- heightAutoObserverWrapperEl: string;
85
- heightAutoObserverEl: string;
86
- visible: string;
87
- horizontal: string;
88
- vertical: string;
89
- hover: string;
90
- dragging: string;
91
- };
92
- scrollbarMinSize: number;
93
- scrollbarMaxSize: number;
94
- timeout: number;
95
- };
96
- static getOffset(el: any): {
97
- top: any;
98
- left: any;
99
- };
100
- static instances: WeakMap<object, any>;
101
- constructor(element: any, options: any);
102
- el: any;
103
- minScrollbarWidth: number;
104
- options: any;
105
- classNames: any;
106
- axis: {
107
- x: {
108
- scrollOffsetAttr: string;
109
- sizeAttr: string;
110
- scrollSizeAttr: string;
111
- offsetSizeAttr: string;
112
- offsetAttr: string;
113
- overflowAttr: string;
114
- dragOffset: number;
115
- isOverflowing: boolean;
116
- isVisible: boolean;
117
- forceVisible: boolean;
118
- track: {};
119
- scrollbar: {};
120
- };
121
- y: {
122
- scrollOffsetAttr: string;
123
- sizeAttr: string;
124
- scrollSizeAttr: string;
125
- offsetSizeAttr: string;
126
- offsetAttr: string;
127
- overflowAttr: string;
128
- dragOffset: number;
129
- isOverflowing: boolean;
130
- isVisible: boolean;
131
- forceVisible: boolean;
132
- track: {};
133
- scrollbar: {};
134
- };
135
- };
136
- removePreventClickId: any;
137
- recalculate(): void;
138
- onMouseMove: (e: any) => void;
139
- hideScrollbars: () => void;
140
- onWindowResize: () => void;
141
- init(): void;
142
- scrollbarWidth: any;
143
- initDOM(): void;
144
- wrapperEl: any;
145
- contentWrapperEl: any;
146
- contentEl: any;
147
- offsetEl: any;
148
- maskEl: any;
149
- placeholderEl: any;
150
- heightAutoObserverWrapperEl: any;
151
- heightAutoObserverEl: any;
152
- setAccessibilityAttributes(): void;
153
- initListeners(): void;
154
- resizeObserver: any;
155
- mutationObserver: any;
156
- elStyles: any;
157
- isRtl: boolean | undefined;
158
- getScrollbarSize(axis?: string): number;
159
- positionScrollbar(axis?: string): void;
160
- toggleTrackVisibility(axis?: string): void;
161
- hideNativeScrollbar(): void;
162
- onScroll: () => void;
163
- scrollXTicking: boolean | undefined;
164
- scrollYTicking: boolean | undefined;
165
- scrollX: () => void;
166
- scrollY: () => void;
167
- onMouseEnter: () => void;
168
- mouseX: any;
169
- mouseY: any;
170
- onMouseMoveForAxis(axis?: string): void;
171
- onMouseLeave: () => void;
172
- onMouseLeaveForAxis(axis?: string): void;
173
- showScrollbar(axis?: string): void;
174
- onPointerEvent: (e: any) => void;
175
- onDragStart(e: any, axis?: string): void;
176
- draggedAxis: string | undefined;
177
- drag: (e: any) => void;
178
- onEndDrag: (e: any) => void;
179
- preventClick: (e: any) => void;
180
- onTrackClick(e: any, axis?: string): void;
181
- getContentElement(): any;
182
- getScrollElement(): any;
183
- getScrollbarWidth(): any;
184
- removeListeners(): void;
185
- unMount(): void;
186
- isWithinBounds(bbox: any): boolean;
187
- findChild(el: any, query: any): any;
188
- }
189
- declare function memoize(func: Function, resolver?: Function | undefined): Function;
190
- declare namespace memoize$0 {
191
- export { MapCache as Cache };
192
- }
193
- declare function MapCache(entries?: any[] | undefined): void;
194
- declare class MapCache {
195
- private constructor();
196
- clear: typeof mapCacheClear;
197
- delete: typeof mapCacheDelete;
198
- get: typeof mapCacheGet;
199
- has: typeof mapCacheHas;
200
- set: typeof mapCacheSet;
201
- }
202
- declare function mapCacheClear(): void;
203
- declare class mapCacheClear {
204
- __data__: {
205
- hash: Hash;
206
- map: any;
207
- string: Hash;
208
- };
209
- }
210
- declare function mapCacheDelete(key: string): boolean;
211
- declare function mapCacheGet(key: string): any;
212
- declare function mapCacheHas(key: string): boolean;
213
- declare function mapCacheSet(key: string, value: any): Object;
214
- declare var canUseDOM: boolean;
215
- declare function scrollbarWidth(el: any): any;
216
- declare function getElementWindow(element: any): any;
217
- declare function getElementDocument(element: any): any;
218
- declare function getOptions(obj: any): unknown;
219
- export { memoize as default, ScrollbarProps, Scrollbar, getElementWindow, getElementDocument, getOptions };
4
+ import { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
5
+ type NativeProps = InputHTMLAttributes<HTMLInputElement>;
6
+ type Align = "start" | "center";
7
+ type CheckboxProps = Omit<NativeProps, "size" | "onChange" | "enterKeyHint"> & {
8
+ /**
9
+ * Управление состоянием вкл/выкл чекбокса (native prop)
10
+ */
11
+ checked?: boolean;
12
+ /**
13
+ * Обработчик переключения чекбокса
14
+ */
15
+ onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
16
+ checked: boolean;
17
+ name?: string;
18
+ }) => void;
19
+ /**
20
+ * Текст подписи к чекбоксу
21
+ */
22
+ label?: ReactNode;
23
+ /**
24
+ * Текст подсказки снизу
25
+ */
26
+ hint?: ReactNode;
27
+ /**
28
+ * Размер компонента
29
+ */
30
+ size?: "s" | "m";
31
+ /**
32
+ * Доп. класс чекбокса
33
+ */
34
+ boxClassName?: string;
35
+ /**
36
+ * Доп. класс контента
37
+ */
38
+ contentClassName?: string;
39
+ /**
40
+ * Выравнивание
41
+ */
42
+ align?: Align;
43
+ /**
44
+ * Дополнительный слот
45
+ */
46
+ addons?: React.ReactNode;
47
+ /**
48
+ * Растягивать ли компонент на всю ширину
49
+ */
50
+ block?: boolean;
51
+ /**
52
+ * Управление состоянием включен / выключен
53
+ */
54
+ disabled?: boolean;
55
+ /**
56
+ * Управление состоянием активен / неактивен
57
+ */
58
+ inactive?: boolean;
59
+ /**
60
+ * Идентификатор для систем автоматизированного тестирования
61
+ */
62
+ dataTestId?: string;
63
+ /**
64
+ * Управление неопределенным состоянием чекбокса
65
+ */
66
+ indeterminate?: boolean;
67
+ /**
68
+ * Отображение ошибки
69
+ */
70
+ error?: ReactNode | boolean;
71
+ /**
72
+ * Флаг для скрытия нативного инпута.
73
+ * @default false
74
+ */
75
+ hiddenInput?: boolean;
76
+ };
77
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size" | "onChange" | "enterKeyHint"> & {
78
+ checked?: boolean | undefined;
79
+ onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
80
+ checked: boolean;
81
+ name?: string;
82
+ }) => void) | undefined;
83
+ label?: ReactNode;
84
+ hint?: ReactNode;
85
+ size?: "s" | "m" | undefined;
86
+ boxClassName?: string | undefined;
87
+ contentClassName?: string | undefined;
88
+ align?: Align | undefined;
89
+ addons?: React.ReactNode;
90
+ block?: boolean | undefined;
91
+ disabled?: boolean | undefined;
92
+ inactive?: boolean | undefined;
93
+ dataTestId?: string | undefined;
94
+ indeterminate?: boolean | undefined;
95
+ error?: ReactNode | boolean;
96
+ hiddenInput?: boolean | undefined;
97
+ } & React.RefAttributes<HTMLLabelElement>>;
98
+ export { CheckboxProps, Checkbox };
@@ -165,6 +165,10 @@ type BottomSheetProps = {
165
165
  * Отключает блокировку скролла при открытии модального окна
166
166
  */
167
167
  disableBlockingScroll?: boolean;
168
+ /**
169
+ * Отключает ловушку фокуса
170
+ */
171
+ disableFocusLock?: boolean;
168
172
  /**
169
173
  * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
170
174
  * Не анимировать шторку при изменении размера вьюпорта
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { CheckboxProps } from "./index-ebda875c";
4
+ type HeaderProps = {
5
+ checked?: boolean;
6
+ indeterminate?: boolean;
7
+ onChange?: CheckboxProps['onChange'];
8
+ mobile?: boolean;
9
+ };
10
+ declare const Header: React.FC<HeaderProps>;
11
+ export { HeaderProps, Header };
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { OptionShape, OptionsListProps } from "./typings-5e1b8383";
3
3
  import React from 'react';
4
+ import { HeaderProps } from "./Component-aed0af6e";
4
5
  type FooterProps = {
5
6
  handleClear?: () => void;
6
7
  handleApply?: () => void;
@@ -14,5 +15,8 @@ declare const OptionsListWithApply: React.ForwardRefExoticComponent<OptionsListP
14
15
  selectedDraft?: OptionShape[] | undefined;
15
16
  OptionsList?: React.FC<OptionsListProps & React.RefAttributes<HTMLDivElement>> | undefined;
16
17
  Footer?: React.FC<FooterProps> | undefined;
18
+ Header?: React.FC<HeaderProps> | undefined;
19
+ headerProps?: HeaderProps | undefined;
20
+ showHeaderWithSelectAll?: boolean | undefined;
17
21
  } & React.RefAttributes<HTMLDivElement>>;
18
22
  export { FooterProps, Footer, OptionsListWithApply };
@@ -7,7 +7,7 @@ import { Button } from '@alfalab/core-components-button/esm';
7
7
  import { Input } from '@alfalab/core-components-input/esm';
8
8
  import { SelectMobile } from '@alfalab/core-components-select/esm';
9
9
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
10
- import { s as styles } from './mobile.module-0ca7666f.js';
10
+ import { s as styles } from './mobile.module-0f496cf3.js';
11
11
  import '@alfalab/core-components-form-control/esm';
12
12
  import '@alfalab/hooks';
13
13
 
@@ -72,7 +72,7 @@ var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
72
72
  bottomSheetHeaderAddonsProps.ref,
73
73
  ]) }))), initialHeight: 'full' }, bottomSheetProps), { containerProps: __assign({ onTouchMove: handleOptionsListTouchMove }, bottomSheetProps.containerProps) });
74
74
  };
75
- return (React.createElement(SelectMobile, __assign({ ref: mergeRefs([targetRef, ref]), selected: selected || SELECTED, open: Boolean(open || openProp), onOpen: handleOpen, onChange: handleChange, Arrow: Arrow, Field: AutocompleteMobileField, fieldProps: { value: value }, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, bottomSheetProps: getBottomSheetProps(), optionsListProps: { showFooter: false } }, restProps)));
75
+ return (React.createElement(SelectMobile, __assign({ ref: mergeRefs([targetRef, ref]), selected: selected || SELECTED, open: Boolean(open || openProp), onOpen: handleOpen, onChange: handleChange, Arrow: Arrow, Field: AutocompleteMobileField, fieldProps: { value: value }, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, useWithApplyHook: false, bottomSheetProps: getBottomSheetProps(), optionsListProps: { showFooter: false } }, restProps)));
76
76
  });
77
77
 
78
78
  export { InputAutocompleteMobile };
@@ -4,7 +4,7 @@ import { ChangeEvent, ElementType } from "react";
4
4
  import { ButtonProps } from "@alfalab/core-components-button";
5
5
  import { BaseSelectChangePayload } from "./index-3e68f8db";
6
6
  import { ModalMobile } from "./Component.mobile-e81c389f";
7
- import { UseSelectWithApplyProps } from "./hook-4b555174";
7
+ import { UseSelectWithApplyProps } from "./hook-b4e70cb0";
8
8
  import { BaseSelectProps } from "./typings-5e1b8383";
9
9
  type SelectModalMobileProps = Omit<BaseSelectProps, "Checkmark" | "onScroll"> & {
10
10
  /**
@@ -27,6 +27,14 @@ type SelectModalMobileProps = Omit<BaseSelectProps, "Checkmark" | "onScroll"> &
27
27
  * Дополнительные пропсы футера модалки
28
28
  */
29
29
  modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
30
+ /*
31
+ * Показывать пункт "Выбрать все" в заголовке списка
32
+ */
33
+ showHeaderWithSelectAll?: UseSelectWithApplyProps["showHeaderWithSelectAll"];
34
+ /**
35
+ * Использовать ли хук useSelectWithApply
36
+ */
37
+ useWithApplyHook?: boolean;
30
38
  };
31
39
  type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
32
40
  /**
@@ -7,7 +7,7 @@ import { Button } from '@alfalab/core-components-button/esm';
7
7
  import { Input } from '@alfalab/core-components-input/esm';
8
8
  import { SelectModalMobile } from '@alfalab/core-components-select/esm/mobile';
9
9
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
10
- import { s as styles } from './mobile.module-0ca7666f.js';
10
+ import { s as styles } from './mobile.module-0f496cf3.js';
11
11
  import '@alfalab/core-components-form-control/esm';
12
12
  import '@alfalab/hooks';
13
13
 
@@ -60,7 +60,7 @@ var InputAutocompleteModalMobile = React.forwardRef(function (_a, ref) {
60
60
  var renderFooter = function () { return (React.createElement(React.Fragment, null,
61
61
  React.createElement(Button, __assign({ block: true, view: 'primary', size: 's', onClick: handleApply }, continueButtonProps), "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"),
62
62
  React.createElement(Button, __assign({ block: true, view: 'secondary', size: 's', onClick: handleCancel }, cancelButtonProps), "\u041E\u0442\u043C\u0435\u043D\u0430"))); };
63
- return (React.createElement(SelectModalMobile, __assign({}, restProps, { ref: mergeRefs([ref, targetRef]), name: name, Field: AutocompleteMobileField, Arrow: Arrow, onOpen: handleOpen, onChange: handleChange, multiple: multiple, open: openProp !== null && openProp !== void 0 ? openProp : open, size: size, fieldProps: { value: value }, placeholder: placeholder, modalProps: __assign(__assign({}, restProps.modalProps), { componentRef: modalScrollableRef }), modalHeaderProps: __assign(__assign({}, restProps.modalHeaderProps), { bottomAddons: renderBottomAddon() }), modalFooterProps: __assign(__assign({ sticky: true }, restProps.modalFooterProps), { children: renderFooter() }) })));
63
+ return (React.createElement(SelectModalMobile, __assign({}, restProps, { ref: mergeRefs([ref, targetRef]), name: name, Field: AutocompleteMobileField, Arrow: Arrow, onOpen: handleOpen, onChange: handleChange, multiple: multiple, open: openProp !== null && openProp !== void 0 ? openProp : open, size: size, fieldProps: { value: value }, placeholder: placeholder, useWithApplyHook: false, modalProps: __assign(__assign({}, restProps.modalProps), { componentRef: modalScrollableRef }), modalHeaderProps: __assign(__assign({}, restProps.modalHeaderProps), { bottomAddons: renderBottomAddon() }), modalFooterProps: __assign(__assign({ sticky: true }, restProps.modalFooterProps), { children: renderFooter() }) })));
64
64
  });
65
65
 
66
66
  export { InputAutocompleteModalMobile };
@@ -12,7 +12,7 @@ import 'lodash.throttle';
12
12
  import '@alfalab/core-components-button/esm';
13
13
  import './autocomplete-mobile-field/Component.js';
14
14
  import '@alfalab/core-components-form-control/esm';
15
- import './mobile.module-0ca7666f.js';
15
+ import './mobile.module-0f496cf3.js';
16
16
 
17
17
  var InputAutocompleteResponsive = forwardRef(function (_a, ref) {
18
18
  var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["breakpoint"]);
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
5
  import { Input } from '@alfalab/core-components-input/esm';
6
6
 
7
- var styles = {"arrow":"input-autocomplete__arrow_wso45","error":"input-autocomplete__error_wso45"};
7
+ var styles = {"arrow":"input-autocomplete__arrow_24bt3","error":"input-autocomplete__error_24bt3"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 16dtc */
2
- .input-autocomplete__arrow_wso45.input-autocomplete__error_wso45 ~ * {
1
+ /* hash: 1y3i0 */
2
+ .input-autocomplete__arrow_24bt3.input-autocomplete__error_24bt3 ~ * {
3
3
  display: none;
4
4
  }
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { FormControl } from '@alfalab/core-components-form-control/esm';
5
5
  import { useFocus } from '@alfalab/hooks';
6
6
 
7
- var styles = {"component":"input-autocomplete__component_ob1d1","field":"input-autocomplete__field_ob1d1","disabled":"input-autocomplete__disabled_ob1d1","placeholder":"input-autocomplete__placeholder_ob1d1","contentWrapper":"input-autocomplete__contentWrapper_ob1d1","value":"input-autocomplete__value_ob1d1","focusVisible":"input-autocomplete__focusVisible_ob1d1"};
7
+ var styles = {"component":"input-autocomplete__component_nonoc","field":"input-autocomplete__field_nonoc","disabled":"input-autocomplete__disabled_nonoc","placeholder":"input-autocomplete__placeholder_nonoc","contentWrapper":"input-autocomplete__contentWrapper_nonoc","value":"input-autocomplete__value_nonoc","focusVisible":"input-autocomplete__focusVisible_nonoc"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1x6gj */
1
+ /* hash: dd24a */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -18,16 +18,16 @@
18
18
  } :root {
19
19
  --focus-color: var(--color-light-border-link);
20
20
  --disabled-cursor: not-allowed;
21
- } .input-autocomplete__component_ob1d1 {
21
+ } .input-autocomplete__component_nonoc {
22
22
  width: 100%;
23
23
  outline: none;
24
- } .input-autocomplete__field_ob1d1:not(.input-autocomplete__disabled_ob1d1) {
24
+ } .input-autocomplete__field_nonoc:not(.input-autocomplete__disabled_nonoc) {
25
25
  cursor: pointer;
26
- } .input-autocomplete__disabled_ob1d1 {
26
+ } .input-autocomplete__disabled_nonoc {
27
27
  cursor: var(--disabled-cursor);
28
- } .input-autocomplete__placeholder_ob1d1 {
28
+ } .input-autocomplete__placeholder_nonoc {
29
29
  color: var(--color-light-text-secondary);
30
- } .input-autocomplete__contentWrapper_ob1d1 {
30
+ } .input-autocomplete__contentWrapper_nonoc {
31
31
  font-size: 16px;
32
32
  line-height: 20px;
33
33
  font-weight: 400;
@@ -36,11 +36,11 @@
36
36
  text-overflow: ellipsis;
37
37
  overflow: hidden;
38
38
  width: 100%;
39
- } .input-autocomplete__value_ob1d1 {
39
+ } .input-autocomplete__value_nonoc {
40
40
  overflow: hidden;
41
41
  text-overflow: ellipsis;
42
42
  text-align: left;
43
- } .input-autocomplete__focusVisible_ob1d1 {
43
+ } .input-autocomplete__focusVisible_nonoc {
44
44
  outline: 2px solid var(--focus-color);
45
45
  outline-offset: 2px;
46
46
  }
@@ -29,17 +29,22 @@ type UseSelectWithApplyProps = {
29
29
  * Показывать пункт "Выбрать все"
30
30
  */
31
31
  showSelectAll?: boolean;
32
+ /**
33
+ * Показывать пункт "Выбрать все" в заголовке списка
34
+ */
35
+ showHeaderWithSelectAll?: boolean;
32
36
  };
33
37
  declare const SELECT_ALL_KEY = "select_all";
34
- declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, }: UseSelectWithApplyProps): {
38
+ declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
35
39
  OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
36
40
  showClear?: boolean | undefined;
37
41
  onClose?: (() => void) | undefined;
38
42
  selectedDraft?: OptionShape[] | undefined;
39
- OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined; /**
40
- * Пропсы, которые будут прокинуты в компонент списка
41
- */
42
- Footer?: import("react").FC<import("./Component-4b555174").FooterProps> | undefined;
43
+ OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
44
+ Footer?: import("react").FC<import("./Component-b4e70cb0").FooterProps> | undefined;
45
+ Header?: import("react").FC<import("./Component-aed0af6e").HeaderProps> | undefined;
46
+ headerProps?: import("./Component-aed0af6e").HeaderProps | undefined;
47
+ showHeaderWithSelectAll?: boolean | undefined;
43
48
  } & import("react").RefAttributes<HTMLDivElement>>;
44
49
  optionsListProps: {
45
50
  OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
@@ -48,6 +53,12 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
48
53
  onApply: () => void;
49
54
  onClose: () => void;
50
55
  selectedDraft: OptionShape[];
56
+ showHeaderWithSelectAll: boolean;
57
+ headerProps: {
58
+ indeterminate: boolean;
59
+ checked: boolean;
60
+ onChange: () => void;
61
+ };
51
62
  };
52
63
  allowUnselect: boolean;
53
64
  multiple: boolean;
@@ -58,5 +69,5 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
58
69
  onChange: (payload: import("./index-3e68f8db").BaseSelectChangePayload) => void;
59
70
  selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
60
71
  };
61
- export * from "./Component-4b555174";
72
+ export * from "./Component-b4e70cb0";
62
73
  export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };