@alfalab/core-components-picker-button 11.1.6 → 11.1.8

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 (144) hide show
  1. package/Component-0f4b9bed.d.ts +5 -0
  2. package/Component-10db897e.d.ts +296 -0
  3. package/Component-72dda473.d.ts +53 -0
  4. package/Component-aed0af6e.d.ts +11 -0
  5. package/Component-ebda875c.d.ts +98 -9
  6. package/{cssm/Component-dd8ca091.d.ts → Component-f12ee135.d.ts} +1 -1
  7. package/Component.desktop.d.ts +2 -2
  8. package/Component.desktop.js +1 -1
  9. package/Component.mobile-96988a65.d.ts +6 -0
  10. package/{cssm/Component.mobile-ade26e99.d.ts → Component.mobile-f28cbba0.d.ts} +1 -1
  11. package/Component.mobile.d.ts +1 -1
  12. package/Component.responsive.d.ts +1 -1
  13. package/{esm/Component-dd8ca091.d.ts → cssm/Component-0f4b9bed.d.ts} +1 -1
  14. package/{esm/Component-72308007.d.ts → cssm/Component-10db897e.d.ts} +2 -2
  15. package/cssm/Component.desktop-785df74d.d.ts +1 -1
  16. package/cssm/Component.desktop.d.ts +2 -2
  17. package/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
  18. package/{esm/Component.mobile-ade26e99.d.ts → cssm/Component.mobile-f28cbba0.d.ts} +1 -1
  19. package/{Component.modal.mobile-dd8ca091.d.ts → cssm/Component.modal.mobile-0f4b9bed.d.ts} +1 -1
  20. package/cssm/Component.responsive-3109f463.d.ts +1 -1
  21. package/cssm/Component.responsive.d.ts +1 -1
  22. package/{esm/component-72308007.d.ts → cssm/component-10db897e.d.ts} +1 -1
  23. package/cssm/desktop-69921c40.d.ts +6 -0
  24. package/cssm/field/Component.d.ts +1 -1
  25. package/cssm/hook-8abfea97.d.ts +8 -8
  26. package/cssm/{index-72308007.d.ts → index-10db897e.d.ts} +1 -5
  27. package/cssm/index-c44170fe.d.ts +2 -163
  28. package/cssm/index-c76d6398.d.ts +2 -2
  29. package/cssm/index-ebda875c.d.ts +2 -2
  30. package/cssm/index-f12ee135.d.ts +2 -2
  31. package/cssm/mobile-89f0cb07.d.ts +6 -0
  32. package/cssm/shared-4cd3936b.d.ts +5 -5
  33. package/cssm/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  34. package/{esm/types-e40becc7.d.ts → cssm/types-67a2d8af.d.ts} +1 -1
  35. package/{modern/typings-dd8ca091.d.ts → cssm/typings-0f4b9bed.d.ts} +4 -0
  36. package/{modern/typings-9211a437.d.ts → cssm/typings-89f0cb07.d.ts} +5 -7
  37. package/cssm/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
  38. package/desktop-69921c40.d.ts +6 -0
  39. package/{Component-dd8ca091.d.ts → esm/Component-0f4b9bed.d.ts} +1 -1
  40. package/{Component-72308007.d.ts → esm/Component-10db897e.d.ts} +2 -2
  41. package/esm/Component.desktop-785df74d.d.ts +1 -1
  42. package/esm/Component.desktop.d.ts +2 -2
  43. package/esm/Component.desktop.js +1 -1
  44. package/esm/Component.mobile-d7e9f69d.d.ts +1 -1
  45. package/{modern/Component.mobile-ade26e99.d.ts → esm/Component.mobile-f28cbba0.d.ts} +1 -1
  46. package/esm/{Component.modal.mobile-dd8ca091.d.ts → Component.modal.mobile-0f4b9bed.d.ts} +1 -1
  47. package/esm/Component.responsive-3109f463.d.ts +1 -1
  48. package/esm/Component.responsive.d.ts +1 -1
  49. package/{cssm/component-72308007.d.ts → esm/component-10db897e.d.ts} +1 -1
  50. package/esm/desktop-69921c40.d.ts +6 -0
  51. package/esm/field/Component.d.ts +1 -1
  52. package/esm/field/Component.js +1 -1
  53. package/esm/field/index.css +6 -6
  54. package/esm/hook-8abfea97.d.ts +8 -8
  55. package/esm/{index-72308007.d.ts → index-10db897e.d.ts} +1 -5
  56. package/esm/index-c44170fe.d.ts +2 -163
  57. package/esm/index-c76d6398.d.ts +2 -2
  58. package/esm/index-ebda875c.d.ts +2 -2
  59. package/esm/index-f12ee135.d.ts +2 -2
  60. package/esm/index.css +5 -5
  61. package/esm/mobile-89f0cb07.d.ts +6 -0
  62. package/esm/option/Component.js +1 -1
  63. package/esm/option/index.css +4 -4
  64. package/esm/shared-4cd3936b.d.ts +5 -5
  65. package/esm/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  66. package/{modern/types-e40becc7.d.ts → esm/types-67a2d8af.d.ts} +1 -1
  67. package/{cssm/typings-dd8ca091.d.ts → esm/typings-0f4b9bed.d.ts} +4 -0
  68. package/{cssm/typings-9211a437.d.ts → esm/typings-89f0cb07.d.ts} +5 -7
  69. package/esm/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
  70. package/field/Component.d.ts +1 -1
  71. package/field/Component.js +1 -1
  72. package/field/index.css +6 -6
  73. package/hook-8abfea97.d.ts +10 -10
  74. package/hook-ebda875c.d.ts +48 -0
  75. package/{modern/index-72308007.d.ts → index-10db897e.d.ts} +2 -6
  76. package/index-bdb4c6b9.d.ts +180 -2
  77. package/index-c44170fe.d.ts +2 -163
  78. package/index-c76d6398.d.ts +2 -2
  79. package/index-ebda875c.d.ts +191 -53
  80. package/index-f12ee135.d.ts +324 -3
  81. package/index.css +5 -5
  82. package/modern/{Component-dd8ca091.d.ts → Component-0f4b9bed.d.ts} +1 -1
  83. package/{cssm/Component-72308007.d.ts → modern/Component-10db897e.d.ts} +2 -2
  84. package/modern/Component.desktop-785df74d.d.ts +1 -1
  85. package/modern/Component.desktop.d.ts +2 -2
  86. package/modern/Component.desktop.js +1 -1
  87. package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
  88. package/{Component.mobile-ade26e99.d.ts → modern/Component.mobile-f28cbba0.d.ts} +1 -1
  89. package/modern/{Component.modal.mobile-dd8ca091.d.ts → Component.modal.mobile-0f4b9bed.d.ts} +1 -1
  90. package/modern/Component.responsive-3109f463.d.ts +1 -1
  91. package/modern/Component.responsive.d.ts +1 -1
  92. package/{component-72308007.d.ts → modern/component-10db897e.d.ts} +1 -1
  93. package/modern/desktop-69921c40.d.ts +6 -0
  94. package/modern/field/Component.d.ts +1 -1
  95. package/modern/field/Component.js +1 -1
  96. package/modern/field/index.css +6 -6
  97. package/modern/hook-8abfea97.d.ts +8 -8
  98. package/{index-72308007.d.ts → modern/index-10db897e.d.ts} +1 -5
  99. package/modern/index-c44170fe.d.ts +2 -163
  100. package/modern/index-c76d6398.d.ts +2 -2
  101. package/modern/index-ebda875c.d.ts +2 -2
  102. package/modern/index-f12ee135.d.ts +2 -2
  103. package/modern/index.css +5 -5
  104. package/modern/mobile-89f0cb07.d.ts +6 -0
  105. package/modern/option/Component.js +1 -1
  106. package/modern/option/index.css +4 -4
  107. package/modern/shared-4cd3936b.d.ts +5 -5
  108. package/modern/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  109. package/{cssm/types-e40becc7.d.ts → modern/types-67a2d8af.d.ts} +1 -1
  110. package/{typings-dd8ca091.d.ts → modern/typings-0f4b9bed.d.ts} +4 -0
  111. package/{typings-9211a437.d.ts → modern/typings-89f0cb07.d.ts} +5 -7
  112. package/modern/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
  113. package/option/Component.js +1 -1
  114. package/option/index.css +4 -4
  115. package/package.json +3 -3
  116. package/shared-4cd3936b.d.ts +5 -63
  117. package/src/Component.desktop.tsx +3 -0
  118. package/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  119. package/{esm/typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
  120. package/{esm/typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
  121. package/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
  122. package/Component.mobile-ebda875c.d.ts +0 -6
  123. package/cssm/Component.mobile-ebda875c.d.ts +0 -6
  124. package/cssm/Component.modal.mobile-dd8ca091.d.ts +0 -60
  125. package/cssm/desktop-63dec22f.d.ts +0 -6
  126. package/desktop-63dec22f.d.ts +0 -6
  127. package/esm/Component.mobile-ebda875c.d.ts +0 -6
  128. package/esm/desktop-63dec22f.d.ts +0 -6
  129. package/modern/Component-63dec22f.d.ts +0 -184
  130. package/modern/Component-72308007.d.ts +0 -6
  131. package/modern/Component.mobile-ebda875c.d.ts +0 -6
  132. package/modern/component-72308007.d.ts +0 -44
  133. package/modern/desktop-63dec22f.d.ts +0 -6
  134. package/types-e40becc7.d.ts +0 -276
  135. package/utils-1574ad8b.d.ts +0 -29
  136. package/utils-49cc3c24.d.ts +0 -8
  137. /package/{Component.responsive-3109f463.d.ts → Component.responsive-d7e9f69d.d.ts} +0 -0
  138. /package/{Component-63dec22f.d.ts → cssm/Component-69921c40.d.ts} +0 -0
  139. /package/cssm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  140. /package/{cssm/Component-63dec22f.d.ts → esm/Component-69921c40.d.ts} +0 -0
  141. /package/esm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  142. /package/{esm/Component-63dec22f.d.ts → modern/Component-69921c40.d.ts} +0 -0
  143. /package/modern/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  144. /package/{useSkeleton-ebda875c.d.ts → useSkeleton-1b036d4b.d.ts} +0 -0
@@ -11,7 +11,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
11
11
  */
12
12
  breakpoint?: number;
13
13
  };
14
- declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
14
+ declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
15
15
  options: ((import("./shared-4cd3936b").OptionShape | import("./shared-4cd3936b").GroupShape) & {
16
16
  icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
17
17
  })[];
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
6
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ButtonProps } from "@alfalab/core-components-button";
4
- import { FieldProps as BaseFieldProps } from "../typings-dd8ca091";
4
+ import { FieldProps as BaseFieldProps } from "../typings-0f4b9bed";
5
5
  import { PickerButtonSize, PickerButtonVariant } from "../types";
