@alfalab/core-components-picker-button 11.4.1 → 11.5.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 (68) hide show
  1. package/Component-72dda473.d.ts +3 -0
  2. package/Component-a5b021bd.d.ts +158 -0
  3. package/Component-bdb4c6b9.d.ts +1 -1
  4. package/Component.responsive.d.ts +1 -1
  5. package/Context-c2e6f1b2.d.ts +4 -0
  6. package/{esm/ResponsiveContext-08e5596c.d.ts → ResponsiveContext-8a2a8ad1.d.ts} +1 -1
  7. package/cssm/Component-72dda473.d.ts +3 -0
  8. package/cssm/Component-a5b021bd.d.ts +158 -0
  9. package/cssm/Component-bdb4c6b9.d.ts +1 -1
  10. package/cssm/Component.responsive.d.ts +1 -1
  11. package/cssm/Context-c2e6f1b2.d.ts +4 -0
  12. package/{ResponsiveContext-08e5596c.d.ts → cssm/ResponsiveContext-8a2a8ad1.d.ts} +1 -1
  13. package/cssm/desktop/Component.desktop.d.ts +1 -1
  14. package/cssm/{index-081223cb.d.ts → index-a5b021bd.d.ts} +5 -1
  15. package/{modern/typings-08e5596c.d.ts → cssm/typings-8a2a8ad1.d.ts} +1 -0
  16. package/cssm/typings-c29389e5.d.ts +7 -33
  17. package/cssm/utils/index.js +1 -1
  18. package/desktop/Component.desktop.d.ts +1 -1
  19. package/desktop/Component.desktop.js +1 -1
  20. package/esm/Component-72dda473.d.ts +3 -0
  21. package/esm/Component-a5b021bd.d.ts +158 -0
  22. package/esm/Component-bdb4c6b9.d.ts +1 -1
  23. package/esm/Component.responsive.d.ts +1 -1
  24. package/esm/Context-c2e6f1b2.d.ts +4 -0
  25. package/{modern/ResponsiveContext-08e5596c.d.ts → esm/ResponsiveContext-8a2a8ad1.d.ts} +1 -1
  26. package/esm/desktop/Component.desktop.d.ts +1 -1
  27. package/esm/desktop/Component.desktop.js +1 -1
  28. package/esm/field/Component.js +1 -1
  29. package/esm/field/index.css +6 -6
  30. package/{index-081223cb.d.ts → esm/index-a5b021bd.d.ts} +5 -1
  31. package/esm/index.css +5 -5
  32. package/esm/option/Component.js +1 -1
  33. package/esm/option/index.css +4 -4
  34. package/{cssm/typings-08e5596c.d.ts → esm/typings-8a2a8ad1.d.ts} +1 -0
  35. package/esm/typings-c29389e5.d.ts +7 -33
  36. package/esm/utils/index.js +1 -1
  37. package/field/Component.js +1 -1
  38. package/field/index.css +6 -6
  39. package/{esm/index-081223cb.d.ts → index-a5b021bd.d.ts} +5 -1
  40. package/index.css +5 -5
  41. package/modern/Component-72dda473.d.ts +3 -0
  42. package/modern/Component-a5b021bd.d.ts +158 -0
  43. package/modern/Component-bdb4c6b9.d.ts +1 -1
  44. package/modern/Component.responsive.d.ts +1 -1
  45. package/modern/Context-c2e6f1b2.d.ts +4 -0
  46. package/{cssm/ResponsiveContext-08e5596c.d.ts → modern/ResponsiveContext-8a2a8ad1.d.ts} +1 -1
  47. package/modern/desktop/Component.desktop.d.ts +1 -1
  48. package/modern/desktop/Component.desktop.js +1 -1
  49. package/modern/field/Component.js +1 -1
  50. package/modern/field/index.css +6 -6
  51. package/modern/{index-081223cb.d.ts → index-a5b021bd.d.ts} +5 -1
  52. package/modern/index.css +5 -5
  53. package/modern/option/Component.js +1 -1
  54. package/modern/option/index.css +4 -4
  55. package/{typings-08e5596c.d.ts → modern/typings-8a2a8ad1.d.ts} +1 -0
  56. package/modern/typings-c29389e5.d.ts +7 -33
  57. package/modern/utils/index.js +1 -1
  58. package/option/Component.js +1 -1
  59. package/option/index.css +4 -4
  60. package/package.json +5 -5
  61. package/src/utils/index.ts +1 -1
  62. package/{esm/typings-08e5596c.d.ts → typings-8a2a8ad1.d.ts} +1 -0
  63. package/typings-c29389e5.d.ts +7 -33
  64. package/utils/index.js +1 -1
  65. package/Component-081223cb.d.ts +0 -224
  66. package/cssm/Component-081223cb.d.ts +0 -224
  67. package/esm/Component-081223cb.d.ts +0 -224
  68. package/modern/Component-081223cb.d.ts +0 -224
