@alfalab/core-components-typography 4.2.0 → 4.3.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 (95) hide show
  1. package/colors.css +20 -20
  2. package/colors.module-67e5bcbb.js +6 -0
  3. package/common.module-e30c567d.js +6 -0
  4. package/component.js +2 -2
  5. package/cssm/text/component.d.ts +1 -1
  6. package/cssm/title/component.d.ts +2 -2
  7. package/cssm/title/index.d.ts +16 -2
  8. package/cssm/title/index.js +1 -6
  9. package/cssm/title-mobile/component.d.ts +16 -2
  10. package/cssm/title-mobile/component.js +1 -6
  11. package/cssm/title-responsive/component.d.ts +16 -3
  12. package/cssm/title-responsive/component.js +1 -6
  13. package/esm/colors.css +20 -20
  14. package/esm/colors.module-f70f33ad.js +4 -0
  15. package/esm/common.module-a6e9f838.js +4 -0
  16. package/esm/component.js +2 -2
  17. package/esm/hooks/use-skeleton.css +2 -2
  18. package/esm/hooks/useSkeleton.js +1 -1
  19. package/esm/index.js +2 -2
  20. package/esm/text/component.d.ts +1 -1
  21. package/esm/text/component.js +2 -2
  22. package/esm/text/index.css +20 -20
  23. package/esm/text/index.js +1 -1
  24. package/esm/title/common.css +5 -5
  25. package/esm/title/component.d.ts +2 -2
  26. package/esm/title/component.js +1 -1
  27. package/esm/title/index.css +19 -19
  28. package/esm/title/index.d.ts +16 -2
  29. package/esm/title/index.js +5 -10
  30. package/esm/title-mobile/component.d.ts +16 -2
  31. package/esm/title-mobile/component.js +5 -10
  32. package/esm/title-mobile/index.css +11 -11
  33. package/esm/title-mobile/index.js +2 -2
  34. package/esm/title-responsive/component.d.ts +16 -3
  35. package/esm/title-responsive/component.js +5 -10
  36. package/esm/title-responsive/index.css +31 -31
  37. package/esm/title-responsive/index.js +2 -2
  38. package/hooks/use-skeleton.css +2 -2
  39. package/hooks/useSkeleton.js +1 -1
  40. package/index.js +2 -2
  41. package/modern/colors.css +20 -20
  42. package/modern/colors.module-95caa60d.js +4 -0
  43. package/modern/common.module-592df4cb.js +4 -0
  44. package/modern/component.js +2 -2
  45. package/modern/hooks/use-skeleton.css +2 -2
  46. package/modern/hooks/useSkeleton.js +1 -1
  47. package/modern/index.js +2 -2
  48. package/modern/text/component.d.ts +1 -1
  49. package/modern/text/component.js +2 -2
  50. package/modern/text/index.css +20 -20
  51. package/modern/text/index.js +1 -1
  52. package/modern/title/common.css +5 -5
  53. package/modern/title/component.d.ts +2 -2
  54. package/modern/title/component.js +1 -1
  55. package/modern/title/index.css +19 -19
  56. package/modern/title/index.d.ts +16 -2
  57. package/modern/title/index.js +5 -10
  58. package/modern/title-mobile/component.d.ts +16 -2
  59. package/modern/title-mobile/component.js +5 -10
  60. package/modern/title-mobile/index.css +11 -11
  61. package/modern/title-mobile/index.js +2 -2
  62. package/modern/title-responsive/component.d.ts +16 -3
  63. package/modern/title-responsive/component.js +5 -10
  64. package/modern/title-responsive/index.css +31 -31
  65. package/modern/title-responsive/index.js +2 -2
  66. package/package.json +2 -2
  67. package/src/text/component.tsx +1 -1
  68. package/src/title/component.tsx +1 -1
  69. package/src/title/index.tsx +4 -8
  70. package/src/title-mobile/component.tsx +3 -7
  71. package/src/title-responsive/component.tsx +3 -7
  72. package/text/component.d.ts +1 -1
  73. package/text/component.js +2 -2
  74. package/text/index.css +20 -20
  75. package/text/index.js +1 -1
  76. package/title/common.css +5 -5
  77. package/title/component.d.ts +2 -2
  78. package/title/component.js +1 -1
  79. package/title/index.css +19 -19
  80. package/title/index.d.ts +16 -2
  81. package/title/index.js +4 -9
  82. package/title-mobile/component.d.ts +16 -2
  83. package/title-mobile/component.js +4 -9
  84. package/title-mobile/index.css +11 -11
  85. package/title-mobile/index.js +2 -2
  86. package/title-responsive/component.d.ts +16 -3
  87. package/title-responsive/component.js +4 -9
  88. package/title-responsive/index.css +31 -31
  89. package/title-responsive/index.js +2 -2
  90. package/colors.module-70706104.js +0 -6
  91. package/common.module-78c2a0fa.js +0 -6
  92. package/esm/colors.module-ac92fbac.js +0 -4
  93. package/esm/common.module-95067533.js +0 -4
  94. package/modern/colors.module-1a9450b1.js +0 -4
  95. package/modern/common.module-151b3759.js +0 -4
