@alfalab/core-components-custom-picker-button 2.0.15 → 2.1.1

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 (239) hide show
  1. package/Component.desktop.d.ts +1 -1
  2. package/Component.mobile.d.ts +1 -9
  3. package/Component.responsive.d.ts +4 -7
  4. package/cssm/Component.desktop.d.ts +1 -1
  5. package/cssm/Component.mobile.d.ts +1 -1
  6. package/cssm/Component.responsive.d.ts +4 -7
  7. package/cssm/{desktop.d.ts → desktop/index.d.ts} +1 -1
  8. package/cssm/{desktop.js → desktop/index.js} +3 -3
  9. package/cssm/field/Component.d.ts +2 -1
  10. package/{esm/mobile.d.ts → cssm/mobile/index.d.ts} +1 -1
  11. package/cssm/{mobile.js → mobile/index.js} +3 -3
  12. package/{desktop.d.ts → desktop/index.d.ts} +1 -1
  13. package/{desktop.js → desktop/index.js} +2 -2
  14. package/desktop/package.json +3 -0
  15. package/esm/Component.desktop.d.ts +1 -1
  16. package/esm/Component.mobile.d.ts +1 -1
  17. package/esm/Component.responsive.d.ts +4 -7
  18. package/esm/{desktop.d.ts → desktop/index.d.ts} +1 -1
  19. package/esm/{desktop.js → desktop/index.js} +2 -2
  20. package/esm/field/Component.d.ts +2 -1
  21. package/esm/field/Component.js +1 -1
  22. package/esm/field/index.css +5 -5
  23. package/{mobile.d.ts → esm/mobile/index.d.ts} +1 -1
  24. package/esm/{mobile.js → mobile/index.js} +2 -2
  25. package/field/Component.d.ts +2 -1
  26. package/field/Component.js +1 -1
  27. package/field/index.css +5 -5
  28. package/{cssm/mobile.d.ts → mobile/index.d.ts} +1 -1
  29. package/{mobile.js → mobile/index.js} +2 -2
  30. package/mobile/package.json +3 -0
  31. package/modern/Component.desktop.d.ts +1 -1
  32. package/modern/Component.mobile.d.ts +1 -1
  33. package/modern/Component.responsive.d.ts +4 -7
  34. package/modern/{desktop.d.ts → desktop/index.d.ts} +1 -1
  35. package/modern/{desktop.js → desktop/index.js} +2 -2
  36. package/modern/field/Component.d.ts +2 -1
  37. package/modern/field/Component.js +1 -1
  38. package/modern/field/index.css +5 -5
  39. package/modern/{mobile.d.ts → mobile/index.d.ts} +1 -1
  40. package/modern/{mobile.js → mobile/index.js} +2 -2
  41. package/package.json +4 -4
  42. package/src/Component.responsive.tsx +6 -8
  43. package/src/{desktop.ts → desktop/index.ts} +1 -1
  44. package/src/desktop/package.json +3 -0
  45. package/src/{mobile.ts → mobile/index.ts} +1 -1
  46. package/src/mobile/package.json +3 -0
  47. package/Component-0f4b9bed.d.ts +0 -5
  48. package/Component-10db897e.d.ts +0 -296
  49. package/Component-4cd3936b.d.ts +0 -12
  50. package/Component-72dda473.d.ts +0 -53
  51. package/Component-aed0af6e.d.ts +0 -11
  52. package/Component-bdb4c6b9.d.ts +0 -12
  53. package/Component-c76d6398.d.ts +0 -5
  54. package/Component-ebda875c.d.ts +0 -101
  55. package/Component-f12ee135.d.ts +0 -72
  56. package/Component.desktop-0aa4e915.d.ts +0 -5
  57. package/Component.desktop-4cd3936b.d.ts +0 -49
  58. package/Component.desktop-785df74d.d.ts +0 -6
  59. package/Component.mobile-16b1285a.d.ts +0 -5
  60. package/Component.mobile-96988a65.d.ts +0 -6
  61. package/Component.mobile-d7e9f69d.d.ts +0 -6
  62. package/Component.mobile-f1f15074.d.ts +0 -34
  63. package/Component.mobile-f28cbba0.d.ts +0 -41
  64. package/Component.responsive-0aa4e915.d.ts +0 -5
  65. package/Component.responsive-d7e9f69d.d.ts +0 -26
  66. package/Context-bdb4c6b9.d.ts +0 -4
  67. package/ResponsiveContext-baf4875b.d.ts +0 -5
  68. package/consts-f777ba1a.d.ts +0 -2
  69. package/cssm/Component-0f4b9bed.d.ts +0 -22
  70. package/cssm/Component-10db897e.d.ts +0 -72
  71. package/cssm/Component-4cd3936b.d.ts +0 -12
  72. package/cssm/Component-69921c40.d.ts +0 -184
  73. package/cssm/Component-72dda473.d.ts +0 -53
  74. package/cssm/Component-89f0cb07.d.ts +0 -38
  75. package/cssm/Component-8b2c2707.d.ts +0 -12
  76. package/cssm/Component-bdb4c6b9.d.ts +0 -12
  77. package/cssm/Component-c76d6398.d.ts +0 -5
  78. package/cssm/Component-ebda875c.d.ts +0 -12
  79. package/cssm/Component.desktop-0aa4e915.d.ts +0 -5
  80. package/cssm/Component.desktop-785df74d.d.ts +0 -6
  81. package/cssm/Component.mobile-16b1285a.d.ts +0 -5
  82. package/cssm/Component.mobile-d446ae02.d.ts +0 -23
  83. package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
  84. package/cssm/Component.mobile-f1f15074.d.ts +0 -34
  85. package/cssm/Component.mobile-f28cbba0.d.ts +0 -41
  86. package/cssm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
  87. package/cssm/Context-bdb4c6b9.d.ts +0 -4
  88. package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
  89. package/cssm/component-10db897e.d.ts +0 -44
  90. package/cssm/consts-f777ba1a.d.ts +0 -2
  91. package/cssm/desktop-89f0cb07.d.ts +0 -2
  92. package/cssm/desktop-d446ae02.d.ts +0 -39
  93. package/cssm/hook-8abfea97.d.ts +0 -90
  94. package/cssm/index-10db897e.d.ts +0 -50
  95. package/cssm/index-136acbb1.d.ts +0 -28
  96. package/cssm/index-72dda473.d.ts +0 -12
  97. package/cssm/index-8b2c2707.d.ts +0 -6
  98. package/cssm/index-bdb4c6b9.d.ts +0 -2
  99. package/cssm/index-c44170fe.d.ts +0 -18
  100. package/cssm/index-c76d6398.d.ts +0 -2
  101. package/cssm/index-df3978fd.d.ts +0 -4
  102. package/cssm/index-ebda875c.d.ts +0 -37
  103. package/cssm/index-f12ee135.d.ts +0 -3
  104. package/cssm/mobile-89f0cb07.d.ts +0 -2
  105. package/cssm/mobile-d7e9f69d.d.ts +0 -2
  106. package/cssm/shared-4cd3936b.d.ts +0 -66
  107. package/cssm/types-1b036d4b.d.ts +0 -13
  108. package/cssm/types-1c79e231.d.ts +0 -113
  109. package/cssm/types-4480ac4f.d.ts +0 -3
  110. package/cssm/types-67a2d8af.d.ts +0 -276
  111. package/cssm/typings-0f4b9bed.d.ts +0 -576
  112. package/cssm/typings-89f0cb07.d.ts +0 -93
  113. package/cssm/typings-bdb4c6b9.d.ts +0 -52
  114. package/cssm/useSkeleton-ebda875c.d.ts +0 -12
  115. package/cssm/utils-0f4b9bed.d.ts +0 -41
  116. package/cssm/utils-1574ad8b.d.ts +0 -29
  117. package/cssm/utils-49cc3c24.d.ts +0 -8
  118. package/desktop-69921c40.d.ts +0 -2
  119. package/desktop-d446ae02.d.ts +0 -2
  120. package/esm/Component-0f4b9bed.d.ts +0 -22
  121. package/esm/Component-10db897e.d.ts +0 -72
  122. package/esm/Component-4cd3936b.d.ts +0 -12
  123. package/esm/Component-69921c40.d.ts +0 -184
  124. package/esm/Component-72dda473.d.ts +0 -53
  125. package/esm/Component-89f0cb07.d.ts +0 -38
  126. package/esm/Component-8b2c2707.d.ts +0 -12
  127. package/esm/Component-bdb4c6b9.d.ts +0 -12
  128. package/esm/Component-c76d6398.d.ts +0 -5
  129. package/esm/Component-ebda875c.d.ts +0 -12
  130. package/esm/Component.desktop-0aa4e915.d.ts +0 -5
  131. package/esm/Component.desktop-785df74d.d.ts +0 -6
  132. package/esm/Component.mobile-16b1285a.d.ts +0 -5
  133. package/esm/Component.mobile-d446ae02.d.ts +0 -23
  134. package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
  135. package/esm/Component.mobile-f1f15074.d.ts +0 -34
  136. package/esm/Component.mobile-f28cbba0.d.ts +0 -41
  137. package/esm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
  138. package/esm/Context-bdb4c6b9.d.ts +0 -4
  139. package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
  140. package/esm/component-10db897e.d.ts +0 -44
  141. package/esm/consts-f777ba1a.d.ts +0 -2
  142. package/esm/desktop-89f0cb07.d.ts +0 -2
  143. package/esm/desktop-d446ae02.d.ts +0 -39
  144. package/esm/hook-8abfea97.d.ts +0 -90
  145. package/esm/index-10db897e.d.ts +0 -50
  146. package/esm/index-136acbb1.d.ts +0 -28
  147. package/esm/index-72dda473.d.ts +0 -12
  148. package/esm/index-8b2c2707.d.ts +0 -6
  149. package/esm/index-bdb4c6b9.d.ts +0 -2
  150. package/esm/index-c44170fe.d.ts +0 -18
  151. package/esm/index-c76d6398.d.ts +0 -2
  152. package/esm/index-df3978fd.d.ts +0 -4
  153. package/esm/index-ebda875c.d.ts +0 -37
  154. package/esm/index-f12ee135.d.ts +0 -3
  155. package/esm/mobile-89f0cb07.d.ts +0 -2
  156. package/esm/mobile-d7e9f69d.d.ts +0 -2
  157. package/esm/shared-4cd3936b.d.ts +0 -66
  158. package/esm/types-1b036d4b.d.ts +0 -13
  159. package/esm/types-1c79e231.d.ts +0 -113
  160. package/esm/types-4480ac4f.d.ts +0 -3
  161. package/esm/types-67a2d8af.d.ts +0 -276
  162. package/esm/typings-0f4b9bed.d.ts +0 -576
  163. package/esm/typings-89f0cb07.d.ts +0 -93
  164. package/esm/typings-bdb4c6b9.d.ts +0 -52
  165. package/esm/useSkeleton-ebda875c.d.ts +0 -12
  166. package/esm/utils-0f4b9bed.d.ts +0 -41
  167. package/esm/utils-1574ad8b.d.ts +0 -29
  168. package/esm/utils-49cc3c24.d.ts +0 -8
  169. package/hook-8abfea97.d.ts +0 -90
  170. package/hook-ebda875c.d.ts +0 -48
  171. package/index-10db897e.d.ts +0 -50
  172. package/index-136acbb1.d.ts +0 -28
  173. package/index-72dda473.d.ts +0 -12
  174. package/index-89f0cb07.d.ts +0 -2
  175. package/index-bdb4c6b9.d.ts +0 -180
  176. package/index-c44170fe.d.ts +0 -3
  177. package/index-c76d6398.d.ts +0 -2
  178. package/index-df3978fd.d.ts +0 -4
  179. package/index-ebda875c.d.ts +0 -219
  180. package/index-f12ee135.d.ts +0 -324
  181. package/mobile-96988a65.d.ts +0 -2
  182. package/modern/Component-0f4b9bed.d.ts +0 -22
  183. package/modern/Component-10db897e.d.ts +0 -72
  184. package/modern/Component-4cd3936b.d.ts +0 -12
  185. package/modern/Component-69921c40.d.ts +0 -184
  186. package/modern/Component-72dda473.d.ts +0 -53
  187. package/modern/Component-89f0cb07.d.ts +0 -38
  188. package/modern/Component-8b2c2707.d.ts +0 -12
  189. package/modern/Component-bdb4c6b9.d.ts +0 -12
  190. package/modern/Component-c76d6398.d.ts +0 -5
  191. package/modern/Component-ebda875c.d.ts +0 -12
  192. package/modern/Component.desktop-0aa4e915.d.ts +0 -5
  193. package/modern/Component.desktop-785df74d.d.ts +0 -6
  194. package/modern/Component.mobile-16b1285a.d.ts +0 -5
  195. package/modern/Component.mobile-d446ae02.d.ts +0 -23
  196. package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
  197. package/modern/Component.mobile-f1f15074.d.ts +0 -34
  198. package/modern/Component.mobile-f28cbba0.d.ts +0 -41
  199. package/modern/Component.modal.mobile-0f4b9bed.d.ts +0 -60
  200. package/modern/Context-bdb4c6b9.d.ts +0 -4
  201. package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
  202. package/modern/component-10db897e.d.ts +0 -44
  203. package/modern/consts-f777ba1a.d.ts +0 -2
  204. package/modern/desktop-89f0cb07.d.ts +0 -2
  205. package/modern/desktop-d446ae02.d.ts +0 -39
  206. package/modern/hook-8abfea97.d.ts +0 -90
  207. package/modern/index-10db897e.d.ts +0 -50
  208. package/modern/index-136acbb1.d.ts +0 -28
  209. package/modern/index-72dda473.d.ts +0 -12
  210. package/modern/index-8b2c2707.d.ts +0 -6
  211. package/modern/index-bdb4c6b9.d.ts +0 -2
  212. package/modern/index-c44170fe.d.ts +0 -18
  213. package/modern/index-c76d6398.d.ts +0 -2
  214. package/modern/index-df3978fd.d.ts +0 -4
  215. package/modern/index-ebda875c.d.ts +0 -37
  216. package/modern/index-f12ee135.d.ts +0 -3
  217. package/modern/mobile-89f0cb07.d.ts +0 -2
  218. package/modern/mobile-d7e9f69d.d.ts +0 -2
  219. package/modern/shared-4cd3936b.d.ts +0 -66
  220. package/modern/types-1b036d4b.d.ts +0 -13
  221. package/modern/types-1c79e231.d.ts +0 -113
  222. package/modern/types-4480ac4f.d.ts +0 -3
  223. package/modern/types-67a2d8af.d.ts +0 -276
  224. package/modern/typings-0f4b9bed.d.ts +0 -576
  225. package/modern/typings-89f0cb07.d.ts +0 -93
  226. package/modern/typings-bdb4c6b9.d.ts +0 -52
  227. package/modern/useSkeleton-ebda875c.d.ts +0 -12
  228. package/modern/utils-0f4b9bed.d.ts +0 -41
  229. package/modern/utils-1574ad8b.d.ts +0 -29
  230. package/modern/utils-49cc3c24.d.ts +0 -8
  231. package/shared-4cd3936b.d.ts +0 -7
  232. package/types-1b036d4b.d.ts +0 -13
  233. package/types-1c79e231.d.ts +0 -113
  234. package/types-4480ac4f.d.ts +0 -3
  235. package/typings-0f4b9bed.d.ts +0 -576
  236. package/typings-89f0cb07.d.ts +0 -93
  237. package/typings-bdb4c6b9.d.ts +0 -52
  238. package/useSkeleton-1b036d4b.d.ts +0 -12
  239. package/utils-0f4b9bed.d.ts +0 -41
