@alfalab/core-components-typography 6.0.2 → 6.0.3-alfasans
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.css +20 -20
- package/colors.d.ts +1 -1
- package/colors.module.css.js +1 -1
- package/colors.module.css.js.map +1 -1
- package/cssm/colors.d.ts +1 -1
- package/cssm/text/component.d.ts +4 -4
- package/cssm/text/component.js.map +1 -1
- package/cssm/text/index.module.css +40 -13
- package/cssm/title/component.d.ts +18 -18
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.d.ts +13 -13
- package/cssm/title/index.module.css +29 -40
- package/cssm/title/utils.js.map +1 -1
- package/cssm/title-mobile/component.d.ts +13 -13
- package/cssm/title-mobile/index.module.css +28 -45
- package/cssm/title-responsive/component.d.ts +16 -16
- package/cssm/types.d.ts +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.d.ts +1 -1
- package/esm/colors.module.css.js +1 -1
- package/esm/colors.module.css.js.map +1 -1
- package/esm/text/component.d.ts +4 -4
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +80 -53
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/common.module.css.js.map +1 -1
- package/esm/title/component.d.ts +18 -18
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +54 -65
- package/esm/title/index.d.ts +13 -13
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title/utils.js.map +1 -1
- package/esm/title-mobile/component.d.ts +13 -13
- package/esm/title-mobile/index.css +53 -70
- package/esm/title-mobile/index.module.css.js +1 -1
- package/esm/title-mobile/index.module.css.js.map +1 -1
- package/esm/title-responsive/component.d.ts +16 -16
- package/esm/types.d.ts +1 -1
- package/modern/colors.css +20 -20
- package/modern/colors.d.ts +1 -1
- package/modern/colors.module.css.js +1 -1
- package/modern/colors.module.css.js.map +1 -1
- package/modern/text/component.d.ts +4 -4
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +80 -53
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/common.module.css.js.map +1 -1
- package/modern/title/component.d.ts +18 -18
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +54 -65
- package/modern/title/index.d.ts +13 -13
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title/utils.js.map +1 -1
- package/modern/title-mobile/component.d.ts +13 -13
- package/modern/title-mobile/index.css +53 -70
- package/modern/title-mobile/index.module.css.js +1 -1
- package/modern/title-mobile/index.module.css.js.map +1 -1
- package/modern/title-responsive/component.d.ts +16 -16
- package/modern/types.d.ts +1 -1
- package/moderncssm/colors.d.ts +1 -1
- package/moderncssm/text/component.d.ts +4 -4
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/text/index.module.css +37 -11
- package/moderncssm/title/component.d.ts +18 -18
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.d.ts +13 -13
- package/moderncssm/title/index.module.css +29 -38
- package/moderncssm/title/utils.js.map +1 -1
- package/moderncssm/title-mobile/component.d.ts +13 -13
- package/moderncssm/title-mobile/index.module.css +28 -43
- package/moderncssm/title-responsive/component.d.ts +16 -16
- package/moderncssm/types.d.ts +1 -1
- package/package.json +6 -6
- package/src/colors.module.css +1 -1
- package/src/text/index.module.css +1 -1
- package/src/title/common.module.css +1 -1
- package/src/title/index.module.css +1 -1
- package/src/title-mobile/index.module.css +1 -1
- package/text/component.d.ts +4 -4
- package/text/component.js.map +1 -1
- package/text/index.css +80 -53
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/common.css +5 -5
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.d.ts +18 -18
- package/title/component.js.map +1 -1
- package/title/index.css +54 -65
- package/title/index.d.ts +13 -13
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title/utils.js.map +1 -1
- package/title-mobile/component.d.ts +13 -13
- package/title-mobile/index.css +53 -70
- package/title-mobile/index.module.css.js +1 -1
- package/title-mobile/index.module.css.js.map +1 -1
- package/title-responsive/component.d.ts +16 -16
- package/types.d.ts +1 -1
package/esm/title/index.css
CHANGED
|
@@ -10,143 +10,132 @@
|
|
|
10
10
|
--gap-48: var(--gap-4xl);
|
|
11
11
|
}
|
|
12
12
|
:root {
|
|
13
|
-
--font-family-
|
|
14
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
15
|
-
|
|
16
|
-
'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
17
|
-
sans-serif;
|
|
13
|
+
--font-family-alfasans:
|
|
14
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
15
|
+
Helvetica, sans-serif;
|
|
18
16
|
}
|
|
19
|
-
.
|
|
17
|
+
.typography__xlarge_eq9mm {
|
|
20
18
|
font-size: 48px;
|
|
21
19
|
line-height: 52px;
|
|
22
20
|
font-weight: 700;
|
|
23
|
-
|
|
21
|
+
letter-spacing: 0.1px;
|
|
22
|
+
font-family: var(--font-family-alfasans);
|
|
24
23
|
}
|
|
25
|
-
.
|
|
24
|
+
.typography__xlarge_eq9mm.typography__font_eq9mm {
|
|
26
25
|
line-height: 64px;
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
font-feature-settings: 'ss01';
|
|
29
|
-
font-family: var(--font-family-styrene);
|
|
30
26
|
}
|
|
31
|
-
.typography__regular-
|
|
27
|
+
.typography__regular-xlarge_eq9mm {
|
|
32
28
|
font-size: 48px;
|
|
33
29
|
line-height: 52px;
|
|
34
30
|
font-weight: 400;
|
|
35
|
-
|
|
31
|
+
letter-spacing: -2.1px;
|
|
32
|
+
font-family: var(--font-family-alfasans);
|
|
36
33
|
}
|
|
37
|
-
.typography__regular-
|
|
34
|
+
.typography__regular-xlarge_eq9mm.typography__font_eq9mm {
|
|
38
35
|
line-height: 64px;
|
|
39
|
-
font-feature-settings: 'ss01';
|
|
40
|
-
font-family: var(--font-family-styrene);
|
|
41
36
|
}
|
|
42
|
-
.
|
|
37
|
+
.typography__large_eq9mm {
|
|
43
38
|
font-size: 40px;
|
|
44
39
|
line-height: 48px;
|
|
45
40
|
font-weight: 700;
|
|
46
|
-
|
|
41
|
+
letter-spacing: 0.1px;
|
|
42
|
+
font-family: var(--font-family-alfasans);
|
|
47
43
|
}
|
|
48
|
-
.
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
font-feature-settings: 'ss01';
|
|
51
|
-
font-family: var(--font-family-styrene);
|
|
44
|
+
.typography__large_eq9mm.typography__font_eq9mm {
|
|
52
45
|
}
|
|
53
|
-
.typography__regular-
|
|
46
|
+
.typography__regular-large_eq9mm {
|
|
54
47
|
font-size: 40px;
|
|
55
48
|
line-height: 48px;
|
|
56
49
|
font-weight: 400;
|
|
57
|
-
|
|
50
|
+
letter-spacing: -1.7px;
|
|
51
|
+
font-family: var(--font-family-alfasans);
|
|
58
52
|
}
|
|
59
|
-
.typography__regular-
|
|
60
|
-
font-feature-settings: 'ss01';
|
|
61
|
-
font-family: var(--font-family-styrene);
|
|
53
|
+
.typography__regular-large_eq9mm.typography__font_eq9mm {
|
|
62
54
|
}
|
|
63
|
-
.
|
|
55
|
+
.typography__medium_eq9mm {
|
|
64
56
|
font-size: 30px;
|
|
65
57
|
line-height: 36px;
|
|
66
58
|
font-weight: 700;
|
|
67
|
-
|
|
59
|
+
letter-spacing: 0.1px;
|
|
60
|
+
font-family: var(--font-family-alfasans);
|
|
68
61
|
}
|
|
69
|
-
.
|
|
62
|
+
.typography__medium_eq9mm.typography__font_eq9mm {
|
|
70
63
|
font-size: 32px;
|
|
71
64
|
line-height: 40px;
|
|
72
|
-
|
|
73
|
-
font-feature-settings: 'ss01';
|
|
74
|
-
font-family: var(--font-family-styrene);
|
|
65
|
+
letter-spacing: 0.3px;
|
|
75
66
|
}
|
|
76
|
-
.typography__regular-
|
|
67
|
+
.typography__regular-medium_eq9mm {
|
|
77
68
|
font-size: 30px;
|
|
78
69
|
line-height: 36px;
|
|
79
70
|
font-weight: 400;
|
|
80
|
-
|
|
71
|
+
letter-spacing: -1.25px;
|
|
72
|
+
font-family: var(--font-family-alfasans);
|
|
81
73
|
}
|
|
82
|
-
.typography__regular-
|
|
74
|
+
.typography__regular-medium_eq9mm.typography__font_eq9mm {
|
|
83
75
|
font-size: 32px;
|
|
84
76
|
line-height: 40px;
|
|
85
|
-
|
|
86
|
-
font-family: var(--font-family-styrene);
|
|
77
|
+
letter-spacing: -1.36px;
|
|
87
78
|
}
|
|
88
|
-
.
|
|
79
|
+
.typography__small_eq9mm {
|
|
89
80
|
font-size: 22px;
|
|
90
81
|
line-height: 26px;
|
|
91
82
|
font-weight: 700;
|
|
92
|
-
|
|
83
|
+
letter-spacing: 0.2px;
|
|
84
|
+
font-family: var(--font-family-alfasans);
|
|
93
85
|
}
|
|
94
|
-
.
|
|
86
|
+
.typography__small_eq9mm.typography__font_eq9mm {
|
|
95
87
|
font-size: 24px;
|
|
96
88
|
line-height: 32px;
|
|
97
|
-
|
|
98
|
-
font-feature-settings: 'ss01';
|
|
99
|
-
font-family: var(--font-family-styrene);
|
|
89
|
+
letter-spacing: 0.39px;
|
|
100
90
|
}
|
|
101
|
-
.typography__regular-
|
|
91
|
+
.typography__regular-small_eq9mm {
|
|
102
92
|
font-size: 22px;
|
|
103
93
|
line-height: 26px;
|
|
104
94
|
font-weight: 400;
|
|
105
|
-
|
|
95
|
+
letter-spacing: -0.8px;
|
|
96
|
+
font-family: var(--font-family-alfasans);
|
|
106
97
|
}
|
|
107
|
-
.typography__regular-
|
|
98
|
+
.typography__regular-small_eq9mm.typography__font_eq9mm {
|
|
108
99
|
font-size: 24px;
|
|
109
100
|
line-height: 32px;
|
|
110
|
-
|
|
111
|
-
font-family: var(--font-family-styrene);
|
|
101
|
+
letter-spacing: -0.9px;
|
|
112
102
|
}
|
|
113
|
-
.
|
|
103
|
+
.typography__xsmall_eq9mm {
|
|
114
104
|
font-size: 18px;
|
|
115
105
|
line-height: 22px;
|
|
116
106
|
font-weight: 700;
|
|
117
|
-
|
|
107
|
+
letter-spacing: 0.38px;
|
|
108
|
+
font-family: var(--font-family-alfasans);
|
|
118
109
|
}
|
|
119
|
-
.
|
|
110
|
+
.typography__xsmall_eq9mm.typography__font_eq9mm {
|
|
120
111
|
font-size: 20px;
|
|
121
112
|
line-height: 24px;
|
|
122
|
-
|
|
123
|
-
font-feature-settings: 'ss01';
|
|
124
|
-
font-family: var(--font-family-styrene);
|
|
113
|
+
letter-spacing: 0.33px;
|
|
125
114
|
}
|
|
126
|
-
.typography__regular-
|
|
115
|
+
.typography__regular-xsmall_eq9mm {
|
|
127
116
|
font-size: 18px;
|
|
128
117
|
line-height: 22px;
|
|
129
118
|
font-weight: 400;
|
|
130
|
-
|
|
119
|
+
letter-spacing: -0.36px;
|
|
120
|
+
font-family: var(--font-family-alfasans);
|
|
131
121
|
}
|
|
132
|
-
.typography__regular-
|
|
122
|
+
.typography__regular-xsmall_eq9mm.typography__font_eq9mm {
|
|
133
123
|
font-size: 20px;
|
|
134
124
|
line-height: 24px;
|
|
135
|
-
|
|
136
|
-
font-family: var(--font-family-styrene);
|
|
125
|
+
letter-spacing: -0.68px;
|
|
137
126
|
}
|
|
138
|
-
.
|
|
127
|
+
.typography__component_eq9mm.typography__margins-xlarge_eq9mm {
|
|
139
128
|
margin: var(--gap-0) var(--gap-0) var(--gap-24);
|
|
140
129
|
}
|
|
141
|
-
.
|
|
130
|
+
.typography__component_eq9mm.typography__margins-large_eq9mm {
|
|
142
131
|
margin: var(--gap-48) var(--gap-0) var(--gap-24);
|
|
143
132
|
}
|
|
144
|
-
.
|
|
133
|
+
.typography__component_eq9mm.typography__margins-medium_eq9mm {
|
|
145
134
|
margin: var(--gap-48) var(--gap-0) var(--gap-24);
|
|
146
135
|
}
|
|
147
|
-
.
|
|
136
|
+
.typography__component_eq9mm.typography__margins-small_eq9mm {
|
|
148
137
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
149
138
|
}
|
|
150
|
-
.
|
|
139
|
+
.typography__component_eq9mm.typography__margins-xsmall_eq9mm {
|
|
151
140
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
152
141
|
}
|
package/esm/title/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TitleProps } from './component';
|
|
3
3
|
declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
4
|
-
tag: "
|
|
5
|
-
view?: "
|
|
6
|
-
color?: "
|
|
7
|
-
weight?: "regular" | "medium" | "bold" | "semibold"
|
|
8
|
-
font?: "
|
|
4
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
5
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
6
|
+
color?: import("..").Color;
|
|
7
|
+
weight?: "regular" | "medium" | "bold" | "semibold";
|
|
8
|
+
font?: "styrene" | "system" | "alfasans" | {
|
|
9
9
|
font: "alfasans";
|
|
10
10
|
systemCompat: boolean;
|
|
11
|
-
}
|
|
12
|
-
defaultMargins?: boolean
|
|
13
|
-
className?: string
|
|
14
|
-
dataTestId?: string
|
|
11
|
+
};
|
|
12
|
+
defaultMargins?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
dataTestId?: string;
|
|
15
15
|
children?: React.ReactNode;
|
|
16
|
-
rowLimit?: 1 | 2 | 3
|
|
17
|
-
showSkeleton?: boolean
|
|
18
|
-
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps
|
|
19
|
-
defaultMatchMediaValue?: boolean | (() => boolean)
|
|
16
|
+
rowLimit?: 1 | 2 | 3;
|
|
17
|
+
showSkeleton?: boolean;
|
|
18
|
+
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps;
|
|
19
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
20
20
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
21
21
|
export { Title };
|
|
22
22
|
export type { TitleProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"xlarge":"
|
|
3
|
+
var styles = {"xlarge":"typography__xlarge_eq9mm","font":"typography__font_eq9mm","regular-xlarge":"typography__regular-xlarge_eq9mm","large":"typography__large_eq9mm","regular-large":"typography__regular-large_eq9mm","medium":"typography__medium_eq9mm","regular-medium":"typography__regular-medium_eq9mm","small":"typography__small_eq9mm","regular-small":"typography__regular-small_eq9mm","xsmall":"typography__xsmall_eq9mm","regular-xsmall":"typography__regular-xsmall_eq9mm","component":"typography__component_eq9mm","margins-xlarge":"typography__margins-xlarge_eq9mm","margins-large":"typography__margins-large_eq9mm","margins-medium":"typography__margins-medium_eq9mm","margins-small":"typography__margins-small_eq9mm","margins-xsmall":"typography__margins-xsmall_eq9mm"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system_$(view);\n\n &.font {\n @subtract-mixin headline_$(view), headline-system_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system_$(view);\n\n &.font {\n @subtract-mixin promo_$(view), promo-system_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-medium;\n }\n\n &.margins-medium {\n @mixin margin-medium;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n &.margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
|
package/esm/title/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":"AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":"AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
3
|
-
tag: "
|
|
4
|
-
view?: "
|
|
5
|
-
color?: "
|
|
6
|
-
weight?: "regular" | "medium" | "bold" | "semibold"
|
|
7
|
-
font?: "
|
|
3
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
4
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
5
|
+
color?: import("..").Color;
|
|
6
|
+
weight?: "regular" | "medium" | "bold" | "semibold";
|
|
7
|
+
font?: "styrene" | "system" | "alfasans" | {
|
|
8
8
|
font: "alfasans";
|
|
9
9
|
systemCompat: boolean;
|
|
10
|
-
}
|
|
11
|
-
defaultMargins?: boolean
|
|
12
|
-
className?: string
|
|
13
|
-
dataTestId?: string
|
|
10
|
+
};
|
|
11
|
+
defaultMargins?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
dataTestId?: string;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
-
rowLimit?: 1 | 2 | 3
|
|
16
|
-
showSkeleton?: boolean
|
|
17
|
-
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps
|
|
18
|
-
defaultMatchMediaValue?: boolean | (() => boolean)
|
|
15
|
+
rowLimit?: 1 | 2 | 3;
|
|
16
|
+
showSkeleton?: boolean;
|
|
17
|
+
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps;
|
|
18
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
19
19
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
@@ -8,129 +8,112 @@
|
|
|
8
8
|
--gap-40: var(--gap-3xl);
|
|
9
9
|
}
|
|
10
10
|
:root {
|
|
11
|
-
--font-family-
|
|
12
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
13
|
-
|
|
14
|
-
'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
15
|
-
sans-serif;
|
|
11
|
+
--font-family-alfasans:
|
|
12
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
13
|
+
Helvetica, sans-serif;
|
|
16
14
|
}
|
|
17
|
-
.
|
|
15
|
+
.typography__xlarge_fn50s {
|
|
18
16
|
font-size: 34px;
|
|
19
17
|
line-height: 40px;
|
|
20
|
-
font-weight:
|
|
21
|
-
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
letter-spacing: -0.32px;
|
|
20
|
+
font-family: var(--font-family-alfasans);
|
|
22
21
|
}
|
|
23
|
-
.
|
|
24
|
-
font-weight: 500;
|
|
25
|
-
font-feature-settings: 'ss01';
|
|
26
|
-
font-family: var(--font-family-styrene);
|
|
22
|
+
.typography__xlarge_fn50s.typography__font_fn50s {
|
|
27
23
|
}
|
|
28
|
-
.typography__regular-
|
|
24
|
+
.typography__regular-xlarge_fn50s {
|
|
29
25
|
font-size: 34px;
|
|
30
26
|
line-height: 40px;
|
|
31
27
|
font-weight: 400;
|
|
32
|
-
|
|
28
|
+
letter-spacing: -1.36px;
|
|
29
|
+
font-family: var(--font-family-alfasans);
|
|
33
30
|
}
|
|
34
|
-
.typography__regular-
|
|
35
|
-
font-feature-settings: 'ss01';
|
|
36
|
-
font-family: var(--font-family-styrene);
|
|
31
|
+
.typography__regular-xlarge_fn50s.typography__system_fn50s {
|
|
37
32
|
}
|
|
38
|
-
.
|
|
33
|
+
.typography__large_fn50s {
|
|
39
34
|
font-size: 30px;
|
|
40
35
|
line-height: 36px;
|
|
41
|
-
font-weight:
|
|
42
|
-
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
letter-spacing: -0.25px;
|
|
38
|
+
font-family: var(--font-family-alfasans);
|
|
43
39
|
}
|
|
44
|
-
.
|
|
45
|
-
font-weight: 500;
|
|
46
|
-
font-feature-settings: 'ss01';
|
|
47
|
-
font-family: var(--font-family-styrene);
|
|
40
|
+
.typography__large_fn50s.typography__font_fn50s {
|
|
48
41
|
}
|
|
49
|
-
.typography__regular-
|
|
42
|
+
.typography__regular-large_fn50s {
|
|
50
43
|
font-size: 30px;
|
|
51
44
|
line-height: 36px;
|
|
52
45
|
font-weight: 400;
|
|
53
|
-
|
|
46
|
+
letter-spacing: -1.25px;
|
|
47
|
+
font-family: var(--font-family-alfasans);
|
|
54
48
|
}
|
|
55
|
-
.typography__regular-
|
|
56
|
-
font-feature-settings: 'ss01';
|
|
57
|
-
font-family: var(--font-family-styrene);
|
|
49
|
+
.typography__regular-large_fn50s.typography__system_fn50s {
|
|
58
50
|
}
|
|
59
|
-
.
|
|
51
|
+
.typography__medium_fn50s {
|
|
60
52
|
font-size: 26px;
|
|
61
53
|
line-height: 32px;
|
|
62
|
-
font-weight:
|
|
63
|
-
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
letter-spacing: -0.25px;
|
|
56
|
+
font-family: var(--font-family-alfasans);
|
|
64
57
|
}
|
|
65
|
-
.
|
|
66
|
-
font-weight: 500;
|
|
67
|
-
font-feature-settings: 'ss01';
|
|
68
|
-
font-family: var(--font-family-styrene);
|
|
58
|
+
.typography__medium_fn50s.typography__font_fn50s {
|
|
69
59
|
}
|
|
70
|
-
.typography__regular-
|
|
60
|
+
.typography__regular-medium_fn50s {
|
|
71
61
|
font-size: 26px;
|
|
72
62
|
line-height: 32px;
|
|
73
63
|
font-weight: 400;
|
|
74
|
-
|
|
64
|
+
letter-spacing: -1px;
|
|
65
|
+
font-family: var(--font-family-alfasans);
|
|
75
66
|
}
|
|
76
|
-
.typography__regular-
|
|
77
|
-
font-feature-settings: 'ss01';
|
|
78
|
-
font-family: var(--font-family-styrene);
|
|
67
|
+
.typography__regular-medium_fn50s.typography__system_fn50s {
|
|
79
68
|
}
|
|
80
|
-
.
|
|
69
|
+
.typography__small_fn50s {
|
|
81
70
|
font-size: 20px;
|
|
82
71
|
line-height: 28px;
|
|
83
|
-
font-weight:
|
|
84
|
-
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
letter-spacing: -0.15px;
|
|
74
|
+
font-family: var(--font-family-alfasans);
|
|
85
75
|
}
|
|
86
|
-
.
|
|
87
|
-
font-weight: 500;
|
|
88
|
-
font-feature-settings: 'ss01';
|
|
89
|
-
font-family: var(--font-family-styrene);
|
|
76
|
+
.typography__small_fn50s.typography__font_fn50s {
|
|
90
77
|
}
|
|
91
|
-
.typography__regular-
|
|
78
|
+
.typography__regular-small_fn50s {
|
|
92
79
|
font-size: 20px;
|
|
93
80
|
line-height: 28px;
|
|
94
81
|
font-weight: 400;
|
|
95
|
-
|
|
82
|
+
letter-spacing: -0.68px;
|
|
83
|
+
font-family: var(--font-family-alfasans);
|
|
96
84
|
}
|
|
97
|
-
.typography__regular-
|
|
98
|
-
font-feature-settings: 'ss01';
|
|
99
|
-
font-family: var(--font-family-styrene);
|
|
85
|
+
.typography__regular-small_fn50s.typography__system_fn50s {
|
|
100
86
|
}
|
|
101
|
-
.
|
|
87
|
+
.typography__xsmall_fn50s {
|
|
102
88
|
font-size: 16px;
|
|
103
89
|
line-height: 20px;
|
|
104
|
-
font-weight:
|
|
105
|
-
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
letter-spacing: 0.17px;
|
|
92
|
+
font-family: var(--font-family-alfasans);
|
|
106
93
|
}
|
|
107
|
-
.
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
font-feature-settings: 'ss01';
|
|
110
|
-
font-family: var(--font-family-styrene);
|
|
94
|
+
.typography__xsmall_fn50s.typography__font_fn50s {
|
|
111
95
|
}
|
|
112
|
-
.typography__regular-
|
|
96
|
+
.typography__regular-xsmall_fn50s {
|
|
113
97
|
font-size: 16px;
|
|
114
98
|
line-height: 20px;
|
|
115
99
|
font-weight: 400;
|
|
116
|
-
|
|
100
|
+
letter-spacing: -0.24px;
|
|
101
|
+
font-family: var(--font-family-alfasans);
|
|
117
102
|
}
|
|
118
|
-
.typography__regular-
|
|
119
|
-
font-feature-settings: 'ss01';
|
|
120
|
-
font-family: var(--font-family-styrene);
|
|
103
|
+
.typography__regular-xsmall_fn50s.typography__system_fn50s {
|
|
121
104
|
}
|
|
122
|
-
.
|
|
105
|
+
.typography__component_fn50s.typography__margins-xlarge_fn50s {
|
|
123
106
|
margin: var(--gap-0) var(--gap-0) var(--gap-24);
|
|
124
107
|
}
|
|
125
|
-
.
|
|
108
|
+
.typography__component_fn50s.typography__margins-large_fn50s {
|
|
126
109
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
127
110
|
}
|
|
128
|
-
.
|
|
111
|
+
.typography__component_fn50s.typography__margins-medium_fn50s {
|
|
129
112
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
130
113
|
}
|
|
131
|
-
.
|
|
114
|
+
.typography__component_fn50s.typography__margins-small_fn50s {
|
|
132
115
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
133
116
|
}
|
|
134
|
-
.
|
|
117
|
+
.typography__component_fn50s .typography__margins-xsmall_fn50s {
|
|
135
118
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
136
119
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"xlarge":"
|
|
3
|
+
var styles = {"xlarge":"typography__xlarge_fn50s","font":"typography__font_fn50s","regular-xlarge":"typography__regular-xlarge_fn50s","system":"typography__system_fn50s","large":"typography__large_fn50s","regular-large":"typography__regular-large_fn50s","medium":"typography__medium_fn50s","regular-medium":"typography__regular-medium_fn50s","small":"typography__small_fn50s","regular-small":"typography__regular-small_fn50s","xsmall":"typography__xsmall_fn50s","regular-xsmall":"typography__regular-xsmall_fn50s","component":"typography__component_fn50s","margins-xlarge":"typography__margins-xlarge_fn50s","margins-large":"typography__margins-large_fn50s","margins-medium":"typography__margins-medium_fn50s","margins-small":"typography__margins-small_fn50s","margins-xsmall":"typography__margins-xsmall_fn50s"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system-mobile_$(view);\n\n &.font {\n @subtract-mixin headline-mobile_$(view), headline-system-mobile_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system-mobile_$(view);\n\n &.system {\n @subtract-mixin promo-mobile_$(view), promo-system-mobile_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-small;\n }\n\n &.margins-medium {\n @mixin margin-small;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n & .margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TitleProps } from '../title';
|
|
3
|
-
export
|
|
3
|
+
export type TitleResponsiveProps = TitleProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Контрольная точка, с нее начинается desktop версия
|
|
6
6
|
* @default 1024
|
|
@@ -12,30 +12,30 @@ export declare type TitleResponsiveProps = TitleProps & {
|
|
|
12
12
|
client?: 'desktop' | 'mobile';
|
|
13
13
|
};
|
|
14
14
|
export declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
15
|
-
tag: "
|
|
16
|
-
view?: "
|
|
17
|
-
color?: "
|
|
18
|
-
weight?: "regular" | "medium" | "bold" | "semibold"
|
|
19
|
-
font?: "
|
|
15
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
16
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
17
|
+
color?: import("..").Color;
|
|
18
|
+
weight?: "regular" | "medium" | "bold" | "semibold";
|
|
19
|
+
font?: "styrene" | "system" | "alfasans" | {
|
|
20
20
|
font: "alfasans";
|
|
21
21
|
systemCompat: boolean;
|
|
22
|
-
}
|
|
23
|
-
defaultMargins?: boolean
|
|
24
|
-
className?: string
|
|
25
|
-
dataTestId?: string
|
|
22
|
+
};
|
|
23
|
+
defaultMargins?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
dataTestId?: string;
|
|
26
26
|
children?: React.ReactNode;
|
|
27
|
-
rowLimit?: 1 | 2 | 3
|
|
28
|
-
showSkeleton?: boolean
|
|
29
|
-
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps
|
|
30
|
-
defaultMatchMediaValue?: boolean | (() => boolean)
|
|
27
|
+
rowLimit?: 1 | 2 | 3;
|
|
28
|
+
showSkeleton?: boolean;
|
|
29
|
+
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps;
|
|
30
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
31
31
|
} & {
|
|
32
32
|
/**
|
|
33
33
|
* Контрольная точка, с нее начинается desktop версия
|
|
34
34
|
* @default 1024
|
|
35
35
|
*/
|
|
36
|
-
breakpoint?: number
|
|
36
|
+
breakpoint?: number;
|
|
37
37
|
/**
|
|
38
38
|
* Версия, которая будет использоваться при серверном рендеринге
|
|
39
39
|
*/
|
|
40
|
-
client?: "
|
|
40
|
+
client?: "desktop" | "mobile";
|
|
41
41
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
package/esm/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|