@alfalab/core-components-input-autocomplete 9.3.16 → 9.3.18

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 (55) hide show
  1. package/Component-3885b0d7.d.ts +169 -0
  2. package/Component.mobile.d.ts +371 -2
  3. package/Component.mobile.js +1 -1
  4. package/Component.responsive.d.ts +1 -1
  5. package/autocomplete-field/Component.js +1 -1
  6. package/autocomplete-field/index.css +2 -2
  7. package/autocomplete-mobile-field/Component.js +1 -1
  8. package/autocomplete-mobile-field/index.css +8 -8
  9. package/cssm/Component-3885b0d7.d.ts +169 -0
  10. package/cssm/Component.mobile.d.ts +371 -2
  11. package/cssm/Component.responsive.d.ts +1 -1
  12. package/cssm/index-ebda875c.d.ts +56 -22
  13. package/cssm/types-ebda875c.d.ts +113 -0
  14. package/esm/Component-3885b0d7.d.ts +169 -0
  15. package/esm/Component.mobile.d.ts +371 -2
  16. package/esm/Component.mobile.js +1 -1
  17. package/esm/Component.responsive.d.ts +1 -1
  18. package/esm/autocomplete-field/Component.js +1 -1
  19. package/esm/autocomplete-field/index.css +2 -2
  20. package/esm/autocomplete-mobile-field/Component.js +1 -1
  21. package/esm/autocomplete-mobile-field/index.css +8 -8
  22. package/esm/index-ebda875c.d.ts +56 -22
  23. package/esm/mobile.css +4 -4
  24. package/esm/types-ebda875c.d.ts +113 -0
  25. package/index-ebda875c.d.ts +56 -22
  26. package/mobile.css +4 -4
  27. package/modern/Component-3885b0d7.d.ts +169 -0
  28. package/modern/Component.mobile.d.ts +371 -2
  29. package/modern/Component.mobile.js +1 -1
  30. package/modern/Component.responsive.d.ts +1 -1
  31. package/modern/autocomplete-field/Component.js +1 -1
  32. package/modern/autocomplete-field/index.css +2 -2
  33. package/modern/autocomplete-mobile-field/Component.js +1 -1
  34. package/modern/autocomplete-mobile-field/index.css +8 -8
  35. package/modern/index-ebda875c.d.ts +56 -22
  36. package/modern/mobile.css +4 -4
  37. package/modern/types-ebda875c.d.ts +113 -0
  38. package/package.json +2 -2
  39. package/types-ebda875c.d.ts +113 -0
  40. package/Component-7ca84eff.d.ts +0 -5
  41. package/cssm/Component-7ca84eff.d.ts +0 -5
  42. package/cssm/index-7ca84eff.d.ts +0 -215
  43. package/cssm/index-bdb4c6b9.d.ts +0 -207
  44. package/cssm/index-e81c389f.d.ts +0 -341
  45. package/esm/Component-7ca84eff.d.ts +0 -5
  46. package/esm/index-7ca84eff.d.ts +0 -215
  47. package/esm/index-bdb4c6b9.d.ts +0 -207
  48. package/esm/index-e81c389f.d.ts +0 -341
  49. package/index-7ca84eff.d.ts +0 -215
  50. package/index-bdb4c6b9.d.ts +0 -207
  51. package/index-e81c389f.d.ts +0 -341
  52. package/modern/Component-7ca84eff.d.ts +0 -5
  53. package/modern/index-7ca84eff.d.ts +0 -215
  54. package/modern/index-bdb4c6b9.d.ts +0 -207
  55. package/modern/index-e81c389f.d.ts +0 -341
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { FormControl } from '@alfalab/core-components-form-control/esm';
5
5
  import { useFocus } from '@alfalab/hooks';
6
6
 