@@ -49,5 +49,8 @@ type BadgeProps = {
49
49
  */
50
50
  dataTestId?: string;
51
51
  };
52
+ /**
53
+ * @deprecated Используйте StatusBadge или Indicator
54
+ */
52
55
  declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
53
56
  export { IconColorType, BadgeProps, Badge };
@@ -0,0 +1,158 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
4
+ type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
+ type Align = 'start' | 'center';
6
+ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
7
+ /**
8
+ * Управление состоянием вкл/выкл чекбокса (native prop)
9
+ */
10
+ checked?: boolean;
11
+ /**
12
+ * Обработчик переключения чекбокса
13
+ */
14
+ onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
15
+ checked: boolean;
16
+ name?: string;
17
+ }) => void;
18
+ /**
19
+ * Текст подписи к чекбоксу
20
+ */
21
+ label?: ReactNode;
22
+ /**
23
+ * Текст подсказки снизу
24
+ */
25
+ hint?: ReactNode;
26
+ /**
27
+ * Размер компонента
28
+ */
29
+ size?: 's' | 'm';
30
+ /**
31
+ * Доп. класс чекбокса
32
+ */
33
+ boxClassName?: string;
34
+ /**
35
+ * Доп. класс контента
36
+ */
37
+ contentClassName?: string;
38
+ /**
39
+ * Выравнивание
40
+ */
41
+ align?: Align;
42
+ /**
43
+ * Дополнительный слот
44
+ */
45
+ addons?: React.ReactNode;
46
+ /**
47
+ * Растягивать ли компонент на всю ширину
48
+ */
49
+ block?: boolean;
50
+ /**
51
+ * Управление состоянием включен / выключен
52
+ */
53
+ disabled?: boolean;
54
+ /**
55
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
56
+ * Используйте props disabled
57
+ * Управление состоянием активен / неактивен
58
+ */
59
+ inactive?: boolean;
60
+ /**
61
+ * Идентификатор для систем автоматизированного тестирования
62
+ */
63
+ dataTestId?: string;
64
+ /**
65
+ * Управление неопределенным состоянием чекбокса
66
+ */
67
+ indeterminate?: boolean;
68
+ /**
69
+ * Отображение ошибки
70
+ */
71
+ error?: ReactNode | boolean;
72
+ /**
73
+ * Флаг для скрытия нативного инпута.
74
+ * @default false
75
+ */
76
+ hiddenInput?: boolean;
77
+ /**
78
+ * Пропсы для label
79
+ */
80
+ labelProps?: DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
81
+ };
82
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size" | "onChange" | "enterKeyHint"> & {
83
+ /**
84
+ * Управление состоянием вкл/выкл чекбокса (native prop)
85
+ */
86
+ checked?: boolean | undefined;
87
+ /**
88
+ * Обработчик переключения чекбокса
89
+ */
90
+ onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
91
+ checked: boolean;
92
+ name?: string;
93
+ }) => void) | undefined;
94
+ /**
95
+ * Текст подписи к чекбоксу
96
+ */
97
+ label?: ReactNode;
98
+ /**
99
+ * Текст подсказки снизу
100
+ */
101
+ hint?: ReactNode;
102
+ /**
103
+ * Размер компонента
104
+ */
105
+ size?: "s" | "m" | undefined;
106
+ /**
107
+ * Доп. класс чекбокса
108
+ */
109
+ boxClassName?: string | undefined;
110
+ /**
111
+ * Доп. класс контента
112
+ */
113
+ contentClassName?: string | undefined;
114
+ /**
115
+ * Выравнивание
116
+ */
117
+ align?: Align | undefined;
118
+ /**
119
+ * Дополнительный слот
120
+ */
121
+ addons?: React.ReactNode;
122
+ /**
123
+ * Растягивать ли компонент на всю ширину
124
+ */
125
+ block?: boolean | undefined;
126
+ /**
127
+ * Управление состоянием включен / выключен
128
+ */
129
+ disabled?: boolean | undefined;
130
+ /**
131
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
132
+ * Используйте props disabled
133
+ * Управление состоянием активен / неактивен
134
+ */
135
+ inactive?: boolean | undefined;
136
+ /**
137
+ * Идентификатор для систем автоматизированного тестирования
138
+ */
139
+ dataTestId?: string | undefined;
140
+ /**
141
+ * Управление неопределенным состоянием чекбокса
142
+ */
143
+ indeterminate?: boolean | undefined;
144
+ /**
145
+ * Отображение ошибки
146
+ */
147
+ error?: ReactNode | boolean;
148
+ /**
149
+ * Флаг для скрытия нативного инпута.
150
+ * @default false
151
+ */
152
+ hiddenInput?: boolean | undefined;
153
+ /**
154
+ * Пропсы для label
155
+ */
156
+ labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
157
+ } & React.RefAttributes<HTMLLabelElement>>;
158
+ export { CheckboxProps, Checkbox };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { View } from "./typings-08e5596c";
3
+ import { View } from "./typings-8a2a8ad1";
4
4
  declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