6
6
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BaseSelectProps, OptionShape } from "./typings-dd8ca091";
2
+ import { BaseSelectProps, OptionShape } from "./typings-0f4b9bed";
3
3
  type UseSelectWithApplyProps = {
4
4
  /**
5
5
  * Список выбранных пунктов
@@ -44,20 +44,20 @@ type UseSelectWithApplyProps = {
44
44
  };
45
45
  declare const SELECT_ALL_KEY = "select_all";
46
46
  declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
47
- OptionsList: import("react").ForwardRefExoticComponent<import("./typings-dd8ca091").OptionsListProps & {
47
+ OptionsList: import("react").ForwardRefExoticComponent<import("./typings-0f4b9bed").OptionsListProps & {
48
48
  showClear?: boolean | undefined;
49
49
  onClose?: (() => void) | undefined; /**
50
50
  * Компонент выпадающего меню
51
51
  */
52
52
  selectedDraft?: OptionShape[] | undefined;
53
- OptionsList?: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
54
- Footer?: import("react").FC<import("./Component-dd8ca091").FooterProps> | undefined;
53
+ OptionsList?: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
54
+ Footer?: import("react").FC<import("./Component-0f4b9bed").FooterProps> | undefined;
55
55
  Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
56
56
  headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
57
57
  showHeaderWithSelectAll?: boolean | undefined;
58
58
  } & import("react").RefAttributes<HTMLDivElement>>;
