@alfalab/core-components-intl-phone-input 9.4.6 → 9.5.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 (257) hide show
  1. package/Component-4cd3936b.d.ts +8 -0
  2. package/Component-50136800.d.ts +100 -0
  3. package/Component-5e1b8383.d.ts +22 -0
  4. package/Component-63dec22f.d.ts +167 -0
  5. package/Component-8b2c2707.d.ts +71 -0
  6. package/Component-9211a437.d.ts +38 -0
  7. package/Component-bdb4c6b9.d.ts +12 -0
  8. package/Component-c76d6398.d.ts +5 -0
  9. package/Component-ebda875c.d.ts +12 -0
  10. package/Component.desktop-2e2b2125.d.ts +6 -0
  11. package/Component.desktop-63dec22f.d.ts +18 -0
  12. package/Component.desktop-785df74d.d.ts +6 -0
  13. package/Component.desktop-d873d97d.d.ts +6 -0
  14. package/Component.desktop-ed17077e.d.ts +77 -0
  15. package/Component.mobile-755fbaa3.d.ts +6 -0
  16. package/Component.mobile-d7e9f69d.d.ts +6 -0
  17. package/Component.responsive-3109f463.d.ts +26 -0
  18. package/Context-bdb4c6b9.d.ts +4 -0
  19. package/ResponsiveContext-baf4875b.d.ts +5 -0
  20. package/component-50136800.d.ts +44 -0
  21. package/component.d.ts +3 -3
  22. package/component.js +5 -4
  23. package/components/flag-icon/component.js +1 -1
  24. package/components/flag-icon/index.css +3 -3
  25. package/components/index.js +2 -1
  26. package/components/select/component.d.ts +2 -2
  27. package/components/select/component.js +5 -4
  28. package/components/select/index.css +6 -6
  29. package/components/select/index.js +2 -1
  30. package/components/select-field/component.d.ts +1 -1
  31. package/components/select-field/component.js +1 -1
  32. package/components/select-field/index.css +9 -9
  33. package/consts-f777ba1a.d.ts +2 -0
  34. package/createPaddingStyle-72dda473.d.ts +5 -0
  35. package/cssm/Component-4cd3936b.d.ts +8 -0
  36. package/cssm/Component-50136800.d.ts +100 -0
  37. package/cssm/Component-5e1b8383.d.ts +22 -0
  38. package/cssm/Component-63dec22f.d.ts +167 -0
  39. package/cssm/Component-8b2c2707.d.ts +71 -0
  40. package/cssm/Component-9211a437.d.ts +38 -0
  41. package/cssm/Component-bdb4c6b9.d.ts +12 -0
  42. package/cssm/Component-c76d6398.d.ts +5 -0
  43. package/cssm/Component-ebda875c.d.ts +12 -0
  44. package/cssm/Component.desktop-2e2b2125.d.ts +6 -0
  45. package/cssm/Component.desktop-63dec22f.d.ts +18 -0
  46. package/cssm/Component.desktop-785df74d.d.ts +6 -0
  47. package/cssm/Component.desktop-d873d97d.d.ts +6 -0
  48. package/cssm/Component.desktop-ed17077e.d.ts +77 -0
  49. package/cssm/Component.mobile-755fbaa3.d.ts +6 -0
  50. package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
  51. package/cssm/Component.responsive-3109f463.d.ts +26 -0
  52. package/cssm/Context-bdb4c6b9.d.ts +4 -0
  53. package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
  54. package/cssm/component-50136800.d.ts +44 -0
  55. package/cssm/component.d.ts +3 -3
  56. package/cssm/component.js +4 -3
  57. package/cssm/components/index.js +2 -1
  58. package/cssm/components/select/component.d.ts +2 -2
  59. package/cssm/components/select/component.js +4 -3
  60. package/cssm/components/select/index.js +2 -1
  61. package/cssm/components/select-field/component.d.ts +1 -1
  62. package/cssm/consts-f777ba1a.d.ts +2 -0
  63. package/cssm/createPaddingStyle-72dda473.d.ts +5 -0
  64. package/cssm/desktop-2e2b2125.d.ts +2 -0
  65. package/cssm/desktop-63dec22f.d.ts +2 -0
  66. package/cssm/hook-9ea9e32c.d.ts +75 -0
  67. package/cssm/hook-c44170fe.d.ts +48 -0
  68. package/cssm/index-136acbb1.d.ts +28 -0
  69. package/cssm/index-3109f463.d.ts +62 -0
  70. package/cssm/index-50136800.d.ts +8 -0
  71. package/cssm/index-72dda473.d.ts +12 -0
  72. package/cssm/index-8b2c2707.d.ts +2 -0
  73. package/cssm/index-bdb4c6b9.d.ts +2 -0
  74. package/cssm/index-c44170fe.d.ts +157 -0
  75. package/cssm/index-c76d6398.d.ts +2 -0
  76. package/cssm/index-ebda875c.d.ts +37 -0
  77. package/cssm/index-f12ee135.d.ts +3 -0
  78. package/cssm/index.js +3 -2
  79. package/cssm/mobile-755fbaa3.d.ts +2 -0
  80. package/cssm/mobile-96988a65.d.ts +2 -0
  81. package/cssm/shared-4cd3936b.d.ts +64 -0
  82. package/cssm/types-72dda473.d.ts +259 -0
  83. package/cssm/types-83e2bd9e.d.ts +113 -0
  84. package/cssm/typings-5e1b8383.d.ts +550 -0
  85. package/cssm/typings-9211a437.d.ts +95 -0
  86. package/cssm/typings-bdb4c6b9.d.ts +52 -0
  87. package/cssm/utils-1574ad8b.d.ts +29 -0
  88. package/cssm/utils-49cc3c24.d.ts +8 -0
  89. package/cssm/utils-5e1b8383.d.ts +38 -0
  90. package/desktop-2e2b2125.d.ts +2 -0
  91. package/desktop-63dec22f.d.ts +2 -0
  92. package/esm/Component-4cd3936b.d.ts +8 -0
  93. package/esm/Component-50136800.d.ts +100 -0
  94. package/esm/Component-5e1b8383.d.ts +22 -0
  95. package/esm/Component-63dec22f.d.ts +167 -0
  96. package/esm/Component-8b2c2707.d.ts +71 -0
  97. package/esm/Component-9211a437.d.ts +38 -0
  98. package/esm/Component-bdb4c6b9.d.ts +12 -0
  99. package/esm/Component-c76d6398.d.ts +5 -0
  100. package/esm/Component-ebda875c.d.ts +12 -0
  101. package/esm/Component.desktop-2e2b2125.d.ts +6 -0
  102. package/esm/Component.desktop-63dec22f.d.ts +18 -0
  103. package/esm/Component.desktop-785df74d.d.ts +6 -0
  104. package/esm/Component.desktop-d873d97d.d.ts +6 -0
  105. package/esm/Component.desktop-ed17077e.d.ts +77 -0
  106. package/esm/Component.mobile-755fbaa3.d.ts +6 -0
  107. package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
  108. package/esm/Component.responsive-3109f463.d.ts +26 -0
  109. package/esm/Context-bdb4c6b9.d.ts +4 -0
  110. package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
  111. package/esm/component-50136800.d.ts +44 -0
  112. package/esm/component.d.ts +3 -3
  113. package/esm/component.js +5 -4
  114. package/esm/components/flag-icon/component.js +1 -1
  115. package/esm/components/flag-icon/index.css +3 -3
  116. package/esm/components/index.js +2 -1
  117. package/esm/components/select/component.d.ts +2 -2
  118. package/esm/components/select/component.js +4 -3
  119. package/esm/components/select/index.css +6 -6
  120. package/esm/components/select/index.js +2 -1
  121. package/esm/components/select-field/component.d.ts +1 -1
  122. package/esm/components/select-field/component.js +1 -1
  123. package/esm/components/select-field/index.css +9 -9
  124. package/esm/consts-f777ba1a.d.ts +2 -0
  125. package/esm/createPaddingStyle-72dda473.d.ts +5 -0
  126. package/esm/desktop-2e2b2125.d.ts +2 -0
  127. package/esm/desktop-63dec22f.d.ts +2 -0
  128. package/esm/hook-9ea9e32c.d.ts +75 -0
  129. package/esm/hook-c44170fe.d.ts +48 -0
  130. package/esm/index-136acbb1.d.ts +28 -0
  131. package/esm/index-3109f463.d.ts +62 -0
  132. package/esm/index-50136800.d.ts +8 -0
  133. package/esm/index-72dda473.d.ts +12 -0
  134. package/esm/index-8b2c2707.d.ts +2 -0
  135. package/esm/index-bdb4c6b9.d.ts +2 -0
  136. package/esm/index-c44170fe.d.ts +157 -0
  137. package/esm/index-c76d6398.d.ts +2 -0
  138. package/esm/index-ebda875c.d.ts +37 -0
  139. package/esm/index-f12ee135.d.ts +3 -0
  140. package/esm/index.css +5 -5
  141. package/esm/index.js +3 -2
  142. package/esm/mobile-755fbaa3.d.ts +2 -0
  143. package/esm/mobile-96988a65.d.ts +2 -0
  144. package/esm/shared-4cd3936b.d.ts +64 -0
  145. package/esm/types-72dda473.d.ts +259 -0
  146. package/esm/types-83e2bd9e.d.ts +113 -0
  147. package/esm/typings-5e1b8383.d.ts +550 -0
  148. package/esm/typings-9211a437.d.ts +95 -0
  149. package/esm/typings-bdb4c6b9.d.ts +52 -0
  150. package/esm/utils-1574ad8b.d.ts +29 -0
  151. package/esm/utils-49cc3c24.d.ts +8 -0
  152. package/esm/utils-5e1b8383.d.ts +38 -0
  153. package/hook-9ea9e32c.d.ts +75 -0
  154. package/hook-c44170fe.d.ts +48 -0
  155. package/index-136acbb1.d.ts +28 -0
  156. package/index-3109f463.d.ts +62 -0
  157. package/index-50136800.d.ts +8 -0
  158. package/index-72dda473.d.ts +12 -0
  159. package/index-8b2c2707.d.ts +2 -0
  160. package/index-bdb4c6b9.d.ts +2 -0
  161. package/index-c44170fe.d.ts +157 -0
  162. package/index-c76d6398.d.ts +2 -0
  163. package/index-ebda875c.d.ts +37 -0
  164. package/index-f12ee135.d.ts +3 -0
  165. package/index.css +5 -5
  166. package/index.js +3 -2
  167. package/mobile-755fbaa3.d.ts +2 -0
  168. package/mobile-96988a65.d.ts +2 -0
  169. package/modern/Component-4cd3936b.d.ts +8 -0
  170. package/modern/Component-50136800.d.ts +100 -0
  171. package/modern/Component-5e1b8383.d.ts +22 -0
  172. package/modern/Component-63dec22f.d.ts +167 -0
  173. package/modern/Component-8b2c2707.d.ts +71 -0
  174. package/modern/Component-9211a437.d.ts +38 -0
  175. package/modern/Component-bdb4c6b9.d.ts +12 -0
  176. package/modern/Component-c76d6398.d.ts +5 -0
  177. package/modern/Component-ebda875c.d.ts +12 -0
  178. package/modern/Component.desktop-2e2b2125.d.ts +6 -0
  179. package/modern/Component.desktop-63dec22f.d.ts +18 -0
  180. package/modern/Component.desktop-785df74d.d.ts +6 -0
  181. package/modern/Component.desktop-d873d97d.d.ts +6 -0
  182. package/modern/Component.desktop-ed17077e.d.ts +77 -0
  183. package/modern/Component.mobile-755fbaa3.d.ts +6 -0
  184. package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
  185. package/modern/Component.responsive-3109f463.d.ts +26 -0
  186. package/modern/Context-bdb4c6b9.d.ts +4 -0
  187. package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
  188. package/modern/component-50136800.d.ts +44 -0
  189. package/modern/component.d.ts +3 -3
  190. package/modern/component.js +5 -4
  191. package/modern/components/flag-icon/component.js +1 -1
  192. package/modern/components/flag-icon/index.css +3 -3
  193. package/modern/components/index.js +2 -1
  194. package/modern/components/select/component.d.ts +2 -2
  195. package/modern/components/select/component.js +4 -3
  196. package/modern/components/select/index.css +6 -6
  197. package/modern/components/select/index.js +2 -1
  198. package/modern/components/select-field/component.d.ts +1 -1
  199. package/modern/components/select-field/component.js +1 -1
  200. package/modern/components/select-field/index.css +9 -9
  201. package/modern/consts-f777ba1a.d.ts +2 -0
  202. package/modern/createPaddingStyle-72dda473.d.ts +5 -0
  203. package/modern/desktop-2e2b2125.d.ts +2 -0
  204. package/modern/desktop-63dec22f.d.ts +2 -0
  205. package/modern/hook-9ea9e32c.d.ts +75 -0
  206. package/modern/hook-c44170fe.d.ts +48 -0
  207. package/modern/index-136acbb1.d.ts +28 -0
  208. package/modern/index-3109f463.d.ts +62 -0
  209. package/modern/index-50136800.d.ts +8 -0
  210. package/modern/index-72dda473.d.ts +12 -0
  211. package/modern/index-8b2c2707.d.ts +2 -0
  212. package/modern/index-bdb4c6b9.d.ts +2 -0
  213. package/modern/index-c44170fe.d.ts +157 -0
  214. package/modern/index-c76d6398.d.ts +2 -0
  215. package/modern/index-ebda875c.d.ts +37 -0
  216. package/modern/index-f12ee135.d.ts +3 -0
  217. package/modern/index.css +5 -5
  218. package/modern/index.js +3 -2
  219. package/modern/mobile-755fbaa3.d.ts +2 -0
  220. package/modern/mobile-96988a65.d.ts +2 -0
  221. package/modern/shared-4cd3936b.d.ts +64 -0
  222. package/modern/types-72dda473.d.ts +259 -0
  223. package/modern/types-83e2bd9e.d.ts +113 -0
  224. package/modern/typings-5e1b8383.d.ts +550 -0
  225. package/modern/typings-9211a437.d.ts +95 -0
  226. package/modern/typings-bdb4c6b9.d.ts +52 -0
  227. package/modern/utils-1574ad8b.d.ts +29 -0
  228. package/modern/utils-49cc3c24.d.ts +8 -0
  229. package/modern/utils-5e1b8383.d.ts +38 -0
  230. package/package.json +3 -3
  231. package/shared-4cd3936b.d.ts +64 -0
  232. package/src/component.tsx +574 -0
  233. package/src/components/flag-icon/component.tsx +33 -0
  234. package/src/components/flag-icon/flagSprite.ts +228 -0
  235. package/src/components/flag-icon/index.module.css +15 -0
  236. package/src/components/flag-icon/index.ts +1 -0
  237. package/src/components/index.ts +3 -0
  238. package/src/components/select/component.tsx +76 -0
  239. package/src/components/select/index.module.css +26 -0
  240. package/src/components/select/index.ts +1 -0
  241. package/src/components/select-field/component.tsx +51 -0
  242. package/src/components/select-field/index.module.css +43 -0
  243. package/src/components/select-field/index.ts +1 -0
  244. package/src/index.module.css +25 -0
  245. package/src/index.ts +1 -0
  246. package/src/useCaretAvoidCountryCode.ts +55 -0
  247. package/src/utils/calculateCaretPos.ts +26 -0
  248. package/src/utils/format-phone-with-unclearable-country-code.ts +25 -0
  249. package/src/utils/preparePasteData.ts +63 -0
  250. package/types-72dda473.d.ts +259 -0
  251. package/types-83e2bd9e.d.ts +113 -0
  252. package/typings-5e1b8383.d.ts +550 -0
  253. package/typings-9211a437.d.ts +95 -0
  254. package/typings-bdb4c6b9.d.ts +52 -0
  255. package/utils-1574ad8b.d.ts +29 -0
  256. package/utils-49cc3c24.d.ts +8 -0
  257. package/utils-5e1b8383.d.ts +38 -0
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { FieldProps } from "./shared-4cd3936b";
4
+ import { InputAutocompleteDesktopProps } from "./Component.desktop-ed17077e";
5
+ type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteDesktopProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
6
+ declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, }: AutocompleteFieldProps) => React.JSX.Element;
7
+ export * from "./Component.desktop-d873d97d";
8
+ export { AutocompleteFieldProps, AutocompleteField };
@@ -0,0 +1,100 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ReactNode } from "react";
4
+ import { ModalMobileProps, ContentProps } from "./typings-bdb4c6b9";
5
+ import { BottomSheetProps } from "./index-f12ee135";
6
+ import { BaseSelectProps } from "./typings-5e1b8383";
7
+ type FooterProps = {
8
+ /**
9
+ * Контент футера
10
+ */
11
+ children?: ReactNode;
12
+ /**
13
+ * Дополнительный класс
14
+ */
15
+ className?: string;
16
+ /**
17
+ * Фиксирует футер
18
+ */
19
+ sticky?: boolean;
20
+ /**
21
+ * Выравнивание элементов футера
22
+ */
23
+ layout?: "start" | "center" | "space-between" | "column";
24
+ /**
25
+ * Отступы между элементами футера
26
+ */
27
+ gap?: 16 | 24 | 32;
28
+ };
29
+ declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
30
+ Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
31
+ Header: React.FC<import("./Component-c76d6398").HeaderProps>;
32
+ Footer: React.FC<FooterProps>;
33
+ };
34
+ declare const Content: FC<ContentProps>;
35
+ type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
36
+ /**
37
+ * Футер
38
+ * @deprecated Используйте bottomSheetProps.actionButton
39
+ */
40
+ footer?: ReactNode;
41
+ /**
42
+ * Будет ли свайпаться шторка
43
+ * @deprecated Используйте bottomSheetProps.swipeable
44
+ */
45
+ swipeable?: boolean;
46
+ /**
47
+ * Отображать в BottomSheet
48
+ */
49
+ isBottomSheet?: boolean;
50
+ /**
51
+ * Дополнительные пропсы шторки
52
+ */
53
+ bottomSheetProps?: Partial<BottomSheetProps>;
54
+ /**
55
+ * Дополнительные пропсы модалки
56
+ */
57
+ modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
58
+ /**
59
+ * Дополнительные пропсы шапки модалки
60
+ */
61
+ modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
62
+ /**
63
+ * Дополнительные пропсы футера модалки
64
+ */
65
+ modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
66
+ };
67
+ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
68
+ /**
69
+ * Футер
70
+ * @deprecated Используйте bottomSheetProps.actionButton
71
+ */
72
+ footer?: ReactNode;
73
+ /**
74
+ * Будет ли свайпаться шторка
75
+ * @deprecated Используйте bottomSheetProps.swipeable
76
+ */
77
+ swipeable?: boolean | undefined;
78
+ /**
79
+ * Отображать в BottomSheet
80
+ */
81
+ isBottomSheet?: boolean | undefined;
82
+ /**
83
+ * Дополнительные пропсы шторки
84
+ */
85
+ bottomSheetProps?: Partial<BottomSheetProps> | undefined;
86
+ /**
87
+ * Дополнительные пропсы модалки
88
+ */
89
+ modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
90
+ /**
91
+ * Дополнительные пропсы шапки модалки
92
+ */
93
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
94
+ /**
95
+ * Дополнительные пропсы футера модалки
96
+ */
97
+ modalFooterProps?: Partial<FooterProps> | undefined;
98
+ } & React.RefAttributes<unknown>>;
99
+ export { ModalMobile, Content, SelectMobileProps, BaseSelectMobile };
100
+ export { ModalMobileProps } from "./typings-bdb4c6b9";
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { OptionShape, OptionsListProps } from "./typings-5e1b8383";
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 };
@@ -0,0 +1,167 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
4
+ declare const colors: readonly [
5
+ "tertiary",
6
+ "disabled",
7
+ "accent",
8
+ "primary",
9
+ "attention",
10
+ "positive",
11
+ "secondary",
12
+ "tertiary-inverted",
13
+ "primary-inverted",
14
+ "secondary-inverted",
15
+ "link",
16
+ "negative",
17
+ "static-primary-light",
18
+ "static-secondary-light",
19
+ "static-tertiary-light",
20
+ "static-primary-dark",
21
+ "static-secondary-dark",
22
+ "static-tertiary-dark",
23
+ "static-accent"
24
+ ];
25
+ type Color = (typeof colors)[number];
26
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
27
+ type NativeProps = HTMLAttributes<HTMLSpanElement>;
28
+ type TextBaseProps = {
29
+ /**
30
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
31
+ */
32
+ view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
33
+ /**
34
+ * Цвет текста
35
+ */
36
+ color?: Color;
37
+ /**
38
+ * Толщина шрифта
39
+ */
40
+ weight?: "regular" | "medium" | "bold";
41
+ /**
42
+ * Делает цифры моноширинными
43
+ */
44
+ monospaceNumbers?: boolean;
45
+ /**
46
+ * HTML тег
47
+ */
48
+ tag?: "span" | "div";
49
+ /**
50
+ * Css-класс для стилизации (native prop)
51
+ */
52
+ className?: string;
53
+ /**
54
+ * Id компонента для тестов
55
+ */
56
+ dataTestId?: string;
57
+ /**
58
+ * Контент (native prop)
59
+ */
60
+ children?: React.ReactNode;
61
+ /**
62
+ * Добавляет отступы к тэгу 'p'
63
+ */
64
+ defaultMargins?: never;
65
+ /**
66
+ * Количество строк (не поддерживает IE)
67
+ */
68
+ rowLimit?: 1 | 2 | 3;
69
+ };
70
+ type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
71
+ tag?: "p";
72
+ defaultMargins?: boolean;
73
+ };
74
+ type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
75
+ type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
76
+ type TitleProps = Omit<NativeProps$0, "color"> & {
77
+ /**
78
+ * HTML тег
79
+ */
80
+ tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
81
+ /**
82
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
83
+ */
84
+ view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
85
+ /**
86
+ * Цвет текста
87
+ */
88
+ color?: Color;
89
+ /**
90
+ * Толщина шрифта
91
+ */
92
+ weight?: "regular" | "medium" | "bold";
93
+ /**
94
+ * Шрифт текста
95
+ */
96
+ font?: "styrene" | "system";
97
+ /**
98
+ * Добавляет отступы
99
+ */
100
+ defaultMargins?: boolean;
101
+ /**
102
+ * Css-класс для стилизации (native prop)
103
+ */
104
+ className?: string;
105
+ /**
106
+ * Id компонента для тестов
107
+ */
108
+ dataTestId?: string;
109
+ /**
110
+ * Контент (native prop)
111
+ */
112
+ children?: React.ReactNode;
113
+ /**
114
+ * Количество строк (не поддерживает IE)
115
+ */
116
+ rowLimit?: 1 | 2 | 3;
117
+ };
118
+ type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
119
+ declare const Typography: {
120
+ Title: FC<TitleProps>;
121
+ Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
122
+ TitleResponsive: FC<TitleProps>;
123
+ TitleMobile: FC<TitleMobileProps>;
124
+ };
125
+ declare const typographyPresets: {
126
+ mobile: {
127
+ list: {
128
+ text: {
129
+ primary: {
130
+ tag: string;
131
+ view: string;
132
+ };
133
+ secondary: {
134
+ tag: string;
135
+ color: string;
136
+ view: string;
137
+ };
138
+ };
139
+ };
140
+ };
141
+ };
142
+ declare const TitleResponsive: FC<TitleProps>;
143
+ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
144
+ /**
145
+ * Текст после иконки
146
+ */
147
+ text?: string;
148
+ /**
149
+ * Дополнительный класс
150
+ */
151
+ className?: string;
152
+ /**
153
+ * Вид компонента
154
+ */
155
+ view: 'mobile' | 'desktop';
156
+ /**
157
+ * Прозрачность текста
158
+ */
159
+ textOpacity?: number;
160
+ /**
161
+ * Обработчик клика
162
+ */
163
+ onClick?: () => void;
164
+ }
165
+ declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
166
+ export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
167
+ export type { TitleProps, TextProps, Color };
@@ -0,0 +1,71 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactElement } from "react";
4
+ import { ButtonProps } from "./index-8b2c2707";
5
+ type IconButtonProps = {
6
+ /**
7
+ * Компонент иконки
8
+ */
9
+ icon: ElementType<{
10
+ className?: string;
11
+ }> | ReactElement;
12
+ /**
13
+ * Тип кнопки
14
+ */
15
+ view?: 'primary' | 'secondary' | 'transparent' | 'tertiary' | 'negative';
16
+ /**
17
+ * Размер компонента
18
+ */
19
+ size?: 'xxs' | 'xs' | 's';
20
+ /**
21
+ * Дополнительный класс
22
+ */
23
+ className?: string;
24
+ /**
25
+ * Выравнивание иконки
26
+ * @default 'center'
27
+ */
28
+ alignIcon?: 'left' | 'center' | 'right';
29
+ /**
30
+ * Идентификатор для систем автоматизированного тестирования
31
+ */
32
+ dataTestId?: string;
33
+ /**
34
+ * Набор цветов для компонента
35
+ */
36
+ colors?: 'default' | 'inverted';
37
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size'> & Pick<ButtonProps, 'href' | 'loading' | 'breakpoint'> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'download'>;
38
+ declare const IconButton: React.ForwardRefExoticComponent<{
39
+ /**
40
+ * Компонент иконки
41
+ */
42
+ icon: ElementType<{
43
+ className?: string;
44
+ }> | ReactElement;
45
+ /**
46
+ * Тип кнопки
47
+ */
48
+ view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
49
+ /**
50
+ * Размер компонента
51
+ */
52
+ size?: "s" | "xs" | "xxs" | undefined;
53
+ /**
54
+ * Дополнительный класс
55
+ */
56
+ className?: string | undefined;
57
+ /**
58
+ * Выравнивание иконки
59
+ * @default 'center'
60
+ */
61
+ alignIcon?: "center" | "right" | "left" | undefined;
62
+ /**
63
+ * Идентификатор для систем автоматизированного тестирования
64
+ */
65
+ dataTestId?: string | undefined;
66
+ /**
67
+ * Набор цветов для компонента
68
+ */
69
+ colors?: "default" | "inverted" | undefined;
70
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
71
+ export { IconButtonProps, IconButton };
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ import { BaseButtonProps } from "./typings-9211a437";
5
+ type SpinnerProps = {
6
+ /**
7
+ * Управление видимостью компонента
8
+ */
9
+ visible?: boolean;
10
+ /**
11
+ * Размер компонента
12
+ */
13
+ size?: "xs" | "s" | "m";
14
+ /**
15
+ * Дополнительный класс
16
+ */
17
+ className?: string;
18
+ /**
19
+ * Идентификатор компонента в DOM
20
+ */
21
+ id?: string;
22
+ /**
23
+ * Идентификатор для систем автоматизированного тестирования
24
+ */
25
+ dataTestId?: string;
26
+ /**
27
+ * Палитра, в контексте которой используется спиннер
28
+ */
29
+ colors?: "default" | "inverted";
30
+ };
31
+ declare const Spinner: FC<SpinnerProps>;
32
+ /**
33
+ * Минимальное время отображения лоадера - 500мс,
34
+ * чтобы при быстрых ответах от сервера кнопка не «моргала».
35
+ */
36
+ declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
37
+ declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
+ export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { View } from "./typings-bdb4c6b9";
4
+ declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
5
+ size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
6
+ fullscreen?: boolean | undefined;
7
+ fixedPosition?: boolean | undefined;
8
+ hasCloser?: boolean | undefined;
9
+ } & {
10
+ view: View;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ export { Modal };
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { NavigationBarProps } from "./index-c76d6398";
3
+ type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
4
+ declare const Header: FC<HeaderProps>;
5
+ export { HeaderProps, Header };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react-transition-group" />
3
+ import React from 'react';
4
+ import { CheckboxProps } from "./index-ebda875c";
5
+ type HeaderProps = {
6
+ checked?: boolean;
7
+ indeterminate?: boolean;
8
+ onChange?: CheckboxProps['onChange'];
9
+ mobile?: boolean;
10
+ };
11
+ declare const Header: React.FC<HeaderProps>;
12
+ export { HeaderProps, Header };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
4
+ type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
5
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
+ export { ButtonDesktopProps, ButtonDesktop };
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { FormControlDesktopProps } from "./desktop-63dec22f";
4
+ import { BaseSelectProps } from "./typings-5e1b8383";
5
+ type SelectFieldProps = Omit<FormControlDesktopProps, 'size'> & Record<string, unknown>;
6
+ type SelectDesktopProps = Omit<BaseSelectProps, 'fieldProps'> & {
7
+ /**
8
+ * Пропсы, которые будут прокинуты в компонент поля
9
+ */
10
+ fieldProps?: SelectFieldProps;
11
+ };
12
+ declare const SelectDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "fieldProps"> & {
13
+ /**
14
+ * Пропсы, которые будут прокинуты в компонент поля
15
+ */
16
+ fieldProps?: SelectFieldProps | undefined;
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { SelectFieldProps, SelectDesktopProps, SelectDesktop };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
+ declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { FormControlDesktopProps, FormControlDesktop };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseInputProps } from "./index-c44170fe";
4
+ type InputDesktopProps = Omit<BaseInputProps, 'FormControlComponent' | 'colorStyles'>;
5
+ declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
6
+ export { InputDesktopProps, InputDesktop };
@@ -0,0 +1,77 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ChangeEvent, FC, RefAttributes } from "react";
4
+ import { InputProps } from "./index-c44170fe";
5
+ import { BaseSelectProps } from "./shared-4cd3936b";
6
+ type InputAutocompleteDesktopProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect'> & {
7
+ /**
8
+ * Компонент ввода значения
9
+ */
10
+ Input?: FC<InputProps & RefAttributes<HTMLInputElement>>;
11
+ /**
12
+ * Пропсы, которые будут прокинуты в инпут
13
+ */
14
+ inputProps?: InputProps & Record<string, unknown>;
15
+ /**
16
+ * Значение поля ввода
17
+ */
18
+ value?: string;
19
+ /**
20
+ * Поле доступно только для чтения
21
+ */
22
+ readOnly?: InputProps['readOnly'];
23
+ /**
24
+ * Отображение иконки успеха
25
+ */
26
+ success?: boolean;
27
+ /**
28
+ * Обработчик ввода
29
+ */
30
+ onInput?: (event: ChangeEvent<HTMLInputElement>) => void;
31
+ /**
32
+ * Хранит функцию, с помощью которой можно обновить положение поповера
33
+ */
34
+ updatePopover?: BaseSelectProps['updatePopover'];
35
+ };
36
+ declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "nativeSelect" | "Field"> & {
37
+ /**
38
+ * Компонент ввода значения
39
+ */
40
+ Input?: React.FC<Omit<import("./index-c44170fe").BaseInputProps, "FormControlComponent" | "colorStyles"> & {
41
+ breakpoint?: number | undefined;
42
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined; /**
43
+ * Пропсы, которые будут прокинуты в инпут
44
+ */
45
+ } & React.RefAttributes<HTMLInputElement>> | undefined;
46
+ /**
47
+ * Пропсы, которые будут прокинуты в инпут
48
+ */
49
+ inputProps?: (Omit<import("./index-c44170fe").BaseInputProps, "FormControlComponent" | "colorStyles"> & {
50
+ breakpoint?: number | undefined;
51
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined; /**
52
+ * Пропсы, которые будут прокинуты в инпут
53
+ */
54
+ } & Record<string, unknown>) | undefined;
55
+ /**
56
+ * Значение поля ввода
57
+ */
58
+ value?: string | undefined;
59
+ /**
60
+ * Поле доступно только для чтения
61
+ */
62
+ readOnly?: InputProps['readOnly'];
63
+ /**
64
+ * Отображение иконки успеха
65
+ */
66
+ success?: boolean | undefined;
67
+ /**
68
+ * Обработчик ввода
69
+ */
70
+ onInput?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
71
+ /**
72
+ * Хранит функцию, с помощью которой можно обновить положение поповера
73
+ */
74
+ updatePopover?: BaseSelectProps['updatePopover'];
75
+ } & React.RefAttributes<HTMLInputElement>>;
76
+ export * from "./Component-4cd3936b";
77
+ export { InputAutocompleteDesktopProps, InputAutocompleteDesktop };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
4
+ type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
5
+ declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
+ export { ButtonMobileProps, ButtonMobile };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
+ declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { FormControlMobileProps, FormControlMobile };
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
+ /**
6
+ * Контрольная точка, с нее начинается desktop версия
7
+ * @default 1024
8
+ */
9
+ breakpoint?: number;
10
+ /**
11
+ * Значение по-умолчанию для хука useMatchMedia
12
+ */
13
+ defaultMatchMediaValue?: boolean | (() => boolean);
14
+ };
15
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
16
+ /**
17
+ * Контрольная точка, с нее начинается desktop версия
18
+ * @default 1024
19
+ */
20
+ breakpoint?: number | undefined;
21
+ /**
22
+ * Значение по-умолчанию для хука useMatchMedia
23
+ */
24
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
+ } & React.RefAttributes<HTMLDivElement>>;
26
+ export { FormControlProps, FormControl };
@@ -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 };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TResponsiveModalContext } from "./typings-bdb4c6b9";
4
+ declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
+ export { ResponsiveContext };
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ReactNode, RefObject } from "react";
4
+ import { NavigationBarProps } from "./index-c76d6398";
5
+ import { SwipeableHandlers } from "react-swipeable";
6
+ import { BackdropProps } from "./index-ebda875c";
7
+ import { BottomSheetProps } from "./types-72dda473";
8
+ type FooterProps = {
9
+ /**
10
+ * Контент футера
11
+ */
12
+ children?: ReactNode;
13
+ /**
14
+ * Фиксирует футер
15
+ */
16
+ sticky?: boolean;
17
+ /**
18
+ * Дополнительный класс
19
+ */
20
+ className?: string;
21
+ };
22
+ declare const Footer: FC<FooterProps>;
23
+ type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
24
+ headerRef: RefObject<HTMLDivElement>;
25
+ headerOffset: number;
26
+ };
27
+ declare const Header: FC<HeaderProps>;
28
+ type SwipeableBackdropProps = BackdropProps & {
29
+ /**
30
+ * Прозрачность бэкдропа
31
+ */
32
+ opacity?: number;
33
+ /**
34
+ * Обработчики свайпа
35
+ */
36
+ handlers?: SwipeableHandlers;
37
+ /**
38
+ * Время анимации opacity
39
+ */
40
+ opacityTimeout?: number;
41
+ };
42
+ declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
43
+ declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
44
+ export { FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop, BottomSheet };