5
5
  size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
6
6
  fullscreen?: boolean | undefined;
@@ -9,7 +9,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
9
9
  */
10
10
  breakpoint?: number;
11
11
  };
12
- declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<import("@alfalab/core-components-button").ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
12
+ declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<import("@alfalab/core-components-button").ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
13
13
  options: ((import("@alfalab/core-components-select/shared").OptionShape | import("@alfalab/core-components-select/shared").GroupShape) & {
14
14
  icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
15
15
  })[];
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { BaseModalContext } from "./index-bdb4c6b9";
3
+ declare const ModalContext: import("react").Context<BaseModalContext>;
4
+ export { ModalContext };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { TResponsiveModalContext } from "./typings-08e5596c";
3
+ import { TResponsiveModalContext } from "./typings-8a2a8ad1";
4
4
  declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
5
  export { ResponsiveContext };
@@ -49,5 +49,8 @@ type BadgeProps = {
49
49
  */
50
50
  dataTestId?: string;
51
51
  };
52
+ /**
53
+ * @deprecated Используйте StatusBadge или Indicator
54
+ */
52
55
  declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
53
56
  export { IconColorType, BadgeProps, Badge };
@@ -0,0 +1,158 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
4
+ type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
+ type Align = 'start' | 'center';
6
+ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
7
+ /**
8
+ * Управление состоянием вкл/выкл чекбокса (native prop)
9
+ */
10
+ checked?: boolean;
11
+ /**
12
+ * Обработчик переключения чекбокса
13
+ */
14
+ onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
15
+ checked: boolean;
16
+ name?: string;
17
+ }) => void;
18
+ /**
19
+ * Текст подписи к чекбоксу
20
+ */
21
+ label?: ReactNode;
22
+ /**
23
+ * Текст подсказки снизу
24
+ */
25
+ hint?: ReactNode;
26
+ /**
27
+ * Размер компонента
28
+ */
29
+ size?: 's' | 'm';
30
+ /**
31
+ * Доп. класс чекбокса
32
+ */
33
+ boxClassName?: string;
34
+ /**
35
+ * Доп. класс контента
36
+ */
37
+ contentClassName?: string;
38
+ /**
39
+ * Выравнивание
40
+ */
41
+ align?: Align;
42
+ /**
43
+ * Дополнительный слот
44
+ */
45
+ addons?: React.ReactNode;
46
+ /**
47
+ * Растягивать ли компонент на всю ширину
48
+ */
49
+ block?: boolean;
50
+ /**
51
+ * Управление состоянием включен / выключен
52
+ */
53
+ disabled?: boolean;
54
+ /**
55
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
56
+ * Используйте props disabled
57
+ * Управление состоянием активен / неактивен
58
+ */
59
+ inactive?: boolean;
60
+ /**
61
+ * Идентификатор для систем автоматизированного тестирования
62
+ */
63
+ dataTestId?: string;
64
+ /**
65
+ * Управление неопределенным состоянием чекбокса
66
+ */
67
+ indeterminate?: boolean;
68
+ /**
69
+ * Отображение ошибки
70
+ */
71
+ error?: ReactNode | boolean;
72
+ /**
73
+ * Флаг для скрытия нативного инпута.
74
+ * @default false
75
+ */
76
+ hiddenInput?: boolean;
77
+ /**
78
+ * Пропсы для label
79
+ */
80
+ labelProps?: DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
81
+ };
82
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size" | "onChange" | "enterKeyHint"> & {
83
+ /**
84
+ * Управление состоянием вкл/выкл чекбокса (native prop)
85
+ */
86
+ checked?: boolean | undefined;
87
+ /**
88
+ * Обработчик переключения чекбокса
89
+ */
90
+ onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
91
+ checked: boolean;
92
+ name?: string;
93
+ }) => void) | undefined;
94
+ /**
95
+ * Текст подписи к чекбоксу
96
+ */
97
+ label?: ReactNode;
98
+ /**
99
+ * Текст подсказки снизу
100
+ */
101
+ hint?: ReactNode;
102
+ /**
103
+ * Размер компонента
104
+ */
105
+ size?: "s" | "m" | undefined;
106
+ /**
107
+ * Доп. класс чекбокса
108
+ */
109
+ boxClassName?: string | undefined;
110
+ /**
111
+ * Доп. класс контента
112
+ */
113
+ contentClassName?: string | undefined;
114
+ /**
115
+ * Выравнивание
116
+ */
117
+ align?: Align | undefined;
118
+ /**
119
+ * Дополнительный слот
120
+ */
121
+ addons?: React.ReactNode;
122
+ /**
123
+ * Растягивать ли компонент на всю ширину
124
+ */
125
+ block?: boolean | undefined;
126
+ /**
127
+ * Управление состоянием включен / выключен
128
+ */
129
+ disabled?: boolean | undefined;
130
+ /**
131
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
132
+ * Используйте props disabled
133
+ * Управление состоянием активен / неактивен
134
+ */
135
+ inactive?: boolean | undefined;
136
+ /**
137
+ * Идентификатор для систем автоматизированного тестирования
138
+ */
139
+ dataTestId?: string | undefined;
140
+ /**
141
+ * Управление неопределенным состоянием чекбокса
142
+ */
143
+ indeterminate?: boolean | undefined;
144
+ /**
145
+ * Отображение ошибки
146
+ */
147
+ error?: ReactNode | boolean;
148
+ /**
149
+ * Флаг для скрытия нативного инпута.
150
+ * @default false
151
+ */
152
+ hiddenInput?: boolean | undefined;
153
+ /**
154
+ * Пропсы для label
155
+ */
156
+ labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
157
+ } & React.RefAttributes<HTMLLabelElement>>;
158
+ export { CheckboxProps, Checkbox };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { View } from "./typings-08e5596c";
3
+ import { View } from "./typings-8a2a8ad1";
4
4
  declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