@@ -1,4 +1,17 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from "../title/component";
3
- declare const TitleResponsive: FC<TitleProps>;
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
4
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
5
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
6
+ color?: "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" | undefined;
7
+ weight?: "bold" | "regular" | "medium" | undefined;
8
+ font?: "styrene" | "system" | undefined;
9
+ defaultMargins?: boolean | undefined;
10
+ className?: string | undefined;
11
+ dataTestId?: string | undefined;
12
+ children?: React.ReactNode;
13
+ rowLimit?: 1 | 2 | 3 | undefined;
14
+ showSkeleton?: boolean | undefined;
15
+ skeletonProps?: import("../types").TextSkeletonProps | undefined;
16
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
4
17
  export { TitleResponsive };
@@ -1,21 +1,16 @@
1
- import React from 'react';
1
+ import React, { forwardRef } from 'react';
2
2
  import { Title } from '../title/component.js';
3
- import { c as commonStyles } from '../common.module-151b3759.js';
3
+ import { c as commonStyles } from '../common.module-592df4cb.js';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
6
6
  import '../hooks/useSkeleton.js';
7
7
  import '@alfalab/core-components-skeleton/modern';
8
8
  import '@alfalab/hooks';
9
- import '../colors.module-1a9450b1.js';
9
+ import '../colors.module-95caa60d.js';
10
10
 
11
- const styles = {"styrene-xlarge":"typography__styrene-xlarge_1j7fm","styrene-large":"typography__styrene-large_1j7fm","styrene-medium":"typography__styrene-medium_1j7fm","styrene-small":"typography__styrene-small_1j7fm","styrene-xsmall":"typography__styrene-xsmall_1j7fm","system-xlarge":"typography__system-xlarge_1j7fm","system-large":"typography__system-large_1j7fm","system-medium":"typography__system-medium_1j7fm","system-small":"typography__system-small_1j7fm","system-xsmall":"typography__system-xsmall_1j7fm","margins-xlarge":"typography__margins-xlarge_1j7fm","margins-large":"typography__margins-large_1j7fm","margins-medium":"typography__margins-medium_1j7fm","margins-small":"typography__margins-small_1j7fm","margins-xsmall":"typography__margins-xsmall_1j7fm"};
11
+ const styles = {"styrene-xlarge":"typography__styrene-xlarge_v8dfx","styrene-large":"typography__styrene-large_v8dfx","styrene-medium":"typography__styrene-medium_v8dfx","styrene-small":"typography__styrene-small_v8dfx","styrene-xsmall":"typography__styrene-xsmall_v8dfx","system-xlarge":"typography__system-xlarge_v8dfx","system-large":"typography__system-large_v8dfx","system-medium":"typography__system-medium_v8dfx","system-small":"typography__system-small_v8dfx","system-xsmall":"typography__system-xsmall_v8dfx","margins-xlarge":"typography__margins-xlarge_v8dfx","margins-large":"typography__margins-large_v8dfx","margins-medium":"typography__margins-medium_v8dfx","margins-small":"typography__margins-small_v8dfx","margins-xsmall":"typography__margins-xsmall_v8dfx"};
12
12
  require('./index.css')
13
13
 
14
- const TitleResponsive = (props) => (
15
- /**
16
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
17
- * Видимо, это особенность работы jest и css-modules.
18
- */
19
- React.createElement(Title, { ...props, styles: Object.assign(commonStyles, styles) }));
14
+ const TitleResponsive = forwardRef((props, ref) => React.createElement(Title, { ...props, styles: Object.assign(commonStyles, styles), ref: ref }));
20
15
 