59
59
  optionsListProps: {
60
- OptionsList: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
60
+ OptionsList: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
61
61
  showClear: boolean;
62
62
  onClear: () => void;
63
63
  onApply: () => void;
@@ -72,11 +72,11 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
72
72
  };
73
73
  allowUnselect: boolean;
74
74
  multiple: boolean;
75
- options: (OptionShape | import("./typings-dd8ca091").GroupShape | {
75
+ options: (OptionShape | import("./typings-0f4b9bed").GroupShape | {
76
76
  key: string;
77
77
  content: string;
78
78
  })[];
79
- onChange: (payload: import("./typings-dd8ca091").BaseSelectChangePayload) => void;
79
+ onChange: (payload: import("./typings-0f4b9bed").BaseSelectChangePayload) => void;
80
80
  selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
81
81
  showSearch: boolean | undefined;
82
82
  searchProps: {
@@ -86,5 +86,5 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
86
86
  accessor?: ((option: OptionShape) => string) | undefined;
87
87
  } | undefined;
88
88
  };
89
- export * from "./Component-dd8ca091";
89
+ export * from "./Component-0f4b9bed";
90
90
  export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
@@ -10,10 +10,6 @@ declare function easeInOutQuad(x: number): number;
10
10
  declare const easingFns: {
11
11
  easeInOutQuad: typeof easeInOutQuad;
12
12
  };
13
- declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
14
- declare const inputUtils: {
15
- disableUserInput: typeof disableUserInput;
16
- };
17
13
  /**
18
14
  * Возвращает true, если значение равно null или undefined
19
15
  */
@@ -51,4 +47,4 @@ declare const maskUtils: {
51
47
  prefixPostprocessor: typeof prefixPostprocessor;
52
48
  caretGuard: typeof caretGuard;
53
49
  };
54
- export { createPaddingStyle, isClient, getDataTestId, easingFns, inputUtils, fnUtils, maskUtils };
50
+ export { createPaddingStyle, isClient, getDataTestId, easingFns, fnUtils, maskUtils };
@@ -1,164 +1,3 @@
1
1
  /// <reference types="react" />
2
- import React from "react";
3
- import { ChangeEvent, ElementType, InputHTMLAttributes, MouseEvent, ReactNode } from "react";
4
- type StyleColors = {
5
- default: {
6
- [key: string]: string;
7
- };
8
- inverted: {
9
- [key: string]: string;
10
- };
11
- };
12
- type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "value" | "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "enterKeyHint"> & {
13
- /**
14
- * Значение поля ввода
15
- */
16
- value?: string;
17
- /**
18
- * Начальное значение поля
19
- */
20
- defaultValue?: string;
21
- /**
22
- * Растягивает компонент на ширину контейнера
23
- */
24
- block?: boolean;
25
- /**
26
- * Крестик для очистки поля
27
- */
28
- clear?: boolean;
29
- /**
30
- * Размер компонента
31
- */
32
- size?: "s" | "m" | "l" | "xl";
33
- /**
34
- * Набор цветов для компонента
35
- */
36
- colors?: "default" | "inverted";
37
- /**
38
- * Отображение ошибки
39
- */
40
- error?: ReactNode | boolean;
41
- /**
42
- * Отображение иконки успеха
43
- */
44
- success?: boolean;
45
- /**
46
- * Текст подсказки
47
- */
48
- hint?: ReactNode;
49
- /**
50
- * Лейбл компонента
51
- */
52
- label?: React.ReactNode;
53
- /**
54
- * Вид лейбла внутри / снаружи
55
- */
56
- labelView?: "inner" | "outer";
57
- /**
58
- * Атрибут type
59
- */
60
- type?: "number" | "card" | "email" | "money" | "password" | "tel" | "text";
61
- /**
62
- * Ref для обертки input
63
- */
64
- wrapperRef?: React.Ref<HTMLDivElement> | null;
65
- /**
66
- * Слот слева
67
- */
68
- leftAddons?: React.ReactNode;
69
- /**
70
- * Слот справа
71
- */
72
- rightAddons?: React.ReactNode;
73
- /**
74
- * Слот под инпутом
75
- */
76
- bottomAddons?: React.ReactNode;
77
- /**
78
- * Дополнительный класс
79
- */
80
- className?: string;
81
- /**
82
- * Дополнительный класс для поля
83
- */
84
- fieldClassName?: string;
85
- /**
86
- * Дополнительный класс инпута
87
- */
88
- inputClassName?: string;
89
- /**
90
- * Дополнительный класс для лейбла
91
- */
92
- labelClassName?: string;
93
- /**
94
- * Дополнительный класс для аддонов
95
- */
96
- addonsClassName?: string;
97
- /**
98
- * Класс, который будет установлен при фокусе
99
- */
100
- focusedClassName?: string;
101
- /**
102
- * Класс, который будет установлен, если в поле есть значение
103
- */
104
- filledClassName?: string;
105
- /**
106
- * Обработчик поля ввода
107
- */
108
- onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
109
- value: string;
110
- }) => void;
111
- /**
112
- * Обработчик нажатия на кнопку очистки
113
- */
114
- onClear?: (event: MouseEvent<HTMLButtonElement>) => void;
115
- /**
116
- * Обработчик клика по полю
117
- */
118
- onClick?: (event: MouseEvent<HTMLDivElement>) => void;
119
- /**
120
- * Обработчик MouseDown по полю
121
- */
122
- onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
123
- /**
124
- * Обработчик MouseUp по полю
125
- */
126
- onMouseUp?: (event: MouseEvent<HTMLDivElement>) => void;
127
- /**
128
- * Идентификатор для систем автоматизированного тестирования
129
- */
130
- FormControlComponent?: ElementType;
131
- /**
132
- * Идентификатор для систем автоматизированного тестирования
133
- */
134
- dataTestId?: string;
135
- /**
136
- * Стили компонента для default и inverted режима.
137
- */
138
- colorStyles?: StyleColors;
139
- /**
140
- * Запрещает ввод с клавиатуры
141
- */
142
- disableUserInput?: boolean;
143
- };
144
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
145
- /**
146
- * Контрольная точка, с нее начинается desktop версия
147
- * @default 1024
148
- */
149
- breakpoint?: number;
150
- /**
151
- * Значение по-умолчанию для хука useMatchMedia
152
- */
153
- defaultMatchMediaValue?: boolean | (() => boolean);
154
- };
155
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
156
- breakpoint?: number | undefined;
157
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
158
- } & React.RefAttributes<HTMLInputElement>>;
159
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
160
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
161
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
162
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
163
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
164
- export * from "./Component.desktop-785df74d";
2
+ export * from "./Component.responsive-3109f463";
3
+ export {};
@@ -1,2 +1,2 @@
1
- export * from "./Component-72308007";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
1
+ export * from "./Component-10db897e";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -66,7 +66,7 @@ type IconButtonProps = {
66
66
  * Набор цветов для компонента
67
67
  */
68
68
  colors?: "default" | "inverted";
69
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
69
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "Component" | "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
70
70
  declare const IconButton: React.ForwardRefExoticComponent<{
71
71
  icon: ElementType<{
72
72
  className?: string;
@@ -77,5 +77,5 @@ declare const IconButton: React.ForwardRefExoticComponent<{
77
77
  alignIcon?: "center" | "right" | "left" | undefined;
78
78
  dataTestId?: string | undefined;
79
79
  colors?: "default" | "inverted" | undefined;
80
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
80
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
81
81
  export { CloserProps, Closer, IconButtonProps, IconButton };
@@ -1,3 +1,3 @@
1
- export * from "./component-72308007";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
1
+ export * from "./component-10db897e";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonMobile };
6
+ export type { CommonButtonProps as ButtonMobileProps } from "./typings-89f0cb07";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { BaseSelectProps, OptionProps, OptionShape } from "./typings-dd8ca091";
3
+ import { BaseSelectProps, OptionProps, OptionShape } from "./typings-0f4b9bed";
4
4
  // eslint-disable-next-line @typescript-eslint/naming-convention
5
5
  type useSelectWithLoadingProps = {
6
6
  loading?: boolean;
@@ -57,9 +57,9 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
57
57
  reset: () => void;
58
58
  };
59
59
  export * from "./index-ebda875c";
60
- export * from "./Component-dd8ca091";
60
+ export * from "./Component-0f4b9bed";
61
61
  export { useSelectWithLoading, useLazyLoading };
62
62
  export * from "./hook-8abfea97";
63
- export * from "./typings-dd8ca091";
64
- export * from "./utils-dd8ca091";
65
- export type { AdditionalMobileProps } from "./Component.mobile-ade26e99";
63
+ export * from "./typings-0f4b9bed";
64
+ export * from "./utils-0f4b9bed";
65
+ export type { AdditionalMobileProps } from "./Component.mobile-f28cbba0";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -459,6 +459,10 @@ type OptionsListProps = {
459
459
  * Обработчик отмены изменений
460
460
  */
461
461
  onClear?: () => void;
462
+ /**
463
+ * Указать индекс пункта для hover состояния
464
+ */
465
+ setHighlightedIndex?: (index: number) => void;
462
466
  };
463
467
  type OptgroupProps = {
464
468
  /**
@@ -69,6 +69,8 @@ type ComponentProps = {
69
69
  * Дочерние элементы.
70
70
  */
71
71
  children?: ReactNode;
72
+ };
73
+ type PrivateButtonProps = {
72
74
  /**
73
75
  * Основные стили компонента.
74
76
  */
@@ -80,16 +82,12 @@ type ComponentProps = {
80
82
  */
81
83
  colorStylesMap: StyleColors;
82
84
  };
83
- type AnchorBaseButtonProps = ComponentProps & AnchorHTMLAttributes<HTMLAnchorElement>;
84
- type NativeBaseButtonProps = ComponentProps & ButtonHTMLAttributes<HTMLButtonElement>;
85
- type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
86
- type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
87
- type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
88
- type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
85
+ type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
86
+ type ButtonProps = CommonButtonProps & {
89
87
  /**
90
88
  * Контрольная точка, с нее начинается desktop версия
91
89
  * @default 1024
92
90
  */
93
91
  breakpoint?: number;
94
92
  };
95
- export { StyleColors, ComponentProps, AnchorBaseButtonProps, NativeBaseButtonProps, BaseButtonProps, AnchorButtonProps, NativeButtonProps, ButtonProps };
93
+ export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-dd8ca091";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f4b9bed";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
6
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Футер
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { NavigationBarProps } from "./types-83e2bd9e";
3
+ import { NavigationBarProps } from "./types-1c79e231";
4
4
  declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
- export * from "./Component-63dec22f";
5
+ export * from "./Component-69921c40";
6
6
  export { NavigationBar };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./Component.responsive-3109f463";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -4,7 +4,7 @@ import { FC, SVGProps } from "react";
4
4
  import { ButtonProps } from "@alfalab/core-components-button";
5
5
  import { BaseSelectProps } from "./shared-4cd3936b";
6
6
  import { PickerButtonSize, PickerButtonVariant } from "./types";
7
- type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
+ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options' | 'searchProps' | 'showSearch' | 'Search'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
8
8
  options: Array<BaseSelectProps['options'][0] & {
9
9
  /**
10
10
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -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" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
28
+ declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
29
29
  options: Array<BaseSelectProps['options'][0] & {
30
30
  /**
31
31
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -11,7 +11,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
11
11
  import '@alfalab/icons-glyph/MoreMIcon';
12
12
  import '@alfalab/icons-glyph/MoreSIcon';
13
13
 
14
- var styles = {"container":"picker-button__container_j1e6c","optionsPopover":"picker-button__optionsPopover_j1e6c","sideGap":"picker-button__sideGap_j1e6c","option":"picker-button__option_j1e6c"};
14
+ var styles = {"container":"picker-button__container_culfp","optionsPopover":"picker-button__optionsPopover_culfp","sideGap":"picker-button__sideGap_culfp","option":"picker-button__option_culfp"};
15
15
  require('./index.css')
16
16
 
17
17
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./Component.responsive-3109f463";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
5
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
6
- import { BaseSelectProps } from "./typings-dd8ca091";
6
+ import { BaseSelectProps } from "./typings-0f4b9bed";
7
7
  type AdditionalMobileProps = {
8
8
  /**
9
9
  * Футер
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ModalMobile } from "./Component.mobile-f1f15074";
4
4
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Показывать кнопку очистки
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
4
3
  type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
4
  /**
6
5
  * Контрольная точка, с нее начинается desktop версия
@@ -23,4 +22,5 @@ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlP
23
22
  */
24
23
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
24
  } & React.RefAttributes<HTMLDivElement>>;
25
+ export * from "./Component-10db897e";
26
26
  export { FormControlProps, FormControl };
@@ -11,7 +11,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
11
11
  */
12
12
  breakpoint?: number;
13
13
  };
14
- declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
14
+ declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
15
15
  options: ((import("./shared-4cd3936b").OptionShape | import("./shared-4cd3936b").GroupShape) & {
16
16
  icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
17
17
  })[];
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
6
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ButtonProps } from "@alfalab/core-components-button";
4
- import { FieldProps as BaseFieldProps } from "../typings-dd8ca091";
4
+ import { FieldProps as BaseFieldProps } from "../typings-0f4b9bed";
5
5
  import { PickerButtonSize, PickerButtonVariant } from "../types";
6
6
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
@@ -8,7 +8,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
8
8
  import '@alfalab/icons-glyph/MoreMIcon';
9
9
  import '@alfalab/icons-glyph/MoreSIcon';
10
10
 
11
- var styles = {"iconContainer":"picker-button__iconContainer_brxpd","addonsContainer":"picker-button__addonsContainer_brxpd","showControlIcon":"picker-button__showControlIcon_brxpd","open":"picker-button__open_brxpd","linkOpen":"picker-button__linkOpen_brxpd"};
11
+ var styles = {"iconContainer":"picker-button__iconContainer_he5no","addonsContainer":"picker-button__addonsContainer_he5no","showControlIcon":"picker-button__showControlIcon_he5no","open":"picker-button__open_he5no","linkOpen":"picker-button__linkOpen_he5no"};
12
12
  require('./index.css')
13
13
 
14
14
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 13pd8 */
1
+ /* hash: dm7gb */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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,15 +17,15 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --arrow-transform: rotate(180deg);
20
- } .picker-button__iconContainer_brxpd {
20
+ } .picker-button__iconContainer_he5no {
21
21
  display: flex;
22
22
  transition: transform 0.15s ease-in-out;
23
- } .picker-button__addonsContainer_brxpd {
23
+ } .picker-button__addonsContainer_he5no {
24
24
  display: flex
25
- } .picker-button__addonsContainer_brxpd.picker-button__showControlIcon_brxpd {
25
+ } .picker-button__addonsContainer_he5no.picker-button__showControlIcon_he5no {
26
26
  margin-right: var(--gap-2xs);
27
- } .picker-button__open_brxpd {
27
+ } .picker-button__open_he5no {
28
28
  transform: var(--arrow-transform);
29
- } .picker-button__linkOpen_brxpd:not(:hover) {
29
+ } .picker-button__linkOpen_he5no:not(:hover) {
30
30
  background-color: var(--color-light-specialbg-secondary-transparent);
31
31
  }