5
5
  size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
6
6
  fullscreen?: boolean | undefined;
@@ -9,7 +9,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
9
9
  */
10
10
  breakpoint?: number;
11
11
  };
12
- declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<import("@alfalab/core-components-button").ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
12
+ declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<import("@alfalab/core-components-button").ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
13
13
  options: ((import("@alfalab/core-components-select/shared").OptionShape | import("@alfalab/core-components-select/shared").GroupShape) & {
14
14
  icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
15
15
  })[];
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { BaseModalContext } from "./index-bdb4c6b9";
3
+ declare const ModalContext: import("react").Context<BaseModalContext>;
4
+ export { ModalContext };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { TResponsiveModalContext } from "./typings-08e5596c";
3
+ import { TResponsiveModalContext } from "./typings-8a2a8ad1";
4
4
  declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
5
  export { ResponsiveContext };
@@ -25,7 +25,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' |
25
25
  */
26
26
  showArrow?: boolean;
27
27
  };
28
- declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
28
+ declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
29
29
  options: Array<BaseSelectProps['options'][0] & {
30
30
  /**
31
31
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -57,5 +57,9 @@ declare const maskUtils: {
57
57
  declare const hooks: {
58
58
  useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
59
59
  };
60
- export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks };
60
+ declare function preventDefault(e: React.UIEvent): void;
61
+ declare const dom: {
62
+ preventDefault: typeof preventDefault;
63
+ };
64
+ export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
61
65
  export * from "./browser-a216f694";
@@ -38,6 +38,7 @@ type View = 'desktop' | 'mobile';
38
38
  type TResponsiveModalContext = {
39
39
  view: View;
40
40
  size: NonNullable<ModalDesktopProps['size']>;
41
+ dataTestId?: string;
41
42
  };
42
43
  type ContentProps = {
43
44
  /**
@@ -4,14 +4,13 @@ import React from "react";
4
4
  import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, AriaAttributes, FocusEvent, MouseEvent, RefAttributes, SVGProps } from "react";
5
5
  import { HandledEvents } from "react-swipeable/es/types";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
- import { BaseModalProps, BaseModalContext } from "./index-bdb4c6b9";
7
+ import { BaseModalProps } from "./index-bdb4c6b9";
8
8
  import { NavigationBarProps } from "./types-667e33fd";
9
9
  import { BackgroundColorType } from "./index-72dda473";
10
10
  import { BaseInputProps, BackdropProps } from "./index-ebda875c";
11
11
  import { SwipeableHandlers } from "react-swipeable";
12
- import { ContentProps } from "./typings-08e5596c";
13
- import { ModalResponsiveProps as ModalProps } from "./typings-08e5596c";
14
12
  import { FormControlProps } from "./index-c44170fe";
13
+ import { ModalResponsiveProps as ModalProps } from "./typings-8a2a8ad1";
15
14
  import { PopoverProps } from "@alfalab/core-components-popover";
16
15
  import { UseSelectWithApplyProps } from "./field/Component";
17
16
  type BottomSheetTitleAlign = "center" | "left";
@@ -328,30 +327,6 @@ type FooterProps = {
328
327
  */
329
328
  gap?: 16 | 24 | 32;
330
329
  };