7
- var styles = {"component":"input-autocomplete__component_1gqzu","field":"input-autocomplete__field_1gqzu","disabled":"input-autocomplete__disabled_1gqzu","placeholder":"input-autocomplete__placeholder_1gqzu","contentWrapper":"input-autocomplete__contentWrapper_1gqzu","value":"input-autocomplete__value_1gqzu","focusVisible":"input-autocomplete__focusVisible_1gqzu"};
7
+ var styles = {"component":"input-autocomplete__component_p68gd","field":"input-autocomplete__field_p68gd","disabled":"input-autocomplete__disabled_p68gd","placeholder":"input-autocomplete__placeholder_p68gd","contentWrapper":"input-autocomplete__contentWrapper_p68gd","value":"input-autocomplete__value_p68gd","focusVisible":"input-autocomplete__focusVisible_p68gd"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: xjzsw */
1
+ /* hash: n1iq1 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -18,16 +18,16 @@
18
18
  } :root {
19
19
  --focus-color: var(--color-light-border-link);
20
20
  --disabled-cursor: not-allowed;
21
- } .input-autocomplete__component_1gqzu {
21
+ } .input-autocomplete__component_p68gd {
22
22
  width: 100%;
23
23
  outline: none;
24
- } .input-autocomplete__field_1gqzu:not(.input-autocomplete__disabled_1gqzu) {
24
+ } .input-autocomplete__field_p68gd:not(.input-autocomplete__disabled_p68gd) {
25
25
  cursor: pointer;
26
- } .input-autocomplete__disabled_1gqzu {
26
+ } .input-autocomplete__disabled_p68gd {
27
27
  cursor: var(--disabled-cursor);
28
- } .input-autocomplete__placeholder_1gqzu {
28
+ } .input-autocomplete__placeholder_p68gd {
29
29
  color: var(--color-light-text-secondary);
30
- } .input-autocomplete__contentWrapper_1gqzu {
30
+ } .input-autocomplete__contentWrapper_p68gd {
31
31
  font-size: 16px;
32
32
  line-height: 20px;
33
33
  font-weight: 400;
@@ -36,11 +36,11 @@
36
36
  text-overflow: ellipsis;
37
37
  overflow: hidden;
38
38
  width: 100%;
39
- } .input-autocomplete__value_1gqzu {
39
+ } .input-autocomplete__value_p68gd {
40
40
  overflow: hidden;
41
41
  text-overflow: ellipsis;
42
42
  text-align: left;
43
- } .input-autocomplete__focusVisible_1gqzu {
43
+ } .input-autocomplete__focusVisible_p68gd {
44
44
  outline: 2px solid var(--focus-color);
45
45
  outline-offset: 2px;
46
46
  }
@@ -1,40 +1,74 @@
1
- /// <reference types="react-transition-group" />
2
1
  /// <reference types="react" />
3
2
  import React from "react";
4
- import { MouseEvent, ReactNode } from "react";
5
- import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
6
- import { TransitionProps } from "react-transition-group/Transition";
7
- type BackdropProps = Partial<TransitionProps> & {
3
+ import { ButtonHTMLAttributes, ElementType, FC, AnchorHTMLAttributes } from "react";
4
+ import { ButtonProps } from "@alfalab/core-components-button";
5
+ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
8
6
  /**
9
- * Прозрачный бэкдроп
7
+ * Вид компонента
10
8
  */
11
- invisible?: boolean;
9
+ view: "desktop" | "mobile";
12
10
  /**
13
- * Управляет видимостью компонента
11
+ * Дополнительный класс
14
12
  */
15
- open: boolean;
13
+ className?: string;
16
14
  /**
17
- * Обработчик клика по бэкдропу
15
+ * Позиция крестика
18
16
  */
19
- onClose?: (event: MouseEvent<HTMLElement>) => void;
17
+ align?: "left" | "right";
20
18
  /**
21
- * Дополнительный класс
19
+ * Фиксирует крестик
22
20
  */
23
- className?: string;
21
+ sticky?: boolean;
22
+ /**
23
+ * Иконка
24
+ */
25
+ icon?: ElementType;
26
+ /**
27
+ * Идентификатор для систем автоматизированного тестирования
28
+ */
29
+ dataTestId?: string;
24
30
  /**
25
- * Классы анимации
26
- *
27
- * http://reactcommunity.org/react-transition-group/css-transition#CSSTransition-prop-classNames
31
+ * Коллбэк закрытия.
28
32
  */
29
- transitionClassNames?: string | CSSTransitionClassNames;
33
+ onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
34
+ }
35
+ declare const Closer: FC<CloserProps>;
36
+ type IconButtonProps = {
37
+ /**
38
+ * Компонент иконки
39
+ */
40
+ icon: ElementType<{
41
+ className?: string;
42
+ }>;
43
+ /**
44
+ * Тип кнопки
45
+ */
46
+ view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
47
+ /**
48
+ * Размер компонента
49
+ */
50
+ size?: "xxs" | "xs" | "s";
51
+ /**
52
+ * Дополнительный класс
53
+ */
54
+ className?: string;
30
55
  /**
31
56
  * Идентификатор для систем автоматизированного тестирования
32
57
  */
33
58
  dataTestId?: string;
34
59
  /**
35
- * Дочерние элементы.
60
+ * Набор цветов для компонента
36
61
  */
37
- children?: ReactNode;
38
- };
39
- declare const Backdrop: React.FC<BackdropProps>;
40
- export { BackdropProps, Backdrop };
62
+ colors?: "default" | "inverted";
63
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
64
+ declare const IconButton: React.ForwardRefExoticComponent<{
65
+ icon: ElementType<{
66
+ className?: string;
67
+ }>;
68
+ view?: "negative" | "tertiary" | "secondary" | "primary" | "transparent" | undefined;
69
+ size?: "s" | "xs" | "xxs" | undefined;
70
+ className?: string | undefined;
71
+ dataTestId?: string | undefined;
72
+ colors?: "default" | "inverted" | undefined;
73
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
74
+ export { CloserProps, Closer, IconButtonProps, IconButton };
package/esm/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: evo7f */
1
+ /* hash: 4d74k */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* 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 */
4
4
  } :root { /* 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 */
@@ -16,11 +16,11 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .input-autocomplete__bottomSheetInput_eejlb {
19
+ } .input-autocomplete__bottomSheetInput_rxv16 {
20
20
  padding: 0 var(--gap-xs) var(--gap-xs);
21
21
  box-sizing: border-box;
22
- } .input-autocomplete__footer_eejlb {
22
+ } .input-autocomplete__footer_rxv16 {
23
23
  display: flex
24
- } .input-autocomplete__footer_eejlb > button + button {
24
+ } .input-autocomplete__footer_rxv16 > button + button {
25
25
  margin-left: var(--gap-m);
26
26
  }
@@ -0,0 +1,113 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ReactNode } from "react";
4
+ import { CloserProps } from "./index-ebda875c";
5
+ type NavigationBarProps = {
6
+ /**
7
+ * Контент шапки
8
+ */
9
+ children?: ReactNode;
10
+ /**
11
+ * Заголовок шапки
12
+ */
13
+ title?: string;
14
+ /**
15
+ * Подзаголовок (доступен только в мобильной версии)
16
+ */
17
+ subtitle?: string;
18
+ /**
19
+ * Размер заголовка (compact доступен только в мобильной версии)
20
+ */
21
+ titleSize?: 'default' | 'compact';
22
+ /**
23
+ * Доп. класс для аддонов
24
+ */
25
+ addonClassName?: string;
26
+ /**
27
+ * Слот слева
28
+ */
29
+ leftAddons?: ReactNode;
30
+ /**
31
+ * Слот справа
32
+ */
33
+ rightAddons?: ReactNode;
34
+ /**
35
+ * Дополнительный класс для closer
36
+ */
37
+ closerClassName?: string;
38
+ /**
39
+ * Слот снизу
40
+ */
41
+ bottomAddons?: ReactNode;
42
+ /**
43
+ * Наличие компонента крестика
44
+ */
45
+ hasCloser?: boolean;
46
+ /**
47
+ * Наличие кнопки "Назад"
48
+ */
49
+ hasBackButton?: boolean;
50
+ /**
51
+ * Дополнительный класс для правого аддона
52
+ */
53
+ backButtonClassName?: string;
54
+ /**
55
+ * Дополнительный класс
56
+ */
57
+ className?: string;
58
+ /**
59
+ * Дополнительный класс для контента
60
+ */
61
+ contentClassName?: string;
62
+ /**
63
+ * Дополнительный класс для нижнего аддона
64
+ */
65
+ bottomAddonsClassName?: string;
66
+ /**
67
+ * Выравнивание заголовка
68
+ */
69
+ align?: 'left' | 'center';
70
+ /**
71
+ * Обрезать ли заголовок
72
+ */
73
+ trim?: boolean;
74
+ /**
75
+ * Фиксирует шапку
76
+ */
77
+ sticky?: boolean;
78
+ /**
79
+ * Идентификатор для систем автоматизированного тестирования
80
+ */
81
+ dataTestId?: string;
82
+ /**
83
+ * Фоновое изображение
84
+ */
85
+ imageUrl?: string;
86
+ /**
87
+ * Иконка closer.
88
+ */
89
+ closerIcon?: React.ElementType;
90
+ /**
91
+ * Обработчик закрытия
92
+ */
93
+ onClose?: CloserProps['onClose'];
94
+ /**
95
+ * обработчик клика по кнопке "назад"
96
+ */
97
+ onBack?: () => void;
98
+ /**
99
+ * Вид шапки - мобильный или десктоп
100
+ */
101
+ view: 'desktop' | 'mobile';
102
+ /**
103
+ * Ссылка на родительскую ноду overflow: auto
104
+ */
105
+ scrollableParentRef?: React.RefObject<HTMLDivElement>;
106
+ };
107
+ type ContentParams = {
108
+ extraClassName?: string;
109
+ wrapperRef?: React.RefObject<HTMLDivElement>;
110
+ style?: React.CSSProperties;
111
+ hidden?: boolean;
112
+ };
113
+ export { NavigationBarProps, ContentParams };
@@ -1,40 +1,74 @@
1
- /// <reference types="react-transition-group" />
2
1
  /// <reference types="react" />