@@ -1,219 +0,0 @@
1
- /// <reference types="react" />
2
- /// <reference types="react-transition-group" />
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?: "width" | "minWidth" | "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 };
@@ -1,324 +0,0 @@
1
- /// <reference types="react-transition-group" />
2
- /// <reference types="react" />
3
- import React from "react";
4
- import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC } from "react";
5
- import { HandledEvents } from "react-swipeable/es/types";
6
- import { TransitionProps } from "react-transition-group/Transition";
7
- import { BaseModalProps } from "./index-bdb4c6b9";
8
- import { NavigationBarProps } from "./index-c76d6398";
9
- import { BackgroundColorType } from "./index-72dda473";
10
- import { SwipeableHandlers } from "react-swipeable";
11
- import { BackdropProps } from "./index-ebda875c";
12
- type BottomSheetTitleAlign = "center" | "left";
13
- type BottomSheetProps = {
14
- /**
15
- * Контент
16
- */
17
- children?: ReactNode;
18
- /**
19
- * Управление видимостью
20
- */
21
- open: boolean;
22
- /**
23
- * Заголовок
24
- */
25
- title?: ReactNode;
26
- /**
27
- * Размер заголовка
28
- */
29
- titleSize?: NavigationBarProps["titleSize"];
30
- /**
31
- * Подзаголовок.
32
- */
33
- subtitle?: NavigationBarProps["subtitle"];
34
- /**
35
- * Кнопка действия (обычно, это кнопка закрытия)
36
- */
37
- actionButton?: ReactNode;
38
- /**
39
- * Нода, компонент или функция возвращающая их
40
- *
41
- * Контейнер к которому будут добавляться порталы
42
- */
43
- container?: BaseModalProps["container"];
44
- /**
45
- * Рендерить ли в контейнер через портал.
46
- */
47
- usePortal?: BaseModalProps["usePortal"];
48
- /**
49
- * Дополнительный класс
50
- */
51
- className?: string;
52
- /**
53
- * Дополнительный класс
54
- */
55
- contentClassName?: string;
56
- /**
57
- * Дополнительные пропсы на контейнер.
58
- */
59
- containerProps?: HTMLAttributes<HTMLDivElement>;
60
- /**
61
- * Дополнительный класс
62
- */
63
- containerClassName?: string;
64
- /**
65
- * Цвет фона
66
- */
67
- backgroundColor?: Extract<BackgroundColorType, "primary" | "secondary">;
68
- /**
69
- * Дополнительный класс шапки
70
- */
71
- headerClassName?: string;
72
- /**
73
- * Дополнительный класс футера
74
- */
75
- footerClassName?: string;
76
- /**
77
- * Дополнительный класс для аддонов
78
- */
79
- addonClassName?: string;
80
- /**
81
- * Дополнительный класс для компонента крестика
82
- */
83
- closerClassName?: string;
84
- /**
85
- * Дополнительный класс для компонента стрелки назад
86
- */
87
- backerClassName?: string;
88
- /**
89
- * Дополнительный класс для компонента модального окна
90
- */
91
- modalClassName?: string;
92
- /**
93
- * Дополнительный класс для обертки модального окна
94
- */
95
- modalWrapperClassName?: string;
96
- /**
97
- * Дополнительный класс для маркера
98
- */
99
- swipeableMarkerClassName?: string;
100
- /**
101
- * Кастомный маркер
102
- */
103
- swipeableMarker?: ReactElement;
104
- /**
105
- * TransitionProps, прокидываются в компонент CSSTransitionProps.
106
- */
107
- transitionProps?: Partial<TransitionProps>;
108
- /**
109
- * Идентификатор для систем автоматизированного тестирования
110
- */
111
- dataTestId?: string;
112
- /**
113
- * z-index компонента
114
- */
115
- zIndex?: number;
116
- /**
117
- * Будет ли свайпаться шторка
118
- * @default true
119
- */
120
- swipeable?: boolean;
121
- /**
122
- * Будет ли свайпаться контент
123
- */
124
- swipeableContent?: boolean;
125
- /**
126
- * Порог свайпа
127
- */
128
- swipeThreshold?: number;
129
- /**
130
- * Слот слева
131
- */
132
- leftAddons?: ReactNode;
133
- /**
134
- * Слот справа
135
- */
136
- rightAddons?: ReactNode;
137
- /**
138
- * Слот снизу
139
- */
140
- bottomAddons?: ReactNode;
141
- /**
142
- * Наличие компонента крестика
143
- */
144
- hasCloser?: boolean;
145
- /**
146
- * Наличие компонента стрелки назад
147
- */
148
- hasBacker?: boolean;
149
- /**
150
- * Выравнивание заголовка
151
- */
152
- titleAlign?: BottomSheetTitleAlign;
153
- /**
154
- * Фиксирует шапку
155
- */
156
- stickyHeader?: boolean;
157
- /**
158
- * Фиксирует футер
159
- */
160
- stickyFooter?: boolean;
161
- /**
162
- * Высота шторки
163
- */
164
- initialHeight?: "default" | "full";
165
- /**
166
- * Будет ли виден оверлэй
167
- */
168
- hideOverlay?: boolean;
169
- /**
170
- * Будет ли видна шапка
171
- */
172
- hideHeader?: boolean;
173
- /**
174
- * Будет ли обрезан заголовок
175
- */
176
- trimTitle?: boolean;
177
- /**
178
- * Запретить закрытие шторки кликом на оверлэй
179
- */
180
- disableOverlayClick?: boolean;
181
- /**
182
- * Отключает блокировку скролла при открытии модального окна
183
- */
184
- disableBlockingScroll?: boolean;
185
- /**
186
- * Отключает ловушку фокуса
187
- */
188
- disableFocusLock?: boolean;
189
- /**
190
- * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
191
- * Не анимировать шторку при изменении размера вьюпорта
192
- */
193
- ignoreScreenChange?: boolean;
194
- /**
195
- * Свойства для Бэкдропа
196
- */
197
- backdropProps?: BaseModalProps["backdropProps"];
198
- /**
199
- * Реф на контейнер, в котором происходит скролл
200
- */
201
- scrollableContainerRef?: RefObject<HTMLElement>;
202
- /**
203
- * Реф для управления компонентом.
204
- */
205
- bottomSheetInstanceRef?: RefObject<{
206
- scrollToArea: (idx: number) => void;
207
- }>;
208
- /**
209
- * Реф на контейнер, в котором находится шторка
210
- */
211
- sheetContainerRef?: RefObject<HTMLElement>;
212
- /**
213
- * Магнитные области видимой высоты шторки.
214
- * Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
215
- * По-умолчанию -[0, window.innerHeight - '24px']
216
- * массив должен состоять минимум из 2 элементов
217
- */
218
- magneticAreas?: Array<number | string>;
219
- /**
220
- * Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
221
- */
222
- initialActiveAreaIndex?: number;
223
- /**
224
- * Отключает скролл контентной области.
225
- */
226
- scrollLocked?: boolean;
227
- /**
228
- * Скрыть скроллбар внутри шторки
229
- */
230
- hideScrollbar?: boolean;
231
- /**
232
- * Верхний отступ шторки, если она открыта на максимальную высоту
233
- */
234
- headerOffset?: number;
235
- /**
236
- * Содержимое bottom-sheet всегда в DOM
237
- */
238
- keepMounted?: boolean;
239
- /**
240
- * Отключает автоматический перевод фокуса на bottom-sheet при открытии
241
- */
242
- disableAutoFocus?: boolean;
243
- /**
244
- * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
245
- */
246
- disableRestoreFocus?: boolean;
247
- /**
248
- * Отключает вызов `onClose` при нажатии Escape
249
- */
250
- disableEscapeKeyDown?: boolean;
251
- /**
252
- * Обработчик закрытия
253
- */
254
- onClose: () => void;
255
- /**
256
- * Обработчик нажатия на стрелку назад
257
- */
258
- onBack?: () => void;
259
- /**
260
- * Вызывается в начале анимации притягивания к одной из `magneticAreas`
261
- */
262
- onMagnetize?: (index: number) => void;
263
- /**
264
- * Вызывается после окончания анимации притягивания
265
- */
266
- onMagnetizeEnd?: (index: number) => void;
267
- /**
268
- * Вызывается при изменении положения шторки
269
- */
270
- onOffsetChange?: (offset: number, percent: number) => void;
271
- /**
272
- * Вызывается в начале свайпа
273
- */
274
- onSwipeStart?: (event: HandledEvents) => void;
275
- /**
276
- * Вызывается после окончания свайпа
277
- */
278
- onSwipeEnd?: (event: HandledEvents | null) => void;
279
- };
280
- declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
281
- declare const TIMEOUT = 500;
282
- declare const SWIPE_VELOCITY = 0.4;
283
- declare const MARKER_HEIGHT = 24;
284
- declare const CLOSE_OFFSET = 0.2;
285
- declare const SCROLL_OFFSET = 1;
286
- declare const HEADER_OFFSET = 24;
287
- declare const convertPercentToNumber: (value: string | number, fullHeight: number, headerOffset?: number) => number;
288
- type FooterProps = {
289
- /**
290
- * Контент футера
291
- */
292
- children?: ReactNode;
293
- /**
294
- * Фиксирует футер
295
- */
296
- sticky?: boolean;
297
- /**
298
- * Дополнительный класс
299
- */
300
- className?: string;
301
- };
302
- declare const Footer: FC<FooterProps>;
303
- type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
304
- headerRef: RefObject<HTMLDivElement>;
305
- headerOffset: number;
306
- };
307
- declare const Header: FC<HeaderProps>;
308
- type SwipeableBackdropProps = BackdropProps & {
309
- /**
310
- * Прозрачность бэкдропа
311
- */
312
- opacity?: number;
313
- /**
314
- * Обработчики свайпа
315
- */
316
- handlers?: SwipeableHandlers;
317
- /**
318
- * Время анимации opacity
319
- */
320
- opacityTimeout?: number;
321
- };
322
- declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
323
- export { BottomSheet, TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber, FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop };
324
- export type { BottomSheetProps, BottomSheetTitleAlign };
@@ -1,2 +0,0 @@
1
- export * from "./Component.mobile-d7e9f69d";
2
- export {};
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { OptionShape, OptionsListProps } from "./typings-0f4b9bed";
4
- import { HeaderProps } from "./Component-ebda875c";
5
- type FooterProps = {
6
- handleClear?: () => void;
7
- handleApply?: () => void;
8
- showClear?: boolean;
9
- selectedDraft?: OptionShape[];
10
- };
11
- declare const Footer: ({ handleApply, handleClear, showClear, selectedDraft }: FooterProps) => React.JSX.Element;
12
- declare const OptionsListWithApply: React.ForwardRefExoticComponent<OptionsListProps & {
13
- showClear?: boolean | undefined;
14
- onClose?: (() => void) | undefined;
15
- selectedDraft?: OptionShape[] | undefined;
16
- OptionsList?: React.FC<OptionsListProps & React.RefAttributes<HTMLDivElement>> | undefined;
17
- Footer?: React.FC<FooterProps> | undefined;
18
- Header?: React.FC<HeaderProps> | undefined;
19
- headerProps?: HeaderProps | undefined;
20
- showHeaderWithSelectAll?: boolean | undefined;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- export { FooterProps, Footer, OptionsListWithApply };
@@ -1,72 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { ReactNode } from "react";
4
- import { BottomSheetProps } from "./index-f12ee135";
5
- import { BaseSelectProps } from "./typings-0f4b9bed";
6
- type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
- /**
8
- * Футер
9
- * @deprecated Используйте bottomSheetProps.actionButton
10
- */
11
- footer?: ReactNode;
12
- /**
13
- * Будет ли свайпаться шторка
14
- * @deprecated Используйте bottomSheetProps.swipeable
15
- */
16
- swipeable?: boolean;
17
- /**
18
- * Отображать в BottomSheet
19
- */
20
- isBottomSheet?: boolean;
21
- /**
22
- * Дополнительные пропсы шторки
23
- */
24
- bottomSheetProps?: Partial<BottomSheetProps>;
25
- /**
26
- * Дополнительные пропсы модалки
27
- */
28
- modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
29
- /**
30
- * Дополнительные пропсы шапки модалки
31
- */
32
- modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
33
- /**
34
- * Дополнительные пропсы футера модалки
35
- */
36
- modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
37
- };
38
- declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
39
- /**
40
- * Футер
41
- * @deprecated Используйте bottomSheetProps.actionButton
42
- */
43
- footer?: ReactNode;
44
- /**
45
- * Будет ли свайпаться шторка
46
- * @deprecated Используйте bottomSheetProps.swipeable
47
- */
48
- swipeable?: boolean | undefined;
49
- /**
50
- * Отображать в BottomSheet
51
- */
52
- isBottomSheet?: boolean | undefined;
53
- /**
54
- * Дополнительные пропсы шторки
55
- */
56
- bottomSheetProps?: Partial<BottomSheetProps> | undefined;
57
- /**
58
- * Дополнительные пропсы модалки
59
- */
60
- modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
61
- /**
62
- * Дополнительные пропсы шапки модалки
63
- */
64
- modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
65
- /**
66
- * Дополнительные пропсы футера модалки
67
- */
68
- modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
69
- } & React.RefAttributes<unknown>>;
70
- export * from "./Component.mobile-f1f15074";
71
- export { ModalMobileProps } from "./typings-bdb4c6b9";
72
- export { SelectMobileProps, BaseSelectMobile };
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { FC, SVGProps } from "react";
4
- import { OptionShape } from "./shared-4cd3936b";
5
- import { OptionProps as BaseOptionProps } from "./shared-4cd3936b";
6
- type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
- option: OptionShape & {
8
- icon?: FC<SVGProps<SVGSVGElement>>;
9
- };
10
- };
11
- declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
12
- export { Option };