331
- interface ControlsProps {
332
- /**
333
- * Основной слот
334
- */
335
- primary?: ReactNode;
336
- /**
337
- * Дополнительный слот
338
- */
339
- secondary?: ReactNode;
340
- /**
341
- * Выравнивание элементов футера
342
- * @default start
343
- */
344
- layout?: "start" | "center" | "space-between" | "column";
345
- /**
346
- * Выравнивание элементов футера (мобильный view)
347
- * @default start
348
- */
349
- mobileLayout?: "start" | "center" | "space-between" | "column";
350
- /**
351
- * Отступы между элементами футера
352
- */
353
- gap?: 16 | 24 | 32;
354
- }
355
330
  declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
356
331
  size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
357
332
  fullscreen?: boolean | undefined;
@@ -362,11 +337,10 @@ declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-b
362
337
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
363
338
  } & React.RefAttributes<HTMLDivElement>> & {
364
339
  Header: React.FC<HeaderProps>;
365
- Content: React.FC<import("./typings-08e5596c").ContentProps>;
340
+ Content: React.FC<import("./typings-8a2a8ad1").ContentProps>;
366
341
  Footer: React.FC<FooterProps>;
367
342
  Controls: React.FC<ControlsProps>;
368
343
  };
369
- declare const ModalContext: import("react").Context<BaseModalContext>;
370
344
  type FooterProps$0 = {
371
345
  /**
372
346
  * Контент футера
@@ -402,7 +376,6 @@ type SwipeableBackdropProps = BackdropProps & {
402
376
  opacityTimeout?: number;
403
377
  };
404
378
  declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
405
- declare const Content: FC<ContentProps>;
406
379
  type AnyObject = Record<string, any>;
407
380
  type OptionShape = {
408
381
  /**
@@ -1052,9 +1025,10 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
1052
1025
  */
1053
1026
  defaultMatchMediaValue?: boolean | (() => boolean);
1054
1027
  };
