@alfalab/core-components-international-phone-input 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colors-facf1d2a.d.ts +3 -0
- package/component-03d088c4.d.ts +32 -0
- package/component-eb15729d.d.ts +123 -0
- package/components/base-international-phone-input/Component.js +1 -1
- package/components/base-international-phone-input/index.css +2 -2
- package/components/country-select/Component.js +1 -1
- package/components/country-select/index.css +14 -12
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +5 -4
- package/components/select-field/component.js +1 -1
- package/components/select-field/index.css +15 -12
- package/cssm/colors-facf1d2a.d.ts +3 -0
- package/cssm/component-03d088c4.d.ts +32 -0
- package/cssm/component-eb15729d.d.ts +123 -0
- package/cssm/components/country-select/index.module.css +6 -4
- package/cssm/components/flag-icon/index.module.css +2 -1
- package/cssm/components/select-field/index.module.css +6 -3
- package/cssm/index-03d088c4.d.ts +20 -0
- package/cssm/index-281accb7.d.ts +19 -0
- package/cssm/index-d691530f.d.ts +1 -0
- package/cssm/typings-7d83ec1e.d.ts +8 -98
- package/esm/colors-facf1d2a.d.ts +3 -0
- package/esm/component-03d088c4.d.ts +32 -0
- package/esm/component-eb15729d.d.ts +123 -0
- package/esm/components/base-international-phone-input/Component.js +1 -1
- package/esm/components/base-international-phone-input/index.css +2 -2
- package/esm/components/country-select/Component.js +1 -1
- package/esm/components/country-select/index.css +14 -12
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +5 -4
- package/esm/components/select-field/component.js +1 -1
- package/esm/components/select-field/index.css +15 -12
- package/esm/index-03d088c4.d.ts +20 -0
- package/esm/index-281accb7.d.ts +19 -0
- package/esm/index-d691530f.d.ts +1 -0
- package/esm/typings-7d83ec1e.d.ts +8 -98
- package/index-03d088c4.d.ts +20 -0
- package/index-281accb7.d.ts +19 -0
- package/index-d691530f.d.ts +1 -0
- package/modern/colors-facf1d2a.d.ts +3 -0
- package/modern/component-03d088c4.d.ts +32 -0
- package/modern/component-eb15729d.d.ts +123 -0
- package/modern/components/base-international-phone-input/Component.js +1 -1
- package/modern/components/base-international-phone-input/index.css +2 -2
- package/modern/components/country-select/Component.js +1 -1
- package/modern/components/country-select/index.css +14 -12
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +5 -4
- package/modern/components/select-field/component.js +1 -1
- package/modern/components/select-field/index.css +15 -12
- package/modern/index-03d088c4.d.ts +20 -0
- package/modern/index-281accb7.d.ts +19 -0
- package/modern/index-d691530f.d.ts +1 -0
- package/modern/typings-7d83ec1e.d.ts +8 -98
- package/moderncssm/Component-11f20b2e.d.ts +13 -0
- package/moderncssm/Component-7d83ec1e.d.ts +5 -0
- package/moderncssm/Component-ed61931d.d.ts +47 -0
- package/moderncssm/Component.desktop-ebda875c.d.ts +6 -0
- package/moderncssm/Component.mobile-ebda875c.d.ts +6 -0
- package/moderncssm/Component.responsive-8566963f.d.ts +7 -0
- package/moderncssm/Component.responsive.d.ts +42 -0
- package/moderncssm/Component.responsive.js +12 -0
- package/moderncssm/ResponsiveContext-d6bfd5b7.d.ts +5 -0
- package/moderncssm/colors-facf1d2a.d.ts +3 -0
- package/moderncssm/component-03d088c4.d.ts +32 -0
- package/moderncssm/component-eb15729d.d.ts +123 -0
- package/moderncssm/components/base-international-phone-input/Component.d.ts +23 -0
- package/moderncssm/components/base-international-phone-input/Component.js +119 -0
- package/moderncssm/components/base-international-phone-input/index.d.ts +1 -0
- package/moderncssm/components/base-international-phone-input/index.js +1 -0
- package/moderncssm/components/base-international-phone-input/index.module.css +4 -0
- package/moderncssm/components/country-select/Component.d.ts +21 -0
- package/moderncssm/components/country-select/Component.js +41 -0
- package/moderncssm/components/country-select/index.d.ts +1 -0
- package/moderncssm/components/country-select/index.js +1 -0
- package/moderncssm/components/country-select/index.module.css +41 -0
- package/moderncssm/components/flag-icon/component.d.ts +16 -0
- package/moderncssm/components/flag-icon/component.js +13 -0
- package/moderncssm/components/flag-icon/flagSprite.d.ts +2 -0
- package/moderncssm/components/flag-icon/flagSprite.js +239 -0
- package/moderncssm/components/flag-icon/index.d.ts +1 -0
- package/moderncssm/components/flag-icon/index.js +1 -0
- package/moderncssm/components/flag-icon/index.module.css +15 -0
- package/moderncssm/components/select-field/component.d.ts +11 -0
- package/moderncssm/components/select-field/component.js +36 -0
- package/moderncssm/components/select-field/index.d.ts +1 -0
- package/moderncssm/components/select-field/index.js +1 -0
- package/moderncssm/components/select-field/index.module.css +44 -0
- package/moderncssm/consts-6c9aad46.d.ts +12 -0
- package/moderncssm/consts-ef43bf1b.d.ts +12 -0
- package/moderncssm/consts.d.ts +2 -0
- package/moderncssm/consts.js +3 -0
- package/moderncssm/data/country-data.d.ts +3 -0
- package/moderncssm/data/country-data.js +597 -0
- package/moderncssm/desktop/Component.desktop.d.ts +5 -0
- package/moderncssm/desktop/Component.desktop.js +9 -0
- package/moderncssm/desktop/index.d.ts +2 -0
- package/moderncssm/desktop/index.js +1 -0
- package/moderncssm/index-03d088c4.d.ts +20 -0
- package/moderncssm/index-11f20b2e.d.ts +190 -0
- package/moderncssm/index-281accb7.d.ts +19 -0
- package/moderncssm/index-7ca84eff.d.ts +15 -0
- package/moderncssm/index-8566963f.d.ts +6 -0
- package/moderncssm/index-d691530f.d.ts +1 -0
- package/moderncssm/index-ebda875c.d.ts +149 -0
- package/moderncssm/index-ed61931d.d.ts +2 -0
- package/moderncssm/index.d.ts +2 -0
- package/moderncssm/index.js +1 -0
- package/moderncssm/mobile/Component.mobile.d.ts +5 -0
- package/moderncssm/mobile/Component.mobile.js +9 -0
- package/moderncssm/mobile/index.d.ts +2 -0
- package/moderncssm/mobile/index.js +1 -0
- package/moderncssm/shared/index.d.ts +1 -0
- package/moderncssm/shared/index.js +1 -0
- package/moderncssm/types-1328ead9.d.ts +21 -0
- package/moderncssm/types.d.ts +99 -0
- package/moderncssm/types.js +1 -0
- package/moderncssm/typings-7d83ec1e.d.ts +1620 -0
- package/moderncssm/typings-d6bfd5b7.d.ts +62 -0
- package/moderncssm/typings-ed61931d.d.ts +118 -0
- package/moderncssm/use-skeleton-1328ead9.d.ts +44 -0
- package/moderncssm/utils/index.d.ts +74 -0
- package/moderncssm/utils/index.js +246 -0
- package/moderncssm/utils-3942b092.d.ts +81 -0
- package/package.json +6 -6
- package/src/components/country-select/index.module.css +5 -5
- package/src/components/flag-icon/index.module.css +2 -2
- package/src/components/select-field/index.module.css +4 -4
- package/typings-7d83ec1e.d.ts +8 -98
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
|
|
2
|
+
type Color = typeof colors[number];
|
|
3
|
+
export { colors, Color };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TitleProps } from "./index-03d088c4";
|
|
4
|
+
type TitleResponsiveProps = TitleProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
12
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
+
view?: "small" | "medium" | "large" | "xlarge" | "xsmall" | undefined;
|
|
14
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
15
|
+
weight?: "bold" | "medium" | "regular" | "semibold" | undefined;
|
|
16
|
+
font?: "styrene" | "system" | undefined;
|
|
17
|
+
defaultMargins?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
dataTestId?: string | undefined;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
22
|
+
showSkeleton?: boolean | undefined;
|
|
23
|
+
skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
/**
|
|
27
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
28
|
+
* @default 1024
|
|
29
|
+
*/
|
|
30
|
+
breakpoint?: number | undefined;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
32
|
+
export { TitleResponsiveProps, TitleResponsive };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HTMLAttributes } from "react";
|
|
4
|
+
import { Color } from "./colors-facf1d2a";
|
|
5
|
+
import { TextSkeletonProps } from "./types-1328ead9";
|
|
6
|
+
declare function getDefaultWeight(font: "styrene" | "system", platform: "mobile" | "desktop"): "medium" | "bold" | "semibold";
|
|
7
|
+
type NativeProps = HTMLAttributes<HTMLHeadingElement>;
|
|
8
|
+
type TitleProps = Omit<NativeProps, 'color'> & {
|
|
9
|
+
/**
|
|
10
|
+
* HTML тег
|
|
11
|
+
*/
|
|
12
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
13
|
+
/**
|
|
14
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
15
|
+
*/
|
|
16
|
+
view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
17
|
+
/**
|
|
18
|
+
* Цвет текста
|
|
19
|
+
*/
|
|
20
|
+
color?: Color;
|
|
21
|
+
/**
|
|
22
|
+
* Толщина шрифта
|
|
23
|
+
*/
|
|
24
|
+
weight?: 'regular' | 'medium' | 'bold' | 'semibold';
|
|
25
|
+
/**
|
|
26
|
+
* Шрифт текста
|
|
27
|
+
*/
|
|
28
|
+
font?: 'styrene' | 'system';
|
|
29
|
+
/**
|
|
30
|
+
* Добавляет отступы
|
|
31
|
+
*/
|
|
32
|
+
defaultMargins?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Css-класс для стилизации (native prop)
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Id компонента для тестов
|
|
39
|
+
*/
|
|
40
|
+
dataTestId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Контент (native prop)
|
|
43
|
+
*/
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Количество строк
|
|
47
|
+
*/
|
|
48
|
+
rowLimit?: 1 | 2 | 3;
|
|
49
|
+
/**
|
|
50
|
+
* Показать скелетон
|
|
51
|
+
*/
|
|
52
|
+
showSkeleton?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Пропы для скелетона
|
|
55
|
+
*/
|
|
56
|
+
skeletonProps?: TextSkeletonProps;
|
|
57
|
+
/**
|
|
58
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
59
|
+
*/
|
|
60
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
61
|
+
};
|
|
62
|
+
type PrivateProps = {
|
|
63
|
+
styles: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
platform: 'mobile' | 'desktop';
|
|
67
|
+
};
|
|
68
|
+
type TitleElementType = HTMLHeadingElement | HTMLDivElement;
|
|
69
|
+
declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
|
|
70
|
+
/**
|
|
71
|
+
* HTML тег
|
|
72
|
+
*/
|
|
73
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
74
|
+
/**
|
|
75
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
76
|
+
*/
|
|
77
|
+
view?: "small" | "medium" | "large" | "xlarge" | "xsmall" | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Цвет текста
|
|
80
|
+
*/
|
|
81
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Толщина шрифта
|
|
84
|
+
*/
|
|
85
|
+
weight?: "bold" | "medium" | "regular" | "semibold" | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Шрифт текста
|
|
88
|
+
*/
|
|
89
|
+
font?: "styrene" | "system" | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Добавляет отступы
|
|
92
|
+
*/
|
|
93
|
+
defaultMargins?: boolean | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Css-класс для стилизации (native prop)
|
|
96
|
+
*/
|
|
97
|
+
className?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Id компонента для тестов
|
|
100
|
+
*/
|
|
101
|
+
dataTestId?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Контент (native prop)
|
|
104
|
+
*/
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Количество строк
|
|
108
|
+
*/
|
|
109
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Показать скелетон
|
|
112
|
+
*/
|
|
113
|
+
showSkeleton?: boolean | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Пропы для скелетона
|
|
116
|
+
*/
|
|
117
|
+
skeletonProps?: TextSkeletonProps | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
120
|
+
*/
|
|
121
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
122
|
+
} & PrivateProps & React.RefAttributes<TitleElementType>>;
|
|
123
|
+
export { getDefaultWeight, TitleProps, TitleBase };
|
|
@@ -16,7 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
17
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
18
18
|
|
|
19
|
-
var styles = {"component":"international-phone-
|
|
19
|
+
var styles = {"component":"international-phone-input__component_94gbt","addons":"international-phone-input__addons_94gbt"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"international-phone-
|
|
17
|
+
var styles = {"component":"international-phone-input__component_oqlp7","option":"international-phone-input__option_oqlp7","flag":"international-phone-input__flag_oqlp7","countryName":"international-phone-input__countryName_oqlp7","dialCode":"international-phone-input__dialCode_oqlp7","flagIconWrapper":"international-phone-input__flagIconWrapper_oqlp7","emptyCountryIcon":"international-phone-input__emptyCountryIcon_oqlp7"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var CountrySelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wfab */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
|
|
@@ -20,31 +20,33 @@
|
|
|
20
20
|
--gap-s: 12px; /* 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 */
|
|
21
21
|
|
|
22
22
|
/* новые значения, используйте их */
|
|
23
|
+
--gap-8: var(--gap-xs);
|
|
24
|
+
--gap-12: var(--gap-s);
|
|
23
25
|
} :root {
|
|
24
26
|
} :root {
|
|
25
|
-
} .international-phone-
|
|
27
|
+
} .international-phone-input__component_oqlp7 {
|
|
26
28
|
position: static;
|
|
27
29
|
display: flex;
|
|
28
30
|
min-width: initial;
|
|
29
31
|
height: 100%;
|
|
30
|
-
} .international-phone-
|
|
32
|
+
} .international-phone-input__option_oqlp7 {
|
|
31
33
|
display: flex;
|
|
32
34
|
align-items: flex-start;
|
|
33
|
-
padding: var(--gap-
|
|
34
|
-
} .international-phone-
|
|
35
|
+
padding: var(--gap-12);
|
|
36
|
+
} .international-phone-input__flag_oqlp7 {
|
|
35
37
|
flex-shrink: 0;
|
|
36
|
-
margin-right: var(--gap-
|
|
37
|
-
} .international-phone-
|
|
38
|
-
margin-right: var(--gap-
|
|
39
|
-
} .international-phone-
|
|
38
|
+
margin-right: var(--gap-8);
|
|
39
|
+
} .international-phone-input__countryName_oqlp7 {
|
|
40
|
+
margin-right: var(--gap-8);
|
|
41
|
+
} .international-phone-input__dialCode_oqlp7 {
|
|
40
42
|
color: var(--color-light-text-secondary);
|
|
41
|
-
} .international-phone-
|
|
43
|
+
} .international-phone-input__flagIconWrapper_oqlp7 {
|
|
42
44
|
display: flex;
|
|
43
45
|
justify-content: center;
|
|
44
46
|
align-items: center;
|
|
45
47
|
width: 24px;
|
|
46
48
|
height: 24px;
|
|
47
|
-
margin-left: var(--gap-
|
|
48
|
-
} .international-phone-
|
|
49
|
+
margin-left: var(--gap-12);
|
|
50
|
+
} .international-phone-input__emptyCountryIcon_oqlp7 {
|
|
49
51
|
color: var(--color-light-neutral-translucent-700);
|
|
50
52
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"flagIcon":"international-phone-
|
|
14
|
+
var styles = {"flagIcon":"international-phone-input__flagIcon_12yry","flagPlaceholder":"international-phone-input__flagPlaceholder_12yry"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 156rm */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06); /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */
|
|
@@ -19,16 +19,17 @@
|
|
|
19
19
|
--gap-3xs: 2px; /* 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 */
|
|
20
20
|
|
|
21
21
|
/* новые значения, используйте их */
|
|
22
|
+
--gap-2: var(--gap-3xs);
|
|
22
23
|
} :root {
|
|
23
24
|
} :root {
|
|
24
|
-
} .international-phone-
|
|
25
|
+
} .international-phone-input__flagIcon_12yry {
|
|
25
26
|
max-width: 24px;
|
|
26
27
|
max-height: 24px;
|
|
27
|
-
} .international-phone-
|
|
28
|
+
} .international-phone-input__flagPlaceholder_12yry {
|
|
28
29
|
width: 24px;
|
|
29
30
|
height: 16px;
|
|
30
31
|
max-height: 16px;
|
|
31
32
|
border-radius: var(--border-radius-xs);
|
|
32
|
-
margin-top: var(--gap-
|
|
33
|
+
margin-top: var(--gap-2);
|
|
33
34
|
background-color: var(--color-light-neutral-translucent-100);
|
|
34
35
|
}
|
|
@@ -16,7 +16,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
16
16
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
17
17
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
18
18
|
|
|
19
|
-
var styles = {"component":"international-phone-
|
|
19
|
+
var styles = {"component":"international-phone-input__component_1l1qu","flagIconContainer":"international-phone-input__flagIconContainer_1l1qu","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1l1qu","disabled":"international-phone-input__disabled_1l1qu","inner":"international-phone-input__inner_1l1qu","size-64":"international-phone-input__size-64_1l1qu","size-72":"international-phone-input__size-72_1l1qu","focusVisible":"international-phone-input__focusVisible_1l1qu"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j68fs */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
|
|
@@ -21,37 +21,40 @@
|
|
|
21
21
|
--gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
22
22
|
|
|
23
23
|
/* новые значения, используйте их */
|
|
24
|
+
--gap-4: var(--gap-2xs);
|
|
25
|
+
--gap-12: var(--gap-s);
|
|
26
|
+
--gap-16: var(--gap-m);
|
|
24
27
|
} :root {
|
|
25
28
|
} :root {
|
|
26
29
|
--focus-color: var(--color-light-status-info);
|
|
27
30
|
--disabled-cursor: not-allowed;
|
|
28
|
-
} .international-phone-
|
|
31
|
+
} .international-phone-input__component_1l1qu {
|
|
29
32
|
height: 100%;
|
|
30
33
|
cursor: pointer;
|
|
31
34
|
outline: none;
|
|
32
35
|
position: relative;
|
|
33
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__flagIconContainer_1l1qu {
|
|
34
37
|
display: flex;
|
|
35
38
|
justify-content: center;
|
|
36
39
|
align-items: center;
|
|
37
40
|
width: 24px;
|
|
38
41
|
height: 24px;
|
|
39
|
-
margin-right: var(--gap-
|
|
40
|
-
} .international-phone-
|
|
42
|
+
margin-right: var(--gap-4);
|
|
43
|
+
} .international-phone-input__emptyCountryIcon_1l1qu {
|
|
41
44
|
color: var(--color-light-neutral-translucent-700);
|
|
42
|
-
} .international-phone-
|
|
45
|
+
} .international-phone-input__disabled_1l1qu {
|
|
43
46
|
cursor: var(--disabled-cursor);
|
|
44
|
-
} .international-phone-
|
|
47
|
+
} .international-phone-input__inner_1l1qu {
|
|
45
48
|
position: relative;
|
|
46
49
|
display: flex;
|
|
47
50
|
align-items: center;
|
|
48
51
|
height: 100%;
|
|
49
|
-
padding-left: var(--gap-
|
|
52
|
+
padding-left: var(--gap-12);
|
|
50
53
|
outline: none;
|
|
51
|
-
} .international-phone-input__size-
|
|
52
|
-
.international-phone-input__size-
|
|
53
|
-
padding-left: var(--gap-
|
|
54
|
-
} .international-phone-
|
|
54
|
+
} .international-phone-input__size-64_1l1qu .international-phone-input__inner_1l1qu,
|
|
55
|
+
.international-phone-input__size-72_1l1qu .international-phone-input__inner_1l1qu {
|
|
56
|
+
padding-left: var(--gap-16);
|
|
57
|
+
} .international-phone-input__focusVisible_1l1qu {
|
|
55
58
|
outline: 2px solid var(--focus-color);
|
|
56
59
|
outline-offset: 2px;
|
|
57
60
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
|
|
2
|
+
type Color = typeof colors[number];
|
|
3
|
+
export { colors, Color };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TitleProps } from "./index-03d088c4";
|
|
4
|
+
type TitleResponsiveProps = TitleProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
12
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
+
view?: "small" | "medium" | "large" | "xlarge" | "xsmall" | undefined;
|
|
14
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
15
|
+
weight?: "bold" | "medium" | "regular" | "semibold" | undefined;
|
|
16
|
+
font?: "styrene" | "system" | undefined;
|
|
17
|
+
defaultMargins?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
dataTestId?: string | undefined;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
22
|
+
showSkeleton?: boolean | undefined;
|
|
23
|
+
skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
/**
|
|
27
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
28
|
+
* @default 1024
|
|
29
|
+
*/
|
|
30
|
+
breakpoint?: number | undefined;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
32
|
+
export { TitleResponsiveProps, TitleResponsive };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HTMLAttributes } from "react";
|
|
4
|
+
import { Color } from "./colors-facf1d2a";
|
|
5
|
+
import { TextSkeletonProps } from "./types-1328ead9";
|
|
6
|
+
declare function getDefaultWeight(font: "styrene" | "system", platform: "mobile" | "desktop"): "medium" | "bold" | "semibold";
|
|
7
|
+
type NativeProps = HTMLAttributes<HTMLHeadingElement>;
|
|
8
|
+
type TitleProps = Omit<NativeProps, 'color'> & {
|
|
9
|
+
/**
|
|
10
|
+
* HTML тег
|
|
11
|
+
*/
|
|
12
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
13
|
+
/**
|
|
14
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
15
|
+
*/
|
|
16
|
+
view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
17
|
+
/**
|
|
18
|
+
* Цвет текста
|
|
19
|
+
*/
|
|
20
|
+
color?: Color;
|
|
21
|
+
/**
|
|
22
|
+
* Толщина шрифта
|
|
23
|
+
*/
|
|
24
|
+
weight?: 'regular' | 'medium' | 'bold' | 'semibold';
|
|
25
|
+
/**
|
|
26
|
+
* Шрифт текста
|
|
27
|
+
*/
|
|
28
|
+
font?: 'styrene' | 'system';
|
|
29
|
+
/**
|
|
30
|
+
* Добавляет отступы
|
|
31
|
+
*/
|
|
32
|
+
defaultMargins?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Css-класс для стилизации (native prop)
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Id компонента для тестов
|
|
39
|
+
*/
|
|
40
|
+
dataTestId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Контент (native prop)
|
|
43
|
+
*/
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Количество строк
|
|
47
|
+
*/
|
|
48
|
+
rowLimit?: 1 | 2 | 3;
|
|
49
|
+
/**
|
|
50
|
+
* Показать скелетон
|
|
51
|
+
*/
|
|
52
|
+
showSkeleton?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Пропы для скелетона
|
|
55
|
+
*/
|
|
56
|
+
skeletonProps?: TextSkeletonProps;
|
|
57
|
+
/**
|
|
58
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
59
|
+
*/
|
|
60
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
61
|
+
};
|
|
62
|
+
type PrivateProps = {
|
|
63
|
+
styles: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
platform: 'mobile' | 'desktop';
|
|
67
|
+
};
|
|
68
|
+
type TitleElementType = HTMLHeadingElement | HTMLDivElement;
|
|
69
|
+
declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
|
|
70
|
+
/**
|
|
71
|
+
* HTML тег
|
|
72
|
+
*/
|
|
73
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
74
|
+
/**
|
|
75
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
76
|
+
*/
|
|
77
|
+
view?: "small" | "medium" | "large" | "xlarge" | "xsmall" | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Цвет текста
|
|
80
|
+
*/
|
|
81
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Толщина шрифта
|
|
84
|
+
*/
|
|
85
|
+
weight?: "bold" | "medium" | "regular" | "semibold" | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Шрифт текста
|
|
88
|
+
*/
|
|
89
|
+
font?: "styrene" | "system" | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Добавляет отступы
|
|
92
|
+
*/
|
|
93
|
+
defaultMargins?: boolean | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Css-класс для стилизации (native prop)
|
|
96
|
+
*/
|
|
97
|
+
className?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Id компонента для тестов
|
|
100
|
+
*/
|
|
101
|
+
dataTestId?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Контент (native prop)
|
|
104
|
+
*/
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Количество строк
|
|
108
|
+
*/
|
|
109
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Показать скелетон
|
|
112
|
+
*/
|
|
113
|
+
showSkeleton?: boolean | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Пропы для скелетона
|
|
116
|
+
*/
|
|
117
|
+
skeletonProps?: TextSkeletonProps | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
120
|
+
*/
|
|
121
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
122
|
+
} & PrivateProps & React.RefAttributes<TitleElementType>>;
|
|
123
|
+
export { getDefaultWeight, TitleProps, TitleBase };
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
--gap-s: 12px; /* 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 */
|
|
20
20
|
|
|
21
21
|
/* новые значения, используйте их */
|
|
22
|
+
--gap-8: var(--gap-xs);
|
|
23
|
+
--gap-12: var(--gap-s);
|
|
22
24
|
} :root {
|
|
23
25
|
} :root {
|
|
24
26
|
} .component {
|
|
@@ -30,12 +32,12 @@
|
|
|
30
32
|
} .option {
|
|
31
33
|
display: flex;
|
|
32
34
|
align-items: flex-start;
|
|
33
|
-
padding: var(--gap-
|
|
35
|
+
padding: var(--gap-12);
|
|
34
36
|
} .flag {
|
|
35
37
|
flex-shrink: 0;
|
|
36
|
-
margin-right: var(--gap-
|
|
38
|
+
margin-right: var(--gap-8);
|
|
37
39
|
} .countryName {
|
|
38
|
-
margin-right: var(--gap-
|
|
40
|
+
margin-right: var(--gap-8);
|
|
39
41
|
} .dialCode {
|
|
40
42
|
color: var(--color-light-text-secondary);
|
|
41
43
|
} .flagIconWrapper {
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
align-items: center;
|
|
45
47
|
width: 24px;
|
|
46
48
|
height: 24px;
|
|
47
|
-
margin-left: var(--gap-
|
|
49
|
+
margin-left: var(--gap-12);
|
|
48
50
|
} .emptyCountryIcon {
|
|
49
51
|
color: var(--color-light-neutral-translucent-700);
|
|
50
52
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--gap-3xs: 2px; /* 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 */
|
|
19
19
|
|
|
20
20
|
/* новые значения, используйте их */
|
|
21
|
+
--gap-2: var(--gap-3xs);
|
|
21
22
|
} :root {
|
|
22
23
|
} :root {
|
|
23
24
|
} .flagIcon {
|
|
@@ -28,6 +29,6 @@
|
|
|
28
29
|
height: 16px;
|
|
29
30
|
max-height: 16px;
|
|
30
31
|
border-radius: var(--border-radius-xs);
|
|
31
|
-
margin-top: var(--gap-
|
|
32
|
+
margin-top: var(--gap-2);
|
|
32
33
|
background-color: var(--color-light-neutral-translucent-100);
|
|
33
34
|
}
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
--gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
21
21
|
|
|
22
22
|
/* новые значения, используйте их */
|
|
23
|
+
--gap-4: var(--gap-2xs);
|
|
24
|
+
--gap-12: var(--gap-s);
|
|
25
|
+
--gap-16: var(--gap-m);
|
|
23
26
|
} :root {
|
|
24
27
|
} :root {
|
|
25
28
|
--focus-color: var(--color-light-status-info);
|
|
@@ -35,7 +38,7 @@
|
|
|
35
38
|
align-items: center;
|
|
36
39
|
width: 24px;
|
|
37
40
|
height: 24px;
|
|
38
|
-
margin-right: var(--gap-
|
|
41
|
+
margin-right: var(--gap-4);
|
|
39
42
|
} .emptyCountryIcon {
|
|
40
43
|
color: var(--color-light-neutral-translucent-700);
|
|
41
44
|
} .disabled {
|
|
@@ -45,11 +48,11 @@
|
|
|
45
48
|
display: flex;
|
|
46
49
|
align-items: center;
|
|
47
50
|
height: 100%;
|
|
48
|
-
padding-left: var(--gap-
|
|
51
|
+
padding-left: var(--gap-12);
|
|
49
52
|
outline: none;
|
|
50
53
|
} .size-64 .inner,
|
|
51
54
|
.size-72 .inner {
|
|
52
|
-
padding-left: var(--gap-
|
|
55
|
+
padding-left: var(--gap-16);
|
|
53
56
|
} .focusVisible {
|
|
54
57
|
outline: 2px solid var(--focus-color);
|
|
55
58
|
outline-offset: 2px;
|