21
16
  export { TitleResponsive };
@@ -1,4 +1,4 @@
1
- /* hash: 1tw64 */
1
+ /* hash: t6nzg */
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 */
@@ -20,68 +20,68 @@
20
20
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
21
21
  'Helvetica Neue', Helvetica, sans-serif;
22
22
  } :root {
23
- } /* TODO: поменять медиа-запросы на миксины */ .typography__styrene-xlarge_1j7fm {
23
+ } /* TODO: поменять медиа-запросы на миксины */ .typography__styrene-xlarge_v8dfx {
24
24
  font-size: 34px;
25
25
  line-height: 40px;
26
26
  font-weight: 500;
27
27
  font-feature-settings: 'ss01';
28
28
  font-family: var(--font-family-styrene);
29
- } .typography__styrene-large_1j7fm {
29
+ } .typography__styrene-large_v8dfx {
30
30
  font-size: 30px;
31
31
  line-height: 36px;
32
32
  font-weight: 500;
33
33
  font-feature-settings: 'ss01';
34
34
  font-family: var(--font-family-styrene);
35
- } .typography__styrene-medium_1j7fm {
35
+ } .typography__styrene-medium_v8dfx {
36
36
  font-size: 26px;
37
37
  line-height: 32px;
38
38
  font-weight: 500;
39
39
  font-feature-settings: 'ss01';
40
40
  font-family: var(--font-family-styrene);
41
- } .typography__styrene-small_1j7fm {
41
+ } .typography__styrene-small_v8dfx {
42
42
  font-size: 20px;
43
43
  line-height: 28px;
44
44
  font-weight: 500;
45
45
  font-feature-settings: 'ss01';
46
46
  font-family: var(--font-family-styrene);
47
- } .typography__styrene-xsmall_1j7fm {
47
+ } .typography__styrene-xsmall_v8dfx {
48
48
  font-size: 16px;
49
49
  line-height: 20px;
50
50
  font-weight: 500;
51
51
  font-feature-settings: 'ss01';
52
52
  font-family: var(--font-family-styrene);
53
- } .typography__system-xlarge_1j7fm {
53
+ } .typography__system-xlarge_v8dfx {
54
54
  font-size: 34px;
55
55
  line-height: 40px;
56
56
  font-weight: 600;
57
- } .typography__system-large_1j7fm {
57
+ } .typography__system-large_v8dfx {
58
58
  font-size: 30px;
59
59
  line-height: 36px;
60
60
  font-weight: 600;
61
- } .typography__system-medium_1j7fm {
61
+ } .typography__system-medium_v8dfx {
62
62
  font-size: 26px;
63
63
  line-height: 32px;
64
64
  font-weight: 600;
65
- } .typography__system-small_1j7fm {
65
+ } .typography__system-small_v8dfx {
66
66
  font-size: 20px;
67
67
  line-height: 28px;
68
68
  font-weight: 600;
69
- } .typography__system-xsmall_1j7fm {
69
+ } .typography__system-xsmall_v8dfx {
70
70
  font-size: 16px;
71
71
  line-height: 20px;
72
72
  font-weight: 600;
73
- } .typography__margins-xlarge_1j7fm {
73
+ } .typography__margins-xlarge_v8dfx {
74
74
  margin: 0 0 var(--gap-xl);
75
- } .typography__margins-large_1j7fm {
75
+ } .typography__margins-large_v8dfx {
76
76
  margin: var(--gap-3xl) 0 var(--gap-m);
77
- } .typography__margins-medium_1j7fm {
77
+ } .typography__margins-medium_v8dfx {
78
78
  margin: var(--gap-3xl) 0 var(--gap-m);
79
- } .typography__margins-small_1j7fm {
79
+ } .typography__margins-small_v8dfx {
80
80
  margin: var(--gap-3xl) 0 var(--gap-m);
81
- } .typography__margins-xsmall_1j7fm {
81
+ } .typography__margins-xsmall_v8dfx {
82
82
  margin: var(--gap-3xl) 0 var(--gap-m);
83
83
  } @media screen and (min-width: 1024px) {
84
- .typography__styrene-xlarge_1j7fm {
84
+ .typography__styrene-xlarge_v8dfx {
85
85
  font-size: 48px;
86
86
  line-height: 64px;
87
87
  font-weight: 500;
@@ -89,7 +89,7 @@
89
89
  font-family: var(--font-family-styrene);
90
90
  }
91
91
 
92
- .typography__styrene-large_1j7fm {
92
+ .typography__styrene-large_v8dfx {
93
93
  font-size: 40px;
94
94
  line-height: 48px;
95
95
  font-weight: 500;
@@ -97,7 +97,7 @@
97
97
  font-family: var(--font-family-styrene);
98
98
  }
99
99
 
100
- .typography__styrene-medium_1j7fm {
100
+ .typography__styrene-medium_v8dfx {
101
101
  font-size: 32px;
102
102
  line-height: 40px;
103
103
  font-weight: 500;
@@ -105,7 +105,7 @@
105
105
  font-family: var(--font-family-styrene);
106
106
  }
107
107
 
108
- .typography__styrene-small_1j7fm {
108
+ .typography__styrene-small_v8dfx {
109
109
  font-size: 24px;
110
110
  line-height: 32px;
111
111
  font-weight: 500;
@@ -113,7 +113,7 @@
113
113
  font-family: var(--font-family-styrene);
114
114
  }
115
115
 
116
- .typography__styrene-xsmall_1j7fm {
116
+ .typography__styrene-xsmall_v8dfx {
117
117
  font-size: 20px;
118
118
  line-height: 24px;
119
119
  font-weight: 500;
@@ -121,53 +121,53 @@
121
121
  font-family: var(--font-family-styrene);
122
122
  }
123
123
 
124
- .typography__system-xlarge_1j7fm {
124
+ .typography__system-xlarge_v8dfx {
125
125
  font-size: 48px;
126
126
  line-height: 52px;
127
127
  font-weight: 700;
128
128
  }
129
129
 
130
- .typography__system-large_1j7fm {
130
+ .typography__system-large_v8dfx {
131
131
  font-size: 40px;
132
132
  line-height: 48px;
133
133
  font-weight: 700;
134
134
  }
135
135
 
136
- .typography__system-medium_1j7fm {
136
+ .typography__system-medium_v8dfx {
137
137
  font-size: 30px;
138
138
  line-height: 36px;
139
139
  font-weight: 700;
140
140
  }
141
141
 
142
- .typography__system-small_1j7fm {
142
+ .typography__system-small_v8dfx {
143
143
  font-size: 22px;
144
144
  line-height: 26px;
145
145
  font-weight: 700;
146
146
  }
147
147
 
148
- .typography__system-xsmall_1j7fm {
148
+ .typography__system-xsmall_v8dfx {
149
149
  font-size: 18px;
150
150
  line-height: 22px;
151
151
  font-weight: 700;
152
152
  }
153
153
 
154
- .typography__margins-xlarge_1j7fm {
154
+ .typography__margins-xlarge_v8dfx {
155
155
  margin: 0 0 var(--gap-xl);
156
156
  }
157
157
 
158
- .typography__margins-large_1j7fm {
158
+ .typography__margins-large_v8dfx {
159
159
  margin: var(--gap-4xl) 0 var(--gap-xl);
160
160
  }
161
161
 
162
- .typography__margins-medium_1j7fm {
162
+ .typography__margins-medium_v8dfx {
163
163
  margin: var(--gap-4xl) 0 var(--gap-xl);
164
164
  }
165
165
 
166
- .typography__margins-small_1j7fm {
166
+ .typography__margins-small_v8dfx {
167
167
  margin: var(--gap-3xl) 0 var(--gap-m);
168
168
  }
169
169
 
170
- .typography__margins-xsmall_1j7fm {
170
+ .typography__margins-xsmall_v8dfx {
171
171
  margin: var(--gap-3xl) 0 var(--gap-m);
172
172
  }
173
173
  }
@@ -6,5 +6,5 @@ import 'classnames';
6
6
  import '../hooks/useSkeleton.js';
7
7
  import '@alfalab/core-components-skeleton/modern';
8
8
  import '@alfalab/hooks';
9
- import '../colors.module-1a9450b1.js';
10
- import '../common.module-151b3759.js';
9
+ import '../colors.module-95caa60d.js';
10
+ import '../common.module-592df4cb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-skeleton": "^4.1.0",
17
+ "@alfalab/core-components-skeleton": "^4.2.0",
18
18
  "@alfalab/hooks": "^1.13.0",
19
19
  "classnames": "^2.3.1",
20
20
  "react-merge-refs": "^1.1.0",
@@ -68,7 +68,7 @@ type TextBaseProps = {
68
68
  defaultMargins?: never;
69
69
 
70
70
  /**
71
- * Количество строк (не поддерживает IE)
71
+ * Количество строк
72
72
  */
73
73
  rowLimit?: 1 | 2 | 3;
74
74
 
@@ -57,7 +57,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
57
57
  children?: React.ReactNode;
58
58
 
59
59
  /**
60
- * Количество строк (не поддерживает IE)
60
+ * Количество строк
61
61
  */
62
62
  rowLimit?: 1 | 2 | 3;
63
63
 
@@ -1,17 +1,13 @@
1
- import React, { FC } from 'react';
1
+ import React, { forwardRef } from 'react';
2
2
 
3
3
  import { Title as TitleBase, TitleProps } from './component';
4
4
 
5
5
  import commonStyles from './common.module.css';
6
6
  import styles from './index.module.css';
7
7
 
8
- const Title: FC<TitleProps> = (props) => (
9
- /**
10
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
11
- * Видимо, это особенность работы jest и css-modules.
12
- */
13
- <TitleBase {...props} styles={Object.assign(commonStyles, styles)} />
14
- );
8
+ const Title = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>((props, ref) => (
9
+ <TitleBase {...props} styles={Object.assign(commonStyles, styles)} ref={ref} />
10
+ ));
15
11
 
16
12
  export { Title };
17
13
  export type { TitleProps };
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import React, { forwardRef } from 'react';
2
2
 
3
3
  import { Title, TitleProps } from '../title/component';
4
4
 
@@ -7,10 +7,6 @@ import styles from './index.module.css';
7
7
 
8
8
  export type TitleMobileProps = Omit<TitleProps, 'defaultMargins'>;
9
9
 
10
- export const TitleMobile: FC<TitleMobileProps> = (props) => (
11
- /**
12
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
13
- * Видимо, это особенность работы jest и css-modules.
14
- */
15
- <Title {...props} styles={Object.assign(commonStyles, styles)} />
10
+ export const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(
11
+ (props, ref) => <Title {...props} styles={Object.assign(commonStyles, styles)} ref={ref} />,
16
12
  );
@@ -1,14 +1,10 @@
1
- import React, { FC } from 'react';
1
+ import React, { forwardRef } from 'react';
2
2
 
3
3
  import { Title, TitleProps } from '../title/component';
4
4
 
5
5
  import commonStyles from '../title/common.module.css';
6
6
  import styles from './index.module.css';
7
7
 
8
- export const TitleResponsive: FC<TitleProps> = (props) => (
9
- /**
10
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
11
- * Видимо, это особенность работы jest и css-modules.
12
- */
13
- <Title {...props} styles={Object.assign(commonStyles, styles)} />
8
+ export const TitleResponsive = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(
9
+ (props, ref) => <Title {...props} styles={Object.assign(commonStyles, styles)} ref={ref} />,
14
10
  );
@@ -42,7 +42,7 @@ type TextBaseProps = {
42
42
  */
43
43
  defaultMargins?: never;
44
44
  /**
45
- * Количество строк (не поддерживает IE)
45
+ * Количество строк
46
46
  */
47
47
  rowLimit?: 1 | 2 | 3;
48
48
  /**
package/text/component.js CHANGED
@@ -7,7 +7,7 @@ var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
9
  var hooks_useSkeleton = require('../hooks/useSkeleton.js');
10
- var colors_module = require('../colors.module-70706104.js');
10
+ var colors_module = require('../colors.module-67e5bcbb.js');
11
11
  require('@alfalab/core-components-skeleton');
12
12
  require('@alfalab/hooks');
13
13
 
@@ -17,7 +17,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"paragraph":"typography__paragraph_nz4l3","paragraphWithMargins":"typography__paragraphWithMargins_nz4l3","primary-large":"typography__primary-large_nz4l3","primary-medium":"typography__primary-medium_nz4l3","primary-small":"typography__primary-small_nz4l3","secondary-large":"typography__secondary-large_nz4l3","secondary-medium":"typography__secondary-medium_nz4l3","secondary-small":"typography__secondary-small_nz4l3","component":"typography__component_nz4l3","component-primary":"typography__component-primary_nz4l3","component-secondary":"typography__component-secondary_nz4l3","caps":"typography__caps_nz4l3","bold":"typography__bold_nz4l3","medium":"typography__medium_nz4l3","regular":"typography__regular_nz4l3","monospace":"typography__monospace_nz4l3","rowLimit1":"typography__rowLimit1_nz4l3","rowLimit2":"typography__rowLimit2_nz4l3","rowLimit3":"typography__rowLimit3_nz4l3"};
20
+ var styles = {"paragraph":"typography__paragraph_iqnql","paragraphWithMargins":"typography__paragraphWithMargins_iqnql","primary-large":"typography__primary-large_iqnql","primary-medium":"typography__primary-medium_iqnql","primary-small":"typography__primary-small_iqnql","secondary-large":"typography__secondary-large_iqnql","secondary-medium":"typography__secondary-medium_iqnql","secondary-small":"typography__secondary-small_iqnql","component":"typography__component_iqnql","component-primary":"typography__component-primary_iqnql","component-secondary":"typography__component-secondary_iqnql","caps":"typography__caps_iqnql","bold":"typography__bold_iqnql","medium":"typography__medium_iqnql","regular":"typography__regular_iqnql","monospace":"typography__monospace_iqnql","rowLimit1":"typography__rowLimit1_iqnql","rowLimit2":"typography__rowLimit2_iqnql","rowLimit3":"typography__rowLimit3_iqnql"};
21
21
  require('./index.css')
22
22
 
23
23
  var logWarning = function (view) {
package/text/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: r7j9w */
1
+ /* hash: x5nv1 */
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 */
@@ -17,74 +17,74 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --text-paragraph-margin-bottom: 0 0 var(--gap-s);
20
- } .typography__paragraph_nz4l3 {
20
+ } .typography__paragraph_iqnql {
21
21
  margin: 0;
22
22
  padding: 0;
23
- } .typography__paragraphWithMargins_nz4l3 {
23
+ } .typography__paragraphWithMargins_iqnql {
24
24
  padding: 0;
25
25
  margin: var(--text-paragraph-margin-bottom);
26
- } .typography__primary-large_nz4l3 {
26
+ } .typography__primary-large_iqnql {
27
27
  font-size: 18px;
28
28
  line-height: 24px;
29
29
  font-weight: 400;
30
- } .typography__primary-medium_nz4l3 {
30
+ } .typography__primary-medium_iqnql {
31
31
  font-size: 16px;
32
32
  line-height: 24px;
33
33
  font-weight: 400;
34
- } .typography__primary-small_nz4l3 {
34
+ } .typography__primary-small_iqnql {
35
35
  font-size: 14px;
36
36
  line-height: 20px;
37
37
  font-weight: 400;
38
- } .typography__secondary-large_nz4l3 {
38
+ } .typography__secondary-large_iqnql {
39
39
  font-size: 13px;
40
40
  line-height: 16px;
41
41
  font-weight: 400;
42
- } .typography__secondary-medium_nz4l3 {
42
+ } .typography__secondary-medium_iqnql {
43
43
  font-size: 12px;
44
44
  line-height: 16px;
45
45
  font-weight: 400;
46
- } .typography__secondary-small_nz4l3 {
46
+ } .typography__secondary-small_iqnql {
47
47
  font-size: 11px;
48
48
  line-height: 16px;
49
49
  font-weight: 400;
50
- } .typography__component_nz4l3 {
50
+ } .typography__component_iqnql {
51
51
  font-size: 16px;
52
52
  line-height: 20px;
53
53
  font-weight: 400;
54
- } .typography__component-primary_nz4l3 {
54
+ } .typography__component-primary_iqnql {
55
55
  font-size: 16px;
56
56
  line-height: 20px;
57
57
  font-weight: 400;
58
- } .typography__component-secondary_nz4l3 {
58
+ } .typography__component-secondary_iqnql {
59
59
  font-size: 14px;
60
60
  line-height: 18px;
61
61
  font-weight: 400;
62
- } .typography__caps_nz4l3 {
62
+ } .typography__caps_iqnql {
63
63
  font-size: 12px;
64
64
  line-height: 16px;
65
65
  font-weight: 500;
66
66
  letter-spacing: 1.25px;
67
67
  text-transform: uppercase;
68
- } .typography__bold_nz4l3 {
68
+ } .typography__bold_iqnql {
69
69
  font-weight: bold;
70
- } .typography__medium_nz4l3 {
70
+ } .typography__medium_iqnql {
71
71
  font-weight: 500;
72
- } .typography__regular_nz4l3 {
72
+ } .typography__regular_iqnql {
73
73
  font-weight: normal;
74
- } .typography__monospace_nz4l3 {
74
+ } .typography__monospace_iqnql {
75
75
  font-variant-numeric: tabular-nums;
76
- } .typography__rowLimit1_nz4l3 {
76
+ } .typography__rowLimit1_iqnql {
77
77
  -webkit-line-clamp: 1;
78
78
  display: -webkit-box;
79
79
  -webkit-box-orient: vertical;
80
80
  overflow: hidden;
81
81
  word-break: break-all;
82
- } .typography__rowLimit2_nz4l3 {
82
+ } .typography__rowLimit2_iqnql {
83
83
  -webkit-line-clamp: 2;
84
84
  display: -webkit-box;
85
85
  -webkit-box-orient: vertical;
86
86
  overflow: hidden;
87
- } .typography__rowLimit3_nz4l3 {
87
+ } .typography__rowLimit3_iqnql {
88
88
  -webkit-line-clamp: 3;
89
89
  display: -webkit-box;
90
90
  -webkit-box-orient: vertical;
package/text/index.js CHANGED
@@ -10,7 +10,7 @@ require('classnames');
10
10
  require('../hooks/useSkeleton.js');
11
11
  require('@alfalab/core-components-skeleton');
12
12
  require('@alfalab/hooks');
13
- require('../colors.module-70706104.js');
13
+ require('../colors.module-67e5bcbb.js');
14
14
 
15
15
 
16
16
 
package/title/common.css CHANGED
@@ -1,14 +1,14 @@
1
- /* hash: 1uj85 */
2
- .typography__component_a4bxl {
1
+ /* hash: 106br */
2
+ .typography__component_1tneh {
3
3
  margin: 0;
4
4
  padding: 0
5
5
  }
6
- .typography__component_a4bxl.typography__bold_a4bxl {
6
+ .typography__component_1tneh.typography__bold_1tneh {
7
7
  font-weight: bold;
8
8
  }
9
- .typography__component_a4bxl.typography__medium_a4bxl {
9
+ .typography__component_1tneh.typography__medium_1tneh {
10
10
  font-weight: 500;
11
11
  }
12
- .typography__component_a4bxl.typography__regular_a4bxl {
12
+ .typography__component_1tneh.typography__regular_1tneh {
13
13
  font-weight: normal;
14
14
  }
@@ -42,7 +42,7 @@ type TitleProps = Omit<NativeProps, 'color'> & {
42
42
  */
43
43
  children?: React.ReactNode;
44
44
  /**
45
- * Количество строк (не поддерживает IE)
45
+ * Количество строк
46
46
  */
47
47
  rowLimit?: 1 | 2 | 3;
48
48
  /**
@@ -98,7 +98,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
98
98
  */
99
99
  children?: React.ReactNode;
100
100
  /**
101
- * Количество строк (не поддерживает IE)
101
+ * Количество строк
102
102
  */
103
103
  rowLimit?: 1 | 2 | 3 | undefined;
104
104
  /**
@@ -7,7 +7,7 @@ var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
9
  var hooks_useSkeleton = require('../hooks/useSkeleton.js');
10
- var colors_module = require('../colors.module-70706104.js');
10
+ var colors_module = require('../colors.module-67e5bcbb.js');
11
11
  require('@alfalab/core-components-skeleton');
12
12
  require('@alfalab/hooks');
13
13
 
package/title/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: xl0md */
1
+ /* hash: om1ge */
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 */
@@ -20,78 +20,78 @@
20
20
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
21
21
  'Helvetica Neue', Helvetica, sans-serif;
22
22
  } :root {
23
- } .typography__styrene-xlarge_1b4jn {
23
+ } .typography__styrene-xlarge_92ry3 {
24
24
  font-size: 48px;
25
25
  line-height: 64px;
26
26
  font-weight: 500;
27
27
  font-feature-settings: 'ss01';
28
28
  font-family: var(--font-family-styrene);
29
- } .typography__styrene-large_1b4jn {
29
+ } .typography__styrene-large_92ry3 {
30
30
  font-size: 40px;
31
31
  line-height: 48px;
32
32
  font-weight: 500;
33
33
  font-feature-settings: 'ss01';
34
34
  font-family: var(--font-family-styrene);
35
- } .typography__styrene-medium_1b4jn {
35
+ } .typography__styrene-medium_92ry3 {
36
36
  font-size: 32px;
37
37
  line-height: 40px;
38
38
  font-weight: 500;
39
39
  font-feature-settings: 'ss01';
40
40
  font-family: var(--font-family-styrene);
41
- } .typography__styrene-small_1b4jn {
41
+ } .typography__styrene-small_92ry3 {
42
42
  font-size: 24px;
43
43
  line-height: 32px;
44
44
  font-weight: 500;
45
45
  font-feature-settings: 'ss01';
46
46
  font-family: var(--font-family-styrene);
47
- } .typography__styrene-xsmall_1b4jn {
47
+ } .typography__styrene-xsmall_92ry3 {
48
48
  font-size: 20px;
49
49
  line-height: 24px;
50
50
  font-weight: 500;
51
51
  font-feature-settings: 'ss01';
52
52
  font-family: var(--font-family-styrene);
53
- } .typography__system-xlarge_1b4jn {
53
+ } .typography__system-xlarge_92ry3 {
54
54
  font-size: 48px;
55
55
  line-height: 52px;
56
56
  font-weight: 700;
57
- } .typography__system-large_1b4jn {
57
+ } .typography__system-large_92ry3 {
58
58
  font-size: 40px;
59
59
  line-height: 48px;
60
60
  font-weight: 700;
61
- } .typography__system-medium_1b4jn {
61
+ } .typography__system-medium_92ry3 {
62
62
  font-size: 30px;
63
63
  line-height: 36px;
64
64
  font-weight: 700;
65
- } .typography__system-small_1b4jn {
65
+ } .typography__system-small_92ry3 {
66
66
  font-size: 22px;
67
67
  line-height: 26px;
68
68
  font-weight: 700;
69
- } .typography__system-xsmall_1b4jn {
69
+ } .typography__system-xsmall_92ry3 {
70
70
  font-size: 18px;
71
71
  line-height: 22px;
72
72
  font-weight: 700;
73
- } .typography__margins-xlarge_1b4jn {
73
+ } .typography__margins-xlarge_92ry3 {
74
74
  margin: 0 0 var(--gap-xl);
75
- } .typography__margins-large_1b4jn {
75
+ } .typography__margins-large_92ry3 {
76
76
  margin: var(--gap-4xl) 0 var(--gap-xl);
77
- } .typography__margins-medium_1b4jn {
77
+ } .typography__margins-medium_92ry3 {
78
78
  margin: var(--gap-4xl) 0 var(--gap-xl);
79
- } .typography__margins-small_1b4jn {
79
+ } .typography__margins-small_92ry3 {
80
80
  margin: var(--gap-3xl) 0 var(--gap-m);
81
- } .typography__margins-xsmall_1b4jn {
81
+ } .typography__margins-xsmall_92ry3 {
82
82
  margin: var(--gap-3xl) 0 var(--gap-m);
83
- } .typography__rowLimit1_1b4jn {
83
+ } .typography__rowLimit1_92ry3 {
84
84
  -webkit-line-clamp: 1;
85
85
  display: -webkit-box;
86
86
  -webkit-box-orient: vertical;
87
87
  overflow: hidden;
88
88
  word-break: break-all;
89
- } .typography__rowLimit2_1b4jn {
89
+ } .typography__rowLimit2_92ry3 {
90
90
  -webkit-line-clamp: 2;
91
91
  display: -webkit-box;
92
92
  -webkit-box-orient: vertical;
93
93
  overflow: hidden;
94
- } .typography__rowLimit3_1b4jn {
94
+ } .typography__rowLimit3_92ry3 {
95
95
  -webkit-line-clamp: 3;
96
96
  display: -webkit-box;
97
97
  -webkit-box-orient: vertical;