1055
- export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, ModalContext, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, Content, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
1028
+ export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
1056
1029
  export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps };
1057
- export { ModalResponsiveProps as ModalProps } from "./typings-08e5596c";
1058
- export type { ContentProps as ModalContentProps } from "./typings-08e5596c";
1030
+ export { ModalResponsiveProps as ModalProps } from "./typings-8a2a8ad1";
1031
+ export { ModalContext } from "./Context-c2e6f1b2";
1032
+ export type { ContentProps as ModalContentProps } from "./typings-8a2a8ad1";
1059
1033
  export * from "./Component.desktop-63dec22f";
1060
1034
  export * from "./Component.mobile-96988a65";
@@ -11,7 +11,7 @@ var getIcon = function (variant, size) {
11
11
  if (variant === 'compact') {
12
12
  return size === 'xxs' ? MoreSIcon.MoreSIcon : MoreMIcon.MoreMIcon;
13
13
  }
14
- return size === 'xxs' ? ChevronDownCompactSIcon.ChevronDownCompactSIcon : ChevronDownMIcon.ChevronDownMIcon;
14
+ return size === 'xxs' || size === 'xs' ? ChevronDownCompactSIcon.ChevronDownCompactSIcon : ChevronDownMIcon.ChevronDownMIcon;
15
15
  };
16
16
 
17
17
  exports.getIcon = getIcon;
@@ -25,7 +25,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' |
25
25
  */
26
26
  showArrow?: boolean;
27
27
  };
28
- declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
28
+ declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
29
29
  options: Array<BaseSelectProps['options'][0] & {
30
30
  /**
31
31
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -21,7 +21,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
21
21
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
22
22
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
23
23
 
24
- var styles = {"container":"picker-button__container_1t3yz","optionsPopover":"picker-button__optionsPopover_1t3yz","sideGap":"picker-button__sideGap_1t3yz","option":"picker-button__option_1t3yz"};
24
+ var styles = {"container":"picker-button__container_dyf11","optionsPopover":"picker-button__optionsPopover_dyf11","sideGap":"picker-button__sideGap_dyf11","option":"picker-button__option_dyf11"};
25
25
  require('./../index.css')
26
26
 
27
27
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -49,5 +49,8 @@ type BadgeProps = {
49
49
  */
50
50
  dataTestId?: string;
51
51
  };
52
+ /**
53
+ * @deprecated Используйте StatusBadge или Indicator
54
+ */
52
55
  declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
53
56
  export { IconColorType, BadgeProps, Badge };