3
2
  import React from "react";
4
- import { MouseEvent, ReactNode } from "react";
5
- import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
6
- import { TransitionProps } from "react-transition-group/Transition";
7
- type BackdropProps = Partial<TransitionProps> & {
3
+ import { ButtonHTMLAttributes, ElementType, FC, AnchorHTMLAttributes } from "react";
4
+ import { ButtonProps } from "@alfalab/core-components-button";
5
+ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
8
6
  /**
9
- * Прозрачный бэкдроп
7
+ * Вид компонента
10
8
  */
11
- invisible?: boolean;
9
+ view: "desktop" | "mobile";
12
10
  /**
13
- * Управляет видимостью компонента
11
+ * Дополнительный класс
14
12
  */
15
- open: boolean;
13
+ className?: string;
16
14
  /**
17
- * Обработчик клика по бэкдропу
15
+ * Позиция крестика
18
16
  */
19
- onClose?: (event: MouseEvent<HTMLElement>) => void;
17
+ align?: "left" | "right";
20
18
  /**
21
- * Дополнительный класс
19
+ * Фиксирует крестик
22
20
  */
23
- className?: string;
21
+ sticky?: boolean;
22
+ /**
23
+ * Иконка
24
+ */
25
+ icon?: ElementType;
26
+ /**
27
+ * Идентификатор для систем автоматизированного тестирования
28
+ */
29
+ dataTestId?: string;
24
30
  /**
25
- * Классы анимации
26
- *
27
- * http://reactcommunity.org/react-transition-group/css-transition#CSSTransition-prop-classNames
31
+ * Коллбэк закрытия.
28
32
  */
29
- transitionClassNames?: string | CSSTransitionClassNames;
33
+ onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
34
+ }
35
+ declare const Closer: FC<CloserProps>;
36
+ type IconButtonProps = {
37
+ /**
38
+ * Компонент иконки
39
+ */
40
+ icon: ElementType<{
41
+ className?: string;
42
+ }>;
43
+ /**
44
+ * Тип кнопки
45
+ */
46
+ view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
47
+ /**
48
+ * Размер компонента
49
+ */
50
+ size?: "xxs" | "xs" | "s";
51
+ /**
52
+ * Дополнительный класс
53
+ */
54
+ className?: string;
30
55
  /**
31
56
  * Идентификатор для систем автоматизированного тестирования
32
57
  */
33
58
  dataTestId?: string;
34
59
  /**
35
- * Дочерние элементы.
60
+ * Набор цветов для компонента
36
61
  */
37
- children?: ReactNode;
38
- };
39
- declare const Backdrop: React.FC<BackdropProps>;
40
- export { BackdropProps, Backdrop };
62
+ colors?: "default" | "inverted";
63
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
64
+ declare const IconButton: React.ForwardRefExoticComponent<{
65
+ icon: ElementType<{
66
+ className?: string;
67
+ }>;
68
+ view?: "negative" | "tertiary" | "secondary" | "primary" | "transparent" | undefined;
69
+ size?: "s" | "xs" | "xxs" | undefined;
70
+ className?: string | undefined;
71
+ dataTestId?: string | undefined;
72
+ colors?: "default" | "inverted" | undefined;
73
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
74
+ export { CloserProps, Closer, IconButtonProps, IconButton };
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: evo7f */
1
+ /* hash: 4d74k */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* 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 */
4
4
  } :root { /* 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 */
@@ -16,11 +16,11 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .input-autocomplete__bottomSheetInput_eejlb {
19
+ } .input-autocomplete__bottomSheetInput_rxv16 {
20
20
  padding: 0 var(--gap-xs) var(--gap-xs);
21
21
  box-sizing: border-box;
22
- } .input-autocomplete__footer_eejlb {
22
+ } .input-autocomplete__footer_rxv16 {
23
23
  display: flex
24
- } .input-autocomplete__footer_eejlb > button + button {
24
+ } .input-autocomplete__footer_rxv16 > button + button {
25
25
  margin-left: var(--gap-m);
26
26
  }
@@ -0,0 +1,169 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
4
+ import { NavigationBarProps } from "./types-ebda875c";
5
+ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
6
+ /**
7
+ * Текст после иконки
8
+ */
9
+ text?: string;
10
+ /**
11
+ * Дополнительный класс
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Вид компонента
16
+ */
17
+ view: "mobile" | "desktop";
18
+ /**
19
+ * Прозрачность текста
20
+ */
21
+ textOpacity?: number;
22
+ /**
23
+ * Обработчик клика
24
+ */
25
+ onClick?: () => void;
26
+ }
27
+ declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
28
+ declare const colors: readonly [
29
+ "tertiary",
30
+ "disabled",
31
+ "accent",
32
+ "primary",
33
+ "attention",
34
+ "positive",
35
+ "secondary",
36
+ "tertiary-inverted",
37
+ "primary-inverted",
38
+ "secondary-inverted",
39
+ "link",
40
+ "negative",
41
+ "static-primary-light",
42
+ "static-secondary-light",
43
+ "static-tertiary-light",
44
+ "static-primary-dark",
45
+ "static-secondary-dark",
46
+ "static-tertiary-dark",
47
+ "static-accent"
48
+ ];
49
+ type Color = (typeof colors)[number];
50
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
51
+ type NativeProps = HTMLAttributes<HTMLSpanElement>;
52
+ type TextBaseProps = {
53
+ /**
54
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
55
+ */
56
+ view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
57
+ /**
58
+ * Цвет текста
59
+ */
60
+ color?: Color;
61
+ /**
62
+ * Толщина шрифта
63
+ */
64
+ weight?: "regular" | "medium" | "bold";
65
+ /**
66
+ * Делает цифры моноширинными
67
+ */
68
+ monospaceNumbers?: boolean;
69
+ /**
70
+ * HTML тег
71
+ */
72
+ tag?: "span" | "div";
73
+ /**
74
+ * Css-класс для стилизации (native prop)
75
+ */
76
+ className?: string;
77
+ /**
78
+ * Id компонента для тестов
79
+ */
80
+ dataTestId?: string;
81
+ /**
82
+ * Контент (native prop)
83
+ */
84
+ children?: React.ReactNode;
85
+ /**
86
+ * Добавляет отступы к тэгу 'p'
87
+ */
88
+ defaultMargins?: never;
89
+ /**
90
+ * Количество строк (не поддерживает IE)
91
+ */
92
+ rowLimit?: 1 | 2 | 3;
93
+ };
94
+ type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
95
+ tag?: "p";
96
+ defaultMargins?: boolean;
97
+ };
98
+ type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
99
+ type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
100
+ type TitleProps = Omit<NativeProps$0, "color"> & {
101
+ /**
102
+ * HTML тег
103
+ */
104
+ tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
105
+ /**
106
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
107
+ */
108
+ view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
109
+ /**
110
+ * Цвет текста
111
+ */
112
+ color?: Color;
113
+ /**
114
+ * Толщина шрифта
115
+ */
116
+ weight?: "regular" | "medium" | "bold";
117
+ /**
118
+ * Шрифт текста
119
+ */
120
+ font?: "styrene" | "system";
121
+ /**
122
+ * Добавляет отступы
123
+ */
124
+ defaultMargins?: boolean;
125
+ /**
126
+ * Css-класс для стилизации (native prop)
127
+ */
128
+ className?: string;
129
+ /**
130
+ * Id компонента для тестов
131
+ */
132
+ dataTestId?: string;
133
+ /**
134
+ * Контент (native prop)
135
+ */
136
+ children?: React.ReactNode;
137
+ /**
138
+ * Количество строк (не поддерживает IE)
139
+ */
140
+ rowLimit?: 1 | 2 | 3;
141
+ };
142
+ type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
143
+ declare const Typography: {
144
+ Title: FC<TitleProps>;
145
+ Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
146
+ TitleResponsive: FC<TitleProps>;
147
+ TitleMobile: FC<TitleMobileProps>;
148
+ };
149
+ declare const typographyPresets: {
150
+ mobile: {
151
+ list: {
152
+ text: {
153
+ primary: {
154
+ tag: string;
155
+ view: string;
156
+ };
157
+ secondary: {
158
+ tag: string;
159
+ color: string;
160
+ view: string;
161
+ };
162
+ };
163
+ };
164
+ };
165
+ };
166
+ declare const TitleResponsive: FC<TitleProps>;
167
+ declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
168
+ export { BackArrowAddonProps, BackArrowAddon, Typography, typographyPresets, TitleResponsive, NavigationBar };
169
+ export type { TitleProps, TextProps, Color };