@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.
Files changed (129) hide show
  1. package/colors-facf1d2a.d.ts +3 -0
  2. package/component-03d088c4.d.ts +32 -0
  3. package/component-eb15729d.d.ts +123 -0
  4. package/components/base-international-phone-input/Component.js +1 -1
  5. package/components/base-international-phone-input/index.css +2 -2
  6. package/components/country-select/Component.js +1 -1
  7. package/components/country-select/index.css +14 -12
  8. package/components/flag-icon/component.js +1 -1
  9. package/components/flag-icon/index.css +5 -4
  10. package/components/select-field/component.js +1 -1
  11. package/components/select-field/index.css +15 -12
  12. package/cssm/colors-facf1d2a.d.ts +3 -0
  13. package/cssm/component-03d088c4.d.ts +32 -0
  14. package/cssm/component-eb15729d.d.ts +123 -0
  15. package/cssm/components/country-select/index.module.css +6 -4
  16. package/cssm/components/flag-icon/index.module.css +2 -1
  17. package/cssm/components/select-field/index.module.css +6 -3
  18. package/cssm/index-03d088c4.d.ts +20 -0
  19. package/cssm/index-281accb7.d.ts +19 -0
  20. package/cssm/index-d691530f.d.ts +1 -0
  21. package/cssm/typings-7d83ec1e.d.ts +8 -98
  22. package/esm/colors-facf1d2a.d.ts +3 -0
  23. package/esm/component-03d088c4.d.ts +32 -0
  24. package/esm/component-eb15729d.d.ts +123 -0
  25. package/esm/components/base-international-phone-input/Component.js +1 -1
  26. package/esm/components/base-international-phone-input/index.css +2 -2
  27. package/esm/components/country-select/Component.js +1 -1
  28. package/esm/components/country-select/index.css +14 -12
  29. package/esm/components/flag-icon/component.js +1 -1
  30. package/esm/components/flag-icon/index.css +5 -4
  31. package/esm/components/select-field/component.js +1 -1
  32. package/esm/components/select-field/index.css +15 -12
  33. package/esm/index-03d088c4.d.ts +20 -0
  34. package/esm/index-281accb7.d.ts +19 -0
  35. package/esm/index-d691530f.d.ts +1 -0
  36. package/esm/typings-7d83ec1e.d.ts +8 -98
  37. package/index-03d088c4.d.ts +20 -0
  38. package/index-281accb7.d.ts +19 -0
  39. package/index-d691530f.d.ts +1 -0
  40. package/modern/colors-facf1d2a.d.ts +3 -0
  41. package/modern/component-03d088c4.d.ts +32 -0
  42. package/modern/component-eb15729d.d.ts +123 -0
  43. package/modern/components/base-international-phone-input/Component.js +1 -1
  44. package/modern/components/base-international-phone-input/index.css +2 -2
  45. package/modern/components/country-select/Component.js +1 -1
  46. package/modern/components/country-select/index.css +14 -12
  47. package/modern/components/flag-icon/component.js +1 -1
  48. package/modern/components/flag-icon/index.css +5 -4
  49. package/modern/components/select-field/component.js +1 -1
  50. package/modern/components/select-field/index.css +15 -12
  51. package/modern/index-03d088c4.d.ts +20 -0
  52. package/modern/index-281accb7.d.ts +19 -0
  53. package/modern/index-d691530f.d.ts +1 -0
  54. package/modern/typings-7d83ec1e.d.ts +8 -98
  55. package/moderncssm/Component-11f20b2e.d.ts +13 -0
  56. package/moderncssm/Component-7d83ec1e.d.ts +5 -0
  57. package/moderncssm/Component-ed61931d.d.ts +47 -0
  58. package/moderncssm/Component.desktop-ebda875c.d.ts +6 -0
  59. package/moderncssm/Component.mobile-ebda875c.d.ts +6 -0
  60. package/moderncssm/Component.responsive-8566963f.d.ts +7 -0
  61. package/moderncssm/Component.responsive.d.ts +42 -0
  62. package/moderncssm/Component.responsive.js +12 -0
  63. package/moderncssm/ResponsiveContext-d6bfd5b7.d.ts +5 -0
  64. package/moderncssm/colors-facf1d2a.d.ts +3 -0
  65. package/moderncssm/component-03d088c4.d.ts +32 -0
  66. package/moderncssm/component-eb15729d.d.ts +123 -0
  67. package/moderncssm/components/base-international-phone-input/Component.d.ts +23 -0
  68. package/moderncssm/components/base-international-phone-input/Component.js +119 -0
  69. package/moderncssm/components/base-international-phone-input/index.d.ts +1 -0
  70. package/moderncssm/components/base-international-phone-input/index.js +1 -0
  71. package/moderncssm/components/base-international-phone-input/index.module.css +4 -0
  72. package/moderncssm/components/country-select/Component.d.ts +21 -0
  73. package/moderncssm/components/country-select/Component.js +41 -0
  74. package/moderncssm/components/country-select/index.d.ts +1 -0
  75. package/moderncssm/components/country-select/index.js +1 -0
  76. package/moderncssm/components/country-select/index.module.css +41 -0
  77. package/moderncssm/components/flag-icon/component.d.ts +16 -0
  78. package/moderncssm/components/flag-icon/component.js +13 -0
  79. package/moderncssm/components/flag-icon/flagSprite.d.ts +2 -0
  80. package/moderncssm/components/flag-icon/flagSprite.js +239 -0
  81. package/moderncssm/components/flag-icon/index.d.ts +1 -0
  82. package/moderncssm/components/flag-icon/index.js +1 -0
  83. package/moderncssm/components/flag-icon/index.module.css +15 -0
  84. package/moderncssm/components/select-field/component.d.ts +11 -0
  85. package/moderncssm/components/select-field/component.js +36 -0
  86. package/moderncssm/components/select-field/index.d.ts +1 -0
  87. package/moderncssm/components/select-field/index.js +1 -0
  88. package/moderncssm/components/select-field/index.module.css +44 -0
  89. package/moderncssm/consts-6c9aad46.d.ts +12 -0
  90. package/moderncssm/consts-ef43bf1b.d.ts +12 -0
  91. package/moderncssm/consts.d.ts +2 -0
  92. package/moderncssm/consts.js +3 -0
  93. package/moderncssm/data/country-data.d.ts +3 -0
  94. package/moderncssm/data/country-data.js +597 -0
  95. package/moderncssm/desktop/Component.desktop.d.ts +5 -0
  96. package/moderncssm/desktop/Component.desktop.js +9 -0
  97. package/moderncssm/desktop/index.d.ts +2 -0
  98. package/moderncssm/desktop/index.js +1 -0
  99. package/moderncssm/index-03d088c4.d.ts +20 -0
  100. package/moderncssm/index-11f20b2e.d.ts +190 -0
  101. package/moderncssm/index-281accb7.d.ts +19 -0
  102. package/moderncssm/index-7ca84eff.d.ts +15 -0
  103. package/moderncssm/index-8566963f.d.ts +6 -0
  104. package/moderncssm/index-d691530f.d.ts +1 -0
  105. package/moderncssm/index-ebda875c.d.ts +149 -0
  106. package/moderncssm/index-ed61931d.d.ts +2 -0
  107. package/moderncssm/index.d.ts +2 -0
  108. package/moderncssm/index.js +1 -0
  109. package/moderncssm/mobile/Component.mobile.d.ts +5 -0
  110. package/moderncssm/mobile/Component.mobile.js +9 -0
  111. package/moderncssm/mobile/index.d.ts +2 -0
  112. package/moderncssm/mobile/index.js +1 -0
  113. package/moderncssm/shared/index.d.ts +1 -0
  114. package/moderncssm/shared/index.js +1 -0
  115. package/moderncssm/types-1328ead9.d.ts +21 -0
  116. package/moderncssm/types.d.ts +99 -0
  117. package/moderncssm/types.js +1 -0
  118. package/moderncssm/typings-7d83ec1e.d.ts +1620 -0
  119. package/moderncssm/typings-d6bfd5b7.d.ts +62 -0
  120. package/moderncssm/typings-ed61931d.d.ts +118 -0
  121. package/moderncssm/use-skeleton-1328ead9.d.ts +44 -0
  122. package/moderncssm/utils/index.d.ts +74 -0
  123. package/moderncssm/utils/index.js +246 -0
  124. package/moderncssm/utils-3942b092.d.ts +81 -0
  125. package/package.json +6 -6
  126. package/src/components/country-select/index.module.css +5 -5
  127. package/src/components/flag-icon/index.module.css +2 -2
  128. package/src/components/select-field/index.module.css +4 -4
  129. 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-input__component_cms77","addons":"international-phone-input__addons_cms77"};
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) {
@@ -1,5 +1,5 @@
1
- /* hash: 1sn5n */
1
+ /* hash: 1ac3i */
2
2
 
3
- .international-phone-input__component_cms77 .international-phone-input__addons_cms77 {
3
+ .international-phone-input__component_94gbt .international-phone-input__addons_94gbt {
4
4
  padding-left: 0;
5
5
  }
@@ -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-input__component_1mpb4","option":"international-phone-input__option_1mpb4","flag":"international-phone-input__flag_1mpb4","countryName":"international-phone-input__countryName_1mpb4","dialCode":"international-phone-input__dialCode_1mpb4","flagIconWrapper":"international-phone-input__flagIconWrapper_1mpb4","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1mpb4"};
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: 1d6a1 */
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-input__component_1mpb4 {
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-input__option_1mpb4 {
32
+ } .international-phone-input__option_oqlp7 {
31
33
  display: flex;
32
34
  align-items: flex-start;
33
- padding: var(--gap-s);
34
- } .international-phone-input__flag_1mpb4 {
35
+ padding: var(--gap-12);
36
+ } .international-phone-input__flag_oqlp7 {
35
37
  flex-shrink: 0;
36
- margin-right: var(--gap-xs);
37
- } .international-phone-input__countryName_1mpb4 {
38
- margin-right: var(--gap-xs);
39
- } .international-phone-input__dialCode_1mpb4 {
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-input__flagIconWrapper_1mpb4 {
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-s);
48
- } .international-phone-input__emptyCountryIcon_1mpb4 {
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-input__flagIcon_502jb","flagPlaceholder":"international-phone-input__flagPlaceholder_502jb"};
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: 1ofrw */
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-input__flagIcon_502jb {
25
+ } .international-phone-input__flagIcon_12yry {
25
26
  max-width: 24px;
26
27
  max-height: 24px;
27
- } .international-phone-input__flagPlaceholder_502jb {
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-3xs);
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-input__component_1wmg8","flagIconContainer":"international-phone-input__flagIconContainer_1wmg8","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1wmg8","disabled":"international-phone-input__disabled_1wmg8","inner":"international-phone-input__inner_1wmg8","size-64":"international-phone-input__size-64_1wmg8","size-72":"international-phone-input__size-72_1wmg8","focusVisible":"international-phone-input__focusVisible_1wmg8"};
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: v6aez */
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-input__component_1wmg8 {
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-input__flagIconContainer_1wmg8 {
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-2xs);
40
- } .international-phone-input__emptyCountryIcon_1wmg8 {
42
+ margin-right: var(--gap-4);
43
+ } .international-phone-input__emptyCountryIcon_1l1qu {
41
44
  color: var(--color-light-neutral-translucent-700);
42
- } .international-phone-input__disabled_1wmg8 {
45
+ } .international-phone-input__disabled_1l1qu {
43
46
  cursor: var(--disabled-cursor);
44
- } .international-phone-input__inner_1wmg8 {
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-s);
52
+ padding-left: var(--gap-12);
50
53
  outline: none;
51
- } .international-phone-input__size-64_1wmg8 .international-phone-input__inner_1wmg8,
52
- .international-phone-input__size-72_1wmg8 .international-phone-input__inner_1wmg8 {
53
- padding-left: var(--gap-m);
54
- } .international-phone-input__focusVisible_1wmg8 {
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-s);
35
+ padding: var(--gap-12);
34
36
  } .flag {
35
37
  flex-shrink: 0;
36
- margin-right: var(--gap-xs);
38
+ margin-right: var(--gap-8);
37
39
  } .countryName {
38
- margin-right: var(--gap-xs);
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-s);
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-3xs);
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-2xs);
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-s);
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-m);
55
+ padding-left: var(--gap-16);
53
56
  } .focusVisible {
54
57
  outline: 2px solid var(--focus-color);
55
58
  outline-offset: 2px;