@alfalab/core-components-typography 6.0.14 → 6.0.15
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.js.map +1 -1
- package/colors.module.css.js +1 -1
- package/colors.module.css.js.map +1 -1
- package/component.js +8 -8
- package/component.js.map +1 -1
- package/cssm/colors.js.map +1 -1
- package/cssm/component.js +8 -8
- package/cssm/component.js.map +1 -1
- package/cssm/index.js +8 -8
- package/cssm/presets.js.map +1 -1
- package/cssm/text/component.js.map +1 -1
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.js.map +1 -1
- package/cssm/title/utils.js.map +1 -1
- package/cssm/title-mobile/component.js.map +1 -1
- package/cssm/title-responsive/component.js.map +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.js.map +1 -1
- package/esm/colors.module.css.js +1 -1
- package/esm/colors.module.css.js.map +1 -1
- package/esm/component.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/presets.js.map +1 -1
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +42 -42
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/common.css +7 -7
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/common.module.css.js.map +1 -1
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +25 -25
- package/esm/title/index.js.map +1 -1
- 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.js.map +1 -1
- package/esm/title-mobile/index.css +25 -25
- 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.js.map +1 -1
- package/index.js +8 -8
- package/modern/colors.css +20 -20
- package/modern/colors.js.map +1 -1
- package/modern/colors.module.css.js +1 -1
- package/modern/colors.module.css.js.map +1 -1
- package/modern/component.js.map +1 -1
- package/modern/index.js +1 -1
- package/modern/presets.js.map +1 -1
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +42 -42
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/common.css +7 -7
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/common.module.css.js.map +1 -1
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +25 -25
- package/modern/title/index.js.map +1 -1
- 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.js.map +1 -1
- package/modern/title-mobile/index.css +25 -25
- 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.js.map +1 -1
- package/moderncssm/colors.js.map +1 -1
- package/moderncssm/component.js.map +1 -1
- package/moderncssm/index.js +1 -1
- package/moderncssm/presets.js.map +1 -1
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.js.map +1 -1
- package/moderncssm/title/utils.js.map +1 -1
- package/moderncssm/title-mobile/component.js.map +1 -1
- package/moderncssm/title-responsive/component.js.map +1 -1
- package/package.json +3 -3
- package/presets.js.map +1 -1
- package/src/text/index.module.css +5 -4
- package/text/component.js.map +1 -1
- package/text/index.css +42 -42
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/common.css +7 -7
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.js.map +1 -1
- package/title/index.css +25 -25
- package/title/index.js.map +1 -1
- 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.js.map +1 -1
- package/title-mobile/index.css +25 -25
- package/title-mobile/index.module.css.js +1 -1
- package/title-mobile/index.module.css.js.map +1 -1
- package/title-responsive/component.js.map +1 -1
package/esm/text/index.css
CHANGED
|
@@ -6,40 +6,40 @@
|
|
|
6
6
|
--font-family-system:
|
|
7
7
|
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.typography__transparent_979px {
|
|
10
10
|
visibility: hidden;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
.typography__skeleton_979px {
|
|
13
13
|
position: absolute;
|
|
14
14
|
inset: 0;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.typography__root_979px {
|
|
17
17
|
position: relative;
|
|
18
18
|
}
|
|
19
19
|
:root {
|
|
20
20
|
--text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.typography__paragraph_979px {
|
|
23
23
|
margin: var(--gap-0);
|
|
24
24
|
padding: var(--gap-0);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.typography__paragraphWithMargins_979px {
|
|
27
27
|
padding: var(--gap-0);
|
|
28
28
|
margin: var(--text-paragraph-margin-bottom);
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.typography__component_979px {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
font-family: var(--font-family-system);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.typography__component_979px.typography__bold_979px {
|
|
37
37
|
font-weight: 700;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.typography__component_979px.typography__medium_979px {
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.typography__caps_979px {
|
|
43
43
|
font-size: 12px;
|
|
44
44
|
line-height: 16px;
|
|
45
45
|
font-weight: 400;
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
text-transform: uppercase;
|
|
48
48
|
font-family: var(--font-family-system);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.typography__caps_979px.typography__bold_979px {
|
|
51
51
|
font-weight: 700;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.typography__caps_979px.typography__medium_979px {
|
|
54
54
|
font-weight: 500;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.typography__tagline_979px {
|
|
57
57
|
font-size: 12px;
|
|
58
58
|
line-height: 16px;
|
|
59
59
|
font-weight: 400;
|
|
@@ -61,128 +61,128 @@
|
|
|
61
61
|
text-transform: uppercase;
|
|
62
62
|
font-family: var(--font-family-system);
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.typography__tagline_979px.typography__bold_979px {
|
|
65
65
|
font-weight: 700;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.typography__tagline_979px.typography__medium_979px {
|
|
68
68
|
font-weight: 500;
|
|
69
69
|
}
|
|
70
|
-
.typography__primary-
|
|
70
|
+
.typography__primary-large_979px {
|
|
71
71
|
font-size: 18px;
|
|
72
72
|
line-height: 24px;
|
|
73
73
|
font-weight: 400;
|
|
74
74
|
font-family: var(--font-family-system);
|
|
75
75
|
}
|
|
76
|
-
.typography__primary-
|
|
76
|
+
.typography__primary-large_979px.typography__bold_979px {
|
|
77
77
|
font-weight: 700;
|
|
78
78
|
}
|
|
79
|
-
.typography__primary-
|
|
79
|
+
.typography__primary-large_979px.typography__medium_979px {
|
|
80
80
|
font-weight: 500;
|
|
81
81
|
}
|
|
82
|
-
.typography__primary-
|
|
82
|
+
.typography__primary-medium_979px {
|
|
83
83
|
font-size: 16px;
|
|
84
84
|
line-height: 24px;
|
|
85
85
|
font-weight: 400;
|
|
86
86
|
font-family: var(--font-family-system);
|
|
87
87
|
}
|
|
88
|
-
.typography__primary-
|
|
88
|
+
.typography__primary-medium_979px.typography__bold_979px {
|
|
89
89
|
font-weight: 700;
|
|
90
90
|
}
|
|
91
|
-
.typography__primary-
|
|
91
|
+
.typography__primary-medium_979px.typography__medium_979px {
|
|
92
92
|
font-weight: 500;
|
|
93
93
|
}
|
|
94
|
-
.typography__primary-
|
|
94
|
+
.typography__primary-small_979px {
|
|
95
95
|
font-size: 14px;
|
|
96
96
|
line-height: 20px;
|
|
97
97
|
font-weight: 400;
|
|
98
98
|
font-family: var(--font-family-system);
|
|
99
99
|
}
|
|
100
|
-
.typography__primary-
|
|
100
|
+
.typography__primary-small_979px.typography__bold_979px {
|
|
101
101
|
font-weight: 700;
|
|
102
102
|
}
|
|
103
|
-
.typography__primary-
|
|
103
|
+
.typography__primary-small_979px.typography__medium_979px {
|
|
104
104
|
font-weight: 500;
|
|
105
105
|
}
|
|
106
|
-
.typography__component-
|
|
106
|
+
.typography__component-primary_979px {
|
|
107
107
|
font-size: 16px;
|
|
108
108
|
line-height: 20px;
|
|
109
109
|
font-weight: 400;
|
|
110
110
|
font-family: var(--font-family-system);
|
|
111
111
|
}
|
|
112
|
-
.typography__component-
|
|
112
|
+
.typography__component-primary_979px.typography__bold_979px {
|
|
113
113
|
font-weight: 700;
|
|
114
114
|
}
|
|
115
|
-
.typography__component-
|
|
115
|
+
.typography__component-primary_979px.typography__medium_979px {
|
|
116
116
|
font-weight: 500;
|
|
117
117
|
}
|
|
118
|
-
.typography__secondary-
|
|
118
|
+
.typography__secondary-large_979px {
|
|
119
119
|
font-size: 13px;
|
|
120
120
|
line-height: 16px;
|
|
121
121
|
font-weight: 400;
|
|
122
122
|
font-family: var(--font-family-system);
|
|
123
123
|
}
|
|
124
|
-
.typography__secondary-
|
|
124
|
+
.typography__secondary-large_979px.typography__bold_979px {
|
|
125
125
|
font-weight: 700;
|
|
126
126
|
}
|
|
127
|
-
.typography__secondary-
|
|
127
|
+
.typography__secondary-large_979px.typography__medium_979px {
|
|
128
128
|
font-weight: 500;
|
|
129
129
|
}
|
|
130
|
-
.typography__secondary-
|
|
130
|
+
.typography__secondary-medium_979px {
|
|
131
131
|
font-size: 12px;
|
|
132
132
|
line-height: 16px;
|
|
133
133
|
font-weight: 400;
|
|
134
134
|
font-family: var(--font-family-system);
|
|
135
135
|
}
|
|
136
|
-
.typography__secondary-
|
|
136
|
+
.typography__secondary-medium_979px.typography__bold_979px {
|
|
137
137
|
font-weight: 700;
|
|
138
138
|
}
|
|
139
|
-
.typography__secondary-
|
|
139
|
+
.typography__secondary-medium_979px.typography__medium_979px {
|
|
140
140
|
font-weight: 500;
|
|
141
141
|
}
|
|
142
|
-
.typography__secondary-
|
|
142
|
+
.typography__secondary-small_979px {
|
|
143
143
|
font-size: 11px;
|
|
144
144
|
line-height: 16px;
|
|
145
145
|
font-weight: 400;
|
|
146
146
|
font-family: var(--font-family-system);
|
|
147
147
|
}
|
|
148
|
-
.typography__secondary-
|
|
148
|
+
.typography__secondary-small_979px.typography__bold_979px {
|
|
149
149
|
font-weight: 700;
|
|
150
150
|
}
|
|
151
|
-
.typography__secondary-
|
|
151
|
+
.typography__secondary-small_979px.typography__medium_979px {
|
|
152
152
|
font-weight: 500;
|
|
153
153
|
}
|
|
154
|
-
.typography__component-
|
|
154
|
+
.typography__component-secondary_979px {
|
|
155
155
|
font-size: 14px;
|
|
156
156
|
line-height: 18px;
|
|
157
157
|
font-weight: 400;
|
|
158
158
|
font-family: var(--font-family-system);
|
|
159
159
|
}
|
|
160
|
-
.typography__component-
|
|
160
|
+
.typography__component-secondary_979px.typography__bold_979px {
|
|
161
161
|
font-weight: 700;
|
|
162
162
|
}
|
|
163
|
-
.typography__component-
|
|
163
|
+
.typography__component-secondary_979px.typography__medium_979px {
|
|
164
164
|
font-weight: 500;
|
|
165
165
|
}
|
|
166
|
-
.
|
|
166
|
+
.typography__rowLimit1_979px {
|
|
167
167
|
-webkit-line-clamp: 1;
|
|
168
168
|
display: -webkit-box;
|
|
169
169
|
-webkit-box-orient: vertical;
|
|
170
170
|
overflow: hidden;
|
|
171
171
|
word-break: break-all;
|
|
172
172
|
}
|
|
173
|
-
.
|
|
173
|
+
.typography__rowLimit2_979px {
|
|
174
174
|
-webkit-line-clamp: 2;
|
|
175
175
|
display: -webkit-box;
|
|
176
176
|
-webkit-box-orient: vertical;
|
|
177
177
|
overflow: hidden;
|
|
178
178
|
}
|
|
179
|
-
.
|
|
179
|
+
.typography__rowLimit3_979px {
|
|
180
180
|
-webkit-line-clamp: 3;
|
|
181
181
|
display: -webkit-box;
|
|
182
182
|
-webkit-box-orient: vertical;
|
|
183
183
|
overflow: hidden;
|
|
184
184
|
}
|
|
185
|
-
.
|
|
185
|
+
.typography__monospace_979px {
|
|
186
186
|
font-feature-settings: "tnum";
|
|
187
187
|
font-variant-numeric: tabular-nums;
|
|
188
188
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"transparent":"
|
|
3
|
+
var styles = {"transparent":"typography__transparent_979px","skeleton":"typography__skeleton_979px","root":"typography__root_979px","paragraph":"typography__paragraph_979px","paragraphWithMargins":"typography__paragraphWithMargins_979px","component":"typography__component_979px","bold":"typography__bold_979px","medium":"typography__medium_979px","caps":"typography__caps_979px","tagline":"typography__tagline_979px","primary-large":"typography__primary-large_979px","primary-medium":"typography__primary-medium_979px","primary-small":"typography__primary-small_979px","component-primary":"typography__component-primary_979px","secondary-large":"typography__secondary-large_979px","secondary-medium":"typography__secondary-medium_979px","secondary-small":"typography__secondary-small_979px","component-secondary":"typography__component-secondary_979px","rowLimit1":"typography__rowLimit1_979px","rowLimit2":"typography__rowLimit2_979px","rowLimit3":"typography__rowLimit3_979px","monospace":"typography__monospace_979px"};
|
|
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/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n@each $view in component, caps, tagline {\n .$(view) {\n @mixin paragraph_$(
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n/* prettier-ignore */\n@each $view, $token in (component, component_primary), (caps, caps), (tagline, tagline) {\n .$(view) {\n @mixin paragraph_$(token);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(token), paragraph_$(token);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(token), paragraph_$(token);\n }\n}\n\n@each $kind in primary, secondary {\n @each $size in large, medium, small {\n .$(kind)-$(size) {\n /* prettier-ignore */\n @mixin paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;"}
|
package/esm/title/common.css
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-0: 0px;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
.typography__transparent_t1ev6 {
|
|
5
5
|
visibility: hidden;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.typography__skeleton_t1ev6 {
|
|
8
8
|
position: absolute;
|
|
9
9
|
inset: 0;
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
.typography__root_t1ev6 {
|
|
12
12
|
position: relative;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.typography__component_t1ev6 {
|
|
15
15
|
margin: var(--gap-0);
|
|
16
16
|
padding: var(--gap-0);
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.typography__rowLimit1_t1ev6 {
|
|
19
19
|
-webkit-line-clamp: 1;
|
|
20
20
|
display: -webkit-box;
|
|
21
21
|
-webkit-box-orient: vertical;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
word-break: break-all;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.typography__rowLimit2_t1ev6 {
|
|
26
26
|
-webkit-line-clamp: 2;
|
|
27
27
|
display: -webkit-box;
|
|
28
28
|
-webkit-box-orient: vertical;
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.typography__rowLimit3_t1ev6 {
|
|
32
32
|
-webkit-line-clamp: 3;
|
|
33
33
|
display: -webkit-box;
|
|
34
34
|
-webkit-box-orient: vertical;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './common.css';
|
|
2
2
|
|
|
3
|
-
var commonStyles = {"transparent":"
|
|
3
|
+
var commonStyles = {"transparent":"typography__transparent_t1ev6","skeleton":"typography__skeleton_t1ev6","root":"typography__root_t1ev6","component":"typography__component_t1ev6","rowLimit1":"typography__rowLimit1_t1ev6","rowLimit2":"typography__rowLimit2_t1ev6","rowLimit3":"typography__rowLimit3_t1ev6"};
|
|
4
4
|
|
|
5
5
|
export { commonStyles as default };
|
|
6
6
|
//# sourceMappingURL=common.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC
|
|
1
|
+
{"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(font) ? font.font : font, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(commonStyles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n !showSkeleton && className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n [styles.font]:\n (isObject(font) && !font.systemCompat) || !(font === 'system'),\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={commonStyles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;;IA4Fa,SAAS,GAAG,UAAU,CAC/B,UACI,EAgBC,EACD,GAAG,EAAA;;AAhBC,IAAA,IAAA,WAAsB,EAAjB,SAAS,
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(font) ? font.font : font, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(commonStyles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n !showSkeleton && className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n [styles.font]:\n (isObject(font) && !font.systemCompat) || !(font === 'system'),\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={commonStyles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":[],"mappings":"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"}
|
package/esm/title/index.css
CHANGED
|
@@ -12,137 +12,137 @@
|
|
|
12
12
|
'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
13
13
|
sans-serif;
|
|
14
14
|
}
|
|
15
|
-
.
|
|
15
|
+
.typography__xlarge_lswbl {
|
|
16
16
|
font-size: 48px;
|
|
17
17
|
line-height: 52px;
|
|
18
18
|
font-weight: 700;
|
|
19
19
|
font-family: var(--font-family-system);
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.typography__xlarge_lswbl.typography__font_lswbl {
|
|
22
22
|
line-height: 64px;
|
|
23
23
|
font-weight: 500;
|
|
24
24
|
font-feature-settings: 'ss01';
|
|
25
25
|
font-family: var(--font-family-styrene);
|
|
26
26
|
}
|
|
27
|
-
.typography__regular-
|
|
27
|
+
.typography__regular-xlarge_lswbl {
|
|
28
28
|
font-size: 48px;
|
|
29
29
|
line-height: 52px;
|
|
30
30
|
font-weight: 400;
|
|
31
31
|
font-family: var(--font-family-system);
|
|
32
32
|
}
|
|
33
|
-
.typography__regular-
|
|
33
|
+
.typography__regular-xlarge_lswbl.typography__font_lswbl {
|
|
34
34
|
line-height: 64px;
|
|
35
35
|
font-feature-settings: 'ss01';
|
|
36
36
|
font-family: var(--font-family-styrene);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.typography__large_lswbl {
|
|
39
39
|
font-size: 40px;
|
|
40
40
|
line-height: 48px;
|
|
41
41
|
font-weight: 700;
|
|
42
42
|
font-family: var(--font-family-system);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.typography__large_lswbl.typography__font_lswbl {
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
font-feature-settings: 'ss01';
|
|
47
47
|
font-family: var(--font-family-styrene);
|
|
48
48
|
}
|
|
49
|
-
.typography__regular-
|
|
49
|
+
.typography__regular-large_lswbl {
|
|
50
50
|
font-size: 40px;
|
|
51
51
|
line-height: 48px;
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
font-family: var(--font-family-system);
|
|
54
54
|
}
|
|
55
|
-
.typography__regular-
|
|
55
|
+
.typography__regular-large_lswbl.typography__font_lswbl {
|
|
56
56
|
font-feature-settings: 'ss01';
|
|
57
57
|
font-family: var(--font-family-styrene);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.typography__medium_lswbl {
|
|
60
60
|
font-size: 30px;
|
|
61
61
|
line-height: 36px;
|
|
62
62
|
font-weight: 700;
|
|
63
63
|
font-family: var(--font-family-system);
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.typography__medium_lswbl.typography__font_lswbl {
|
|
66
66
|
font-size: 32px;
|
|
67
67
|
line-height: 40px;
|
|
68
68
|
font-weight: 500;
|
|
69
69
|
font-feature-settings: 'ss01';
|
|
70
70
|
font-family: var(--font-family-styrene);
|
|
71
71
|
}
|
|
72
|
-
.typography__regular-
|
|
72
|
+
.typography__regular-medium_lswbl {
|
|
73
73
|
font-size: 30px;
|
|
74
74
|
line-height: 36px;
|
|
75
75
|
font-weight: 400;
|
|
76
76
|
font-family: var(--font-family-system);
|
|
77
77
|
}
|
|
78
|
-
.typography__regular-
|
|
78
|
+
.typography__regular-medium_lswbl.typography__font_lswbl {
|
|
79
79
|
font-size: 32px;
|
|
80
80
|
line-height: 40px;
|
|
81
81
|
font-feature-settings: 'ss01';
|
|
82
82
|
font-family: var(--font-family-styrene);
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.typography__small_lswbl {
|
|
85
85
|
font-size: 22px;
|
|
86
86
|
line-height: 26px;
|
|
87
87
|
font-weight: 700;
|
|
88
88
|
font-family: var(--font-family-system);
|
|
89
89
|
}
|
|
90
|
-
.
|
|
90
|
+
.typography__small_lswbl.typography__font_lswbl {
|
|
91
91
|
font-size: 24px;
|
|
92
92
|
line-height: 32px;
|
|
93
93
|
font-weight: 500;
|
|
94
94
|
font-feature-settings: 'ss01';
|
|
95
95
|
font-family: var(--font-family-styrene);
|
|
96
96
|
}
|
|
97
|
-
.typography__regular-
|
|
97
|
+
.typography__regular-small_lswbl {
|
|
98
98
|
font-size: 22px;
|
|
99
99
|
line-height: 26px;
|
|
100
100
|
font-weight: 400;
|
|
101
101
|
font-family: var(--font-family-system);
|
|
102
102
|
}
|
|
103
|
-
.typography__regular-
|
|
103
|
+
.typography__regular-small_lswbl.typography__font_lswbl {
|
|
104
104
|
font-size: 24px;
|
|
105
105
|
line-height: 32px;
|
|
106
106
|
font-feature-settings: 'ss01';
|
|
107
107
|
font-family: var(--font-family-styrene);
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.typography__xsmall_lswbl {
|
|
110
110
|
font-size: 18px;
|
|
111
111
|
line-height: 22px;
|
|
112
112
|
font-weight: 700;
|
|
113
113
|
font-family: var(--font-family-system);
|
|
114
114
|
}
|
|
115
|
-
.
|
|
115
|
+
.typography__xsmall_lswbl.typography__font_lswbl {
|
|
116
116
|
font-size: 20px;
|
|
117
117
|
line-height: 24px;
|
|
118
118
|
font-weight: 500;
|
|
119
119
|
font-feature-settings: 'ss01';
|
|
120
120
|
font-family: var(--font-family-styrene);
|
|
121
121
|
}
|
|
122
|
-
.typography__regular-
|
|
122
|
+
.typography__regular-xsmall_lswbl {
|
|
123
123
|
font-size: 18px;
|
|
124
124
|
line-height: 22px;
|
|
125
125
|
font-weight: 400;
|
|
126
126
|
font-family: var(--font-family-system);
|
|
127
127
|
}
|
|
128
|
-
.typography__regular-
|
|
128
|
+
.typography__regular-xsmall_lswbl.typography__font_lswbl {
|
|
129
129
|
font-size: 20px;
|
|
130
130
|
line-height: 24px;
|
|
131
131
|
font-feature-settings: 'ss01';
|
|
132
132
|
font-family: var(--font-family-styrene);
|
|
133
133
|
}
|
|
134
|
-
.
|
|
134
|
+
.typography__component_lswbl.typography__margins-xlarge_lswbl {
|
|
135
135
|
margin: var(--gap-0) var(--gap-0) var(--gap-24);
|
|
136
136
|
}
|
|
137
|
-
.
|
|
137
|
+
.typography__component_lswbl.typography__margins-large_lswbl {
|
|
138
138
|
margin: var(--gap-48) var(--gap-0) var(--gap-24);
|
|
139
139
|
}
|
|
140
|
-
.
|
|
140
|
+
.typography__component_lswbl.typography__margins-medium_lswbl {
|
|
141
141
|
margin: var(--gap-48) var(--gap-0) var(--gap-24);
|
|
142
142
|
}
|
|
143
|
-
.
|
|
143
|
+
.typography__component_lswbl.typography__margins-small_lswbl {
|
|
144
144
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
145
145
|
}
|
|
146
|
-
.
|
|
146
|
+
.typography__component_lswbl.typography__margins-xsmall_lswbl {
|
|
147
147
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
148
148
|
}
|
package/esm/title/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/title/index.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from './component';\n\nimport styles from './index.module.css';\n\nconst Title = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>((props, ref) => (\n <TitleBase {...props} styles={styles} ref={ref} platform='desktop' />\n));\n\nexport { Title };\nexport type { TitleProps };\n"],"names":[],"mappings":";;;;;AAMA,IAAM,KAAK,GAAG,UAAU,CAAkD,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,QACtF,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/title/index.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from './component';\n\nimport styles from './index.module.css';\n\nconst Title = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>((props, ref) => (\n <TitleBase {...props} styles={styles} ref={ref} platform='desktop' />\n));\n\nexport { Title };\nexport type { TitleProps };\n"],"names":[],"mappings":";;;;;AAMA,IAAM,KAAK,GAAG,UAAU,CAAkD,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,QACtF,KAAA,CAAA,aAAA,CAAC,SAAS,eAAK,KAAK,EAAA,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,SAAS,EAAA,CAAA,CAAG,EACxE,CAFyF,CAEzF;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"xlarge":"
|
|
3
|
+
var styles = {"xlarge":"typography__xlarge_lswbl","font":"typography__font_lswbl","regular-xlarge":"typography__regular-xlarge_lswbl","large":"typography__large_lswbl","regular-large":"typography__regular-large_lswbl","medium":"typography__medium_lswbl","regular-medium":"typography__regular-medium_lswbl","small":"typography__small_lswbl","regular-small":"typography__regular-small_lswbl","xsmall":"typography__xsmall_lswbl","regular-xsmall":"typography__regular-xsmall_lswbl","component":"typography__component_lswbl","margins-xlarge":"typography__margins-xlarge_lswbl","margins-large":"typography__margins-large_lswbl","margins-medium":"typography__margins-medium_lswbl","margins-small":"typography__margins-small_lswbl","margins-xsmall":"typography__margins-xsmall_lswbl"};
|
|
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/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
|
|
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":"
|
|
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":"AAAM,SAAU,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;IACnB;AAEA,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;IACjB;AAEA,IAAA,OAAO,UAAU;AACrB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../src/title-mobile/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from '../title/component';\n\nimport styles from './index.module.css';\n\nexport const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(\n (props, ref) => <TitleBase {...props} styles={styles} ref={ref} platform='mobile' />,\n);\n"],"names":[],"mappings":";;;;;AAMO,IAAM,WAAW,GAAG,UAAU,CACjC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAA,KAAA,CAAA,aAAA,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../src/title-mobile/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from '../title/component';\n\nimport styles from './index.module.css';\n\nexport const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(\n (props, ref) => <TitleBase {...props} styles={styles} ref={ref} platform='mobile' />,\n);\n"],"names":[],"mappings":";;;;;AAMO,IAAM,WAAW,GAAG,UAAU,CACjC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAA,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,QAAA,CAAA,EAAA,EAAK,KAAK,EAAA,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,QAAQ,EAAA,CAAA,CAAG,CAAA,CAApE,CAAoE;;"}
|